From f0d3b0c8aec4de2a0b4b96c2ead2c881b89e2b73 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <99822064+revonateB0T@users.noreply.github.com> Date: Sat, 14 Sep 2024 18:45:36 +0800 Subject: [PATCH] Misc updates (#1629) * Respect Arch's ndk location * Don't spam in debug build * Cleanup * Revert "Cleanup" This reverts commit 45b9d76dd363aa1fd3d58b5102b68649028e313a. * Revert "Respect Arch's ndk location" This reverts commit 3fd773422d3ae440a6466e2fa161a45018fd8ed7. * Respect Arch ndk location --------- Co-authored-by: Dude so hot --- app/src/main/cpp/configure_nettle.sh | 9 ++++++++- app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt | 4 ---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/src/main/cpp/configure_nettle.sh b/app/src/main/cpp/configure_nettle.sh index b44b7aa98..dd777a949 100644 --- a/app/src/main/cpp/configure_nettle.sh +++ b/app/src/main/cpp/configure_nettle.sh @@ -1,4 +1,11 @@ -TOOLCHAIN=$ANDROID_HOME/ndk/$1/toolchains/llvm/prebuilt/$(uname -s | tr '[:upper:]' '[:lower:]')-x86_64/bin +SUFFIX=toolchains/llvm/prebuilt/$(uname -s | tr '[:upper:]' '[:lower:]')-x86_64/bin +CI_NDK_LOCATION=$ANDROID_HOME/ndk/$1/$SUFFIX +ARCH_NDK_LOCATION=$ANDROID_HOME/ndk-bundle/$SUFFIX +if test -e $CI_NDK_LOCATION ;then + TOOLCHAIN=$CI_NDK_LOCATION +else + TOOLCHAIN=$ARCH_NDK_LOCATION +fi TARGET=$2 ./configure --host=$TARGET --disable-public-key --disable-dependency-tracking \ AR=$TOOLCHAIN/llvm-ar \ diff --git a/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt b/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt index 514005013..d02843ef6 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt @@ -22,7 +22,6 @@ import android.os.StrictMode import androidx.appcompat.app.AppCompatDelegate import androidx.appcompat.content.res.AppCompatResources import androidx.collection.LruCache -import androidx.compose.runtime.snapshots.Snapshot import androidx.lifecycle.ProcessLifecycleOwner import androidx.lifecycle.coroutineScope import coil3.EventListener @@ -141,9 +140,6 @@ class EhApplication : } if (BuildConfig.DEBUG) { StrictMode.enableDefaults() - Snapshot.registerApplyObserver { anies, _ -> - logcat(LogPriority.VERBOSE) { anies.toString() } - } } }