react-native-google-maps-plus 1.1.0-dev.1 → 1.1.0-dev.3

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 (67) hide show
  1. package/RNGoogleMapsPlus.podspec +2 -0
  2. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +38 -103
  3. package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +3 -3
  4. package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +16 -2
  5. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +48 -27
  6. package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +18 -1
  7. package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +26 -9
  8. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +48 -72
  9. package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +17 -0
  10. package/ios/GoogleMapViewImpl.swift +94 -212
  11. package/ios/LocationHandler.swift +2 -10
  12. package/ios/MapCircleBuilder.swift +23 -8
  13. package/ios/MapHelper.swift +6 -4
  14. package/ios/MapMarkerBuilder.swift +55 -48
  15. package/ios/MapPolygonBuilder.swift +25 -7
  16. package/ios/MapPolylineBuilder.swift +27 -11
  17. package/ios/RNGoogleMapsPlusView.swift +9 -15
  18. package/ios/extensions/RNCircle+Extension.swift +0 -13
  19. package/ios/extensions/RNMarker+Extension.swift +6 -5
  20. package/ios/extensions/RNPolygon+Extension.swift.swift +2 -19
  21. package/ios/extensions/RNPolyline+Extension.swift.swift +1 -26
  22. package/lib/module/types.js.map +1 -1
  23. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +2 -3
  24. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  25. package/lib/typescript/src/types.d.ts +9 -2
  26. package/lib/typescript/src/types.d.ts.map +1 -1
  27. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +14 -15
  28. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +2 -4
  29. package/nitrogen/generated/android/c++/JRNCircle.hpp +4 -4
  30. package/nitrogen/generated/android/c++/JRNMapZoomConfig.hpp +57 -0
  31. package/nitrogen/generated/android/c++/JRNMarker.hpp +6 -12
  32. package/nitrogen/generated/android/c++/JRNMarkerSvg.hpp +61 -0
  33. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +2 -6
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +1 -7
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +1 -1
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapZoomConfig.kt +32 -0
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +1 -7
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarkerSvg.kt +35 -0
  39. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +1 -1
  40. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +13 -13
  41. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +75 -33
  42. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +6 -0
  43. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +11 -12
  44. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +4 -9
  45. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +1 -2
  46. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +46 -94
  47. package/nitrogen/generated/ios/swift/RNCamera.swift +1 -8
  48. package/nitrogen/generated/ios/swift/RNCircle.swift +5 -17
  49. package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -8
  50. package/nitrogen/generated/ios/swift/RNLocationConfig.swift +2 -16
  51. package/nitrogen/generated/ios/swift/RNMapZoomConfig.swift +70 -0
  52. package/nitrogen/generated/ios/swift/RNMarker.swift +18 -35
  53. package/nitrogen/generated/ios/swift/RNMarkerSvg.swift +57 -0
  54. package/nitrogen/generated/ios/swift/RNPolygon.swift +11 -15
  55. package/nitrogen/generated/ios/swift/RNPolyline.swift +11 -15
  56. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -4
  57. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +5 -4
  58. package/nitrogen/generated/shared/c++/RNCircle.hpp +5 -5
  59. package/nitrogen/generated/shared/c++/RNMapZoomConfig.hpp +71 -0
  60. package/nitrogen/generated/shared/c++/RNMarker.hpp +8 -13
  61. package/nitrogen/generated/shared/c++/RNMarkerSvg.hpp +75 -0
  62. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +7 -19
  63. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -2
  64. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +1 -2
  65. package/package.json +13 -13
  66. package/src/RNGoogleMapsPlusView.nitro.ts +2 -2
  67. package/src/types.ts +11 -2
