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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// RNGoogleMapsPlus-Swift-Cxx-Umbrella.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
|
|
@@ -8,48 +8,48 @@
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
|
-
// Forward declaration of `
|
|
12
|
-
namespace margelo::nitro::
|
|
13
|
-
// Forward declaration of `
|
|
14
|
-
namespace margelo::nitro::
|
|
11
|
+
// Forward declaration of `HybridRNGoogleMapsPlusModuleSpec` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusModuleSpec; }
|
|
13
|
+
// Forward declaration of `HybridRNGoogleMapsPlusViewSpec` to properly resolve imports.
|
|
14
|
+
namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusViewSpec; }
|
|
15
15
|
// Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
|
|
16
|
-
namespace margelo::nitro::
|
|
16
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
17
17
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
18
|
-
namespace margelo::nitro::
|
|
18
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
19
19
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
20
|
-
namespace margelo::nitro::
|
|
20
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
21
21
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
22
|
-
namespace margelo::nitro::
|
|
22
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
23
23
|
// Forward declaration of `RNLineCapType` to properly resolve imports.
|
|
24
|
-
namespace margelo::nitro::
|
|
24
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
|
|
25
25
|
// Forward declaration of `RNLineJoinType` to properly resolve imports.
|
|
26
|
-
namespace margelo::nitro::
|
|
26
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
|
|
27
27
|
// Forward declaration of `RNLocationErrorCode` to properly resolve imports.
|
|
28
|
-
namespace margelo::nitro::
|
|
28
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
|
|
29
29
|
// Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
|
|
30
|
-
namespace margelo::nitro::
|
|
30
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult; }
|
|
31
31
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
32
|
-
namespace margelo::nitro::
|
|
32
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
|
|
33
33
|
// Forward declaration of `RNMapErrorCode` to properly resolve imports.
|
|
34
|
-
namespace margelo::nitro::
|
|
34
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
35
35
|
// Forward declaration of `RNMapPadding` to properly resolve imports.
|
|
36
|
-
namespace margelo::nitro::
|
|
36
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
37
37
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
38
|
-
namespace margelo::nitro::
|
|
38
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
39
39
|
// Forward declaration of `RNPolygon` to properly resolve imports.
|
|
40
|
-
namespace margelo::nitro::
|
|
40
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
|
|
41
41
|
// Forward declaration of `RNPolyline` to properly resolve imports.
|
|
42
|
-
namespace margelo::nitro::
|
|
42
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
|
|
43
43
|
// Forward declaration of `RNPosition` to properly resolve imports.
|
|
44
|
-
namespace margelo::nitro::
|
|
44
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
|
|
45
45
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
46
|
-
namespace margelo::nitro::
|
|
46
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
47
47
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
48
|
-
namespace margelo::nitro::
|
|
48
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
49
49
|
|
|
50
50
|
// Include C++ defined types
|
|
51
|
-
#include "
|
|
52
|
-
#include "
|
|
51
|
+
#include "HybridRNGoogleMapsPlusModuleSpec.hpp"
|
|
52
|
+
#include "HybridRNGoogleMapsPlusViewSpec.hpp"
|
|
53
53
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
54
54
|
#include "RNCamera.hpp"
|
|
55
55
|
#include "RNIOSPermissionResult.hpp"
|
|
@@ -77,7 +77,7 @@ namespace margelo::nitro::googlemapsnitro { enum class RNUserInterfaceStyle; }
|
|
|
77
77
|
#include <vector>
|
|
78
78
|
|
|
79
79
|
// C++ helpers for Swift
|
|
80
|
-
#include "
|
|
80
|
+
#include "RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp"
|
|
81
81
|
|
|
82
82
|
// Common C++ types used in Swift
|
|
83
83
|
#include <NitroModules/ArrayBufferHolder.hpp>
|
|
@@ -86,19 +86,19 @@ namespace margelo::nitro::googlemapsnitro { enum class RNUserInterfaceStyle; }
|
|
|
86
86
|
#include <NitroModules/DateToChronoDate.hpp>
|
|
87
87
|
|
|
88
88
|
// Forward declarations of Swift defined types
|
|
89
|
-
// Forward declaration of `
|
|
90
|
-
namespace
|
|
91
|
-
// Forward declaration of `
|
|
92
|
-
namespace
|
|
89
|
+
// Forward declaration of `HybridRNGoogleMapsPlusModuleSpec_cxx` to properly resolve imports.
|
|
90
|
+
namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusModuleSpec_cxx; }
|
|
91
|
+
// Forward declaration of `HybridRNGoogleMapsPlusViewSpec_cxx` to properly resolve imports.
|
|
92
|
+
namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
93
93
|
|
|
94
94
|
// Include Swift defined types
|
|
95
|
-
#if __has_include("
|
|
95
|
+
#if __has_include("RNGoogleMapsPlus-Swift.h")
|
|
96
96
|
// This header is generated by Xcode/Swift on every app build.
|
|
97
|
-
// If it cannot be found, make sure the Swift module's name (= podspec name) is actually "
|
|
98
|
-
#include "
|
|
97
|
+
// If it cannot be found, make sure the Swift module's name (= podspec name) is actually "RNGoogleMapsPlus".
|
|
98
|
+
#include "RNGoogleMapsPlus-Swift.h"
|
|
99
99
|
// Same as above, but used when building with frameworks (`use_frameworks`)
|
|
100
|
-
#elif __has_include(<
|
|
101
|
-
#include <
|
|
100
|
+
#elif __has_include(<RNGoogleMapsPlus/RNGoogleMapsPlus-Swift.h>)
|
|
101
|
+
#include <RNGoogleMapsPlus/RNGoogleMapsPlus-Swift.h>
|
|
102
102
|
#else
|
|
103
|
-
#error
|
|
103
|
+
#error RNGoogleMapsPlus's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "RNGoogleMapsPlus", and try building the app first.
|
|
104
104
|
#endif
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// RNGoogleMapsPlusAutolinking.mm
|
|
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/Foundation.h>
|
|
9
|
+
#import <NitroModules/HybridObjectRegistry.hpp>
|
|
10
|
+
#import "RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp"
|
|
11
|
+
#import <type_traits>
|
|
12
|
+
|
|
13
|
+
#include "HybridRNGoogleMapsPlusViewSpecSwift.hpp"
|
|
14
|
+
#include "HybridRNGoogleMapsPlusModuleSpecSwift.hpp"
|
|
15
|
+
|
|
16
|
+
@interface RNGoogleMapsPlusAutolinking : NSObject
|
|
17
|
+
@end
|
|
18
|
+
|
|
19
|
+
@implementation RNGoogleMapsPlusAutolinking
|
|
20
|
+
|
|
21
|
+
+ (void) load {
|
|
22
|
+
using namespace margelo::nitro;
|
|
23
|
+
using namespace margelo::nitro::rngooglemapsplus;
|
|
24
|
+
|
|
25
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
26
|
+
"RNGoogleMapsPlusView",
|
|
27
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
28
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> hybridObject = RNGoogleMapsPlus::RNGoogleMapsPlusAutolinking::createRNGoogleMapsPlusView();
|
|
29
|
+
return hybridObject;
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
33
|
+
"RNGoogleMapsPlusModule",
|
|
34
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
35
|
+
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> hybridObject = RNGoogleMapsPlus::RNGoogleMapsPlusAutolinking::createRNGoogleMapsPlusModule();
|
|
36
|
+
return hybridObject;
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@end
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// RNGoogleMapsPlusAutolinking.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
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
public final class
|
|
9
|
-
public typealias bridge = margelo.nitro.
|
|
8
|
+
public final class RNGoogleMapsPlusAutolinking {
|
|
9
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Creates an instance of a Swift class that implements `
|
|
13
|
-
* and wraps it in a Swift class that can directly interop with C++ (`
|
|
12
|
+
* Creates an instance of a Swift class that implements `HybridRNGoogleMapsPlusViewSpec`,
|
|
13
|
+
* and wraps it in a Swift class that can directly interop with C++ (`HybridRNGoogleMapsPlusViewSpec_cxx`)
|
|
14
14
|
*
|
|
15
15
|
* This is generated by Nitrogen and will initialize the class specified
|
|
16
|
-
* in the `"autolinking"` property of `nitro.json` (in this case, `
|
|
16
|
+
* in the `"autolinking"` property of `nitro.json` (in this case, `RNGoogleMapsPlusView`).
|
|
17
17
|
*/
|
|
18
|
-
public static func
|
|
19
|
-
let hybridObject =
|
|
20
|
-
return { () -> bridge.
|
|
18
|
+
public static func createRNGoogleMapsPlusView() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ {
|
|
19
|
+
let hybridObject = RNGoogleMapsPlusView()
|
|
20
|
+
return { () -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ in
|
|
21
21
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
22
22
|
return __cxxWrapped.getCxxPart()
|
|
23
23
|
}()
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Creates an instance of a Swift class that implements `
|
|
28
|
-
* and wraps it in a Swift class that can directly interop with C++ (`
|
|
27
|
+
* Creates an instance of a Swift class that implements `HybridRNGoogleMapsPlusModuleSpec`,
|
|
28
|
+
* and wraps it in a Swift class that can directly interop with C++ (`HybridRNGoogleMapsPlusModuleSpec_cxx`)
|
|
29
29
|
*
|
|
30
30
|
* This is generated by Nitrogen and will initialize the class specified
|
|
31
|
-
* in the `"autolinking"` property of `nitro.json` (in this case, `
|
|
31
|
+
* in the `"autolinking"` property of `nitro.json` (in this case, `RNGoogleMapsPlusModule`).
|
|
32
32
|
*/
|
|
33
|
-
public static func
|
|
34
|
-
let hybridObject =
|
|
35
|
-
return { () -> bridge.
|
|
33
|
+
public static func createRNGoogleMapsPlusModule() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ {
|
|
34
|
+
let hybridObject = RNGoogleMapsPlusModule()
|
|
35
|
+
return { () -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ in
|
|
36
36
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
37
37
|
return __cxxWrapped.getCxxPart()
|
|
38
38
|
}()
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusModuleSpecSwift.cpp
|
|
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
|
+
#include "HybridRNGoogleMapsPlusModuleSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
11
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusModuleSpecSwift.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
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
|
-
#include "
|
|
10
|
+
#include "HybridRNGoogleMapsPlusModuleSpec.hpp"
|
|
11
11
|
|
|
12
|
-
// Forward declaration of `
|
|
13
|
-
namespace
|
|
12
|
+
// Forward declaration of `HybridRNGoogleMapsPlusModuleSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusModuleSpec_cxx; }
|
|
14
14
|
|
|
15
15
|
// Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
|
|
16
|
-
namespace margelo::nitro::
|
|
16
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult; }
|
|
17
17
|
// Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
|
|
18
|
-
namespace margelo::nitro::
|
|
18
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
19
19
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
20
|
-
namespace margelo::nitro::
|
|
20
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
21
21
|
|
|
22
22
|
#include "RNLocationPermissionResult.hpp"
|
|
23
23
|
#include <NitroModules/Promise.hpp>
|
|
@@ -25,30 +25,30 @@ namespace margelo::nitro::googlemapsnitro { enum class RNIOSPermissionResult; }
|
|
|
25
25
|
#include <optional>
|
|
26
26
|
#include "RNIOSPermissionResult.hpp"
|
|
27
27
|
|
|
28
|
-
#include "
|
|
28
|
+
#include "RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp"
|
|
29
29
|
|
|
30
|
-
namespace margelo::nitro::
|
|
30
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* The C++ part of
|
|
33
|
+
* The C++ part of HybridRNGoogleMapsPlusModuleSpec_cxx.swift.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* HybridRNGoogleMapsPlusModuleSpecSwift (C++) accesses HybridRNGoogleMapsPlusModuleSpec_cxx (Swift), and might
|
|
36
36
|
* contain some additional bridging code for C++ <> Swift interop.
|
|
37
37
|
*
|
|
38
38
|
* Since this obviously introduces an overhead, I hope at some point in
|
|
39
|
-
* the future,
|
|
39
|
+
* the future, HybridRNGoogleMapsPlusModuleSpec_cxx can directly inherit from the C++ class HybridRNGoogleMapsPlusModuleSpec
|
|
40
40
|
* to simplify the whole structure and memory management.
|
|
41
41
|
*/
|
|
42
|
-
class
|
|
42
|
+
class HybridRNGoogleMapsPlusModuleSpecSwift: public virtual HybridRNGoogleMapsPlusModuleSpec {
|
|
43
43
|
public:
|
|
44
44
|
// Constructor from a Swift instance
|
|
45
|
-
explicit
|
|
46
|
-
HybridObject(
|
|
45
|
+
explicit HybridRNGoogleMapsPlusModuleSpecSwift(const RNGoogleMapsPlus::HybridRNGoogleMapsPlusModuleSpec_cxx& swiftPart):
|
|
46
|
+
HybridObject(HybridRNGoogleMapsPlusModuleSpec::TAG),
|
|
47
47
|
_swiftPart(swiftPart) { }
|
|
48
48
|
|
|
49
49
|
public:
|
|
50
50
|
// Get the Swift part
|
|
51
|
-
inline
|
|
51
|
+
inline RNGoogleMapsPlus::HybridRNGoogleMapsPlusModuleSpec_cxx& getSwiftPart() noexcept {
|
|
52
52
|
return _swiftPart;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -96,7 +96,7 @@ namespace margelo::nitro::googlemapsnitro {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
private:
|
|
99
|
-
|
|
99
|
+
RNGoogleMapsPlus::HybridRNGoogleMapsPlusModuleSpec_cxx _swiftPart;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
} // namespace margelo::nitro::
|
|
102
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusViewSpecSwift.cpp
|
|
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
|
+
#include "HybridRNGoogleMapsPlusViewSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
11
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridRNGoogleMapsPlusViewSpecSwift.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
|
|
@@ -7,45 +7,45 @@
|
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
|
-
#include "
|
|
10
|
+
#include "HybridRNGoogleMapsPlusViewSpec.hpp"
|
|
11
11
|
|
|
12
|
-
// Forward declaration of `
|
|
13
|
-
namespace
|
|
12
|
+
// Forward declaration of `HybridRNGoogleMapsPlusViewSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
14
14
|
|
|
15
15
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
16
|
-
namespace margelo::nitro::
|
|
16
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
17
17
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
18
|
-
namespace margelo::nitro::
|
|
18
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
19
19
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
20
|
-
namespace margelo::nitro::
|
|
20
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
21
21
|
// Forward declaration of `RNMapPadding` to properly resolve imports.
|
|
22
|
-
namespace margelo::nitro::
|
|
22
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
23
23
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
24
|
-
namespace margelo::nitro::
|
|
24
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
25
25
|
// Forward declaration of `RNPosition` to properly resolve imports.
|
|
26
|
-
namespace margelo::nitro::
|
|
26
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
|
|
27
27
|
// Forward declaration of `RNPolygon` to properly resolve imports.
|
|
28
|
-
namespace margelo::nitro::
|
|
28
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
|
|
29
29
|
// Forward declaration of `RNPolyline` to properly resolve imports.
|
|
30
|
-
namespace margelo::nitro::
|
|
30
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
|
|
31
31
|
// Forward declaration of `RNLineCapType` to properly resolve imports.
|
|
32
|
-
namespace margelo::nitro::
|
|
32
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
|
|
33
33
|
// Forward declaration of `RNLineJoinType` to properly resolve imports.
|
|
34
|
-
namespace margelo::nitro::
|
|
34
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
|
|
35
35
|
// Forward declaration of `RNMapErrorCode` to properly resolve imports.
|
|
36
|
-
namespace margelo::nitro::
|
|
36
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
37
37
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
38
|
-
namespace margelo::nitro::
|
|
38
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
|
|
39
39
|
// Forward declaration of `RNLocationErrorCode` to properly resolve imports.
|
|
40
|
-
namespace margelo::nitro::
|
|
40
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
|
|
41
41
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
42
|
-
namespace margelo::nitro::
|
|
42
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
43
43
|
// Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
|
|
44
|
-
namespace margelo::nitro::
|
|
44
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult; }
|
|
45
45
|
// Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
|
|
46
|
-
namespace margelo::nitro::
|
|
46
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
47
47
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
48
|
-
namespace margelo::nitro::
|
|
48
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
49
49
|
|
|
50
50
|
#include <string>
|
|
51
51
|
#include "RNCamera.hpp"
|
|
@@ -70,30 +70,30 @@ namespace margelo::nitro::googlemapsnitro { enum class RNIOSPermissionResult; }
|
|
|
70
70
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
71
71
|
#include "RNIOSPermissionResult.hpp"
|
|
72
72
|
|
|
73
|
-
#include "
|
|
73
|
+
#include "RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp"
|
|
74
74
|
|
|
75
|
-
namespace margelo::nitro::
|
|
75
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* The C++ part of
|
|
78
|
+
* The C++ part of HybridRNGoogleMapsPlusViewSpec_cxx.swift.
|
|
79
79
|
*
|
|
80
|
-
*
|
|
80
|
+
* HybridRNGoogleMapsPlusViewSpecSwift (C++) accesses HybridRNGoogleMapsPlusViewSpec_cxx (Swift), and might
|
|
81
81
|
* contain some additional bridging code for C++ <> Swift interop.
|
|
82
82
|
*
|
|
83
83
|
* Since this obviously introduces an overhead, I hope at some point in
|
|
84
|
-
* the future,
|
|
84
|
+
* the future, HybridRNGoogleMapsPlusViewSpec_cxx can directly inherit from the C++ class HybridRNGoogleMapsPlusViewSpec
|
|
85
85
|
* to simplify the whole structure and memory management.
|
|
86
86
|
*/
|
|
87
|
-
class
|
|
87
|
+
class HybridRNGoogleMapsPlusViewSpecSwift: public virtual HybridRNGoogleMapsPlusViewSpec {
|
|
88
88
|
public:
|
|
89
89
|
// Constructor from a Swift instance
|
|
90
|
-
explicit
|
|
91
|
-
HybridObject(
|
|
90
|
+
explicit HybridRNGoogleMapsPlusViewSpecSwift(const RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx& swiftPart):
|
|
91
|
+
HybridObject(HybridRNGoogleMapsPlusViewSpec::TAG),
|
|
92
92
|
_swiftPart(swiftPart) { }
|
|
93
93
|
|
|
94
94
|
public:
|
|
95
95
|
// Get the Swift part
|
|
96
|
-
inline
|
|
96
|
+
inline RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx& getSwiftPart() noexcept {
|
|
97
97
|
return _swiftPart;
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -288,7 +288,7 @@ namespace margelo::nitro::googlemapsnitro {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
private:
|
|
291
|
-
|
|
291
|
+
RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx _swiftPart;
|
|
292
292
|
};
|
|
293
293
|
|
|
294
|
-
} // namespace margelo::nitro::
|
|
294
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -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,9 +64,9 @@ 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();
|
|
@@ -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
|
|