Generate APKs per CPU architecture

This commit is contained in:
arkon 2021-06-01 09:55:03 -04:00
parent d681bea395
commit 9299a4beff
2 changed files with 16 additions and 3 deletions

View file

@ -61,6 +61,8 @@ jobs:
set -x set -x
echo "VERSION_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV echo "VERSION_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
# TODO: need to support multiple APKs
- name: Sign APK - name: Sign APK
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'tachiyomiorg/tachiyomi' if: startsWith(github.ref, 'refs/tags/') && github.repository == 'tachiyomiorg/tachiyomi'
uses: r0adkll/sign-android-release@v1 uses: r0adkll/sign-android-release@v1

View file

@ -18,6 +18,8 @@ if (gradle.startParameter.taskRequests.toString().contains("Standard")) {
shortcutHelper.setFilePath("./shortcuts.xml") shortcutHelper.setFilePath("./shortcuts.xml")
val SUPPORTED_ABIS = setOf("armeabi-v7a", "arm64-v8a", "x86")
android { android {
compileSdkVersion(AndroidConfig.compileSdk) compileSdkVersion(AndroidConfig.compileSdk)
buildToolsVersion(AndroidConfig.buildTools) buildToolsVersion(AndroidConfig.buildTools)
@ -42,12 +44,17 @@ android {
multiDexEnabled = true multiDexEnabled = true
ndk { ndk {
abiFilters += setOf("armeabi-v7a", "arm64-v8a", "x86") abiFilters += SUPPORTED_ABIS
} }
} }
buildFeatures { splits {
viewBinding = true abi {
isEnable = true
reset()
include(*SUPPORTED_ABIS.toTypedArray())
isUniversalApk = true
}
} }
buildTypes { buildTypes {
@ -101,6 +108,10 @@ android {
includeInApk = false includeInApk = false
} }
buildFeatures {
viewBinding = true
}
lintOptions { lintOptions {
disable("MissingTranslation", "ExtraTranslation") disable("MissingTranslation", "ExtraTranslation")
isAbortOnError = false isAbortOnError = false