Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iskakaushik/d97da290a419d9e38f60ec14a98b3e6c to your computer and use it in GitHub Desktop.
Save iskakaushik/d97da290a419d9e38f60ec14a98b3e6c to your computer and use it in GitHub Desktop.
diff --git a/android/app/build.gradle b/android/app/build.gradle
index d45d3b6..79bb62c 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -55,6 +55,7 @@ flutter {
}
dependencies {
+ implementation("com.google.android.gms:play-services-tasks:16.0.1")
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
diff --git a/android/build.gradle b/android/build.gradle
index bb8a303..f3a4519 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -17,6 +17,17 @@ allprojects {
}
rootProject.buildDir = '../build'
+subprojects {
+ project.configurations.all {
+ resolutionStrategy.eachDependency { details ->
+ if (details.requested.group == 'com.google.android.gms'
+ && details.requested.name.contains('play-services-base')) {
+ details.useVersion "16.0.1"
+ }
+ }
+ }
+}
+
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
diff --git a/pubspec.lock b/pubspec.lock
index 37296c4..3d677b2 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -22,13 +22,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
- cloud_firestore:
- dependency: "direct main"
- description:
- name: cloud_firestore
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.9.10"
collection:
dependency: transitive
description:
@@ -43,13 +36,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
- firebase_core:
- dependency: transitive
- description:
- name: firebase_core
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.3.1+1"
flutter:
dependency: "direct main"
description: flutter
@@ -193,4 +179,4 @@ packages:
version: "2.0.8"
sdks:
dart: ">=2.2.0 <3.0.0"
- flutter: ">=1.2.0 <2.0.0"
+ flutter: ">=0.11.9 <2.0.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index e0d1b35..2a93a61 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -8,7 +8,6 @@ environment:
dependencies:
flutter:
sdk: flutter
- cloud_firestore: ^0.9.7
cupertino_icons: ^0.1.2
google_maps_flutter: ^0.5.0
google_maps_webservice: ^0.0.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment