Skip to content

Commit

Permalink
Setup GeckoView maven dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo committed May 3, 2018
1 parent dfc685d commit 8edb44b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
37 changes: 37 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,48 @@ android {
lintOptions {
lintConfig file("${rootDir}/config/lint.xml")
}

flavorDimensions "abi"

productFlavors {
x86 {
dimension "abi"
}

arm {
dimension "abi"
}

aarch64 {
dimension "abi"
}
}
}

repositories {
// GeckoView ARM
maven {
url "https://index.taskcluster.net/v1/task/gecko.v2.mozilla-central.nightly.${rootProject.ext.gecko['nightlyDate']}.revision.${rootProject.ext.gecko['revision']}.mobile.android-api-16-opt/artifacts/public/android/maven"
}

// GeckoView x86
maven {
url "https://index.taskcluster.net/v1/task/gecko.v2.mozilla-central.nightly.${rootProject.ext.gecko['nightlyDate']}.revision.${rootProject.ext.gecko['revision']}.mobile.android-x86-opt/artifacts/public/android/maven"
}

// GeckoView aarch64
maven {
url "https://index.taskcluster.net/v1/task/gecko.v2.mozilla-central.nightly.${rootProject.ext.gecko['nightlyDate']}.revision.${rootProject.ext.gecko['revision']}.mobile.android-aarch64-opt/artifacts/public/android/maven"
}
}

dependencies {
implementation "io.sentry:sentry-android:${rootProject.ext.dependencies['sentry']}"

armImplementation "org.mozilla:geckoview-nightly-armeabi-v7a:${rootProject.ext.gecko['version']}"
x86Implementation "org.mozilla:geckoview-nightly-x86:${rootProject.ext.gecko['version']}"
aarch64Implementation "org.mozilla:geckoview-nightly-arm64-v8a:${rootProject.ext.gecko['version']}"

implementation "com.android.support:appcompat-v7:${rootProject.ext.dependencies['supportLibraries']}"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${rootProject.ext.dependencies['kotlin']}"
implementation "com.android.support.constraint:constraint-layout:${rootProject.ext.dependencies['constraintLayout']}"
Expand Down
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ buildscript {
sentry: '1.7.3',
supportLibraries: '27.1.1',
junit: '4.12',
constraintLayout: '1.1.0'
constraintLayout: '1.1.0',
mozillaComponents: '0.5'
]

ext.gecko = [
// Discover nightly builds: https://tools.taskcluster.net/index/gecko.v2.mozilla-central.nightly
nightlyDate: '2018.04.10',
revision: 'a8061a09cd7064a8783ca9e67979d77fb52e001e',
version: '61.0.20180410100334'
]

ext.build = [
Expand Down

0 comments on commit 8edb44b

Please sign in to comment.