From d47e70cfaaa4f5cba6841fb8da5c3976cbba09eb Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 3 Dec 2023 22:13:06 +0800 Subject: [PATCH] Fix native symbol strips `ndkVersion` is also needed by app for striping native symbols. Set it in `setupCommon` instead. --- buildSrc/src/main/java/Setup.kt | 1 + native/build.gradle.kts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/java/Setup.kt b/buildSrc/src/main/java/Setup.kt index 709df72a2..d1c26ea92 100644 --- a/buildSrc/src/main/java/Setup.kt +++ b/buildSrc/src/main/java/Setup.kt @@ -72,6 +72,7 @@ fun Project.setupCommon() { compileSdkVersion(34) buildToolsVersion = "34.0.0" ndkPath = "$sdkDirectory/ndk/magisk" + ndkVersion = "26.1.10909125" defaultConfig { minSdk = 23 diff --git a/native/build.gradle.kts b/native/build.gradle.kts index 77642c14d..10fc01934 100644 --- a/native/build.gradle.kts +++ b/native/build.gradle.kts @@ -6,7 +6,6 @@ setupCommon() android { namespace = "com.topjohnwu.magisk.native" - ndkVersion = "26.1.10909125" externalNativeBuild { ndkBuild {