digidem / comapeo-mobile

The next version of Mapeo mobile
GNU General Public License v3.0
5 stars 0 forks source link

Research Fix App Bundle Size #401

Open ErikSin opened 1 month ago

achou11 commented 3 weeks ago

Some items based on initial investigations (with some help from @EvanHahn ):

The native library sizes are significantly larger in CoMapeo than Mapeo (about 4x), with nodejs-mobile representing the vast majority of that size. my hunch is that it's related to changes introduced via the android gradle plugin around native libs (see https://stackoverflow.com/questions/62440105/apk-size-increased-35mb-when-bumping-min-sdk-from-21-to-24/63417612#63417612 and https://developer.android.com/build/releases/past-releases/agp-4-2-0-release-notes#compress-native-libs-dsl), but have yet to confirm that.

We also noticed that the app is also building for x86. We should remove this since nodejs-mobile removed support for that architecture completely.

So with this in mind, some actionable items/conclusions:

Definitely want to:

Possibly: