From 5fd2fb0abbfb5e9a160235afc4efe844adcfef48 Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Sat, 22 Feb 2025 01:35:09 +0300 Subject: [PATCH] Rename the app's namespace and applicationId to `dev.meloda.fastvk`, and update the package name in `ACTION_MANAGE_UNKNOWN_APP_SOURCES` intent. Remove unnecessary `onLowMemory` method in the `OnlineService`. --- app/build.gradle.kts | 4 ++-- app/src/main/kotlin/dev/meloda/fast/service/OnlineService.kt | 5 ----- .../main/kotlin/dev/meloda/fast/common/util/AndroidUtils.kt | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 56120ebe..877c0e80 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -7,10 +7,10 @@ plugins { } android { - namespace = "dev.meloda.fast" + namespace = "dev.meloda.fastvk" defaultConfig { - applicationId = "dev.meloda.fast" + applicationId = "dev.meloda.fastvk" versionCode = libs.versions.versionCode.get().toInt() versionName = libs.versions.versionName.get() diff --git a/app/src/main/kotlin/dev/meloda/fast/service/OnlineService.kt b/app/src/main/kotlin/dev/meloda/fast/service/OnlineService.kt index 98556cae..354a1de4 100644 --- a/app/src/main/kotlin/dev/meloda/fast/service/OnlineService.kt +++ b/app/src/main/kotlin/dev/meloda/fast/service/OnlineService.kt @@ -95,11 +95,6 @@ class OnlineService : Service() { }.also { coroutine -> coroutine.invokeOnCompletion { onlineJob = null } } } - override fun onLowMemory() { - Log.d(STATE_TAG, "onLowMemory") - super.onLowMemory() - } - override fun onDestroy() { Log.d(STATE_TAG, "onDestroy") diff --git a/core/common/src/main/kotlin/dev/meloda/fast/common/util/AndroidUtils.kt b/core/common/src/main/kotlin/dev/meloda/fast/common/util/AndroidUtils.kt index 0f684a77..c88f3019 100644 --- a/core/common/src/main/kotlin/dev/meloda/fast/common/util/AndroidUtils.kt +++ b/core/common/src/main/kotlin/dev/meloda/fast/common/util/AndroidUtils.kt @@ -86,7 +86,7 @@ object AndroidUtils { action = if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { Settings.ACTION_SECURITY_SETTINGS } else { - data = Uri.parse("package:dev.meloda.fast") + data = Uri.parse("package:dev.meloda.fastvk") Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES } })