Skip to content

Commit 96c1336

Browse files
committed
Update google-maps-in-flutter
1 parent d2111a0 commit 96c1336

File tree

16 files changed

+209
-187
lines changed

16 files changed

+209
-187
lines changed

google-maps-in-flutter/codelab_rebuild.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,30 @@ steps:
149149
- name: flutter pub upgrade
150150
path: google_maps_in_flutter
151151
flutter: pub upgrade
152+
- name: Patch android/settings.gradle
153+
path: google_maps_in_flutter/android/settings.gradle
154+
patch-u: |
155+
--- b/boring_to_beautiful/step_01/android/settings.gradle
156+
+++ a/boring_to_beautiful/step_01/android/settings.gradle
157+
@@ -18,7 +18,7 @@ pluginManagement {
158+
159+
plugins {
160+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
161+
- id "com.android.application" version "8.1.0" apply false
162+
+ id "com.android.application" version "8.7.3" apply false
163+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
164+
}
165+
- name: Patch
166+
path: google_maps_in_flutter/android/gradle/wrapper/gradle-wrapper.properties
167+
patch-u: |
168+
--- b/boring_to_beautiful/step_01/android/gradle/wrapper/gradle-wrapper.properties
169+
+++ a/boring_to_beautiful/step_01/android/gradle/wrapper/gradle-wrapper.properties
170+
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
171+
distributionPath=wrapper/dists
172+
zipStoreBase=GRADLE_USER_HOME
173+
zipStorePath=wrapper/dists
174+
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
175+
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
152176
- name: build Android
153177
platforms: [ macos ]
154178
path: google_maps_in_flutter
@@ -1404,7 +1428,7 @@ steps:
14041428
}
14051429
14061430
@override
1407-
@@ -46,15 +58,16 @@ class _MyAppState extends State<MyApp> {
1431+
@@ -45,15 +57,16 @@ class _MyAppState extends State<MyApp> {
14081432
),
14091433
home: Scaffold(
14101434
appBar: AppBar(

google-maps-in-flutter/step_3/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

google-maps-in-flutter/step_3/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.1.0" apply false
21+
id "com.android.application" version "8.7.3" apply false
2222
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

google-maps-in-flutter/step_3/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 57 additions & 57 deletions
Large diffs are not rendered by default.

google-maps-in-flutter/step_3/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MyApp extends StatelessWidget {
4545
// This works for code too, not just values: Most code changes can be
4646
// tested with just a hot reload.
4747
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
48-
48+
useMaterial3: true,
4949
),
5050
home: const MyHomePage(title: 'Flutter Demo Home Page'),
5151
);

google-maps-in-flutter/step_3/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies:
3434
# The following adds the Cupertino Icons font to your application.
3535
# Use with the CupertinoIcons class for iOS style icons.
3636
cupertino_icons: ^1.0.8
37-
google_maps_flutter: ^2.9.0
37+
google_maps_flutter: ^2.10.0
3838

3939
dev_dependencies:
4040
flutter_test:

google-maps-in-flutter/step_4/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

google-maps-in-flutter/step_4/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.1.0" apply false
21+
id "com.android.application" version "8.7.3" apply false
2222
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

google-maps-in-flutter/step_4/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 57 additions & 57 deletions
Large diffs are not rendered by default.

google-maps-in-flutter/step_4/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class _MyAppState extends State<MyApp> {
4141
Widget build(BuildContext context) {
4242
return MaterialApp(
4343
theme: ThemeData(
44-
4544
colorSchemeSeed: Colors.green[700],
4645
),
4746
home: Scaffold(

0 commit comments

Comments
 (0)