diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 6bb59148e8..26873b0aba 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -75,6 +75,7 @@ dependencies { api("androidx.lifecycle:lifecycle-livedata-core-ktx:$lifecycleVersion") api("androidx.preference:preference:1.1.1") api("androidx.room:room-runtime:$roomVersion") + api("androidx.work:work-multiprocess:$workVersion") api("androidx.work:work-runtime-ktx:$workVersion") api("com.google.android.gms:play-services-oss-licenses:17.0.0") api("com.google.code.gson:gson:2.8.6") diff --git a/core/src/main/AndroidManifest.xml b/core/src/main/AndroidManifest.xml index 60d06daeca..ff6cd06a93 100644 --- a/core/src/main/AndroidManifest.xml +++ b/core/src/main/AndroidManifest.xml @@ -113,30 +113,5 @@ tools:node="remove"/> - - - - - - - - - - - - diff --git a/core/src/main/java/com/github/shadowsocks/Core.kt b/core/src/main/java/com/github/shadowsocks/Core.kt index 175e3e7f48..1b6d7fb365 100644 --- a/core/src/main/java/com/github/shadowsocks/Core.kt +++ b/core/src/main/java/com/github/shadowsocks/Core.kt @@ -141,6 +141,7 @@ object Core : Configuration.Provider { } override fun getWorkManagerConfiguration() = Configuration.Builder().apply { + setDefaultProcessName(app.packageName + ":bg") setMinimumLoggingLevel(if (BuildConfig.DEBUG) Log.VERBOSE else Log.INFO) setExecutor { GlobalScope.launch { it.run() } } setTaskExecutor { GlobalScope.launch { it.run() } }