File tree Expand file tree Collapse file tree
androidTest/java/hendrawd/storageutil
main/java/hendrawd/storageutil Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22
33android {
4- compileSdkVersion 27
4+ compileSdkVersion 29
55 defaultConfig {
66 applicationId " hendrawd.storageutil"
77 minSdkVersion 15
8- targetSdkVersion 27
8+ targetSdkVersion 29
99 versionCode 1
1010 versionName " 1.0"
11- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
11+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
1212 }
1313 buildTypes {
1414 release {
@@ -21,9 +21,8 @@ android {
2121dependencies {
2222 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
2323 implementation project(path : ' :library' )
24- implementation ' com.android.support:appcompat-v7:27.1.1'
25- implementation ' com.android.support.constraint:constraint-layout:1.1.0'
24+ implementation ' androidx.appcompat:appcompat:1.1.0'
2625 testImplementation ' junit:junit:4.12'
27- androidTestImplementation ' com.android.support. test:runner:1.0.2 '
28- androidTestImplementation ' com.android.support. test.espresso:espresso-core:3.0.2 '
26+ androidTestImplementation ' androidx. test:runner:1.2.0 '
27+ androidTestImplementation ' androidx. test.espresso:espresso-core:3.2.0 '
2928}
Original file line number Diff line number Diff line change 11package hendrawd .storageutil ;
22
33import android .content .Context ;
4- import android . support . test .InstrumentationRegistry ;
5- import android . support .test .runner .AndroidJUnit4 ;
4+ import androidx . test . platform . app .InstrumentationRegistry ;
5+ import androidx .test .runner .AndroidJUnit4 ;
66
77import org .junit .Test ;
88import org .junit .runner .RunWith ;
@@ -19,7 +19,7 @@ public class ExampleInstrumentedTest {
1919 @ Test
2020 public void useAppContext () {
2121 // Context of the app under test.
22- Context appContext = InstrumentationRegistry .getTargetContext ();
22+ Context appContext = InstrumentationRegistry .getInstrumentation (). getTargetContext ();
2323
2424 assertEquals ("hendrawd.storageutil" , appContext .getPackageName ());
2525 }
Original file line number Diff line number Diff line change 11package hendrawd .storageutil ;
22
33import android .os .Bundle ;
4- import android . support . v7 .app .AppCompatActivity ;
4+ import androidx . appcompat .app .AppCompatActivity ;
55import android .text .Html ;
66import android .text .Spanned ;
77import android .util .TypedValue ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ buildscript {
77 jcenter()
88 }
99 dependencies {
10- classpath ' com.android.tools.build:gradle:3.1.2 '
10+ classpath ' com.android.tools.build:gradle:3.5.0 '
1111 classpath ' com.github.dcendents:android-maven-gradle-plugin:2.0'
1212
1313 // NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change 66# http://www.gradle.org/docs/current/userguide/build_environment.html
77# Specifies the JVM arguments used for the daemon process.
88# The setting is particularly useful for tweaking memory settings.
9+ android.enableJetifier =true
10+ android.useAndroidX =true
911org.gradle.jvmargs =-Xmx1536m
1012# When configured, Gradle will run in incubating parallel mode.
1113# This option should only be used with decoupled projects. More details, visit
Original file line number Diff line number Diff line change 1- # Tue May 15 13:46:50 WIB 2018
1+ # Thu Oct 24 02:50:02 WIB 2019
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-4.4 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.4.1 -all.zip
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ apply plugin: 'com.github.dcendents.android-maven'
33group= ' com.github.hendrawd'
44
55android {
6- compileSdkVersion 27
6+ compileSdkVersion 29
77
88 defaultConfig {
99 minSdkVersion 15
10- targetSdkVersion 27
10+ targetSdkVersion 29
1111 versionCode 1
1212 versionName " 1.0"
1313
14- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
14+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
1515 }
1616
1717 buildTypes {
You can’t perform that action at this time.
0 commit comments