Skip to content

Commit

Permalink
[firebase_database] Support v2 android embedder. (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yang authored Nov 14, 2019
1 parent 002149d commit 2513474
Show file tree
Hide file tree
Showing 16 changed files with 682 additions and 537 deletions.
5 changes: 5 additions & 0 deletions packages/firebase_database/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.1.0

* Support Android V2 embedding.
* Migrate to using the new e2e test binding.

## 3.0.9

* Updated README instructions for contributing for consistency with other Flutterfire plugins.
Expand Down
25 changes: 25 additions & 0 deletions packages/firebase_database/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,28 @@ android {
}

apply from: file("./user-agent.gradle")

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"
}
}
}
}
Loading

0 comments on commit 2513474

Please sign in to comment.