Skip to content

Commit

Permalink
Fix release apk failed; Recover ARM support [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Khang-NT committed Sep 25, 2018
1 parent 0eb3b26 commit 80bc6f5
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ android {

flavorDimensions 'cpuArch'
productFlavors {
// arm {
// dimension 'cpuArch'
// ndk {
// abiFilter 'armeabi'
// }
//
// versionCode 0 + _versionCode
// versionNameSuffix "-arm"
// }
arm {
dimension 'cpuArch'
ndk {
abiFilter 'armeabi'
}

versionCode 0 + _versionCode
versionNameSuffix "-arm"
}
arm7 {
dimension 'cpuArch'
ndk {
Expand Down Expand Up @@ -169,14 +169,14 @@ publishConfig {
packageName = 'com.github.khangnt.mcp'
track = 'beta'
apkFiles = files(
// "$buildDir/outputs/apk/arm/release/app-arm-release.apk",
"$buildDir/outputs/apk/arm/release/app-arm-release.apk",
"$buildDir/outputs/apk/arm7/release/app-arm7-release.apk",
"$buildDir/outputs/apk/arm8/release/app-arm8-release.apk",
"$buildDir/outputs/apk/x86/release/app-x86-release.apk",
"$buildDir/outputs/apk/x86_64/release/app-x86_64-release.apk",
)
mappings = files(
// "$buildDir/outputs/mapping/arm/release/mapping.txt",
"$buildDir/outputs/mapping/arm/release/mapping.txt",
"$buildDir/outputs/mapping/arm7/release/mapping.txt",
"$buildDir/outputs/mapping/arm8/release/mapping.txt",
"$buildDir/outputs/mapping/x86/release/mapping.txt",
Expand All @@ -187,17 +187,19 @@ publishConfig {

afterEvaluate {
tasks.create("testReleaseUnitTest").dependsOn(
// "testArmReleaseUnitTest",
"testArmReleaseUnitTest",
"testArm7ReleaseUnitTest",
"testArm8ReleaseUnitTest",
"testX86ReleaseUnitTest",
"testX86_64ReleaseUnitTest"
)
tasks.create("lintRelease").dependsOn(
// "lintArmRelease",
"lintArmRelease",
"lintArm7Release",
"lintArm8Release",
"lintX86Release",
"lintX86_64Release"
)
}
}

tasks.findByName("publishApks").dependsOn("assembleRelease")

0 comments on commit 80bc6f5

Please sign in to comment.