Skip to content

Commit f427470

Browse files
committed
Update google-maps-in-flutter
1 parent a829575 commit f427470

File tree

19 files changed

+242
-224
lines changed

19 files changed

+242
-224
lines changed

google-maps-in-flutter/codelab_rebuild.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ steps:
2828
flutter: pub add google_maps_flutter
2929
- name: Remove the README.md
3030
rm: google_maps_in_flutter/README.md
31+
- name: Add .gemini directory
32+
mkdir: google_maps_in_flutter/.gemini
33+
- name: Add .gemini/settings.json
34+
path: google_maps_in_flutter/.gemini/settings.json
35+
replace-contents: |
36+
{
37+
"mcpServers": {
38+
"dart": {
39+
"command": "dart",
40+
"args": [
41+
"mcp-server"
42+
]
43+
}
44+
}
45+
}
3146
- name: VSCode config
3247
path: google_maps_in_flutter
3348
mkdir: .vscode
@@ -47,24 +62,6 @@ steps:
4762
}
4863
]
4964
}
50-
- name: Patch android/app/build.gradle.kts
51-
path: google_maps_in_flutter/android/app/build.gradle.kts
52-
patch-u: |
53-
--- b/google-maps-in-flutter/step_3/android/app/build.gradle
54-
+++ a/google-maps-in-flutter/step_3/android/app/build.gradle
55-
@@ -22,9 +22,9 @@ android {
56-
defaultConfig {
57-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
58-
applicationId = "com.example.google_maps_in_flutter"
59-
- // You can update the following values to match your application needs.
60-
- // For more information, see: https://flutter.dev/to/review-gradle-config.
61-
- minSdk = flutter.minSdkVersion
62-
+ // Minimum Android version for Google Maps SDK
63-
+ // https://developers.google.com/maps/flutter-package/config#android
64-
+ minSdk = 21
65-
targetSdk = flutter.targetSdkVersion
66-
versionCode = flutter.versionCode
67-
versionName = flutter.versionName
6865
- name: Patch ios/Podfile
6966
platforms: [ macos ]
7067
path: google_maps_in_flutter/ios/Podfile
@@ -74,12 +71,15 @@ steps:
7471
@@ -1,5 +1,6 @@
7572
-# Uncomment this line to define a global platform for your project
7673
-# platform :ios, '13.0'
77-
+# Google Maps SDK requires platform version 14
74+
+# Google Maps SDK for iOS requires iOS 16.0
7875
+# https://developers.google.com/maps/flutter-package/config#ios
79-
+platform :ios, '14.0'
76+
+platform :ios, '16.0'
8077
8178
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
8279
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
80+
- name: Patch ios/Runner.xcodeproj/project.pbxproj
81+
xcode-project-path: google_maps_in_flutter/ios/Runner.xcodeproj
82+
iphoneos-deployment-target: "16.0"
8383
- name: Patch ios/Flutter/AppFrameworkInfo.plist
8484
path: google_maps_in_flutter/ios/Flutter/AppFrameworkInfo.plist
8585
patch-u: |
@@ -90,7 +90,7 @@ steps:
9090
<string>1.0</string>
9191
<key>MinimumOSVersion</key>
9292
- <string>13.0</string>
93-
+ <string>14.0</string>
93+
+ <string>16.0</string>
9494
</dict>
9595
</plist>
9696
- name: Patch lib/main.dart

google-maps-in-flutter/step_3/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ migrate_working_dir/
2727
**/doc/api/
2828
**/ios/Flutter/.last_build_id
2929
.dart_tool/
30-
.flutter-plugins
3130
.flutter-plugins-dependencies
3231
.pub-cache/
3332
.pub/
3433
/build/
34+
/coverage/
3535

3636
# Symbolication related
3737
app.*.symbols

google-maps-in-flutter/step_3/android/app/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ android {
2222
defaultConfig {
2323
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2424
applicationId = "com.example.google_maps_in_flutter"
25-
// Minimum Android version for Google Maps SDK
26-
// https://developers.google.com/maps/flutter-package/config#android
27-
minSdk = 21
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
2828
targetSdk = flutter.targetSdkVersion
2929
versionCode = flutter.versionCode
3030
versionName = flutter.versionName

google-maps-in-flutter/step_3/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>14.0</string>
24+
<string>16.0</string>
2525
</dict>
2626
</plist>

google-maps-in-flutter/step_3/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Google Maps SDK requires platform version 14
1+
# Google Maps SDK for iOS requires iOS 16.0
22
# https://developers.google.com/maps/flutter-package/config#ios
3-
platform :ios, '14.0'
3+
platform :ios, '16.0'
44

55
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
66
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

0 commit comments

Comments
 (0)