Skip to content

Commit

Permalink
chore: try universal apk
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravkhunger committed Aug 22, 2024
1 parent cae0488 commit d4033b0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ jobs:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
run: |
if [ "$BUILD_TYPE" = "release" ]; then
./gradlew assembleRelease assemble32Bit assemble64Bit
./gradlew assembleRelease # assemble32Bit assemble64Bit
mv app/build/outputs/apk/release/*.apk .
elif [ "$BUILD_TYPE" = "debug" ]; then
./gradlew assembleDebug assemble32Bit assemble64Bit
./gradlew assembleDebug # assemble32Bit assemble64Bit
mv app/build/outputs/apk/debug/*.apk .
fi
mv app/build/outputs/apk/32bit/*.apk .
mv app/build/outputs/apk/64bit/*.apk .
# mv app/build/outputs/apk/32bit/*.apk .
# mv app/build/outputs/apk/64bit/*.apk .
- name: Upload APK artifact
uses: actions/upload-artifact@v4
Expand Down
74 changes: 37 additions & 37 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ android {
storePassword = System.getenv("KEYSTORE_PASSWORD")
}
}

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

buildTypes {
release {
Expand All @@ -79,35 +79,35 @@ android {
signingConfig = signingConfigs.getByName("release")
}

create("32bit") {
initWith(getByName(envBuildType))

splits {
abi {
isEnable = false
}
}

ndk {
abiFilters.add("x86_64")
abiFilters.add("arm64-v8a")
}
}

create("64bit") {
initWith(getByName(envBuildType))

splits {
abi {
isEnable = false
}
}

ndk {
abiFilters.add("x86")
abiFilters.add("armeabi-v7a")
}
}
// create("32bit") {
// initWith(getByName(envBuildType))
//
// splits {
// abi {
// isEnable = false
// }
// }
//
// ndk {
// abiFilters.add("x86_64")
// abiFilters.add("arm64-v8a")
// }
// }
//
// create("64bit") {
// initWith(getByName(envBuildType))
//
// splits {
// abi {
// isEnable = false
// }
// }
//
// ndk {
// abiFilters.add("x86")
// abiFilters.add("armeabi-v7a")
// }
// }
}

compileOptions {
Expand Down

0 comments on commit d4033b0

Please sign in to comment.