react-native-google-maps-plus 1.2.0 → 1.3.0-dev.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 (58) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +57 -8
  2. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +13 -3
  3. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +29 -4
  4. package/android/src/main/java/com/rngooglemapsplus/extensions/IndoorBuildingExtension.kt +33 -0
  5. package/ios/GoogleMapViewImpl.swift +61 -14
  6. package/ios/MapMarkerBuilder.swift +17 -8
  7. package/ios/RNGoogleMapsPlusView.swift +19 -4
  8. package/ios/extensions/IndoorBuilding+Extension.swift +33 -0
  9. package/lib/module/types.js.map +1 -1
  10. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +10 -5
  11. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  12. package/lib/typescript/src/types.d.ts +18 -0
  13. package/lib/typescript/src/types.d.ts.map +1 -1
  14. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +8 -2
  15. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorBuilding.hpp +81 -0
  16. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorLevel.hpp +78 -0
  17. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +76 -0
  18. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +78 -0
  19. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +143 -37
  20. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +18 -8
  21. package/nitrogen/generated/android/c++/JRNIndoorBuilding.hpp +86 -0
  22. package/nitrogen/generated/android/c++/JRNIndoorLevel.hpp +66 -0
  23. package/nitrogen/generated/android/c++/JRNMarker.hpp +24 -0
  24. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +20 -0
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +81 -0
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +81 -0
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__string.kt → Func_void_std__optional_std__string_.kt} +12 -12
  28. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__optional_std__string__RNLatLng.kt +81 -0
  29. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +82 -12
  30. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorBuilding.kt +38 -0
  31. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorLevel.kt +38 -0
  32. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +18 -0
  33. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +28 -4
  34. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +146 -18
  35. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +6 -0
  36. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +49 -8
  37. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +25 -0
  38. package/nitrogen/generated/ios/swift/Func_void_RNIndoorBuilding.swift +47 -0
  39. package/nitrogen/generated/ios/swift/{Func_void_std__string.swift → Func_void_RNIndoorLevel.swift} +11 -11
  40. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +54 -0
  41. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +54 -0
  42. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +9 -4
  43. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +250 -48
  44. package/nitrogen/generated/ios/swift/RNIndoorBuilding.swift +116 -0
  45. package/nitrogen/generated/ios/swift/RNIndoorLevel.swift +118 -0
  46. package/nitrogen/generated/ios/swift/RNMarker.swift +153 -1
  47. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +10 -0
  48. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +24 -8
  49. package/nitrogen/generated/shared/c++/RNIndoorBuilding.hpp +82 -0
  50. package/nitrogen/generated/shared/c++/RNIndoorLevel.hpp +80 -0
  51. package/nitrogen/generated/shared/c++/RNMarker.hpp +25 -1
  52. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +68 -8
  53. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +11 -4
  54. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +5 -0
  55. package/package.json +1 -1
  56. package/src/RNGoogleMapsPlusView.nitro.ts +11 -4
  57. package/src/types.ts +20 -0
  58. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +0 -75
