Aswin P G
Aswin P G

Reputation: 23

Can we reduce the android App size in uno platform?

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

Answers (2)

Batesias
Batesias

Reputation: 2146

There are a few things you can do to reduce the app size.

Enable Android App Bundle (.aab)

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.

Enable Profiled-AOT

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.

Remove unused assets

Make sure you remove any asset that you don't actually use in your app. That includes images, fonts, sounds, videos, etc.

Remove unused package references

Make sure you remove nuget references that you don't actually use.

Upvotes: 1

matfillion
matfillion

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

csproj options

This xamarin blog post is a good reference.

Upvotes: 3

Related Questions