GithubHelp home page GithubHelp logo

hayeah / cocoa_grinwallet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gottstech/cocoa_grinwallet

0.0 2.0 0.0 211 KB

:apple: IOS Grin Wallet Lib as Pod :iphone: with the embedded Grin Relay service for easier grin transaction.

License: Apache License 2.0

Ruby 4.32% Swift 6.52% C 7.33% Shell 7.44% Rust 74.39%

cocoa_grinwallet's Introduction

Build Status

cocoa_grinwallet

IOS Grin Wallet Pod

How to import this 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

Build

Set up the environment

  • 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

Build the libs

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.

Document

https://github.com/gottstech/cocoa_grinwallet/wiki

License

Apache License v2.0.

Credits

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.

cocoa_grinwallet's People

Contributors

garyyu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.