Skip to content

Commit

Permalink
rn 0.60.5 support (react-native-maps#3020)
Browse files Browse the repository at this point in the history
* rn 0.60.5 support

`react-native 0.60.5 - package android.support.v4.content does not exist`

* Update build.gradle

* Update build.gradle
  • Loading branch information
jgtoriginal authored and rborn committed Oct 3, 2019
1 parent e8fb0c9 commit 801614e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ android {
}

dependencies {
def supportLibMajorVersion = supportLibVersion.split('\\.')[0] as int
def appCompatLibName = (supportLibMajorVersion < 20) ? "androidx.appcompat:appcompat" : "com.android.support:appcompat-v7"
implementation "$appCompatLibName:$supportLibVersion"
implementation('com.facebook.react:react-native:+') {
exclude group: 'com.android.support'
}
implementation "com.android.support:appcompat-v7:${safeExtGet('supportLibVersion', '28.0.0')}"
implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '16.1.0')}"
implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '16.1.0')}"
implementation 'com.google.maps.android:android-maps-utils:0.5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.os.Build;
import android.support.v4.view.GestureDetectorCompat;
import android.support.v4.view.MotionEventCompat;
import androidx.core.view.GestureDetectorCompat;
import androidx.core.view.MotionEventCompat;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
Expand Down Expand Up @@ -70,7 +70,7 @@
import java.util.Map;
import java.util.concurrent.ExecutionException;

import static android.support.v4.content.PermissionChecker.checkSelfPermission;
import static androidx.core.content.PermissionChecker.checkSelfPermission;

public class AirMapView extends MapView implements GoogleMap.InfoWindowAdapter,
GoogleMap.OnMarkerDragListener, OnMapReadyCallback, GoogleMap.OnPoiClickListener, GoogleMap.OnIndoorStateChangeListener {
Expand Down

0 comments on commit 801614e

Please sign in to comment.