react-native-maps 0.31.0-beta.1 → 0.31.0-beta.4
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 +24 -0
- package/{lib/android → android}/src/main/AndroidManifest.xml +0 -0
- package/{lib/android → android}/src/main/assets/ula.kml +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapCallout.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapCalloutManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapCircle.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapCircleManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapFeature.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapGradientPolyline.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapGradientPolylineManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapHeatmap.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapHeatmapManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapLiteManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapLocalTile.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapLocalTileManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapMarker.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapMarkerManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapModule.java +20 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapOverlay.java +1 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapOverlayManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapPolygon.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapPolygonManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapPolyline.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapPolylineManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapTileProvider.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapTileWorker.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapUrlTile.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapUrlTileManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapView.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapWMSTile.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapWMSTileManager.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/FileUtil.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/FusedLocationSource.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ImageReadable.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ImageReader.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ImageUtil.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/LatLngBoundsUtils.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/MapsPackage.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/RegionChangeEvent.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/SizeReportingShadowNode.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ViewAttacherGroup.java +0 -0
- package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ViewChangesTracker.java +0 -0
- package/index.d.ts +3 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRDummyView.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRDummyView.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGMSMarker.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGMSMarker.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGMSPolygon.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGMSPolygon.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGMSPolyline.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGMSPolyline.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMap.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMap.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCallout.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCallout.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCalloutManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCalloutManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCalloutSubview.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCalloutSubview.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCalloutSubviewManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCalloutSubviewManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCircle.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCircle.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCircleManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapCircleManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapHeatmap.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapHeatmap.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapHeatmapManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapHeatmapManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapMarker.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapMarker.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapMarkerManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapMarkerManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapOverlay.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapOverlay.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapOverlayManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapOverlayManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolygon.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolygon.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolygonManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolygonManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolyline.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolyline.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolylineManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapPolylineManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapURLTileManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapUrlTile.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapUrlTile.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapUrlTileManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapWMSTile.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapWMSTile.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapWMSTileManager.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/AIRGoogleMapWMSTileManager.m +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/RCTConvert+GMSMapViewType.h +0 -0
- package/{lib/ios → ios}/AirGoogleMaps/RCTConvert+GMSMapViewType.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMap.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMap.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCallout.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCallout.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCalloutManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCalloutManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCalloutSubview.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCalloutSubview.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCalloutSubviewManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCalloutSubviewManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCircle.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCircle.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCircleManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCircleManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCoordinate.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapCoordinate.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapLocalTile.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapLocalTile.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapLocalTileManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapLocalTileManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapLocalTileOverlay.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapLocalTileOverlay.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapMarker.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapMarker.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapMarkerManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapMarkerManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapOverlay.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapOverlay.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapOverlayManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapOverlayManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapOverlayRenderer.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapOverlayRenderer.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolygon.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolygon.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolygonManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolygonManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolyline.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolyline.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolylineManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolylineManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolylineRenderer.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapPolylineRenderer.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapSnapshot.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapUrlTile.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapUrlTile.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapUrlTileCachedOverlay.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapUrlTileCachedOverlay.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapUrlTileManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapUrlTileManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapWMSTile.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapWMSTile.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapWMSTileManager.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRMapWMSTileManager.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRWeakMapReference.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRWeakMapReference.m +0 -0
- package/{lib/ios → ios}/AirMaps/AIRWeakTimerReference.h +0 -0
- package/{lib/ios → ios}/AirMaps/AIRWeakTimerReference.m +0 -0
- package/{lib/ios → ios}/AirMaps/Callout/SMCalloutView.h +0 -0
- package/{lib/ios → ios}/AirMaps/Callout/SMCalloutView.m +0 -0
- package/{lib/ios → ios}/AirMaps/RCTConvert+AirMap.h +0 -0
- package/{lib/ios → ios}/AirMaps/RCTConvert+AirMap.m +0 -0
- package/{lib/ios → ios}/AirMaps.xcodeproj/project.pbxproj +0 -0
- package/{lib/ios → ios}/User.xcconfig +0 -0
- package/package.json +15 -8
- package/react-native-google-maps.podspec +1 -1
- package/react-native-maps.podspec +1 -1
- package/{lib/components → src}/AnimatedRegion.js +0 -0
- package/{lib/components → src}/Geojson.js +0 -0
- package/{lib/components → src}/MapCallout.js +0 -0
- package/{lib/components → src}/MapCalloutSubview.js +0 -0
- package/{lib/components → src}/MapCircle.js +0 -0
- package/{lib/components → src}/MapHeatmap.js +0 -0
- package/{lib/components → src}/MapLocalTile.js +0 -0
- package/{lib/components → src}/MapMarker.js +0 -0
- package/{lib/components → src}/MapOverlay.js +0 -0
- package/{lib/components → src}/MapPolygon.js +0 -0
- package/{lib/components → src}/MapPolyline.js +0 -0
- package/{lib/components → src}/MapUrlTile.js +0 -0
- package/{lib/components → src}/MapView.js +7 -0
- package/{lib/components → src}/MapView.web.js +0 -0
- package/{lib/components → src}/MapWMSTile.js +0 -0
- package/{lib/components → src}/ProviderConstants.js +0 -0
- package/{lib/components → src}/decorateMapComponent.js +0 -0
- package/src/index.js +31 -0
- package/index.js +0 -30
- package/lib/android/build.gradle +0 -33
- package/lib/android/gradle-maven-push.gradle +0 -114
- package/react-native.config.js +0 -9
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
apply plugin: 'com.android.library'
|
|
2
|
+
|
|
3
|
+
def safeExtGet(prop, fallback) {
|
|
4
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
android {
|
|
8
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 30)
|
|
9
|
+
|
|
10
|
+
defaultConfig {
|
|
11
|
+
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
12
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 30)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
dependencies {
|
|
17
|
+
def work_version = safeExtGet('targetSdkVersion', 27) < 31 ? "2.5.0" : "2.7.1"
|
|
18
|
+
implementation 'com.facebook.react:react-native:+'
|
|
19
|
+
implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '18.0.1')}"
|
|
20
|
+
implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '18.0.2')}"
|
|
21
|
+
implementation "com.google.android.gms:play-services-location:19.0.1"
|
|
22
|
+
implementation 'com.google.maps.android:android-maps-utils:0.5'
|
|
23
|
+
implementation "androidx.work:work-runtime:$work_version"
|
|
24
|
+
}
|
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapCallout.java
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapCircle.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapCircleManager.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapFeature.java
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapHeatmap.java
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapLiteManager.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapLocalTile.java
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapManager.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapMarker.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapMarkerManager.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapModule.java
RENAMED
|
@@ -8,6 +8,7 @@ import android.location.Geocoder;
|
|
|
8
8
|
import android.net.Uri;
|
|
9
9
|
import android.util.Base64;
|
|
10
10
|
import android.util.DisplayMetrics;
|
|
11
|
+
import android.util.Log;
|
|
11
12
|
|
|
12
13
|
import com.facebook.react.bridge.Promise;
|
|
13
14
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
@@ -21,6 +22,7 @@ import com.facebook.react.uimanager.NativeViewHierarchyManager;
|
|
|
21
22
|
import com.facebook.react.uimanager.UIBlock;
|
|
22
23
|
import com.facebook.react.uimanager.UIManagerModule;
|
|
23
24
|
import com.google.android.gms.maps.GoogleMap;
|
|
25
|
+
import com.google.android.gms.maps.MapsInitializer;
|
|
24
26
|
import com.google.android.gms.maps.model.CameraPosition;
|
|
25
27
|
import com.google.android.gms.maps.model.LatLng;
|
|
26
28
|
|
|
@@ -352,4 +354,22 @@ public class AirMapModule extends ReactContextBaseJavaModule {
|
|
|
352
354
|
}
|
|
353
355
|
});
|
|
354
356
|
}
|
|
357
|
+
|
|
358
|
+
@ReactMethod
|
|
359
|
+
public void enableLatestRenderer(final Promise promise) {
|
|
360
|
+
final ReactApplicationContext context = getReactApplicationContext();
|
|
361
|
+
|
|
362
|
+
UIManagerModule uiManager = context.getNativeModule(UIManagerModule.class);
|
|
363
|
+
uiManager.addUIBlock(new UIBlock()
|
|
364
|
+
{
|
|
365
|
+
@Override
|
|
366
|
+
public void execute(NativeViewHierarchyManager nvhm)
|
|
367
|
+
{
|
|
368
|
+
MapsInitializer.initialize(context, MapsInitializer.Renderer.LATEST, (MapsInitializer.Renderer renderer) -> {
|
|
369
|
+
Log.d("AirMapRenderer", renderer.toString());
|
|
370
|
+
promise.resolve(renderer.toString());
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
355
375
|
}
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapPolygon.java
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapPolyline.java
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapTileProvider.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapTileWorker.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapUrlTile.java
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/AirMapWMSTile.java
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/FusedLocationSource.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ImageReadable.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ImageReader.java
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/LatLngBoundsUtils.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/MapsPackage.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/RegionChangeEvent.java
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ViewAttacherGroup.java
RENAMED
|
File without changes
|
package/{lib/android → android}/src/main/java/com/airbnb/android/react/maps/ViewChangesTracker.java
RENAMED
|
File without changes
|
package/index.d.ts
CHANGED
|
@@ -562,6 +562,7 @@ declare module 'react-native-maps' {
|
|
|
562
562
|
bearing?: number;
|
|
563
563
|
tappable?: boolean;
|
|
564
564
|
onPress?: (event: MapEvent<{ action: 'overlay-press' }>) => void;
|
|
565
|
+
opacity?: number;
|
|
565
566
|
}
|
|
566
567
|
|
|
567
568
|
export class Overlay extends React.Component<MapOverlayProps, any> {}
|
|
@@ -629,6 +630,8 @@ declare module 'react-native-maps' {
|
|
|
629
630
|
MUTEDSTANDARD: MapTypes;
|
|
630
631
|
};
|
|
631
632
|
|
|
633
|
+
export const enableLatestRenderer: () => Promise<'LATEST' | 'LEGACY'> | void;
|
|
634
|
+
|
|
632
635
|
export const PROVIDER_DEFAULT: null;
|
|
633
636
|
export const PROVIDER_GOOGLE: 'google';
|
|
634
637
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-maps",
|
|
3
3
|
"description": "React Native Mapview component for iOS + Android",
|
|
4
|
-
"main": "index.js",
|
|
4
|
+
"main": "src/index.js",
|
|
5
|
+
"types": "index.d.ts",
|
|
5
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
6
|
-
"version": "0.31.0-beta.
|
|
7
|
+
"version": "0.31.0-beta.4",
|
|
7
8
|
"license": "MIT",
|
|
8
9
|
"scripts": {
|
|
9
|
-
"lint": "eslint .",
|
|
10
|
+
"lint": "eslint . --max-warnings 0",
|
|
10
11
|
"test": "jest",
|
|
11
12
|
"prepare": "husky install",
|
|
12
13
|
"release": "semantic-release"
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
15
16
|
"index.d.ts",
|
|
16
|
-
"
|
|
17
|
+
"android",
|
|
18
|
+
"ios",
|
|
19
|
+
"src",
|
|
17
20
|
"react-native-google-maps.podspec",
|
|
18
21
|
"react-native-maps.podspec",
|
|
19
|
-
"
|
|
20
|
-
"!
|
|
21
|
-
"!lib/ios/build",
|
|
22
|
+
"!android/build",
|
|
23
|
+
"!ios/build",
|
|
22
24
|
"!**/__tests__",
|
|
23
25
|
"!**/__fixtures__",
|
|
24
26
|
"!**/__mocks__"
|
|
@@ -37,10 +39,15 @@
|
|
|
37
39
|
"mapkit"
|
|
38
40
|
],
|
|
39
41
|
"peerDependencies": {
|
|
40
|
-
"react": ">= 16.0
|
|
42
|
+
"react": ">= 16.0",
|
|
41
43
|
"react-native": ">= 0.51",
|
|
42
44
|
"react-native-web": ">= 0.11"
|
|
43
45
|
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"react-native-web": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
44
51
|
"devDependencies": {
|
|
45
52
|
"@commitlint/cli": "16.2.3",
|
|
46
53
|
"@commitlint/config-conventional": "16.2.1",
|
|
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.platform = :ios, "12.0"
|
|
14
14
|
|
|
15
15
|
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
16
|
-
s.source_files = "
|
|
16
|
+
s.source_files = "ios/AirGoogleMaps/**/*.{h,m}"
|
|
17
17
|
s.compiler_flags = '-DHAVE_GOOGLE_MAPS=1', '-DHAVE_GOOGLE_MAPS_UTILS=1', '-fno-modules'
|
|
18
18
|
|
|
19
19
|
s.dependency 'React-Core'
|
|
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.platform = :ios, "12.0"
|
|
14
14
|
|
|
15
15
|
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
16
|
-
s.source_files = "
|
|
16
|
+
s.source_files = "ios/AirMaps/**/*.{h,m}"
|
|
17
17
|
|
|
18
18
|
s.dependency 'React-Core'
|
|
19
19
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1119,6 +1119,13 @@ if (!NativeModules.UIManager.getViewManagerConfig) {
|
|
|
1119
1119
|
|
|
1120
1120
|
export const Animated = RNAnimated.createAnimatedComponent(MapView);
|
|
1121
1121
|
|
|
1122
|
+
export const enableLatestRenderer = () => {
|
|
1123
|
+
if (Platform.OS !== 'android') {
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
return NativeModules.AirMapModule.enableLatestRenderer();
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1122
1129
|
export const ProviderPropType = PropTypes.oneOf(
|
|
1123
1130
|
Object.values(ProviderConstants)
|
|
1124
1131
|
);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import MapView, {
|
|
2
|
+
Animated,
|
|
3
|
+
MAP_TYPES,
|
|
4
|
+
ProviderPropType,
|
|
5
|
+
enableLatestRenderer,
|
|
6
|
+
} from './MapView';
|
|
7
|
+
import Marker from './MapMarker';
|
|
8
|
+
import Overlay from './MapOverlay';
|
|
9
|
+
|
|
10
|
+
export { default as Polyline } from './MapPolyline';
|
|
11
|
+
export { default as Heatmap } from './MapHeatmap';
|
|
12
|
+
export { default as Polygon } from './MapPolygon';
|
|
13
|
+
export { default as Circle } from './MapCircle';
|
|
14
|
+
export { default as UrlTile } from './MapUrlTile';
|
|
15
|
+
export { default as WMSTile } from './MapWMSTile';
|
|
16
|
+
export { default as LocalTile } from './MapLocalTile';
|
|
17
|
+
export { default as Callout } from './MapCallout';
|
|
18
|
+
export { default as CalloutSubview } from './MapCalloutSubview';
|
|
19
|
+
export { default as AnimatedRegion } from './AnimatedRegion';
|
|
20
|
+
export { default as Geojson } from './Geojson';
|
|
21
|
+
|
|
22
|
+
export { Marker, Overlay };
|
|
23
|
+
export { Animated, MAP_TYPES, ProviderPropType, enableLatestRenderer };
|
|
24
|
+
|
|
25
|
+
export const PROVIDER_GOOGLE = MapView.PROVIDER_GOOGLE;
|
|
26
|
+
export const PROVIDER_DEFAULT = MapView.PROVIDER_DEFAULT;
|
|
27
|
+
|
|
28
|
+
export const MarkerAnimated = Marker.Animated;
|
|
29
|
+
export const OverlayAnimated = Overlay.Animated;
|
|
30
|
+
|
|
31
|
+
export default MapView;
|
package/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import MapView, {
|
|
2
|
-
Animated,
|
|
3
|
-
MAP_TYPES,
|
|
4
|
-
ProviderPropType,
|
|
5
|
-
} from './lib/components/MapView';
|
|
6
|
-
import Marker from './lib/components/MapMarker.js';
|
|
7
|
-
import Overlay from './lib/components/MapOverlay.js';
|
|
8
|
-
|
|
9
|
-
export { default as Polyline } from './lib/components/MapPolyline.js';
|
|
10
|
-
export { default as Heatmap } from './lib/components/MapHeatmap.js';
|
|
11
|
-
export { default as Polygon } from './lib/components/MapPolygon.js';
|
|
12
|
-
export { default as Circle } from './lib/components/MapCircle.js';
|
|
13
|
-
export { default as UrlTile } from './lib/components/MapUrlTile.js';
|
|
14
|
-
export { default as WMSTile } from './lib/components/MapWMSTile.js';
|
|
15
|
-
export { default as LocalTile } from './lib/components/MapLocalTile.js';
|
|
16
|
-
export { default as Callout } from './lib/components/MapCallout.js';
|
|
17
|
-
export { default as CalloutSubview } from './lib/components/MapCalloutSubview.js';
|
|
18
|
-
export { default as AnimatedRegion } from './lib/components/AnimatedRegion.js';
|
|
19
|
-
export { default as Geojson } from './lib/components/Geojson.js';
|
|
20
|
-
|
|
21
|
-
export { Marker, Overlay };
|
|
22
|
-
export { Animated, MAP_TYPES, ProviderPropType };
|
|
23
|
-
|
|
24
|
-
export const PROVIDER_GOOGLE = MapView.PROVIDER_GOOGLE;
|
|
25
|
-
export const PROVIDER_DEFAULT = MapView.PROVIDER_DEFAULT;
|
|
26
|
-
|
|
27
|
-
export const MarkerAnimated = Marker.Animated;
|
|
28
|
-
export const OverlayAnimated = Overlay.Animated;
|
|
29
|
-
|
|
30
|
-
export default MapView;
|
package/lib/android/build.gradle
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
apply plugin: 'com.android.library'
|
|
2
|
-
if (project.hasProperty('POM_ARTIFACT_ID')) {
|
|
3
|
-
apply from: 'gradle-maven-push.gradle'
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
def safeExtGet(prop, fallback) {
|
|
7
|
-
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
android {
|
|
11
|
-
compileSdkVersion safeExtGet('compileSdkVersion', 28)
|
|
12
|
-
|
|
13
|
-
defaultConfig {
|
|
14
|
-
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
15
|
-
targetSdkVersion safeExtGet('targetSdkVersion', 27)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
dependencies {
|
|
20
|
-
def work_version = safeExtGet('targetSdkVersion', 27) < 31 ? "2.5.0" : "2.7.1"
|
|
21
|
-
def supportLibVersion = safeExtGet('supportLibVersion', '28.0.0')
|
|
22
|
-
def supportLibMajorVersion = supportLibVersion.split('\\.')[0] as int
|
|
23
|
-
def appCompatLibName = (supportLibMajorVersion < 20) ? "androidx.appcompat:appcompat" : "com.android.support:appcompat-v7"
|
|
24
|
-
implementation "$appCompatLibName:$supportLibVersion"
|
|
25
|
-
implementation('com.facebook.react:react-native:+') {
|
|
26
|
-
exclude group: 'com.android.support'
|
|
27
|
-
}
|
|
28
|
-
implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '17.0.0')}"
|
|
29
|
-
implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '17.0.0')}"
|
|
30
|
-
implementation "com.google.android.gms:play-services-location:17.0.0"
|
|
31
|
-
implementation 'com.google.maps.android:android-maps-utils:0.5'
|
|
32
|
-
implementation "androidx.work:work-runtime:$work_version"
|
|
33
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2013 Chris Banes
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
apply plugin: 'maven'
|
|
18
|
-
apply plugin: 'signing'
|
|
19
|
-
|
|
20
|
-
def isReleaseBuild() {
|
|
21
|
-
return VERSION_NAME.contains("SNAPSHOT") == false
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
def getReleaseRepositoryUrl() {
|
|
25
|
-
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
|
|
26
|
-
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def getSnapshotRepositoryUrl() {
|
|
30
|
-
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
|
|
31
|
-
: "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
def getRepositoryUsername() {
|
|
35
|
-
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
def getRepositoryPassword() {
|
|
39
|
-
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
afterEvaluate { project ->
|
|
43
|
-
uploadArchives {
|
|
44
|
-
repositories {
|
|
45
|
-
mavenDeployer {
|
|
46
|
-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
|
47
|
-
|
|
48
|
-
pom.groupId = GROUP
|
|
49
|
-
pom.artifactId = POM_ARTIFACT_ID
|
|
50
|
-
pom.version = VERSION_NAME
|
|
51
|
-
|
|
52
|
-
repository(url: getReleaseRepositoryUrl()) {
|
|
53
|
-
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
|
|
54
|
-
}
|
|
55
|
-
snapshotRepository(url: getSnapshotRepositoryUrl()) {
|
|
56
|
-
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
pom.project {
|
|
60
|
-
name POM_NAME
|
|
61
|
-
packaging POM_PACKAGING
|
|
62
|
-
description POM_DESCRIPTION
|
|
63
|
-
url POM_URL
|
|
64
|
-
|
|
65
|
-
scm {
|
|
66
|
-
url POM_SCM_URL
|
|
67
|
-
connection POM_SCM_CONNECTION
|
|
68
|
-
developerConnection POM_SCM_DEV_CONNECTION
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
licenses {
|
|
72
|
-
license {
|
|
73
|
-
name POM_LICENSE_NAME
|
|
74
|
-
url POM_LICENSE_URL
|
|
75
|
-
distribution POM_LICENSE_DIST
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
developers {
|
|
80
|
-
developer {
|
|
81
|
-
id POM_DEVELOPER_ID
|
|
82
|
-
name POM_DEVELOPER_NAME
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
signing {
|
|
91
|
-
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
|
|
92
|
-
sign configurations.archives
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
task androidJavadocs(type: Javadoc) {
|
|
96
|
-
source = android.sourceSets.main.java.srcDirs
|
|
97
|
-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
|
|
101
|
-
classifier = 'javadoc'
|
|
102
|
-
from androidJavadocs.destinationDir
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
task androidSourcesJar(type: Jar) {
|
|
106
|
-
classifier = 'sources'
|
|
107
|
-
from android.sourceSets.main.java.sourceFiles
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
artifacts {
|
|
111
|
-
archives androidSourcesJar
|
|
112
|
-
archives androidJavadocsJar
|
|
113
|
-
}
|
|
114
|
-
}
|