@@ -0,0 +1,86 @@
1
+ ///
2
+ /// JRNIndoorBuilding.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 "RNIndoorBuilding.hpp"
12
+
13
+ #include "JRNIndoorLevel.hpp"
14
+ #include "RNIndoorLevel.hpp"
15
+ #include <optional>
16
+ #include <string>
17
+ #include <vector>
18
+
19
+ namespace margelo::nitro::rngooglemapsplus {
20
+
21
+ using namespace facebook;
22
+
23
+ /**
24
+ * The C++ JNI bridge between the C++ struct "RNIndoorBuilding" and the the Kotlin data class "RNIndoorBuilding".
25
+ */
26
+ struct JRNIndoorBuilding final: public jni::JavaClass<JRNIndoorBuilding> {
27
+ public:
28
+ static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNIndoorBuilding;";
29
+
30
+ public:
31
+ /**
32
+ * Convert this Java/Kotlin-based struct to the C++ struct RNIndoorBuilding by copying all values to C++.
33
+ */
34
+ [[maybe_unused]]
35
+ [[nodiscard]]
36
+ RNIndoorBuilding toCpp() const {
37
+ static const auto clazz = javaClassStatic();
38
+ static const auto fieldActiveLevelIndex = clazz->getField<jni::JDouble>("activeLevelIndex");
39
+ jni::local_ref<jni::JDouble> activeLevelIndex = this->getFieldValue(fieldActiveLevelIndex);
40
+ static const auto fieldDefaultLevelIndex = clazz->getField<jni::JDouble>("defaultLevelIndex");
41
+ jni::local_ref<jni::JDouble> defaultLevelIndex = this->getFieldValue(fieldDefaultLevelIndex);
42
+ static const auto fieldLevels = clazz->getField<jni::JArrayClass<JRNIndoorLevel>>("levels");
43
+ jni::local_ref<jni::JArrayClass<JRNIndoorLevel>> levels = this->getFieldValue(fieldLevels);
44
+ static const auto fieldUnderground = clazz->getField<jni::JBoolean>("underground");
45
+ jni::local_ref<jni::JBoolean> underground = this->getFieldValue(fieldUnderground);
46
+ return RNIndoorBuilding(
47
+ activeLevelIndex != nullptr ? std::make_optional(activeLevelIndex->value()) : std::nullopt,
48
+ defaultLevelIndex != nullptr ? std::make_optional(defaultLevelIndex->value()) : std::nullopt,
49
+ [&]() {
50
+ size_t __size = levels->size();
51
+ std::vector<RNIndoorLevel> __vector;
52
+ __vector.reserve(__size);
53
+ for (size_t __i = 0; __i < __size; __i++) {
54
+ auto __element = levels->getElement(__i);
55
+ __vector.push_back(__element->toCpp());
56
+ }
57
+ return __vector;
58
+ }(),
59
+ underground != nullptr ? std::make_optional(static_cast<bool>(underground->value())) : std::nullopt
60
+ );
61
+ }
62
+
63
+ public:
64
+ /**
65
+ * Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
66
+ */
67
+ [[maybe_unused]]
68
+ static jni::local_ref<JRNIndoorBuilding::javaobject> fromCpp(const RNIndoorBuilding& value) {
69
+ return newInstance(
70
+ value.activeLevelIndex.has_value() ? jni::JDouble::valueOf(value.activeLevelIndex.value()) : nullptr,
71
+ value.defaultLevelIndex.has_value() ? jni::JDouble::valueOf(value.defaultLevelIndex.value()) : nullptr,
72
+ [&]() {
73
+ size_t __size = value.levels.size();
74
+ jni::local_ref<jni::JArrayClass<JRNIndoorLevel>> __array = jni::JArrayClass<JRNIndoorLevel>::newArray(__size);
75
+ for (size_t __i = 0; __i < __size; __i++) {
76
+ const auto& __element = value.levels[__i];
77
+ __array->setElement(__i, *JRNIndoorLevel::fromCpp(__element));
78
+ }
79
+ return __array;
80
+ }(),
81
+ value.underground.has_value() ? jni::JBoolean::valueOf(value.underground.value()) : nullptr
82
+ );
83
+ }
84
+ };
85
+
86
+ } // namespace margelo::nitro::rngooglemapsplus
@@ -0,0 +1,66 @@
1
+ ///
2
+ /// JRNIndoorLevel.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 "RNIndoorLevel.hpp"
12
+
13
+ #include <optional>
14
+ #include <string>
15
+
16
+ namespace margelo::nitro::rngooglemapsplus {
17
+
18
+ using namespace facebook;
19
+
20
+ /**
21
+ * The C++ JNI bridge between the C++ struct "RNIndoorLevel" and the the Kotlin data class "RNIndoorLevel".
22
+ */
23
+ struct JRNIndoorLevel final: public jni::JavaClass<JRNIndoorLevel> {
24
+ public:
25
+ static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNIndoorLevel;";
26
+
27
+ public:
28
+ /**
29
+ * Convert this Java/Kotlin-based struct to the C++ struct RNIndoorLevel by copying all values to C++.
30
+ */
31
+ [[maybe_unused]]
32
+ [[nodiscard]]
33
+ RNIndoorLevel toCpp() const {
34
+ static const auto clazz = javaClassStatic();
35
+ static const auto fieldIndex = clazz->getField<double>("index");
36
+ double index = this->getFieldValue(fieldIndex);
37
+ static const auto fieldName = clazz->getField<jni::JString>("name");
38
+ jni::local_ref<jni::JString> name = this->getFieldValue(fieldName);
39
+ static const auto fieldShortName = clazz->getField<jni::JString>("shortName");
40
+ jni::local_ref<jni::JString> shortName = this->getFieldValue(fieldShortName);
41
+ static const auto fieldActive = clazz->getField<jni::JBoolean>("active");
42
+ jni::local_ref<jni::JBoolean> active = this->getFieldValue(fieldActive);
43
+ return RNIndoorLevel(
44
+ index,
45
+ name != nullptr ? std::make_optional(name->toStdString()) : std::nullopt,
46
+ shortName != nullptr ? std::make_optional(shortName->toStdString()) : std::nullopt,
47
+ active != nullptr ? std::make_optional(static_cast<bool>(active->value())) : std::nullopt
48
+ );
49
+ }
50
+
51
+ public:
52
+ /**
53
+ * Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
54
+ */
55
+ [[maybe_unused]]
56
+ static jni::local_ref<JRNIndoorLevel::javaobject> fromCpp(const RNIndoorLevel& value) {
57
+ return newInstance(
58
+ value.index,
59
+ value.name.has_value() ? jni::make_jstring(value.name.value()) : nullptr,
60
+ value.shortName.has_value() ? jni::make_jstring(value.shortName.value()) : nullptr,
61
+ value.active.has_value() ? jni::JBoolean::valueOf(value.active.value()) : nullptr
62
+ );
63
+ }
64
+ };
65
+
66
+ } // namespace margelo::nitro::rngooglemapsplus
@@ -46,6 +46,18 @@ namespace margelo::nitro::rngooglemapsplus {
46
46
  jni::local_ref<JRNLatLng> coordinate = this->getFieldValue(fieldCoordinate);
47
47
  static const auto fieldAnchor = clazz->getField<JRNPosition>("anchor");
48
48
  jni::local_ref<JRNPosition> anchor = this->getFieldValue(fieldAnchor);
49
+ static const auto fieldShowInfoWindow = clazz->getField<jni::JBoolean>("showInfoWindow");
50
+ jni::local_ref<jni::JBoolean> showInfoWindow = this->getFieldValue(fieldShowInfoWindow);
51
+ static const auto fieldTitle = clazz->getField<jni::JString>("title");
52
+ jni::local_ref<jni::JString> title = this->getFieldValue(fieldTitle);
53
+ static const auto fieldSnippet = clazz->getField<jni::JString>("snippet");
54
+ jni::local_ref<jni::JString> snippet = this->getFieldValue(fieldSnippet);
55
+ static const auto fieldOpacity = clazz->getField<jni::JDouble>("opacity");
56
+ jni::local_ref<jni::JDouble> opacity = this->getFieldValue(fieldOpacity);
57
+ static const auto fieldFlat = clazz->getField<jni::JBoolean>("flat");
58
+ jni::local_ref<jni::JBoolean> flat = this->getFieldValue(fieldFlat);
59
+ static const auto fieldDraggable = clazz->getField<jni::JBoolean>("draggable");
60
+ jni::local_ref<jni::JBoolean> draggable = this->getFieldValue(fieldDraggable);
49
61
  static const auto fieldIconSvg = clazz->getField<JRNMarkerSvg>("iconSvg");
50
62
  jni::local_ref<JRNMarkerSvg> iconSvg = this->getFieldValue(fieldIconSvg);
51
63
  return RNMarker(
@@ -53,6 +65,12 @@ namespace margelo::nitro::rngooglemapsplus {
53
65
  zIndex != nullptr ? std::make_optional(zIndex->value()) : std::nullopt,
54
66
  coordinate->toCpp(),
55
67
  anchor != nullptr ? std::make_optional(anchor->toCpp()) : std::nullopt,
68
+ showInfoWindow != nullptr ? std::make_optional(static_cast<bool>(showInfoWindow->value())) : std::nullopt,
69
+ title != nullptr ? std::make_optional(title->toStdString()) : std::nullopt,
70
+ snippet != nullptr ? std::make_optional(snippet->toStdString()) : std::nullopt,
71
+ opacity != nullptr ? std::make_optional(opacity->value()) : std::nullopt,
72
+ flat != nullptr ? std::make_optional(static_cast<bool>(flat->value())) : std::nullopt,
73
+ draggable != nullptr ? std::make_optional(static_cast<bool>(draggable->value())) : std::nullopt,
56
74
  iconSvg != nullptr ? std::make_optional(iconSvg->toCpp()) : std::nullopt
57
75
  );
58
76
  }
@@ -68,6 +86,12 @@ namespace margelo::nitro::rngooglemapsplus {
68
86
  value.zIndex.has_value() ? jni::JDouble::valueOf(value.zIndex.value()) : nullptr,
69
87
  JRNLatLng::fromCpp(value.coordinate),
70
88
  value.anchor.has_value() ? JRNPosition::fromCpp(value.anchor.value()) : nullptr,
89
+ value.showInfoWindow.has_value() ? jni::JBoolean::valueOf(value.showInfoWindow.value()) : nullptr,
90
+ value.title.has_value() ? jni::make_jstring(value.title.value()) : nullptr,
91
+ value.snippet.has_value() ? jni::make_jstring(value.snippet.value()) : nullptr,
92
+ value.opacity.has_value() ? jni::JDouble::valueOf(value.opacity.value()) : nullptr,
93
+ value.flat.has_value() ? jni::JBoolean::valueOf(value.flat.value()) : nullptr,
94
+ value.draggable.has_value() ? jni::JBoolean::valueOf(value.draggable.value()) : nullptr,
71
95
  value.iconSvg.has_value() ? JRNMarkerSvg::fromCpp(value.iconSvg.value()) : nullptr
72
96
  );
73
97
  }
