Skip to content

Commit

Permalink
Enable split ABI (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcoding810 authored Dec 5, 2024
1 parent d0ceb03 commit 2c94742
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ jobs:
- name: Build app
run: ./gradlew assembleDebug

- name: Rename apk
run: mv app/build/outputs/apk/debug/app-universal-debug.apk hviewer-debug.apk

- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: app
path: app/build/outputs/apk/debug/*.apk
path: hviewer-debug.apk
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ jobs:
keyPassword: ${{ secrets.KEY_PASSWORD }}
buildToolsVersion: ${{ env.ANDROID_BUILD_TOOLS_VERSION }}

- name: Rename signed APK
- name: Rename apks
run: |
mv "${{ steps.sign_app.outputs.signedFile }}" "app-release.apk"
mv app/build/outputs/apk/release/app-arm64-v8a-release-unsigned-signed.apk hviewer-${{ github.ref_name }}-arm64-v8a-release.apk
mv app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned-signed.apk hviewer-${{ github.ref_name }}-armeabi-v7a-release.apk
mv app/build/outputs/apk/release/app-universal-release-unsigned-signed.apk hviewer-${{ github.ref_name }}-universal-release.apk
mv app/build/outputs/apk/release/app-x86-release-unsigned-signed.apk hviewer-${{ github.ref_name }}-x86-release.apk
mv app/build/outputs/apk/release/app-x86_64-release-unsigned-signed.apk hviewer-${{ github.ref_name }}-x86_64-release.apk
# - name: Create changelog
# id: changelog
Expand All @@ -60,6 +64,11 @@ jobs:
uses: softprops/action-gh-release@v2
with:
body: ChangeLog
files: "app-release.apk"
files: |
hviewer-${{ github.ref_name }}-arm64-v8a-release.apk
hviewer-${{ github.ref_name }}-armeabi-v7a-release.apk
hviewer-${{ github.ref_name }}-universal-release.apk
hviewer-${{ github.ref_name }}-x86-release.apk
hviewer-${{ github.ref_name }}-x86_64-release.apk
fail_on_unmatched_files: true
make_latest: true
9 changes: 9 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ android {
versionName = "1.3.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

splits {
abi {
isEnable = true
reset()
include("arm64-v8a", "armeabi-v7a", "x86", "x86_64")
isUniversalApk = true
}
}
}

buildTypes {
Expand Down

0 comments on commit 2c94742

Please sign in to comment.