Skip to content

Commit 85e4d42

Browse files
authored
[google_maps_flutter_ios] Use 'let' for unmutated var (flutter#13300)
This wasn't showing up in CI due to flutter#194517. Fixes flutter#194605 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 0563606 commit 85e4d42

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/google_maps_flutter/google_maps_flutter_ios/example/ios/Runner/AppDelegate.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import UIKit
1212
_ application: UIApplication,
1313
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
1414
) -> Bool {
15-
var mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
15+
let mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
1616
GMSServices.provideAPIKey(mapsApiKey)
1717

1818
return super.application(application, didFinishLaunchingWithOptions: launchOptions)

‎packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/ios/Runner/AppDelegate.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import UIKit
1212
_ application: UIApplication,
1313
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
1414
) -> Bool {
15-
var mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
15+
let mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
1616
GMSServices.provideAPIKey(mapsApiKey)
1717

1818
return super.application(application, didFinishLaunchingWithOptions: launchOptions)

‎packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/ios/Runner/AppDelegate.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import UIKit
1212
_ application: UIApplication,
1313
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
1414
) -> Bool {
15-
var mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
15+
let mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
1616
GMSServices.provideAPIKey(mapsApiKey)
1717

1818
return super.application(application, didFinishLaunchingWithOptions: launchOptions)

‎packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/ios/Runner/AppDelegate.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import UIKit
1212
_ application: UIApplication,
1313
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
1414
) -> Bool {
15-
var mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
15+
let mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
1616
GMSServices.provideAPIKey(mapsApiKey)
1717

1818
return super.application(application, didFinishLaunchingWithOptions: launchOptions)

0 commit comments

Comments
 (0)