react-native-google-maps-plus 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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} +7 -7
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/LocationHandler.kt +1 -1
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapMarker.kt +1 -1
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolygon.kt +1 -1
- package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolyline.kt +1 -1
- 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} +4 -4
- package/ios/{GoogleMapNitroViewImpl.swift → GoogleMapViewImpl.swift} +1 -1
- package/ios/{HybridGoogleMapsNitroModule.swift → RNGoogleMapsPlusModule.swift} +1 -1
- package/ios/{HybridGoogleMapsNitroView.swift → RNGoogleMapsPlusView.swift} +3 -3
- 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/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} +4 -4
- 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 +2 -2
- 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} +72 -72
- package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroViewSpec.hpp → JHybridRNGoogleMapsPlusViewSpec.hpp} +12 -12
- package/nitrogen/generated/android/c++/JRNAndroidLocationPermissionResult.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNCamera.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNIOSPermissionResult.hpp +3 -3
- 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++/JRNMarker.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNPolygon.hpp +3 -3
- package/nitrogen/generated/android/c++/JRNPolyline.hpp +3 -3
- 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} +14 -14
- 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} +6 -6
- 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/{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/{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/{googlemapsnitro → rngooglemapsplus}/RNMarker.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolygon.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolyline.kt +1 -1
- 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} +9 -9
- 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} +45 -45
- package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Umbrella.hpp → RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp} +35 -35
- 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} +32 -32
- package/nitrogen/generated/ios/c++/views/{HybridGoogleMapsNitroViewComponent.mm → HybridRNGoogleMapsPlusViewComponent.mm} +18 -18
- 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/{HybridGoogleMapsNitroViewSpec.swift → HybridRNGoogleMapsPlusViewSpec.swift} +14 -14
- package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroViewSpec_cxx.swift → HybridRNGoogleMapsPlusViewSpec_cxx.swift} +22 -22
- package/nitrogen/generated/ios/swift/RNAndroidLocationPermissionResult.swift +1 -1
- package/nitrogen/generated/ios/swift/RNCamera.swift +2 -2
- package/nitrogen/generated/ios/swift/RNIOSPermissionResult.swift +1 -1
- 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/RNMarker.swift +2 -2
- package/nitrogen/generated/ios/swift/RNPolygon.swift +2 -2
- package/nitrogen/generated/ios/swift/RNPolyline.swift +2 -2
- 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 +66 -0
- package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroViewSpec.hpp → HybridRNGoogleMapsPlusViewSpec.hpp} +23 -23
- package/nitrogen/generated/shared/c++/RNAndroidLocationPermissionResult.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNCamera.hpp +10 -10
- package/nitrogen/generated/shared/c++/RNIOSPermissionResult.hpp +6 -6
- 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++/RNMarker.hpp +14 -14
- package/nitrogen/generated/shared/c++/RNPolygon.hpp +10 -10
- package/nitrogen/generated/shared/c++/RNPolyline.hpp +18 -18
- 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} +42 -42
- package/nitrogen/generated/shared/c++/views/{HybridGoogleMapsNitroViewComponent.hpp → HybridRNGoogleMapsPlusViewComponent.hpp} +32 -32
- package/nitrogen/generated/shared/json/{GoogleMapsNitroViewConfig.json → RNGoogleMapsPlusViewConfig.json} +1 -1
- package/package.json +9 -3
- package/src/{GoogleMapsNitroModule.nitro.ts → RNGoogleMapsPlusModule.nitro.ts} +1 -1
- package/src/{GoogleMapsNitroView.nitro.ts → RNGoogleMapsPlusView.nitro.ts} +5 -5
- package/src/index.tsx +11 -11
- package/src/types.ts +2 -2
- 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/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/shared/c++/HybridGoogleMapsNitroViewSpec.cpp +0 -66
|
@@ -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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusViewSpec.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
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import Foundation
|
|
9
9
|
import NitroModules
|
|
10
10
|
|
|
11
|
-
/// See ``
|
|
12
|
-
public protocol
|
|
11
|
+
/// See ``HybridRNGoogleMapsPlusViewSpec``
|
|
12
|
+
public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridView {
|
|
13
13
|
// Properties
|
|
14
14
|
var buildingEnabled: Bool { get set }
|
|
15
15
|
var trafficEnabled: Bool { get set }
|
|
@@ -41,20 +41,20 @@ public protocol HybridGoogleMapsNitroViewSpec_protocol: HybridObject, HybridView
|
|
|
41
41
|
func isGooglePlayServicesAvailable() throws -> Bool
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
/// See ``
|
|
45
|
-
open class
|
|
46
|
-
private weak var cxxWrapper:
|
|
44
|
+
/// See ``HybridRNGoogleMapsPlusViewSpec``
|
|
45
|
+
open class HybridRNGoogleMapsPlusViewSpec_base {
|
|
46
|
+
private weak var cxxWrapper: HybridRNGoogleMapsPlusViewSpec_cxx? = nil
|
|
47
47
|
public init() { }
|
|
48
|
-
public func getCxxWrapper() ->
|
|
48
|
+
public func getCxxWrapper() -> HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
49
49
|
#if DEBUG
|
|
50
|
-
guard self is
|
|
51
|
-
fatalError("`self` is not a `
|
|
50
|
+
guard self is HybridRNGoogleMapsPlusViewSpec else {
|
|
51
|
+
fatalError("`self` is not a `HybridRNGoogleMapsPlusViewSpec`! Did you accidentally inherit from `HybridRNGoogleMapsPlusViewSpec_base` instead of `HybridRNGoogleMapsPlusViewSpec`?")
|
|
52
52
|
}
|
|
53
53
|
#endif
|
|
54
54
|
if let cxxWrapper = self.cxxWrapper {
|
|
55
55
|
return cxxWrapper
|
|
56
56
|
} else {
|
|
57
|
-
let cxxWrapper =
|
|
57
|
+
let cxxWrapper = HybridRNGoogleMapsPlusViewSpec_cxx(self as! HybridRNGoogleMapsPlusViewSpec)
|
|
58
58
|
self.cxxWrapper = cxxWrapper
|
|
59
59
|
return cxxWrapper
|
|
60
60
|
}
|
|
@@ -62,12 +62,12 @@ open class HybridGoogleMapsNitroViewSpec_base {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* A Swift base-protocol representing the
|
|
66
|
-
* Implement this protocol to create Swift-based instances of
|
|
65
|
+
* A Swift base-protocol representing the RNGoogleMapsPlusView HybridObject.
|
|
66
|
+
* Implement this protocol to create Swift-based instances of RNGoogleMapsPlusView.
|
|
67
67
|
* ```swift
|
|
68
|
-
* class
|
|
68
|
+
* class HybridRNGoogleMapsPlusView : HybridRNGoogleMapsPlusViewSpec {
|
|
69
69
|
* // ...
|
|
70
70
|
* }
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
|
-
public typealias
|
|
73
|
+
public typealias HybridRNGoogleMapsPlusViewSpec = HybridRNGoogleMapsPlusViewSpec_protocol & HybridRNGoogleMapsPlusViewSpec_base
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusViewSpec_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 HybridRNGoogleMapsPlusViewSpec 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 HybridRNGoogleMapsPlusViewSpec_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 `HybridRNGoogleMapsPlusViewSpec` Swift protocol.
|
|
30
30
|
*/
|
|
31
|
-
private var __implementation: any
|
|
31
|
+
private var __implementation: any HybridRNGoogleMapsPlusViewSpec
|
|
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_HybridRNGoogleMapsPlusViewSpec_
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Create a new `
|
|
39
|
+
* Create a new `HybridRNGoogleMapsPlusViewSpec_cxx` that wraps the given `HybridRNGoogleMapsPlusViewSpec`.
|
|
40
40
|
* All properties and methods bridge to C++ types.
|
|
41
41
|
*/
|
|
42
|
-
public init(_ implementation: any
|
|
42
|
+
public init(_ implementation: any HybridRNGoogleMapsPlusViewSpec) {
|
|
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 `HybridRNGoogleMapsPlusViewSpec` instance this class wraps.
|
|
50
50
|
*/
|
|
51
51
|
@inline(__always)
|
|
52
|
-
public func
|
|
52
|
+
public func getHybridRNGoogleMapsPlusViewSpec() -> any HybridRNGoogleMapsPlusViewSpec {
|
|
53
53
|
return __implementation
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -62,25 +62,25 @@ open class HybridGoogleMapsNitroViewSpec_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 `HybridRNGoogleMapsPlusViewSpec_cxx`.
|
|
66
|
+
* The pointer has to be a retained opaque `Unmanaged<HybridRNGoogleMapsPlusViewSpec_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) -> HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
70
|
+
return Unmanaged<HybridRNGoogleMapsPlusViewSpec_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<HybridRNGoogleMapsPlusViewSpec>`.
|
|
76
76
|
*/
|
|
77
|
-
public func getCxxPart() -> bridge.
|
|
77
|
+
public func getCxxPart() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ {
|
|
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_HybridRNGoogleMapsPlusViewSpec_(self.toUnsafe())
|
|
83
|
+
__cxxPart = bridge.weakify_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(newCxxPart)
|
|
84
84
|
return newCxxPart
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -157,7 +157,7 @@ open class HybridGoogleMapsNitroViewSpec_cxx {
|
|
|
157
157
|
}
|
|
158
158
|
@inline(__always)
|
|
159
159
|
set {
|
|
160
|
-
self.__implementation.userInterfaceStyle = margelo.nitro.
|
|
160
|
+
self.__implementation.userInterfaceStyle = margelo.nitro.rngooglemapsplus.RNUserInterfaceStyle(rawValue: newValue)!
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the JS enum `RNAndroidLocationPermissionResult`, backed by a C++ enum.
|
|
10
10
|
*/
|
|
11
|
-
public typealias RNAndroidLocationPermissionResult = margelo.nitro.
|
|
11
|
+
public typealias RNAndroidLocationPermissionResult = margelo.nitro.rngooglemapsplus.RNAndroidLocationPermissionResult
|
|
12
12
|
|
|
13
13
|
public extension RNAndroidLocationPermissionResult {
|
|
14
14
|
/**
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNCamera`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNCamera = margelo.nitro.
|
|
13
|
+
public typealias RNCamera = margelo.nitro.rngooglemapsplus.RNCamera
|
|
14
14
|
|
|
15
15
|
public extension RNCamera {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNCamera`.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the JS enum `RNIOSPermissionResult`, backed by a C++ enum.
|
|
10
10
|
*/
|
|
11
|
-
public typealias RNIOSPermissionResult = margelo.nitro.
|
|
11
|
+
public typealias RNIOSPermissionResult = margelo.nitro.rngooglemapsplus.RNIOSPermissionResult
|
|
12
12
|
|
|
13
13
|
public extension RNIOSPermissionResult {
|
|
14
14
|
/**
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNLatLng`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNLatLng = margelo.nitro.
|
|
13
|
+
public typealias RNLatLng = margelo.nitro.rngooglemapsplus.RNLatLng
|
|
14
14
|
|
|
15
15
|
public extension RNLatLng {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNLatLng`.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the JS union `RNLineCapType`, backed by a C++ enum.
|
|
10
10
|
*/
|
|
11
|
-
public typealias RNLineCapType = margelo.nitro.
|
|
11
|
+
public typealias RNLineCapType = margelo.nitro.rngooglemapsplus.RNLineCapType
|
|
12
12
|
|
|
13
13
|
public extension RNLineCapType {
|
|
14
14
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the JS union `RNLineJoinType`, backed by a C++ enum.
|
|
10
10
|
*/
|
|
11
|
-
public typealias RNLineJoinType = margelo.nitro.
|
|
11
|
+
public typealias RNLineJoinType = margelo.nitro.rngooglemapsplus.RNLineJoinType
|
|
12
12
|
|
|
13
13
|
public extension RNLineJoinType {
|
|
14
14
|
/**
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNLocation`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNLocation = margelo.nitro.
|
|
13
|
+
public typealias RNLocation = margelo.nitro.rngooglemapsplus.RNLocation
|
|
14
14
|
|
|
15
15
|
public extension RNLocation {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNLocation`.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the JS enum `RNLocationErrorCode`, backed by a C++ enum.
|
|
10
10
|
*/
|
|
11
|
-
public typealias RNLocationErrorCode = margelo.nitro.
|
|
11
|
+
public typealias RNLocationErrorCode = margelo.nitro.rngooglemapsplus.RNLocationErrorCode
|
|
12
12
|
|
|
13
13
|
public extension RNLocationErrorCode {
|
|
14
14
|
/**
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNLocationPermissionResult`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNLocationPermissionResult = margelo.nitro.
|
|
13
|
+
public typealias RNLocationPermissionResult = margelo.nitro.rngooglemapsplus.RNLocationPermissionResult
|
|
14
14
|
|
|
15
15
|
public extension RNLocationPermissionResult {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNLocationPermissionResult`.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the JS enum `RNMapErrorCode`, backed by a C++ enum.
|
|
10
10
|
*/
|
|
11
|
-
public typealias RNMapErrorCode = margelo.nitro.
|
|
11
|
+
public typealias RNMapErrorCode = margelo.nitro.rngooglemapsplus.RNMapErrorCode
|
|
12
12
|
|
|
13
13
|
public extension RNMapErrorCode {
|
|
14
14
|
/**
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNMapPadding`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNMapPadding = margelo.nitro.
|
|
13
|
+
public typealias RNMapPadding = margelo.nitro.rngooglemapsplus.RNMapPadding
|
|
14
14
|
|
|
15
15
|
public extension RNMapPadding {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNMapPadding`.
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNMarker`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNMarker = margelo.nitro.
|
|
13
|
+
public typealias RNMarker = margelo.nitro.rngooglemapsplus.RNMarker
|
|
14
14
|
|
|
15
15
|
public extension RNMarker {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNMarker`.
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNPolygon`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNPolygon = margelo.nitro.
|
|
13
|
+
public typealias RNPolygon = margelo.nitro.rngooglemapsplus.RNPolygon
|
|
14
14
|
|
|
15
15
|
public extension RNPolygon {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNPolygon`.
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNPolyline`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNPolyline = margelo.nitro.
|
|
13
|
+
public typealias RNPolyline = margelo.nitro.rngooglemapsplus.RNPolyline
|
|
14
14
|
|
|
15
15
|
public extension RNPolyline {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNPolyline`.
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNPosition`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNPosition = margelo.nitro.
|
|
13
|
+
public typealias RNPosition = margelo.nitro.rngooglemapsplus.RNPosition
|
|
14
14
|
|
|
15
15
|
public extension RNPosition {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNPosition`.
|
|
@@ -10,10 +10,10 @@ import NitroModules
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents an instance of `RNRegion`, backed by a C++ struct.
|
|
12
12
|
*/
|
|
13
|
-
public typealias RNRegion = margelo.nitro.
|
|
13
|
+
public typealias RNRegion = margelo.nitro.rngooglemapsplus.RNRegion
|
|
14
14
|
|
|
15
15
|
public extension RNRegion {
|
|
16
|
-
private typealias bridge = margelo.nitro.
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNRegion`.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the JS union `RNUserInterfaceStyle`, backed by a C++ enum.
|
|
10
10
|
*/
|
|
11
|
-
public typealias RNUserInterfaceStyle = margelo.nitro.
|
|
11
|
+
public typealias RNUserInterfaceStyle = margelo.nitro.rngooglemapsplus.RNUserInterfaceStyle
|
|
12
12
|
|
|
13
13
|
public extension RNUserInterfaceStyle {
|
|
14
14
|
/**
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusModuleSpec.cpp
|
|
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
|
-
#include "
|
|
8
|
+
#include "HybridRNGoogleMapsPlusModuleSpec.hpp"
|
|
9
9
|
|
|
10
|
-
namespace margelo::nitro::
|
|
10
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
11
11
|
|
|
12
|
-
void
|
|
12
|
+
void HybridRNGoogleMapsPlusModuleSpec::loadHybridMethods() {
|
|
13
13
|
// load base methods/properties
|
|
14
14
|
HybridObject::loadHybridMethods();
|
|
15
15
|
// load custom methods/properties
|
|
16
16
|
registerHybrids(this, [](Prototype& prototype) {
|
|
17
|
-
prototype.registerHybridMethod("showLocationDialog", &
|
|
18
|
-
prototype.registerHybridMethod("openLocationSettings", &
|
|
19
|
-
prototype.registerHybridMethod("requestLocationPermission", &
|
|
20
|
-
prototype.registerHybridMethod("isGooglePlayServicesAvailable", &
|
|
17
|
+
prototype.registerHybridMethod("showLocationDialog", &HybridRNGoogleMapsPlusModuleSpec::showLocationDialog);
|
|
18
|
+
prototype.registerHybridMethod("openLocationSettings", &HybridRNGoogleMapsPlusModuleSpec::openLocationSettings);
|
|
19
|
+
prototype.registerHybridMethod("requestLocationPermission", &HybridRNGoogleMapsPlusModuleSpec::requestLocationPermission);
|
|
20
|
+
prototype.registerHybridMethod("isGooglePlayServicesAvailable", &HybridRNGoogleMapsPlusModuleSpec::isGooglePlayServicesAvailable);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
} // namespace margelo::nitro::
|
|
24
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusModuleSpec.hpp
|
|
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
|
|
@@ -14,35 +14,35 @@
|
|
|
14
14
|
#endif
|
|
15
15
|
|
|
16
16
|
// Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
|
|
17
|
-
namespace margelo::nitro::
|
|
17
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult; }
|
|
18
18
|
|
|
19
19
|
#include "RNLocationPermissionResult.hpp"
|
|
20
20
|
#include <NitroModules/Promise.hpp>
|
|
21
21
|
|
|
22
|
-
namespace margelo::nitro::
|
|
22
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
23
23
|
|
|
24
24
|
using namespace margelo::nitro;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* An abstract base class for `
|
|
28
|
-
* Inherit this class to create instances of `
|
|
27
|
+
* An abstract base class for `RNGoogleMapsPlusModule`
|
|
28
|
+
* Inherit this class to create instances of `HybridRNGoogleMapsPlusModuleSpec` in C++.
|
|
29
29
|
* You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
|
|
30
30
|
* @example
|
|
31
31
|
* ```cpp
|
|
32
|
-
* class
|
|
32
|
+
* class HybridRNGoogleMapsPlusModule: public HybridRNGoogleMapsPlusModuleSpec {
|
|
33
33
|
* public:
|
|
34
|
-
*
|
|
34
|
+
* HybridRNGoogleMapsPlusModule(...): HybridObject(TAG) { ... }
|
|
35
35
|
* // ...
|
|
36
36
|
* };
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
class
|
|
39
|
+
class HybridRNGoogleMapsPlusModuleSpec: public virtual HybridObject {
|
|
40
40
|
public:
|
|
41
41
|
// Constructor
|
|
42
|
-
explicit
|
|
42
|
+
explicit HybridRNGoogleMapsPlusModuleSpec(): HybridObject(TAG) { }
|
|
43
43
|
|
|
44
44
|
// Destructor
|
|
45
|
-
~
|
|
45
|
+
~HybridRNGoogleMapsPlusModuleSpec() override = default;
|
|
46
46
|
|
|
47
47
|
public:
|
|
48
48
|
// Properties
|
|
@@ -61,7 +61,7 @@ namespace margelo::nitro::googlemapsnitro {
|
|
|
61
61
|
|
|
62
62
|
protected:
|
|
63
63
|
// Tag for logging
|
|
64
|
-
static constexpr auto TAG = "
|
|
64
|
+
static constexpr auto TAG = "RNGoogleMapsPlusModule";
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
} // namespace margelo::nitro::
|
|
67
|
+
} // namespace margelo::nitro::rngooglemapsplus
|