Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinosh committed Jul 2, 2024
1 parent 5c68ec3 commit 1c69832
Show file tree
Hide file tree
Showing 12 changed files with 1,239 additions and 60 deletions.
22 changes: 12 additions & 10 deletions .vscode/settings.json
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"
}
}
117 changes: 117 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[workspace]
resolver = "2"
members = [
"core",
"src-tauri"
]
members = ["core", "src-tauri", "uniffi-bingen"]

[workspace.dependencies]
iroh = "0.17.0"
Expand All @@ -20,4 +17,3 @@ rand = "0.8.5"
tokio = { version = "1.37.0", features = ["full"] }
tokio-util = "0.7.11"
bytes = "1.6.0"

31 changes: 30 additions & 1 deletion README.md
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
```
Loading

0 comments on commit 1c69832

Please sign in to comment.