From 8175847b7b794706a3f6f44673514412cdcbfb5f Mon Sep 17 00:00:00 2001 From: Bruce Ashton Date: Sat, 3 Oct 2026 17:24:54 +1300 Subject: [PATCH] Android: strip libnethack.so and bundle its debug symbols; bump to 3.6.7-4 AGP could not find its default NDK, so it packaged the 8 MB unstripped library. Pinning ndkVersion to the NDK the Makefile uses lets it strip (about 2.8 MB now), and debugSymbolLevel FULL keeps the symbols in the bundle so Play can symbolicate native crashes. Co-Authored-By: Claude Opus 5.5 --- sys/android/app/build.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/android/app/build.gradle b/sys/android/app/build.gradle index dda256922..50d6e8450 100644 --- a/sys/android/app/build.gradle +++ b/sys/android/app/build.gradle @@ -18,13 +18,15 @@ android { // Kept as the original package so the generated R class stays com.tbd.NetHack.R namespace 'com.tbd.NetHack' compileSdk 36 + // Must match the NDK the Makefile uses, so Gradle can strip libnethack.so + ndkVersion '27.3.13750724' defaultConfig { applicationId 'com.skwidge.nethack' minSdk 24 targetSdk 36 - versionName '3.6.7-3' - versionCode 3673 + versionName '3.6.7-4' + versionCode 3674 } compileOptions { @@ -49,6 +51,10 @@ android { if (signingConfigs.release.storeFile != null) { signingConfig signingConfigs.release } + // Ship a stripped libnethack.so and keep its symbols in the bundle for Play + ndk { + debugSymbolLevel 'FULL' + } } }