You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ios)!: integrate native dependencies via Swift Package Manager
GoogleMaps, GoogleMapsUtils and SVGKit are now resolved via SPM through
react-native's spm_dependency helper instead of CocoaPods, which makes the
svgkit patch script obsolete. The pods have to be installed as frameworks,
the Expo config plugin sets `ios.useFrameworks` to `dynamic` and removes the
svgkit block generated by previous plugin versions from the Podfile.
BREAKING CHANGE: Requires react-native >= 0.87.0.
Bare RN iOS apps must install pods as frameworks (`use_frameworks!`, either
`:dynamic` or `:static`) and remove the svgkit patch from their Podfile
(`require_relative '.../scripts/svgkit_patch'` and
`apply_svgkit_patch(installer)`). Expo apps are migrated by the config plugin.
constLEGACY_PODFILE_BLOCK=`# @generated begin react-native-google-maps-svgkit-patch - expo prebuild (DO NOT MODIFY) sync-ed16ec228929e9f6bcce5f8654ab58fb1bdadeea
# @generated end react-native-google-maps-svgkit-patch
38
+
`;
39
+
40
+
constLEGACY_MODULAR_HEADERS_BLOCK=`# @generated begin react-native-google-maps-modular-headers - expo prebuild (DO NOT MODIFY) sync-b7c1d0c0f4d0a3e1e0f2a0d6f1c4c1b0d1a2e3f4
41
+
use_modular_headers!
42
+
# @generated end react-native-google-maps-modular-headers
43
+
`;
44
+
45
+
constLEGACY_APP_DELEGATE_IMPORT=`// @generated begin react-native-google-maps-import - expo prebuild (DO NOT MODIFY) sync-3b9e722debd3c073b9705963208f8121ec9f576c
46
+
import GoogleMaps
47
+
// @generated end react-native-google-maps-import
48
+
`;
49
+
50
+
constLEGACY_APP_DELEGATE_INIT=`// @generated begin react-native-google-maps-init - expo prebuild (DO NOT MODIFY) sync-ed7def55dfd1b52fb685aa33a269aeb34fc6ab13
51
+
52
+
if let apiKey = Bundle.main.object(forInfoDictionaryKey: "MAPS_API_KEY") as? String {
53
+
GMSServices.provideAPIKey(apiKey)
54
+
}
55
+
// @generated end react-native-google-maps-init
56
+
`;
57
+
33
58
constLEGACY_APP_DELEGATE=`import UIKit
34
59
import React
35
60
@@ -45,13 +70,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
0 commit comments