Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Android App Bundles-Dynamic Features with visual studio 2017

In Google Play Console I came across

App size savings using the Android App Bundle-

Your app could be 38.4% smaller if you used the Android App Bundle. The APKs generated from the app bundle give your users smaller, more optimized downloads. Learn how

This calculation is based on your latest production release and the XXHDPI ARMv7 device configuration.

This is all about reducing the size of apk file & it claims to have many benifits like Keep apps smaller, Serve users the functionality and configurations they need, Reduce development complexity by removing the need to build and publish multi-APKs name a few.

Can we develop same thing for Xamarin with visual studio?

like image 472
R15 Avatar asked Oct 09 '18 07:10

R15


People also ask

How do I create an Android App Bundle in Visual Studio?

For Visual Studio 2019, go to the property of the Xamarin. Android project. Under the "Android Options" side menu, select "bundle" for the "Android Package Format".

What is dynamic feature module in Android Studio?

Dynamic feature modules allow you to separate certain features and resources from the base module of your app and include them in your app bundle. Through Dynamic Delivery, users can later download and install those components on demand after they've already installed the base APK of your app.

Can I use Visual Studio to develop Android apps?

You can build apps for Android, iOS, and Windows devices by using Visual Studio. As you design your app, use tools in Visual Studio to easily add connected services such as Microsoft 365, Azure App Service, and Application Insights.

How do I test an AAB file?

Step 1: Go to Android Studio -> Build ->Generate Signed Bundle. Select Android App Bundle on the pop screen and select Next. Step 2: Enter the KeyStore path where the KeyStore is stored or Create a new KeyStore as seen below. Step 4: Select the release mode from the list and select finish.


1 Answers

App bundle now avalaible in Visual Studio 2019 v.16.2

I generated Android App Bundle in xamarin using Developer Command Prompt Visual Studio 2019 v.16.2

msbuild -restore XamAndroidApp.csproj -t:SignAndroidPackage -p:Configuration=Release -p:AndroidKeyStore=True -p:AndroidSigningKeyStore=filename.keystore -p:AndroidSigningStorePass=password -p:AndroidSigningKeyAlias=keyAlias -p:AndroidSigningKeyPass=password

Follow this link for more infos

Hope this help someone

like image 114
Jhakiz Avatar answered Oct 10 '22 15:10

Jhakiz