2 Commits 2fe64214a0 ... 0df5a7a8e5

Author SHA1 Message Date
  Wayne 0df5a7a8e5 deprecated 4 years ago
  cooperku_kdanmobile 39f79bf366 Migrate to AndroidX 5 years ago

+ 4 - 4
build.gradle

@@ -12,7 +12,7 @@ android {
         versionCode 1
         versionName "1.0"
 
-        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 
     }
 
@@ -28,10 +28,10 @@ android {
 dependencies {
     implementation fileTree(dir: 'libs', include: ['*.jar'])
 
-    implementation 'com.android.support:appcompat-v7:27.1.1'
+    implementation 'androidx.appcompat:appcompat:1.0.2'
     testImplementation 'junit:junit:4.12'
-    androidTestImplementation 'com.android.support.test:runner:1.0.2'
-    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+    androidTestImplementation 'androidx.test:runner:1.2.0'
+    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
 
     //retrofit 2
     implementation 'com.squareup.retrofit2:converter-gson:2.4.0'

+ 2 - 2
src/androidTest/java/com/example/kdan_data_center/ExampleInstrumentedTest.java

@@ -1,8 +1,8 @@
 package com.example.kdan_data_center;
 
 import android.content.Context;
-import android.support.test.InstrumentationRegistry;
-import android.support.test.runner.AndroidJUnit4;
+import androidx.test.InstrumentationRegistry;
+import androidx.test.runner.AndroidJUnit4;
 
 import org.junit.Test;
 import org.junit.runner.RunWith;

+ 1 - 0
src/main/java/com/example/kdan_data_center/KdanCloud.kt

@@ -6,6 +6,7 @@ import retrofit2.Retrofit
 import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
 import retrofit2.converter.gson.GsonConverterFactory
 
+@Deprecated("Use com.kdanmobile.cloud.retrofit.datacenter.v3.DataCenter")
 class KdanCloud {
     companion object {
           var ENV_DEV = false

+ 1 - 0
src/main/java/com/example/kdan_data_center/datacenter/DataCenter.kt

@@ -6,6 +6,7 @@ import com.example.kdan_data_center.datacenter.folder.FolderService
 import com.example.kdan_data_center.datacenter.share.ShareLinkService
 import com.example.kdan_data_center.datacenter.user.UserService
 
+@Deprecated("Use com.kdanmobile.cloud.retrofit.datacenter.v3.DataCenter")
 class DataCenter(private val kdanCloud: KdanCloud) {
     companion object {
         private const val HOST_DATA_CENTER_DEBUG = "https://preparing.kdanmobile.com:3020/"