Build optional splits (fdroid can use these)

Stephen Paul Weber created

Change summary

.builds/debian-stable.yml | 4 ++--
build.gradle              | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)

Detailed changes

.builds/debian-stable.yml 🔗

@@ -43,6 +43,6 @@ tasks:
     echo keystore.alias=cheogram >> signing.properties
     ./gradlew bundleCheogramPlaystoreRelease
 - assets: |
-    mv cheogram-android/build/outputs/apk/cheogramFree/debug/*.apk cheogram.apk
-    mv cheogram-android/build/outputs/apk/cheogramPlaystore/debug/*.apk cheogram_google_play.apk
+    mv cheogram-android/build/outputs/apk/cheogramFree/debug/*universal*.apk cheogram.apk
+    mv cheogram-android/build/outputs/apk/cheogramPlaystore/debug/*universal*.apk cheogram_google_play.apk
     mv cheogram-android/build/outputs/bundle/cheogramPlaystoreRelease/*.aab cheogram_google_play.aab

build.gradle 🔗

@@ -146,6 +146,13 @@ android {
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     }
 
+    splits {
+        abi {
+            universalApk true
+            enable true
+        }
+    }
+
     configurations {
         implementation.exclude group: 'org.jetbrains' , module:'annotations'
     }