Reputation: 23
I noticed that on release configuration an Uno blank app is about 22mb for android. Can it be reduced ..? I also noticed that a blank xamarin forms app is only 14 mb. (Both for per abi apk)
Upvotes: 1
Views: 287
Reputation: 2146
There are a few things you can do to reduce the app size.
If you currently use the .apk format for your Android package, you can reduce your app size by switching to .aab format.
Here is a guide on how to enable it.
If you currently use full AOT, you can reduce the app size by enabling Profiled-AOT.
Here is a guide on how to enable it.
Make sure you remove any asset that you don't actually use in your app. That includes images, fonts, sounds, videos, etc.
Make sure you remove nuget references that you don't actually use.
Upvotes: 1
Reputation: 867
You can enable Application App bundles (.aab). It will reduce your application size even more once deployed through the Google Play store.
To enable it, look in your *.Droid.csproj properties
This xamarin blog post is a good reference.
Upvotes: 3