@@ -42,8 +42,8 @@ namespace margelo::nitro::rngooglemapsplus {
42
42
  jni::local_ref<jni::JDouble> zIndex = this->getFieldValue(fieldZIndex);
43
43
  static const auto fieldCenter = clazz->getField<JRNLatLng>("center");
44
44
  jni::local_ref<JRNLatLng> center = this->getFieldValue(fieldCenter);
45
- static const auto fieldRadius = clazz->getField<jni::JDouble>("radius");
46
- jni::local_ref<jni::JDouble> radius = this->getFieldValue(fieldRadius);
45
+ static const auto fieldRadius = clazz->getField<double>("radius");
46
+ double radius = this->getFieldValue(fieldRadius);
47
47
  static const auto fieldStrokeWidth = clazz->getField<jni::JDouble>("strokeWidth");
48
48
  jni::local_ref<jni::JDouble> strokeWidth = this->getFieldValue(fieldStrokeWidth);
49
49
  static const auto fieldStrokeColor = clazz->getField<jni::JString>("strokeColor");
@@ -55,7 +55,7 @@ namespace margelo::nitro::rngooglemapsplus {
55
55
  pressable != nullptr ? std::make_optional(static_cast<bool>(pressable->value())) : std::nullopt,
56
56
  zIndex != nullptr ? std::make_optional(zIndex->value()) : std::nullopt,
57
57
  center->toCpp(),
58
- radius != nullptr ? std::make_optional(radius->value()) : std::nullopt,
58
+ radius,
59
59
  strokeWidth != nullptr ? std::make_optional(strokeWidth->value()) : std::nullopt,
60
60
  strokeColor != nullptr ? std::make_optional(strokeColor->toStdString()) : std::nullopt,
61
61
  fillColor != nullptr ? std::make_optional(fillColor->toStdString()) : std::nullopt
@@ -73,7 +73,7 @@ namespace margelo::nitro::rngooglemapsplus {
73
73
  value.pressable.has_value() ? jni::JBoolean::valueOf(value.pressable.value()) : nullptr,
74
74
  value.zIndex.has_value() ? jni::JDouble::valueOf(value.zIndex.value()) : nullptr,
75
75
  JRNLatLng::fromCpp(value.center),
76
- value.radius.has_value() ? jni::JDouble::valueOf(value.radius.value()) : nullptr,
76
+ value.radius,
77
77
  value.strokeWidth.has_value() ? jni::JDouble::valueOf(value.strokeWidth.value()) : nullptr,
78
78
  value.strokeColor.has_value() ? jni::make_jstring(value.strokeColor.value()) : nullptr,
79
79
  value.fillColor.has_value() ? jni::make_jstring(value.fillColor.value()) : nullptr
@@ -0,0 +1,57 @@
1
+ ///
2
+ /// JRNMapZoomConfig.hpp
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
+ #pragma once
9
+
10
+ #include <fbjni/fbjni.h>
11
+ #include "RNMapZoomConfig.hpp"
12
+
13
+ #include <optional>
14
+
15
+ namespace margelo::nitro::rngooglemapsplus {
16
+
17
+ using namespace facebook;
18
+
19
+ /**
20
+ * The C++ JNI bridge between the C++ struct "RNMapZoomConfig" and the the Kotlin data class "RNMapZoomConfig".
21
+ */
22
+ struct JRNMapZoomConfig final: public jni::JavaClass<JRNMapZoomConfig> {
23
+ public:
24
+ static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNMapZoomConfig;";
25
+
26
+ public:
27
+ /**
28
+ * Convert this Java/Kotlin-based struct to the C++ struct RNMapZoomConfig by copying all values to C++.
29
+ */
30
+ [[maybe_unused]]
31
+ [[nodiscard]]
32
+ RNMapZoomConfig toCpp() const {
33
+ static const auto clazz = javaClassStatic();
34
+ static const auto fieldMin = clazz->getField<jni::JDouble>("min");
35
+ jni::local_ref<jni::JDouble> min = this->getFieldValue(fieldMin);
36
+ static const auto fieldMax = clazz->getField<jni::JDouble>("max");
37
+ jni::local_ref<jni::JDouble> max = this->getFieldValue(fieldMax);
38
+ return RNMapZoomConfig(
39
+ min != nullptr ? std::make_optional(min->value()) : std::nullopt,
40
+ max != nullptr ? std::make_optional(max->value()) : std::nullopt
41
+ );
42
+ }
43
+
44
+ public:
45
+ /**
46
+ * Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
47
+ */
48
+ [[maybe_unused]]
49
+ static jni::local_ref<JRNMapZoomConfig::javaobject> fromCpp(const RNMapZoomConfig& value) {
50
+ return newInstance(
51
+ value.min.has_value() ? jni::JDouble::valueOf(value.min.value()) : nullptr,
52
+ value.max.has_value() ? jni::JDouble::valueOf(value.max.value()) : nullptr
53
+ );
54
+ }
55
+ };
56
+
57
+ } // namespace margelo::nitro::rngooglemapsplus
@@ -11,8 +11,10 @@
11
11
  #include "RNMarker.hpp"
12
12
 
13
13
  #include "JRNLatLng.hpp"
14
+ #include "JRNMarkerSvg.hpp"
14
15
  #include "JRNPosition.hpp"
15
16
  #include "RNLatLng.hpp"
17
+ #include "RNMarkerSvg.hpp"
16
18
  #include "RNPosition.hpp"
17
19
  #include <optional>
18
20
  #include <string>
@@ -44,20 +46,14 @@ namespace margelo::nitro::rngooglemapsplus {
44
46
  jni::local_ref<JRNLatLng> coordinate = this->getFieldValue(fieldCoordinate);
45
47
  static const auto fieldAnchor = clazz->getField<JRNPosition>("anchor");
46
48
  jni::local_ref<JRNPosition> anchor = this->getFieldValue(fieldAnchor);
47
- static const auto fieldWidth = clazz->getField<double>("width");
48
- double width = this->getFieldValue(fieldWidth);
49
- static const auto fieldHeight = clazz->getField<double>("height");
50
- double height = this->getFieldValue(fieldHeight);
51
- static const auto fieldIconSvg = clazz->getField<jni::JString>("iconSvg");
52
- jni::local_ref<jni::JString> iconSvg = this->getFieldValue(fieldIconSvg);
49
+ static const auto fieldIconSvg = clazz->getField<JRNMarkerSvg>("iconSvg");
50
+ jni::local_ref<JRNMarkerSvg> iconSvg = this->getFieldValue(fieldIconSvg);
53
51
  return RNMarker(
54
52
  id->toStdString(),
55
53
  zIndex != nullptr ? std::make_optional(zIndex->value()) : std::nullopt,
56
54
  coordinate->toCpp(),
57
55
  anchor != nullptr ? std::make_optional(anchor->toCpp()) : std::nullopt,
58
- width,
59
- height,
60
- iconSvg->toStdString()
56
+ iconSvg != nullptr ? std::make_optional(iconSvg->toCpp()) : std::nullopt
61
57
  );
62
58
  }
63
59
 
@@ -72,9 +68,7 @@ namespace margelo::nitro::rngooglemapsplus {
72
68
  value.zIndex.has_value() ? jni::JDouble::valueOf(value.zIndex.value()) : nullptr,
73
69
  JRNLatLng::fromCpp(value.coordinate),
74
70
  value.anchor.has_value() ? JRNPosition::fromCpp(value.anchor.value()) : nullptr,
75
- value.width,
76
- value.height,
77
- jni::make_jstring(value.iconSvg)
71
+ value.iconSvg.has_value() ? JRNMarkerSvg::fromCpp(value.iconSvg.value()) : nullptr
78
72
  );
79
73
  }
80
74
  };
@@ -0,0 +1,61 @@
1
+ ///
2
+ /// JRNMarkerSvg.hpp
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
+ #pragma once
9
+
10
+ #include <fbjni/fbjni.h>
11
+ #include "RNMarkerSvg.hpp"
12
+
13
+ #include <string>
14
+
15
+ namespace margelo::nitro::rngooglemapsplus {
16
+
17
+ using namespace facebook;
18
+
19
+ /**
20
+ * The C++ JNI bridge between the C++ struct "RNMarkerSvg" and the the Kotlin data class "RNMarkerSvg".
21
+ */
22
+ struct JRNMarkerSvg final: public jni::JavaClass<JRNMarkerSvg> {
23
+ public:
24
+ static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNMarkerSvg;";
25
+
26
+ public:
27
+ /**
28
+ * Convert this Java/Kotlin-based struct to the C++ struct RNMarkerSvg by copying all values to C++.
29
+ */
30
+ [[maybe_unused]]
31
+ [[nodiscard]]
32
+ RNMarkerSvg toCpp() const {
33
+ static const auto clazz = javaClassStatic();
34
+ static const auto fieldWidth = clazz->getField<double>("width");
35
+ double width = this->getFieldValue(fieldWidth);
36
+ static const auto fieldHeight = clazz->getField<double>("height");
37
+ double height = this->getFieldValue(fieldHeight);
38
+ static const auto fieldSvgString = clazz->getField<jni::JString>("svgString");
39
+ jni::local_ref<jni::JString> svgString = this->getFieldValue(fieldSvgString);
40
+ return RNMarkerSvg(
41
+ width,
42
+ height,
43
+ svgString->toStdString()
44
+ );
45
+ }
46
+
47
+ public:
48
+ /**
49
+ * Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
50
+ */
51
+ [[maybe_unused]]
52
+ static jni::local_ref<JRNMarkerSvg::javaobject> fromCpp(const RNMarkerSvg& value) {
53
+ return newInstance(
54
+ value.width,
55
+ value.height,
56
+ jni::make_jstring(value.svgString)
57
+ );
58
+ }
59
+ };
60
+
61
+ } // namespace margelo::nitro::rngooglemapsplus
@@ -68,12 +68,8 @@ void JHybridRNGoogleMapsPlusViewStateUpdater::updateViewProps(jni::alias_ref<jni
68
68
  view->setUserInterfaceStyle(props.userInterfaceStyle.value);
69
69
  // TODO: Set isDirty = false
70
70
  }
71
- if (props.minZoomLevel.isDirty) {
72
- view->setMinZoomLevel(props.minZoomLevel.value);
73
- // TODO: Set isDirty = false
74
- }
75
- if (props.maxZoomLevel.isDirty) {
76
- view->setMaxZoomLevel(props.maxZoomLevel.value);
71
+ if (props.mapZoomConfig.isDirty) {
72
+ view->setMapZoomConfig(props.mapZoomConfig.value);
77
73
  // TODO: Set isDirty = false
78
74
  }
79
75
  if (props.mapPadding.isDirty) {
@@ -90,13 +90,7 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
90
90
  @get:Keep
91
91
  @set:DoNotStrip
92
92
  @set:Keep
93
- abstract var minZoomLevel: Double?
94
-
95
- @get:DoNotStrip
96
- @get:Keep
97
- @set:DoNotStrip
98
- @set:Keep
99
- abstract var maxZoomLevel: Double?
93
+ abstract var mapZoomConfig: RNMapZoomConfig?
100
94
 
101
95
  @get:DoNotStrip
102
96
  @get:Keep
@@ -35,7 +35,7 @@ data class RNCircle
35
35
  val center: RNLatLng,
36
36
  @DoNotStrip
37
37
  @Keep
38
- val radius: Double?,
38
+ val radius: Double,
39
39
  @DoNotStrip
40
40
  @Keep
41
41
  val strokeWidth: Double?,
@@ -0,0 +1,32 @@
1
+ ///
2
+ /// RNMapZoomConfig.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNMapZoomConfig".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNMapZoomConfig
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val min: Double?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val max: Double?
30
+ ) {
31
+ /* main constructor */
32
+ }
@@ -35,13 +35,7 @@ data class RNMarker
35
35
  val anchor: RNPosition?,
36
36
  @DoNotStrip
37
37
  @Keep
38
- val width: Double,
39
- @DoNotStrip
40
- @Keep
41
- val height: Double,
42
- @DoNotStrip
43
- @Keep
44
- val iconSvg: String
38
+ val iconSvg: RNMarkerSvg?
45
39
  ) {
46
40
  /* main constructor */
47
41
  }
@@ -0,0 +1,35 @@
1
+ ///
2
+ /// RNMarkerSvg.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNMarkerSvg".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNMarkerSvg
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val width: Double,
27
+ @DoNotStrip
28
+ @Keep
29
+ val height: Double,
30
+ @DoNotStrip
31
+ @Keep
32
+ val svgString: String
33
+ ) {
34
+ /* main constructor */
35
+ }
@@ -17,7 +17,7 @@ import com.rngooglemapsplus.*
17
17
  /**
18
18
  * Represents the React Native `ViewManager` for the "RNGoogleMapsPlusView" Nitro HybridView.
19
19
  */
