Skip to content

Commit e333222

Browse files
committed
Removed some stuff
1 parent 7af4501 commit e333222

File tree

7 files changed

+2
-66
lines changed

7 files changed

+2
-66
lines changed

android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt

+2-4
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ import org.koin.core.qualifier.named
113113
import org.koin.dsl.module
114114

115115
val uiModule = module {
116-
single<DataStore<UserPreferences>>(named("COOL")) { androidContext().userPreferencesStore }
116+
single<DataStore<UserPreferences>> { androidContext().userPreferencesStore }
117117

118118
single<PackageManager> { androidContext().packageManager }
119119
single<String>(named(SELF_PACKAGE_NAME)) { androidContext().packageName }
@@ -131,9 +131,7 @@ val uiModule = module {
131131
single { androidContext().contentResolver }
132132

133133
single { ChangelogRepository(get(), get(), get()) }
134-
single<UserPreferencesRepository> {
135-
UserPreferencesRepository(get<DataStore<UserPreferences>>(named("COOL")), get())
136-
}
134+
single { UserPreferencesRepository(get(), get()) }
137135
single { SettingsRepository(get()) }
138136
single { MullvadProblemReport(get(), get<DaemonConfig>().apiEndpointOverride, get()) }
139137
single { RelayOverridesRepository(get()) }

android/app/src/main/proto/user_prefs.proto

-9
This file was deleted.

android/lib/model/build.gradle.kts

-23
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import org.gradle.kotlin.dsl.android
2-
import org.gradle.kotlin.dsl.get
3-
import org.gradle.kotlin.dsl.kotlin
4-
import org.gradle.kotlin.dsl.plugins
5-
61
plugins {
72
alias(libs.plugins.android.library)
83
alias(libs.plugins.kotlin.android)
94
alias(libs.plugins.kotlin.parcelize)
105
alias(libs.plugins.kotlin.ksp)
11-
alias(libs.plugins.protobuf.core)
126

137
id(Dependencies.junit5AndroidPluginId) version Versions.junit5Plugin
148
}
@@ -40,29 +34,12 @@ android {
4034
}
4135
}
4236

43-
protobuf {
44-
protoc { artifact = libs.plugins.protobuf.protoc.get().toString() }
45-
plugins {
46-
create("java") { artifact = libs.plugins.grpc.protoc.gen.grpc.java.get().toString() }
47-
}
48-
generateProtoTasks {
49-
all().forEach {
50-
it.plugins { create("java") { option("lite") } }
51-
it.builtins { create("kotlin") { option("lite") } }
52-
}
53-
}
54-
}
55-
5637
dependencies {
5738
implementation(libs.kotlin.stdlib)
5839
implementation(libs.kotlinx.coroutines.android)
5940
implementation(libs.arrow)
6041
implementation(libs.arrow.optics)
6142
ksp(libs.arrow.optics.ksp)
62-
implementation(libs.protobuf.kotlin.lite)
63-
implementation(libs.androidx.datastore)
64-
implementation(libs.koin)
65-
implementation(libs.koin.android)
6643

6744
// Test dependencies
6845
testRuntimeOnly(Dependencies.junitJupiterEngine)

android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/lib/model/TunnelPreferencesSerializer.kt

-22
This file was deleted.

android/lib/talpid/build.gradle.kts

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.gradle.kotlin.dsl.android
2-
31
plugins {
42
alias(libs.plugins.android.library)
53
alias(libs.plugins.kotlin.android)
@@ -40,6 +38,4 @@ dependencies {
4038
implementation(libs.kermit)
4139
implementation(libs.kotlin.stdlib)
4240
implementation(libs.kotlinx.coroutines.android)
43-
implementation(libs.koin)
44-
implementation(libs.koin.android)
4541
}

android/lib/talpid/src/main/kotlin/net/mullvad/talpid/TalpidVpnService.kt

-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ open class TalpidVpnService : LifecycleVpnService() {
154154
companion object {
155155
const val FALLBACK_DUMMY_DNS_SERVER = "192.0.2.1"
156156

157-
const val APP_PREFERENCES_NAME = "net.mullvad.mullvadvpn.app_preferences"
158-
159157
private const val IPV4_PREFIX_LENGTH = 32
160158
private const val IPV6_PREFIX_LENGTH = 128
161159
}

talpid-tunnel/src/tun_provider/android/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use jnix::{
1111
},
1212
FromJava, IntoJava, JnixEnv,
1313
};
14-
use std::net::Ipv6Addr;
1514
use std::{
1615
net::IpAddr,
1716
os::unix::io::{AsRawFd, RawFd},
@@ -308,7 +307,6 @@ impl VpnServiceConfig {
308307
/// Potentially subtract LAN nets from the VPN service routes, excepting gateways.
309308
/// This prevents LAN traffic from going in the tunnel.
310309
fn resolve_routes(config: &TunConfig) -> Vec<InetNetwork> {
311-
log::debug!("routes: {:?}", config.routes);
312310
if !config.allow_lan {
313311
return config
314312
.routes

0 commit comments

Comments
 (0)