Skip to content

Commit 14c97ac

Browse files
[firebase_core][firebase_analytics] Fix bug with transitive lifecycle dependencies (firebase#1323)
1 parent 245fbe3 commit 14c97ac

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

packages/firebase_analytics/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 5.0.4
2+
3+
* Include lifecycle dependency as a compileOnly one on Android to resolve
4+
potential version conflicts with other transitive libraries.
5+
16
## 5.0.3
27

38
* Support the v2 Android embedding.

packages/firebase_analytics/android/build.gradle

+4-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ afterEvaluate {
6767
if (!containsEmbeddingDependencies) {
6868
android {
6969
dependencies {
70-
def lifecycle_version = "2.1.0"
71-
api "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
72-
api "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
70+
def lifecycle_version = "1.1.1"
71+
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
72+
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
73+
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
7374
}
7475
}
7576
}

packages/firebase_analytics/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for Google Analytics for Firebase, an app measuremen
33
solution that provides insight on app usage and user engagement on Android and iOS.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_analytics
6-
version: 5.0.3
6+
version: 5.0.4
77

88
flutter:
99
plugin:

packages/firebase_core/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.4.1+1
2+
3+
* Include lifecycle dependency as a compileOnly one on Android to resolve
4+
potential version conflicts with other transitive libraries.
5+
16
## 0.4.1
27

38
* Support the v2 Android embedding.

packages/firebase_core/android/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ afterEvaluate {
6868
android {
6969
dependencies {
7070
def lifecycle_version = "1.1.1"
71-
api "android.arch.lifecycle:runtime:$lifecycle_version"
72-
api "android.arch.lifecycle:common:$lifecycle_version"
73-
api "android.arch.lifecycle:common-java8:$lifecycle_version"
71+
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
72+
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
73+
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
7474
}
7575
}
7676
}

packages/firebase_core/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Core, enabling connecting to multiple
33
Firebase apps.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_core
6-
version: 0.4.1
6+
version: 0.4.1+1
77

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)