upgrade deps

This commit is contained in:
Fabian Freund
2026-03-05 19:15:07 +01:00
parent 42fc1c8da0
commit d82f363b74
21 changed files with 48 additions and 35 deletions
+4 -4
View File
@@ -2,7 +2,7 @@ group = "eu.weblibre.flutter_tor"
version = "1.0-SNAPSHOT"
buildscript {
ext.kotlin_version = "2.2.20"
ext.kotlin_version = "2.3.10"
repositories {
google()
mavenCentral()
@@ -50,11 +50,11 @@ android {
dependencies {
// Tor core libraries
implementation("info.guardianproject:tor-android:0.4.8.22")
implementation("info.guardianproject:tor-android:0.4.9.5")
implementation("info.guardianproject:jtorctl:0.4.5.7")
// Pluggable transports
implementation("com.netzarchitekten:IPtProxy:4.3.0")
implementation("com.netzarchitekten:IPtProxy:5.2.0")
// Coroutines for async operations
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
@@ -62,7 +62,7 @@ android {
// Testing
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.mockito:mockito-core:5.0.0")
testImplementation("org.mockito:mockito-core:5.22.0")
}
testOptions {
@@ -4,7 +4,7 @@ import android.content.Context
import android.util.Log
import IPtProxy.Controller
import IPtProxy.IPtProxy
import IPtProxy.OnTransportStopped
import IPtProxy.OnTransportEvents
import java.io.File
/**
@@ -28,7 +28,20 @@ class PluggableTransportManager(private val context: Context) {
private val stateDir = File(context.cacheDir, "iptproxy")
private val activeTransports = mutableSetOf<String>()
private val statusCallback = object : OnTransportStopped {
private val statusCallback = object : OnTransportEvents {
override fun connected(name: String?) {
if (name != null) {
Log.d(TAG, "$name connected")
}
}
override fun error(name: String?, exception: Exception?) {
if (name != null) {
activeTransports.remove(name)
}
Log.e(TAG, "${name ?: "transport"} reported error: ${exception?.message}", exception)
}
override fun stopped(name: String?, exception: Exception?) {
if (name != null) {
activeTransports.remove(name)