- Fix UI stuck on "Reconnecting" after server switch: HomeViewModel now rebinds flows to the new synchronizer via syncRestarted signal - Show live sync progress during download/scan phases using weighted totalProgress (40% download + 60% scan) with block heights - Handle DEADLINE_EXCEEDED errors the same as UNAVAILABLE (show server picker) - Fix seed phrase validation: normalize input to lowercase, prefer exact word matches over autocomplete - Wrap server picker reconnection in try/catch to prevent crashes - Preserve birthday height when resetting synchronizer for server switch - Run findReachableServer on IO dispatcher to avoid blocking main thread - Guard Twig debug logging behind BuildConfig.DEBUG - Add build.sh script for debug/release builds - Bump version to 1.1.1, SDK to 1.9.1-beta01
28 lines
801 B
Bash
Executable File
28 lines
801 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
REPO_ROOT="$(cd "$(dirname "$0")" && pwd)"
|
|
cd "$REPO_ROOT"
|
|
|
|
if [ "$1" = "--release" ] || [ "$1" = "-r" ]; then
|
|
echo "Building SilentDragonXAndroid release APK..."
|
|
bash gradlew assembleZcashmainnetRelease
|
|
|
|
APK_DIR="app/build/outputs/apk/zcashmainnet/release"
|
|
UNIVERSAL_APK=$(find "$APK_DIR" -name "*-null.apk" -type f | head -1)
|
|
|
|
if [ -z "$UNIVERSAL_APK" ]; then
|
|
echo "ERROR: Universal APK not found in $APK_DIR"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p "$REPO_ROOT/release"
|
|
cp "$UNIVERSAL_APK" "$REPO_ROOT/release/SilentDragonXAndroid - v1.1.1.apk"
|
|
|
|
echo "Release APK: release/SilentDragonXAndroid - v1.1.1.apk"
|
|
else
|
|
echo "Building SilentDragonXAndroid debug APK..."
|
|
bash gradlew assembleZcashmainnetDebug
|
|
echo "Debug build complete."
|
|
fi
|