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

Commit dadb913

Browse files
author
Chris Yang
authored
remove android x constraint (#2221)
We introduced a constraint that the app uses the plugin has to be migrated to androidx. This patch removes the constraint.
1 parent 84dec1a commit dadb913

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

packages/android_intent/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.4+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
## 0.3.4+2
26

37
* Fix resolveActivity not respecting the provided componentName.

packages/android_intent/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 @@
1-
android.enableJetifier=true
2-
android.useAndroidX=true
31
org.gradle.jvmargs=-Xmx1536M

packages/android_intent/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: android_intent
22
description: Flutter plugin for launching Android Intents. Not supported on iOS.
33
author: Flutter Team <[email protected]>
44
homepage: https://github.com/flutter/plugins/tree/master/packages/android_intent
5-
version: 0.3.4+2
5+
version: 0.3.4+3
66

77
flutter:
88
plugin:

0 commit comments

Comments
 (0)