Skip to content

Commit

Permalink
[feature] 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
heyanLE committed Dec 26, 2023
1 parent 8ffbd40 commit 9c55dfe
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ jobs:
keyStorePassword: ${{ secrets.KEY_STORE_PWD }}
keyPassword: ${{ secrets.KEY_PWD }}
- name: rename-apk
run: mv app/build/outputs/apk/release/app-release-unsigned-signed.apk easybangumi-${{ github.ref_name }}.apk
run: |
mv app/build/outputs/apk/release/app-universal-release-unsigned-signed.apk easybangumi-universal-${{ github.ref_name }}.apk
mv app/build/outputs/apk/release/app-arm64-v8a-release-unsigned-signed.apk easybangumi-arm64-v8a-${{ github.ref_name }}.apk
mv app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned-signed.apk easybangumi-armeabi-v7a-${{ github.ref_name }}.apk
- name: Release
run: |
gh release create -d ${{ github.ref_name }} kan-animation-${{ github.ref_name }}.apk
gh release create -d ${{ github.ref_name }} easybangumi-*-${{ github.ref_name }}.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 23 additions & 11 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,37 @@ android {
}
buildConfigField(
"String",
"APP_CENTER_SECRET",
publishingProps.getProperty(
"appcenter.secret",
System.getenv("APPCENTER_SECRET")
)?:""
"app_center_secret",
"\"${
publishingProps.getProperty(
"APP_CENTER_SECRET",
System.getenv("APPCENTER_SECRET")
)
}\""
)

ksp {
arg("room.generateKotlin", "true")
arg(RoomSchemaArgProvider(File(projectDir, "schemas")))
}

ndk{
// 打包生成的 APK 文件指挥包含 ARM 指令集的动态库
abiFilters += "arm64-v8a"
abiFilters += "armeabi-v7a"
//abiFilters.addAll(arrayOf("armeabi", "armeabi-v7a" , "arm64-v8a", "x86", "x86_64"))
}
}

splits {

// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
isEnable = true
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86 and x86_64.
// Resets the list of ABIs that Gradle should create APKs for to none.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
include("arm64-v8a", "armeabi-v7a")
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
isUniversalApk = false
}
}

sourceSets {
Expand Down

0 comments on commit 9c55dfe

Please sign in to comment.