react-native-google-maps-plus 1.8.5 → 1.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +74 -129
  2. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +8 -1
  3. package/android/src/main/java/com/rngooglemapsplus/extensions/RNUserInterfaceExtension.kt +1 -1
  4. package/expoConfig/build/ios/withIosGoogleMapsPlus.js +3 -3
  5. package/ios/extensions/RNUserInterface+Extension.swift +1 -1
  6. package/lib/typescript/src/types.d.ts +1 -1
  7. package/lib/typescript/src/types.d.ts.map +1 -1
  8. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusModuleSpec.cpp +6 -0
  9. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusModuleSpec.hpp +1 -0
  10. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +6 -0
  11. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +1 -0
  12. package/nitrogen/generated/android/c++/JRNUserInterfaceStyle.hpp +3 -3
  13. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +0 -1
  14. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +0 -1
  15. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLatLng.kt +0 -1
  16. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLocation.kt +0 -1
  17. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLocationErrorCode.kt +0 -1
  18. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNMapErrorCode.kt +0 -1
  19. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera.kt +0 -1
  20. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera_bool.kt +0 -1
  21. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_bool.kt +0 -1
  22. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string.kt +0 -1
  23. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_RNLatLng.kt +0 -1
  24. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_std__string_RNLatLng.kt +0 -1
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusModuleSpec.kt +7 -1
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +7 -2
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNAndroidLocationConfig.kt +2 -1
  28. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCamera.kt +2 -1
  29. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCameraUpdate.kt +2 -1
  30. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +2 -1
  31. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmap.kt +2 -1
  32. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapGradient.kt +2 -1
  33. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapPoint.kt +2 -1
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationConfig.kt +2 -1
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorBuilding.kt +2 -1
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorLevel.kt +2 -1
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +2 -1
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNKMLayer.kt +2 -1
  39. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLng.kt +2 -1
  40. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLngBounds.kt +2 -1
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocation.kt +2 -1
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationAndroid.kt +2 -1
  43. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationConfig.kt +2 -1
  44. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationIOS.kt +2 -1
  45. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationPermissionResult.kt +2 -1
  46. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapPadding.kt +2 -1
  47. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapUiSettings.kt +2 -1
  48. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapZoomConfig.kt +2 -1
  49. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +2 -1
  50. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarkerSvg.kt +2 -1
  51. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +2 -1
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygonHole.kt +2 -1
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +2 -1
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPosition.kt +2 -1
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNRegion.kt +2 -1
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSize.kt +2 -1
  57. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotOptions.kt +2 -1
  58. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUrlTileOverlay.kt +2 -1
  59. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUserInterfaceStyle.kt +1 -1
  60. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +4 -6
  61. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusModuleSpecSwift.hpp +3 -0
  62. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +3 -0
  63. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +8 -0
  64. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec_cxx.swift +10 -1
  65. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +8 -0
  66. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +10 -1
  67. package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +15 -11
  68. package/nitrogen/generated/ios/swift/RNUserInterfaceStyle.swift +4 -4
  69. package/nitrogen/generated/shared/c++/RNUserInterfaceStyle.hpp +4 -4
  70. package/package.json +5 -3
  71. package/scripts/nitrogen-patch.js +191 -0
  72. package/scripts/svgkit_patch.rb +41 -0
  73. package/src/types.ts +1 -1
