summaryrefslogtreecommitdiff
path: root/trackersservicee/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'trackersservicee/src/main')
-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>()
+ }
}