From 96e369e829c84b5907f36d4454fb2275bbb682ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 7 Dec 2023 22:07:17 +0800 Subject: [PATCH] Update dependencies --- app/build.gradle | 10 ++++++---- app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt | 5 ++++- build.gradle | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6b9f93d..fceda05 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -60,6 +60,8 @@ android { abi { enable true universalApk true + reset() + include "armeabi-v7a", "arm64-v8a", "x86", "x86_64" } } @@ -93,12 +95,12 @@ dependencies { implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2' implementation 'androidx.navigation:navigation-fragment-ktx:2.7.5' implementation 'androidx.navigation:navigation-ui-ktx:2.7.5' - implementation 'androidx.room:room-runtime:2.6.0' + implementation 'androidx.room:room-runtime:2.6.1' implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' implementation 'androidx.preference:preference-ktx:1.2.1' - ksp 'androidx.room:room-compiler:2.6.0' - implementation 'androidx.work:work-runtime-ktx:2.8.1' - implementation 'androidx.browser:browser:1.6.0' + ksp 'androidx.room:room-compiler:2.6.1' + implementation 'androidx.work:work-runtime-ktx:2.9.0' + implementation 'androidx.browser:browser:1.7.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3' // DO NOT UPDATE (minSdkVersion updated) diff --git a/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt b/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt index e753d06..c6e06b7 100644 --- a/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt +++ b/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt @@ -20,6 +20,7 @@ import io.nekohasekai.libbox.Libbox import io.nekohasekai.libbox.PlatformInterface import io.nekohasekai.libbox.SystemProxyStatus import io.nekohasekai.sfa.Application +import io.nekohasekai.sfa.BuildConfig import io.nekohasekai.sfa.constant.Action import io.nekohasekai.sfa.constant.Alert import io.nekohasekai.sfa.constant.Status @@ -50,7 +51,9 @@ class BoxService( val tempDir = Application.application.cacheDir tempDir.mkdirs() Libbox.setup(baseDir.path, workingDir.path, tempDir.path, false) - Libbox.redirectStderr(File(workingDir, "stderr.log").path) + if (!BuildConfig.DEBUG) { + Libbox.redirectStderr(File(workingDir, "stderr.log").path) + } initializeOnce = true return } diff --git a/build.gradle b/build.gradle index 475d771..9d1f0ac 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,8 @@ buildscript { } plugins { - id 'com.android.application' version '8.1.4' apply false - id 'com.android.library' version '8.1.4' apply false + id 'com.android.application' version '8.2.0' apply false + id 'com.android.library' version '8.2.0' apply false id 'org.jetbrains.kotlin.android' version '1.9.0' apply false id 'com.google.devtools.ksp' version '1.9.0-1.0.12' apply false id 'com.github.triplet.play' version '3.8.4' apply false