Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dependencies {
implementation("com.blacksquircle.ui:language-base:2.6.0")
implementation("com.blacksquircle.ui:language-json:2.6.0")

implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.3")
implementation("com.squareup.okhttp3:okhttp:5.3.0")
Comment thread
hawkff marked this conversation as resolved.
implementation("org.yaml:snakeyaml:2.3")
implementation("com.github.daniel-stoneuk:material-about-library:3.2.0-rc01")
implementation("com.jakewharton:process-phoenix:2.1.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ import moe.matsuri.nb4a.proxy.anytls.AnyTLSSettingsActivity
import moe.matsuri.nb4a.proxy.config.ConfigSettingActivity
import moe.matsuri.nb4a.proxy.shadowtls.ShadowTLSSettingsActivity
import moe.matsuri.nb4a.ui.ConnectionTestNotification
import okhttp3.internal.closeQuietly
import java.io.Closeable
import java.net.InetSocketAddress
import java.net.Socket
import java.net.UnknownHostException
Expand Down Expand Up @@ -2052,3 +2052,14 @@ class ConfigurationFragment @JvmOverloads constructor(
}

}

/**
* Closes this resource, ignoring any exception. Replacement for OkHttp's internal
* `closeQuietly()` extension so we don't depend on an unstable `okhttp3.internal` API.
*/
private fun Closeable.closeQuietly() {
try {
close()
} catch (_: Exception) {
}
Comment thread
hawkff marked this conversation as resolved.
}