digidem / comapeo-mobile

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

Only build for arm architectures #447

Closed achou11 closed 5 days ago

achou11 commented 1 week ago

Extracted from #401 and #446.

We decided that for the time being, we can solely build for arm and not for intel architectures. This will notably improve the compilation speed and resulting apk size.

In terms of code changes, we should:

  1. Write a custom config plugin that inserts the ndk option in the defaultConfig field of the android/app/build.gradle

    defaultConfig {
        // Other stuff preceding this...
        ndk {
            abiFilters = project(":app").android.defaultConfig.ndk.abiFilters ?: ["armeabi-v7a", "x86_64", "arm64-v8a"]
        }
    }
  2. Remove android-x64 from here

    https://github.com/digidem/comapeo-mobile/blob/23dc4dd1175c1c4af78fdc8bb205be63c7c5ee95/scripts/download-prebuilds.mjs#L7