{"id":18604775,"url":"https://github.com/avsystem/anjay-java","last_synced_at":"2025-04-10T20:30:45.138Z","repository":{"id":43284952,"uuid":"306029702","full_name":"AVSystem/Anjay-java","owner":"AVSystem","description":"Anjay LwM2M client library port for Java applications","archived":false,"fork":false,"pushed_at":"2021-12-29T15:32:03.000Z","size":292,"stargazers_count":6,"open_issues_count":4,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T03:41:32.084Z","etag":null,"topics":["android","iot","iot-application","java","lwm2m","lwm2m-client"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AVSystem.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-21T13:14:46.000Z","updated_at":"2023-05-19T21:19:11.000Z","dependencies_parsed_at":"2022-09-10T12:22:27.572Z","dependency_job_id":null,"html_url":"https://github.com/AVSystem/Anjay-java","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AVSystem%2FAnjay-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AVSystem%2FAnjay-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AVSystem%2FAnjay-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AVSystem%2FAnjay-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AVSystem","download_url":"https://codeload.github.com/AVSystem/Anjay-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290019,"owners_count":21078923,"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":["android","iot","iot-application","java","lwm2m","lwm2m-client"],"created_at":"2024-11-07T02:18:57.536Z","updated_at":"2025-04-10T20:30:44.490Z","avatar_url":"https://github.com/AVSystem.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anjay-java [\u003cimg align=\"right\" height=\"50px\" src=\"https://avsystem.github.io/Anjay-doc/_images/avsystem_logo.png\"\u003e](http://www.avsystem.com/)\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.avsystem.anjay/anjay-android?label=maven%20central%3A%20anjay-android)](https://search.maven.org/artifact/com.avsystem.anjay/anjay-android)\n[![Maven Central](https://img.shields.io/maven-central/v/com.avsystem.anjay/anjay-java?label=maven%20central%3A%20anjay-java)](https://search.maven.org/artifact/com.avsystem.anjay/anjay-java)\n\n## About\n\nThis project provides almost 1:1 API bindings between [Anjay](https://github.com/AVSystem/Anjay)\n(written in C) and Java, thus making it possible to run Anjay clients on\n[Android](https://www.android.com/) for example.\n\nThis is a preview release and we don't provide any guarantees about API stability\nor library reliability.\n\n## Using in Android Studio\n\nThis project is released to Maven Central repository as\n`com.avsystem.anjay.anjay-android`. Add `mavenCentral()` in `repositories`\nsection of your build script and `implementation 'com.avsystem.anjay:anjay-android:2.+'` in `dependencies` to use it.\n\n## Using anjay-java package\n\nAlthough the `anjay-java` package is released on Maven Central repository, it\nrequires native shared library to be available. See the Compilation guide for\ndetails how to build the native library.\n\n## Compilation guide\n\nFirst of all, remember to update all submodules using\n`git submodule update --init --recursive`.\n\n### Build library\n\n```sh\n./gradlew :library:build\n```\n\nThe `jar` file is placed in `library/build/libs` directory. Note that it doesn't\ninclude the native library, which can be found in `library/build/cmake`\ndirectory.\n\n### Build and run demo\n\n```sh\n./gradlew :demo:build\njava -Djava.library.path=library/build/cmake/ -jar demo/build/libs/demo.jar\n```\n\nBy default, the client attempts to connect to `coap://127.0.0.1:5683`, but it\ncan be customized using command line arguments. Use `--help` to see all\navailable options.\n\n### Building for Android\n\n```sh\nANDROID_SDK_ROOT=\u003cpath to Android SDK\u003e ./gradlew -Pandroid :library:build\n```\n\nThe `aar` files are in `library/build/outputs/aar` directory.\n\n### Running tests\n\n```sh\n./gradlew :testing:check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favsystem%2Fanjay-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favsystem%2Fanjay-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favsystem%2Fanjay-java/lists"}