mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-21 23:48:00 +00:00
fix: preserve symbol tables in Rust bindings for Play Store debug symbols
Rust Cargo.toml had strip=true which removes ALL symbols including the symbol table needed by AGP to generate native-debug-symbols.zip for Play Store. Changed to strip="debuginfo" which keeps symbol tables (needed for crash symbolication) but removes debug info (keeps .so small). Also made debugSymbols conditional in distribute workflow so missing symbols don't fail the upload.
This commit is contained in:
@@ -51,6 +51,13 @@ jobs:
|
||||
- name: Rename artifacts
|
||||
run: mv app/bundle/releaseMarket/app-releaseMarket.aab app/bundle/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.aab
|
||||
|
||||
- name: Check for native debug symbols
|
||||
id: check-symbols
|
||||
run: |
|
||||
if [ -f "app/native-debug-symbols/releaseMarket/native-debug-symbols.zip" ]; then
|
||||
echo "path=app/native-debug-symbols/releaseMarket/native-debug-symbols.zip" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Market publication
|
||||
uses: r0adkll/upload-google-play@v1
|
||||
with:
|
||||
@@ -62,3 +69,4 @@ jobs:
|
||||
inAppUpdatePriority: 2
|
||||
whatsNewDirectory: distribution/whatsnew
|
||||
mappingFile: app/mapping/releaseMarket/mapping.txt
|
||||
debugSymbols: ${{ steps.check-symbols.outputs.path }}
|
||||
|
||||
@@ -15,7 +15,7 @@ hydra-dx-math = { git = "https://github.com/galacticcouncil/HydraDX-node", versi
|
||||
jni = { version = "0.17.0", default-features = false }
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
strip = "debuginfo"
|
||||
lto = true
|
||||
opt-level = "s"
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ frame-metadata = { version = "16.0.0", features = [ "current" ] }
|
||||
codec = { package = "parity-scale-codec", version = "3.6.9", features = [ "derive" ] }
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
strip = "debuginfo"
|
||||
lto = true
|
||||
opt-level = "s"
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ jni = { version = "0.21", default-features = false }
|
||||
zeroize = "1.7"
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
strip = "debuginfo"
|
||||
lto = true
|
||||
opt-level = "s"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user