react-native-google-maps-plus 1.0.1 → 1.0.2

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 (179) hide show
  1. package/{GoogleMapsNitro.podspec → RNGoogleMapsPlus.podspec} +2 -2
  2. package/android/CMakeLists.txt +3 -3
  3. package/android/build.gradle +4 -4
  4. package/android/gradle.properties +8 -8
  5. package/android/src/main/cpp/cpp-adapter.cpp +2 -2
  6. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/Color.kt +1 -1
  7. package/android/src/main/java/com/{googlemapsnitro/GoogleMapsNitroViewImpl.kt → rngooglemapsplus/GoogleMapsViewImpl.kt} +7 -7
  8. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/LocationHandler.kt +1 -1
  9. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapMarker.kt +1 -1
  10. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolygon.kt +1 -1
  11. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolyline.kt +1 -1
  12. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/PermissionHandler.kt +1 -1
  13. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/PlayServicesHandler.kt +1 -1
  14. package/android/src/main/java/com/{googlemapsnitro/HybridGoogleMapsNitroModule.kt → rngooglemapsplus/RNGoogleMapsPlusModule.kt} +3 -3
  15. package/android/src/main/java/com/{googlemapsnitro/GoogleMapsNitroPackage.kt → rngooglemapsplus/RNGoogleMapsPlusPackage.kt} +6 -6
  16. package/android/src/main/java/com/{googlemapsnitro/HybridGoogleMapsNitroView.kt → rngooglemapsplus/RNGoogleMapsPlusView.kt} +4 -4
  17. package/ios/{GoogleMapNitroViewImpl.swift → GoogleMapViewImpl.swift} +1 -1
  18. package/ios/{HybridGoogleMapsNitroModule.swift → RNGoogleMapsPlusModule.swift} +1 -1
  19. package/ios/{HybridGoogleMapsNitroView.swift → RNGoogleMapsPlusView.swift} +3 -3
  20. package/lib/module/RNGoogleMapsPlusModule.nitro.js +4 -0
  21. package/lib/module/RNGoogleMapsPlusModule.nitro.js.map +1 -0
  22. package/lib/module/RNGoogleMapsPlusView.nitro.js +4 -0
  23. package/lib/module/RNGoogleMapsPlusView.nitro.js.map +1 -0
  24. package/lib/module/index.js +3 -3
  25. package/lib/module/index.js.map +1 -1
  26. package/lib/typescript/src/{GoogleMapsNitroModule.nitro.d.ts → RNGoogleMapsPlusModule.nitro.d.ts} +2 -2
  27. package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -0
  28. package/lib/typescript/src/{GoogleMapsNitroView.nitro.d.ts → RNGoogleMapsPlusView.nitro.d.ts} +4 -4
  29. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -0
  30. package/lib/typescript/src/index.d.ts +5 -5
  31. package/lib/typescript/src/index.d.ts.map +1 -1
  32. package/lib/typescript/src/types.d.ts +2 -2
  33. package/lib/typescript/src/types.d.ts.map +1 -1
  34. package/nitro.json +11 -11
  35. package/nitrogen/generated/android/{GoogleMapsNitro+autolinking.cmake → RNGoogleMapsPlus+autolinking.cmake} +15 -15
  36. package/nitrogen/generated/android/{GoogleMapsNitro+autolinking.gradle → RNGoogleMapsPlus+autolinking.gradle} +3 -3
  37. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +70 -0
  38. package/nitrogen/generated/android/{GoogleMapsNitroOnLoad.hpp → RNGoogleMapsPlusOnLoad.hpp} +5 -5
  39. package/nitrogen/generated/android/c++/JFunc_void_RNLatLng.hpp +4 -4
  40. package/nitrogen/generated/android/c++/JFunc_void_RNLocation.hpp +4 -4
  41. package/nitrogen/generated/android/c++/JFunc_void_RNLocationErrorCode.hpp +4 -4
  42. package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode.hpp +4 -4
  43. package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +4 -4
  44. package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +4 -4
  45. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +4 -4
  46. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroModuleSpec.cpp → JHybridRNGoogleMapsPlusModuleSpec.cpp} +16 -16
  47. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroModuleSpec.hpp → JHybridRNGoogleMapsPlusModuleSpec.hpp} +12 -12
  48. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroViewSpec.cpp → JHybridRNGoogleMapsPlusViewSpec.cpp} +72 -72
  49. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroViewSpec.hpp → JHybridRNGoogleMapsPlusViewSpec.hpp} +12 -12
  50. package/nitrogen/generated/android/c++/JRNAndroidLocationPermissionResult.hpp +3 -3
  51. package/nitrogen/generated/android/c++/JRNCamera.hpp +3 -3
  52. package/nitrogen/generated/android/c++/JRNIOSPermissionResult.hpp +3 -3
  53. package/nitrogen/generated/android/c++/JRNLatLng.hpp +3 -3
  54. package/nitrogen/generated/android/c++/JRNLineCapType.hpp +3 -3
  55. package/nitrogen/generated/android/c++/JRNLineJoinType.hpp +3 -3
  56. package/nitrogen/generated/android/c++/JRNLocation.hpp +3 -3
  57. package/nitrogen/generated/android/c++/JRNLocationErrorCode.hpp +3 -3
  58. package/nitrogen/generated/android/c++/JRNLocationPermissionResult.hpp +3 -3
  59. package/nitrogen/generated/android/c++/JRNMapErrorCode.hpp +3 -3
  60. package/nitrogen/generated/android/c++/JRNMapPadding.hpp +3 -3
  61. package/nitrogen/generated/android/c++/JRNMarker.hpp +3 -3
  62. package/nitrogen/generated/android/c++/JRNPolygon.hpp +3 -3
  63. package/nitrogen/generated/android/c++/JRNPolyline.hpp +3 -3
  64. package/nitrogen/generated/android/c++/JRNPosition.hpp +3 -3
  65. package/nitrogen/generated/android/c++/JRNRegion.hpp +3 -3
  66. package/nitrogen/generated/android/c++/JRNUserInterfaceStyle.hpp +3 -3
  67. package/nitrogen/generated/android/c++/views/{JHybridGoogleMapsNitroViewStateUpdater.cpp → JHybridRNGoogleMapsPlusViewStateUpdater.cpp} +14 -14
  68. package/nitrogen/generated/android/c++/views/{JHybridGoogleMapsNitroViewStateUpdater.hpp → JHybridRNGoogleMapsPlusViewStateUpdater.hpp} +11 -11
  69. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLatLng.kt +1 -1
  70. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLocation.kt +1 -1
  71. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLocationErrorCode.kt +1 -1
  72. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNMapErrorCode.kt +1 -1
  73. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNRegion_RNCamera_bool.kt +1 -1
  74. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_bool.kt +1 -1
  75. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_std__string.kt +1 -1
  76. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/HybridGoogleMapsNitroModuleSpec.kt → rngooglemapsplus/HybridRNGoogleMapsPlusModuleSpec.kt} +6 -6
  77. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/HybridGoogleMapsNitroViewSpec.kt → rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt} +6 -6
  78. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNAndroidLocationPermissionResult.kt +1 -1
  79. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNCamera.kt +1 -1
  80. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/GoogleMapsNitroOnLoad.kt → rngooglemapsplus/RNGoogleMapsPlusOnLoad.kt} +9 -9
  81. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNIOSPermissionResult.kt +1 -1
  82. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLatLng.kt +1 -1
  83. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLineCapType.kt +1 -1
  84. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLineJoinType.kt +1 -1
  85. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocation.kt +1 -1
  86. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocationErrorCode.kt +1 -1
  87. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocationPermissionResult.kt +1 -1
  88. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMapErrorCode.kt +1 -1
  89. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMapPadding.kt +1 -1
  90. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMarker.kt +1 -1
  91. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolygon.kt +1 -1
  92. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolyline.kt +1 -1
  93. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPosition.kt +1 -1
  94. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNRegion.kt +1 -1
  95. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNUserInterfaceStyle.kt +1 -1
  96. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/views/HybridGoogleMapsNitroViewManager.kt → rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt} +9 -9
  97. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/views/HybridGoogleMapsNitroViewStateUpdater.kt → rngooglemapsplus/views/HybridRNGoogleMapsPlusViewStateUpdater.kt} +5 -5
  98. package/nitrogen/generated/ios/{GoogleMapsNitro+autolinking.rb → RNGoogleMapsPlus+autolinking.rb} +4 -4
  99. package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Bridge.cpp → RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp} +32 -32
  100. package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Bridge.hpp → RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp} +45 -45
  101. package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Umbrella.hpp → RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp} +35 -35
  102. package/nitrogen/generated/ios/RNGoogleMapsPlusAutolinking.mm +41 -0
  103. package/nitrogen/generated/ios/{GoogleMapsNitroAutolinking.swift → RNGoogleMapsPlusAutolinking.swift} +15 -15
  104. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusModuleSpecSwift.cpp +11 -0
  105. package/nitrogen/generated/ios/c++/{HybridGoogleMapsNitroModuleSpecSwift.hpp → HybridRNGoogleMapsPlusModuleSpecSwift.hpp} +18 -18
  106. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.cpp +11 -0
  107. package/nitrogen/generated/ios/c++/{HybridGoogleMapsNitroViewSpecSwift.hpp → HybridRNGoogleMapsPlusViewSpecSwift.hpp} +32 -32
  108. package/nitrogen/generated/ios/c++/views/{HybridGoogleMapsNitroViewComponent.mm → HybridRNGoogleMapsPlusViewComponent.mm} +18 -18
  109. package/nitrogen/generated/ios/swift/Func_void_RNLatLng.swift +1 -1
  110. package/nitrogen/generated/ios/swift/Func_void_RNLocation.swift +1 -1
  111. package/nitrogen/generated/ios/swift/Func_void_RNLocationErrorCode.swift +2 -2
  112. package/nitrogen/generated/ios/swift/Func_void_RNLocationPermissionResult.swift +1 -1
  113. package/nitrogen/generated/ios/swift/Func_void_RNMapErrorCode.swift +2 -2
  114. package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera_bool.swift +1 -1
  115. package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
  116. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
  117. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
  118. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +52 -0
  119. package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroModuleSpec_cxx.swift → HybridRNGoogleMapsPlusModuleSpec_cxx.swift} +21 -21
  120. package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroViewSpec.swift → HybridRNGoogleMapsPlusViewSpec.swift} +14 -14
  121. package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroViewSpec_cxx.swift → HybridRNGoogleMapsPlusViewSpec_cxx.swift} +22 -22
  122. package/nitrogen/generated/ios/swift/RNAndroidLocationPermissionResult.swift +1 -1
  123. package/nitrogen/generated/ios/swift/RNCamera.swift +2 -2
  124. package/nitrogen/generated/ios/swift/RNIOSPermissionResult.swift +1 -1
  125. package/nitrogen/generated/ios/swift/RNLatLng.swift +2 -2
  126. package/nitrogen/generated/ios/swift/RNLineCapType.swift +1 -1
  127. package/nitrogen/generated/ios/swift/RNLineJoinType.swift +1 -1
  128. package/nitrogen/generated/ios/swift/RNLocation.swift +2 -2
  129. package/nitrogen/generated/ios/swift/RNLocationErrorCode.swift +1 -1
  130. package/nitrogen/generated/ios/swift/RNLocationPermissionResult.swift +2 -2
  131. package/nitrogen/generated/ios/swift/RNMapErrorCode.swift +1 -1
  132. package/nitrogen/generated/ios/swift/RNMapPadding.swift +2 -2
  133. package/nitrogen/generated/ios/swift/RNMarker.swift +2 -2
  134. package/nitrogen/generated/ios/swift/RNPolygon.swift +2 -2
  135. package/nitrogen/generated/ios/swift/RNPolyline.swift +2 -2
  136. package/nitrogen/generated/ios/swift/RNPosition.swift +2 -2
  137. package/nitrogen/generated/ios/swift/RNRegion.swift +2 -2
  138. package/nitrogen/generated/ios/swift/RNUserInterfaceStyle.swift +1 -1
  139. package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroModuleSpec.cpp → HybridRNGoogleMapsPlusModuleSpec.cpp} +9 -9
  140. package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroModuleSpec.hpp → HybridRNGoogleMapsPlusModuleSpec.hpp} +12 -12
  141. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +66 -0
  142. package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroViewSpec.hpp → HybridRNGoogleMapsPlusViewSpec.hpp} +23 -23
  143. package/nitrogen/generated/shared/c++/RNAndroidLocationPermissionResult.hpp +6 -6
  144. package/nitrogen/generated/shared/c++/RNCamera.hpp +10 -10
  145. package/nitrogen/generated/shared/c++/RNIOSPermissionResult.hpp +6 -6
  146. package/nitrogen/generated/shared/c++/RNLatLng.hpp +6 -6
  147. package/nitrogen/generated/shared/c++/RNLineCapType.hpp +11 -11
  148. package/nitrogen/generated/shared/c++/RNLineJoinType.hpp +11 -11
  149. package/nitrogen/generated/shared/c++/RNLocation.hpp +10 -10
  150. package/nitrogen/generated/shared/c++/RNLocationErrorCode.hpp +6 -6
  151. package/nitrogen/generated/shared/c++/RNLocationPermissionResult.hpp +14 -14
  152. package/nitrogen/generated/shared/c++/RNMapErrorCode.hpp +6 -6
  153. package/nitrogen/generated/shared/c++/RNMapPadding.hpp +6 -6
  154. package/nitrogen/generated/shared/c++/RNMarker.hpp +14 -14
  155. package/nitrogen/generated/shared/c++/RNPolygon.hpp +10 -10
  156. package/nitrogen/generated/shared/c++/RNPolyline.hpp +18 -18
  157. package/nitrogen/generated/shared/c++/RNPosition.hpp +6 -6
  158. package/nitrogen/generated/shared/c++/RNRegion.hpp +10 -10
  159. package/nitrogen/generated/shared/c++/RNUserInterfaceStyle.hpp +11 -11
  160. package/nitrogen/generated/shared/c++/views/{HybridGoogleMapsNitroViewComponent.cpp → HybridRNGoogleMapsPlusViewComponent.cpp} +42 -42
  161. package/nitrogen/generated/shared/c++/views/{HybridGoogleMapsNitroViewComponent.hpp → HybridRNGoogleMapsPlusViewComponent.hpp} +32 -32
  162. package/nitrogen/generated/shared/json/{GoogleMapsNitroViewConfig.json → RNGoogleMapsPlusViewConfig.json} +1 -1
  163. package/package.json +9 -3
  164. package/src/{GoogleMapsNitroModule.nitro.ts → RNGoogleMapsPlusModule.nitro.ts} +1 -1
  165. package/src/{GoogleMapsNitroView.nitro.ts → RNGoogleMapsPlusView.nitro.ts} +5 -5
  166. package/src/index.tsx +11 -11
  167. package/src/types.ts +2 -2
  168. package/lib/module/GoogleMapsNitroModule.nitro.js +0 -4
  169. package/lib/module/GoogleMapsNitroModule.nitro.js.map +0 -1
  170. package/lib/module/GoogleMapsNitroView.nitro.js +0 -4
  171. package/lib/module/GoogleMapsNitroView.nitro.js.map +0 -1
  172. package/lib/typescript/src/GoogleMapsNitroModule.nitro.d.ts.map +0 -1
  173. package/lib/typescript/src/GoogleMapsNitroView.nitro.d.ts.map +0 -1
  174. package/nitrogen/generated/android/GoogleMapsNitroOnLoad.cpp +0 -70
  175. package/nitrogen/generated/ios/GoogleMapsNitroAutolinking.mm +0 -41
  176. package/nitrogen/generated/ios/c++/HybridGoogleMapsNitroModuleSpecSwift.cpp +0 -11
  177. package/nitrogen/generated/ios/c++/HybridGoogleMapsNitroViewSpecSwift.cpp +0 -11
  178. package/nitrogen/generated/ios/swift/HybridGoogleMapsNitroModuleSpec.swift +0 -52
  179. package/nitrogen/generated/shared/c++/HybridGoogleMapsNitroViewSpec.cpp +0 -66