@@ -144,6 +144,26 @@ void JHybridRNGoogleMapsPlusViewStateUpdater::updateViewProps(jni::alias_ref<jni
144
144
  view->setOnCirclePress(props.onCirclePress.value);
145
145
  // TODO: Set isDirty = false
146
146
  }
147
+ if (props.onMarkerDragStart.isDirty) {
148
+ view->setOnMarkerDragStart(props.onMarkerDragStart.value);
149
+ // TODO: Set isDirty = false
150
+ }
151
+ if (props.onMarkerDrag.isDirty) {
152
+ view->setOnMarkerDrag(props.onMarkerDrag.value);
153
+ // TODO: Set isDirty = false
154
+ }
155
+ if (props.onMarkerDragEnd.isDirty) {
156
+ view->setOnMarkerDragEnd(props.onMarkerDragEnd.value);
157
+ // TODO: Set isDirty = false
158
+ }
159
+ if (props.onIndoorBuildingFocused.isDirty) {
160
+ view->setOnIndoorBuildingFocused(props.onIndoorBuildingFocused.value);
161
+ // TODO: Set isDirty = false
162
+ }
163
+ if (props.onIndoorLevelActivated.isDirty) {
164
+ view->setOnIndoorLevelActivated(props.onIndoorLevelActivated.value);
165
+ // TODO: Set isDirty = false
166
+ }
147
167
  if (props.onCameraChangeStart.isDirty) {
148
168
  view->setOnCameraChangeStart(props.onCameraChangeStart.value);
149
169
  // TODO: Set isDirty = false
@@ -0,0 +1,81 @@
1
+ ///
2
+ /// Func_void_RNIndoorBuilding.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.jni.HybridData
12
+ import com.facebook.proguard.annotations.DoNotStrip
13
+ import com.margelo.nitro.core.*
14
+ import dalvik.annotation.optimization.FastNative
15
+
16
+
17
+ /**
18
+ * Represents the JavaScript callback `(indoorBuilding: struct) => void`.
19
+ * This can be either implemented in C++ (in which case it might be a callback coming from JS),
20
+ * or in Kotlin/Java (in which case it is a native callback).
21
+ */
22
+ @DoNotStrip
23
+ @Keep
24
+ @Suppress("ClassName", "RedundantUnitReturnType")
25
+ fun interface Func_void_RNIndoorBuilding: (RNIndoorBuilding) -> Unit {
26
+ /**
27
+ * Call the given JS callback.
28
+ * @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
29
+ */
30
+ @DoNotStrip
31
+ @Keep
32
+ override fun invoke(indoorBuilding: RNIndoorBuilding): Unit
33
+ }
34
+
35
+ /**
36
+ * Represents the JavaScript callback `(indoorBuilding: struct) => void`.
37
+ * This is implemented in C++, via a `std::function<...>`.
38
+ * The callback might be coming from JS.
39
+ */
40
+ @DoNotStrip
41
+ @Keep
42
+ @Suppress(
43
+ "KotlinJniMissingFunction", "unused",
44
+ "RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
45
+ "ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
46
+ )
47
+ class Func_void_RNIndoorBuilding_cxx: Func_void_RNIndoorBuilding {
48
+ @DoNotStrip
49
+ @Keep
50
+ private val mHybridData: HybridData
51
+
52
+ @DoNotStrip
53
+ @Keep
54
+ private constructor(hybridData: HybridData) {
55
+ mHybridData = hybridData
56
+ }
57
+
58
+ @DoNotStrip
59
+ @Keep
60
+ override fun invoke(indoorBuilding: RNIndoorBuilding): Unit
61
+ = invoke_cxx(indoorBuilding)
62
+
63
+ @FastNative
64
+ private external fun invoke_cxx(indoorBuilding: RNIndoorBuilding): Unit
65
+ }
66
+
67
+ /**
68
+ * Represents the JavaScript callback `(indoorBuilding: struct) => void`.
69
+ * This is implemented in Java/Kotlin, via a `(RNIndoorBuilding) -> Unit`.
70
+ * The callback is always coming from native.
71
+ */
72
+ @DoNotStrip
73
+ @Keep
74
+ @Suppress("ClassName", "RedundantUnitReturnType", "unused")
75
+ class Func_void_RNIndoorBuilding_java(private val function: (RNIndoorBuilding) -> Unit): Func_void_RNIndoorBuilding {
76
+ @DoNotStrip
77
+ @Keep
78
+ override fun invoke(indoorBuilding: RNIndoorBuilding): Unit {
79
+ return this.function(indoorBuilding)
80
+ }
81
+ }
@@ -0,0 +1,81 @@
1
+ ///
2
+ /// Func_void_RNIndoorLevel.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.jni.HybridData
12
+ import com.facebook.proguard.annotations.DoNotStrip
13
+ import com.margelo.nitro.core.*
14
+ import dalvik.annotation.optimization.FastNative
15
+
16
+
17
+ /**
18
+ * Represents the JavaScript callback `(indoorLevel: struct) => void`.
19
+ * This can be either implemented in C++ (in which case it might be a callback coming from JS),
20
+ * or in Kotlin/Java (in which case it is a native callback).
21
+ */
22
+ @DoNotStrip
23
+ @Keep
24
+ @Suppress("ClassName", "RedundantUnitReturnType")
25
+ fun interface Func_void_RNIndoorLevel: (RNIndoorLevel) -> Unit {
26
+ /**
27
+ * Call the given JS callback.
28
+ * @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
29
+ */
30
+ @DoNotStrip
31
+ @Keep
32
+ override fun invoke(indoorLevel: RNIndoorLevel): Unit
33
+ }
34
+
35
+ /**
36
+ * Represents the JavaScript callback `(indoorLevel: struct) => void`.
37
+ * This is implemented in C++, via a `std::function<...>`.
38
+ * The callback might be coming from JS.
39
+ */
40
+ @DoNotStrip
41
+ @Keep
42
+ @Suppress(
43
+ "KotlinJniMissingFunction", "unused",
44
+ "RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
45
+ "ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
46
+ )
47
+ class Func_void_RNIndoorLevel_cxx: Func_void_RNIndoorLevel {
48
+ @DoNotStrip
49
+ @Keep
50
+ private val mHybridData: HybridData
51
+
52
+ @DoNotStrip
53
+ @Keep
54
+ private constructor(hybridData: HybridData) {
55
+ mHybridData = hybridData
56
+ }
57
+
58
+ @DoNotStrip
59
+ @Keep
60
+ override fun invoke(indoorLevel: RNIndoorLevel): Unit
61
+ = invoke_cxx(indoorLevel)
62
+
63
+ @FastNative
64
+ private external fun invoke_cxx(indoorLevel: RNIndoorLevel): Unit
65
+ }
66
+
67
+ /**
68
+ * Represents the JavaScript callback `(indoorLevel: struct) => void`.
69
+ * This is implemented in Java/Kotlin, via a `(RNIndoorLevel) -> Unit`.
70
+ * The callback is always coming from native.
71
+ */
72
+ @DoNotStrip
73
+ @Keep
74
+ @Suppress("ClassName", "RedundantUnitReturnType", "unused")
75
+ class Func_void_RNIndoorLevel_java(private val function: (RNIndoorLevel) -> Unit): Func_void_RNIndoorLevel {
76
+ @DoNotStrip
77
+ @Keep
78
+ override fun invoke(indoorLevel: RNIndoorLevel): Unit {
79
+ return this.function(indoorLevel)
80
+ }
81
+ }
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// Func_void_std__string.kt
2
+ /// Func_void_std__optional_std__string_.kt
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
@@ -15,25 +15,25 @@ import dalvik.annotation.optimization.FastNative
15
15
 
16
16
 
17
17
  /**
18
- * Represents the JavaScript callback `(id: string) => void`.
18
+ * Represents the JavaScript callback `(id: optional) => void`.
19
19
  * This can be either implemented in C++ (in which case it might be a callback coming from JS),
20
20
  * or in Kotlin/Java (in which case it is a native callback).
21
21
  */
22
22
  @DoNotStrip
23
23
  @Keep
24
24
  @Suppress("ClassName", "RedundantUnitReturnType")
25
- fun interface Func_void_std__string: (String) -> Unit {
25
+ fun interface Func_void_std__optional_std__string_: (String?) -> Unit {
26
26
  /**
27
27
  * Call the given JS callback.
28
28
  * @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
29
29
  */
30
30
  @DoNotStrip
31
31
  @Keep
32
- override fun invoke(id: String): Unit
32
+ override fun invoke(id: String?): Unit
33
33
  }
34
34
 
35
35
  /**
36
- * Represents the JavaScript callback `(id: string) => void`.
36
+ * Represents the JavaScript callback `(id: optional) => void`.
37
37
  * This is implemented in C++, via a `std::function<...>`.
38
38
  * The callback might be coming from JS.
39
39
  */
@@ -44,7 +44,7 @@ fun interface Func_void_std__string: (String) -> Unit {
44
44
  "RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
45
45
  "ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
46
46
  )
47
- class Func_void_std__string_cxx: Func_void_std__string {
47
+ class Func_void_std__optional_std__string__cxx: Func_void_std__optional_std__string_ {
48
48
  @DoNotStrip
49
49
  @Keep
50
50
  private val mHybridData: HybridData
@@ -57,25 +57,25 @@ class Func_void_std__string_cxx: Func_void_std__string {
57
57
 
58
58
  @DoNotStrip
59
59
  @Keep
60
- override fun invoke(id: String): Unit
60
+ override fun invoke(id: String?): Unit
61
61
  = invoke_cxx(id)
62
62
 
63
63
  @FastNative
64
- private external fun invoke_cxx(id: String): Unit
64
+ private external fun invoke_cxx(id: String?): Unit
65
65
  }
66
66
 
67
67
  /**
68
- * Represents the JavaScript callback `(id: string) => void`.
69
- * This is implemented in Java/Kotlin, via a `(String) -> Unit`.
68
+ * Represents the JavaScript callback `(id: optional) => void`.
69
+ * This is implemented in Java/Kotlin, via a `(String?) -> Unit`.
70
70
  * The callback is always coming from native.
71
71
  */
72
72
  @DoNotStrip
73
73
  @Keep
74
74
  @Suppress("ClassName", "RedundantUnitReturnType", "unused")
75
- class Func_void_std__string_java(private val function: (String) -> Unit): Func_void_std__string {
75
+ class Func_void_std__optional_std__string__java(private val function: (String?) -> Unit): Func_void_std__optional_std__string_ {
76
76
  @DoNotStrip
77
77
  @Keep
78
- override fun invoke(id: String): Unit {
78
+ override fun invoke(id: String?): Unit {
79
79
  return this.function(id)
80
80
  }
81
81
  }
@@ -0,0 +1,81 @@
1
+ ///
2
+ /// Func_void_std__optional_std__string__RNLatLng.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.jni.HybridData
12
+ import com.facebook.proguard.annotations.DoNotStrip
13
+ import com.margelo.nitro.core.*
14
+ import dalvik.annotation.optimization.FastNative
15
+
16
+
17
+ /**
18
+ * Represents the JavaScript callback `(id: optional, location: struct) => void`.
19
+ * This can be either implemented in C++ (in which case it might be a callback coming from JS),
20
+ * or in Kotlin/Java (in which case it is a native callback).
21
+ */
22
+ @DoNotStrip
23
+ @Keep
24
+ @Suppress("ClassName", "RedundantUnitReturnType")
25
+ fun interface Func_void_std__optional_std__string__RNLatLng: (String?, RNLatLng) -> Unit {
26
+ /**
27
+ * Call the given JS callback.
28
+ * @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
29
+ */
30
+ @DoNotStrip
31
+ @Keep
32
+ override fun invoke(id: String?, location: RNLatLng): Unit
33
+ }
34
+
35
+ /**
36
+ * Represents the JavaScript callback `(id: optional, location: struct) => void`.
37
+ * This is implemented in C++, via a `std::function<...>`.
38
+ * The callback might be coming from JS.
39
+ */
40
+ @DoNotStrip
41
+ @Keep
42
+ @Suppress(
43
+ "KotlinJniMissingFunction", "unused",
44
+ "RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
45
+ "ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
46
+ )
47
+ class Func_void_std__optional_std__string__RNLatLng_cxx: Func_void_std__optional_std__string__RNLatLng {
48
+ @DoNotStrip
49
+ @Keep
50
+ private val mHybridData: HybridData
51
+
52
+ @DoNotStrip
53
+ @Keep
54
+ private constructor(hybridData: HybridData) {
55
+ mHybridData = hybridData
56
+ }
57
+
58
+ @DoNotStrip
59
+ @Keep
60
+ override fun invoke(id: String?, location: RNLatLng): Unit
61
+ = invoke_cxx(id,location)
62
+
63
+ @FastNative
64
+ private external fun invoke_cxx(id: String?, location: RNLatLng): Unit
65
+ }
66
+
67
+ /**
68
+ * Represents the JavaScript callback `(id: optional, location: struct) => void`.
69
+ * This is implemented in Java/Kotlin, via a `(String?, RNLatLng) -> Unit`.
70
+ * The callback is always coming from native.
71
+ */
72
+ @DoNotStrip
73
+ @Keep
74
+ @Suppress("ClassName", "RedundantUnitReturnType", "unused")
75
+ class Func_void_std__optional_std__string__RNLatLng_java(private val function: (String?, RNLatLng) -> Unit): Func_void_std__optional_std__string__RNLatLng {
76
+ @DoNotStrip
77
+ @Keep
78
+ override fun invoke(id: String?, location: RNLatLng): Unit {
79
+ return this.function(id, location)
80
+ }
81
+ }