File tree 5 files changed +15
-13
lines changed
src/main/java/com/example/mapdemo
5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,15 @@ android {
18
18
}
19
19
20
20
ext {
21
- permissionDispatcherVersion = " 3.2 .0"
22
- supportLibVersion = " 28 .0.0"
23
- googlePlayVersion = " 15 .0.0"
21
+ permissionDispatcherVersion = " 4.7 .0"
22
+ supportLibVersion = " 1 .0.0"
23
+ googlePlayVersion = " 17 .0.0"
24
24
}
25
25
26
26
dependencies {
27
- implementation " com.android.support:appcompat-v7:$supportLibVersion "
28
- implementation " com.android.support:support-v13:$supportLibVersion " // to remove lint error, found in .idea/libraries
27
+ implementation " androidx.appcompat:appcompat:1.1.0"
29
28
implementation " com.google.android.gms:play-services-maps:$googlePlayVersion "
30
29
implementation " com.google.android.gms:play-services-location:$googlePlayVersion "
31
- implementation " com.github.hotchemi :permissionsdispatcher:$permissionDispatcherVersion "
32
- annotationProcessor " com.github.hotchemi :permissionsdispatcher-processor:$permissionDispatcherVersion "
30
+ implementation " org.permissionsdispatcher :permissionsdispatcher:$permissionDispatcherVersion "
31
+ annotationProcessor " org.permissionsdispatcher :permissionsdispatcher-processor:$permissionDispatcherVersion "
33
32
}
Original file line number Diff line number Diff line change 5
5
import android .location .Location ;
6
6
import android .os .Bundle ;
7
7
import android .os .Looper ;
8
- import android .support .annotation .NonNull ;
9
- import android .support .v7 .app .AppCompatActivity ;
10
8
import android .text .TextUtils ;
11
9
import android .util .Log ;
12
10
import android .widget .Toast ;
13
11
12
+ import androidx .annotation .NonNull ;
13
+ import androidx .appcompat .app .AppCompatActivity ;
14
+ import androidx .fragment .app .DialogFragment ;
15
+
14
16
import com .google .android .gms .common .ConnectionResult ;
15
17
import com .google .android .gms .common .GooglePlayServicesUtil ;
16
18
import com .google .android .gms .location .FusedLocationProviderClient ;
@@ -225,7 +227,7 @@ public void onSaveInstanceState(Bundle savedInstanceState) {
225
227
}
226
228
227
229
// Define a DialogFragment that displays the error dialog
228
- public static class ErrorDialogFragment extends android . support . v4 . app . DialogFragment {
230
+ public static class ErrorDialogFragment extends DialogFragment {
229
231
230
232
// Global field to contain the error dialog
231
233
private Dialog mDialog ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:3.2.0 '
8
+ classpath ' com.android.tools.build:gradle:3.6.2 '
9
9
}
10
10
}
11
11
Original file line number Diff line number Diff line change
1
+ android.useAndroidX =true
Original file line number Diff line number Diff line change 1
- # Tue Dec 04 23:49:07 PST 2018
1
+ # Sat Apr 04 13:17:28 PDT 2020
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.6 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.6.4 -all.zip
You can’t perform that action at this time.
0 commit comments