Add flag to exclude Google Maps SDK in iOS - #93
Conversation
|
@jakobjohansson is attempting to deploy a commit to the lodev09 Team on Vercel. A member of the Team first needs to authorize it. |
lodev09
left a comment
There was a problem hiding this comment.
Thanks @jakobjohansson. Can we also add this to our expo config plugin for apps built with expo?
Sure 👍 Should be working now |
|
Pushed two commits on top:
Verified on Heads up: the PR description still mentions |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary
Add
$LuggMapsGoogleEnabledPodfile flag to opt out of the Google Maps iOS SDK. Apps that only useprovider="apple"currently still linkGoogleMaps.xcframework(~36 MB arm64 slice, ~10 MB shipped). Setting$LuggMapsGoogleEnabled = falsebeforepod installdrops the dependency and excludes the Google provider sources;LuggMapView.mmguards the Google branches with__has_includeand falls back to Apple Maps with a warning ifprovider="google"is requested anyway. Default behaviour is unchanged.Type of Change
Test Plan
pod installwith the flag set in a bare RN 0.86 / Expo 57 app:GoogleMapsremoved fromPodfile.lock, project compiles and Apple Maps renders. Without the flag: unchanged lock file.Screenshots / Videos
N/A
Checklist