From ae356d660193b2dd7db8d40b72fc78c4de8de5cd Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 10 May 2021 00:54:06 +0900 Subject: [PATCH] Add prop to explicitly split apks instead of default --- .github/workflows/github_pre_release.yml | 2 +- app/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github_pre_release.yml b/.github/workflows/github_pre_release.yml index b5c99aca..9700fdfc 100644 --- a/.github/workflows/github_pre_release.yml +++ b/.github/workflows/github_pre_release.yml @@ -24,7 +24,7 @@ jobs: run: chmod +x gradlew - name: Build Github unsigned pre-release apk - run: ./gradlew assembleGithubRelease --stacktrace --project-prop pre + run: ./gradlew assembleGithubRelease --stacktrace --project-prop pre --project-prop split - name: Sign APK uses: ammargitham/sign-android-release@v1.1.1 diff --git a/app/build.gradle b/app/build.gradle index f720044f..d20884cf 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -86,7 +86,7 @@ android { // Configures multiple APKs based on ABI. abi { // Enables building multiple APKs per ABI. - enable !project.hasProperty("noAbiSplits") && !gradle.startParameter.taskNames.isEmpty() && gradle.startParameter.taskNames.get(0).contains('Release') + enable project.hasProperty("split") && !gradle.startParameter.taskNames.isEmpty() && gradle.startParameter.taskNames.get(0).contains('Release') // By default all ABIs are included, so use reset() and include to specify that we only // want APKs for x86 and x86_64.