Skip to content

Commit e33fb10

Browse files
authored
Merge pull request #15 from rogerhu/gradle
Upgrade to Gradle v4.2
2 parents e43b733 + 20548f2 commit e33fb10

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

app/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ android {
2020

2121
dependencies {
2222
compile 'com.android.support:appcompat-v7:26.0.1'
23-
compile 'com.google.android.gms:play-services-maps:11.0.1'
24-
compile 'com.google.android.gms:play-services-location:11.0.1'
25-
compile 'com.github.hotchemi:permissionsdispatcher:2.4.0'
26-
annotationProcessor 'com.github.hotchemi:permissionsdispatcher-processor:2.4.0'
23+
compile 'com.google.android.gms:play-services-maps:11.4.2'
24+
compile 'com.google.android.gms:play-services-location:11.4.2'
25+
compile 'com.github.hotchemi:permissionsdispatcher:3.0.1'
26+
annotationProcessor 'com.github.hotchemi:permissionsdispatcher-processor:3.0.1'
2727
}

app/src/main/java/com/example/mapdemo/MapDemoActivity.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ protected void loadMap(GoogleMap googleMap) {
8585
if (map != null) {
8686
// Map is ready
8787
Toast.makeText(this, "Map Fragment was loaded properly!", Toast.LENGTH_SHORT).show();
88-
MapDemoActivityPermissionsDispatcher.getMyLocationWithCheck(this);
89-
MapDemoActivityPermissionsDispatcher.startLocationUpdatesWithCheck(this);
88+
MapDemoActivityPermissionsDispatcher.getMyLocationWithPermissionCheck(this);
89+
MapDemoActivityPermissionsDispatcher.startLocationUpdatesWithPermissionCheck(this);
9090
} else {
9191
Toast.makeText(this, "Error - Map was null!!", Toast.LENGTH_SHORT).show();
9292
}
@@ -178,7 +178,7 @@ protected void onResume() {
178178
} else {
179179
Toast.makeText(this, "Current location was null, enable GPS on emulator!", Toast.LENGTH_SHORT).show();
180180
}
181-
MapDemoActivityPermissionsDispatcher.startLocationUpdatesWithCheck(this);
181+
MapDemoActivityPermissionsDispatcher.startLocationUpdatesWithPermissionCheck(this);
182182
}
183183

184184
@NeedsPermission({Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION})

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ buildscript {
1111
allprojects {
1212
repositories {
1313
jcenter()
14-
maven { url "https://maven.google.com" }
14+
google()
1515
}
1616
}

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2-all.zip

0 commit comments

Comments
 (0)