mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
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.
42 lines
1.4 KiB
Bash
Executable File
42 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./config.sh
|
|
|
|
cd $EXTERNAL_IOS_LIB_DIR
|
|
|
|
LIBRANDOMX_PATH=${EXTERNAL_IOS_LIB_DIR}/monero/librandomx.a
|
|
|
|
if [ -f "$LIBRANDOMX_PATH" ]; then
|
|
cp $LIBRANDOMX_PATH ./haven
|
|
fi
|
|
|
|
libtool -static -o libboost.a ./libboost_*.a
|
|
libtool -static -o libhaven.a ./haven/*.a
|
|
libtool -static -o libmonero.a ./monero/*.a
|
|
|
|
CW_HAVEN_EXTERNAL_LIB=../../../../../cw_haven/ios/External/ios/lib
|
|
CW_HAVEN_EXTERNAL_INCLUDE=../../../../../cw_haven/ios/External/ios/include
|
|
CW_MONERO_EXTERNAL_LIB=../../../../../cw_monero/ios/External/ios/lib
|
|
CW_MONERO_EXTERNAL_INCLUDE=../../../../../cw_monero/ios/External/ios/include
|
|
|
|
mkdir -p $CW_HAVEN_EXTERNAL_INCLUDE
|
|
mkdir -p $CW_MONERO_EXTERNAL_INCLUDE
|
|
mkdir -p $CW_HAVEN_EXTERNAL_LIB
|
|
mkdir -p $CW_MONERO_EXTERNAL_LIB
|
|
|
|
ln ./libboost.a ${CW_HAVEN_EXTERNAL_LIB}/libboost.a
|
|
ln ./libcrypto.a ${CW_HAVEN_EXTERNAL_LIB}/libcrypto.a
|
|
ln ./libssl.a ${CW_HAVEN_EXTERNAL_LIB}/libssl.a
|
|
ln ./libsodium.a ${CW_HAVEN_EXTERNAL_LIB}/libsodium.a
|
|
cp ./libhaven.a $CW_HAVEN_EXTERNAL_LIB
|
|
cp ../include/haven/* $CW_HAVEN_EXTERNAL_INCLUDE
|
|
|
|
ln ./libboost.a ${CW_MONERO_EXTERNAL_LIB}/libboost.a
|
|
ln ./libcrypto.a ${CW_MONERO_EXTERNAL_LIB}/libcrypto.a
|
|
ln ./libssl.a ${CW_MONERO_EXTERNAL_LIB}/libssl.a
|
|
ln ./libsodium.a ${CW_MONERO_EXTERNAL_LIB}/libsodium.a
|
|
ln ./libunbound.a ${CW_MONERO_EXTERNAL_LIB}/libunbound.a
|
|
cp ./libmonero.a $CW_MONERO_EXTERNAL_LIB
|
|
cp ../include/monero/* $CW_MONERO_EXTERNAL_INCLUDE
|
|
|