Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed May 6, 2021
1 parent 181ef53 commit 1983dec
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildscript {
classpath("com.google.gms:google-services:4.3.5")
classpath("com.vanniktech:gradle-maven-publish-plugin:0.14.2")
classpath("gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.4.30")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.4.32")
}
}

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-rc01"
const val lifecycleVersion = "2.3.1"

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 @@ -64,12 +64,12 @@ tasks.register<Exec>("cargoClean") {
tasks.clean.dependsOn("cargoClean")

dependencies {
val coroutinesVersion = "1.4.2"
val roomVersion = "2.3.0-rc01"
val coroutinesVersion = "1.5.0-RC"
val roomVersion = "2.3.0"
val workVersion = "2.5.0"

api(project(":plugin"))
api("androidx.core:core-ktx:1.5.0-rc01")
api("androidx.core:core-ktx:1.5.0-rc02")

api("androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion")
api("androidx.lifecycle:lifecycle-livedata-core-ktx:$lifecycleVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ data class Profile(
if (match != null) {
val profile = Profile()
feature?.copyFeatureSettingsTo(profile)
profile.method = match.groupValues[1].toLowerCase(Locale.ENGLISH)
profile.method = match.groupValues[1].lowercase(Locale.ENGLISH)
profile.password = match.groupValues[2]
profile.host = match.groupValues[3]
profile.remotePort = match.groupValues[4].toInt()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ import android.system.Os
import android.system.OsConstants
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.sendBlocking
import kotlinx.coroutines.channels.onFailure
import kotlinx.coroutines.channels.trySendBlocking
import kotlinx.coroutines.launch
import timber.log.Timber
import java.io.File
Expand Down Expand Up @@ -61,7 +62,7 @@ abstract class LocalSocketListener(name: String, socketFile: File) : Thread(name
}
}
}
closeChannel.sendBlocking(Unit)
closeChannel.trySendBlocking(Unit).onFailure { throw it!! }
}

@SuppressLint("NewApi")
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# The setting is particularly useful for tweaking memory settings.
android.enableJetifier=true
android.enableR8.fullMode=true
android.enableResourceOptimizations=false
android.useAndroidX=true
kapt.incremental.apt=true

Expand Down
4 changes: 2 additions & 2 deletions mobile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ setupApp()
android.defaultConfig.applicationId = "com.github.shadowsocks"

dependencies {
val cameraxVersion = "1.0.0-rc04"
val cameraxVersion = "1.0.0"

implementation("androidx.browser:browser:1.3.0")
implementation("androidx.camera:camera-camera2:$cameraxVersion")
implementation("androidx.camera:camera-lifecycle:$cameraxVersion")
implementation("androidx.camera:camera-view:1.0.0-alpha23")
implementation("androidx.camera:camera-view:1.0.0-alpha24")
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
implementation("com.google.mlkit:barcode-scanning:16.1.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

package com.github.shadowsocks

import android.annotation.SuppressLint
import android.content.ActivityNotFoundException
import android.content.Intent
import android.graphics.Bitmap
Expand Down Expand Up @@ -49,7 +48,7 @@ import com.github.shadowsocks.bg.BaseService
import com.github.shadowsocks.database.Profile
import com.github.shadowsocks.database.ProfileManager
import com.github.shadowsocks.plugin.PluginConfiguration
import com.github.shadowsocks.plugin.showAllowingStateLoss
import com.github.shadowsocks.plugin.fragment.showAllowingStateLoss
import com.github.shadowsocks.preference.DataStore
import com.github.shadowsocks.utils.Action
import com.github.shadowsocks.utils.OpenJson
Expand Down Expand Up @@ -85,7 +84,6 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener, Sea
private fun isProfileEditable(id: Long) =
(activity as MainActivity).state == BaseService.State.Stopped || id !in Core.activeProfileIds

@SuppressLint("ValidFragment")
class QRCodeDialog() : DialogFragment() {
constructor(url: String) : this() {
arguments = bundleOf(Pair(KEY_URL, url))
Expand Down
2 changes: 1 addition & 1 deletion plugin/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
* 2.0.1:
* Moved `AlertDialogFragment` and related utilities to `fragment` package, with support for Fragment Result API from AndroidX Fragment 1.3.
* Dependency updates:
- `androidx.fragment:fragment-ktx:1.3.2`;
- `androidx.fragment:fragment-ktx:1.3.3`;
- `com.google.android.material:material:1.3.0`;
- `org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32`.
* 2.0.0:
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ dependencies {
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("androidx.fragment:fragment-ktx:1.3.2")
api("androidx.fragment:fragment-ktx:1.3.3")
api("com.google.android.material:material:1.3.0")
}
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.3")
set("kotlinVersion", "1.4.32")
set("androidPlugin", "com.android.tools.build:gradle:4.2.0")
set("kotlinVersion", "1.5.0")
}

repositories {
Expand Down

0 comments on commit 1983dec

Please sign in to comment.