summaryrefslogtreecommitdiff
path: root/trackersservicee
diff options
context:
space:
mode:
Diffstat (limited to 'trackersservicee')
-rw-r--r--trackersservicee/build.gradle9
-rw-r--r--trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt7
2 files changed, 10 insertions, 6 deletions
diff --git a/trackersservicee/build.gradle b/trackersservicee/build.gradle
index f7725bf..e93d5d6 100644
--- a/trackersservicee/build.gradle
+++ b/trackersservicee/build.gradle
@@ -5,14 +5,11 @@ plugins {
android {
namespace 'foundation.e.advancedprivacy.trackers.service'
- compileSdk 33
+ compileSdkVersion buildConfig.compileSdk
defaultConfig {
- minSdk 24
- targetSdk 33
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
+ minSdkVersion buildConfig.minSdk
+ targetSdkVersion buildConfig.targetSdk
}
buildTypes {
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>()
+ }
}