react-native-maps 1.21.0-alpha.7 → 1.21.0-alpha.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +38 -13
- package/android/generated/RCTAppDependencyProvider.h +25 -0
- package/android/generated/RCTAppDependencyProvider.mm +55 -0
- package/android/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/android/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/android/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/android/generated/RCTThirdPartyComponentsProvider.mm +26 -0
- package/android/generated/ReactAppDependencyProvider.podspec +34 -0
- package/android/generated/java/com/facebook/fbreact/specs/NativeAirMapsModuleSpec.java +63 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java +35 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +17 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +200 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +71 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +104 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +39 -0
- package/android/generated/jni/CMakeLists.txt +36 -0
- package/android/generated/jni/RNMapsSpecs-generated.cpp +68 -0
- package/android/generated/jni/RNMapsSpecs.h +31 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.cpp +26 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.h +28 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +918 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +787 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.cpp +154 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.h +1058 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI-generated.cpp +74 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI.h +268 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.cpp +21 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.h +76 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/States.h +77 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/java/com/rnmaps/fabric/CalloutManager.java +77 -0
- package/android/src/main/java/com/rnmaps/fabric/JSONUtil.java +86 -0
- package/android/src/main/java/com/rnmaps/fabric/MapViewManager.java +593 -0
- package/android/src/main/java/com/rnmaps/fabric/MarkerManager.java +259 -0
- package/android/src/main/java/com/rnmaps/fabric/NativeAirMapsModule.java +156 -4
- package/android/src/main/java/com/rnmaps/fabric/event/OnCalloutPressEvent.java +25 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnDeselectEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnDragEndEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnDragEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnDragStartEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnLongPressEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMapLoadedEvent.java +29 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMapReadyEvent.java +29 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMarkerDeselectEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMarkerDragEndEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMarkerDragEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMarkerDragStartEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMarkerPressEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnMarkerSelectEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnPoiClickEvent.java +27 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnPressEvent.java +27 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnRegionChangeCompleteEvent.java +30 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnRegionChangeEvent.java +48 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnRegionChangeStartEvent.java +33 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnSelectEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnUserLocationChangeEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/maps/MapAirModulePackage.java +22 -2
- package/android/src/main/java/com/rnmaps/maps/MapCallout.java +18 -0
- package/android/src/main/java/com/rnmaps/maps/MapManager.java +14 -14
- package/android/src/main/java/com/rnmaps/maps/MapMarker.java +79 -3
- package/android/src/main/java/com/rnmaps/maps/MapModule.java +206 -206
- package/android/src/main/java/com/rnmaps/maps/MapView.java +1618 -1346
- package/ios/AirGoogleMaps/AIRGoogleMap.h +3 -2
- package/ios/AirGoogleMaps/AIRGoogleMap.m +153 -48
- package/ios/AirGoogleMaps/AIRGoogleMapCircle.m +23 -11
- package/ios/AirGoogleMaps/AIRGoogleMapManager.m +17 -28
- package/ios/AirGoogleMaps/AIRGoogleMapMarker.h +2 -0
- package/ios/AirGoogleMaps/AIRGoogleMapMarker.m +347 -243
- package/ios/AirGoogleMaps/AIRGoogleMapPolygon.h +2 -1
- package/ios/AirGoogleMaps/AIRGoogleMapPolygon.m +30 -0
- package/ios/AirGoogleMaps/AIRGoogleMapPolyline.h +0 -1
- package/ios/AirGoogleMaps/AIRGoogleMapPolyline.m +0 -7
- package/ios/AirGoogleMaps/AIRGoogleMapWMSTile.h +1 -1
- package/ios/AirGoogleMaps/AIRGoogleMapWMSTile.m +2 -2
- package/ios/AirGoogleMaps/RCTConvert+GMSMapViewType.h +3 -0
- package/ios/AirGoogleMaps/RCTConvert+GMSMapViewType.m +2 -0
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.h +3 -3
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +161 -61
- package/ios/AirGoogleMaps/RNMapsGooglePolygonView.h +26 -0
- package/ios/AirGoogleMaps/RNMapsGooglePolygonView.mm +217 -0
- package/ios/AirGoogleMaps/RNMapsGooglePolygonViewManager.mm +25 -0
- package/ios/AirMaps/AIRMap.h +6 -3
- package/ios/AirMaps/AIRMap.m +289 -145
- package/ios/AirMaps/AIRMapManager.m +8 -17
- package/ios/AirMaps/AIRMapMarker.h +1 -0
- package/ios/AirMaps/AIRMapMarker.m +165 -103
- package/ios/AirMaps/Callout/SMCalloutView.m +1 -1
- package/ios/AirMaps/RCTConvert+AirMap.h +4 -0
- package/ios/AirMaps/RCTConvert+AirMap.m +2 -0
- package/ios/AirMaps/RNMapsAirModule.h +1 -1
- package/ios/AirMaps/RNMapsAirModule.mm +42 -172
- package/ios/AirMaps/RNMapsAirModuleDelegate.h +24 -0
- package/ios/AirMaps/RNMapsHostVewDelegate.h +17 -0
- package/ios/AirMaps/RNMapsMapView.h +3 -3
- package/ios/AirMaps/RNMapsMapView.mm +344 -307
- package/ios/AirMaps/RNMapsMarkerView.h +24 -0
- package/ios/AirMaps/RNMapsMarkerView.mm +430 -0
- package/ios/AirMaps/RNMapsMarkerViewManager.mm +21 -0
- package/ios/AirMaps/UIView +AirMap.m +20 -0
- package/ios/AirMaps/UIView+AirMap.h +11 -0
- package/ios/AirMaps.xcodeproj/project.pbxproj +60 -0
- package/ios/generated/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/RCTAppDependencyProvider.mm +55 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +26 -0
- package/ios/generated/RNMapsSpecs/ComponentDescriptors.cpp +26 -0
- package/ios/generated/RNMapsSpecs/ComponentDescriptors.h +28 -0
- package/ios/generated/RNMapsSpecs/EventEmitters.cpp +918 -0
- package/ios/generated/RNMapsSpecs/EventEmitters.h +787 -0
- package/ios/generated/RNMapsSpecs/Props.cpp +154 -0
- package/ios/generated/RNMapsSpecs/Props.h +1058 -0
- package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +549 -0
- package/ios/generated/RNMapsSpecs/RNMapsSpecs-generated.mm +92 -0
- package/ios/generated/RNMapsSpecs/RNMapsSpecs.h +137 -0
- package/ios/generated/RNMapsSpecs/ShadowNodes.cpp +21 -0
- package/ios/generated/RNMapsSpecs/ShadowNodes.h +76 -0
- package/ios/generated/RNMapsSpecs/States.cpp +16 -0
- package/ios/generated/RNMapsSpecs/States.h +77 -0
- package/ios/generated/RNMapsSpecsJSI-generated.cpp +74 -0
- package/ios/generated/RNMapsSpecsJSI.h +268 -0
- package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
- package/lib/MapCallout.js +1 -0
- package/lib/MapMarker.d.ts +15 -2
- package/lib/MapMarker.js +53 -9
- package/lib/MapMarkerNativeComponent.js +0 -2
- package/lib/MapOverlay.js +2 -8
- package/lib/MapPolyline.d.ts +1 -1
- package/lib/MapView.d.ts +7 -22
- package/lib/MapView.js +83 -94
- package/lib/{FabricMapView.d.ts → createFabricMap.d.ts} +7 -11
- package/lib/createFabricMap.js +175 -0
- package/lib/decorateMapComponent.js +22 -0
- package/lib/specs/NativeAirMapsModule.d.ts +2 -2
- package/lib/specs/NativeComponentCallout.d.ts +46 -0
- package/lib/specs/NativeComponentCallout.js +9 -0
- package/lib/specs/NativeComponentGoogleMapView.d.ts +12 -12
- package/lib/specs/NativeComponentGooglePolygon.d.ts +75 -0
- package/lib/specs/NativeComponentGooglePolygon.js +9 -0
- package/lib/specs/NativeComponentMapView.d.ts +19 -36
- package/lib/specs/NativeComponentMapView.js +1 -3
- package/lib/specs/NativeComponentMarker.d.ts +258 -0
- package/lib/specs/NativeComponentMarker.js +19 -0
- package/package.json +15 -10
- package/react-native-maps.podspec +2 -1
- package/lib/FabricMapView.js +0 -181
package/android/build.gradle
CHANGED
|
@@ -12,7 +12,8 @@ buildscript {
|
|
|
12
12
|
mavenCentral()
|
|
13
13
|
}
|
|
14
14
|
dependencies {
|
|
15
|
-
classpath("com.android.tools.build:gradle:7.
|
|
15
|
+
classpath("com.android.tools.build:gradle:8.7.2")
|
|
16
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '2.0.21')}")
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
}
|
|
@@ -45,41 +46,65 @@ android {
|
|
|
45
46
|
namespace "com.rnmaps.maps"
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
if (rootProject.hasProperty("ndkPath")) {
|
|
50
|
+
ndkPath rootProject.ext.ndkPath
|
|
51
|
+
}
|
|
52
|
+
if (rootProject.hasProperty("ndkVersion")) {
|
|
53
|
+
ndkVersion rootProject.ext.ndkVersion
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
compileSdk safeExtGet('compileSdkVersion', 35)
|
|
49
57
|
|
|
50
58
|
defaultConfig {
|
|
51
59
|
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
52
60
|
targetSdkVersion safeExtGet('targetSdkVersion', 34)
|
|
53
61
|
|
|
54
62
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
63
|
+
|
|
64
|
+
ndk {
|
|
65
|
+
abiFilters(*reactNativeArchitectures())
|
|
66
|
+
}
|
|
55
67
|
}
|
|
56
68
|
packagingOptions {
|
|
57
69
|
excludes = [
|
|
58
70
|
"META-INF",
|
|
59
71
|
"META-INF/**",
|
|
60
|
-
|
|
72
|
+
"**/libreact_render*.so",
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
sourceSets {
|
|
77
|
+
main {
|
|
78
|
+
if (isNewArchitectureEnabled()) {
|
|
79
|
+
java.srcDirs += [
|
|
80
|
+
"generated/java",
|
|
81
|
+
"generated/jni"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|
|
61
85
|
}
|
|
62
86
|
}
|
|
63
87
|
|
|
88
|
+
def reactNativeArchitectures() {
|
|
89
|
+
def value = project.getProperties().get("reactNativeArchitectures")
|
|
90
|
+
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
|
91
|
+
}
|
|
92
|
+
|
|
64
93
|
repositories {
|
|
65
94
|
mavenLocal()
|
|
66
95
|
mavenCentral()
|
|
67
96
|
maven {
|
|
68
97
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
69
|
-
url "$
|
|
70
|
-
}
|
|
71
|
-
maven {
|
|
72
|
-
// Android JSC is installed from npm
|
|
73
|
-
url "$rootDir/../node_modules/jsc-android/dist"
|
|
98
|
+
url "$projectDir/../node_modules/react-native/android"
|
|
74
99
|
}
|
|
75
100
|
google()
|
|
76
101
|
}
|
|
77
102
|
|
|
78
103
|
dependencies {
|
|
79
104
|
implementation 'com.facebook.react:react-native:+'
|
|
80
|
-
implementation "com.google.android.gms:play-services-base:${safeExtGet('
|
|
81
|
-
implementation "com.google.android.gms:play-services-maps:${safeExtGet('
|
|
82
|
-
implementation "com.google.android.gms:play-services-location
|
|
83
|
-
implementation 'com.google.maps.android:android-maps-utils:3.
|
|
84
|
-
implementation "androidx.work:work-runtime:2.
|
|
105
|
+
implementation "com.google.android.gms:play-services-base:${safeExtGet('googlePlayServicesBaseVersion', '18.5.0')}"
|
|
106
|
+
implementation "com.google.android.gms:play-services-maps:${safeExtGet('googlePlayServicesMapsVersion', '19.0.0')}"
|
|
107
|
+
implementation "com.google.android.gms:play-services-location:${safeExtGet('googlePlayServicesLocationVersion', '21.3.0')}"
|
|
108
|
+
implementation 'com.google.maps.android:android-maps-utils:3.10.0'
|
|
109
|
+
implementation "androidx.work:work-runtime:2.9.1"
|
|
85
110
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
|
|
12
|
+
#import <React-RCTAppDelegate/RCTDependencyProvider.h>
|
|
13
|
+
#elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
|
|
14
|
+
#import <React_RCTAppDelegate/RCTDependencyProvider.h>
|
|
15
|
+
#else
|
|
16
|
+
#import "RCTDependencyProvider.h"
|
|
17
|
+
#endif
|
|
18
|
+
|
|
19
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
20
|
+
|
|
21
|
+
@interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
|
|
22
|
+
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import "RCTAppDependencyProvider.h"
|
|
9
|
+
#import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
|
|
10
|
+
#import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
|
|
11
|
+
|
|
12
|
+
@implementation RCTAppDependencyProvider {
|
|
13
|
+
NSArray<NSString *> * _URLRequestHandlerClassNames;
|
|
14
|
+
NSArray<NSString *> * _imageDataDecoderClassNames;
|
|
15
|
+
NSArray<NSString *> * _imageURLLoaderClassNames;
|
|
16
|
+
NSDictionary<NSString *,Class<RCTComponentViewProtocol>> * _thirdPartyFabricComponents;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
- (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
|
|
20
|
+
static dispatch_once_t requestUrlToken;
|
|
21
|
+
dispatch_once(&requestUrlToken, ^{
|
|
22
|
+
self->_URLRequestHandlerClassNames = RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return _URLRequestHandlerClassNames;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
- (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
|
|
29
|
+
static dispatch_once_t dataDecoderToken;
|
|
30
|
+
dispatch_once(&dataDecoderToken, ^{
|
|
31
|
+
_imageDataDecoderClassNames = RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
return _imageDataDecoderClassNames;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
- (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
|
|
38
|
+
static dispatch_once_t urlLoaderToken;
|
|
39
|
+
dispatch_once(&urlLoaderToken, ^{
|
|
40
|
+
_imageURLLoaderClassNames = RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return _imageURLLoaderClassNames;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
- (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
|
|
47
|
+
static dispatch_once_t nativeComponentsToken;
|
|
48
|
+
dispatch_once(&nativeComponentsToken, ^{
|
|
49
|
+
_thirdPartyFabricComponents = RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return _thirdPartyFabricComponents;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@interface RCTModulesConformingToProtocolsProvider: NSObject
|
|
11
|
+
|
|
12
|
+
+(NSArray<NSString *> *)imageURLLoaderClassNames;
|
|
13
|
+
|
|
14
|
+
+(NSArray<NSString *> *)imageDataDecoderClassNames;
|
|
15
|
+
|
|
16
|
+
+(NSArray<NSString *> *)URLRequestHandlerClassNames;
|
|
17
|
+
|
|
18
|
+
@end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import "RCTModulesConformingToProtocolsProvider.h"
|
|
9
|
+
|
|
10
|
+
@implementation RCTModulesConformingToProtocolsProvider
|
|
11
|
+
|
|
12
|
+
+(NSArray<NSString *> *)imageURLLoaderClassNames
|
|
13
|
+
{
|
|
14
|
+
return @[
|
|
15
|
+
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
+(NSArray<NSString *> *)imageDataDecoderClassNames
|
|
20
|
+
{
|
|
21
|
+
return @[
|
|
22
|
+
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
+(NSArray<NSString *> *)URLRequestHandlerClassNames
|
|
27
|
+
{
|
|
28
|
+
return @[
|
|
29
|
+
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@protocol RCTComponentViewProtocol;
|
|
11
|
+
|
|
12
|
+
@interface RCTThirdPartyComponentsProvider: NSObject
|
|
13
|
+
|
|
14
|
+
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
|
|
15
|
+
|
|
16
|
+
@end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#import "RCTThirdPartyComponentsProvider.h"
|
|
12
|
+
#import <React/RCTComponentViewProtocol.h>
|
|
13
|
+
|
|
14
|
+
@implementation RCTThirdPartyComponentsProvider
|
|
15
|
+
|
|
16
|
+
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
|
|
17
|
+
{
|
|
18
|
+
return @{
|
|
19
|
+
@"RNMapsGoogleMapView": NSClassFromString(@"RNMapsGoogleMapView"), // react-native-maps
|
|
20
|
+
@"RNMapsGooglePolygon": NSClassFromString(@"RNMapsGooglePolygonView"), // react-native-maps
|
|
21
|
+
@"RNMapsMapView": NSClassFromString(@"RNMapsMapView"), // react-native-maps
|
|
22
|
+
@"RNMapsMarker": NSClassFromString(@"RNMapsMarkerView"), // react-native-maps
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
version = "0.77.1"
|
|
7
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
8
|
+
if version == '1000.0.0'
|
|
9
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
10
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
11
|
+
else
|
|
12
|
+
source[:tag] = "v#{version}"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
Pod::Spec.new do |s|
|
|
16
|
+
s.name = "ReactAppDependencyProvider"
|
|
17
|
+
s.version = version
|
|
18
|
+
s.summary = "The third party dependency provider for the app"
|
|
19
|
+
s.homepage = "https://reactnative.dev/"
|
|
20
|
+
s.documentation_url = "https://reactnative.dev/"
|
|
21
|
+
s.license = "MIT"
|
|
22
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
23
|
+
s.platforms = min_supported_versions
|
|
24
|
+
s.source = source
|
|
25
|
+
s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
|
|
26
|
+
|
|
27
|
+
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
+
s.pod_target_xcconfig = {
|
|
29
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
30
|
+
"DEFINES_MODULE" => "YES"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
s.dependency "ReactCodegen"
|
|
34
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.facebook.fbreact.specs;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Promise;
|
|
17
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
21
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
22
|
+
import javax.annotation.Nonnull;
|
|
23
|
+
|
|
24
|
+
public abstract class NativeAirMapsModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
25
|
+
public static final String NAME = "RNMapsAirModule";
|
|
26
|
+
|
|
27
|
+
public NativeAirMapsModuleSpec(ReactApplicationContext reactContext) {
|
|
28
|
+
super(reactContext);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@Override
|
|
32
|
+
public @Nonnull String getName() {
|
|
33
|
+
return NAME;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@ReactMethod
|
|
37
|
+
@DoNotStrip
|
|
38
|
+
public abstract void getCamera(double tag, Promise promise);
|
|
39
|
+
|
|
40
|
+
@ReactMethod
|
|
41
|
+
@DoNotStrip
|
|
42
|
+
public abstract void getMarkersFrames(double tag, boolean onlyVisible, Promise promise);
|
|
43
|
+
|
|
44
|
+
@ReactMethod
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
public abstract void getMapBoundaries(double tag, Promise promise);
|
|
47
|
+
|
|
48
|
+
@ReactMethod
|
|
49
|
+
@DoNotStrip
|
|
50
|
+
public abstract void takeSnapshot(double tag, String config, Promise promise);
|
|
51
|
+
|
|
52
|
+
@ReactMethod
|
|
53
|
+
@DoNotStrip
|
|
54
|
+
public abstract void getAddressFromCoordinates(double tag, ReadableMap coordinate, Promise promise);
|
|
55
|
+
|
|
56
|
+
@ReactMethod
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
public abstract void getPointForCoordinate(double tag, ReadableMap coordinate, Promise promise);
|
|
59
|
+
|
|
60
|
+
@ReactMethod
|
|
61
|
+
@DoNotStrip
|
|
62
|
+
public abstract void getCoordinateForPoint(double tag, ReadableMap point, Promise promise);
|
|
63
|
+
}
|
package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GeneratePropsJavaDelegate.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
package com.facebook.react.viewmanagers;
|
|
11
|
+
|
|
12
|
+
import android.view.View;
|
|
13
|
+
import androidx.annotation.Nullable;
|
|
14
|
+
import com.facebook.react.uimanager.BaseViewManager;
|
|
15
|
+
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
16
|
+
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
17
|
+
|
|
18
|
+
public class RNMapsCalloutManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNMapsCalloutManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
19
|
+
public RNMapsCalloutManagerDelegate(U viewManager) {
|
|
20
|
+
super(viewManager);
|
|
21
|
+
}
|
|
22
|
+
@Override
|
|
23
|
+
public void setProperty(T view, String propName, @Nullable Object value) {
|
|
24
|
+
switch (propName) {
|
|
25
|
+
case "alphaHitTest":
|
|
26
|
+
mViewManager.setAlphaHitTest(view, value == null ? false : (boolean) value);
|
|
27
|
+
break;
|
|
28
|
+
case "tooltip":
|
|
29
|
+
mViewManager.setTooltip(view, value == null ? false : (boolean) value);
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
super.setProperty(view, propName, value);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
package com.facebook.react.viewmanagers;
|
|
11
|
+
|
|
12
|
+
import android.view.View;
|
|
13
|
+
|
|
14
|
+
public interface RNMapsCalloutManagerInterface<T extends View> {
|
|
15
|
+
void setAlphaHitTest(T view, boolean value);
|
|
16
|
+
void setTooltip(T view, boolean value);
|
|
17
|
+
}
|
package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GeneratePropsJavaDelegate.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
package com.facebook.react.viewmanagers;
|
|
11
|
+
|
|
12
|
+
import android.view.View;
|
|
13
|
+
import androidx.annotation.Nullable;
|
|
14
|
+
import com.facebook.react.bridge.ColorPropConverter;
|
|
15
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
16
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
17
|
+
import com.facebook.react.uimanager.BaseViewManager;
|
|
18
|
+
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
19
|
+
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
20
|
+
|
|
21
|
+
public class RNMapsMapViewManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNMapsMapViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
22
|
+
public RNMapsMapViewManagerDelegate(U viewManager) {
|
|
23
|
+
super(viewManager);
|
|
24
|
+
}
|
|
25
|
+
@Override
|
|
26
|
+
public void setProperty(T view, String propName, @Nullable Object value) {
|
|
27
|
+
switch (propName) {
|
|
28
|
+
case "cacheEnabled":
|
|
29
|
+
mViewManager.setCacheEnabled(view, value == null ? false : (boolean) value);
|
|
30
|
+
break;
|
|
31
|
+
case "camera":
|
|
32
|
+
mViewManager.setCamera(view, (ReadableMap) value);
|
|
33
|
+
break;
|
|
34
|
+
case "compassOffset":
|
|
35
|
+
mViewManager.setCompassOffset(view, (ReadableMap) value);
|
|
36
|
+
break;
|
|
37
|
+
case "followsUserLocation":
|
|
38
|
+
mViewManager.setFollowsUserLocation(view, value == null ? false : (boolean) value);
|
|
39
|
+
break;
|
|
40
|
+
case "poiClickEnabled":
|
|
41
|
+
mViewManager.setPoiClickEnabled(view, value == null ? false : (boolean) value);
|
|
42
|
+
break;
|
|
43
|
+
case "initialCamera":
|
|
44
|
+
mViewManager.setInitialCamera(view, (ReadableMap) value);
|
|
45
|
+
break;
|
|
46
|
+
case "initialRegion":
|
|
47
|
+
mViewManager.setInitialRegion(view, (ReadableMap) value);
|
|
48
|
+
break;
|
|
49
|
+
case "kmlSrc":
|
|
50
|
+
mViewManager.setKmlSrc(view, value == null ? null : (String) value);
|
|
51
|
+
break;
|
|
52
|
+
case "legalLabelInsets":
|
|
53
|
+
mViewManager.setLegalLabelInsets(view, (ReadableMap) value);
|
|
54
|
+
break;
|
|
55
|
+
case "liteMode":
|
|
56
|
+
mViewManager.setLiteMode(view, value == null ? false : (boolean) value);
|
|
57
|
+
break;
|
|
58
|
+
case "googleMapId":
|
|
59
|
+
mViewManager.setGoogleMapId(view, value == null ? null : (String) value);
|
|
60
|
+
break;
|
|
61
|
+
case "googleRenderer":
|
|
62
|
+
mViewManager.setGoogleRenderer(view, (String) value);
|
|
63
|
+
break;
|
|
64
|
+
case "loadingBackgroundColor":
|
|
65
|
+
mViewManager.setLoadingBackgroundColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
66
|
+
break;
|
|
67
|
+
case "loadingEnabled":
|
|
68
|
+
mViewManager.setLoadingEnabled(view, value == null ? false : (boolean) value);
|
|
69
|
+
break;
|
|
70
|
+
case "loadingIndicatorColor":
|
|
71
|
+
mViewManager.setLoadingIndicatorColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
72
|
+
break;
|
|
73
|
+
case "mapPadding":
|
|
74
|
+
mViewManager.setMapPadding(view, (ReadableMap) value);
|
|
75
|
+
break;
|
|
76
|
+
case "mapType":
|
|
77
|
+
mViewManager.setMapType(view, (String) value);
|
|
78
|
+
break;
|
|
79
|
+
case "maxDelta":
|
|
80
|
+
mViewManager.setMaxDelta(view, value == null ? 0f : ((Double) value).doubleValue());
|
|
81
|
+
break;
|
|
82
|
+
case "maxZoom":
|
|
83
|
+
mViewManager.setMaxZoom(view, value == null ? 0f : ((Double) value).floatValue());
|
|
84
|
+
break;
|
|
85
|
+
case "minDelta":
|
|
86
|
+
mViewManager.setMinDelta(view, value == null ? 0f : ((Double) value).doubleValue());
|
|
87
|
+
break;
|
|
88
|
+
case "minZoom":
|
|
89
|
+
mViewManager.setMinZoom(view, value == null ? 0f : ((Double) value).floatValue());
|
|
90
|
+
break;
|
|
91
|
+
case "moveOnMarkerPress":
|
|
92
|
+
mViewManager.setMoveOnMarkerPress(view, value == null ? true : (boolean) value);
|
|
93
|
+
break;
|
|
94
|
+
case "handlePanDrag":
|
|
95
|
+
mViewManager.setHandlePanDrag(view, value == null ? false : (boolean) value);
|
|
96
|
+
break;
|
|
97
|
+
case "paddingAdjustmentBehavior":
|
|
98
|
+
mViewManager.setPaddingAdjustmentBehavior(view, (String) value);
|
|
99
|
+
break;
|
|
100
|
+
case "pitchEnabled":
|
|
101
|
+
mViewManager.setPitchEnabled(view, value == null ? true : (boolean) value);
|
|
102
|
+
break;
|
|
103
|
+
case "region":
|
|
104
|
+
mViewManager.setRegion(view, (ReadableMap) value);
|
|
105
|
+
break;
|
|
106
|
+
case "rotateEnabled":
|
|
107
|
+
mViewManager.setRotateEnabled(view, value == null ? true : (boolean) value);
|
|
108
|
+
break;
|
|
109
|
+
case "scrollDuringRotateOrZoomEnabled":
|
|
110
|
+
mViewManager.setScrollDuringRotateOrZoomEnabled(view, value == null ? true : (boolean) value);
|
|
111
|
+
break;
|
|
112
|
+
case "scrollEnabled":
|
|
113
|
+
mViewManager.setScrollEnabled(view, value == null ? true : (boolean) value);
|
|
114
|
+
break;
|
|
115
|
+
case "showsBuildings":
|
|
116
|
+
mViewManager.setShowsBuildings(view, value == null ? true : (boolean) value);
|
|
117
|
+
break;
|
|
118
|
+
case "showsCompass":
|
|
119
|
+
mViewManager.setShowsCompass(view, value == null ? true : (boolean) value);
|
|
120
|
+
break;
|
|
121
|
+
case "showsIndoorLevelPicker":
|
|
122
|
+
mViewManager.setShowsIndoorLevelPicker(view, value == null ? false : (boolean) value);
|
|
123
|
+
break;
|
|
124
|
+
case "showsIndoors":
|
|
125
|
+
mViewManager.setShowsIndoors(view, value == null ? true : (boolean) value);
|
|
126
|
+
break;
|
|
127
|
+
case "showsMyLocationButton":
|
|
128
|
+
mViewManager.setShowsMyLocationButton(view, value == null ? true : (boolean) value);
|
|
129
|
+
break;
|
|
130
|
+
case "showsScale":
|
|
131
|
+
mViewManager.setShowsScale(view, value == null ? false : (boolean) value);
|
|
132
|
+
break;
|
|
133
|
+
case "showsUserLocation":
|
|
134
|
+
mViewManager.setShowsUserLocation(view, value == null ? false : (boolean) value);
|
|
135
|
+
break;
|
|
136
|
+
case "tintColor":
|
|
137
|
+
mViewManager.setTintColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
138
|
+
break;
|
|
139
|
+
case "toolbarEnabled":
|
|
140
|
+
mViewManager.setToolbarEnabled(view, value == null ? true : (boolean) value);
|
|
141
|
+
break;
|
|
142
|
+
case "userInterfaceStyle":
|
|
143
|
+
mViewManager.setUserInterfaceStyle(view, (String) value);
|
|
144
|
+
break;
|
|
145
|
+
case "userLocationAnnotationTitle":
|
|
146
|
+
mViewManager.setUserLocationAnnotationTitle(view, value == null ? null : (String) value);
|
|
147
|
+
break;
|
|
148
|
+
case "userLocationCalloutEnabled":
|
|
149
|
+
mViewManager.setUserLocationCalloutEnabled(view, value == null ? false : (boolean) value);
|
|
150
|
+
break;
|
|
151
|
+
case "userLocationFastestInterval":
|
|
152
|
+
mViewManager.setUserLocationFastestInterval(view, value == null ? 5000 : ((Double) value).intValue());
|
|
153
|
+
break;
|
|
154
|
+
case "userLocationPriority":
|
|
155
|
+
mViewManager.setUserLocationPriority(view, (String) value);
|
|
156
|
+
break;
|
|
157
|
+
case "userLocationUpdateInterval":
|
|
158
|
+
mViewManager.setUserLocationUpdateInterval(view, value == null ? 5000 : ((Double) value).intValue());
|
|
159
|
+
break;
|
|
160
|
+
case "zoomControlEnabled":
|
|
161
|
+
mViewManager.setZoomControlEnabled(view, value == null ? true : (boolean) value);
|
|
162
|
+
break;
|
|
163
|
+
case "zoomEnabled":
|
|
164
|
+
mViewManager.setZoomEnabled(view, value == null ? true : (boolean) value);
|
|
165
|
+
break;
|
|
166
|
+
case "zoomTapEnabled":
|
|
167
|
+
mViewManager.setZoomTapEnabled(view, value == null ? true : (boolean) value);
|
|
168
|
+
break;
|
|
169
|
+
case "cameraZoomRange":
|
|
170
|
+
mViewManager.setCameraZoomRange(view, (ReadableMap) value);
|
|
171
|
+
break;
|
|
172
|
+
default:
|
|
173
|
+
super.setProperty(view, propName, value);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@Override
|
|
178
|
+
public void receiveCommand(T view, String commandName, @Nullable ReadableArray args) {
|
|
179
|
+
switch (commandName) {
|
|
180
|
+
case "animateToRegion":
|
|
181
|
+
mViewManager.animateToRegion(view, args.getString(0), args.getInt(1));
|
|
182
|
+
break;
|
|
183
|
+
case "setCamera":
|
|
184
|
+
mViewManager.setCamera(view, args.getString(0));
|
|
185
|
+
break;
|
|
186
|
+
case "animateCamera":
|
|
187
|
+
mViewManager.animateCamera(view, args.getString(0), args.getInt(1));
|
|
188
|
+
break;
|
|
189
|
+
case "fitToElements":
|
|
190
|
+
mViewManager.fitToElements(view, args.getString(0), args.getBoolean(1));
|
|
191
|
+
break;
|
|
192
|
+
case "fitToSuppliedMarkers":
|
|
193
|
+
mViewManager.fitToSuppliedMarkers(view, args.getString(0), args.getString(1), args.getBoolean(2));
|
|
194
|
+
break;
|
|
195
|
+
case "fitToCoordinates":
|
|
196
|
+
mViewManager.fitToCoordinates(view, args.getString(0), args.getString(1), args.getBoolean(2));
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|