mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
* - Add Decred Wallet - Remove Haven Wallet - Fix and Improve Solana Wallet - Improve app usability and user experience - User interface enhancements - Bug fixes * Release candidate feedback fixes * Release candidate feedback fixes * update release notes [skip ci] * fix iOS stupidity [skip ci] * minor fix * decred: Do not create log file. (#2106) (#2107) Co-authored-by: JoeGruffins <34998433+JoeGruffins@users.noreply.github.com> * fix Monero HWW * fix Monero view only wallet * fix background sync for hardware and viewonly wallets * check for status on correct wptr * minor fixes [skip ci] --------- Co-authored-by: JoeGruffins <34998433+JoeGruffins@users.noreply.github.com> Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
35 lines
1 KiB
Bash
Executable file
35 lines
1 KiB
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
. ./config.sh
|
|
LIBWALLET_PATH="${EXTERNAL_IOS_SOURCE_DIR}/libwallet"
|
|
LIBWALLET_URL="https://github.com/decred/libwallet.git"
|
|
LIBWALLET_VERSION="dba5327d35cb5d5d1ff113b780869deee154511f"
|
|
|
|
if [ -e $LIBWALLET_PATH ]; then
|
|
rm -fr $LIBWALLET_PATH
|
|
fi
|
|
mkdir -p $LIBWALLET_PATH
|
|
git clone $LIBWALLET_URL $LIBWALLET_PATH
|
|
cd $LIBWALLET_PATH
|
|
git checkout $LIBWALLET_VERSION
|
|
|
|
SYSROOT=`xcrun --sdk iphoneos --show-sdk-path`
|
|
CLANG="clang -target arm64-apple-ios -isysroot ${SYSROOT}"
|
|
CLANGXX="clang++ -target arm64-apple-ios -isysroot ${SYSROOT}"
|
|
|
|
if [ -e ./build ]; then
|
|
rm -fr ./build
|
|
fi
|
|
CGO_ENABLED=1 GOOS=ios GOARCH=arm64 CC=$CLANG CXX=$CLANGXX \
|
|
go build -v -buildmode=c-archive -o ./build/libdcrwallet.a ./cgo || exit 1
|
|
|
|
CW_DECRED_DIR=${CW_ROOT}/cw_decred
|
|
HEADER_DIR=$CW_DECRED_DIR/lib/api
|
|
mv ${LIBWALLET_PATH}/build/libdcrwallet.h $HEADER_DIR
|
|
|
|
DEST_LIB_DIR=${CW_DECRED_DIR}/ios/External/lib
|
|
mkdir -p $DEST_LIB_DIR
|
|
mv ${LIBWALLET_PATH}/build/libdcrwallet.a $DEST_LIB_DIR
|
|
|
|
cd $CW_DECRED_DIR
|
|
dart run ffigen
|