2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00
This commit is contained in:
Stefan Arentz 2019-05-29 09:19:17 -04:00 committed by Stefan Arentz
parent e70c7c8037
commit 264f522b37
3 changed files with 20 additions and 8 deletions

View File

@ -71,16 +71,22 @@ android {
abiFilter "armeabi-v7a" abiFilter "armeabi-v7a"
} }
} }
aarch64 {
dimension "abi"
ndk {
abiFilter "arm64-v8a"
}
}
x86 { x86 {
dimension "abi" dimension "abi"
ndk { ndk {
abiFilter "x86" abiFilter "x86"
} }
} }
aarch64 { x86_64 {
dimension "abi" dimension "abi"
ndk { ndk {
abiFilter "arm64-v8a" abiFilter "x86_64"
} }
} }
} }
@ -133,7 +139,9 @@ android.applicationVariants.all { variant ->
// Our x86 builds need a higher version code to avoid installing ARM builds on an x86 device // Our x86 builds need a higher version code to avoid installing ARM builds on an x86 device
// with ARM compatibility mode. // with ARM compatibility mode.
if (variant.flavorName.contains("x86")) { if (variant.flavorName.contains("x86_64")) {
versionCode = versionCode + 3
} else if (variant.flavorName.contains("x86")) {
versionCode = versionCode + 2 versionCode = versionCode + 2
} else if (variant.flavorName.contains("aarch64")) { } else if (variant.flavorName.contains("aarch64")) {
versionCode = versionCode + 1 versionCode = versionCode + 1
@ -319,8 +327,9 @@ dependencies {
implementation Deps.mozilla_lib_fetch_httpurlconnection implementation Deps.mozilla_lib_fetch_httpurlconnection
armImplementation Gecko.geckoview_beta_arm armImplementation Gecko.geckoview_beta_arm
x86Implementation Gecko.geckoview_beta_x86
aarch64Implementation Gecko.geckoview_beta_aarch64 aarch64Implementation Gecko.geckoview_beta_aarch64
x86Implementation Gecko.geckoview_beta_x86
x86_64Implementation Gecko.geckoview_beta_x86_64
implementation Deps.androidx_legacy implementation Deps.androidx_legacy
implementation Deps.androidx_preference implementation Deps.androidx_preference

View File

@ -68,4 +68,4 @@ task ktlint(type: JavaExec, group: "verification") {
classpath = configurations.ktlint classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main" main = "com.github.shyiko.ktlint.Main"
args "app/src/**/*.kt", "architecture/src/**/*.kt" args "app/src/**/*.kt", "architecture/src/**/*.kt"
} }

View File

@ -11,14 +11,17 @@ object GeckoVersions {
@Suppress("MaxLineLength") @Suppress("MaxLineLength")
object Gecko { object Gecko {
const val geckoview_nightly_arm = "org.mozilla.geckoview:geckoview-nightly-armeabi-v7a:${GeckoVersions.nightly_version}" const val geckoview_nightly_arm = "org.mozilla.geckoview:geckoview-nightly-armeabi-v7a:${GeckoVersions.nightly_version}"
const val geckoview_nightly_x86 = "org.mozilla.geckoview:geckoview-nightly-x86:${GeckoVersions.nightly_version}"
const val geckoview_nightly_aarch64 = "org.mozilla.geckoview:geckoview-nightly-arm64-v8a:${GeckoVersions.nightly_version}" const val geckoview_nightly_aarch64 = "org.mozilla.geckoview:geckoview-nightly-arm64-v8a:${GeckoVersions.nightly_version}"
const val geckoview_nightly_x86 = "org.mozilla.geckoview:geckoview-nightly-x86:${GeckoVersions.nightly_version}"
const val geckoview_nightly_x86_64 = "org.mozilla.geckoview:geckoview-nightly-x86_64:${GeckoVersions.nightly_version}"
const val geckoview_beta_arm = "org.mozilla.geckoview:geckoview-beta-armeabi-v7a:${GeckoVersions.beta_version}" const val geckoview_beta_arm = "org.mozilla.geckoview:geckoview-beta-armeabi-v7a:${GeckoVersions.beta_version}"
const val geckoview_beta_x86 = "org.mozilla.geckoview:geckoview-beta-x86:${GeckoVersions.beta_version}"
const val geckoview_beta_aarch64 = "org.mozilla.geckoview:geckoview-beta-arm64-v8a:${GeckoVersions.beta_version}" const val geckoview_beta_aarch64 = "org.mozilla.geckoview:geckoview-beta-arm64-v8a:${GeckoVersions.beta_version}"
const val geckoview_beta_x86 = "org.mozilla.geckoview:geckoview-beta-x86:${GeckoVersions.beta_version}"
const val geckoview_beta_x86_64 = "org.mozilla.geckoview:geckoview-beta-x86_64:${GeckoVersions.beta_version}"
const val geckoview_release_arm = "org.mozilla.geckoview:geckoview-armeabi-v7a:${GeckoVersions.release_version}" const val geckoview_release_arm = "org.mozilla.geckoview:geckoview-armeabi-v7a:${GeckoVersions.release_version}"
const val geckoview_release_x86 = "org.mozilla.geckoview:geckoview-x86:${GeckoVersions.release_version}"
const val geckoview_release_aarch64 = "org.mozilla.geckoview:geckoview-arm64-v8a:${GeckoVersions.release_version}" const val geckoview_release_aarch64 = "org.mozilla.geckoview:geckoview-arm64-v8a:${GeckoVersions.release_version}"
const val geckoview_release_x86 = "org.mozilla.geckoview:geckoview-x86:${GeckoVersions.release_version}"
const val geckoview_release_x86_64 = "org.mozilla.geckoview:geckoview-x86_64:${GeckoVersions.release_version}"
} }