Fixes for iOS build. Add moonpay api placeholders for secrets.

This commit is contained in:
M 2021-12-28 19:00:57 +02:00
parent dd784a7829
commit fa2302f9df
4 changed files with 19 additions and 6 deletions

View file

@ -49,9 +49,9 @@ cmake -D IOS=ON \
-DUSE_DEVICE_TREZOR=OFF \
../..
make -j4 && make install
cp external/randomx/librandomx.a ${DEST_LIB}
cp src/cryptonote_basic/libcryptonote_basic.a ${DEST_LIB}
cp src/cryptonote_basic/libcryptonote_format_utils_basic.a ${DEST_LIB}
cp external/randomx/librandomx.a ${DEST_LIB}/
cp src/cryptonote_basic/libcryptonote_basic.a ${DEST_LIB}/
cp src/cryptonote_basic/libcryptonote_format_utils_basic.a ${DEST_LIB}/
popd
done

View file

@ -1,4 +1,4 @@
#!/bin/sh
g#!/bin/sh
. ./config.sh
@ -9,5 +9,12 @@ echo "============================ ZMQ ============================"
echo "Cloning ZMQ from - $ZMQ_URL"
git clone $ZMQ_URL $ZMQ_PATH
cd $ZMQ_PATH
mkdir cmake-build
cd cmake-build
cmake ..
make
cp ${ZMQ_PATH}/include/* $EXTERNAL_IOS_INCLUDE_DIR
cp ${ZMQ_PATH}/cmake-build/lib/libzmq.a $EXTERNAL_IOS_LIB_DIR

View file

@ -27,6 +27,10 @@ if [ ! -f ${EXTERNAL_IOS_INCLUDE_DIR}/IOKit/IOTypes.h ]; then
cp /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/IOTypes.h ${EXTERNAL_IOS_INCLUDE_DIR}/IOKit/IOTypes.h
fi
if [ ! -f ${EXTERNAL_IOS_INCLUDE_DIR}/IOKit/IOMapTypes.h ]; then
cp /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/IOMapTypes.h ${EXTERNAL_IOS_INCLUDE_DIR}/IOKit/IOMapTypes.h
fi
if [ ! -f ${EXTERNAL_IOS_INCLUDE_DIR}/IOKit/IOKitLib.h ]; then
cp /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/IOKitLib.h ${EXTERNAL_IOS_INCLUDE_DIR}/IOKit/IOKitLib.h
fi

View file

@ -21,6 +21,8 @@ class SecretKey {
SecretKey('wyreSecretKey', () => ''),
SecretKey('wyreApiKey', () => ''),
SecretKey('wyreAccountId', () => ''),
SecretKey('moonPayApiKey', () => ''),
SecretKey('moonPaySecretKey', () => ''),
];
final String name;