react-native-google-maps-plus 1.3.0-dev.5 → 1.3.0-dev.6
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/android/build.gradle +1 -1
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +1 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +8 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +2 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +1 -0
- package/ios/MapMarkerBuilder.swift +1 -1
- package/ios/extensions/RNMarker+Extension.swift +5 -0
- package/ios/extensions/RNPolygon+Extension.swift.swift +16 -1
- package/ios/extensions/RNPolyline+Extension.swift.swift +1 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +1 -1
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -16
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +22 -20
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +3 -3
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +7 -56
- package/nitrogen/generated/ios/swift/RNCamera.swift +1 -8
- package/nitrogen/generated/ios/swift/RNHeatmap.swift +1 -8
- package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +11 -15
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -8
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +2 -16
- package/nitrogen/generated/ios/swift/RNMarker.swift +3 -24
- package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +1 -8
- package/nitrogen/generated/shared/c++/RNAndroidLocationConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNCamera.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNCircle.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNHeatmap.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNHeatmapGradient.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNHeatmapPoint.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNIOSLocationConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNIndoorBuilding.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNIndoorLevel.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNKMLayer.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLatLng.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLatLngBounds.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLocation.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLocationConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLocationPermissionResult.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMapPadding.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMapZoomConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMarker.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMarkerSvg.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNPolygon.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNPolygonHole.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNPolyline.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNPosition.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNRegion.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNSize.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNSnapshotOptions.hpp +8 -0
- package/package.json +4 -4
package/android/build.gradle
CHANGED
|
@@ -28,7 +28,7 @@ apply from: "./fix-prefab.gradle"
|
|
|
28
28
|
if (rootProject.name != "rngooglemapsplus.example") {
|
|
29
29
|
apply plugin: "com.facebook.react"
|
|
30
30
|
} else {
|
|
31
|
-
println("\u001B[
|
|
31
|
+
println("\u001B[33mSkipping React Native Gradle plugin in library (example build detected)\u001B[0m")
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
def getExtOrIntegerDefault(name) {
|
|
@@ -68,7 +68,7 @@ class MapMarkerBuilder(
|
|
|
68
68
|
}
|
|
69
69
|
marker.title = next.title
|
|
70
70
|
marker.snippet = next.snippet
|
|
71
|
-
marker.alpha = next.opacity?.toFloat() ?:
|
|
71
|
+
marker.alpha = next.opacity?.toFloat() ?: 1f
|
|
72
72
|
marker.isFlat = next.flat ?: false
|
|
73
73
|
marker.isDraggable = next.draggable ?: false
|
|
74
74
|
marker.rotation = next.rotation?.toFloat() ?: 0f
|
|
@@ -7,6 +7,14 @@ fun RNMarker.markerEquals(b: RNMarker): Boolean =
|
|
|
7
7
|
zIndex == b.zIndex &&
|
|
8
8
|
coordinate == b.coordinate &&
|
|
9
9
|
anchor == b.anchor &&
|
|
10
|
+
showInfoWindow == b.showInfoWindow &&
|
|
11
|
+
title == b.title &&
|
|
12
|
+
snippet == b.snippet &&
|
|
13
|
+
opacity == b.opacity &&
|
|
14
|
+
flat == b.flat &&
|
|
15
|
+
draggable == b.draggable &&
|
|
16
|
+
rotation == b.rotation &&
|
|
17
|
+
infoWindowAnchor == b.infoWindowAnchor &&
|
|
10
18
|
markerStyleEquals(b)
|
|
11
19
|
|
|
12
20
|
fun RNMarker.markerStyleEquals(b: RNMarker): Boolean = iconSvg == b.iconSvg
|
|
@@ -8,6 +8,8 @@ fun RNPolygon.polygonEquals(b: RNPolygon): Boolean {
|
|
|
8
8
|
if (strokeWidth != b.strokeWidth) return false
|
|
9
9
|
if (fillColor != b.fillColor) return false
|
|
10
10
|
if (strokeColor != b.strokeColor) return false
|
|
11
|
+
if (geodesic != b.geodesic) return false
|
|
12
|
+
if (!holes.contentEquals(b.holes)) return false
|
|
11
13
|
val ac = coordinates
|
|
12
14
|
val bc = b.coordinates
|
|
13
15
|
if (ac.size != bc.size) return false
|
|
@@ -8,6 +8,7 @@ fun RNPolyline.polylineEquals(b: RNPolyline): Boolean {
|
|
|
8
8
|
if ((width ?: 0.0) != (b.width ?: 0.0)) return false
|
|
9
9
|
if (lineCap != b.lineCap) return false
|
|
10
10
|
if (lineJoin != b.lineJoin) return false
|
|
11
|
+
if (geodesic != b.geodesic) return false
|
|
11
12
|
if (color != b.color) return false
|
|
12
13
|
val ac = coordinates
|
|
13
14
|
val bc = b.coordinates
|
|
@@ -47,7 +47,7 @@ final class MapMarkerBuilder {
|
|
|
47
47
|
m.position = next.coordinate.toCLLocationCoordinate2D()
|
|
48
48
|
m.title = next.title
|
|
49
49
|
m.snippet = next.snippet
|
|
50
|
-
m.iconView?.alpha = CGFloat(next.opacity ??
|
|
50
|
+
m.iconView?.alpha = CGFloat(next.opacity ?? 1)
|
|
51
51
|
m.isFlat = next.flat ?? false
|
|
52
52
|
m.isDraggable = next.draggable ?? false
|
|
53
53
|
m.rotation = next.rotation ?? 0
|
|
@@ -6,6 +6,11 @@ extension RNMarker {
|
|
|
6
6
|
&& coordinate.latitude == b.coordinate.latitude
|
|
7
7
|
&& coordinate.longitude == b.coordinate.longitude
|
|
8
8
|
&& anchor?.x == b.anchor?.x && anchor?.y == b.anchor?.y
|
|
9
|
+
&& showInfoWindow == b.showInfoWindow && title == b.title
|
|
10
|
+
&& snippet == b.snippet && opacity == b.opacity && flat == b.flat
|
|
11
|
+
&& draggable == b.draggable && rotation == b.rotation
|
|
12
|
+
&& infoWindowAnchor?.x == b.infoWindowAnchor?.x
|
|
13
|
+
&& infoWindowAnchor?.y == b.infoWindowAnchor?.y
|
|
9
14
|
&& markerStyleEquals(b)
|
|
10
15
|
}
|
|
11
16
|
|
|
@@ -7,7 +7,9 @@ extension RNPolygon {
|
|
|
7
7
|
strokeWidth == b.strokeWidth,
|
|
8
8
|
fillColor == b.fillColor,
|
|
9
9
|
strokeColor == b.strokeColor,
|
|
10
|
-
|
|
10
|
+
geodesic == b.geodesic,
|
|
11
|
+
coordinates.count == b.coordinates.count,
|
|
12
|
+
holes?.count == b.holes?.count
|
|
11
13
|
else { return false }
|
|
12
14
|
|
|
13
15
|
for i in 0..<coordinates.count {
|
|
@@ -17,6 +19,19 @@ extension RNPolygon {
|
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
|
|
22
|
+
for i in 0..<(holes?.count ?? 0) {
|
|
23
|
+
let ha = holes![i]
|
|
24
|
+
let hb = b.holes![i]
|
|
25
|
+
if ha.coordinates.count != hb.coordinates.count { return false }
|
|
26
|
+
|
|
27
|
+
for j in 0..<ha.coordinates.count {
|
|
28
|
+
if ha.coordinates[j].latitude != hb.coordinates[j].latitude
|
|
29
|
+
|| ha.coordinates[j].longitude != hb.coordinates[j].longitude {
|
|
30
|
+
return false
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
20
35
|
return true
|
|
21
36
|
}
|
|
22
37
|
}
|
|
@@ -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*
|
|
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*
|
|
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*
|
|
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*
|
|
38
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) {
|
|
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* 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*
|
|
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*
|
|
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*
|
|
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*
|
|
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::optional<std::string>& /* id */)>
|
|
90
|
-
Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void*
|
|
90
|
+
Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
91
91
|
auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string_::fromUnsafe(swiftClosureWrapper);
|
|
92
92
|
return [swiftClosure = std::move(swiftClosure)](const std::optional<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 std::optional<std::string>& /* id */, const RNLatLng& /* location */)>
|
|
98
|
-
Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void*
|
|
98
|
+
Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
99
99
|
auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string__RNLatLng::fromUnsafe(swiftClosureWrapper);
|
|
100
100
|
return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& id, const RNLatLng& location) mutable -> void {
|
|
101
101
|
swiftClosure.call(id, location);
|
|
@@ -103,7 +103,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// pragma MARK: std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>
|
|
106
|
-
Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void*
|
|
106
|
+
Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
107
107
|
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorBuilding::fromUnsafe(swiftClosureWrapper);
|
|
108
108
|
return [swiftClosure = std::move(swiftClosure)](const RNIndoorBuilding& indoorBuilding) mutable -> void {
|
|
109
109
|
swiftClosure.call(indoorBuilding);
|
|
@@ -111,7 +111,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// pragma MARK: std::function<void(const RNIndoorLevel& /* indoorLevel */)>
|
|
114
|
-
Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void*
|
|
114
|
+
Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
115
115
|
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorLevel::fromUnsafe(swiftClosureWrapper);
|
|
116
116
|
return [swiftClosure = std::move(swiftClosure)](const RNIndoorLevel& indoorLevel) mutable -> void {
|
|
117
117
|
swiftClosure.call(indoorLevel);
|
|
@@ -119,7 +119,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
|
|
122
|
-
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void*
|
|
122
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
123
123
|
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCamera_bool::fromUnsafe(swiftClosureWrapper);
|
|
124
124
|
return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const RNCamera& camera, bool isGesture) mutable -> void {
|
|
125
125
|
swiftClosure.call(region, camera, isGesture);
|
|
@@ -127,11 +127,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
130
|
-
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void*
|
|
130
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
131
131
|
RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx swiftPart = RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
132
132
|
return std::make_shared<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift>(swiftPart);
|
|
133
133
|
}
|
|
134
|
-
void*
|
|
134
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) {
|
|
135
135
|
std::shared_ptr<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift>(cppType);
|
|
136
136
|
#ifdef NITRO_DEBUG
|
|
137
137
|
if (swiftWrapper == nullptr) [[unlikely]] {
|
|
@@ -133,6 +133,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
133
133
|
#include "RNRegion.hpp"
|
|
134
134
|
#include "RNSize.hpp"
|
|
135
135
|
#include "RNUserInterfaceStyle.hpp"
|
|
136
|
+
#include <NitroModules/FastVectorCopy.hpp>
|
|
136
137
|
#include <NitroModules/Promise.hpp>
|
|
137
138
|
#include <NitroModules/PromiseHolder.hpp>
|
|
138
139
|
#include <NitroModules/Result.hpp>
|
|
@@ -208,7 +209,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
208
209
|
private:
|
|
209
210
|
std::unique_ptr<std::function<void(const RNLocationPermissionResult& /* result */)>> _function;
|
|
210
211
|
} SWIFT_NONCOPYABLE;
|
|
211
|
-
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void*
|
|
212
|
+
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
212
213
|
inline Func_void_RNLocationPermissionResult_Wrapper wrap_Func_void_RNLocationPermissionResult(Func_void_RNLocationPermissionResult value) noexcept {
|
|
213
214
|
return Func_void_RNLocationPermissionResult_Wrapper(std::move(value));
|
|
214
215
|
}
|
|
@@ -230,7 +231,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
230
231
|
private:
|
|
231
232
|
std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
232
233
|
} SWIFT_NONCOPYABLE;
|
|
233
|
-
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void*
|
|
234
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
234
235
|
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
|
|
235
236
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
236
237
|
}
|
|
@@ -240,8 +241,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
240
241
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>`.
|
|
241
242
|
*/
|
|
242
243
|
using std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
243
|
-
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void*
|
|
244
|
-
void*
|
|
244
|
+
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
245
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType);
|
|
245
246
|
|
|
246
247
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>
|
|
247
248
|
using std__weak_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
@@ -667,10 +668,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
667
668
|
* Specialized version of `std::vector<double>`.
|
|
668
669
|
*/
|
|
669
670
|
using std__vector_double_ = std::vector<double>;
|
|
670
|
-
inline std::vector<double>
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
671
|
+
inline std::vector<double> copy_std__vector_double_(const double* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
672
|
+
return margelo::nitro::FastVectorCopy<double>(data, size);
|
|
673
|
+
}
|
|
674
|
+
inline const double* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_double_(const std::vector<double>& vector) noexcept {
|
|
675
|
+
return vector.data();
|
|
674
676
|
}
|
|
675
677
|
|
|
676
678
|
// pragma MARK: std::optional<RNHeatmapGradient>
|
|
@@ -832,7 +834,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
832
834
|
private:
|
|
833
835
|
std::unique_ptr<std::function<void(RNMapErrorCode /* error */)>> _function;
|
|
834
836
|
} SWIFT_NONCOPYABLE;
|
|
835
|
-
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void*
|
|
837
|
+
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
836
838
|
inline Func_void_RNMapErrorCode_Wrapper wrap_Func_void_RNMapErrorCode(Func_void_RNMapErrorCode value) noexcept {
|
|
837
839
|
return Func_void_RNMapErrorCode_Wrapper(std::move(value));
|
|
838
840
|
}
|
|
@@ -869,7 +871,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
869
871
|
private:
|
|
870
872
|
std::unique_ptr<std::function<void(bool /* ready */)>> _function;
|
|
871
873
|
} SWIFT_NONCOPYABLE;
|
|
872
|
-
Func_void_bool create_Func_void_bool(void*
|
|
874
|
+
Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
873
875
|
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
|
|
874
876
|
return Func_void_bool_Wrapper(std::move(value));
|
|
875
877
|
}
|
|
@@ -906,7 +908,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
906
908
|
private:
|
|
907
909
|
std::unique_ptr<std::function<void(const RNLocation& /* location */)>> _function;
|
|
908
910
|
} SWIFT_NONCOPYABLE;
|
|
909
|
-
Func_void_RNLocation create_Func_void_RNLocation(void*
|
|
911
|
+
Func_void_RNLocation create_Func_void_RNLocation(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
910
912
|
inline Func_void_RNLocation_Wrapper wrap_Func_void_RNLocation(Func_void_RNLocation value) noexcept {
|
|
911
913
|
return Func_void_RNLocation_Wrapper(std::move(value));
|
|
912
914
|
}
|
|
@@ -943,7 +945,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
943
945
|
private:
|
|
944
946
|
std::unique_ptr<std::function<void(RNLocationErrorCode /* error */)>> _function;
|
|
945
947
|
} SWIFT_NONCOPYABLE;
|
|
946
|
-
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void*
|
|
948
|
+
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
947
949
|
inline Func_void_RNLocationErrorCode_Wrapper wrap_Func_void_RNLocationErrorCode(Func_void_RNLocationErrorCode value) noexcept {
|
|
948
950
|
return Func_void_RNLocationErrorCode_Wrapper(std::move(value));
|
|
949
951
|
}
|
|
@@ -980,7 +982,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
980
982
|
private:
|
|
981
983
|
std::unique_ptr<std::function<void(const RNLatLng& /* coordinate */)>> _function;
|
|
982
984
|
} SWIFT_NONCOPYABLE;
|
|
983
|
-
Func_void_RNLatLng create_Func_void_RNLatLng(void*
|
|
985
|
+
Func_void_RNLatLng create_Func_void_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
984
986
|
inline Func_void_RNLatLng_Wrapper wrap_Func_void_RNLatLng(Func_void_RNLatLng value) noexcept {
|
|
985
987
|
return Func_void_RNLatLng_Wrapper(std::move(value));
|
|
986
988
|
}
|
|
@@ -1017,7 +1019,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1017
1019
|
private:
|
|
1018
1020
|
std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */)>> _function;
|
|
1019
1021
|
} SWIFT_NONCOPYABLE;
|
|
1020
|
-
Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void*
|
|
1022
|
+
Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1021
1023
|
inline Func_void_std__optional_std__string__Wrapper wrap_Func_void_std__optional_std__string_(Func_void_std__optional_std__string_ value) noexcept {
|
|
1022
1024
|
return Func_void_std__optional_std__string__Wrapper(std::move(value));
|
|
1023
1025
|
}
|
|
@@ -1054,7 +1056,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1054
1056
|
private:
|
|
1055
1057
|
std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> _function;
|
|
1056
1058
|
} SWIFT_NONCOPYABLE;
|
|
1057
|
-
Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void*
|
|
1059
|
+
Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1058
1060
|
inline Func_void_std__optional_std__string__RNLatLng_Wrapper wrap_Func_void_std__optional_std__string__RNLatLng(Func_void_std__optional_std__string__RNLatLng value) noexcept {
|
|
1059
1061
|
return Func_void_std__optional_std__string__RNLatLng_Wrapper(std::move(value));
|
|
1060
1062
|
}
|
|
@@ -1102,7 +1104,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1102
1104
|
private:
|
|
1103
1105
|
std::unique_ptr<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> _function;
|
|
1104
1106
|
} SWIFT_NONCOPYABLE;
|
|
1105
|
-
Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void*
|
|
1107
|
+
Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1106
1108
|
inline Func_void_RNIndoorBuilding_Wrapper wrap_Func_void_RNIndoorBuilding(Func_void_RNIndoorBuilding value) noexcept {
|
|
1107
1109
|
return Func_void_RNIndoorBuilding_Wrapper(std::move(value));
|
|
1108
1110
|
}
|
|
@@ -1139,7 +1141,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1139
1141
|
private:
|
|
1140
1142
|
std::unique_ptr<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> _function;
|
|
1141
1143
|
} SWIFT_NONCOPYABLE;
|
|
1142
|
-
Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void*
|
|
1144
|
+
Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1143
1145
|
inline Func_void_RNIndoorLevel_Wrapper wrap_Func_void_RNIndoorLevel(Func_void_RNIndoorLevel value) noexcept {
|
|
1144
1146
|
return Func_void_RNIndoorLevel_Wrapper(std::move(value));
|
|
1145
1147
|
}
|
|
@@ -1176,7 +1178,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1176
1178
|
private:
|
|
1177
1179
|
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> _function;
|
|
1178
1180
|
} SWIFT_NONCOPYABLE;
|
|
1179
|
-
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void*
|
|
1181
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1180
1182
|
inline Func_void_RNRegion_RNCamera_bool_Wrapper wrap_Func_void_RNRegion_RNCamera_bool(Func_void_RNRegion_RNCamera_bool value) noexcept {
|
|
1181
1183
|
return Func_void_RNRegion_RNCamera_bool_Wrapper(std::move(value));
|
|
1182
1184
|
}
|
|
@@ -1243,8 +1245,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1243
1245
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>`.
|
|
1244
1246
|
*/
|
|
1245
1247
|
using std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
1246
|
-
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void*
|
|
1247
|
-
void*
|
|
1248
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1249
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType);
|
|
1248
1250
|
|
|
1249
1251
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
1250
1252
|
using std__weak_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
@@ -425,7 +425,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
425
425
|
public:
|
|
426
426
|
// Methods
|
|
427
427
|
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override {
|
|
428
|
-
auto __result = _swiftPart.setCamera(camera, animated, durationMs);
|
|
428
|
+
auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMs);
|
|
429
429
|
if (__result.hasError()) [[unlikely]] {
|
|
430
430
|
std::rethrow_exception(__result.error());
|
|
431
431
|
}
|
|
@@ -443,13 +443,13 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
inline void animateToBounds(const RNLatLngBounds& bounds, std::optional<double> padding, std::optional<double> durationMs, std::optional<bool> lockBounds) override {
|
|
446
|
-
auto __result = _swiftPart.animateToBounds(bounds, padding, durationMs, lockBounds);
|
|
446
|
+
auto __result = _swiftPart.animateToBounds(std::forward<decltype(bounds)>(bounds), padding, durationMs, lockBounds);
|
|
447
447
|
if (__result.hasError()) [[unlikely]] {
|
|
448
448
|
std::rethrow_exception(__result.error());
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
inline std::shared_ptr<Promise<std::optional<std::string>>> snapshot(const RNSnapshotOptions& options) override {
|
|
452
|
-
auto __result = _swiftPart.snapshot(options);
|
|
452
|
+
auto __result = _swiftPart.snapshot(std::forward<decltype(options)>(options));
|
|
453
453
|
if (__result.hasError()) [[unlikely]] {
|
|
454
454
|
std::rethrow_exception(__result.error());
|
|
455
455
|
}
|
|
@@ -119,14 +119,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
119
119
|
}
|
|
120
120
|
@inline(__always)
|
|
121
121
|
set {
|
|
122
|
-
self.__implementation.initialProps =
|
|
123
|
-
if bridge.has_value_std__optional_RNInitialProps_(newValue) {
|
|
124
|
-
let __unwrapped = bridge.get_std__optional_RNInitialProps_(newValue)
|
|
125
|
-
return __unwrapped
|
|
126
|
-
} else {
|
|
127
|
-
return nil
|
|
128
|
-
}
|
|
129
|
-
}()
|
|
122
|
+
self.__implementation.initialProps = newValue.value
|
|
130
123
|
}
|
|
131
124
|
}
|
|
132
125
|
|
|
@@ -143,14 +136,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
143
136
|
}
|
|
144
137
|
@inline(__always)
|
|
145
138
|
set {
|
|
146
|
-
self.__implementation.uiSettings =
|
|
147
|
-
if bridge.has_value_std__optional_RNMapUiSettings_(newValue) {
|
|
148
|
-
let __unwrapped = bridge.get_std__optional_RNMapUiSettings_(newValue)
|
|
149
|
-
return __unwrapped
|
|
150
|
-
} else {
|
|
151
|
-
return nil
|
|
152
|
-
}
|
|
153
|
-
}()
|
|
139
|
+
self.__implementation.uiSettings = newValue.value
|
|
154
140
|
}
|
|
155
141
|
}
|
|
156
142
|
|
|
@@ -276,14 +262,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
276
262
|
}
|
|
277
263
|
@inline(__always)
|
|
278
264
|
set {
|
|
279
|
-
self.__implementation.mapZoomConfig =
|
|
280
|
-
if bridge.has_value_std__optional_RNMapZoomConfig_(newValue) {
|
|
281
|
-
let __unwrapped = bridge.get_std__optional_RNMapZoomConfig_(newValue)
|
|
282
|
-
return __unwrapped
|
|
283
|
-
} else {
|
|
284
|
-
return nil
|
|
285
|
-
}
|
|
286
|
-
}()
|
|
265
|
+
self.__implementation.mapZoomConfig = newValue.value
|
|
287
266
|
}
|
|
288
267
|
}
|
|
289
268
|
|
|
@@ -300,14 +279,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
300
279
|
}
|
|
301
280
|
@inline(__always)
|
|
302
281
|
set {
|
|
303
|
-
self.__implementation.mapPadding =
|
|
304
|
-
if bridge.has_value_std__optional_RNMapPadding_(newValue) {
|
|
305
|
-
let __unwrapped = bridge.get_std__optional_RNMapPadding_(newValue)
|
|
306
|
-
return __unwrapped
|
|
307
|
-
} else {
|
|
308
|
-
return nil
|
|
309
|
-
}
|
|
310
|
-
}()
|
|
282
|
+
self.__implementation.mapPadding = newValue.value
|
|
311
283
|
}
|
|
312
284
|
}
|
|
313
285
|
|
|
@@ -521,14 +493,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
521
493
|
}
|
|
522
494
|
@inline(__always)
|
|
523
495
|
set {
|
|
524
|
-
self.__implementation.locationConfig =
|
|
525
|
-
if bridge.has_value_std__optional_RNLocationConfig_(newValue) {
|
|
526
|
-
let __unwrapped = bridge.get_std__optional_RNLocationConfig_(newValue)
|
|
527
|
-
return __unwrapped
|
|
528
|
-
} else {
|
|
529
|
-
return nil
|
|
530
|
-
}
|
|
531
|
-
}()
|
|
496
|
+
self.__implementation.locationConfig = newValue.value
|
|
532
497
|
}
|
|
533
498
|
}
|
|
534
499
|
|
|
@@ -1133,14 +1098,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1133
1098
|
@inline(__always)
|
|
1134
1099
|
public final func setCameraToCoordinates(coordinates: bridge.std__vector_RNLatLng_, padding: bridge.std__optional_RNMapPadding_, animated: bridge.std__optional_bool_, durationMs: bridge.std__optional_double_) -> bridge.Result_void_ {
|
|
1135
1100
|
do {
|
|
1136
|
-
try self.__implementation.setCameraToCoordinates(coordinates: coordinates.map({ __item in __item }), padding:
|
|
1137
|
-
if bridge.has_value_std__optional_RNMapPadding_(padding) {
|
|
1138
|
-
let __unwrapped = bridge.get_std__optional_RNMapPadding_(padding)
|
|
1139
|
-
return __unwrapped
|
|
1140
|
-
} else {
|
|
1141
|
-
return nil
|
|
1142
|
-
}
|
|
1143
|
-
}(), animated: animated.value, durationMs: durationMs.value)
|
|
1101
|
+
try self.__implementation.setCameraToCoordinates(coordinates: coordinates.map({ __item in __item }), padding: padding.value, animated: animated.value, durationMs: durationMs.value)
|
|
1144
1102
|
return bridge.create_Result_void_()
|
|
1145
1103
|
} catch (let __error) {
|
|
1146
1104
|
let __exceptionPtr = __error.toCpp()
|
|
@@ -1151,14 +1109,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1151
1109
|
@inline(__always)
|
|
1152
1110
|
public final func setCameraBounds(bounds: bridge.std__optional_RNLatLngBounds_) -> bridge.Result_void_ {
|
|
1153
1111
|
do {
|
|
1154
|
-
try self.__implementation.setCameraBounds(bounds:
|
|
1155
|
-
if bridge.has_value_std__optional_RNLatLngBounds_(bounds) {
|
|
1156
|
-
let __unwrapped = bridge.get_std__optional_RNLatLngBounds_(bounds)
|
|
1157
|
-
return __unwrapped
|
|
1158
|
-
} else {
|
|
1159
|
-
return nil
|
|
1160
|
-
}
|
|
1161
|
-
}())
|
|
1112
|
+
try self.__implementation.setCameraBounds(bounds: bounds.value)
|
|
1162
1113
|
return bridge.create_Result_void_()
|
|
1163
1114
|
} catch (let __error) {
|
|
1164
1115
|
let __exceptionPtr = __error.toCpp()
|
|
@@ -49,14 +49,7 @@ public extension RNCamera {
|
|
|
49
49
|
var center: RNLatLng? {
|
|
50
50
|
@inline(__always)
|
|
51
51
|
get {
|
|
52
|
-
return
|
|
53
|
-
if bridge.has_value_std__optional_RNLatLng_(self.__center) {
|
|
54
|
-
let __unwrapped = bridge.get_std__optional_RNLatLng_(self.__center)
|
|
55
|
-
return __unwrapped
|
|
56
|
-
} else {
|
|
57
|
-
return nil
|
|
58
|
-
}
|
|
59
|
-
}()
|
|
52
|
+
return self.__center.value
|
|
60
53
|
}
|
|
61
54
|
@inline(__always)
|
|
62
55
|
set {
|
|
@@ -157,14 +157,7 @@ public extension RNHeatmap {
|
|
|
157
157
|
var gradient: RNHeatmapGradient? {
|
|
158
158
|
@inline(__always)
|
|
159
159
|
get {
|
|
160
|
-
return
|
|
161
|
-
if bridge.has_value_std__optional_RNHeatmapGradient_(self.__gradient) {
|
|
162
|
-
let __unwrapped = bridge.get_std__optional_RNHeatmapGradient_(self.__gradient)
|
|
163
|
-
return __unwrapped
|
|
164
|
-
} else {
|
|
165
|
-
return nil
|
|
166
|
-
}
|
|
167
|
-
}()
|
|
160
|
+
return self.__gradient.value
|
|
168
161
|
}
|
|
169
162
|
@inline(__always)
|
|
170
163
|
set {
|
|
@@ -25,13 +25,9 @@ public extension RNHeatmapGradient {
|
|
|
25
25
|
__vector.push_back(std.string(__item))
|
|
26
26
|
}
|
|
27
27
|
return __vector
|
|
28
|
-
}(), {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
__vector.push_back(__item)
|
|
32
|
-
}
|
|
33
|
-
return __vector
|
|
34
|
-
}(), colorMapSize)
|
|
28
|
+
}(), startPoints.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
|
|
29
|
+
return bridge.copy_std__vector_double_(__pointer.baseAddress!, startPoints.count)
|
|
30
|
+
}, colorMapSize)
|
|
35
31
|
}
|
|
36
32
|
|
|
37
33
|
var colors: [String] {
|
|
@@ -54,17 +50,17 @@ public extension RNHeatmapGradient {
|
|
|
54
50
|
var startPoints: [Double] {
|
|
55
51
|
@inline(__always)
|
|
56
52
|
get {
|
|
57
|
-
return
|
|
53
|
+
return { () -> [Double] in
|
|
54
|
+
let __data = bridge.get_data_std__vector_double_(self.__startPoints)
|
|
55
|
+
let __size = self.__startPoints.size()
|
|
56
|
+
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
57
|
+
}()
|
|
58
58
|
}
|
|
59
59
|
@inline(__always)
|
|
60
60
|
set {
|
|
61
|
-
self.__startPoints = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
__vector.push_back(__item)
|
|
65
|
-
}
|
|
66
|
-
return __vector
|
|
67
|
-
}()
|
|
61
|
+
self.__startPoints = newValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
|
|
62
|
+
return bridge.copy_std__vector_double_(__pointer.baseAddress!, newValue.count)
|
|
63
|
+
}
|
|
68
64
|
}
|
|
69
65
|
}
|
|
70
66
|
|
|
@@ -84,14 +84,7 @@ public extension RNInitialProps {
|
|
|
84
84
|
var camera: RNCamera? {
|
|
85
85
|
@inline(__always)
|
|
86
86
|
get {
|
|
87
|
-
return
|
|
88
|
-
if bridge.has_value_std__optional_RNCamera_(self.__camera) {
|
|
89
|
-
let __unwrapped = bridge.get_std__optional_RNCamera_(self.__camera)
|
|
90
|
-
return __unwrapped
|
|
91
|
-
} else {
|
|
92
|
-
return nil
|
|
93
|
-
}
|
|
94
|
-
}()
|
|
87
|
+
return self.__camera.value
|
|
95
88
|
}
|
|
96
89
|
@inline(__always)
|
|
97
90
|
set {
|