Skip to content

Commit

Permalink
启用multi apk
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Dec 11, 2023
1 parent 214db81 commit 0ef18ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Build with Gradle
run: ./gradlew build

- uses: noriban/sign-android-release@v3
- uses: noriban/sign-android-release@v4
name: Sign app APK
# ID used to access action output
id: sign_app
Expand All @@ -51,7 +51,12 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}
path: |
${{ steps.sign_app.signedReleaseFile0 }}
${{ steps.sign_app.signedReleaseFile1 }}
${{ steps.sign_app.signedReleaseFile2 }}
${{ steps.sign_app.signedReleaseFile3 }}
${{ steps.sign_app.signedReleaseFile4 }}
release:
name: Release APK
Expand Down
19 changes: 10 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ android {
pickFirsts += ['META-INF/*']
}
}
// splits {
//
// // Configures multiple APKs based on ABI.
// abi {
// enable true
// include "x86", "x86_64", "arm64-v8a", "armeabi-v7a"
// universalApk true
// }
// }
splits {

// Configures multiple APKs based on ABI.
abi {
enable true
reset()
include "x86", "x86_64", "arm64-v8a", "armeabi-v7a"
universalApk true
}
}
}

dependencies {
Expand Down

0 comments on commit 0ef18ca

Please sign in to comment.