20
- class HybridRNGoogleMapsPlusViewManager: SimpleViewManager<View>() {
20
+ open class HybridRNGoogleMapsPlusViewManager: SimpleViewManager<View>() {
21
21
  private val views = hashMapOf<View, RNGoogleMapsPlusView>()
22
22
 
23
23
  override fun getName(): String {
@@ -15,7 +15,7 @@
15
15
  namespace margelo::nitro::rngooglemapsplus::bridge::swift {
16
16
 
17
17
  // pragma MARK: std::function<void(const RNLocationPermissionResult& /* result */)>
18
- Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* _Nonnull swiftClosureWrapper) noexcept {
18
+ Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* NON_NULL swiftClosureWrapper) noexcept {
19
19
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLocationPermissionResult::fromUnsafe(swiftClosureWrapper);
20
20
  return [swiftClosure = std::move(swiftClosure)](const RNLocationPermissionResult& result) mutable -> void {
21
21
  swiftClosure.call(result);
@@ -23,7 +23,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
23
23
  }
24
24
 
25
25
  // pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
26
- Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper) noexcept {
26
+ Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept {
27
27
  auto swiftClosure = RNGoogleMapsPlus::Func_void_std__exception_ptr::fromUnsafe(swiftClosureWrapper);
28
28
  return [swiftClosure = std::move(swiftClosure)](const std::exception_ptr& error) mutable -> void {
29
29
  swiftClosure.call(error);
@@ -31,11 +31,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
31
31
  }
32
32
 
33
33
  // pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>
34
- std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* _Nonnull swiftUnsafePointer) noexcept {
34
+ std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
35
35
  RNGoogleMapsPlus::HybridRNGoogleMapsPlusModuleSpec_cxx swiftPart = RNGoogleMapsPlus::HybridRNGoogleMapsPlusModuleSpec_cxx::fromUnsafe(swiftUnsafePointer);
36
36
  return std::make_shared<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusModuleSpecSwift>(swiftPart);
37
37
  }
38
- void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) noexcept {
38
+ void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) noexcept {
39
39
  std::shared_ptr<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusModuleSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusModuleSpecSwift>(cppType);
40
40
  #ifdef NITRO_DEBUG
41
41
  if (swiftWrapper == nullptr) [[unlikely]] {
@@ -47,7 +47,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
47
47
  }
48
48
 
49
49
  // pragma MARK: std::function<void(RNMapErrorCode /* error */)>
50
- Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* _Nonnull swiftClosureWrapper) noexcept {
50
+ Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* NON_NULL swiftClosureWrapper) noexcept {
51
51
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNMapErrorCode::fromUnsafe(swiftClosureWrapper);
52
52
  return [swiftClosure = std::move(swiftClosure)](RNMapErrorCode error) mutable -> void {
53
53
  swiftClosure.call(static_cast<int>(error));
@@ -55,7 +55,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
55
55
  }
56
56
 
57
57
  // pragma MARK: std::function<void(bool /* ready */)>
58
- Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper) noexcept {
58
+ Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept {
59
59
  auto swiftClosure = RNGoogleMapsPlus::Func_void_bool::fromUnsafe(swiftClosureWrapper);
60
60
  return [swiftClosure = std::move(swiftClosure)](bool ready) mutable -> void {
61
61
  swiftClosure.call(ready);
@@ -63,7 +63,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
63
63
  }
64
64
 
65
65
  // pragma MARK: std::function<void(const RNLocation& /* location */)>
66
- Func_void_RNLocation create_Func_void_RNLocation(void* _Nonnull swiftClosureWrapper) noexcept {
66
+ Func_void_RNLocation create_Func_void_RNLocation(void* NON_NULL swiftClosureWrapper) noexcept {
67
67
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLocation::fromUnsafe(swiftClosureWrapper);
68
68
  return [swiftClosure = std::move(swiftClosure)](const RNLocation& location) mutable -> void {
69
69
  swiftClosure.call(location);
@@ -71,7 +71,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
71
71
  }
72
72
 
73
73
  // pragma MARK: std::function<void(RNLocationErrorCode /* error */)>
74
- Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* _Nonnull swiftClosureWrapper) noexcept {
74
+ Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* NON_NULL swiftClosureWrapper) noexcept {
75
75
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLocationErrorCode::fromUnsafe(swiftClosureWrapper);
76
76
  return [swiftClosure = std::move(swiftClosure)](RNLocationErrorCode error) mutable -> void {
77
77
  swiftClosure.call(static_cast<int>(error));
@@ -79,7 +79,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
79
79
  }
80
80
 
81
81
  // pragma MARK: std::function<void(const RNLatLng& /* coordinate */)>
82
- Func_void_RNLatLng create_Func_void_RNLatLng(void* _Nonnull swiftClosureWrapper) noexcept {
82
+ Func_void_RNLatLng create_Func_void_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept {
83
83
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLatLng::fromUnsafe(swiftClosureWrapper);
84
84
  return [swiftClosure = std::move(swiftClosure)](const RNLatLng& coordinate) mutable -> void {
85
85
  swiftClosure.call(coordinate);
@@ -87,7 +87,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
87
87
  }
88
88
 
89
89
  // pragma MARK: std::function<void(const std::string& /* id */)>
90
- Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper) noexcept {
90
+ Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept {
91
91
  auto swiftClosure = RNGoogleMapsPlus::Func_void_std__string::fromUnsafe(swiftClosureWrapper);
92
92
  return [swiftClosure = std::move(swiftClosure)](const std::string& id) mutable -> void {
93
93
  swiftClosure.call(id);
@@ -95,7 +95,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
95
95
  }
96
96
 
97
97
  // pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
98
- Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* _Nonnull swiftClosureWrapper) noexcept {
98
+ Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept {
99
99
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCamera_bool::fromUnsafe(swiftClosureWrapper);
100
100
  return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const RNCamera& camera, bool isGesture) mutable -> void {
101
101
  swiftClosure.call(region, camera, isGesture);
@@ -103,11 +103,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
103
103
  }
104
104
 
105
105
  // pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>
106
- std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* _Nonnull swiftUnsafePointer) noexcept {
106
+ std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
107
107
  RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx swiftPart = RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx::fromUnsafe(swiftUnsafePointer);
108
108
  return std::make_shared<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift>(swiftPart);
109
109
  }
110
- void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) noexcept {
110
+ void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) noexcept {
111
111
  std::shared_ptr<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift>(cppType);
112
112
  #ifdef NITRO_DEBUG
113
113
  if (swiftWrapper == nullptr) [[unlikely]] {