Commit 05ea1f67 authored by Mygod's avatar Mygod

Update dependencies

parent b001432d
...@@ -4,14 +4,13 @@ apply plugin: 'com.github.ben-manes.versions' ...@@ -4,14 +4,13 @@ apply plugin: 'com.github.ben-manes.versions'
buildscript { buildscript {
ext { ext {
androidxVersion = '1.0.1' kotlinVersion = '1.3.11'
kotlinVersion = '1.3.10'
minSdkVersion = 21 minSdkVersion = 21
sdkVersion = 28 sdkVersion = 28
compileSdkVersion = 28 compileSdkVersion = 28
buildToolsVersion = '28.0.3' buildToolsVersion = '28.0.3'
roomVersion = '2.0.0' roomVersion = '2.0.0'
workVersion = '1.0.0-alpha11' workVersion = '1.0.0-alpha12'
preferencexVersion = '1.0.0' preferencexVersion = '1.0.0'
junitVersion = '4.12' junitVersion = '4.12'
androidTestVersion = '1.1.0' androidTestVersion = '1.1.0'
...@@ -30,7 +29,7 @@ buildscript { ...@@ -30,7 +29,7 @@ buildscript {
classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0' classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath 'com.google.gms:google-services:4.2.0' classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.26.1' classpath 'io.fabric.tools:gradle:1.27.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
} }
} }
......
...@@ -73,7 +73,7 @@ dependencies { ...@@ -73,7 +73,7 @@ dependencies {
api "android.arch.work:work-runtime-ktx:$workVersion" api "android.arch.work:work-runtime-ktx:$workVersion"
api "androidx.preference:preference:1.0.0" api "androidx.preference:preference:1.0.0"
api "androidx.room:room-runtime:$roomVersion" api "androidx.room:room-runtime:$roomVersion"
api 'com.crashlytics.sdk.android:crashlytics:2.9.6' api 'com.crashlytics.sdk.android:crashlytics:2.9.7'
api 'com.google.firebase:firebase-config:16.0.0' api 'com.google.firebase:firebase-config:16.0.0'
api 'com.google.firebase:firebase-core:16.0.0' api 'com.google.firebase:firebase-core:16.0.0'
api 'com.squareup.okhttp3:okhttp:3.12.0' api 'com.squareup.okhttp3:okhttp:3.12.0'
......
...@@ -46,12 +46,12 @@ class AclSyncer(context: Context, workerParams: WorkerParameters) : Worker(conte ...@@ -46,12 +46,12 @@ class AclSyncer(context: Context, workerParams: WorkerParameters) : Worker(conte
val acl = URL("https://shadowsocks.org/acl/android/v1/$route.acl").openStream().bufferedReader() val acl = URL("https://shadowsocks.org/acl/android/v1/$route.acl").openStream().bufferedReader()
.use { it.readText() } .use { it.readText() }
Acl.getFile(route).printWriter().use { it.write(acl) } Acl.getFile(route).printWriter().use { it.write(acl) }
Result.SUCCESS Result.success()
} catch (e: IOException) { } catch (e: IOException) {
e.printStackTrace() e.printStackTrace()
Result.RETRY Result.retry()
} catch (e: Exception) { // unknown failures, probably shouldn't retry } catch (e: Exception) { // unknown failures, probably shouldn't retry
e.printStackTrace() e.printStackTrace()
Result.FAILURE Result.failure()
} }
} }
...@@ -24,7 +24,7 @@ android { ...@@ -24,7 +24,7 @@ android {
} }
dependencies { dependencies {
api "androidx.core:core-ktx:$androidxVersion" api "androidx.core:core-ktx:1.0.1"
api "com.google.android.material:material:1.1.0-SNAPSHOT" api "com.google.android.material:material:1.1.0-SNAPSHOT"
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
testImplementation "junit:junit:$junitVersion" testImplementation "junit:junit:$junitVersion"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment