DongDongDongDong / rust-cross-platform-mobile

Crossplatform mobile solution based on Rust for IOS & Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swapi-rust-mobile

Crossplatform mobile solution based on Rust for IOS & Android.

More details here:"Rust & cross-platform mobile development"

In this project you'll find Rust network client, that laods and serialize data from star wars API and pass it to Android and IOS.

Android IOS

Architecture

Project consist of sub-project:

  • Android applicaition
  • IOS application
  • Rust core module
  • Rust Android bridge
  • Rust IOS bridge
Architecture

swapi_core

module wtih shared logic between IOS& Android.

More details: Readme

swapi_adr

Android specific module, that depends on [swapi_core] for networking and provide custom build for JNI communicaiton.

More details: Readme

swapi_ios

IOS specific module, that depends on [swapi_code] for networking and provide custom build for FFI communicaiton.

More details: Readme

Build & Run

Enviroment project

To setup enviroment follow instuctions in :

  • swapi_adr/Readme.
  • swapi_ios/Readme.
  • swapi_core/Readme.

Official guides

Build:

Each project contain scripts folder to automate build.

IOS:

  • ./swapi_ios/scripts/build_release

Andorid:

  • ./swapi_adr/scripts/build_release
  • ./swapi_adr/scripts/create_s_link - create symb link between generated files .so and Android project jniLibs

Build:

  • ./build_release (execute all 3 commands listed on top)
  • ./clean - clean all 3 Rust project

IDE

Based on my experience

Rust has very good support with:

Alternatvie:

About

Crossplatform mobile solution based on Rust for IOS & Android

License:MIT License


Languages

Language:Rust 74.7%Language:Swift 12.1%Language:Kotlin 7.0%Language:Java 4.0%Language:Shell 1.1%Language:C 1.0%Language:Objective-C 0.3%