Skip to content

Commit afb20c6

Browse files
committed
build(terminal): configure module to skip stripping libsudo.so
Add configuration to prevent stripping of libsudo.so debug symbols in terminal module. The change appends appropriate packaging options to either build.gradle.kts or build.gradle depending on which file exists in the terminal directory. This ensures that the libsudo.so library retains its debug symbols during the build process, which is essential for debugging and development purposes.
1 parent b324748 commit afb20c6

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ jobs:
5757
ls -l app/src/main/jniLibs/arm64-v8a/
5858
ls -R app/src/main/assets/models/
5959
60+
- name: Configure Terminal Module to Skip Stripping libsudo.so
61+
run: |
62+
if [ -f terminal/build.gradle.kts ]; then
63+
echo 'android { packaging { jniLibs { keepDebugSymbols += "**/libsudo.so" } } }' >> terminal/build.gradle.kts
64+
echo "Added keepDebugSymbols for libsudo.so to terminal/build.gradle.kts"
65+
elif [ -f terminal/build.gradle ]; then
66+
echo 'android { packagingOptions { doNotStrip "**/libsudo.so" } }' >> terminal/build.gradle
67+
echo "Added doNotStrip for libsudo.so to terminal/build.gradle"
68+
else
69+
echo "Terminal build file not found!"
70+
ls -R terminal
71+
exit 1
72+
fi
73+
6074
- name: Build Release APK
6175
run: ./gradlew assembleRelease
6276

0 commit comments

Comments
 (0)