react-native-google-maps-plus 1.1.0-dev.3 → 1.1.0-dev.4
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.
- package/README.md +7 -5
- package/RNGoogleMapsPlus.podspec +2 -1
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +54 -0
- package/android/src/main/java/com/rngooglemapsplus/MapHeatmapBuilder.kt +31 -0
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +16 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNHeatmapPointExtension.kt +9 -0
- package/ios/GoogleMapViewImpl.swift +38 -4
- package/ios/MapHeatmapBuilder.swift +27 -0
- package/ios/RNGoogleMapsPlusView.swift +22 -0
- package/ios/extensions/RNHeatmap+Extension.swift +16 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +2 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +19 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +38 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +2 -0
- package/nitrogen/generated/android/c++/JRNHeatmap.hpp +100 -0
- package/nitrogen/generated/android/c++/JRNHeatmapGradient.hpp +89 -0
- package/nitrogen/generated/android/c++/JRNHeatmapPoint.hpp +61 -0
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +4 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +6 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmap.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapGradient.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapPoint.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +1 -1
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +13 -13
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +116 -39
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +9 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +17 -1
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +5 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +110 -42
- package/nitrogen/generated/ios/swift/RNCamera.swift +8 -1
- package/nitrogen/generated/ios/swift/RNHeatmap.swift +180 -0
- package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +81 -0
- package/nitrogen/generated/ios/swift/RNHeatmapPoint.swift +57 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +8 -1
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +16 -2
- package/nitrogen/generated/ios/swift/RNMarker.swift +16 -2
- package/nitrogen/generated/ios/swift/RNPolygon.swift +15 -11
- package/nitrogen/generated/ios/swift/RNPolyline.swift +15 -11
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +5 -0
- package/nitrogen/generated/shared/c++/RNHeatmap.hpp +98 -0
- package/nitrogen/generated/shared/c++/RNHeatmapGradient.hpp +76 -0
- package/nitrogen/generated/shared/c++/RNHeatmapPoint.hpp +75 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +12 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -0
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +1 -0
- package/package.json +2 -2
- package/src/RNGoogleMapsPlusView.nitro.ts +2 -0
- package/src/types.ts +22 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JRNHeatmapGradient.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 "RNHeatmapGradient.hpp"
|
|
12
|
+
|
|
13
|
+
#include <string>
|
|
14
|
+
#include <vector>
|
|
15
|
+
|
|
16
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
17
|
+
|
|
18
|
+
using namespace facebook;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The C++ JNI bridge between the C++ struct "RNHeatmapGradient" and the the Kotlin data class "RNHeatmapGradient".
|
|
22
|
+
*/
|
|
23
|
+
struct JRNHeatmapGradient final: public jni::JavaClass<JRNHeatmapGradient> {
|
|
24
|
+
public:
|
|
25
|
+
static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNHeatmapGradient;";
|
|
26
|
+
|
|
27
|
+
public:
|
|
28
|
+
/**
|
|
29
|
+
* Convert this Java/Kotlin-based struct to the C++ struct RNHeatmapGradient by copying all values to C++.
|
|
30
|
+
*/
|
|
31
|
+
[[maybe_unused]]
|
|
32
|
+
[[nodiscard]]
|
|
33
|
+
RNHeatmapGradient toCpp() const {
|
|
34
|
+
static const auto clazz = javaClassStatic();
|
|
35
|
+
static const auto fieldColors = clazz->getField<jni::JArrayClass<jni::JString>>("colors");
|
|
36
|
+
jni::local_ref<jni::JArrayClass<jni::JString>> colors = this->getFieldValue(fieldColors);
|
|
37
|
+
static const auto fieldStartPoints = clazz->getField<jni::JArrayDouble>("startPoints");
|
|
38
|
+
jni::local_ref<jni::JArrayDouble> startPoints = this->getFieldValue(fieldStartPoints);
|
|
39
|
+
static const auto fieldColorMapSize = clazz->getField<double>("colorMapSize");
|
|
40
|
+
double colorMapSize = this->getFieldValue(fieldColorMapSize);
|
|
41
|
+
return RNHeatmapGradient(
|
|
42
|
+
[&]() {
|
|
43
|
+
size_t __size = colors->size();
|
|
44
|
+
std::vector<std::string> __vector;
|
|
45
|
+
__vector.reserve(__size);
|
|
46
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
|
47
|
+
auto __element = colors->getElement(__i);
|
|
48
|
+
__vector.push_back(__element->toStdString());
|
|
49
|
+
}
|
|
50
|
+
return __vector;
|
|
51
|
+
}(),
|
|
52
|
+
[&]() {
|
|
53
|
+
size_t __size = startPoints->size();
|
|
54
|
+
std::vector<double> __vector(__size);
|
|
55
|
+
startPoints->getRegion(0, __size, __vector.data());
|
|
56
|
+
return __vector;
|
|
57
|
+
}(),
|
|
58
|
+
colorMapSize
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public:
|
|
63
|
+
/**
|
|
64
|
+
* Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
|
|
65
|
+
*/
|
|
66
|
+
[[maybe_unused]]
|
|
67
|
+
static jni::local_ref<JRNHeatmapGradient::javaobject> fromCpp(const RNHeatmapGradient& value) {
|
|
68
|
+
return newInstance(
|
|
69
|
+
[&]() {
|
|
70
|
+
size_t __size = value.colors.size();
|
|
71
|
+
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
72
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
|
73
|
+
const auto& __element = value.colors[__i];
|
|
74
|
+
__array->setElement(__i, *jni::make_jstring(__element));
|
|
75
|
+
}
|
|
76
|
+
return __array;
|
|
77
|
+
}(),
|
|
78
|
+
[&]() {
|
|
79
|
+
size_t __size = value.startPoints.size();
|
|
80
|
+
jni::local_ref<jni::JArrayDouble> __array = jni::JArrayDouble::newArray(__size);
|
|
81
|
+
__array->setRegion(0, __size, value.startPoints.data());
|
|
82
|
+
return __array;
|
|
83
|
+
}(),
|
|
84
|
+
value.colorMapSize
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JRNHeatmapPoint.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 "RNHeatmapPoint.hpp"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
16
|
+
|
|
17
|
+
using namespace facebook;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The C++ JNI bridge between the C++ struct "RNHeatmapPoint" and the the Kotlin data class "RNHeatmapPoint".
|
|
21
|
+
*/
|
|
22
|
+
struct JRNHeatmapPoint final: public jni::JavaClass<JRNHeatmapPoint> {
|
|
23
|
+
public:
|
|
24
|
+
static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNHeatmapPoint;";
|
|
25
|
+
|
|
26
|
+
public:
|
|
27
|
+
/**
|
|
28
|
+
* Convert this Java/Kotlin-based struct to the C++ struct RNHeatmapPoint by copying all values to C++.
|
|
29
|
+
*/
|
|
30
|
+
[[maybe_unused]]
|
|
31
|
+
[[nodiscard]]
|
|
32
|
+
RNHeatmapPoint toCpp() const {
|
|
33
|
+
static const auto clazz = javaClassStatic();
|
|
34
|
+
static const auto fieldLatitude = clazz->getField<double>("latitude");
|
|
35
|
+
double latitude = this->getFieldValue(fieldLatitude);
|
|
36
|
+
static const auto fieldLongitude = clazz->getField<double>("longitude");
|
|
37
|
+
double longitude = this->getFieldValue(fieldLongitude);
|
|
38
|
+
static const auto fieldWeight = clazz->getField<double>("weight");
|
|
39
|
+
double weight = this->getFieldValue(fieldWeight);
|
|
40
|
+
return RNHeatmapPoint(
|
|
41
|
+
latitude,
|
|
42
|
+
longitude,
|
|
43
|
+
weight
|
|
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<JRNHeatmapPoint::javaobject> fromCpp(const RNHeatmapPoint& value) {
|
|
53
|
+
return newInstance(
|
|
54
|
+
value.latitude,
|
|
55
|
+
value.longitude,
|
|
56
|
+
value.weight
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -96,6 +96,10 @@ void JHybridRNGoogleMapsPlusViewStateUpdater::updateViewProps(jni::alias_ref<jni
|
|
|
96
96
|
view->setCircles(props.circles.value);
|
|
97
97
|
// TODO: Set isDirty = false
|
|
98
98
|
}
|
|
99
|
+
if (props.heatmaps.isDirty) {
|
|
100
|
+
view->setHeatmaps(props.heatmaps.value);
|
|
101
|
+
// TODO: Set isDirty = false
|
|
102
|
+
}
|
|
99
103
|
if (props.locationConfig.isDirty) {
|
|
100
104
|
view->setLocationConfig(props.locationConfig.value);
|
|
101
105
|
// TODO: Set isDirty = false
|
|
@@ -128,6 +128,12 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
128
128
|
@set:Keep
|
|
129
129
|
abstract var circles: Array<RNCircle>?
|
|
130
130
|
|
|
131
|
+
@get:DoNotStrip
|
|
132
|
+
@get:Keep
|
|
133
|
+
@set:DoNotStrip
|
|
134
|
+
@set:Keep
|
|
135
|
+
abstract var heatmaps: Array<RNHeatmap>?
|
|
136
|
+
|
|
131
137
|
@get:DoNotStrip
|
|
132
138
|
@get:Keep
|
|
133
139
|
@set:DoNotStrip
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// RNHeatmap.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 "RNHeatmap".
|
|
17
|
+
*/
|
|
18
|
+
@DoNotStrip
|
|
19
|
+
@Keep
|
|
20
|
+
data class RNHeatmap
|
|
21
|
+
@DoNotStrip
|
|
22
|
+
@Keep
|
|
23
|
+
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
26
|
+
val id: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
29
|
+
val pressable: Boolean?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val zIndex: Double?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
35
|
+
val weightedData: Array<RNHeatmapPoint>,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
val radius: Double?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
41
|
+
val opacity: Double?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
44
|
+
val gradient: RNHeatmapGradient?
|
|
45
|
+
) {
|
|
46
|
+
/* main constructor */
|
|
47
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapGradient.kt
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// RNHeatmapGradient.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 "RNHeatmapGradient".
|
|
17
|
+
*/
|
|
18
|
+
@DoNotStrip
|
|
19
|
+
@Keep
|
|
20
|
+
data class RNHeatmapGradient
|
|
21
|
+
@DoNotStrip
|
|
22
|
+
@Keep
|
|
23
|
+
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
26
|
+
val colors: Array<String>,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
29
|
+
val startPoints: DoubleArray,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val colorMapSize: Double
|
|
33
|
+
) {
|
|
34
|
+
/* main constructor */
|
|
35
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapPoint.kt
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// RNHeatmapPoint.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 "RNHeatmapPoint".
|
|
17
|
+
*/
|
|
18
|
+
@DoNotStrip
|
|
19
|
+
@Keep
|
|
20
|
+
data class RNHeatmapPoint
|
|
21
|
+
@DoNotStrip
|
|
22
|
+
@Keep
|
|
23
|
+
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
26
|
+
val latitude: Double,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
29
|
+
val longitude: Double,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val weight: Double
|
|
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
|
-
|
|
20
|
+
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*
|
|
18
|
+
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* _Nonnull 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*
|
|
26
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull 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*
|
|
34
|
+
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* _Nonnull 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*
|
|
38
|
+
void* _Nonnull 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*
|
|
50
|
+
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* _Nonnull 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*
|
|
58
|
+
Func_void_bool create_Func_void_bool(void* _Nonnull 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*
|
|
66
|
+
Func_void_RNLocation create_Func_void_RNLocation(void* _Nonnull 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*
|
|
74
|
+
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* _Nonnull 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*
|
|
82
|
+
Func_void_RNLatLng create_Func_void_RNLatLng(void* _Nonnull 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*
|
|
90
|
+
Func_void_std__string create_Func_void_std__string(void* _Nonnull 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*
|
|
98
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* _Nonnull 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*
|
|
106
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* _Nonnull 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*
|
|
110
|
+
void* _Nonnull 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]] {
|