File tree Expand file tree Collapse file tree 9 files changed +22
-19
lines changed
Expand file tree Collapse file tree 9 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Adheres to [Semantic Versioning](http://semver.org/).
99* geopackage-android-map version 3.2.0
1010* Feature Style support
1111* Hex Color support
12+ * Upgrade to AndroidX support libraries
1213* gradle plugin updated to 3.3.2
1314* gradle version 4.10.1
1415
Original file line number Diff line number Diff line change 1+ android.enableJetifier =true
2+ android.useAndroidX =true
Original file line number Diff line number Diff line change @@ -42,18 +42,18 @@ android {
4242
4343task androidAppVersion {
4444 doLast {
45- com.android.build.gradle.AppExtension appExt = project. extensions. android;
45+ com.android.build.gradle.AppExtension appExt = project. extensions. android
4646 println " versionCode: ${ appExt.defaultConfig.applicationId} @${ appExt.defaultConfig.versionCode} "
4747 println " versionName: ${ appExt.defaultConfig.applicationId} @${ appExt.defaultConfig.versionName} "
4848 }
4949}
5050
5151dependencies {
52- api ' com.android.support :appcompat-v7:28 .0.0 '
52+ api ' androidx.appcompat :appcompat:1 .0.2 '
5353 api ' mil.nga.geopackage.map:geopackage-android-map:3.2.0' // comment out to build locally
5454 // api project(':geopackage-map') // uncomment me to build locally
55- api ' com.android.support :multidex:1 .0.3 '
56- testImplementation ' com.android.support :multidex:1 .0.3 '
55+ api ' androidx.multidex :multidex:2 .0.1 '
56+ testImplementation ' androidx.multidex :multidex:2 .0.1 '
5757}
5858
5959configure extensions. android, {
Original file line number Diff line number Diff line change 1515 <application
1616 android : allowBackup =" false"
1717 android : fullBackupOnly =" false"
18- android : name =" android.support .multidex.MultiDexApplication"
18+ android : name =" androidx .multidex.MultiDexApplication"
1919 android : icon =" @drawable/ic_launcher"
2020 android : label =" @string/app_name"
2121 android : theme =" @style/AppTheme" >
5959 </activity >
6060
6161 <provider
62- android : name =" android.support.v4 .content.FileProvider"
62+ android : name =" androidx.core .content.FileProvider"
6363 android : authorities =" mil.nga.mapcache.fileprovider"
6464 android : exported =" false"
6565 android : grantUriPermissions =" true" >
Original file line number Diff line number Diff line change 2222import android .os .PowerManager ;
2323import android .provider .DocumentsContract .Document ;
2424import android .provider .Settings ;
25- import android . support . v4 .app .ActivityCompat ;
26- import android . support . v4 .content .ContextCompat ;
27- import android . support . v4 .content .FileProvider ;
28- import android . support . v7 .app .AlertDialog ;
25+ import androidx . core .app .ActivityCompat ;
26+ import androidx . core .content .ContextCompat ;
27+ import androidx . core .content .FileProvider ;
28+ import androidx . appcompat .app .AlertDialog ;
2929import android .text .InputFilter ;
3030import android .text .method .LinkMovementMethod ;
3131import android .view .LayoutInflater ;
Original file line number Diff line number Diff line change 1717import android .os .Bundle ;
1818import android .os .Vibrator ;
1919import android .preference .PreferenceManager ;
20- import android . support . v4 .app .ActivityCompat ;
21- import android . support . v4 .content .ContextCompat ;
22- import android . support . v7 .app .AlertDialog ;
20+ import androidx . core .app .ActivityCompat ;
21+ import androidx . core .content .ContextCompat ;
22+ import androidx . appcompat .app .AlertDialog ;
2323import android .text .InputType ;
2424import android .util .Log ;
2525import android .util .TypedValue ;
Original file line number Diff line number Diff line change 88import android .content .pm .PackageManager ;
99import android .net .Uri ;
1010import android .os .Bundle ;
11- import android . support . v4 .widget .DrawerLayout ;
11+ import androidx . drawerlayout .widget .DrawerLayout ;
1212import android .view .Menu ;
1313import android .view .MenuItem ;
1414
Original file line number Diff line number Diff line change 55import android .app .Fragment ;
66import android .content .res .Configuration ;
77import android .os .Bundle ;
8- import android . support . v4 .app .ActionBarDrawerToggle ;
9- import android . support . v4 .view .GravityCompat ;
10- import android . support . v4 .widget .DrawerLayout ;
8+ import androidx . legacy .app .ActionBarDrawerToggle ;
9+ import androidx . core .view .GravityCompat ;
10+ import androidx . drawerlayout .widget .DrawerLayout ;
1111import android .view .LayoutInflater ;
1212import android .view .Menu ;
1313import android .view .MenuInflater ;
Original file line number Diff line number Diff line change 11<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. -->
2- <android .support.v4 .widget.DrawerLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <androidx .drawerlayout .widget.DrawerLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools"
44 android : id =" @+id/drawer_layout"
55 android : layout_width =" match_parent"
4848 android : layout_gravity =" start"
4949 tools : layout =" @layout/fragment_navigation_drawer" />
5050
51- </android .support.v4 .widget.DrawerLayout>
51+ </androidx .drawerlayout .widget.DrawerLayout>
You can’t perform that action at this time.
0 commit comments