Skip to content

Commit 5786d12

Browse files
Chris Yangmormih
authored andcommitted
[url_launcher]remove AndroidX constraint (flutter#2220)
We introduced a constraint that the app uses the plugin has to be migrated to androidx. This patch removes the constraint.
1 parent 15ce322 commit 5786d12

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

packages/url_launcher/url_launcher/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.2.3
2+
3+
Android: Use android.arch.lifecycle instead of androidx.lifecycle:lifecycle in `build.gradle` to support apps that has not been migrated to AndroidX.
4+
15
## 5.2.2
26

37
* Re-land embedder v2 support with correct Flutter SDK constraints.

packages/url_launcher/url_launcher/android/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ afterEvaluate {
7474
if (!containsEmbeddingDependencies) {
7575
android {
7676
dependencies {
77-
def lifecycle_version = "2.1.0"
78-
api "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
79-
api "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
77+
def lifecycle_version = "1.1.1"
78+
api "android.arch.lifecycle:runtime:$lifecycle_version"
79+
api "android.arch.lifecycle:common:$lifecycle_version"
80+
api "android.arch.lifecycle:common-java8:$lifecycle_version"
8081
}
8182
}
8283
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
org.gradle.jvmargs=-Xmx1536M
2-
android.useAndroidX=true
3-
android.enableJetifier=true

packages/url_launcher/url_launcher/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for launching a URL on Android and iOS. Supports
33
web, phone, SMS, and email schemes.
44
author: Flutter Team <flutter-dev@googlegroups.com>
55
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher
6-
version: 5.2.2
6+
version: 5.2.3
77

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)