Run build.sh.
-
find target -name "*.a" | grep ios | grep rust | xargs lipo -create -output "libhello_rust-ios.a"
-
"cp
find target -name "*.a" | grep linux | grep rust
libhello_rust-android.a" -
cp libhello_rust-android.a ../android/hello-jni/jni/libhello_rust-android.a
-
cp libhello_rust-ios.a ../ios/libhello_rust-ios.a
Actions are processed in Rust. Everything is always async, and at the JS -> Rust interface layer we'll always return a promise.
Get Profiles stored locally. Each profile may be associated with multiple git repositories.
{
"action": "profiles_get_all",
"parameters": { "username": "jdoe" }
}
Get a feed
Check username availability.
{
"action": "githost_check_username_availability",
"parameters": { "username": "jdoe" }
}
Register User
{
"action": "githost_register_user",
"parameters": {
"name": "John Doe",
"email": "[email protected]",
"username": "jdoe",
"password": "secret"
}
}
Add Sync
{
"action": "sync_add",
"parameters": { "url": "https://github.com/jeswin/gitstadata" }
}
Remove Sync
{
"action": "sync_remove",
"parameters": { "url": "https://github.com/jeswin/gitstadata" }
}
Sqlite Queries
{
"action": "sqlite_query",
"parameters": {
"query": "SELECT * FROM comments WHERE username = @username",
"parameters": {
"username": "jeswin"
}
}
}