Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

build: generate Android deobfuscation mapping

tianma-ifcaf47eab7d49
diff --git a/.github/workflows/mobile-build.yml b/.github/workflows/mobile-build.yml
index 4de238b5..b55d310b 100644
--- a/.github/workflows/mobile-build.yml
+++ b/.github/workflows/mobile-build.yml
@@ -92,6 +92,11 @@ jobs:
run: jarsigner -verify app/build/outputs/bundle/release/*.aab
working-directory: apps/mobile/android
+ - name: Verify R8 deobfuscation mapping
+ if: github.event_name == 'workflow_dispatch'
+ run: test -s app/build/outputs/mapping/release/mapping.txt
+ working-directory: apps/mobile/android
+
- name: Upload APK
if: github.event_name == 'push'
uses: actions/upload-artifact@v7
@@ -109,3 +114,11 @@ jobs:
path: apps/mobile/android/app/build/outputs/bundle/release/*.aab
if-no-files-found: error
compression-level: 0
+
+ - name: Upload R8 deobfuscation mapping
+ if: github.event_name == 'workflow_dispatch'
+ uses: actions/upload-artifact@v7
+ with:
+ name: edgeever-android-release-mapping
+ path: apps/mobile/android/app/build/outputs/mapping/release/mapping.txt
+ if-no-files-found: error
diff --git a/apps/mobile/app.json b/apps/mobile/app.json
index aad119fa..53436284 100644
--- a/apps/mobile/app.json
+++ b/apps/mobile/app.json
@@ -3,7 +3,7 @@
"name": "EdgeEver",
"slug": "edgeever",
"scheme": "edgeever",
- "version": "0.4.0",
+ "version": "0.4.1",
"orientation": "portrait",
"userInterfaceStyle": "light",
"newArchEnabled": true,
@@ -13,7 +13,7 @@
},
"android": {
"package": "org.edgeever.mobile",
- "versionCode": 6,
+ "versionCode": 7,
"adaptiveIcon": {
"backgroundColor": "#f8fafc"
}
@@ -27,7 +27,9 @@
{
"android": {
"compileSdkVersion": 36,
- "targetSdkVersion": 36
+ "targetSdkVersion": 36,
+ "enableMinifyInReleaseBuilds": true,
+ "enableShrinkResourcesInReleaseBuilds": true
}
}
]
diff --git a/docs/mobile-build.md b/docs/mobile-build.md
index d8af9640..7b1aae1e 100644
--- a/docs/mobile-build.md
+++ b/docs/mobile-build.md
@@ -31,7 +31,11 @@ ANDROID_KEY_ALIAS
ANDROID_KEY_PASSWORD
```
-The resulting artifact is named `edgeever-android-release-aab`. The upload
+The resulting app bundle is uploaded as `edgeever-android-release-aab`. Release
+builds enable R8 code minification and resource shrinking, and the matching
+deobfuscation file is uploaded as `edgeever-android-release-mapping`. Upload
+that `mapping.txt` alongside the same app bundle version in Google Play Console
+so production crash and ANR stack traces can be decoded correctly. The upload
keystore is only used to prove ownership when uploading bundles; Google Play
App Signing manages the app signing key delivered to users. Keep an encrypted
backup of the upload keystore and its credentials outside the repository.