@maplibre/maplibre-react-native 10.0.0-beta.8 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -54
- package/android/build.gradle +35 -12
- package/android/gradle.properties +14 -6
- package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +37 -48
- package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +16 -9
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +11 -13
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +4 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyle.java +1 -4
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFactory.java +10 -11
- package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +7 -11
- package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.java +18 -0
- package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.java +9 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +27 -148
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.java +1 -3
- package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +123 -18
- package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.java +151 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.java +24 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/app.plugin.js +1 -1
- package/ios/MLRN/MLRNCamera.m +6 -7
- package/ios/MLRN/MLRNMapView.h +1 -1
- package/ios/MLRN/MLRNMapView.m +7 -7
- package/ios/MLRN/MLRNMapViewManager.m +1 -1
- package/ios/MLRN/MLRNModule.m +8 -139
- package/ios/MLRN/MLRNStyle.m +0 -40
- package/lib/commonjs/MLRNModule.js +3 -5
- package/lib/commonjs/MLRNModule.js.map +1 -1
- package/lib/commonjs/MapLibreRN.js +77 -59
- package/lib/commonjs/MapLibreRN.js.map +1 -1
- package/lib/commonjs/components/Annotation.js +7 -9
- package/lib/commonjs/components/Annotation.js.map +1 -1
- package/lib/commonjs/components/BackgroundLayer.js +6 -8
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/Callout.js +2 -2
- package/lib/commonjs/components/Callout.js.map +1 -1
- package/lib/commonjs/components/Camera.js +111 -63
- package/lib/commonjs/components/Camera.js.map +1 -1
- package/lib/commonjs/components/CircleLayer.js +6 -8
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +6 -8
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeadingIndicator.js +4 -4
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +6 -8
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/ImageSource.js +4 -5
- package/lib/commonjs/components/ImageSource.js.map +1 -1
- package/lib/commonjs/components/Images.js +2 -2
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/Light.js +4 -6
- package/lib/commonjs/components/Light.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +6 -8
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/MapView.js +69 -76
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/components/MarkerView.js +4 -5
- package/lib/commonjs/components/MarkerView.js.map +1 -1
- package/lib/commonjs/components/NativeUserLocation.js +2 -2
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/PointAnnotation.js +7 -10
- package/lib/commonjs/components/PointAnnotation.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +6 -8
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/RasterSource.js +8 -10
- package/lib/commonjs/components/RasterSource.js.map +1 -1
- package/lib/commonjs/components/ShapeSource.js +6 -8
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +6 -7
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/UserLocation.js +21 -23
- package/lib/commonjs/components/UserLocation.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js +8 -10
- package/lib/commonjs/components/VectorSource.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
- package/lib/commonjs/hooks/useNativeBridge.js +2 -2
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
- package/lib/commonjs/hooks/useOnce.js +2 -2
- package/lib/commonjs/hooks/useOnce.js.map +1 -1
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
- package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +34 -36
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
- package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
- package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/plugin/MapLibrePluginProps.js +2 -0
- package/lib/commonjs/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/commonjs/plugin/android.js +41 -0
- package/lib/commonjs/plugin/android.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +131 -0
- package/lib/commonjs/plugin/ios.js.map +1 -0
- package/lib/commonjs/plugin/withMapLibre.js +31 -0
- package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
- package/lib/commonjs/types/MapLibreRNStyles.js +6 -0
- package/lib/commonjs/types/MapLibreRNStyles.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +2 -2
- package/lib/commonjs/utils/BridgeValue.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +2 -2
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/StyleValue.js +4 -5
- package/lib/commonjs/utils/StyleValue.js.map +1 -1
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/commonjs/utils/animated/Animated.js +29 -31
- package/lib/commonjs/utils/animated/Animated.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/commonjs/utils/getStylePropertyType.js +252 -0
- package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
- package/lib/module/MLRNModule.js +1 -2
- package/lib/module/MLRNModule.js.map +1 -1
- package/lib/module/MapLibreRN.js +40 -28
- package/lib/module/MapLibreRN.js.map +1 -1
- package/lib/module/components/Annotation.js +5 -6
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js +4 -6
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/Callout.js +2 -3
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Camera.js +112 -64
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/CircleLayer.js +4 -6
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js +4 -6
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +4 -6
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeadingIndicator.js +2 -3
- package/lib/module/components/HeadingIndicator.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +4 -6
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/ImageSource.js +2 -3
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js +2 -3
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js +2 -4
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/LineLayer.js +4 -6
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/MapView.js +65 -72
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +2 -3
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/NativeUserLocation.js +1 -2
- package/lib/module/components/NativeUserLocation.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +5 -7
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterLayer.js +4 -6
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/RasterSource.js +5 -7
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js +4 -5
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +4 -5
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js +14 -15
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js +5 -6
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/hooks/useAbstractLayer.js +1 -1
- package/lib/module/hooks/useAbstractLayer.js.map +1 -1
- package/lib/module/hooks/useAbstractSource.js +1 -1
- package/lib/module/hooks/useAbstractSource.js.map +1 -1
- package/lib/module/hooks/useNativeBridge.js +1 -2
- package/lib/module/hooks/useNativeBridge.js.map +1 -1
- package/lib/module/hooks/useNativeRef.js.map +1 -1
- package/lib/module/hooks/useOnce.js +1 -2
- package/lib/module/hooks/useOnce.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
- package/lib/module/modules/location/LocationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +30 -30
- package/lib/module/modules/offline/OfflineManager.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +1 -2
- package/lib/module/modules/offline/OfflinePack.js.map +1 -1
- package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
- package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/plugin/MapLibrePluginProps.js +2 -0
- package/lib/module/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/module/plugin/android.js +34 -0
- package/lib/module/plugin/android.js.map +1 -0
- package/lib/module/plugin/ios.js +123 -0
- package/lib/module/plugin/ios.js.map +1 -0
- package/lib/module/plugin/withMapLibre.js +27 -0
- package/lib/module/plugin/withMapLibre.js.map +1 -0
- package/lib/module/types/MapLibreRNStyles.js +4 -0
- package/lib/module/types/MapLibreRNStyles.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +1 -1
- package/lib/module/utils/BridgeValue.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -2
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/StyleValue.js +3 -3
- package/lib/module/utils/StyleValue.js.map +1 -1
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/module/utils/animated/Animated.js +14 -15
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedPoint.js +0 -1
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedShape.js +1 -2
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/module/utils/getStylePropertyType.js +248 -0
- package/lib/module/utils/getStylePropertyType.js.map +1 -0
- package/lib/typescript/commonjs/src/MLRNModule.d.ts +2 -6
- package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +43 -30
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Images.d.ts +5 -5
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Light.d.ts +4 -5
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MapView.d.ts +12 -15
- package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +8 -15
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +25 -25
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +2 -3
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts +16 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/src/MLRNModule.d.ts +2 -6
- package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/module/src/MapLibreRN.d.ts +43 -30
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Callout.d.ts +3 -4
- package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Camera.d.ts +4 -4
- package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Images.d.ts +5 -5
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Light.d.ts +4 -5
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/module/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MapView.d.ts +12 -15
- package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ShapeSource.d.ts +8 -15
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +3 -4
- package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +25 -25
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +2 -3
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/android.d.ts +16 -0
- package/lib/typescript/module/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/module/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/maplibre-react-native.podspec +15 -14
- package/package.json +17 -14
- package/src/MLRNModule.ts +15 -10
- package/src/MapLibreRN.ts +59 -41
- package/src/components/Annotation.tsx +12 -14
- package/src/components/BackgroundLayer.tsx +7 -9
- package/src/components/Callout.tsx +8 -10
- package/src/components/Camera.tsx +154 -78
- package/src/components/CircleLayer.tsx +7 -9
- package/src/components/FillExtrusionLayer.tsx +7 -9
- package/src/components/FillLayer.tsx +7 -9
- package/src/components/HeadingIndicator.tsx +2 -6
- package/src/components/HeatmapLayer.tsx +7 -9
- package/src/components/ImageSource.tsx +4 -6
- package/src/components/Images.tsx +7 -9
- package/src/components/Light.tsx +5 -7
- package/src/components/LineLayer.tsx +7 -9
- package/src/components/MapView.tsx +85 -94
- package/src/components/MarkerView.tsx +4 -6
- package/src/components/NativeUserLocation.tsx +1 -4
- package/src/components/PointAnnotation.tsx +10 -11
- package/src/components/RasterLayer.tsx +7 -9
- package/src/components/RasterSource.tsx +7 -9
- package/src/components/ShapeSource.tsx +17 -22
- package/src/components/SymbolLayer.tsx +7 -8
- package/src/components/UserLocation.tsx +21 -22
- package/src/components/VectorSource.tsx +8 -15
- package/src/hooks/useAbstractLayer.ts +8 -8
- package/src/hooks/useAbstractSource.ts +6 -6
- package/src/hooks/useNativeBridge.ts +9 -6
- package/src/hooks/useNativeRef.ts +2 -2
- package/src/hooks/useOnce.ts +3 -3
- package/src/index.ts +3 -0
- package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
- package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
- package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +30 -29
- package/src/modules/offline/OfflinePack.ts +2 -4
- package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
- package/src/modules/snapshot/SnapshotOptions.ts +2 -4
- package/src/plugin/MapLibrePluginProps.ts +83 -0
- package/src/plugin/android.ts +64 -0
- package/src/plugin/ios.ts +166 -0
- package/src/plugin/withMapLibre.ts +30 -0
- package/src/{utils/MapLibreRNStyles.d.ts → types/MapLibreRNStyles.ts} +86 -406
- package/src/utils/BridgeValue.ts +1 -1
- package/src/utils/Logger.ts +1 -3
- package/src/utils/StyleValue.ts +6 -5
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
- package/src/utils/animated/Animated.ts +23 -21
- package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
- package/src/utils/animated/AnimatedPoint.ts +0 -2
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
- package/src/utils/animated/AnimatedShape.ts +4 -6
- package/src/utils/filterUtils.ts +1 -1
- package/src/utils/getStylePropertyType.ts +265 -0
- package/lib/commonjs/modules/location/locationManager.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
- package/lib/commonjs/types/StyleURL.js +0 -11
- package/lib/commonjs/types/StyleURL.js.map +0 -1
- package/lib/commonjs/utils/MapLibreRNStyles.d.js +0 -181
- package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/commonjs/utils/styleMap.js +0 -255
- package/lib/commonjs/utils/styleMap.js.map +0 -1
- package/lib/module/modules/location/locationManager.js.map +0 -1
- package/lib/module/modules/offline/offlineManager.js.map +0 -1
- package/lib/module/types/StyleURL.js +0 -7
- package/lib/module/types/StyleURL.js.map +0 -1
- package/lib/module/utils/MapLibreRNStyles.d.js +0 -180
- package/lib/module/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/module/utils/styleMap.js +0 -249
- package/lib/module/utils/styleMap.js.map +0 -1
- package/lib/typescript/commonjs/jest.config.d.ts +0 -2
- package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +0 -1
- package/lib/typescript/module/jest.config.d.ts +0 -2
- package/lib/typescript/module/jest.config.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/module/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/module/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/module/src/utils/styleMap.d.ts.map +0 -1
- package/plugin/build/withMapLibre.d.ts +0 -12
- package/plugin/build/withMapLibre.js +0 -148
- package/src/types/StyleURL.ts +0 -3
- package/src/utils/styleMap.ts +0 -265
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.applyCocoaPodsModifications = applyCocoaPodsModifications;
|
|
7
|
-
exports.addInstallerBlock = addInstallerBlock;
|
|
8
|
-
exports.addMapLibreInstallerBlock = addMapLibreInstallerBlock;
|
|
9
|
-
exports.setExcludedArchitectures = setExcludedArchitectures;
|
|
10
|
-
const config_plugins_1 = require("@expo/config-plugins");
|
|
11
|
-
const generateCode_1 = require("@expo/config-plugins/build/utils/generateCode");
|
|
12
|
-
const node_fs_1 = require("node:fs");
|
|
13
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
14
|
-
let pkg = {
|
|
15
|
-
name: "@maplibre/maplibre-react-native",
|
|
16
|
-
};
|
|
17
|
-
try {
|
|
18
|
-
pkg = require("@maplibre/maplibre-react-native/package.json");
|
|
19
|
-
}
|
|
20
|
-
catch {
|
|
21
|
-
// empty catch block
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Dangerously adds the custom installer hooks to the Podfile.
|
|
25
|
-
* In the future this should be removed in favor of some custom hooks provided by Expo autolinking.
|
|
26
|
-
*
|
|
27
|
-
* https://github.com/maplibre/maplibre-react-native/blob/main/docs/guides/setup/iOS.md
|
|
28
|
-
* @param config
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
const withCocoaPodsInstallerBlocks = (c) => {
|
|
32
|
-
return (0, config_plugins_1.withDangerousMod)(c, [
|
|
33
|
-
"ios",
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
35
|
-
async (config) => {
|
|
36
|
-
const file = node_path_1.default.join(config.modRequest.platformProjectRoot, "Podfile");
|
|
37
|
-
const contents = await node_fs_1.promises.readFile(file, "utf8");
|
|
38
|
-
await node_fs_1.promises.writeFile(file, applyCocoaPodsModifications(contents), "utf-8");
|
|
39
|
-
return config;
|
|
40
|
-
},
|
|
41
|
-
]);
|
|
42
|
-
};
|
|
43
|
-
// Only the preinstaller block is required, the post installer block is
|
|
44
|
-
// used for spm (swift package manager) which Expo doesn't currently support.
|
|
45
|
-
function applyCocoaPodsModifications(contents) {
|
|
46
|
-
// Ensure installer blocks exist
|
|
47
|
-
// let src = addInstallerBlock(contents, 'pre');
|
|
48
|
-
let src = addInstallerBlock(contents, "post");
|
|
49
|
-
// src = addMapLibreInstallerBlock(src, 'pre');
|
|
50
|
-
src = addMapLibreInstallerBlock(src, "post");
|
|
51
|
-
return src;
|
|
52
|
-
}
|
|
53
|
-
function addInstallerBlock(src, blockName) {
|
|
54
|
-
const matchBlock = new RegExp(`${blockName}_install do \\|installer\\|`);
|
|
55
|
-
const tag = `${blockName}_installer`;
|
|
56
|
-
for (const line of src.split("\n")) {
|
|
57
|
-
const contents = line.trim();
|
|
58
|
-
// Ignore comments
|
|
59
|
-
if (!contents.startsWith("#")) {
|
|
60
|
-
// Prevent adding the block if it exists outside of comments.
|
|
61
|
-
if (contents.match(matchBlock)) {
|
|
62
|
-
// This helps to still allow revisions, since we enabled the block previously.
|
|
63
|
-
// Only continue if the generated block exists...
|
|
64
|
-
const modified = (0, generateCode_1.removeGeneratedContents)(src, tag);
|
|
65
|
-
if (!modified) {
|
|
66
|
-
return src;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return (0, generateCode_1.mergeContents)({
|
|
72
|
-
tag,
|
|
73
|
-
src,
|
|
74
|
-
newSrc: [` ${blockName}_install do |installer|`, " end"].join("\n"),
|
|
75
|
-
anchor: /use_react_native/,
|
|
76
|
-
// We can't go after the use_react_native block because it might have parameters, causing it to be multi-line (see react-native template).
|
|
77
|
-
offset: 0,
|
|
78
|
-
comment: "#",
|
|
79
|
-
}).contents;
|
|
80
|
-
}
|
|
81
|
-
function addMapLibreInstallerBlock(src, blockName) {
|
|
82
|
-
return (0, generateCode_1.mergeContents)({
|
|
83
|
-
tag: `@maplibre/maplibre-react-native-${blockName}_installer`,
|
|
84
|
-
src,
|
|
85
|
-
newSrc: ` $MLRN.${blockName}_install(installer)`,
|
|
86
|
-
anchor: new RegExp(`${blockName}_install do \\|installer\\|`),
|
|
87
|
-
offset: 1,
|
|
88
|
-
comment: "#",
|
|
89
|
-
}).contents;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Exclude building for arm64 on simulator devices in the pbxproj project.
|
|
93
|
-
* Without this, production builds targeting simulators will fail.
|
|
94
|
-
*/
|
|
95
|
-
function setExcludedArchitectures(project) {
|
|
96
|
-
const configurations = project.pbxXCBuildConfigurationSection();
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
for (const { name, buildSettings } of Object.values(configurations || {})) {
|
|
100
|
-
// Guessing that this is the best way to emulate Xcode.
|
|
101
|
-
// Using `project.addToBuildSettings` modifies too many targets.
|
|
102
|
-
if (name === "Release" &&
|
|
103
|
-
typeof buildSettings?.PRODUCT_NAME !== "undefined") {
|
|
104
|
-
buildSettings['"EXCLUDED_ARCHS[sdk=iphonesimulator*]"'] = '"arm64"';
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return project;
|
|
108
|
-
}
|
|
109
|
-
const withoutSignatures = (config) => {
|
|
110
|
-
const shellScript = `
|
|
111
|
-
echo "Remove signature files (Xcode workaround)";
|
|
112
|
-
rm -rf "$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature";
|
|
113
|
-
`;
|
|
114
|
-
return (0, config_plugins_1.withXcodeProject)(config, async (config) => {
|
|
115
|
-
const xcodeProject = config.modResults;
|
|
116
|
-
xcodeProject.addBuildPhase([], "PBXShellScriptBuildPhase", "Remove signature files (Xcode workaround)", null, {
|
|
117
|
-
shellPath: "/bin/sh",
|
|
118
|
-
shellScript,
|
|
119
|
-
});
|
|
120
|
-
return config;
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Set the Debug Information Format to DWARF with dSYM File during EAS Build for Managed App
|
|
125
|
-
* https://github.com/expo/eas-cli/issues/968
|
|
126
|
-
* // Set artifactPath in eas.json
|
|
127
|
-
* "ios": {
|
|
128
|
-
* "artifactPath": "ios/build/*"
|
|
129
|
-
* }
|
|
130
|
-
*/
|
|
131
|
-
const withDwarfDsym = (config) => {
|
|
132
|
-
return (0, config_plugins_1.withXcodeProject)(config, async (config) => {
|
|
133
|
-
const xcodeProject = config.modResults;
|
|
134
|
-
xcodeProject.debugInformationFormat = "dwarf-with-dsym";
|
|
135
|
-
return config;
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
const withExcludedSimulatorArchitectures = (c) => {
|
|
139
|
-
return (0, config_plugins_1.withXcodeProject)(c, (config) => {
|
|
140
|
-
config.modResults = setExcludedArchitectures(config.modResults);
|
|
141
|
-
return config;
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
const withMapLibre = (config) => {
|
|
145
|
-
config = withoutSignatures(withDwarfDsym(withExcludedSimulatorArchitectures(config)));
|
|
146
|
-
return withCocoaPodsInstallerBlocks(config);
|
|
147
|
-
};
|
|
148
|
-
exports.default = (0, config_plugins_1.createRunOncePlugin)(withMapLibre, pkg.name, pkg.version);
|
package/src/types/StyleURL.ts
DELETED
package/src/utils/styleMap.ts
DELETED
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// DO NOT MODIFY
|
|
3
|
-
// This file is auto-generated from scripts/templates/styleMap.ts.ejs
|
|
4
|
-
|
|
5
|
-
import { isAndroid } from "./index";
|
|
6
|
-
|
|
7
|
-
export const StyleTypes = {
|
|
8
|
-
Constant: "constant",
|
|
9
|
-
Color: "color",
|
|
10
|
-
Transition: "transition",
|
|
11
|
-
Translation: "translation",
|
|
12
|
-
Function: "function",
|
|
13
|
-
Image: "image",
|
|
14
|
-
Enum: "enum",
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export function getStyleType(styleProp: keyof typeof styleExtras): string {
|
|
18
|
-
if (!isAndroid() && styleExtras[styleProp]) {
|
|
19
|
-
return styleExtras[styleProp].iosType;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (styleMap[styleProp]) {
|
|
23
|
-
return styleMap[styleProp];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
throw new Error(`${styleProp} is not a valid MapLibre layer style`);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const styleMap = {
|
|
30
|
-
fillSortKey: StyleTypes.Constant,
|
|
31
|
-
fillAntialias: StyleTypes.Constant,
|
|
32
|
-
fillOpacity: StyleTypes.Constant,
|
|
33
|
-
fillOpacityTransition: StyleTypes.Transition,
|
|
34
|
-
fillColor: StyleTypes.Color,
|
|
35
|
-
fillColorTransition: StyleTypes.Transition,
|
|
36
|
-
fillOutlineColor: StyleTypes.Color,
|
|
37
|
-
fillOutlineColorTransition: StyleTypes.Transition,
|
|
38
|
-
fillTranslate: StyleTypes.Translation,
|
|
39
|
-
fillTranslateTransition: StyleTypes.Transition,
|
|
40
|
-
fillTranslateAnchor: StyleTypes.Enum,
|
|
41
|
-
fillPattern: StyleTypes.Image,
|
|
42
|
-
fillPatternTransition: StyleTypes.Transition,
|
|
43
|
-
|
|
44
|
-
lineCap: StyleTypes.Enum,
|
|
45
|
-
lineJoin: StyleTypes.Enum,
|
|
46
|
-
lineMiterLimit: StyleTypes.Constant,
|
|
47
|
-
lineRoundLimit: StyleTypes.Constant,
|
|
48
|
-
lineSortKey: StyleTypes.Constant,
|
|
49
|
-
lineOpacity: StyleTypes.Constant,
|
|
50
|
-
lineOpacityTransition: StyleTypes.Transition,
|
|
51
|
-
lineColor: StyleTypes.Color,
|
|
52
|
-
lineColorTransition: StyleTypes.Transition,
|
|
53
|
-
lineTranslate: StyleTypes.Translation,
|
|
54
|
-
lineTranslateTransition: StyleTypes.Transition,
|
|
55
|
-
lineTranslateAnchor: StyleTypes.Enum,
|
|
56
|
-
lineWidth: StyleTypes.Constant,
|
|
57
|
-
lineWidthTransition: StyleTypes.Transition,
|
|
58
|
-
lineGapWidth: StyleTypes.Constant,
|
|
59
|
-
lineGapWidthTransition: StyleTypes.Transition,
|
|
60
|
-
lineOffset: StyleTypes.Constant,
|
|
61
|
-
lineOffsetTransition: StyleTypes.Transition,
|
|
62
|
-
lineBlur: StyleTypes.Constant,
|
|
63
|
-
lineBlurTransition: StyleTypes.Transition,
|
|
64
|
-
lineDasharray: StyleTypes.Constant,
|
|
65
|
-
lineDasharrayTransition: StyleTypes.Transition,
|
|
66
|
-
linePattern: StyleTypes.Image,
|
|
67
|
-
linePatternTransition: StyleTypes.Transition,
|
|
68
|
-
lineGradient: StyleTypes.Color,
|
|
69
|
-
|
|
70
|
-
symbolPlacement: StyleTypes.Enum,
|
|
71
|
-
symbolSpacing: StyleTypes.Constant,
|
|
72
|
-
symbolAvoidEdges: StyleTypes.Constant,
|
|
73
|
-
symbolSortKey: StyleTypes.Constant,
|
|
74
|
-
symbolZOrder: StyleTypes.Enum,
|
|
75
|
-
iconAllowOverlap: StyleTypes.Constant,
|
|
76
|
-
iconIgnorePlacement: StyleTypes.Constant,
|
|
77
|
-
iconOptional: StyleTypes.Constant,
|
|
78
|
-
iconRotationAlignment: StyleTypes.Enum,
|
|
79
|
-
iconSize: StyleTypes.Constant,
|
|
80
|
-
iconTextFit: StyleTypes.Enum,
|
|
81
|
-
iconTextFitPadding: StyleTypes.Constant,
|
|
82
|
-
iconImage: StyleTypes.Image,
|
|
83
|
-
iconRotate: StyleTypes.Constant,
|
|
84
|
-
iconPadding: StyleTypes.Constant,
|
|
85
|
-
iconKeepUpright: StyleTypes.Constant,
|
|
86
|
-
iconOffset: StyleTypes.Constant,
|
|
87
|
-
iconAnchor: StyleTypes.Enum,
|
|
88
|
-
iconPitchAlignment: StyleTypes.Enum,
|
|
89
|
-
textPitchAlignment: StyleTypes.Enum,
|
|
90
|
-
textRotationAlignment: StyleTypes.Enum,
|
|
91
|
-
textField: StyleTypes.Constant,
|
|
92
|
-
textFont: StyleTypes.Constant,
|
|
93
|
-
textSize: StyleTypes.Constant,
|
|
94
|
-
textMaxWidth: StyleTypes.Constant,
|
|
95
|
-
textLineHeight: StyleTypes.Constant,
|
|
96
|
-
textLetterSpacing: StyleTypes.Constant,
|
|
97
|
-
textJustify: StyleTypes.Enum,
|
|
98
|
-
textRadialOffset: StyleTypes.Constant,
|
|
99
|
-
textVariableAnchor: StyleTypes.Constant,
|
|
100
|
-
textAnchor: StyleTypes.Enum,
|
|
101
|
-
textMaxAngle: StyleTypes.Constant,
|
|
102
|
-
textWritingMode: StyleTypes.Constant,
|
|
103
|
-
textRotate: StyleTypes.Constant,
|
|
104
|
-
textPadding: StyleTypes.Constant,
|
|
105
|
-
textKeepUpright: StyleTypes.Constant,
|
|
106
|
-
textTransform: StyleTypes.Enum,
|
|
107
|
-
textOffset: StyleTypes.Constant,
|
|
108
|
-
textAllowOverlap: StyleTypes.Constant,
|
|
109
|
-
textIgnorePlacement: StyleTypes.Constant,
|
|
110
|
-
textOptional: StyleTypes.Constant,
|
|
111
|
-
iconOpacity: StyleTypes.Constant,
|
|
112
|
-
iconOpacityTransition: StyleTypes.Transition,
|
|
113
|
-
iconColor: StyleTypes.Color,
|
|
114
|
-
iconColorTransition: StyleTypes.Transition,
|
|
115
|
-
iconHaloColor: StyleTypes.Color,
|
|
116
|
-
iconHaloColorTransition: StyleTypes.Transition,
|
|
117
|
-
iconHaloWidth: StyleTypes.Constant,
|
|
118
|
-
iconHaloWidthTransition: StyleTypes.Transition,
|
|
119
|
-
iconHaloBlur: StyleTypes.Constant,
|
|
120
|
-
iconHaloBlurTransition: StyleTypes.Transition,
|
|
121
|
-
iconTranslate: StyleTypes.Translation,
|
|
122
|
-
iconTranslateTransition: StyleTypes.Transition,
|
|
123
|
-
iconTranslateAnchor: StyleTypes.Enum,
|
|
124
|
-
textOpacity: StyleTypes.Constant,
|
|
125
|
-
textOpacityTransition: StyleTypes.Transition,
|
|
126
|
-
textColor: StyleTypes.Color,
|
|
127
|
-
textColorTransition: StyleTypes.Transition,
|
|
128
|
-
textHaloColor: StyleTypes.Color,
|
|
129
|
-
textHaloColorTransition: StyleTypes.Transition,
|
|
130
|
-
textHaloWidth: StyleTypes.Constant,
|
|
131
|
-
textHaloWidthTransition: StyleTypes.Transition,
|
|
132
|
-
textHaloBlur: StyleTypes.Constant,
|
|
133
|
-
textHaloBlurTransition: StyleTypes.Transition,
|
|
134
|
-
textTranslate: StyleTypes.Translation,
|
|
135
|
-
textTranslateTransition: StyleTypes.Transition,
|
|
136
|
-
textTranslateAnchor: StyleTypes.Enum,
|
|
137
|
-
|
|
138
|
-
circleSortKey: StyleTypes.Constant,
|
|
139
|
-
circleRadius: StyleTypes.Constant,
|
|
140
|
-
circleRadiusTransition: StyleTypes.Transition,
|
|
141
|
-
circleColor: StyleTypes.Color,
|
|
142
|
-
circleColorTransition: StyleTypes.Transition,
|
|
143
|
-
circleBlur: StyleTypes.Constant,
|
|
144
|
-
circleBlurTransition: StyleTypes.Transition,
|
|
145
|
-
circleOpacity: StyleTypes.Constant,
|
|
146
|
-
circleOpacityTransition: StyleTypes.Transition,
|
|
147
|
-
circleTranslate: StyleTypes.Translation,
|
|
148
|
-
circleTranslateTransition: StyleTypes.Transition,
|
|
149
|
-
circleTranslateAnchor: StyleTypes.Enum,
|
|
150
|
-
circlePitchScale: StyleTypes.Enum,
|
|
151
|
-
circlePitchAlignment: StyleTypes.Enum,
|
|
152
|
-
circleStrokeWidth: StyleTypes.Constant,
|
|
153
|
-
circleStrokeWidthTransition: StyleTypes.Transition,
|
|
154
|
-
circleStrokeColor: StyleTypes.Color,
|
|
155
|
-
circleStrokeColorTransition: StyleTypes.Transition,
|
|
156
|
-
circleStrokeOpacity: StyleTypes.Constant,
|
|
157
|
-
circleStrokeOpacityTransition: StyleTypes.Transition,
|
|
158
|
-
|
|
159
|
-
heatmapRadius: StyleTypes.Constant,
|
|
160
|
-
heatmapRadiusTransition: StyleTypes.Transition,
|
|
161
|
-
heatmapWeight: StyleTypes.Constant,
|
|
162
|
-
heatmapIntensity: StyleTypes.Constant,
|
|
163
|
-
heatmapIntensityTransition: StyleTypes.Transition,
|
|
164
|
-
heatmapColor: StyleTypes.Color,
|
|
165
|
-
heatmapOpacity: StyleTypes.Constant,
|
|
166
|
-
heatmapOpacityTransition: StyleTypes.Transition,
|
|
167
|
-
|
|
168
|
-
fillExtrusionOpacity: StyleTypes.Constant,
|
|
169
|
-
fillExtrusionOpacityTransition: StyleTypes.Transition,
|
|
170
|
-
fillExtrusionColor: StyleTypes.Color,
|
|
171
|
-
fillExtrusionColorTransition: StyleTypes.Transition,
|
|
172
|
-
fillExtrusionTranslate: StyleTypes.Translation,
|
|
173
|
-
fillExtrusionTranslateTransition: StyleTypes.Transition,
|
|
174
|
-
fillExtrusionTranslateAnchor: StyleTypes.Enum,
|
|
175
|
-
fillExtrusionPattern: StyleTypes.Image,
|
|
176
|
-
fillExtrusionPatternTransition: StyleTypes.Transition,
|
|
177
|
-
fillExtrusionHeight: StyleTypes.Constant,
|
|
178
|
-
fillExtrusionHeightTransition: StyleTypes.Transition,
|
|
179
|
-
fillExtrusionBase: StyleTypes.Constant,
|
|
180
|
-
fillExtrusionBaseTransition: StyleTypes.Transition,
|
|
181
|
-
fillExtrusionVerticalGradient: StyleTypes.Constant,
|
|
182
|
-
|
|
183
|
-
rasterOpacity: StyleTypes.Constant,
|
|
184
|
-
rasterOpacityTransition: StyleTypes.Transition,
|
|
185
|
-
rasterHueRotate: StyleTypes.Constant,
|
|
186
|
-
rasterHueRotateTransition: StyleTypes.Transition,
|
|
187
|
-
rasterBrightnessMin: StyleTypes.Constant,
|
|
188
|
-
rasterBrightnessMinTransition: StyleTypes.Transition,
|
|
189
|
-
rasterBrightnessMax: StyleTypes.Constant,
|
|
190
|
-
rasterBrightnessMaxTransition: StyleTypes.Transition,
|
|
191
|
-
rasterSaturation: StyleTypes.Constant,
|
|
192
|
-
rasterSaturationTransition: StyleTypes.Transition,
|
|
193
|
-
rasterContrast: StyleTypes.Constant,
|
|
194
|
-
rasterContrastTransition: StyleTypes.Transition,
|
|
195
|
-
rasterResampling: StyleTypes.Enum,
|
|
196
|
-
rasterFadeDuration: StyleTypes.Constant,
|
|
197
|
-
|
|
198
|
-
hillshadeIlluminationDirection: StyleTypes.Constant,
|
|
199
|
-
hillshadeIlluminationAnchor: StyleTypes.Enum,
|
|
200
|
-
hillshadeExaggeration: StyleTypes.Constant,
|
|
201
|
-
hillshadeExaggerationTransition: StyleTypes.Transition,
|
|
202
|
-
hillshadeShadowColor: StyleTypes.Color,
|
|
203
|
-
hillshadeShadowColorTransition: StyleTypes.Transition,
|
|
204
|
-
hillshadeHighlightColor: StyleTypes.Color,
|
|
205
|
-
hillshadeHighlightColorTransition: StyleTypes.Transition,
|
|
206
|
-
hillshadeAccentColor: StyleTypes.Color,
|
|
207
|
-
hillshadeAccentColorTransition: StyleTypes.Transition,
|
|
208
|
-
|
|
209
|
-
backgroundColor: StyleTypes.Color,
|
|
210
|
-
backgroundColorTransition: StyleTypes.Transition,
|
|
211
|
-
backgroundPattern: StyleTypes.Image,
|
|
212
|
-
backgroundPatternTransition: StyleTypes.Transition,
|
|
213
|
-
backgroundOpacity: StyleTypes.Constant,
|
|
214
|
-
backgroundOpacityTransition: StyleTypes.Transition,
|
|
215
|
-
|
|
216
|
-
anchor: StyleTypes.Enum,
|
|
217
|
-
position: StyleTypes.Constant,
|
|
218
|
-
positionTransition: StyleTypes.Transition,
|
|
219
|
-
color: StyleTypes.Color,
|
|
220
|
-
colorTransition: StyleTypes.Transition,
|
|
221
|
-
intensity: StyleTypes.Constant,
|
|
222
|
-
intensityTransition: StyleTypes.Transition,
|
|
223
|
-
|
|
224
|
-
visibility: StyleTypes.Constant,
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
export const styleExtras = {
|
|
228
|
-
// padding
|
|
229
|
-
iconTextFitPadding: {
|
|
230
|
-
iosType: "edgeinsets",
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
// offsets
|
|
234
|
-
iconOffset: {
|
|
235
|
-
iosType: "vector",
|
|
236
|
-
},
|
|
237
|
-
textOffset: {
|
|
238
|
-
iosType: "vector",
|
|
239
|
-
},
|
|
240
|
-
lineOffset: {
|
|
241
|
-
iosType: "vector",
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
// translates
|
|
245
|
-
fillTranslate: {
|
|
246
|
-
iosType: "vector",
|
|
247
|
-
},
|
|
248
|
-
lineTranslate: {
|
|
249
|
-
iosType: "vector",
|
|
250
|
-
},
|
|
251
|
-
iconTranslate: {
|
|
252
|
-
iosType: "vector",
|
|
253
|
-
},
|
|
254
|
-
textTranslate: {
|
|
255
|
-
iosType: "vector",
|
|
256
|
-
},
|
|
257
|
-
circleTranslate: {
|
|
258
|
-
iosType: "vector",
|
|
259
|
-
},
|
|
260
|
-
fillExtrusionTranslate: {
|
|
261
|
-
iosType: "vector",
|
|
262
|
-
},
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
export default styleMap;
|