forked from github-such-software/hash-wallet
dev #10
Reference in New Issue
Block a user
Delete Branch "github-such-software/hash-wallet:dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue Number (if Applicable): Fixes #
Description
Please include a summary of the changes and which issue is fixed / feature is added.
Pull Request - Checklist
Three semi-independent fixes flagged from a user-facing testing pass: 1. cw_core/lib/root_dir.dart had a hardcoded 'cake_wallet' for the Linux app data dir, bypassing the binary name entirely. That's why ~/.config/cake_wallet/ kept being created even after the project rename. Changed appName const to hash_wallet. Also: - CAKE_WALLET_DIR env-var override -> HASH_WALLET_DIR (with the old name kept as a fallback so users migrating from a Cake install via env-var don't lose their path). - linuxSymlinkSharedPreferences kept the legacy ['com.example.cake_wallet','cake_wallet'] paths in the migration array so existing Cake users get auto-migrated into hash_wallet's new home on first launch of the fork. 2. lib/new-ui/new_dashboard.dart: commented out the Future.delayed(300ms).then(_showChangelog) trigger. The changelog content lives under assets/new-ui/changelog/text and describes Cake's v6.1.0 release notes — not ours. The 'View more info' button inside the modal launched blog.cakewallet.com. Re-enable once we write our own changelog content. 3. tool/configure.dart: WalletType.wownero hoisted to the top of the generated availableWalletTypes list. It's the reason this fork exists, so it should be the first choice in create / restore pickers. Monero stays as #2.These chains were already disabled in availableWalletTypes (none of them were getting created), but the source dirs and the codegen scaffolding for them still lived in tree (~20K lines of dead Dart). Surgery: - Delete cw_decred/ cw_solana/ cw_tron/ cw_zano/ source trees - Strip 5 generate*() function bodies from tool/configure.dart (generateSolana, generateTron, generateZano, generateDecred, generateZcash) plus their top-level imports, args, calls, signatures, and conditional pubspec/walletTypes injection blocks. configure.dart shrinks from 2134 to 1561 lines and dart analyze is clean. - Strip solana/tron secrets config + output paths from tool/import_secrets_config.dart - Delete scripts/{android,ios,macos}/build_decred.sh, scripts/ios/build_zano{,_all}.sh - Patch scripts/{android,ios,macos}/build_all.sh, scripts/android/copy_monero_deps.sh, scripts/ios/setup.sh, scripts/ios/gen_framework.sh to drop decred/zano steps - Patch scripts/android/docker/build.sh + Dockerfile.final to drop the decred Docker stage; delete scripts/android/docker/Dockerfile.decred - Update .github/workflows/build-linux.yml comments to reflect the remaining cw_* module list (evm, nano, bitcoin) Note: WalletType.{solana,tron,zano,decred,zcash} enum values still live in cw_core/lib/wallet_type.dart and there are dead switch cases in lib/di.dart and lib/new-ui/pages/*.dart that reference them. Those paths are unreachable (the enum values never get assigned to any wallet) but cleaning them up is a separate hygiene pass.