David PHAM-VAN

Switch libraries to AndroidX

  1 +# 2.0.0
  2 +* Breaking change: Switch libraries to AndroidX
  3 +
1 # 1.3.5 4 # 1.3.5
2 * Restore compatibility with Flutter 1.0.0 5 * Restore compatibility with Flutter 1.0.0
3 * Update code to Dart 2.1.0 6 * Update code to Dart 2.1.0
@@ -16,6 +16,6 @@ @@ -16,6 +16,6 @@
16 16
17 package net.nfet.flutter.printing; 17 package net.nfet.flutter.printing;
18 18
19 -import android.support.v4.content.FileProvider; 19 +import androidx.core.content.FileProvider;
20 20
21 public class PrintFileProvider extends FileProvider {} 21 public class PrintFileProvider extends FileProvider {}
@@ -32,7 +32,7 @@ import android.print.PrintDocumentAdapter; @@ -32,7 +32,7 @@ import android.print.PrintDocumentAdapter;
32 import android.print.PrintDocumentInfo; 32 import android.print.PrintDocumentInfo;
33 import android.print.PrintManager; 33 import android.print.PrintManager;
34 import android.print.pdf.PrintedPdfDocument; 34 import android.print.pdf.PrintedPdfDocument;
35 -import android.support.v4.content.FileProvider; 35 +import androidx.core.content.FileProvider;
36 36
37 import java.io.File; 37 import java.io.File;
38 import java.io.FileOutputStream; 38 import java.io.FileOutputStream;
@@ -38,7 +38,7 @@ android { @@ -38,7 +38,7 @@ android {
38 targetSdkVersion 28 38 targetSdkVersion 28
39 versionCode flutterVersionCode.toInteger() 39 versionCode flutterVersionCode.toInteger()
40 versionName flutterVersionName 40 versionName flutterVersionName
41 - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 41 + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
42 } 42 }
43 43
44 buildTypes { 44 buildTypes {
@@ -56,6 +56,6 @@ flutter { @@ -56,6 +56,6 @@ flutter {
56 56
57 dependencies { 57 dependencies {
58 testImplementation 'junit:junit:4.12' 58 testImplementation 'junit:junit:4.12'
59 - androidTestImplementation 'com.android.support.test:runner:1.0.2'  
60 - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 59 + androidTestImplementation 'androidx.test:runner:1.1.1'
  60 + androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
61 } 61 }
@@ -5,7 +5,7 @@ buildscript { @@ -5,7 +5,7 @@ buildscript {
5 } 5 }
6 6
7 dependencies { 7 dependencies {
8 - classpath 'com.android.tools.build:gradle:3.2.1' 8 + classpath 'com.android.tools.build:gradle:3.3.1'
9 } 9 }
10 } 10 }
11 11
1 org.gradle.jvmargs=-Xmx1536M 1 org.gradle.jvmargs=-Xmx1536M
  2 +android.useAndroidX=true
  3 +android.enableJetifier=true