From 055d25e3e18df60782becee8c2867a4514c53be4 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Mon, 20 Feb 2023 20:53:54 -0700 Subject: [PATCH] build: use split apks Build multiple architecture-specfic APKs alongside the single "fat" APK. --- .github/workflows/android.yml | 2 +- app/build.gradle | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8738c44dd..6107b1321 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -31,4 +31,4 @@ jobs: uses: actions/upload-artifact@v3.1.1 with: name: Auxio_Canary - path: ./app/build/outputs/apk/debug/app-debug.apk + path: ./app/build/outputs/apk/debug/*.apk diff --git a/app/build.gradle b/app/build.gradle index 15c5a46d7..80ef92e5b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -57,6 +57,15 @@ android { } } + splits { + abi { + enable true + reset() + include "x86", "x86_64", "arm64-v8a", "armeabi-v7a" + universalApk true + } + } + buildFeatures { viewBinding true }