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?
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".
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With