{"id":20975245,"url":"https://github.com/functionland/wnfs-android","last_synced_at":"2026-02-04T07:10:50.033Z","repository":{"id":64181942,"uuid":"553653020","full_name":"functionland/wnfs-android","owner":"functionland","description":"Android bindings for rust wnfs library","archived":false,"fork":false,"pushed_at":"2024-12-22T21:58:29.000Z","size":8904,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T18:54:45.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/functionland.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-18T14:48:19.000Z","updated_at":"2024-12-22T21:58:32.000Z","dependencies_parsed_at":"2023-01-15T03:00:37.590Z","dependency_job_id":"895167cb-e66f-4279-9136-1bda031de092","html_url":"https://github.com/functionland/wnfs-android","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2Fwnfs-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2Fwnfs-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2Fwnfs-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2Fwnfs-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/functionland","download_url":"https://codeload.github.com/functionland/wnfs-android/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160643,"owners_count":22024574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T04:41:26.693Z","updated_at":"2026-02-04T07:10:49.960Z","avatar_url":"https://github.com/functionland.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/functionland/wnfs-build-aar.svg)](https://jitpack.io/#functionland/wnfs-build-aar)\n\n\n# WNFS-lib For Android\n\nWebnative Filesystem(WNFS) wrapper for Android.\n\n## Usage\n\nExposed endpoint: mkdir, writeFile, writeFileFromPath, readFile, readFileToPath, readFilestreamToPath, rm, cp, mv\n\n- Library is already packaged and published on Jitpack and ready to be used in Android applications (Java, Kotlin). Please checkout the AppMock for all usage examples: https://github.com/functionland/wnfs-android/blob/main/appmock/src/androidTest/java/land/fx/app/WNFSTest.kt\n\n- .aar files are available here that can be imported in ny framework: https://github.com/functionland/wnfs-build-aar\n\n- It can be used in other frameworks, suchas React Native or Flutter as welll. Checkout react-native-fula for an exmaple of how to use this library in react-native and how to transfer the DAG with libp2p: https://github.com/functionland/react-native-fula\n\n\n# Manual Build\n\n## Prerequisites\n\nUse Ubuntu (on Windows it complains about openssl)\n\n- Kotlin toolchain\n- Android SDK + NDK (latest)\n- python3 and Python command available\n- Cargo and CMake\n- java\n- gradle\n- rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android\n\n## Common Errors\n- Make sure the build.gradle shows the correct ndk version you have if you see:\n  \n```bash\n[CXX1104] NDK from ndk.dir at /.../ndk/25.2.9519653 had version [25....] which disagrees with android.ndkVersion [25.1.8937393]\n```\n\n- Make sure you define a local.properties file in the project root with the below line in it if you see NDK not found:\n- \n```bash\nndk.dir=/paht-to-ndk/ndk/25.....\n```\n\n## Debug\n\nMake sure you have switch to `debug` profile in cargo config, which could be found at `lib/build.gradle` \n\nRun the command to build\n\n```sh\n./gradlew lib:assemble\n```\n\nConnect to a device or setup an AVD and check the functionality.\n\n```sh\n./gradlew appmock:connectedCheck\n```\n\n## Build\n\nBefore make a release build, ensure you have set `profile = \"release\"` in cargo config.\n\n```sh\n./gradlew lib:assemble\n```\n\nThe generated release build is `lib/build/outputs/aar/lib-release.aar`\n\n## Publish New Version\n\nEnsure you have committed your changes.\n\n```sh\n./gradlew release\n```\n\nThen simply push to the repo.\n\n\n## Roadmap\n\nPlease note the following might not be done in order:\n\n- [x] Initial version with all functions included\n- [x] Add WNFS tree encryption key generation from an input (deterministically)\n- [x] add error catching\n- [x] add metadata to ls and make it array\n- [x] Improve read function to use a stream. ( :100: v1 Release here )\n- [x] remove dependancy to custom version of wnfs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionland%2Fwnfs-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctionland%2Fwnfs-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionland%2Fwnfs-android/lists"}