Skip to content

Commit 068a68f

Browse files
committed
updated aw-server-rust and added some comments
1 parent c0d8f16 commit 068a68f

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

mobile/build.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ android {
1010
applicationId "net.activitywatch.android"
1111
minSdkVersion 24
1212
targetSdkVersion 28
13-
// versionCode and versionName updated automatically in deploy script
13+
// versionCode and versionName are updated automatically in deploy script
1414
versionCode 14
1515
versionName "0.4-dev"
1616
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
17+
18+
// WARNING: Never commit this uncommented!
19+
//packagingOptions {
20+
// doNotStrip '**/*.so'
21+
//}
1722
}
1823
buildTypes {
1924
release {
@@ -25,6 +30,13 @@ android {
2530
}
2631
}
2732

33+
// Never got this to work...
34+
if (project.hasProperty("doNotStrip")) {
35+
packagingOptions {
36+
doNotStrip '**/*.so'
37+
}
38+
}
39+
2840
// Creates a resource versionName with the full version
2941
// https://stackoverflow.com/a/36468650/965332
3042
applicationVariants.all { variant ->

mobile/src/main/java/net/activitywatch/android/RustInterface.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ private const val TAG = "RustInterface"
1616
class RustInterface constructor(context: Context? = null) {
1717

1818
init {
19+
// NOTE: This doesn't work, probably because I can't get gradle to not strip symbols on release builds
1920
//Os.setenv("RUST_BACKTRACE", "1", true)
21+
2022
if(context != null) {
2123
Os.setenv("SQLITE_TMPDIR", context.cacheDir.absolutePath, true)
2224
}
25+
2326
System.loadLibrary("aw_server")
2427

2528
initialize()

0 commit comments

Comments
 (0)