Skip to content

Commit 228a949

Browse files
committed
Fix ABI configuration conflict - remove splits.abi, keep single optimized APK
1 parent 830d421 commit 228a949

2 files changed

Lines changed: 6 additions & 25 deletions

File tree

.github/workflows/build-silent-payments-apk.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,13 @@ jobs:
3434
rm -rf ~/.gradle
3535
./gradlew --no-daemon --no-build-cache :app:assembleDebug --stacktrace
3636
37-
- name: Upload Split APKs (arm64-v8a optimized)
37+
- name: Upload Optimized APK (arm64-v8a, LZ4 compressed)
3838
uses: actions/upload-artifact@v4
3939
with:
40-
name: ibis-wallet-silent-payments-arm64
41-
# With split APKs, the path includes ABI in filename
42-
path: |
43-
app/build/outputs/apk/debug/*-arm64-v8a-*.apk
44-
app/build/outputs/apk/debug/app-arm64-v8a-debug.apk
45-
retention-days: 14
46-
if-no-files-found: warn
47-
48-
- name: Upload Universal APK (fallback)
49-
uses: actions/upload-artifact@v4
50-
if: failure()
51-
with:
52-
name: ibis-wallet-silent-payments-universal
40+
name: ibis-wallet-silent-payments
5341
path: app/build/outputs/apk/debug/app-debug.apk
5442
retention-days: 14
55-
if-no-files-found: ignore
43+
if-no-files-found: error
5644

5745
- name: List APK outputs
5846
run: |

app/build.gradle.kts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,9 @@ android {
5858
}
5959
}
6060

61-
// Split APKs by ABI for side-loading (F-Droid, GitHub)
62-
// Reduces APK size from ~100MB to ~50MB per architecture
63-
splits {
64-
abi {
65-
isEnable = true
66-
reset()
67-
include("arm64-v8a")
68-
isUniversalApk = false // Don't build fat APK
69-
}
70-
}
61+
// Note: ndk.abiFilters already restricts to arm64-v8a
62+
// This produces a single optimized APK (not split APKs)
63+
// For smaller side-load distribution, users can use Android App Bundle (AAB)
7164
testOptions {
7265
unitTests.all {
7366
it.useJUnitPlatform()

0 commit comments

Comments
 (0)