From 1d56393a59f5ef55cd1e2a9abf41f9d5aa05d6ef Mon Sep 17 00:00:00 2001 From: Luan Nico Date: Tue, 21 Jan 2020 13:56:04 -0500 Subject: [PATCH] [shared_preferences] Fixes gradle version for shared preferences (macos, web) bug on android (#2470) For some reason the version of gradle inside the android folders of the "sub packages" is different than the real one on the real shared_preferences plugin. Even though my project only depends on the main package, I get an error when I try to run it: --- .../shared_preferences/shared_preferences_macos/CHANGELOG.md | 4 ++++ .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- .../shared_preferences/shared_preferences_macos/pubspec.yaml | 2 +- .../shared_preferences/shared_preferences_web/CHANGELOG.md | 4 ++++ .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- .../shared_preferences/shared_preferences_web/pubspec.yaml | 2 +- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/shared_preferences/shared_preferences_macos/CHANGELOG.md b/packages/shared_preferences/shared_preferences_macos/CHANGELOG.md index 5a80c411894c..4b4954ad140c 100644 --- a/packages/shared_preferences/shared_preferences_macos/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.1+4 + +* Bump gradle version to avoid bugs with android projects + ## 0.0.1+3 * Update README. diff --git a/packages/shared_preferences/shared_preferences_macos/android/gradle/wrapper/gradle-wrapper.properties b/packages/shared_preferences/shared_preferences_macos/android/gradle/wrapper/gradle-wrapper.properties index 019065d1d650..caf54fa2801c 100644 --- a/packages/shared_preferences/shared_preferences_macos/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/shared_preferences/shared_preferences_macos/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip diff --git a/packages/shared_preferences/shared_preferences_macos/pubspec.yaml b/packages/shared_preferences/shared_preferences_macos/pubspec.yaml index cddc2016637d..a5bd95e5fb42 100644 --- a/packages/shared_preferences/shared_preferences_macos/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_macos/pubspec.yaml @@ -1,6 +1,6 @@ name: shared_preferences_macos description: macOS implementation of the shared_preferences plugin. -version: 0.0.1+3 +version: 0.0.1+4 homepage: https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_macos flutter: diff --git a/packages/shared_preferences/shared_preferences_web/CHANGELOG.md b/packages/shared_preferences/shared_preferences_web/CHANGELOG.md index 24ce6a32b518..120667e5e574 100644 --- a/packages/shared_preferences/shared_preferences_web/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.2+3 + +* Bump gradle version to avoid bugs with android projects + # 0.1.2+2 * Remove unused onMethodCall method. diff --git a/packages/shared_preferences/shared_preferences_web/android/gradle/wrapper/gradle-wrapper.properties b/packages/shared_preferences/shared_preferences_web/android/gradle/wrapper/gradle-wrapper.properties index 019065d1d650..caf54fa2801c 100644 --- a/packages/shared_preferences/shared_preferences_web/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/shared_preferences/shared_preferences_web/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip diff --git a/packages/shared_preferences/shared_preferences_web/pubspec.yaml b/packages/shared_preferences/shared_preferences_web/pubspec.yaml index 17a868e86a53..290001417156 100644 --- a/packages/shared_preferences/shared_preferences_web/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_web/pubspec.yaml @@ -1,7 +1,7 @@ name: shared_preferences_web description: Web platform implementation of shared_preferences homepage: https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_web -version: 0.1.2+2 +version: 0.1.2+3 flutter: plugin: