File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,6 @@ org.gradle.jvmargs=-Xmx1536m
1515kotlin.code.style =official
1616android.useAndroidX =true
1717android.enableJetifier =true
18+
19+ # Enable native symbol preservation for debugging
20+ # doNotStrip=true
Original file line number Diff line number Diff line change @@ -58,11 +58,14 @@ android {
5858
5959 namespace ' net.activitywatch.android'
6060 // Never got this to work...
61- // if (project.hasProperty("doNotStrip")) {
62- // packagingOptions {
63- // doNotStrip '**/*.so'
64- // }
65- // }
61+ if (project. hasProperty(" doNotStrip" )) {
62+ println " Configuring doNotStrip for jniLibs"
63+ packaging {
64+ jniLibs {
65+ keepDebugSymbols + = " **/*.so"
66+ }
67+ }
68+ }
6669
6770 // Creates a resource versionName with the full version
6871 // https://stackoverflow.com/a/36468650/965332
You can’t perform that action at this time.
0 commit comments