IOS Grin Wallet Pod
Add one line into your Podfile
:
pod 'cocoa_grinwallet', :git => 'https://github.com/gottstech/cocoa_grinwallet.git', :tag => 'v1.0.4'
then run pod install
After the pod installation, remember to manually download the libraries to avoid a long building procedure. The libraries can be found in the release page of this repo.
download script
#!/bin/bash
version=`grep " pod 'cocoa_grinwallet'" Podfile | sed "s/.*:tag => '\(.*\)'/\1/"`
mkdir -p Pods/cocoa_grinwallet/cocoa_grinwallet/Library && cd Pods/cocoa_grinwallet/cocoa_grinwallet/Library && rm -f libgrinwallet* || exit 1
wget https://github.com/gottstech/cocoa_grinwallet/releases/download/${version}/libgrinwallet_aarch64-apple-ios.a || exit 1
wget https://github.com/gottstech/cocoa_grinwallet/releases/download/${version}/libgrinwallet_armv7s-apple-ios.a || exit 1
wget https://github.com/gottstech/cocoa_grinwallet/releases/download/${version}/libgrinwallet_x86_64-apple-ios.a || exit 1
printf "3 libs have been downloaded successfully\n"
cd - > /dev/null || exit 1
ls -l Pods/cocoa_grinwallet/cocoa_grinwallet/Library
- Install Xcode build tools:
xcode-select --install
- Install Rust:
curl https://sh.rustup.rs -sSf | sh
- Add ios architectures to rustup:
rustup target add aarch64-apple-ios x86_64-apple-ios armv7s-apple-ios
- Install
cargo-lipo
, a cargo sub-command for creating iOS libs:
cargo install cargo-lipo
git clone --recursive https://github.com/gottstech/cocoa_grinwallet.git
cd cocoa_grinwallet/rust
cargo lipo --release --targets aarch64-apple-ios,x86_64-apple-ios,armv7s-apple-ios
./copy_libs.sh
Note:
- The generated libs are in
Library/
folder.
https://github.com/gottstech/cocoa_grinwallet/wiki
- [[Grin Wallet Cocoa API Guide|Grin-Wallet-Cocoa-API-Guide]]
- Wallet Address Specification
- Wallet Transaction Security on Grin Relay
Apache License v2.0.
The code use the Ironbelly as the initial reference.
The related code taken with thanks and respect, with license details in all derived source files.
Both Ironbelly and this project, are using same open source licence: Apache Licence v2.0.