Bug 1544076 - [1.1] Add lifecycle library dependency. r=nalexander,snorp
authorEugen Sawin <esawin@me73.com>
Wed, 24 Apr 2019 17:51:32 +0000
changeset 471185 45730400480e77ba6c28f4db3469eb657ddce66b
parent 471184 cda2f454e6ed0fe6a466de9de1f5ca99cfbe8d44
child 471186 347e8f1714131ff0aabaa7be1a4c72aa40dbac87
push id35912
push userbtara@mozilla.com
push dateThu, 25 Apr 2019 09:46:25 +0000
treeherdermozilla-central@0ec836eceb96 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander, snorp
bugs1544076
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1544076 - [1.1] Add lifecycle library dependency. r=nalexander,snorp Differential Revision: https://phabricator.services.mozilla.com/D28082
build.gradle
mobile/android/geckoview/build.gradle
--- a/build.gradle
+++ b/build.gradle
@@ -69,16 +69,17 @@ buildscript {
                 url repository
             }
         }
     }
 
     ext.kotlin_version = '1.2.41'
     ext.support_library_version = '28.0.0'
     ext.jacoco_version = '0.8.1'
+    ext.lifecycle_library_version = '1.1.1'
 
     if (gradle.mozconfig.substs.MOZ_ANDROID_GOOGLE_PLAY_SERVICES) {
         ext.google_play_services_version = '15.0.1'
         ext.google_play_services_cast_version = '16.0.0'
     }
 
     dependencies {
         classpath 'org.mozilla.apilint:apilint:0.2.1'
--- a/mobile/android/geckoview/build.gradle
+++ b/mobile/android/geckoview/build.gradle
@@ -215,16 +215,19 @@ tasks.withType(Javadoc) {
     }
 }
 
 dependencies {
     implementation "com.android.support:support-v4:$support_library_version"
     implementation "com.android.support:palette-v7:$support_library_version"
     implementation "org.yaml:snakeyaml:1.24:android"
 
+    implementation "android.arch.lifecycle:extensions:$lifecycle_library_version"
+    implementation "android.arch.lifecycle:common-java8:$lifecycle_library_version"
+
     testImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
     testImplementation 'junit:junit:4.12'
     testImplementation 'org.robolectric:robolectric:3.8'
     testImplementation 'org.mockito:mockito-core:1.10.19'
 
     androidTestImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
     androidTestImplementation 'com.android.support.test:runner:1.0.2'
     androidTestImplementation 'com.android.support.test:rules:1.0.2'