packages icon indicating copy to clipboard operation
packages copied to clipboard

[google_maps_flutter] Convert plugin class to Swift

Open stuartmorgan-g opened this issue 1 month ago • 1 comments

Converts the top-level plugin class and its supporting platform view factory from Objective-C to Swift. This changes very little implementation, but lays the groundwork for future incremental conversions.

Part of https://github.com/flutter/flutter/issues/119108

Pre-Review Checklist

[^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.

stuartmorgan-g avatar Dec 01 '25 18:12 stuartmorgan-g

Well, this is fun. We appear to have a SwiftPM-style problem with CocoaPods as well if we adopt any Swift in the target:

Swift Compiler Error (Xcode): Compiling for iOS 14.0, but module 'GoogleMapsUtils' has a minimum deployment target of iOS 15.0:

It goes away if I change the podspec's s.platform = :ios, '14.0' to s.platform = :ios, '15.0', even though this is compiling the iOS 15 example app and thus shouldn't actually be compiling anything for iOS 14 regardless.

stuartmorgan-g avatar Dec 02 '25 12:12 stuartmorgan-g