Skip to content

Commit 5f2b2ef

Browse files
committed
fix: fix doNotStrip property not working
1 parent 172d208 commit 5f2b2ef

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ org.gradle.jvmargs=-Xmx1536m
1515
kotlin.code.style=official
1616
android.useAndroidX=true
1717
android.enableJetifier=true
18+
19+
# Enable native symbol preservation for debugging
20+
# doNotStrip=true

mobile/build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)