Skip to content

Commit

Permalink
Migrate plugins to use e2e tests. (flutter#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yang authored and Park Sung Min committed Dec 17, 2019
1 parent 6b1f6d3 commit 48e9cda
Show file tree
Hide file tree
Showing 14 changed files with 148 additions and 92 deletions.
4 changes: 4 additions & 0 deletions packages/google_maps_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.21+12

* Update driver tests in the example app to e2e tests.

## 0.5.21+11

* Define clang module for iOS, fix analyzer warnings.
Expand Down
26 changes: 26 additions & 0 deletions packages/google_maps_flutter/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,29 @@ android {
implementation 'com.google.android.gms:play-services-maps:17.0.0'
}
}

// TODO(cyanglaz): Remove this hack once androidx.lifecycle is included on stable. https://github.com/flutter/flutter/issues/42348
afterEvaluate {
def containsEmbeddingDependencies = false
for (def configuration : configurations.all) {
for (def dependency : configuration.dependencies) {
if (dependency.group == 'io.flutter' &&
dependency.name.startsWith('flutter_embedding') &&
dependency.isTransitive())
{
containsEmbeddingDependencies = true
break
}
}
}
if (!containsEmbeddingDependencies) {
android {
dependencies {
def lifecycle_version = "1.1.1"
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
}
}
}
}
1 change: 1 addition & 0 deletions packages/google_maps_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dev_dependencies:
flutter_driver:
sdk: flutter
test: ^1.6.0
e2e: ^0.2.1

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

0 comments on commit 48e9cda

Please sign in to comment.