Update dependencies
This commit is contained in:
parent
00b32b2d63
commit
afd51b4959
3 changed files with 2 additions and 6 deletions
|
@ -72,7 +72,7 @@ tasks.whenTaskAdded { task ->
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
implementation "androidx.preference:preference:1.1.0-alpha02"
|
implementation "androidx.preference:preference:1.1.0-alpha02"
|
||||||
implementation 'com.github.shadowsocks:plugin:1.0.0'
|
implementation 'com.github.shadowsocks:plugin:1.1.0'
|
||||||
implementation 'com.takisoft.preferencex:preferencex-simplemenu:1.0.0'
|
implementation 'com.takisoft.preferencex:preferencex-simplemenu:1.0.0'
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
|
|
|
@ -42,10 +42,6 @@ class ConfigFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChange
|
||||||
private val path by lazy { findPreference<EditTextPreference>("path") }
|
private val path by lazy { findPreference<EditTextPreference>("path") }
|
||||||
private val certRaw by lazy { findPreference<EditTextPreference>("certRaw") }
|
private val certRaw by lazy { findPreference<EditTextPreference>("certRaw") }
|
||||||
|
|
||||||
// todo: remove me for updated plugin lib
|
|
||||||
private fun PluginOptions.putWithDefault(key: String, value: String?, default: String? = null) =
|
|
||||||
if (value == null || value == default) remove(key) else put(key, value)
|
|
||||||
|
|
||||||
private fun readMode(value: String = mode.value) = when (value) {
|
private fun readMode(value: String = mode.value) = when (value) {
|
||||||
"websocket-http" -> Pair(null, null)
|
"websocket-http" -> Pair(null, null)
|
||||||
"websocket-tls" -> Pair(null, "")
|
"websocket-tls" -> Pair(null, "")
|
||||||
|
|
|
@ -12,7 +12,7 @@ buildscript {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
classpath 'com.android.tools.build:gradle:3.3.0'
|
||||||
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
|
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue