Anjay

Anjay LwM2M library

License

License

GroupId

GroupId

com.avsystem.anjay
ArtifactId

ArtifactId

anjay-android
Last Version

Last Version

2.11.0
Release Date

Release Date

Type

Type

aar
Description

Description

Anjay
Anjay LwM2M library
Project URL

Project URL

https://www.avsystem.com/products/anjay/
Source Code Management

Source Code Management

https://github.com/AVSystem/Anjay-java

Download anjay-android

How to add to project

<!-- https://jarcasting.com/artifacts/com.avsystem.anjay/anjay-android/ -->
<dependency>
    <groupId>com.avsystem.anjay</groupId>
    <artifactId>anjay-android</artifactId>
    <version>2.11.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.avsystem.anjay/anjay-android/
implementation 'com.avsystem.anjay:anjay-android:2.11.0'
// https://jarcasting.com/artifacts/com.avsystem.anjay/anjay-android/
implementation ("com.avsystem.anjay:anjay-android:2.11.0")
'com.avsystem.anjay:anjay-android:aar:2.11.0'
<dependency org="com.avsystem.anjay" name="anjay-android" rev="2.11.0">
  <artifact name="anjay-android" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.avsystem.anjay', module='anjay-android', version='2.11.0')
)
libraryDependencies += "com.avsystem.anjay" % "anjay-android" % "2.11.0"
[com.avsystem.anjay/anjay-android "2.11.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Anjay-java

Maven Central Maven Central

About

This project provides almost 1:1 API bindings between Anjay (written in C) and Java, thus making it possible to run Anjay clients on Android for example.

This is a preview release and we don't provide any guarantees about API stability or library reliability.

Using in Android Studio

This project is released to Maven Central repository as com.avsystem.anjay.anjay-android. Add mavenCentral() in repositories section of your build script and implementation 'com.avsystem.anjay:anjay-android:2.+' in dependencies to use it.

Using anjay-java package

Although the anjay-java package is released on Maven Central repository, it requires native shared library to be available. See the Compilation guide for details how to build the native library.

Compilation guide

First of all, remember to update all submodules using git submodule update --init --recursive.

Build library

./gradlew :library:build

The jar file is placed in library/build/libs directory. Note that it doesn't include the native library, which can be found in library/build/cmake directory.

Build and run demo

./gradlew :demo:build
java -Djava.library.path=library/build/cmake/ -jar demo/build/libs/demo.jar

By default, the client attempts to connect to coap://127.0.0.1:5683, but it can be customized using command line arguments. Use --help to see all available options.

Building for Android

ANDROID_SDK_ROOT=<path to Android SDK> ./gradlew -Pandroid :library:build

The aar files are in library/build/outputs/aar directory.

Running tests

./gradlew :testing:check
com.avsystem.anjay

AVSystem

Device Management Solutions

Versions

Version
2.11.0
2.8.0.1
2.8.0