Build options in Xamarin for Android

We currently have an Android app that we would like to transfer to Xamarin for Android.

Our application uses build options to create different product tastes .

However, I cannot find any documentation explaining whether this is possible in Xamarin or in whatever workaround.

Does anyone have any experience with this issue?

Thanks in advance.

+7
android android-gradle xamarin
source share
1 answer

Both of these problems (product tastes and build options) are not really β€œAndroid”, they are a software configuration problem supported by Gradle.

Although Xamarin.Android does not support Gradle, you can create build options as described in this link. Xamarin.Android lets you choose the ABI you are targeting. With few scripts, you can create one APK for each ABI (which can then be downloaded to Google Play).

Similarly, with appropriate scenarios, you can also support the tastes of a product in several ways:

  • Using compile-time directives, i.e. #if operators
  • The architect of the application so that certain functions are in certain assemblies that were omitted at compile time or different for each flavor.
+2
source share

All Articles