package/README.md CHANGED
@@ -1,16 +1,11 @@
1
1
  # react-native-google-maps-plus
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/react-native-google-maps-plus.svg?logo=npm&color=cb0000)](https://www.npmjs.com/package/react-native-google-maps-plus)
4
- [![Dev Release](https://img.shields.io/npm/v/react-native-google-maps-plus/dev.svg?label=dev%20release&color=orange&logo=githubactions)](https://www.npmjs.com/package/react-native-google-maps-plus)
5
- [![Release](https://github.com/pinpong/react-native-google-maps-plus/actions/workflows/release.yml/badge.svg)](https://github.com/pinpong/react-native-google-maps-plus/actions/workflows/release.yml)
6
- [![Issues](https://img.shields.io/github/issues/pinpong/react-native-google-maps-plus?logo=github)](https://github.com/pinpong/react-native-google-maps-plus/issues)
7
- [![License](https://img.shields.io/github/license/pinpong/react-native-google-maps-plus?logo=open-source-initiative&logoColor=green)](./LICENSE)
8
- [![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?logo=prettier&logoColor=white)](https://prettier.io/)
9
- [![TypeScript](https://img.shields.io/badge/%3C/%3E-TypeScript-blue.svg?logo=typescript)](https://www.typescriptlang.org/)
10
- [![Lint](https://img.shields.io/badge/lint-eslint-green.svg?logo=eslint&logoColor=white)](https://eslint.org/)
11
- [![React Native](https://img.shields.io/badge/react--native-%3E%3D0.81.0-61dafb.svg?logo=react)](https://reactnative.dev/)
12
- [![Platform: Android](https://img.shields.io/badge/platform-android-green.svg?logo=android&logoColor=white)](https://developer.android.com/)
13
- [![Platform: iOS](https://img.shields.io/badge/platform-iOS-lightgrey.svg?logo=apple&logoColor=black)](https://developer.apple.com/ios/)
4
+ [![Dev Release](https://img.shields.io/npm/v/react-native-google-maps-plus/dev.svg?label=dev%20release&color=orange)](https://www.npmjs.com/package/react-native-google-maps-plus)
5
+ [![Build](https://github.com/pinpong/react-native-google-maps-plus/actions/workflows/release.yml/badge.svg)](https://github.com/pinpong/react-native-google-maps-plus/actions/workflows/release.yml)
6
+ ![React Native](https://img.shields.io/badge/react--native-%3E%3D0.81.0-61dafb.svg?logo=react)
7
+ ![Platform: Android](https://img.shields.io/badge/android-supported-brightgreen.svg?logo=android&logoColor=white)
8
+ ![Platform: iOS](https://img.shields.io/badge/ios-supported-lightgrey.svg?logo=apple&logoColor=black)
14
9
 
15
10
  React Native wrapper for Android & iOS Google Maps SDK.
16
11
 
@@ -22,6 +17,25 @@ React Native wrapper for Android & iOS Google Maps SDK.
22
17
  yarn add react-native-google-maps-plus react-native-nitro-modules
23
18
  ```
24
19
 
20
+ **iOS**
21
+
22
+ Add this to your Podfile only for bare React Native apps.
23
+ (Not required for Expo, handled by the config plugin.)
24
+
25
+ ```ruby
26
+ post_install do |installer|
27
+ react_native_post_install(
28
+ installer,
29
+ config[:reactNativePath],
30
+ :mac_catalyst_enabled => false,
31
+ # :ccache_enabled => true
32
+ )
33
+
34
+ require_relative '../node_modules/react-native-google-maps-plus/scripts/svgkit_patch'
35
+ apply_svgkit_patch(installer)
36
+ end
37
+ ```
38
+
25
39
  ### Expo Projects
26
40
 
27
41
  Add your keys to the `app.json`.
@@ -43,148 +57,79 @@ The config plugin automatically injects them into your native Android and iOS bu
43
57
  }
44
58
  ```
45
59
 
46
- # Dependencies
47
-
48
- This package builds on native libraries for SVG rendering and Google Maps integration:
49
-
50
- - **iOS**: [SVGKit](https://github.com/SVGKit/SVGKit)
51
- - **Android**: [AndroidSVG](https://bigbadaboom.github.io/androidsvg/)
52
- - **iOS Maps SDK**: [Google Maps SDK for iOS](https://developers.google.com/maps/documentation/ios-sdk)
53
- - **Android Maps SDK**: [Google Maps SDK for Android](https://developers.google.com/maps/documentation/android-sdk)
54
- - **Maps Utility Libraries**: [Google Maps Utils for iOS](https://developers.google.com/maps/documentation/ios-sdk/utility) and [Google Maps Utils for Android](https://developers.google.com/maps/documentation/android-sdk/utility)
55
-
56
- These are automatically linked when you install the package, but you may need to clean/rebuild your native projects after first install.
57
-
58
60
  ## Setup API Key
59
61
 
60
62
  You will need a valid **Google Maps API Key** from the [Google Cloud Console](https://console.cloud.google.com/).
61
63
 
62
64
  ### Android
63
65
 
64
- It's recommend to use [Secrets Gradle Plugin](https://developers.google.com/maps/documentation/android-sdk/secrets-gradle-plugin) to securely manage your Google Maps API Key.
66
+ **Note:** These instructions apply to **bare React Native apps only**.
67
+ Expo projects should use the config plugin instead (see Expo section above).
65
68
 
66
- ---
69
+ See the official [Google Maps Android SDK configuration guide](https://developers.google.com/maps/documentation/android-sdk/config#step_3_add_your_api_key_to_the_project) for more details.
67
70
 
68
71
  ### iOS
69
72
 
70
- See the official [Google Maps iOS SDK configuration guide](https://developers.google.com/maps/documentation/ios-sdk/config#get-key) for more details.
71
-
72
- 1. Create a `Secrets.xcconfig` file inside the **ios/** folder:
73
+ **Note:** These instructions apply to **bare React Native apps only**.
74
+ Expo projects should use the config plugin instead (see Expo section above).
73
75
 
74
- ```properties
75
- MAPS_API_KEY=YOUR_IOS_MAPS_API_KEY
76
- ```
76
+ See the official [Google Maps iOS SDK configuration guide](https://developers.google.com/maps/documentation/ios-sdk/config#get-key) for more details.
77
77
 
78
- Include it in your project configuration file:
78
+ ## Dependencies & Native Documentation
79
79
 
80
- ```xcconfig
81
- #include? "Secrets.xcconfig"
82
- ```
80
+ This package is React Native wrapper around the official Google Maps SDKs.
81
+ For full API behavior, configuration options, and feature reference, please consult the native documentation:
83
82
 
84
- 2. Reference the API key in your **Info.plist**:
83
+ - **iOS Google Maps SDK**
84
+ https://developers.google.com/maps/documentation/ios-sdk
85
85
 
86
- ```xml
87
- <key>MAPS_API_KEY</key>
88
- <string>$(MAPS_API_KEY)</string>
89
- ```
86
+ - **Android Google Maps SDK**
87
+ https://developers.google.com/maps/documentation/android-sdk
90
88
 
91
- 3. Provide the key programmatically in **AppDelegate.swift**:
89
+ - **Maps Utility Libraries (iOS & Android)**
90
+ https://developers.google.com/maps/documentation/ios-sdk/utility
91
+ https://developers.google.com/maps/documentation/android-sdk/utility
92
92
 
93
- ```swift
94
- import GoogleMaps
93
+ - **SVG Rendering** (used for custom marker icons)
94
+ - iOS: https://github.com/SVGKit/SVGKit
95
+ - Android: https://bigbadaboom.github.io/androidsvg/
95
96
 
96
- @UIApplicationMain
97
- class AppDelegate: UIResponder, UIApplicationDelegate {
98
- func application(_ application: UIApplication,
99
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
100
- if let apiKey = Bundle.main.object(forInfoDictionaryKey: "MAPS_API_KEY") as? String {
101
- GMSServices.provideAPIKey(apiKey)
102
- }
103
- return true
104
- }
105
- }
106
- ```
97
+ These libraries are automatically linked during installation.
98
+ If you encounter build issues, try cleaning and rebuilding your native project.
107
99
 
108
- ---
100
+ > **Note:** This package follows the native SDKs closely. Props and behavior match the underlying Google Maps APIs whenever possible.
109
101
 
110
102
  ## Usage
111
103
 
112
- Checkout the example app in the [example](./example) folder.
113
-
114
- # Troubleshooting
115
-
116
- ## Android
117
-
118
- - **API key not found**
119
- Make sure `secrets.properties` exists under `android/` and contains your `MAPS_API_KEY`.
120
- Run `./gradlew clean` and rebuild.
121
-
122
- ## iOS
123
-
124
- - **`GMSServices must be configured before use`**
125
- Ensure your key is in `Info.plist` and/or provided via `GMSServices.provideAPIKey(...)` in `AppDelegate.swift`.
126
-
127
- - **Build fails with `Node.h`, `CSSValue.h`, or `SVGLength.h` import errors from SVGKit**
128
- SVGKit includes headers (`Node.h`, `CSSValue.h`, `SVGLength.h`) that can conflict with
129
- iOS system headers and React Native Reanimated’s internal types.
130
- You can patch them automatically in your **Podfile** inside the `post_install`
104
+ Basic map:
105
+
106
+ ```tsx
107
+ import React from 'react';
108
+ import { GoogleMapsView } from 'react-native-google-maps-plus';
109
+
110
+ export default function App() {
111
+ return (
112
+ <GoogleMapsView
113
+ style={{ flex: 1 }}
114
+ initialProps={{
115
+ camera: {
116
+ center: { latitude: 37.7749, longitude: -122.4194 },
117
+ zoom: 12,
118
+ },
119
+ }}
120
+ markers={[
121
+ {
122
+ id: '1',
123
+ zIndex: 1,
124
+ coordinate: { latitude: 37.7749, longitude: -122.4194 },
125
+ },
126
+ ]}
127
+ />
128
+ );
129
+ }
130
+ ```
131
131
 
132
- ```ruby
133
- post_install do |installer|
134
- react_native_post_install(
135
- installer,
136
- config[:reactNativePath],
137
- :mac_catalyst_enabled => false,
138
- )
139
- # Force iOS 16+ to avoid deployment target warnings
140
- installer.pods_project.targets.each do |target|
141
- target.build_configurations.each do |config|
142
- config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
143
- end
144
- end
145
-
146
- # --- SVGKit Patch ---
147
- require 'fileutils'
148
- svgkit_path = File.join(installer.sandbox.pod_dir('SVGKit'), 'Source')
149
-
150
- # node fix
151
- Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|
152
- FileUtils.chmod("u+w", file)
153
- text = File.read(file)
154
- new_contents = text.gsub('#import "Node.h"', '#import "SVGKit/Node.h"')
155
- File.open(file, 'w') { |f| f.write(new_contents) }
156
- # puts "Patched Node import in: #{file}"
157
- end
158
-
159
- # import CSSValue.h
160
- Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|
161
- FileUtils.chmod("u+w", file)
162
- text = File.read(file)
163
- new_contents = text.gsub('#import "CSSValue.h"', '#import "SVGKit/CSSValue.h"')
164
- File.open(file, 'w') { |f| f.write(new_contents) }
165
- # puts "Patched CSSValue import in: #{file}"
166
- end
167
-
168
- # import SVGLength.h
169
- Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|
170
- FileUtils.chmod("u+w", file)
171
- text = File.read(file)
172
- new_contents = text.gsub('#import "SVGLength.h"', '#import "SVGKit/SVGLength.h"')
173
- File.open(file, 'w') { |f| f.write(new_contents) }
174
- # puts "Patched SVGLength import in: #{file}"
175
- end
176
- end
177
- ```
178
-
179
- After applying this, run:
180
-
181
- ```sh
182
- cd ios && pod install --repo-update
183
- ```
184
-
185
- - **Maps not rendering**
186
- - Check that your API key has **Maps SDK for Android/iOS** enabled in Google Cloud Console.
187
- - Make sure the key is not restricted to wrong bundle IDs or SHA1 fingerprints.
132
+ Check out the example app in the [example](./example) folder.
188
133
 
189
134
  ## Contributing
190
135
 
@@ -345,7 +345,14 @@ class GoogleMapsViewImpl(
345
345
  var userInterfaceStyle: Int? = null
346
346
  set(value) {
347
347
  field = value
348
- onUi { googleMap?.mapColorScheme = value ?: MapColorScheme.FOLLOW_SYSTEM }
348
+ onUi {
349
+ try {
350
+ // / not supported when liteMode enabled on latest renderer
351
+ googleMap?.mapColorScheme = value ?: MapColorScheme.FOLLOW_SYSTEM
352
+ } catch (_: UnsupportedOperationException) {
353
+ // / ignore
354
+ }
355
+ }
349
356
  }
350
357
 
351
358
  var mapZoomConfig: RNMapZoomConfig? = null
@@ -7,6 +7,6 @@ fun RNUserInterfaceStyle?.toMapColorScheme(): Int? =
7
7
  when (this) {
8
8
  RNUserInterfaceStyle.LIGHT -> MapColorScheme.LIGHT
9
9
  RNUserInterfaceStyle.DARK -> MapColorScheme.DARK
10
- RNUserInterfaceStyle.DEFAULT -> MapColorScheme.FOLLOW_SYSTEM
10
+ RNUserInterfaceStyle.SYSTEM -> MapColorScheme.FOLLOW_SYSTEM
11
11
  null -> null
12
12
  }
@@ -26,16 +26,16 @@ var withIosGoogleMapsPlus = function (config, props) {
26
26
  comment: '#',
27
27
  }).contents;
28
28
  }
29
- var patchSnippet = "\n # Force iOS 16+ to avoid deployment target warnings\n installer.pods_project.targets.each do |target|\n target.build_configurations.each do |config|\n config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'\n end\n end\n\n # --- SVGKit Patch ---\n require 'fileutils'\n svgkit_path = File.join(installer.sandbox.pod_dir('SVGKit'), 'Source')\n\n # --- Patch Node.h imports ---\n Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|\n FileUtils.chmod(\"u+w\", file)\n text = File.read(file)\n new_contents = text.gsub('#import \"Node.h\"', '#import \"SVGKit/Node.h\"')\n File.open(file, 'w') { |f| f.write(new_contents) }\n end\n\n # --- Patch CSSValue.h imports ---\n Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|\n FileUtils.chmod(\"u+w\", file)\n text = File.read(file)\n new_contents = text.gsub('#import \"CSSValue.h\"', '#import \"SVGKit/CSSValue.h\"')\n File.open(file, 'w') { |f| f.write(new_contents) }\n end\n\n # --- Patch SVGLength.h imports ---\n Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|\n FileUtils.chmod(\"u+w\", file)\n text = File.read(file)\n new_contents = text.gsub('#import \"SVGLength.h\"', '#import \"SVGKit/SVGLength.h\"')\n File.open(file, 'w') { |f| f.write(new_contents) }\n end\n ";
29
+ var podFilePatch = "\n require_relative '../node_modules/react-native-google-maps-plus/scripts/svgkit_patch'\n apply_svgkit_patch(installer)\n ";
30
30
  if (src.includes('post_install do |installer|')) {
31
31
  src = src.replace(/post_install do \|installer\|([\s\S]*?)end/, function (match, inner) {
32
32
  if (inner.includes('SVGKit Patch'))
33
33
  return match; // idempotent
34
- return "post_install do |installer|".concat(inner, "\n").concat(patchSnippet, "\nend");
34
+ return "post_install do |installer|".concat(inner, "\n").concat(podFilePatch, "\nend");
35
35
  });
36
36
  }
37
37
  else {
38
- src += "\npost_install do |installer|\n".concat(patchSnippet, "\nend\n");
38
+ src += "\npost_install do |installer|\n".concat(podFilePatch, "\nend\n");
39
39
  }
40
40
  conf.modResults.contents = src;
41
41
  return conf;
@@ -7,7 +7,7 @@ extension RNUserInterfaceStyle {
7
7
  return .light
8
8
  case .dark:
9
9
  return .dark
10
- case .default:
10
+ case .system:
11
11
  return .unspecified
12
12
  @unknown default:
13
13
  return .unspecified
@@ -49,7 +49,7 @@ export type RNMapPadding = {
49
49
  right: number;
50
50
  };
51
51
  export type RNMapType = 'none' | 'normal' | 'hybrid' | 'satellite' | 'terrain';
52
- export type RNUserInterfaceStyle = 'light' | 'dark' | 'default';
52
+ export type RNUserInterfaceStyle = 'light' | 'dark' | 'system';
53
53
  export type RNFeatureType = string;
54
54
  export type RNElementType = string;
55
55
  export type RNVisibility = string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,M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leSpec::toString() {
50
+ static const auto method = javaClassStatic()->getMethod<jni::JString()>("toString");
51
+ auto javaString = method(_javaPart);
52
+ return javaString->toStdString();
53
+ }
54
+
49
55
  // Properties
50
56
 
51
57
 
@@ -41,6 +41,7 @@ namespace margelo::nitro::rngooglemapsplus {
41
41
  public:
42
42
  size_t getExternalMemorySize() noexcept override;
43
43
  void dispose() noexcept override;
44
+ std::string toString() override;
44
45
 
45
46
  public:
46
47
  inline const jni::global_ref<JHybridRNGoogleMapsPlusModuleSpec::javaobject>& getJavaPart() const noexcept {
@@ -225,6 +225,12 @@ namespace margelo::nitro::rngooglemapsplus {
225
225
  method(_javaPart);
226
226
  }
227
227
 
228
+ std::string JHybridRNGoogleMapsPlusViewSpec::toString() {
229
+ static const auto method = javaClassStatic()->getMethod<jni::JString()>("toString");
230
+ auto javaString = method(_javaPart);
231
+ return javaString->toStdString();
232
+ }
233
+
228
234
  // Properties
229
235
  std::optional<RNInitialProps> JHybridRNGoogleMapsPlusViewSpec::getInitialProps() {
230
236
  static const auto method = javaClassStatic()->getMethod<jni::local_ref<JRNInitialProps>()>("getInitialProps");
@@ -41,6 +41,7 @@ namespace margelo::nitro::rngooglemapsplus {
41
41
  public:
42
42
  size_t getExternalMemorySize() noexcept override;
43
43
  void dispose() noexcept override;
44
+ std::string toString() override;
44
45
 
45
46
  public:
46
47
  inline const jni::global_ref<JHybridRNGoogleMapsPlusViewSpec::javaobject>& getJavaPart() const noexcept {
@@ -43,15 +43,15 @@ namespace margelo::nitro::rngooglemapsplus {
43
43
  static const auto clazz = javaClassStatic();
44
44
  static const auto fieldLIGHT = clazz->getStaticField<JRNUserInterfaceStyle>("LIGHT");
45
45
  static const auto fieldDARK = clazz->getStaticField<JRNUserInterfaceStyle>("DARK");
46
- static const auto fieldDEFAULT = clazz->getStaticField<JRNUserInterfaceStyle>("DEFAULT");
46
+ static const auto fieldSYSTEM = clazz->getStaticField<JRNUserInterfaceStyle>("SYSTEM");
47
47
 
48
48
  switch (value) {
49
49
  case RNUserInterfaceStyle::LIGHT:
50
50
  return clazz->getStaticFieldValue(fieldLIGHT);
51
51
  case RNUserInterfaceStyle::DARK:
52
52
  return clazz->getStaticFieldValue(fieldDARK);
53
- case RNUserInterfaceStyle::DEFAULT:
54
- return clazz->getStaticFieldValue(fieldDEFAULT);
53
+ case RNUserInterfaceStyle::SYSTEM:
54
+ return clazz->getStaticFieldValue(fieldSYSTEM);
55
55
  default:
56
56
  std::string stringValue = std::to_string(static_cast<int>(value));
57
57
  throw std::invalid_argument("Invalid enum value (" + stringValue + "!");
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,6 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
13
  import dalvik.annotation.optimization.FastNative
15
14
 
16
15
 
@@ -10,7 +10,8 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
13
+ import com.margelo.nitro.core.Promise
14
+ import com.margelo.nitro.core.HybridObject
14
15
 
15
16
  /**
16
17
  * A Kotlin class representing the RNGoogleMapsPlusModule HybridObject.
@@ -36,6 +37,11 @@ abstract class HybridRNGoogleMapsPlusModuleSpec: HybridObject() {
36
37
  super.updateNative(hybridData)
37
38
  }
38
39
 
40
+ // Default implementation of `HybridObject.toString()`
41
+ override fun toString(): String {
42
+ return "[HybridObject RNGoogleMapsPlusModule]"
43
+ }
44
+
39
45
  // Properties
40
46
 
41
47
 
@@ -10,8 +10,8 @@ package com.rngooglemapsplus
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import com.margelo.nitro.core.*
14
- import com.margelo.nitro.views.*
13
+ import com.margelo.nitro.core.Promise
14
+ import com.margelo.nitro.views.HybridView
15
15
 
16
16
  /**
17
17
  * A Kotlin class representing the RNGoogleMapsPlusView HybridObject.
@@ -37,6 +37,11 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
37
37
  super.updateNative(hybridData)
38
38
  }
39
39
 
40
+ // Default implementation of `HybridObject.toString()`
41
+ override fun toString(): String {
42
+ return "[HybridObject RNGoogleMapsPlusView]"
43
+ }
44
+
40
45
  // Properties
41
46
  @get:DoNotStrip
42
47
  @get:Keep
@@ -9,7 +9,6 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
- import com.margelo.nitro.core.*
13
12
 
14
13
 
15
14
  /**
@@ -28,6 +27,8 @@ data class RNAndroidLocationConfig(
28
27
  @Keep
29
28
  val minUpdateInterval: Double?
30
29
  ) {
30
+ /* primary constructor */
31
+
31
32
  private companion object {
32
33
  /**
33
34
  * Constructor called from C++
@@ -9,7 +9,6 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
- import com.margelo.nitro.core.*
13
12
 
14
13
 
15
14
  /**
@@ -31,6 +30,8 @@ data class RNCamera(
31
30
  @Keep
32
31
  val tilt: Double
33
32
  ) {
33
+ /* primary constructor */
34
+
34
35
  private companion object {
35
36
  /**
36
37
  * Constructor called from C++
@@ -9,7 +9,6 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
- import com.margelo.nitro.core.*
13
12
 
14
13
 
15
14
  /**
@@ -31,6 +30,8 @@ data class RNCameraUpdate(
31
30
  @Keep
32
31
  val tilt: Double?
33
32
  ) {
33
+ /* primary constructor */
34
+
34
35
  private companion object {
35
36
  /**
36
37
  * Constructor called from C++