-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,239 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSaveMode": "file", | ||
"editor.tabSize": 4, | ||
"editor.insertSpaces": false, | ||
|
||
} | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSaveMode": "file", | ||
"editor.tabSize": 4, | ||
"editor.insertSpaces": false, | ||
"[toml]": { | ||
"editor.defaultFormatter": "tamasfe.even-better-toml" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
# ARK Drop | ||
## Dependencies | ||
|
||
Cross compilation building is done easiest via cross library. | ||
|
||
- [Cross](https://github.com/cross-rs/cross) | ||
|
||
Alternatively you can setup the NDK and build manually | ||
|
||
## Build | ||
|
||
Make sure you have added the nessecary targets to build for android | ||
|
||
```sh | ||
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android | ||
``` | ||
|
||
Build the cdylib for all the targets | ||
|
||
```sh | ||
cross build -p drop_core --target aarch64-linux-android | ||
cross build -p drop_core --target armv7-linux-androideab | ||
cross build -p drop_core --target i686-linux-android | ||
cross build -p drop_core --target x86_64-linux-android | ||
``` | ||
|
||
Generate the bindings using uniffi for kotlin | ||
|
||
```sh | ||
cargo run -p uniffi-bingen generate --library target/x86_64-linux-android/debug/libark_drop_lib.so --language=kotlin --out-dir ./bindings | ||
``` |
Oops, something went wrong.