uniffi-rs-fullstack-examples/hello
Daohan Chong a4a136b6a9
Android example (#2)
* Create Android example

* Update xocdegen

* Improve Android example

* Add CI

* Update gitignore

* Update

* Improve build yml

* Set up JDK

* Temporarily disable android actions

* Use git lfs checkout

* Disable android actions temporarily
2022-03-16 08:40:51 +08:00
..
misc/apple Add apple platform demo 2022-01-08 21:47:11 +08:00
platforms Android example (#2) 2022-03-16 08:40:51 +08:00
src Add semicolon of UDL back and improve tests 2022-01-24 14:21:04 +08:00
.gitignore Android example (#2) 2022-03-16 08:40:51 +08:00
Cargo.toml Android example (#2) 2022-03-16 08:40:51 +08:00
Makefile Android example (#2) 2022-03-16 08:40:51 +08:00
README.md Refine README 2022-01-09 11:34:25 +08:00
build.rs Add initial defination of the hello package 2022-01-08 21:08:02 +08:00

README.md

Todo List Shared

A shared library for the todo list application, which can be used for Android, iOS and other platforms.

Prerequisites

Please refer to the root README.md.

Binary Size

iOS

  • Generate binaries, xcframework and Swift binding: make all

With Rust binary: 503K

# ls -lh
total 536K
drwxr-xr-x 4 _installd _installd  128 Jan  9 09:52 Base.lproj/
-rwxr-xr-x 1 _installd _installd 503K Jan  9 09:52 HelloAppleDemoApp*
-rw-r--r-- 1 _installd _installd 1.5K Jan  9 09:52 Info.plist
drwxr-xr-x 2 _installd _installd   64 Jan  9 09:52 META-INF/
-rw-r--r-- 1 _installd _installd    8 Jan  9 09:52 PkgInfo
drwxr-xr-x 3 _installd _installd   96 Jan  9 09:52 _CodeSignature/
-rw-r--r-- 1 _installd _installd  21K Jan  9 09:52 embedded.mobileprovision

Without Rust binary: 147K

# ls -lh
total 180K
drwxr-xr-x 4 _installd _installd  128 Jan  9 09:57 Base.lproj/
-rwxr-xr-x 1 _installd _installd 147K Jan  9 09:57 HelloAppleDemoApp*
-rw-r--r-- 1 _installd _installd 1.5K Jan  9 09:57 Info.plist
drwxr-xr-x 2 _installd _installd   64 Jan  9 09:57 META-INF/
-rw-r--r-- 1 _installd _installd    8 Jan  9 09:57 PkgInfo
drwxr-xr-x 3 _installd _installd   96 Jan  9 09:57 _CodeSignature/
-rw-r--r-- 1 _installd _installd  21K Jan  9 09:52 embedded.mobileprovision