react-native-google-maps-plus 1.0.1 → 1.0.3-dev.1
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 +127 -11
- package/{GoogleMapsNitro.podspec → RNGoogleMapsPlus.podspec} +2 -2
- package/android/CMakeLists.txt +3 -3
- package/android/build.gradle +4 -4
- package/android/gradle.properties +8 -8
- package/android/src/main/cpp/cpp-adapter.cpp +2 -2
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/Color.kt +1 -1
- package/android/src/main/java/com/{googlemapsnitro/GoogleMapsNitroViewImpl.kt → rngooglemapsplus/GoogleMapsViewImpl.kt} +242 -115
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/LocationHandler.kt +1 -1
- package/android/src/main/java/com/rngooglemapsplus/MapCircle.kt +29 -0
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapMarker.kt +7 -6
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolygon.kt +4 -2
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolyline.kt +4 -2
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/PermissionHandler.kt +1 -1
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/PlayServicesHandler.kt +1 -1
- package/android/src/main/java/com/{googlemapsnitro/HybridGoogleMapsNitroModule.kt → rngooglemapsplus/RNGoogleMapsPlusModule.kt} +3 -3
- package/android/src/main/java/com/{googlemapsnitro/GoogleMapsNitroPackage.kt → rngooglemapsplus/RNGoogleMapsPlusPackage.kt} +6 -6
- package/android/src/main/java/com/{googlemapsnitro/HybridGoogleMapsNitroView.kt → rngooglemapsplus/RNGoogleMapsPlusView.kt} +119 -92
- package/ios/Color.swift +20 -20
- package/ios/{GoogleMapNitroViewImpl.swift → GoogleMapViewImpl.swift} +195 -140
- package/ios/MapCircle.swift +43 -0
- package/ios/MapMarker.swift +10 -17
- package/ios/MapPolygon.swift +9 -6
- package/ios/MapPolyline.swift +9 -7
- package/ios/PermissionHandler.swift +1 -1
- package/ios/{HybridGoogleMapsNitroModule.swift → RNGoogleMapsPlusModule.swift} +2 -2
- package/ios/{HybridGoogleMapsNitroView.swift → RNGoogleMapsPlusView.swift} +151 -108
- package/lib/module/RNGoogleMapsPlusModule.nitro.js +4 -0
- package/lib/module/RNGoogleMapsPlusModule.nitro.js.map +1 -0
- package/lib/module/RNGoogleMapsPlusView.nitro.js +4 -0
- package/lib/module/RNGoogleMapsPlusView.nitro.js.map +1 -0
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/{GoogleMapsNitroModule.nitro.d.ts → RNGoogleMapsPlusModule.nitro.d.ts} +2 -2
- package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -0
- package/lib/typescript/src/{GoogleMapsNitroView.nitro.d.ts → RNGoogleMapsPlusView.nitro.d.ts} +21 -16
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +5 -5
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +23 -5
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitro.json +11 -11
- package/nitrogen/generated/android/{GoogleMapsNitro+autolinking.cmake → RNGoogleMapsPlus+autolinking.cmake} +15 -15
- package/nitrogen/generated/android/{GoogleMapsNitro+autolinking.gradle → RNGoogleMapsPlus+autolinking.gradle} +3 -3
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +70 -0
- package/nitrogen/generated/android/{GoogleMapsNitroOnLoad.hpp → RNGoogleMapsPlusOnLoad.hpp} +5 -5
- package/nitrogen/generated/android/c++/JFunc_void_RNLatLng.hpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_RNLocation.hpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_RNLocationErrorCode.hpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode.hpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +4 -4
- package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroModuleSpec.cpp → JHybridRNGoogleMapsPlusModuleSpec.cpp} +16 -16
- package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroModuleSpec.hpp → JHybridRNGoogleMapsPlusModuleSpec.hpp} +12 -12
- package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroViewSpec.cpp → JHybridRNGoogleMapsPlusViewSpec.cpp} +223 -119
- package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroViewSpec.hpp → JHybridRNGoogleMapsPlusViewSpec.hpp} +44 -34
- package/nitrogen/generated/android/c++/JRNAndroidLocationPermissionResult.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNCamera.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNCircle.hpp +84 -0
- package/nitrogen/generated/android/c++/JRNIOSPermissionResult.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNInitialProps.hpp +66 -0
- package/nitrogen/generated/android/c++/JRNLatLng.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNLineCapType.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNLineJoinType.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNLocation.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNLocationErrorCode.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNLocationPermissionResult.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNMapErrorCode.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNMapPadding.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNMapType.hpp +68 -0
- package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -7
- package/nitrogen/generated/android/c++/JRNPolygon.hpp +11 -7
- package/nitrogen/generated/android/c++/JRNPolyline.hpp +11 -7
- package/nitrogen/generated/android/c++/JRNPosition.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNRegion.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNUserInterfaceStyle.hpp +3 -3
- package/nitrogen/generated/android/c++/views/{JHybridGoogleMapsNitroViewStateUpdater.cpp → JHybridRNGoogleMapsPlusViewStateUpdater.cpp} +38 -18
- package/nitrogen/generated/android/c++/views/{JHybridGoogleMapsNitroViewStateUpdater.hpp → JHybridRNGoogleMapsPlusViewStateUpdater.hpp} +11 -11
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLatLng.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLocation.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLocationErrorCode.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNMapErrorCode.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNRegion_RNCamera_bool.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_bool.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_std__string.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/HybridGoogleMapsNitroModuleSpec.kt → rngooglemapsplus/HybridRNGoogleMapsPlusModuleSpec.kt} +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/HybridGoogleMapsNitroViewSpec.kt → rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt} +71 -17
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNAndroidLocationPermissionResult.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNCamera.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/GoogleMapsNitroOnLoad.kt → rngooglemapsplus/RNGoogleMapsPlusOnLoad.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNIOSPermissionResult.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLatLng.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLineCapType.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLineJoinType.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocation.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocationErrorCode.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocationPermissionResult.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMapErrorCode.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMapPadding.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapType.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMarker.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolygon.kt +5 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolyline.kt +5 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPosition.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNRegion.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNUserInterfaceStyle.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/views/HybridGoogleMapsNitroViewManager.kt → rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt} +16 -10
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/views/HybridGoogleMapsNitroViewStateUpdater.kt → rngooglemapsplus/views/HybridRNGoogleMapsPlusViewStateUpdater.kt} +5 -5
- package/nitrogen/generated/ios/{GoogleMapsNitro+autolinking.rb → RNGoogleMapsPlus+autolinking.rb} +4 -4
- package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Bridge.cpp → RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp} +32 -32
- package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Bridge.hpp → RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp} +233 -90
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +113 -0
- package/nitrogen/generated/ios/RNGoogleMapsPlusAutolinking.mm +41 -0
- package/nitrogen/generated/ios/{GoogleMapsNitroAutolinking.swift → RNGoogleMapsPlusAutolinking.swift} +15 -15
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/{HybridGoogleMapsNitroModuleSpecSwift.hpp → HybridRNGoogleMapsPlusModuleSpecSwift.hpp} +18 -18
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/{HybridGoogleMapsNitroViewSpecSwift.hpp → HybridRNGoogleMapsPlusViewSpecSwift.hpp} +117 -69
- package/nitrogen/generated/ios/c++/views/{HybridGoogleMapsNitroViewComponent.mm → HybridRNGoogleMapsPlusViewComponent.mm} +59 -34
- package/nitrogen/generated/ios/swift/Func_void_RNLatLng.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocation.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocationErrorCode.swift +2 -2
- package/nitrogen/generated/ios/swift/Func_void_RNLocationPermissionResult.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNMapErrorCode.swift +2 -2
- package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +52 -0
- package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroModuleSpec_cxx.swift → HybridRNGoogleMapsPlusModuleSpec_cxx.swift} +21 -21
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +78 -0
- package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroViewSpec_cxx.swift → HybridRNGoogleMapsPlusViewSpec_cxx.swift} +317 -66
- package/nitrogen/generated/ios/swift/RNAndroidLocationPermissionResult.swift +1 -1
- package/nitrogen/generated/ios/swift/RNCamera.swift +2 -2
- package/nitrogen/generated/ios/swift/RNCircle.swift +198 -0
- package/nitrogen/generated/ios/swift/RNIOSPermissionResult.swift +1 -1
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +107 -0
- package/nitrogen/generated/ios/swift/RNLatLng.swift +2 -2
- package/nitrogen/generated/ios/swift/RNLineCapType.swift +1 -1
- package/nitrogen/generated/ios/swift/RNLineJoinType.swift +1 -1
- package/nitrogen/generated/ios/swift/RNLocation.swift +2 -2
- package/nitrogen/generated/ios/swift/RNLocationErrorCode.swift +1 -1
- package/nitrogen/generated/ios/swift/RNLocationPermissionResult.swift +2 -2
- package/nitrogen/generated/ios/swift/RNMapErrorCode.swift +1 -1
- package/nitrogen/generated/ios/swift/RNMapPadding.swift +2 -2
- package/nitrogen/generated/ios/swift/RNMapType.swift +52 -0
- package/nitrogen/generated/ios/swift/RNMarker.swift +19 -7
- package/nitrogen/generated/ios/swift/RNPolygon.swift +42 -7
- package/nitrogen/generated/ios/swift/RNPolyline.swift +42 -7
- package/nitrogen/generated/ios/swift/RNPosition.swift +2 -2
- package/nitrogen/generated/ios/swift/RNRegion.swift +2 -2
- package/nitrogen/generated/ios/swift/RNUserInterfaceStyle.swift +1 -1
- package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroModuleSpec.cpp → HybridRNGoogleMapsPlusModuleSpec.cpp} +9 -9
- package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroModuleSpec.hpp → HybridRNGoogleMapsPlusModuleSpec.hpp} +12 -12
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroViewSpec.hpp → HybridRNGoogleMapsPlusViewSpec.hpp} +67 -48
- package/nitrogen/generated/shared/c++/RNAndroidLocationPermissionResult.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNCamera.hpp +10 -10
- package/nitrogen/generated/shared/c++/RNCircle.hpp +98 -0
- package/nitrogen/generated/shared/c++/RNIOSPermissionResult.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +78 -0
- package/nitrogen/generated/shared/c++/RNLatLng.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNLineCapType.hpp +11 -11
- package/nitrogen/generated/shared/c++/RNLineJoinType.hpp +11 -11
- package/nitrogen/generated/shared/c++/RNLocation.hpp +10 -10
- package/nitrogen/generated/shared/c++/RNLocationErrorCode.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNLocationPermissionResult.hpp +14 -14
- package/nitrogen/generated/shared/c++/RNMapErrorCode.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNMapPadding.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNMapType.hpp +88 -0
- package/nitrogen/generated/shared/c++/RNMarker.hpp +20 -20
- package/nitrogen/generated/shared/c++/RNPolygon.hpp +20 -16
- package/nitrogen/generated/shared/c++/RNPolyline.hpp +28 -24
- package/nitrogen/generated/shared/c++/RNPosition.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNRegion.hpp +10 -10
- package/nitrogen/generated/shared/c++/RNUserInterfaceStyle.hpp +11 -11
- package/nitrogen/generated/shared/c++/views/{HybridGoogleMapsNitroViewComponent.cpp → HybridRNGoogleMapsPlusViewComponent.cpp} +133 -73
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +147 -0
- package/nitrogen/generated/shared/json/{GoogleMapsNitroViewConfig.json → RNGoogleMapsPlusViewConfig.json} +7 -2
- package/package.json +13 -7
- package/src/{GoogleMapsNitroModule.nitro.ts → RNGoogleMapsPlusModule.nitro.ts} +1 -1
- package/src/{GoogleMapsNitroView.nitro.ts → RNGoogleMapsPlusView.nitro.ts} +24 -16
- package/src/index.tsx +11 -11
- package/src/types.ts +26 -5
- package/lib/module/GoogleMapsNitroModule.nitro.js +0 -4
- package/lib/module/GoogleMapsNitroModule.nitro.js.map +0 -1
- package/lib/module/GoogleMapsNitroView.nitro.js +0 -4
- package/lib/module/GoogleMapsNitroView.nitro.js.map +0 -1
- package/lib/typescript/src/GoogleMapsNitroModule.nitro.d.ts.map +0 -1
- package/lib/typescript/src/GoogleMapsNitroView.nitro.d.ts.map +0 -1
- package/nitrogen/generated/android/GoogleMapsNitroOnLoad.cpp +0 -70
- package/nitrogen/generated/ios/GoogleMapsNitro-Swift-Cxx-Umbrella.hpp +0 -104
- package/nitrogen/generated/ios/GoogleMapsNitroAutolinking.mm +0 -41
- package/nitrogen/generated/ios/c++/HybridGoogleMapsNitroModuleSpecSwift.cpp +0 -11
- package/nitrogen/generated/ios/c++/HybridGoogleMapsNitroViewSpecSwift.cpp +0 -11
- package/nitrogen/generated/ios/swift/HybridGoogleMapsNitroModuleSpec.swift +0 -52
- package/nitrogen/generated/ios/swift/HybridGoogleMapsNitroViewSpec.swift +0 -73
- package/nitrogen/generated/shared/c++/HybridGoogleMapsNitroViewSpec.cpp +0 -66
- package/nitrogen/generated/shared/c++/views/HybridGoogleMapsNitroViewComponent.hpp +0 -139
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusViewComponent.mm
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
#import "
|
|
8
|
+
#import "HybridRNGoogleMapsPlusViewComponent.hpp"
|
|
9
9
|
#import <memory>
|
|
10
10
|
#import <react/renderer/componentregistry/ComponentDescriptorProvider.h>
|
|
11
11
|
#import <React/RCTViewComponentView.h>
|
|
@@ -14,36 +14,36 @@
|
|
|
14
14
|
#import <NitroModules/NitroDefines.hpp>
|
|
15
15
|
#import <UIKit/UIKit.h>
|
|
16
16
|
|
|
17
|
-
#import "
|
|
18
|
-
#import "
|
|
17
|
+
#import "HybridRNGoogleMapsPlusViewSpecSwift.hpp"
|
|
18
|
+
#import "RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp"
|
|
19
19
|
|
|
20
20
|
using namespace facebook;
|
|
21
|
-
using namespace margelo::nitro::
|
|
22
|
-
using namespace margelo::nitro::
|
|
21
|
+
using namespace margelo::nitro::rngooglemapsplus;
|
|
22
|
+
using namespace margelo::nitro::rngooglemapsplus::views;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Represents the React Native View holder for the Nitro "
|
|
25
|
+
* Represents the React Native View holder for the Nitro "RNGoogleMapsPlusView" HybridView.
|
|
26
26
|
*/
|
|
27
|
-
@interface
|
|
27
|
+
@interface HybridRNGoogleMapsPlusViewComponent: RCTViewComponentView
|
|
28
28
|
@end
|
|
29
29
|
|
|
30
|
-
@implementation
|
|
31
|
-
std::shared_ptr<
|
|
30
|
+
@implementation HybridRNGoogleMapsPlusViewComponent {
|
|
31
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpecSwift> _hybridView;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
+ (void) load {
|
|
35
35
|
[super load];
|
|
36
|
-
[RCTComponentViewFactory.currentComponentViewFactory registerComponentViewClass:[
|
|
36
|
+
[RCTComponentViewFactory.currentComponentViewFactory registerComponentViewClass:[HybridRNGoogleMapsPlusViewComponent class]];
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
+ (react::ComponentDescriptorProvider) componentDescriptorProvider {
|
|
40
|
-
return react::concreteComponentDescriptorProvider<
|
|
40
|
+
return react::concreteComponentDescriptorProvider<HybridRNGoogleMapsPlusViewComponentDescriptor>();
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
- (instancetype) init {
|
|
44
44
|
if (self = [super init]) {
|
|
45
|
-
std::shared_ptr<
|
|
46
|
-
_hybridView = std::dynamic_pointer_cast<
|
|
45
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> hybridView = RNGoogleMapsPlus::RNGoogleMapsPlusAutolinking::createRNGoogleMapsPlusView();
|
|
46
|
+
_hybridView = std::dynamic_pointer_cast<HybridRNGoogleMapsPlusViewSpecSwift>(hybridView);
|
|
47
47
|
[self updateView];
|
|
48
48
|
}
|
|
49
49
|
return self;
|
|
@@ -51,7 +51,7 @@ using namespace margelo::nitro::googlemapsnitro::views;
|
|
|
51
51
|
|
|
52
52
|
- (void) updateView {
|
|
53
53
|
// 1. Get Swift part
|
|
54
|
-
|
|
54
|
+
RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
55
55
|
|
|
56
56
|
// 2. Get UIView*
|
|
57
57
|
void* viewUnsafe = swiftPart.getView();
|
|
@@ -64,68 +64,78 @@ using namespace margelo::nitro::googlemapsnitro::views;
|
|
|
64
64
|
- (void) updateProps:(const std::shared_ptr<const react::Props>&)props
|
|
65
65
|
oldProps:(const std::shared_ptr<const react::Props>&)oldProps {
|
|
66
66
|
// 1. Downcast props
|
|
67
|
-
const auto& newViewPropsConst = *std::static_pointer_cast<
|
|
68
|
-
auto& newViewProps = const_cast<
|
|
69
|
-
|
|
67
|
+
const auto& newViewPropsConst = *std::static_pointer_cast<HybridRNGoogleMapsPlusViewProps const>(props);
|
|
68
|
+
auto& newViewProps = const_cast<HybridRNGoogleMapsPlusViewProps&>(newViewPropsConst);
|
|
69
|
+
RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
70
70
|
|
|
71
71
|
// 2. Update each prop individually
|
|
72
72
|
swiftPart.beforeUpdate();
|
|
73
73
|
|
|
74
|
-
//
|
|
74
|
+
// initialProps: optional
|
|
75
|
+
if (newViewProps.initialProps.isDirty) {
|
|
76
|
+
swiftPart.setInitialProps(newViewProps.initialProps.value);
|
|
77
|
+
newViewProps.initialProps.isDirty = false;
|
|
78
|
+
}
|
|
79
|
+
// buildingEnabled: optional
|
|
75
80
|
if (newViewProps.buildingEnabled.isDirty) {
|
|
76
81
|
swiftPart.setBuildingEnabled(newViewProps.buildingEnabled.value);
|
|
77
82
|
newViewProps.buildingEnabled.isDirty = false;
|
|
78
83
|
}
|
|
79
|
-
// trafficEnabled:
|
|
84
|
+
// trafficEnabled: optional
|
|
80
85
|
if (newViewProps.trafficEnabled.isDirty) {
|
|
81
86
|
swiftPart.setTrafficEnabled(newViewProps.trafficEnabled.value);
|
|
82
87
|
newViewProps.trafficEnabled.isDirty = false;
|
|
83
88
|
}
|
|
84
|
-
// customMapStyle:
|
|
89
|
+
// customMapStyle: optional
|
|
85
90
|
if (newViewProps.customMapStyle.isDirty) {
|
|
86
91
|
swiftPart.setCustomMapStyle(newViewProps.customMapStyle.value);
|
|
87
92
|
newViewProps.customMapStyle.isDirty = false;
|
|
88
93
|
}
|
|
89
|
-
//
|
|
90
|
-
if (newViewProps.initialCamera.isDirty) {
|
|
91
|
-
swiftPart.setInitialCamera(newViewProps.initialCamera.value);
|
|
92
|
-
newViewProps.initialCamera.isDirty = false;
|
|
93
|
-
}
|
|
94
|
-
// userInterfaceStyle: enum
|
|
94
|
+
// userInterfaceStyle: optional
|
|
95
95
|
if (newViewProps.userInterfaceStyle.isDirty) {
|
|
96
|
-
swiftPart.setUserInterfaceStyle(
|
|
96
|
+
swiftPart.setUserInterfaceStyle(newViewProps.userInterfaceStyle.value);
|
|
97
97
|
newViewProps.userInterfaceStyle.isDirty = false;
|
|
98
98
|
}
|
|
99
|
-
// minZoomLevel:
|
|
99
|
+
// minZoomLevel: optional
|
|
100
100
|
if (newViewProps.minZoomLevel.isDirty) {
|
|
101
101
|
swiftPart.setMinZoomLevel(newViewProps.minZoomLevel.value);
|
|
102
102
|
newViewProps.minZoomLevel.isDirty = false;
|
|
103
103
|
}
|
|
104
|
-
// maxZoomLevel:
|
|
104
|
+
// maxZoomLevel: optional
|
|
105
105
|
if (newViewProps.maxZoomLevel.isDirty) {
|
|
106
106
|
swiftPart.setMaxZoomLevel(newViewProps.maxZoomLevel.value);
|
|
107
107
|
newViewProps.maxZoomLevel.isDirty = false;
|
|
108
108
|
}
|
|
109
|
-
// mapPadding:
|
|
109
|
+
// mapPadding: optional
|
|
110
110
|
if (newViewProps.mapPadding.isDirty) {
|
|
111
111
|
swiftPart.setMapPadding(newViewProps.mapPadding.value);
|
|
112
112
|
newViewProps.mapPadding.isDirty = false;
|
|
113
113
|
}
|
|
114
|
-
//
|
|
114
|
+
// mapType: optional
|
|
115
|
+
if (newViewProps.mapType.isDirty) {
|
|
116
|
+
swiftPart.setMapType(newViewProps.mapType.value);
|
|
117
|
+
newViewProps.mapType.isDirty = false;
|
|
118
|
+
}
|
|
119
|
+
// markers: optional
|
|
115
120
|
if (newViewProps.markers.isDirty) {
|
|
116
121
|
swiftPart.setMarkers(newViewProps.markers.value);
|
|
117
122
|
newViewProps.markers.isDirty = false;
|
|
118
123
|
}
|
|
119
|
-
// polygons:
|
|
124
|
+
// polygons: optional
|
|
120
125
|
if (newViewProps.polygons.isDirty) {
|
|
121
126
|
swiftPart.setPolygons(newViewProps.polygons.value);
|
|
122
127
|
newViewProps.polygons.isDirty = false;
|
|
123
128
|
}
|
|
124
|
-
// polylines:
|
|
129
|
+
// polylines: optional
|
|
125
130
|
if (newViewProps.polylines.isDirty) {
|
|
126
131
|
swiftPart.setPolylines(newViewProps.polylines.value);
|
|
127
132
|
newViewProps.polylines.isDirty = false;
|
|
128
133
|
}
|
|
134
|
+
// circles: optional
|
|
135
|
+
if (newViewProps.circles.isDirty) {
|
|
136
|
+
swiftPart.setCircles(newViewProps.circles.value);
|
|
137
|
+
newViewProps.circles.isDirty = false;
|
|
138
|
+
}
|
|
129
139
|
// onMapError: optional
|
|
130
140
|
if (newViewProps.onMapError.isDirty) {
|
|
131
141
|
swiftPart.setOnMapError(newViewProps.onMapError.value);
|
|
@@ -156,6 +166,21 @@ using namespace margelo::nitro::googlemapsnitro::views;
|
|
|
156
166
|
swiftPart.setOnMarkerPress(newViewProps.onMarkerPress.value);
|
|
157
167
|
newViewProps.onMarkerPress.isDirty = false;
|
|
158
168
|
}
|
|
169
|
+
// onPolylinePress: optional
|
|
170
|
+
if (newViewProps.onPolylinePress.isDirty) {
|
|
171
|
+
swiftPart.setOnPolylinePress(newViewProps.onPolylinePress.value);
|
|
172
|
+
newViewProps.onPolylinePress.isDirty = false;
|
|
173
|
+
}
|
|
174
|
+
// onPolygonPress: optional
|
|
175
|
+
if (newViewProps.onPolygonPress.isDirty) {
|
|
176
|
+
swiftPart.setOnPolygonPress(newViewProps.onPolygonPress.value);
|
|
177
|
+
newViewProps.onPolygonPress.isDirty = false;
|
|
178
|
+
}
|
|
179
|
+
// onCirclePress: optional
|
|
180
|
+
if (newViewProps.onCirclePress.isDirty) {
|
|
181
|
+
swiftPart.setOnCirclePress(newViewProps.onCirclePress.value);
|
|
182
|
+
newViewProps.onCirclePress.isDirty = false;
|
|
183
|
+
}
|
|
159
184
|
// onCameraChangeStart: optional
|
|
160
185
|
if (newViewProps.onCameraChangeStart.isDirty) {
|
|
161
186
|
swiftPart.setOnCameraChangeStart(newViewProps.onCameraChangeStart.value);
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNLatLng {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ coordinate: RNLatLng) -> Void
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNLocation {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ location: RNLocation) -> Void
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNLocationErrorCode {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ error: RNLocationErrorCode) -> Void
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ public final class Func_void_RNLocationErrorCode {
|
|
|
23
23
|
|
|
24
24
|
@inline(__always)
|
|
25
25
|
public func call(error: Int32) -> Void {
|
|
26
|
-
self.closure(margelo.nitro.
|
|
26
|
+
self.closure(margelo.nitro.rngooglemapsplus.RNLocationErrorCode(rawValue: error)!)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNLocationPermissionResult {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ value: RNLocationPermissionResult) -> Void
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNMapErrorCode {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ error: RNMapErrorCode) -> Void
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ public final class Func_void_RNMapErrorCode {
|
|
|
23
23
|
|
|
24
24
|
@inline(__always)
|
|
25
25
|
public func call(error: Int32) -> Void {
|
|
26
|
-
self.closure(margelo.nitro.
|
|
26
|
+
self.closure(margelo.nitro.rngooglemapsplus.RNMapErrorCode(rawValue: error)!)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNRegion_RNCamera_bool {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_bool {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ ready: Bool) -> Void
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_std__exception_ptr {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ error: Error) -> Void
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ import NitroModules
|
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_std__string {
|
|
16
|
-
public typealias bridge = margelo.nitro.
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
private let closure: (_ id: String) -> Void
|
|
19
19
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusModuleSpec.swift
|
|
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
|
+
import Foundation
|
|
9
|
+
import NitroModules
|
|
10
|
+
|
|
11
|
+
/// See ``HybridRNGoogleMapsPlusModuleSpec``
|
|
12
|
+
public protocol HybridRNGoogleMapsPlusModuleSpec_protocol: HybridObject {
|
|
13
|
+
// Properties
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// Methods
|
|
17
|
+
func showLocationDialog() throws -> Void
|
|
18
|
+
func openLocationSettings() throws -> Void
|
|
19
|
+
func requestLocationPermission() throws -> Promise<RNLocationPermissionResult>
|
|
20
|
+
func isGooglePlayServicesAvailable() throws -> Bool
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/// See ``HybridRNGoogleMapsPlusModuleSpec``
|
|
24
|
+
open class HybridRNGoogleMapsPlusModuleSpec_base {
|
|
25
|
+
private weak var cxxWrapper: HybridRNGoogleMapsPlusModuleSpec_cxx? = nil
|
|
26
|
+
public init() { }
|
|
27
|
+
public func getCxxWrapper() -> HybridRNGoogleMapsPlusModuleSpec_cxx {
|
|
28
|
+
#if DEBUG
|
|
29
|
+
guard self is HybridRNGoogleMapsPlusModuleSpec else {
|
|
30
|
+
fatalError("`self` is not a `HybridRNGoogleMapsPlusModuleSpec`! Did you accidentally inherit from `HybridRNGoogleMapsPlusModuleSpec_base` instead of `HybridRNGoogleMapsPlusModuleSpec`?")
|
|
31
|
+
}
|
|
32
|
+
#endif
|
|
33
|
+
if let cxxWrapper = self.cxxWrapper {
|
|
34
|
+
return cxxWrapper
|
|
35
|
+
} else {
|
|
36
|
+
let cxxWrapper = HybridRNGoogleMapsPlusModuleSpec_cxx(self as! HybridRNGoogleMapsPlusModuleSpec)
|
|
37
|
+
self.cxxWrapper = cxxWrapper
|
|
38
|
+
return cxxWrapper
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A Swift base-protocol representing the RNGoogleMapsPlusModule HybridObject.
|
|
45
|
+
* Implement this protocol to create Swift-based instances of RNGoogleMapsPlusModule.
|
|
46
|
+
* ```swift
|
|
47
|
+
* class HybridRNGoogleMapsPlusModule : HybridRNGoogleMapsPlusModuleSpec {
|
|
48
|
+
* // ...
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
public typealias HybridRNGoogleMapsPlusModuleSpec = HybridRNGoogleMapsPlusModuleSpec_protocol & HybridRNGoogleMapsPlusModuleSpec_base
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusModuleSpec_cxx.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
@@ -9,7 +9,7 @@ import Foundation
|
|
|
9
9
|
import NitroModules
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* A class implementation that bridges
|
|
12
|
+
* A class implementation that bridges HybridRNGoogleMapsPlusModuleSpec over to C++.
|
|
13
13
|
* In C++, we cannot use Swift protocols - so we need to wrap it in a class to make it strongly defined.
|
|
14
14
|
*
|
|
15
15
|
* Also, some Swift types need to be bridged with special handling:
|
|
@@ -17,39 +17,39 @@ import NitroModules
|
|
|
17
17
|
* - Other HybridObjects need to be wrapped/unwrapped from the Swift TCxx wrapper
|
|
18
18
|
* - Throwing methods need to be wrapped with a Result<T, Error> type, as exceptions cannot be propagated to C++
|
|
19
19
|
*/
|
|
20
|
-
open class
|
|
20
|
+
open class HybridRNGoogleMapsPlusModuleSpec_cxx {
|
|
21
21
|
/**
|
|
22
|
-
* The Swift <> C++ bridge's namespace (`margelo::nitro::
|
|
23
|
-
* from `
|
|
22
|
+
* The Swift <> C++ bridge's namespace (`margelo::nitro::rngooglemapsplus::bridge::swift`)
|
|
23
|
+
* from `RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp`.
|
|
24
24
|
* This contains specialized C++ templates, and C++ helper functions that can be accessed from Swift.
|
|
25
25
|
*/
|
|
26
|
-
public typealias bridge = margelo.nitro.
|
|
26
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Holds an instance of the `
|
|
29
|
+
* Holds an instance of the `HybridRNGoogleMapsPlusModuleSpec` Swift protocol.
|
|
30
30
|
*/
|
|
31
|
-
private var __implementation: any
|
|
31
|
+
private var __implementation: any HybridRNGoogleMapsPlusModuleSpec
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Holds a weak pointer to the C++ class that wraps the Swift class.
|
|
35
35
|
*/
|
|
36
|
-
private var __cxxPart: bridge.
|
|
36
|
+
private var __cxxPart: bridge.std__weak_ptr_HybridRNGoogleMapsPlusModuleSpec_
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Create a new `
|
|
39
|
+
* Create a new `HybridRNGoogleMapsPlusModuleSpec_cxx` that wraps the given `HybridRNGoogleMapsPlusModuleSpec`.
|
|
40
40
|
* All properties and methods bridge to C++ types.
|
|
41
41
|
*/
|
|
42
|
-
public init(_ implementation: any
|
|
42
|
+
public init(_ implementation: any HybridRNGoogleMapsPlusModuleSpec) {
|
|
43
43
|
self.__implementation = implementation
|
|
44
44
|
self.__cxxPart = .init()
|
|
45
45
|
/* no base class */
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Get the actual `
|
|
49
|
+
* Get the actual `HybridRNGoogleMapsPlusModuleSpec` instance this class wraps.
|
|
50
50
|
*/
|
|
51
51
|
@inline(__always)
|
|
52
|
-
public func
|
|
52
|
+
public func getHybridRNGoogleMapsPlusModuleSpec() -> any HybridRNGoogleMapsPlusModuleSpec {
|
|
53
53
|
return __implementation
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -62,25 +62,25 @@ open class HybridGoogleMapsNitroModuleSpec_cxx {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* Casts an unsafe pointer to a `
|
|
66
|
-
* The pointer has to be a retained opaque `Unmanaged<
|
|
65
|
+
* Casts an unsafe pointer to a `HybridRNGoogleMapsPlusModuleSpec_cxx`.
|
|
66
|
+
* The pointer has to be a retained opaque `Unmanaged<HybridRNGoogleMapsPlusModuleSpec_cxx>`.
|
|
67
67
|
* This removes one strong reference from the object!
|
|
68
68
|
*/
|
|
69
|
-
public class func fromUnsafe(_ pointer: UnsafeMutableRawPointer) ->
|
|
70
|
-
return Unmanaged<
|
|
69
|
+
public class func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> HybridRNGoogleMapsPlusModuleSpec_cxx {
|
|
70
|
+
return Unmanaged<HybridRNGoogleMapsPlusModuleSpec_cxx>.fromOpaque(pointer).takeRetainedValue()
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Gets (or creates) the C++ part of this Hybrid Object.
|
|
75
|
-
* The C++ part is a `std::shared_ptr<
|
|
75
|
+
* The C++ part is a `std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>`.
|
|
76
76
|
*/
|
|
77
|
-
public func getCxxPart() -> bridge.
|
|
77
|
+
public func getCxxPart() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ {
|
|
78
78
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
79
79
|
if cachedCxxPart.__convertToBool() {
|
|
80
80
|
return cachedCxxPart
|
|
81
81
|
} else {
|
|
82
|
-
let newCxxPart = bridge.
|
|
83
|
-
__cxxPart = bridge.
|
|
82
|
+
let newCxxPart = bridge.create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(self.toUnsafe())
|
|
83
|
+
__cxxPart = bridge.weakify_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(newCxxPart)
|
|
84
84
|
return newCxxPart
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusViewSpec.swift
|
|
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
|
+
import Foundation
|
|
9
|
+
import NitroModules
|
|
10
|
+
|
|
11
|
+
/// See ``HybridRNGoogleMapsPlusViewSpec``
|
|
12
|
+
public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridView {
|
|
13
|
+
// Properties
|
|
14
|
+
var initialProps: RNInitialProps? { get set }
|
|
15
|
+
var buildingEnabled: Bool? { get set }
|
|
16
|
+
var trafficEnabled: Bool? { get set }
|
|
17
|
+
var customMapStyle: String? { get set }
|
|
18
|
+
var userInterfaceStyle: RNUserInterfaceStyle? { get set }
|
|
19
|
+
var minZoomLevel: Double? { get set }
|
|
20
|
+
var maxZoomLevel: Double? { get set }
|
|
21
|
+
var mapPadding: RNMapPadding? { get set }
|
|
22
|
+
var mapType: RNMapType? { get set }
|
|
23
|
+
var markers: [RNMarker]? { get set }
|
|
24
|
+
var polygons: [RNPolygon]? { get set }
|
|
25
|
+
var polylines: [RNPolyline]? { get set }
|
|
26
|
+
var circles: [RNCircle]? { get set }
|
|
27
|
+
var onMapError: ((_ error: RNMapErrorCode) -> Void)? { get set }
|
|
28
|
+
var onMapReady: ((_ ready: Bool) -> Void)? { get set }
|
|
29
|
+
var onLocationUpdate: ((_ location: RNLocation) -> Void)? { get set }
|
|
30
|
+
var onLocationError: ((_ error: RNLocationErrorCode) -> Void)? { get set }
|
|
31
|
+
var onMapPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
|
|
32
|
+
var onMarkerPress: ((_ id: String) -> Void)? { get set }
|
|
33
|
+
var onPolylinePress: ((_ id: String) -> Void)? { get set }
|
|
34
|
+
var onPolygonPress: ((_ id: String) -> Void)? { get set }
|
|
35
|
+
var onCirclePress: ((_ id: String) -> Void)? { get set }
|
|
36
|
+
var onCameraChangeStart: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
37
|
+
var onCameraChange: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
38
|
+
var onCameraChangeComplete: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
39
|
+
|
|
40
|
+
// Methods
|
|
41
|
+
func setCamera(camera: RNCamera, animated: Bool?, durationMS: Double?) throws -> Void
|
|
42
|
+
func setCameraToCoordinates(coordinates: [RNLatLng], padding: RNMapPadding?, animated: Bool?, durationMS: Double?) throws -> Void
|
|
43
|
+
func showLocationDialog() throws -> Void
|
|
44
|
+
func openLocationSettings() throws -> Void
|
|
45
|
+
func requestLocationPermission() throws -> Promise<RNLocationPermissionResult>
|
|
46
|
+
func isGooglePlayServicesAvailable() throws -> Bool
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/// See ``HybridRNGoogleMapsPlusViewSpec``
|
|
50
|
+
open class HybridRNGoogleMapsPlusViewSpec_base {
|
|
51
|
+
private weak var cxxWrapper: HybridRNGoogleMapsPlusViewSpec_cxx? = nil
|
|
52
|
+
public init() { }
|
|
53
|
+
public func getCxxWrapper() -> HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
54
|
+
#if DEBUG
|
|
55
|
+
guard self is HybridRNGoogleMapsPlusViewSpec else {
|
|
56
|
+
fatalError("`self` is not a `HybridRNGoogleMapsPlusViewSpec`! Did you accidentally inherit from `HybridRNGoogleMapsPlusViewSpec_base` instead of `HybridRNGoogleMapsPlusViewSpec`?")
|
|
57
|
+
}
|
|
58
|
+
#endif
|
|
59
|
+
if let cxxWrapper = self.cxxWrapper {
|
|
60
|
+
return cxxWrapper
|
|
61
|
+
} else {
|
|
62
|
+
let cxxWrapper = HybridRNGoogleMapsPlusViewSpec_cxx(self as! HybridRNGoogleMapsPlusViewSpec)
|
|
63
|
+
self.cxxWrapper = cxxWrapper
|
|
64
|
+
return cxxWrapper
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* A Swift base-protocol representing the RNGoogleMapsPlusView HybridObject.
|
|
71
|
+
* Implement this protocol to create Swift-based instances of RNGoogleMapsPlusView.
|
|
72
|
+
* ```swift
|
|
73
|
+
* class HybridRNGoogleMapsPlusView : HybridRNGoogleMapsPlusViewSpec {
|
|
74
|
+
* // ...
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
public typealias HybridRNGoogleMapsPlusViewSpec = HybridRNGoogleMapsPlusViewSpec_protocol & HybridRNGoogleMapsPlusViewSpec_base
|