react-native-google-maps-plus 1.1.0-dev.2 → 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.
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +37 -102
- package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +3 -3
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +16 -2
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +25 -0
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +18 -1
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +26 -9
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +46 -72
- package/ios/GoogleMapViewImpl.swift +94 -212
- package/ios/LocationHandler.swift +2 -10
- package/ios/MapCircleBuilder.swift +23 -8
- package/ios/MapHelper.swift +6 -4
- package/ios/MapMarkerBuilder.swift +39 -41
- package/ios/MapPolygonBuilder.swift +25 -7
- package/ios/MapPolylineBuilder.swift +27 -11
- package/ios/RNGoogleMapsPlusView.swift +9 -14
- package/ios/extensions/RNCircle+Extension.swift +0 -13
- package/ios/extensions/RNPolygon+Extension.swift.swift +2 -19
- package/ios/extensions/RNPolyline+Extension.swift.swift +1 -26
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +2 -3
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +5 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +10 -15
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +2 -4
- package/nitrogen/generated/android/c++/JRNCircle.hpp +4 -4
- package/nitrogen/generated/android/c++/JRNMapZoomConfig.hpp +57 -0
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +2 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +1 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapZoomConfig.kt +32 -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 +57 -33
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +8 -12
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +4 -9
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +1 -2
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +46 -94
- package/nitrogen/generated/ios/swift/RNCamera.swift +1 -8
- package/nitrogen/generated/ios/swift/RNCircle.swift +5 -17
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -8
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +2 -16
- package/nitrogen/generated/ios/swift/RNMapZoomConfig.swift +70 -0
- package/nitrogen/generated/ios/swift/RNMarker.swift +2 -16
- package/nitrogen/generated/ios/swift/RNPolygon.swift +11 -15
- package/nitrogen/generated/ios/swift/RNPolyline.swift +11 -15
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -4
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +5 -4
- package/nitrogen/generated/shared/c++/RNCircle.hpp +5 -5
- package/nitrogen/generated/shared/c++/RNMapZoomConfig.hpp +71 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +7 -19
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -2
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +1 -2
- package/package.json +13 -13
- package/src/RNGoogleMapsPlusView.nitro.ts +2 -2
- package/src/types.ts +6 -1
|
@@ -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) 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* 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::string& /* id */)>
|
|
90
|
-
Func_void_std__string create_Func_void_std__string(void*
|
|
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*
|
|
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*
|
|
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*
|
|
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]] {
|
|
@@ -52,6 +52,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
|
52
52
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
53
53
|
// Forward declaration of `RNMapUiSettings` to properly resolve imports.
|
|
54
54
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
|
|
55
|
+
// Forward declaration of `RNMapZoomConfig` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
|
|
55
57
|
// Forward declaration of `RNMarkerSvg` to properly resolve imports.
|
|
56
58
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
|
|
57
59
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
@@ -96,6 +98,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
96
98
|
#include "RNMapPadding.hpp"
|
|
97
99
|
#include "RNMapType.hpp"
|
|
98
100
|
#include "RNMapUiSettings.hpp"
|
|
101
|
+
#include "RNMapZoomConfig.hpp"
|
|
99
102
|
#include "RNMarker.hpp"
|
|
100
103
|
#include "RNMarkerSvg.hpp"
|
|
101
104
|
#include "RNPolygon.hpp"
|
|
@@ -103,6 +106,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
103
106
|
#include "RNPosition.hpp"
|
|
104
107
|
#include "RNRegion.hpp"
|
|
105
108
|
#include "RNUserInterfaceStyle.hpp"
|
|
109
|
+
#include <NitroModules/FastVectorCopy.hpp>
|
|
106
110
|
#include <NitroModules/Promise.hpp>
|
|
107
111
|
#include <NitroModules/PromiseHolder.hpp>
|
|
108
112
|
#include <NitroModules/Result.hpp>
|
|
@@ -178,7 +182,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
178
182
|
private:
|
|
179
183
|
std::unique_ptr<std::function<void(const RNLocationPermissionResult& /* result */)>> _function;
|
|
180
184
|
} SWIFT_NONCOPYABLE;
|
|
181
|
-
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void*
|
|
185
|
+
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
182
186
|
inline Func_void_RNLocationPermissionResult_Wrapper wrap_Func_void_RNLocationPermissionResult(Func_void_RNLocationPermissionResult value) noexcept {
|
|
183
187
|
return Func_void_RNLocationPermissionResult_Wrapper(std::move(value));
|
|
184
188
|
}
|
|
@@ -200,7 +204,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
200
204
|
private:
|
|
201
205
|
std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
202
206
|
} SWIFT_NONCOPYABLE;
|
|
203
|
-
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void*
|
|
207
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
204
208
|
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
|
|
205
209
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
206
210
|
}
|
|
@@ -210,8 +214,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
210
214
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>`.
|
|
211
215
|
*/
|
|
212
216
|
using std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
213
|
-
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void*
|
|
214
|
-
void*
|
|
217
|
+
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
218
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) noexcept;
|
|
215
219
|
|
|
216
220
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>
|
|
217
221
|
using std__weak_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
@@ -364,6 +368,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
364
368
|
return *optional;
|
|
365
369
|
}
|
|
366
370
|
|
|
371
|
+
// pragma MARK: std::optional<RNMapZoomConfig>
|
|
372
|
+
/**
|
|
373
|
+
* Specialized version of `std::optional<RNMapZoomConfig>`.
|
|
374
|
+
*/
|
|
375
|
+
using std__optional_RNMapZoomConfig_ = std::optional<RNMapZoomConfig>;
|
|
376
|
+
inline std::optional<RNMapZoomConfig> create_std__optional_RNMapZoomConfig_(const RNMapZoomConfig& value) noexcept {
|
|
377
|
+
return std::optional<RNMapZoomConfig>(value);
|
|
378
|
+
}
|
|
379
|
+
inline bool has_value_std__optional_RNMapZoomConfig_(const std::optional<RNMapZoomConfig>& optional) noexcept {
|
|
380
|
+
return optional.has_value();
|
|
381
|
+
}
|
|
382
|
+
inline RNMapZoomConfig get_std__optional_RNMapZoomConfig_(const std::optional<RNMapZoomConfig>& optional) noexcept {
|
|
383
|
+
return *optional;
|
|
384
|
+
}
|
|
385
|
+
|
|
367
386
|
// pragma MARK: std::optional<RNMapPadding>
|
|
368
387
|
/**
|
|
369
388
|
* Specialized version of `std::optional<RNMapPadding>`.
|
|
@@ -429,10 +448,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
429
448
|
* Specialized version of `std::vector<RNMarker>`.
|
|
430
449
|
*/
|
|
431
450
|
using std__vector_RNMarker_ = std::vector<RNMarker>;
|
|
432
|
-
inline std::vector<RNMarker>
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
451
|
+
inline std::vector<RNMarker> copy_std__vector_RNMarker_(const RNMarker* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
452
|
+
return margelo::nitro::FastVectorCopy<RNMarker>(data, size);
|
|
453
|
+
}
|
|
454
|
+
inline const RNMarker* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNMarker_(const std::vector<RNMarker>& vector) noexcept {
|
|
455
|
+
return vector.data();
|
|
436
456
|
}
|
|
437
457
|
|
|
438
458
|
// pragma MARK: std::optional<std::vector<RNMarker>>
|
|
@@ -455,10 +475,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
455
475
|
* Specialized version of `std::vector<RNLatLng>`.
|
|
456
476
|
*/
|
|
457
477
|
using std__vector_RNLatLng_ = std::vector<RNLatLng>;
|
|
458
|
-
inline std::vector<RNLatLng>
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
478
|
+
inline std::vector<RNLatLng> copy_std__vector_RNLatLng_(const RNLatLng* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
479
|
+
return margelo::nitro::FastVectorCopy<RNLatLng>(data, size);
|
|
480
|
+
}
|
|
481
|
+
inline const RNLatLng* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNLatLng_(const std::vector<RNLatLng>& vector) noexcept {
|
|
482
|
+
return vector.data();
|
|
462
483
|
}
|
|
463
484
|
|
|
464
485
|
// pragma MARK: std::vector<RNPolygon>
|
|
@@ -466,10 +487,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
466
487
|
* Specialized version of `std::vector<RNPolygon>`.
|
|
467
488
|
*/
|
|
468
489
|
using std__vector_RNPolygon_ = std::vector<RNPolygon>;
|
|
469
|
-
inline std::vector<RNPolygon>
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
490
|
+
inline std::vector<RNPolygon> copy_std__vector_RNPolygon_(const RNPolygon* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
491
|
+
return margelo::nitro::FastVectorCopy<RNPolygon>(data, size);
|
|
492
|
+
}
|
|
493
|
+
inline const RNPolygon* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNPolygon_(const std::vector<RNPolygon>& vector) noexcept {
|
|
494
|
+
return vector.data();
|
|
473
495
|
}
|
|
474
496
|
|
|
475
497
|
// pragma MARK: std::optional<std::vector<RNPolygon>>
|
|
@@ -522,10 +544,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
522
544
|
* Specialized version of `std::vector<RNPolyline>`.
|
|
523
545
|
*/
|
|
524
546
|
using std__vector_RNPolyline_ = std::vector<RNPolyline>;
|
|
525
|
-
inline std::vector<RNPolyline>
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
547
|
+
inline std::vector<RNPolyline> copy_std__vector_RNPolyline_(const RNPolyline* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
548
|
+
return margelo::nitro::FastVectorCopy<RNPolyline>(data, size);
|
|
549
|
+
}
|
|
550
|
+
inline const RNPolyline* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNPolyline_(const std::vector<RNPolyline>& vector) noexcept {
|
|
551
|
+
return vector.data();
|
|
529
552
|
}
|
|
530
553
|
|
|
531
554
|
// pragma MARK: std::optional<std::vector<RNPolyline>>
|
|
@@ -548,10 +571,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
548
571
|
* Specialized version of `std::vector<RNCircle>`.
|
|
549
572
|
*/
|
|
550
573
|
using std__vector_RNCircle_ = std::vector<RNCircle>;
|
|
551
|
-
inline std::vector<RNCircle>
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
574
|
+
inline std::vector<RNCircle> copy_std__vector_RNCircle_(const RNCircle* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
575
|
+
return margelo::nitro::FastVectorCopy<RNCircle>(data, size);
|
|
576
|
+
}
|
|
577
|
+
inline const RNCircle* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNCircle_(const std::vector<RNCircle>& vector) noexcept {
|
|
578
|
+
return vector.data();
|
|
555
579
|
}
|
|
556
580
|
|
|
557
581
|
// pragma MARK: std::optional<std::vector<RNCircle>>
|
|
@@ -661,7 +685,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
661
685
|
private:
|
|
662
686
|
std::unique_ptr<std::function<void(RNMapErrorCode /* error */)>> _function;
|
|
663
687
|
} SWIFT_NONCOPYABLE;
|
|
664
|
-
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void*
|
|
688
|
+
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
665
689
|
inline Func_void_RNMapErrorCode_Wrapper wrap_Func_void_RNMapErrorCode(Func_void_RNMapErrorCode value) noexcept {
|
|
666
690
|
return Func_void_RNMapErrorCode_Wrapper(std::move(value));
|
|
667
691
|
}
|
|
@@ -698,7 +722,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
698
722
|
private:
|
|
699
723
|
std::unique_ptr<std::function<void(bool /* ready */)>> _function;
|
|
700
724
|
} SWIFT_NONCOPYABLE;
|
|
701
|
-
Func_void_bool create_Func_void_bool(void*
|
|
725
|
+
Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
702
726
|
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
|
|
703
727
|
return Func_void_bool_Wrapper(std::move(value));
|
|
704
728
|
}
|
|
@@ -735,7 +759,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
735
759
|
private:
|
|
736
760
|
std::unique_ptr<std::function<void(const RNLocation& /* location */)>> _function;
|
|
737
761
|
} SWIFT_NONCOPYABLE;
|
|
738
|
-
Func_void_RNLocation create_Func_void_RNLocation(void*
|
|
762
|
+
Func_void_RNLocation create_Func_void_RNLocation(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
739
763
|
inline Func_void_RNLocation_Wrapper wrap_Func_void_RNLocation(Func_void_RNLocation value) noexcept {
|
|
740
764
|
return Func_void_RNLocation_Wrapper(std::move(value));
|
|
741
765
|
}
|
|
@@ -772,7 +796,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
772
796
|
private:
|
|
773
797
|
std::unique_ptr<std::function<void(RNLocationErrorCode /* error */)>> _function;
|
|
774
798
|
} SWIFT_NONCOPYABLE;
|
|
775
|
-
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void*
|
|
799
|
+
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
776
800
|
inline Func_void_RNLocationErrorCode_Wrapper wrap_Func_void_RNLocationErrorCode(Func_void_RNLocationErrorCode value) noexcept {
|
|
777
801
|
return Func_void_RNLocationErrorCode_Wrapper(std::move(value));
|
|
778
802
|
}
|
|
@@ -809,7 +833,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
809
833
|
private:
|
|
810
834
|
std::unique_ptr<std::function<void(const RNLatLng& /* coordinate */)>> _function;
|
|
811
835
|
} SWIFT_NONCOPYABLE;
|
|
812
|
-
Func_void_RNLatLng create_Func_void_RNLatLng(void*
|
|
836
|
+
Func_void_RNLatLng create_Func_void_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
813
837
|
inline Func_void_RNLatLng_Wrapper wrap_Func_void_RNLatLng(Func_void_RNLatLng value) noexcept {
|
|
814
838
|
return Func_void_RNLatLng_Wrapper(std::move(value));
|
|
815
839
|
}
|
|
@@ -846,7 +870,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
846
870
|
private:
|
|
847
871
|
std::unique_ptr<std::function<void(const std::string& /* id */)>> _function;
|
|
848
872
|
} SWIFT_NONCOPYABLE;
|
|
849
|
-
Func_void_std__string create_Func_void_std__string(void*
|
|
873
|
+
Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
850
874
|
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
|
|
851
875
|
return Func_void_std__string_Wrapper(std::move(value));
|
|
852
876
|
}
|
|
@@ -883,7 +907,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
883
907
|
private:
|
|
884
908
|
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> _function;
|
|
885
909
|
} SWIFT_NONCOPYABLE;
|
|
886
|
-
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void*
|
|
910
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
887
911
|
inline Func_void_RNRegion_RNCamera_bool_Wrapper wrap_Func_void_RNRegion_RNCamera_bool(Func_void_RNRegion_RNCamera_bool value) noexcept {
|
|
888
912
|
return Func_void_RNRegion_RNCamera_bool_Wrapper(std::move(value));
|
|
889
913
|
}
|
|
@@ -908,8 +932,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
908
932
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>`.
|
|
909
933
|
*/
|
|
910
934
|
using std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
911
|
-
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void*
|
|
912
|
-
void*
|
|
935
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
936
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) noexcept;
|
|
913
937
|
|
|
914
938
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
915
939
|
using std__weak_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
@@ -52,6 +52,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
|
52
52
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
53
53
|
// Forward declaration of `RNMapUiSettings` to properly resolve imports.
|
|
54
54
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
|
|
55
|
+
// Forward declaration of `RNMapZoomConfig` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
|
|
55
57
|
// Forward declaration of `RNMarkerSvg` to properly resolve imports.
|
|
56
58
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
|
|
57
59
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
@@ -90,6 +92,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
90
92
|
#include "RNMapPadding.hpp"
|
|
91
93
|
#include "RNMapType.hpp"
|
|
92
94
|
#include "RNMapUiSettings.hpp"
|
|
95
|
+
#include "RNMapZoomConfig.hpp"
|
|
93
96
|
#include "RNMarker.hpp"
|
|
94
97
|
#include "RNMarkerSvg.hpp"
|
|
95
98
|
#include "RNPolygon.hpp"
|
|
@@ -22,6 +22,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
|
22
22
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
|
|
23
23
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
25
|
+
// Forward declaration of `RNMapZoomConfig` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
|
|
25
27
|
// Forward declaration of `RNMapPadding` to properly resolve imports.
|
|
26
28
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
27
29
|
// Forward declaration of `RNMapType` to properly resolve imports.
|
|
@@ -74,6 +76,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
74
76
|
#include "RNLatLng.hpp"
|
|
75
77
|
#include "RNMapUiSettings.hpp"
|
|
76
78
|
#include "RNUserInterfaceStyle.hpp"
|
|
79
|
+
#include "RNMapZoomConfig.hpp"
|
|
77
80
|
#include "RNMapPadding.hpp"
|
|
78
81
|
#include "RNMapType.hpp"
|
|
79
82
|
#include "RNMarker.hpp"
|
|
@@ -193,19 +196,12 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
193
196
|
inline void setUserInterfaceStyle(std::optional<RNUserInterfaceStyle> userInterfaceStyle) noexcept override {
|
|
194
197
|
_swiftPart.setUserInterfaceStyle(userInterfaceStyle);
|
|
195
198
|
}
|
|
196
|
-
inline std::optional<
|
|
197
|
-
auto __result = _swiftPart.
|
|
199
|
+
inline std::optional<RNMapZoomConfig> getMapZoomConfig() noexcept override {
|
|
200
|
+
auto __result = _swiftPart.getMapZoomConfig();
|
|
198
201
|
return __result;
|
|
199
202
|
}
|
|
200
|
-
inline void
|
|
201
|
-
_swiftPart.
|
|
202
|
-
}
|
|
203
|
-
inline std::optional<double> getMaxZoomLevel() noexcept override {
|
|
204
|
-
auto __result = _swiftPart.getMaxZoomLevel();
|
|
205
|
-
return __result;
|
|
206
|
-
}
|
|
207
|
-
inline void setMaxZoomLevel(std::optional<double> maxZoomLevel) noexcept override {
|
|
208
|
-
_swiftPart.setMaxZoomLevel(maxZoomLevel);
|
|
203
|
+
inline void setMapZoomConfig(const std::optional<RNMapZoomConfig>& mapZoomConfig) noexcept override {
|
|
204
|
+
_swiftPart.setMapZoomConfig(mapZoomConfig);
|
|
209
205
|
}
|
|
210
206
|
inline std::optional<RNMapPadding> getMapPadding() noexcept override {
|
|
211
207
|
auto __result = _swiftPart.getMapPadding();
|
|
@@ -344,7 +340,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
344
340
|
public:
|
|
345
341
|
// Methods
|
|
346
342
|
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMS) override {
|
|
347
|
-
auto __result = _swiftPart.setCamera(camera, animated, durationMS);
|
|
343
|
+
auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMS);
|
|
348
344
|
if (__result.hasError()) [[unlikely]] {
|
|
349
345
|
std::rethrow_exception(__result.error());
|
|
350
346
|
}
|
|
@@ -111,15 +111,10 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
111
111
|
swiftPart.setUserInterfaceStyle(newViewProps.userInterfaceStyle.value);
|
|
112
112
|
newViewProps.userInterfaceStyle.isDirty = false;
|
|
113
113
|
}
|
|
114
|
-
//
|
|
115
|
-
if (newViewProps.
|
|
116
|
-
swiftPart.
|
|
117
|
-
newViewProps.
|
|
118
|
-
}
|
|
119
|
-
// maxZoomLevel: optional
|
|
120
|
-
if (newViewProps.maxZoomLevel.isDirty) {
|
|
121
|
-
swiftPart.setMaxZoomLevel(newViewProps.maxZoomLevel.value);
|
|
122
|
-
newViewProps.maxZoomLevel.isDirty = false;
|
|
114
|
+
// mapZoomConfig: optional
|
|
115
|
+
if (newViewProps.mapZoomConfig.isDirty) {
|
|
116
|
+
swiftPart.setMapZoomConfig(newViewProps.mapZoomConfig.value);
|
|
117
|
+
newViewProps.mapZoomConfig.isDirty = false;
|
|
123
118
|
}
|
|
124
119
|
// mapPadding: optional
|
|
125
120
|
if (newViewProps.mapPadding.isDirty) {
|
|
@@ -19,8 +19,7 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
|
|
|
19
19
|
var indoorEnabled: Bool? { get set }
|
|
20
20
|
var customMapStyle: String? { get set }
|
|
21
21
|
var userInterfaceStyle: RNUserInterfaceStyle? { get set }
|
|
22
|
-
var
|
|
23
|
-
var maxZoomLevel: Double? { get set }
|
|
22
|
+
var mapZoomConfig: RNMapZoomConfig? { get set }
|
|
24
23
|
var mapPadding: RNMapPadding? { get set }
|
|
25
24
|
var mapType: RNMapType? { get set }
|
|
26
25
|
var markers: [RNMarker]? { get set }
|