Skip to content

Commit b89572e

Browse files
Emmanuel GarciaEgor
authored andcommitted
Remove Gradle hacks and upgrade SDK (flutter#2651)
1 parent 843543a commit b89572e

File tree

33 files changed

+76
-307
lines changed

33 files changed

+76
-307
lines changed

packages/camera/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.5.8
2+
3+
* Remove Android dependencies fallback.
4+
* Require Flutter SDK 1.12.13+hotfix.5 or greater.
5+
16
## 0.5.7+5
27

38
* Replace deprecated `getFlutterEngine` call on Android.

packages/camera/android/build.gradle

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,3 @@ android {
4747
dependencies {
4848
testImplementation 'junit:junit:4.12'
4949
}
50-
51-
// TODO(mklim): Remove this hack once androidx.lifecycle is included on stable. https://github.com/flutter/flutter/issues/42348
52-
afterEvaluate {
53-
def containsEmbeddingDependencies = false
54-
for (def configuration : configurations.all) {
55-
for (def dependency : configuration.dependencies) {
56-
if (dependency.group == 'io.flutter' &&
57-
dependency.name.startsWith('flutter_embedding') &&
58-
dependency.isTransitive())
59-
{
60-
containsEmbeddingDependencies = true
61-
break
62-
}
63-
}
64-
}
65-
if (!containsEmbeddingDependencies) {
66-
android {
67-
dependencies {
68-
def lifecycle_version = "1.1.1"
69-
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
70-
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
71-
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
72-
}
73-
}
74-
}
75-
}

packages/camera/pubspec.yaml

Lines changed: 2 additions & 2 deletions
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.7+5
5+
version: 0.5.8
66

77
homepage: https://github.com/flutter/plugins/tree/master/packages/camera
88

@@ -30,4 +30,4 @@ flutter:
3030

3131
environment:
3232
sdk: ">=2.0.0-dev.28.0 <3.0.0"
33-
flutter: ">=1.10.0 <2.0.0"
33+
flutter: ">=1.12.13+hotfix.5 <2.0.0"

packages/e2e/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.4.1
2+
3+
* Remove Android dependencies fallback.
4+
* Require Flutter SDK 1.12.13+hotfix.5 or greater.
5+
16
## 0.4.0
27

38
* **Breaking change** Driver request_data call's response has changed to

packages/e2e/android/build.gradle

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,3 @@ android {
4040
api 'androidx.test.espresso:espresso-core:3.2.0'
4141
}
4242
}
43-
44-
// TODO(amirh): Remove this hack once androidx.lifecycle is included on stable. https://github.com/flutter/flutter/issues/42348
45-
afterEvaluate {
46-
def containsEmbeddingDependencies = false
47-
for (def configuration : configurations.all) {
48-
for (def dependency : configuration.dependencies) {
49-
if (dependency.group == 'io.flutter' &&
50-
dependency.name.startsWith('flutter_embedding') &&
51-
dependency.isTransitive())
52-
{
53-
containsEmbeddingDependencies = true
54-
break
55-
}
56-
}
57-
}
58-
if (!containsEmbeddingDependencies) {
59-
android {
60-
dependencies {
61-
def lifecycle_version = "2.1.0"
62-
api "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
63-
api "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
64-
}
65-
}
66-
}
67-
}

packages/e2e/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: e2e
22
description: Runs tests that use the flutter_test API as integration tests.
3-
version: 0.4.0
3+
version: 0.4.1
44
homepage: https://github.com/flutter/plugins/tree/master/packages/e2e
55

66
environment:
77
sdk: ">=2.1.0 <3.0.0"
8-
flutter: ">=1.10.0 <2.0.0"
8+
flutter: ">=1.12.13+hotfix.5 <2.0.0"
99

1010
dependencies:
1111
flutter:

packages/in_app_purchase/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.3.2
2+
3+
* Remove Android dependencies fallback.
4+
* Require Flutter SDK 1.12.13+hotfix.5 or greater.
5+
16
## 0.3.1+2
27

38
* Fix potential casting crash on Android v1 embedding when registering life cycle callbacks.

packages/in_app_purchase/android/build.gradle

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,3 @@ dependencies {
4141
androidTestImplementation 'androidx.test:runner:1.1.1'
4242
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
4343
}
44-
45-
// TODO(cyanglaz): Remove this hack once androidx.lifecycle is included on stable. https://github.com/flutter/flutter/issues/42348
46-
afterEvaluate {
47-
def containsEmbeddingDependencies = false
48-
for (def configuration : configurations.all) {
49-
for (def dependency : configuration.dependencies) {
50-
if (dependency.group == 'io.flutter' &&
51-
dependency.name.startsWith('flutter_embedding') &&
52-
dependency.isTransitive())
53-
{
54-
containsEmbeddingDependencies = true
55-
break
56-
}
57-
}
58-
}
59-
if (!containsEmbeddingDependencies) {
60-
android {
61-
dependencies {
62-
def lifecycle_version = "1.1.1"
63-
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
64-
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
65-
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
66-
}
67-
}
68-
}
69-
}

packages/in_app_purchase/pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: in_app_purchase
22
description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase
4-
version: 0.3.1+2
5-
4+
version: 0.3.2
65

76
dependencies:
87
async: ^2.0.8
@@ -37,4 +36,4 @@ flutter:
3736

3837
environment:
3938
sdk: ">=2.3.0 <3.0.0"
40-
flutter: ">=1.10.0 <2.0.0"
39+
flutter: ">=1.12.13+hotfix.5 <2.0.0"

packages/ios_platform_images/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.1.1
2+
3+
* Remove Android dependencies fallback.
4+
* Require Flutter SDK 1.12.13+hotfix.5 or greater.
5+
16
## 0.1.0+2
27

38
* Make the pedantic dev_dependency explicit.

0 commit comments

Comments
 (0)