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

Commit fb47143

Browse files
author
Chris Yang
authored
Migrate plugins to use e2e tests. (#2282)
1 parent e3e38db commit fb47143

File tree

14 files changed

+148
-92
lines changed

14 files changed

+148
-92
lines changed

packages/google_maps_flutter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.21+12
2+
3+
* Update driver tests in the example app to e2e tests.
4+
15
## 0.5.21+11
26

37
* Define clang module for iOS, fix analyzer warnings.

packages/google_maps_flutter/android/build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,29 @@ android {
3636
implementation 'com.google.android.gms:play-services-maps:17.0.0'
3737
}
3838
}
39+
40+
// TODO(cyanglaz): Remove this hack once androidx.lifecycle is included on stable. https://github.com/flutter/flutter/issues/42348
41+
afterEvaluate {
42+
def containsEmbeddingDependencies = false
43+
for (def configuration : configurations.all) {
44+
for (def dependency : configuration.dependencies) {
45+
if (dependency.group == 'io.flutter' &&
46+
dependency.name.startsWith('flutter_embedding') &&
47+
dependency.isTransitive())
48+
{
49+
containsEmbeddingDependencies = true
50+
break
51+
}
52+
}
53+
}
54+
if (!containsEmbeddingDependencies) {
55+
android {
56+
dependencies {
57+
def lifecycle_version = "1.1.1"
58+
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
59+
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
60+
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
61+
}
62+
}
63+
}
64+
}

packages/google_maps_flutter/example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dev_dependencies:
1515
flutter_driver:
1616
sdk: flutter
1717
test: ^1.6.0
18+
e2e: ^0.2.1
1819

1920
# For information on the generic Dart part of this file, see the
2021
# following page: https://www.dartlang.org/tools/pub/pubspec

0 commit comments

Comments
 (0)