mirror of
https://github.com/nextcloud/talk-android
synced 2025-08-06 11:35:06 +01:00
linter
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
parent
ca4b6d5865
commit
01a155cf7c
@ -120,13 +120,12 @@ class BrowserLoginActivity : BaseActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CLEARTEXT is insecure, so this checks if the app is in debug mode, before enabling it
|
// CLEARTEXT is insecure, so this checks if the app is in debug mode, before enabling it
|
||||||
private fun OkHttpClient.Builder.setDebuggableConnectionSpecs(): OkHttpClient.Builder {
|
private fun OkHttpClient.Builder.setDebuggableConnectionSpecs(): OkHttpClient.Builder =
|
||||||
return if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
this.connectionSpecs(listOf(ConnectionSpec.COMPATIBLE_TLS, ConnectionSpec.CLEARTEXT))
|
this.connectionSpecs(listOf(ConnectionSpec.COMPATIBLE_TLS, ConnectionSpec.CLEARTEXT))
|
||||||
} else {
|
} else {
|
||||||
this.connectionSpecs(listOf(ConnectionSpec.COMPATIBLE_TLS))
|
this.connectionSpecs(listOf(ConnectionSpec.COMPATIBLE_TLS))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private fun handleIntent() {
|
private fun handleIntent() {
|
||||||
val extras = intent.extras!!
|
val extras = intent.extras!!
|
||||||
|
Loading…
Reference in New Issue
Block a user