GithubHelp home page GithubHelp logo

ivnsch / algonaut_ios Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 228 KB

Shows how to use Algonaut in an iOS app

License: MIT License

Objective-C 0.96% Shell 4.42% C 4.32% Swift 43.52% Rust 46.79%
rust ios algorand swift swiftui blockchain algonaut

algonaut_ios's Introduction

Algonaut iOS example

screenshot

Rust

Shows how to use Algonaut in a native iOS app.

⚠️ Not tested in production yet *

Architecture

  • Rust core (shareable with other platforms, e.g. web), with domain logic and services, like accessing Algonaut.
  • Native app (SwiftUI, etc.)

Instructions

Install rust-bitcode (currently used: nightly-2021-02-25)

As the binaries are not signed, you'll have to convince macOS that it's safe to run them. One solution is to do the following:

  1. cd algonaut_ios/ios_app
  2. cargo +ios-arm64-nightly-2021-02-25 build --target aarch64-apple-ios --release --lib
  3. if it fails because macOS doesn't trust the binary, go to System Preferences -> Security & Privacy and Allow to run binary then go to 2.

Run the project in Xcode. This will build Rust and start the app.

Contributing

  1. Fork
  2. Commit changes to a branch in your fork
  3. Push your code and make a pull request

Acknowledgements

Based on https://github.com/i-schuetz/rust_android_ios. Modifications: Algonaut integration, conversion from async to blocking in FFI interface, Android removed.

* It has been tested on real devices but not uploaded to the App Store or distributed. It should™ work, but just in case. If you use an app based on this example in production, please let me know: [email protected] or issues

algonaut_ios's People

Contributors

ivnsch avatar

Stargazers

Manuel Mauro avatar

Watchers

 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.