summaryrefslogtreecommitdiff
path: root/trackersservicee/src/main/java/foundation/e
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-10-23 15:55:13 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-10-23 15:55:13 +0000
commit0312ce64f85b5530a00bdc72eb310ba9dc1de05b (patch)
tree030ccbed3f44a2a1f96413947f50ec0520fb064d /trackersservicee/src/main/java/foundation/e
parentd0c2b36ec81cd2a102d4b0a5b0fbeb1c1aa52e70 (diff)
parent54892a227a77839ee81df90df904675f958831a3 (diff)
Merge branch 'epic18-standalone_trackers_tor_alone' into 'main'
epic18: tracker control while tor is activated. See merge request e/os/advanced-privacy!148
Diffstat (limited to 'trackersservicee/src/main/java/foundation/e')
-rw-r--r--trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt b/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt
index 3903db4..dcdf0d4 100644
--- a/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt
+++ b/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt
@@ -21,7 +21,9 @@ import android.content.Intent
import foundation.e.advancedprivacy.trackers.domain.externalinterfaces.TrackersServiceSupervisor
import foundation.e.advancedprivacy.trackers.service.TrackersService.Companion.ACTION_START
import kotlinx.coroutines.isActive
+import org.koin.core.module.dsl.bind
import org.koin.core.module.dsl.factoryOf
+import org.koin.core.module.dsl.singleOf
import org.koin.dsl.module
class TrackersServiceSupervisorImpl(private val context: Context) : TrackersServiceSupervisor {
@@ -39,8 +41,13 @@ class TrackersServiceSupervisorImpl(private val context: Context) : TrackersServ
override fun isRunning(): Boolean {
return TrackersService.coroutineScope.isActive
}
+
+ override val dnsFilterForIpScrambling = null
}
val trackerServiceModule = module {
factoryOf(::DNSBlocker)
+ singleOf(::TrackersServiceSupervisorImpl) {
+ bind<TrackersServiceSupervisor>()
+ }
}