Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 84dec1a

Browse files
author
Chris Yang
authored
[url_launcher]remove AndroidX constraint (#2220)
We introduced a constraint that the app uses the plugin has to be migrated to androidx. This patch removes the constraint.
1 parent a79b89c commit 84dec1a

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

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 <[email protected]>
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)