@@ -0,0 +1,66 @@
1
+ ///
2
+ /// HybridRNGoogleMapsPlusViewSpec.cpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #include "HybridRNGoogleMapsPlusViewSpec.hpp"
9
+
10
+ namespace margelo::nitro::rngooglemapsplus {
11
+
12
+ void HybridRNGoogleMapsPlusViewSpec::loadHybridMethods() {
13
+ // load base methods/properties
14
+ HybridObject::loadHybridMethods();
15
+ // load custom methods/properties
16
+ registerHybrids(this, [](Prototype& prototype) {
17
+ prototype.registerHybridGetter("buildingEnabled", &HybridRNGoogleMapsPlusViewSpec::getBuildingEnabled);
18
+ prototype.registerHybridSetter("buildingEnabled", &HybridRNGoogleMapsPlusViewSpec::setBuildingEnabled);
19
+ prototype.registerHybridGetter("trafficEnabled", &HybridRNGoogleMapsPlusViewSpec::getTrafficEnabled);
20
+ prototype.registerHybridSetter("trafficEnabled", &HybridRNGoogleMapsPlusViewSpec::setTrafficEnabled);
21
+ prototype.registerHybridGetter("customMapStyle", &HybridRNGoogleMapsPlusViewSpec::getCustomMapStyle);
22
+ prototype.registerHybridSetter("customMapStyle", &HybridRNGoogleMapsPlusViewSpec::setCustomMapStyle);
23
+ prototype.registerHybridGetter("initialCamera", &HybridRNGoogleMapsPlusViewSpec::getInitialCamera);
24
+ prototype.registerHybridSetter("initialCamera", &HybridRNGoogleMapsPlusViewSpec::setInitialCamera);
25
+ prototype.registerHybridGetter("userInterfaceStyle", &HybridRNGoogleMapsPlusViewSpec::getUserInterfaceStyle);
26
+ prototype.registerHybridSetter("userInterfaceStyle", &HybridRNGoogleMapsPlusViewSpec::setUserInterfaceStyle);
27
+ prototype.registerHybridGetter("minZoomLevel", &HybridRNGoogleMapsPlusViewSpec::getMinZoomLevel);
28
+ prototype.registerHybridSetter("minZoomLevel", &HybridRNGoogleMapsPlusViewSpec::setMinZoomLevel);
29
+ prototype.registerHybridGetter("maxZoomLevel", &HybridRNGoogleMapsPlusViewSpec::getMaxZoomLevel);
30
+ prototype.registerHybridSetter("maxZoomLevel", &HybridRNGoogleMapsPlusViewSpec::setMaxZoomLevel);
31
+ prototype.registerHybridGetter("mapPadding", &HybridRNGoogleMapsPlusViewSpec::getMapPadding);
32
+ prototype.registerHybridSetter("mapPadding", &HybridRNGoogleMapsPlusViewSpec::setMapPadding);
33
+ prototype.registerHybridGetter("markers", &HybridRNGoogleMapsPlusViewSpec::getMarkers);
34
+ prototype.registerHybridSetter("markers", &HybridRNGoogleMapsPlusViewSpec::setMarkers);
35
+ prototype.registerHybridGetter("polygons", &HybridRNGoogleMapsPlusViewSpec::getPolygons);
36
+ prototype.registerHybridSetter("polygons", &HybridRNGoogleMapsPlusViewSpec::setPolygons);
37
+ prototype.registerHybridGetter("polylines", &HybridRNGoogleMapsPlusViewSpec::getPolylines);
38
+ prototype.registerHybridSetter("polylines", &HybridRNGoogleMapsPlusViewSpec::setPolylines);
39
+ prototype.registerHybridGetter("onMapError", &HybridRNGoogleMapsPlusViewSpec::getOnMapError);
40
+ prototype.registerHybridSetter("onMapError", &HybridRNGoogleMapsPlusViewSpec::setOnMapError);
41
+ prototype.registerHybridGetter("onMapReady", &HybridRNGoogleMapsPlusViewSpec::getOnMapReady);
42
+ prototype.registerHybridSetter("onMapReady", &HybridRNGoogleMapsPlusViewSpec::setOnMapReady);
43
+ prototype.registerHybridGetter("onLocationUpdate", &HybridRNGoogleMapsPlusViewSpec::getOnLocationUpdate);
44
+ prototype.registerHybridSetter("onLocationUpdate", &HybridRNGoogleMapsPlusViewSpec::setOnLocationUpdate);
45
+ prototype.registerHybridGetter("onLocationError", &HybridRNGoogleMapsPlusViewSpec::getOnLocationError);
46
+ prototype.registerHybridSetter("onLocationError", &HybridRNGoogleMapsPlusViewSpec::setOnLocationError);
47
+ prototype.registerHybridGetter("onMapPress", &HybridRNGoogleMapsPlusViewSpec::getOnMapPress);
48
+ prototype.registerHybridSetter("onMapPress", &HybridRNGoogleMapsPlusViewSpec::setOnMapPress);
49
+ prototype.registerHybridGetter("onMarkerPress", &HybridRNGoogleMapsPlusViewSpec::getOnMarkerPress);
50
+ prototype.registerHybridSetter("onMarkerPress", &HybridRNGoogleMapsPlusViewSpec::setOnMarkerPress);
51
+ prototype.registerHybridGetter("onCameraChangeStart", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChangeStart);
52
+ prototype.registerHybridSetter("onCameraChangeStart", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChangeStart);
53
+ prototype.registerHybridGetter("onCameraChange", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChange);
54
+ prototype.registerHybridSetter("onCameraChange", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChange);
55
+ prototype.registerHybridGetter("onCameraChangeComplete", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChangeComplete);
56
+ prototype.registerHybridSetter("onCameraChangeComplete", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChangeComplete);
57
+ prototype.registerHybridMethod("setCamera", &HybridRNGoogleMapsPlusViewSpec::setCamera);
58
+ prototype.registerHybridMethod("setCameraToCoordinates", &HybridRNGoogleMapsPlusViewSpec::setCameraToCoordinates);
59
+ prototype.registerHybridMethod("showLocationDialog", &HybridRNGoogleMapsPlusViewSpec::showLocationDialog);
60
+ prototype.registerHybridMethod("openLocationSettings", &HybridRNGoogleMapsPlusViewSpec::openLocationSettings);
61
+ prototype.registerHybridMethod("requestLocationPermission", &HybridRNGoogleMapsPlusViewSpec::requestLocationPermission);
62
+ prototype.registerHybridMethod("isGooglePlayServicesAvailable", &HybridRNGoogleMapsPlusViewSpec::isGooglePlayServicesAvailable);
63
+ });
64
+ }
65
+
66
+ } // namespace margelo::nitro::rngooglemapsplus
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// HybridGoogleMapsNitroViewSpec.hpp
2
+ /// HybridRNGoogleMapsPlusViewSpec.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
@@ -14,29 +14,29 @@
14
14
  #endif
