Skip to content

Commit 894bf79

Browse files
author
Michael Klimushyn
authored
[multiple] V2 embedding plugins use compileOnly (flutter#2232)
Fixes possible version conflict issues. This would cause runtime class not found errors if any of these plugins relied on `Lifecycle` at runtime, but they do not. Test is pending in flutter/plugin_tools#62.
1 parent 696eaf8 commit 894bf79

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

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

38
* Android: Use android.arch.lifecycle instead of androidx.lifecycle:lifecycle in `build.gradle` to support apps that has not been migrated to AndroidX.

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ afterEvaluate {
7979
android {
8080
dependencies {
8181
def lifecycle_version = "1.1.1"
82-
api "android.arch.lifecycle:runtime:$lifecycle_version"
83-
api "android.arch.lifecycle:common:$lifecycle_version"
84-
api "android.arch.lifecycle:common-java8:$lifecycle_version"
82+
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
83+
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
84+
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
8585
}
8686
}
8787
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera
22
description: A Flutter plugin for getting information about and controlling the
33
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
44
and streaming image buffers to dart.
5-
version: 0.5.6+1
5+
version: 0.5.6+2
66

77
authors:
88
- Flutter Team <[email protected]>

0 commit comments

Comments
 (0)