Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Oct 1, 2020
1 parent 70d509e commit 1783420
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 19 deletions.
12 changes: 7 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

plugins {
id("com.github.ben-manes.versions") version "0.29.0"
id("com.github.ben-manes.versions") version "0.33.0"
}

buildscript {
Expand All @@ -14,13 +14,15 @@ buildscript {
}

dependencies {
val kotlinVersion = rootProject.extra.get("kotlinVersion").toString()
classpath(rootProject.extra.get("androidPlugin").toString())
classpath(kotlin("gradle-plugin", rootProject.extra.get("kotlinVersion").toString()))
classpath(kotlin("gradle-plugin", kotlinVersion))
classpath("com.google.android.gms:oss-licenses-plugin:0.10.2")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.2.1")
classpath("com.google.gms:google-services:4.3.3")
classpath("com.vanniktech:gradle-maven-publish-plugin:0.12.0")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.3.0")
classpath("com.google.gms:google-services:4.3.4")
classpath("com.vanniktech:gradle-maven-publish-plugin:0.13.0")
classpath("gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:$kotlinVersion")
}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Helpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.gradle.kotlin.dsl.getByName
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions
import java.util.*

const val lifecycleVersion = "2.3.0-alpha07"
const val lifecycleVersion = "2.3.0-beta01"

private val Project.android get() = extensions.getByName<BaseExtension>("android")

Expand Down
6 changes: 3 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dependencies {
api("androidx.appcompat:appcompat:1.2.0")
api("androidx.core:core-ktx:1.4.0-alpha01")

api("androidx.fragment:fragment-ktx:1.3.0-alpha08")
api("androidx.fragment:fragment-ktx:1.3.0-beta01")
api("androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion")
api("androidx.lifecycle:lifecycle-livedata-core-ktx:$lifecycleVersion")
api("androidx.preference:preference:1.1.1")
Expand All @@ -86,9 +86,9 @@ dependencies {
api("com.google.code.gson:gson:2.8.6")
api("com.google.firebase:firebase-analytics-ktx:17.5.0")
api("com.google.firebase:firebase-config-ktx:19.2.0")
api("com.google.firebase:firebase-crashlytics:17.2.1")
api("com.google.firebase:firebase-crashlytics:17.2.2")
api("com.jakewharton.timber:timber:4.7.1")
api("dnsjava:dnsjava:3.2.2")
api("dnsjava:dnsjava:3.3.0")
api("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion")
api("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutinesVersion")
kapt("androidx.room:room-compiler:$roomVersion")
Expand Down
8 changes: 4 additions & 4 deletions mobile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ setupApp()
android.defaultConfig.applicationId = "com.github.shadowsocks"

dependencies {
val cameraxVersion = "1.0.0-beta08"
val cameraxVersion = "1.0.0-beta10"

implementation("androidx.browser:browser:1.2.0")
implementation("androidx.camera:camera-camera2:$cameraxVersion")
implementation("androidx.camera:camera-lifecycle:$cameraxVersion")
implementation("androidx.camera:camera-view:1.0.0-alpha15")
implementation("androidx.camera:camera-view:1.0.0-alpha17")
implementation("androidx.constraintlayout:constraintlayout:2.0.1")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
implementation("com.google.firebase:firebase-ads:19.3.0")
implementation("com.google.firebase:firebase-ads:19.4.0")
implementation("com.google.mlkit:barcode-scanning:16.0.3")
implementation("com.google.zxing:core:3.4.0")
implementation("com.google.zxing:core:3.4.1")
implementation("com.takisoft.preferencex:preferencex-simplemenu:1.1.0")
implementation("com.twofortyfouram:android-plugin-api-for-locale:1.0.4")
implementation("me.zhanghai.android.fastscroll:library:1.1.4")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ScannerActivity : AppCompatActivity(), ImageAnalysis.Analyzer {
CameraSelector.DEFAULT_BACK_CAMERA
} else CameraSelector.DEFAULT_FRONT_CAMERA
val preview = Preview.Builder().build()
preview.setSurfaceProvider(findViewById<PreviewView>(R.id.barcode).createSurfaceProvider())
preview.setSurfaceProvider(findViewById<PreviewView>(R.id.barcode).surfaceProvider)
try {
cameraProvider.bindToLifecycle(this@ScannerActivity, selector, preview, imageAnalysis)
} catch (e: IllegalArgumentException) {
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mavenPublish.targets.getByName("uploadArchives") {
}

dependencies {
api("androidx.core:core-ktx:1.3.1")
api("androidx.core:core-ktx:1.3.2")
// https://android-developers.googleblog.com/2019/07/android-q-beta-5-update.html
api("androidx.drawerlayout:drawerlayout:1.1.1")
api("com.google.android.material:material:1.2.1")
Expand Down
4 changes: 2 additions & 2 deletions repositories.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rootProject.extra.apply {
set("androidPlugin", "com.android.tools.build:gradle:4.1.0-rc02")
set("kotlinVersion", "1.4.0")
set("androidPlugin", "com.android.tools.build:gradle:4.1.0-rc03")
set("kotlinVersion", "1.4.10")
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion tv/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ setupApp()
android.defaultConfig.applicationId = "com.github.shadowsocks.tv"

dependencies {
implementation("androidx.leanback:leanback-preference:1.1.0-alpha04")
implementation("androidx.leanback:leanback-preference:1.1.0-alpha05")
}

0 comments on commit 1783420

Please sign in to comment.