15
15
 
16
16
  // Forward declaration of `RNCamera` to properly resolve imports.
17
- namespace margelo::nitro::googlemapsnitro { struct RNCamera; }
17
+ namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
18
18
  // Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
19
- namespace margelo::nitro::googlemapsnitro { enum class RNUserInterfaceStyle; }
19
+ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
20
20
  // Forward declaration of `RNMapPadding` to properly resolve imports.
21
- namespace margelo::nitro::googlemapsnitro { struct RNMapPadding; }
21
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
22
22
  // Forward declaration of `RNMarker` to properly resolve imports.
23
- namespace margelo::nitro::googlemapsnitro { struct RNMarker; }
23
+ namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
24
24
  // Forward declaration of `RNPolygon` to properly resolve imports.
25
- namespace margelo::nitro::googlemapsnitro { struct RNPolygon; }
25
+ namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
26
26
  // Forward declaration of `RNPolyline` to properly resolve imports.
27
- namespace margelo::nitro::googlemapsnitro { struct RNPolyline; }
27
+ namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
28
28
  // Forward declaration of `RNMapErrorCode` to properly resolve imports.
29
- namespace margelo::nitro::googlemapsnitro { enum class RNMapErrorCode; }
29
+ namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
30
30
  // Forward declaration of `RNLocation` to properly resolve imports.
31
- namespace margelo::nitro::googlemapsnitro { struct RNLocation; }
31
+ namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
32
32
  // Forward declaration of `RNLocationErrorCode` to properly resolve imports.
33
- namespace margelo::nitro::googlemapsnitro { enum class RNLocationErrorCode; }
33
+ namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
34
34
  // Forward declaration of `RNLatLng` to properly resolve imports.
35
- namespace margelo::nitro::googlemapsnitro { struct RNLatLng; }
35
+ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
36
36
  // Forward declaration of `RNRegion` to properly resolve imports.
37
- namespace margelo::nitro::googlemapsnitro { struct RNRegion; }
37
+ namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
38
38
  // Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
39
- namespace margelo::nitro::googlemapsnitro { struct RNLocationPermissionResult; }
39
+ namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult; }
40
40
 
41
41
  #include <string>
42
42
  #include "RNCamera.hpp"
@@ -56,30 +56,30 @@ namespace margelo::nitro::googlemapsnitro { struct RNLocationPermissionResult; }
56
56
  #include "RNLocationPermissionResult.hpp"
57
57
  #include <NitroModules/Promise.hpp>
58
58
 
59
- namespace margelo::nitro::googlemapsnitro {
59
+ namespace margelo::nitro::rngooglemapsplus {
60
60
 
61
61
  using namespace margelo::nitro;
62
62
 
63
63
  /**
64
- * An abstract base class for `GoogleMapsNitroView`
65
- * Inherit this class to create instances of `HybridGoogleMapsNitroViewSpec` in C++.
64
+ * An abstract base class for `RNGoogleMapsPlusView`
65
+ * Inherit this class to create instances of `HybridRNGoogleMapsPlusViewSpec` in C++.
66
66
  * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
67
67
  * @example
68
68
  * ```cpp
69
- * class HybridGoogleMapsNitroView: public HybridGoogleMapsNitroViewSpec {
69
+ * class HybridRNGoogleMapsPlusView: public HybridRNGoogleMapsPlusViewSpec {
70
70
  * public:
71
- * HybridGoogleMapsNitroView(...): HybridObject(TAG) { ... }
71
+ * HybridRNGoogleMapsPlusView(...): HybridObject(TAG) { ... }
72
72
  * // ...
73
73
  * };
74
74
  * ```
75
75
  */
76
- class HybridGoogleMapsNitroViewSpec: public virtual HybridObject {
76
+ class HybridRNGoogleMapsPlusViewSpec: public virtual HybridObject {
77
77
  public:
78
78
  // Constructor
79
- explicit HybridGoogleMapsNitroViewSpec(): HybridObject(TAG) { }
79
+ explicit HybridRNGoogleMapsPlusViewSpec(): HybridObject(TAG) { }
80
80
 
81
81
  // Destructor
82
- ~HybridGoogleMapsNitroViewSpec() override = default;
82
+ ~HybridRNGoogleMapsPlusViewSpec() override = default;
83
83
 
84
84
  public:
85
85
  // Properties
@@ -139,7 +139,7 @@ namespace margelo::nitro::googlemapsnitro {
139
139
 
140
140
  protected:
141
141
  // Tag for logging
142
- static constexpr auto TAG = "GoogleMapsNitroView";
142
+ static constexpr auto TAG = "RNGoogleMapsPlusView";
143
143
  };
144
144
 
145
- } // namespace margelo::nitro::googlemapsnitro
145
+ } // namespace margelo::nitro::rngooglemapsplus
@@ -18,7 +18,7 @@
18
18
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
19
  #endif
20
20
 
21
- namespace margelo::nitro::googlemapsnitro {
21
+ namespace margelo::nitro::rngooglemapsplus {
22
22
 
23
23
  /**
24
24
  * An enum which can be represented as a JavaScript enum (RNAndroidLocationPermissionResult).
@@ -29,18 +29,18 @@ namespace margelo::nitro::googlemapsnitro {
29
29
  NEVER_ASK_AGAIN SWIFT_NAME(neverAskAgain) = -2,
30
30
  } CLOSED_ENUM;
31
31
 
32
- } // namespace margelo::nitro::googlemapsnitro
32
+ } // namespace margelo::nitro::rngooglemapsplus
33
33
 
34
34
  namespace margelo::nitro {
35
35
 
36
36
  // C++ RNAndroidLocationPermissionResult <> JS RNAndroidLocationPermissionResult (enum)
37
37
  template <>
38
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNAndroidLocationPermissionResult> final {
39
- static inline margelo::nitro::googlemapsnitro::RNAndroidLocationPermissionResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
38
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult> final {
39
+ static inline margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
40
40
  int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
41
- return static_cast<margelo::nitro::googlemapsnitro::RNAndroidLocationPermissionResult>(enumValue);
41
+ return static_cast<margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult>(enumValue);
42
42
  }
43
- static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::googlemapsnitro::RNAndroidLocationPermissionResult arg) {
43
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult arg) {
44
44
  int enumValue = static_cast<int>(arg);
45
45
  return JSIConverter<int>::toJSI(runtime, enumValue);
46
46
  }
@@ -19,12 +19,12 @@
19
19
  #endif
20
20
 
21
21
  // Forward declaration of `RNLatLng` to properly resolve imports.
22
- namespace margelo::nitro::googlemapsnitro { struct RNLatLng; }
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
23
23
 
24
24
  #include "RNLatLng.hpp"
25
25
  #include <optional>
26
26
 
27
- namespace margelo::nitro::googlemapsnitro {
27
+ namespace margelo::nitro::rngooglemapsplus {
28
28
 
29
29
  /**
30
30
  * A struct which can be represented as a JavaScript object (RNCamera).
@@ -41,25 +41,25 @@ namespace margelo::nitro::googlemapsnitro {
41
41
  explicit RNCamera(std::optional<RNLatLng> center, std::optional<double> zoom, std::optional<double> bearing, std::optional<double> tilt): center(center), zoom(zoom), bearing(bearing), tilt(tilt) {}
42
42
  };
43
43
 
44
- } // namespace margelo::nitro::googlemapsnitro
44
+ } // namespace margelo::nitro::rngooglemapsplus
45
45
 
46
46
  namespace margelo::nitro {
47
47
 
48
48
  // C++ RNCamera <> JS RNCamera (object)
49
49
  template <>
50
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNCamera> final {
51
- static inline margelo::nitro::googlemapsnitro::RNCamera fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
50
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNCamera> final {
51
+ static inline margelo::nitro::rngooglemapsplus::RNCamera fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
52
52
  jsi::Object obj = arg.asObject(runtime);
53
- return margelo::nitro::googlemapsnitro::RNCamera(
54
- JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLatLng>>::fromJSI(runtime, obj.getProperty(runtime, "center")),
53
+ return margelo::nitro::rngooglemapsplus::RNCamera(
54
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLatLng>>::fromJSI(runtime, obj.getProperty(runtime, "center")),
55
55
  JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "zoom")),
56
56
  JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "bearing")),
57
57
  JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "tilt"))
58
58
  );
59
59
  }
60
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNCamera& arg) {
60
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNCamera& arg) {
61
61
  jsi::Object obj(runtime);
62
- obj.setProperty(runtime, "center", JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLatLng>>::toJSI(runtime, arg.center));
62
+ obj.setProperty(runtime, "center", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLatLng>>::toJSI(runtime, arg.center));
63
63
  obj.setProperty(runtime, "zoom", JSIConverter<std::optional<double>>::toJSI(runtime, arg.zoom));
64
64
  obj.setProperty(runtime, "bearing", JSIConverter<std::optional<double>>::toJSI(runtime, arg.bearing));
65
65
  obj.setProperty(runtime, "tilt", JSIConverter<std::optional<double>>::toJSI(runtime, arg.tilt));
@@ -70,7 +70,7 @@ namespace margelo::nitro {
70
70
  return false;
71
71
  }
72
72
  jsi::Object obj = value.getObject(runtime);
73
- if (!JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLatLng>>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
73
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLatLng>>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
74
74
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "zoom"))) return false;
75
75
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "bearing"))) return false;
76
76
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "tilt"))) return false;
@@ -18,7 +18,7 @@
18
18
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
19
  #endif
20
20
 
21
- namespace margelo::nitro::googlemapsnitro {
21
+ namespace margelo::nitro::rngooglemapsplus {
22
22
 
23
23
  /**
24
24
  * An enum which can be represented as a JavaScript enum (RNIOSPermissionResult).
@@ -28,18 +28,18 @@ namespace margelo::nitro::googlemapsnitro {
28
28
  AUTHORIZED SWIFT_NAME(authorized) = 1,
29
29
  } CLOSED_ENUM;
30
30
 
31
- } // namespace margelo::nitro::googlemapsnitro
31
+ } // namespace margelo::nitro::rngooglemapsplus
32
32
 
33
33
  namespace margelo::nitro {
34
34
 
35
35
  // C++ RNIOSPermissionResult <> JS RNIOSPermissionResult (enum)
36
36
  template <>
37
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNIOSPermissionResult> final {
38
- static inline margelo::nitro::googlemapsnitro::RNIOSPermissionResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
37
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNIOSPermissionResult> final {
38
+ static inline margelo::nitro::rngooglemapsplus::RNIOSPermissionResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
39
39
  int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
40
- return static_cast<margelo::nitro::googlemapsnitro::RNIOSPermissionResult>(enumValue);
40
+ return static_cast<margelo::nitro::rngooglemapsplus::RNIOSPermissionResult>(enumValue);
41
41
  }
42
- static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::googlemapsnitro::RNIOSPermissionResult arg) {
42
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNIOSPermissionResult arg) {
43
43
  int enumValue = static_cast<int>(arg);
44
44
  return JSIConverter<int>::toJSI(runtime, enumValue);
45
45
  }
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- namespace margelo::nitro::googlemapsnitro {
25
+ namespace margelo::nitro::rngooglemapsplus {
26
26
 
27
27
  /**
28
28
  * A struct which can be represented as a JavaScript object (RNLatLng).
@@ -37,21 +37,21 @@ namespace margelo::nitro::googlemapsnitro {
37
37
  explicit RNLatLng(double latitude, double longitude): latitude(latitude), longitude(longitude) {}
38
38
  };
39
39
 
40
- } // namespace margelo::nitro::googlemapsnitro
40
+ } // namespace margelo::nitro::rngooglemapsplus
41
41
 
42
42
  namespace margelo::nitro {
43
43
 
44
44
  // C++ RNLatLng <> JS RNLatLng (object)
45
45
  template <>
46
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng> final {
47
- static inline margelo::nitro::googlemapsnitro::RNLatLng fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
46
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng> final {
47
+ static inline margelo::nitro::rngooglemapsplus::RNLatLng fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
48
48
  jsi::Object obj = arg.asObject(runtime);
49
- return margelo::nitro::googlemapsnitro::RNLatLng(
49
+ return margelo::nitro::rngooglemapsplus::RNLatLng(
50
50
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "latitude")),
51
51
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "longitude"))
52
52
  );
53
53
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNLatLng& arg) {
54
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNLatLng& arg) {
55
55
  jsi::Object obj(runtime);
56
56
  obj.setProperty(runtime, "latitude", JSIConverter<double>::toJSI(runtime, arg.latitude));
57
57
  obj.setProperty(runtime, "longitude", JSIConverter<double>::toJSI(runtime, arg.longitude));
@@ -23,7 +23,7 @@
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
25
 
26
- namespace margelo::nitro::googlemapsnitro {
26
+ namespace margelo::nitro::rngooglemapsplus {
27
27
 
28
28
  /**
29
29
  * An enum which can be represented as a JavaScript union (RNLineCapType).
@@ -34,28 +34,28 @@ namespace margelo::nitro::googlemapsnitro {
34
34
  SQUARE SWIFT_NAME(square) = 2,
35
35
  } CLOSED_ENUM;
36
36
 
37
- } // namespace margelo::nitro::googlemapsnitro
37
+ } // namespace margelo::nitro::rngooglemapsplus
38
38
 
39
39
  namespace margelo::nitro {
40
40
 
41
41
  // C++ RNLineCapType <> JS RNLineCapType (union)
42
42
  template <>
43
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNLineCapType> final {
44
- static inline margelo::nitro::googlemapsnitro::RNLineCapType fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
43
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNLineCapType> final {
44
+ static inline margelo::nitro::rngooglemapsplus::RNLineCapType fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
45
  std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
46
46
  switch (hashString(unionValue.c_str(), unionValue.size())) {
47
- case hashString("butt"): return margelo::nitro::googlemapsnitro::RNLineCapType::BUTT;
48
- case hashString("round"): return margelo::nitro::googlemapsnitro::RNLineCapType::ROUND;
49
- case hashString("square"): return margelo::nitro::googlemapsnitro::RNLineCapType::SQUARE;
47
+ case hashString("butt"): return margelo::nitro::rngooglemapsplus::RNLineCapType::BUTT;
48
+ case hashString("round"): return margelo::nitro::rngooglemapsplus::RNLineCapType::ROUND;
49
+ case hashString("square"): return margelo::nitro::rngooglemapsplus::RNLineCapType::SQUARE;
50
50
  default: [[unlikely]]
51
51
  throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum RNLineCapType - invalid value!");
52
52
  }
53
53
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::googlemapsnitro::RNLineCapType arg) {
54
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNLineCapType arg) {
55
55
  switch (arg) {
56
- case margelo::nitro::googlemapsnitro::RNLineCapType::BUTT: return JSIConverter<std::string>::toJSI(runtime, "butt");
57
- case margelo::nitro::googlemapsnitro::RNLineCapType::ROUND: return JSIConverter<std::string>::toJSI(runtime, "round");
58
- case margelo::nitro::googlemapsnitro::RNLineCapType::SQUARE: return JSIConverter<std::string>::toJSI(runtime, "square");
56
+ case margelo::nitro::rngooglemapsplus::RNLineCapType::BUTT: return JSIConverter<std::string>::toJSI(runtime, "butt");
57
+ case margelo::nitro::rngooglemapsplus::RNLineCapType::ROUND: return JSIConverter<std::string>::toJSI(runtime, "round");
58
+ case margelo::nitro::rngooglemapsplus::RNLineCapType::SQUARE: return JSIConverter<std::string>::toJSI(runtime, "square");
59
59
  default: [[unlikely]]
60
60
  throw std::invalid_argument("Cannot convert RNLineCapType to JS - invalid value: "
61
61
  + std::to_string(static_cast<int>(arg)) + "!");
@@ -23,7 +23,7 @@
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
25
 
26
- namespace margelo::nitro::googlemapsnitro {
26
+ namespace margelo::nitro::rngooglemapsplus {
27
27
 
28
28
  /**
29
29
  * An enum which can be represented as a JavaScript union (RNLineJoinType).
@@ -34,28 +34,28 @@ namespace margelo::nitro::googlemapsnitro {
34
34
  BEVEL SWIFT_NAME(bevel) = 2,
35
35
  } CLOSED_ENUM;
36
36
 
37
- } // namespace margelo::nitro::googlemapsnitro
37
+ } // namespace margelo::nitro::rngooglemapsplus
38
38
 
39
39
  namespace margelo::nitro {
40
40
 
41
41
  // C++ RNLineJoinType <> JS RNLineJoinType (union)
42
42
  template <>
43
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNLineJoinType> final {
44
- static inline margelo::nitro::googlemapsnitro::RNLineJoinType fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
43
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNLineJoinType> final {
44
+ static inline margelo::nitro::rngooglemapsplus::RNLineJoinType fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
45
  std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
46
46
  switch (hashString(unionValue.c_str(), unionValue.size())) {
47
- case hashString("round"): return margelo::nitro::googlemapsnitro::RNLineJoinType::ROUND;
48
- case hashString("miter"): return margelo::nitro::googlemapsnitro::RNLineJoinType::MITER;
49
- case hashString("bevel"): return margelo::nitro::googlemapsnitro::RNLineJoinType::BEVEL;
47
+ case hashString("round"): return margelo::nitro::rngooglemapsplus::RNLineJoinType::ROUND;
48
+ case hashString("miter"): return margelo::nitro::rngooglemapsplus::RNLineJoinType::MITER;
49
+ case hashString("bevel"): return margelo::nitro::rngooglemapsplus::RNLineJoinType::BEVEL;
50
50
  default: [[unlikely]]
51
51
  throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum RNLineJoinType - invalid value!");
52
52
  }
53
53
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::googlemapsnitro::RNLineJoinType arg) {
54
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNLineJoinType arg) {
55
55
  switch (arg) {
56
- case margelo::nitro::googlemapsnitro::RNLineJoinType::ROUND: return JSIConverter<std::string>::toJSI(runtime, "round");
57
- case margelo::nitro::googlemapsnitro::RNLineJoinType::MITER: return JSIConverter<std::string>::toJSI(runtime, "miter");
58
- case margelo::nitro::googlemapsnitro::RNLineJoinType::BEVEL: return JSIConverter<std::string>::toJSI(runtime, "bevel");
56
+ case margelo::nitro::rngooglemapsplus::RNLineJoinType::ROUND: return JSIConverter<std::string>::toJSI(runtime, "round");
57
+ case margelo::nitro::rngooglemapsplus::RNLineJoinType::MITER: return JSIConverter<std::string>::toJSI(runtime, "miter");
58
+ case margelo::nitro::rngooglemapsplus::RNLineJoinType::BEVEL: return JSIConverter<std::string>::toJSI(runtime, "bevel");
59
59
  default: [[unlikely]]
60
60
  throw std::invalid_argument("Cannot convert RNLineJoinType to JS - invalid value: "
61
61
  + std::to_string(static_cast<int>(arg)) + "!");
@@ -19,11 +19,11 @@
19
19
  #endif
20
20
 
21
21
  // Forward declaration of `RNLatLng` to properly resolve imports.
22
- namespace margelo::nitro::googlemapsnitro { struct RNLatLng; }
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
23
23
 
24
24
  #include "RNLatLng.hpp"
25
25
 
26
- namespace margelo::nitro::googlemapsnitro {
26
+ namespace margelo::nitro::rngooglemapsplus {
27
27
 
28
28
  /**
29
29
  * A struct which can be represented as a JavaScript object (RNLocation).
@@ -38,23 +38,23 @@ namespace margelo::nitro::googlemapsnitro {
38
38
  explicit RNLocation(RNLatLng center, double bearing): center(center), bearing(bearing) {}
39
39
  };
40
40
 
41
- } // namespace margelo::nitro::googlemapsnitro
41
+ } // namespace margelo::nitro::rngooglemapsplus
42
42
 
43
43
  namespace margelo::nitro {
44
44
 
45
45
  // C++ RNLocation <> JS RNLocation (object)
46
46
  template <>
47
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNLocation> final {
48
- static inline margelo::nitro::googlemapsnitro::RNLocation fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
47
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNLocation> final {
48
+ static inline margelo::nitro::rngooglemapsplus::RNLocation fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
49
49
  jsi::Object obj = arg.asObject(runtime);
50
- return margelo::nitro::googlemapsnitro::RNLocation(
51
- JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "center")),
50
+ return margelo::nitro::rngooglemapsplus::RNLocation(
51
+ JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "center")),
52
52
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "bearing"))
53
53
  );
54
54
  }
55
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNLocation& arg) {
55
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNLocation& arg) {
56
56
  jsi::Object obj(runtime);
57
- obj.setProperty(runtime, "center", JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::toJSI(runtime, arg.center));
57
+ obj.setProperty(runtime, "center", JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::toJSI(runtime, arg.center));
58
58
  obj.setProperty(runtime, "bearing", JSIConverter<double>::toJSI(runtime, arg.bearing));
59
59
  return obj;
60
60
  }
@@ -63,7 +63,7 @@ namespace margelo::nitro {
63
63
  return false;
64
64
  }
65
65
  jsi::Object obj = value.getObject(runtime);
66
- if (!JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
66
+ if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
67
67
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "bearing"))) return false;
68
68
  return true;
69
69
  }
@@ -18,7 +18,7 @@
18
18
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
19
  #endif
20
20
 
21
- namespace margelo::nitro::googlemapsnitro {
21
+ namespace margelo::nitro::rngooglemapsplus {
22
22
 
23
23
  /**
24
24
  * An enum which can be represented as a JavaScript enum (RNLocationErrorCode).
@@ -32,18 +32,18 @@ namespace margelo::nitro::googlemapsnitro {
32
32
  INTERNAL_ERROR SWIFT_NAME(internalError) = -1,
33
33
  } CLOSED_ENUM;
34
34
 
35
- } // namespace margelo::nitro::googlemapsnitro
35
+ } // namespace margelo::nitro::rngooglemapsplus
36
36
 
37
37
  namespace margelo::nitro {
38
38
 
39
39
  // C++ RNLocationErrorCode <> JS RNLocationErrorCode (enum)
40
40
  template <>
41
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNLocationErrorCode> final {
42
- static inline margelo::nitro::googlemapsnitro::RNLocationErrorCode fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
41
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNLocationErrorCode> final {
42
+ static inline margelo::nitro::rngooglemapsplus::RNLocationErrorCode fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
43
43
  int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
44
- return static_cast<margelo::nitro::googlemapsnitro::RNLocationErrorCode>(enumValue);
44
+ return static_cast<margelo::nitro::rngooglemapsplus::RNLocationErrorCode>(enumValue);
45
45
  }
46
- static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::googlemapsnitro::RNLocationErrorCode arg) {
46
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNLocationErrorCode arg) {
47
47
  int enumValue = static_cast<int>(arg);
48
48
  return JSIConverter<int>::toJSI(runtime, enumValue);
49
49
  }
@@ -19,15 +19,15 @@
19
19
  #endif
20
20
 
21
21
  // Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
22
- namespace margelo::nitro::googlemapsnitro { enum class RNAndroidLocationPermissionResult; }
22
+ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
23
23
  // Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
24
- namespace margelo::nitro::googlemapsnitro { enum class RNIOSPermissionResult; }
24
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
25
25
 
26
26
  #include "RNAndroidLocationPermissionResult.hpp"
27
27
  #include <optional>
28
28
  #include "RNIOSPermissionResult.hpp"
29
29
 
30
- namespace margelo::nitro::googlemapsnitro {
30
+ namespace margelo::nitro::rngooglemapsplus {
31
31
 
32
32
  /**
33
33
  * A struct which can be represented as a JavaScript object (RNLocationPermissionResult).
@@ -42,24 +42,24 @@ namespace margelo::nitro::googlemapsnitro {
42
42
  explicit RNLocationPermissionResult(std::optional<RNAndroidLocationPermissionResult> android, std::optional<RNIOSPermissionResult> ios): android(android), ios(ios) {}
43
43
  };
44
44
 
45
- } // namespace margelo::nitro::googlemapsnitro
45
+ } // namespace margelo::nitro::rngooglemapsplus
46
46
 
47
47
  namespace margelo::nitro {
48
48
 
49
49
  // C++ RNLocationPermissionResult <> JS RNLocationPermissionResult (object)
50
50
  template <>
51
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNLocationPermissionResult> final {
52
- static inline margelo::nitro::googlemapsnitro::RNLocationPermissionResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
51
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNLocationPermissionResult> final {
52
+ static inline margelo::nitro::rngooglemapsplus::RNLocationPermissionResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
53
  jsi::Object obj = arg.asObject(runtime);
54
- return margelo::nitro::googlemapsnitro::RNLocationPermissionResult(
55
- JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNAndroidLocationPermissionResult>>::fromJSI(runtime, obj.getProperty(runtime, "android")),
56
- JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNIOSPermissionResult>>::fromJSI(runtime, obj.getProperty(runtime, "ios"))
54
+ return margelo::nitro::rngooglemapsplus::RNLocationPermissionResult(
55
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult>>::fromJSI(runtime, obj.getProperty(runtime, "android")),
56
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSPermissionResult>>::fromJSI(runtime, obj.getProperty(runtime, "ios"))
57
57
  );
58
58
  }
59
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNLocationPermissionResult& arg) {
59
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNLocationPermissionResult& arg) {
60
60
  jsi::Object obj(runtime);
61
- obj.setProperty(runtime, "android", JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNAndroidLocationPermissionResult>>::toJSI(runtime, arg.android));
62
- obj.setProperty(runtime, "ios", JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNIOSPermissionResult>>::toJSI(runtime, arg.ios));
61
+ obj.setProperty(runtime, "android", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult>>::toJSI(runtime, arg.android));
62
+ obj.setProperty(runtime, "ios", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSPermissionResult>>::toJSI(runtime, arg.ios));
63
63
  return obj;
64
64
  }
65
65
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -67,8 +67,8 @@ namespace margelo::nitro {
67
67
  return false;
68
68
  }
69
69
  jsi::Object obj = value.getObject(runtime);
70
- if (!JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNAndroidLocationPermissionResult>>::canConvert(runtime, obj.getProperty(runtime, "android"))) return false;
71
- if (!JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNIOSPermissionResult>>::canConvert(runtime, obj.getProperty(runtime, "ios"))) return false;
70
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult>>::canConvert(runtime, obj.getProperty(runtime, "android"))) return false;
71
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSPermissionResult>>::canConvert(runtime, obj.getProperty(runtime, "ios"))) return false;
72
72
  return true;
73
73
  }
74
74
  };
@@ -18,7 +18,7 @@
18
18
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
19
  #endif
20
20
 
21
- namespace margelo::nitro::googlemapsnitro {
21
+ namespace margelo::nitro::rngooglemapsplus {
22
22
 
23
23
  /**
24
24
  * An enum which can be represented as a JavaScript enum (RNMapErrorCode).
@@ -33,18 +33,18 @@ namespace margelo::nitro::googlemapsnitro {
33
33
  UNKNOWN SWIFT_NAME(unknown) = 6,
34
34
  } CLOSED_ENUM;
35
35
 
36
- } // namespace margelo::nitro::googlemapsnitro
36
+ } // namespace margelo::nitro::rngooglemapsplus
37
37
 
38
38
  namespace margelo::nitro {
39
39
 
40
40
  // C++ RNMapErrorCode <> JS RNMapErrorCode (enum)
41
41
  template <>
42
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNMapErrorCode> final {
43
- static inline margelo::nitro::googlemapsnitro::RNMapErrorCode fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
42
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNMapErrorCode> final {
43
+ static inline margelo::nitro::rngooglemapsplus::RNMapErrorCode fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
44
44
  int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
45
- return static_cast<margelo::nitro::googlemapsnitro::RNMapErrorCode>(enumValue);
45
+ return static_cast<margelo::nitro::rngooglemapsplus::RNMapErrorCode>(enumValue);
46
46
  }
47
- static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::googlemapsnitro::RNMapErrorCode arg) {
47
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNMapErrorCode arg) {
48
48
  int enumValue = static_cast<int>(arg);
49
49
  return JSIConverter<int>::toJSI(runtime, enumValue);
50
50
  }