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() } - } } }