Anjay

Anjay LwM2M library

Лицензия

Лицензия

Группа

Группа

com.avsystem.anjay
Идентификатор

Идентификатор

anjay-android
Последняя версия

Последняя версия

2.11.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

Anjay
Anjay LwM2M library
Ссылка на сайт

Ссылка на сайт

https://www.avsystem.com/products/anjay/
Система контроля версий

Система контроля версий

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

Скачать anjay-android

Имя Файла Размер
anjay-android-2.11.0.pom
Обзор

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
2.11.0
2.8.0.1
2.8.0