dracoon-sdk

The Dracoon SDK for Android.

Лицензия

Лицензия

Группа

Группа

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

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

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

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

1.8.0-beta1
Дата

Дата

Тип

Тип

jar
Описание

Описание

dracoon-sdk
The Dracoon SDK for Android.
Ссылка на сайт

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

https://github.com/dracoon/dracoon-java-sdk
Система контроля версий

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

https://github.com/dracoon/dracoon-java-sdk

Скачать dracoon-android-sdk

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

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

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
com.dracoon : dracoon-android-crypto-sdk jar 1.0.1
com.squareup.retrofit2 : retrofit jar 2.5.0
com.squareup.retrofit2 : converter-gson jar 2.5.0
com.google.code.gson : gson jar 2.8.2

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

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

Build Status Maven Central

Dracoon Java SDK

A library to access the Dracoon REST API.

Setup

Minimum Requirements

Java 8 or newer

Download

Maven

Add this dependency to your pom.xml:

<dependency>
    <groupId>com.dracoon</groupId>
    <artifactId>dracoon-sdk</artifactId>
    <version>2.1.0-beta1</version>
</dependency>
Gradle

Add this dependency to your build.gradle:

compile 'com.dracoon:dracoon-sdk:2.1.0-beta1'
JAR import

The latest JAR can be found here.

Note that you also need to include the following dependencies:

  1. Bouncy Castle Provider: https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on
  2. Bouncy Castle PKIX/CMS/...: https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on
  3. Dracoon Crypto SDK: https://mvnrepository.com/artifact/com.dracoon/dracoon-crypto-sdk
  4. Google Gson: https://mvnrepository.com/artifact/com.google.code.gson/gson
  5. Square OkHttp: https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
  6. Square OkIo: https://mvnrepository.com/artifact/com.squareup.okio/okio
  7. Square Retrofit: https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit
  8. Square Retrofit Gson Converter: https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-gson

Java JCE Setup

IMPORTANT FOR JAVA VERSION 8 (<162):

You need to install the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files. Otherwise you'll get an exception about key length or an exception when parsing PKCS private keys.

The Unlimited Strength Jurisdiction Policy Files can be found here:

For Java 9 and above, the Unlimited Strength Jurisdiction Policy Files are no longer needed. (For more information see: https://stackoverflow.com/questions/1179672)

Usage on Android

The Android platform ships with a cut-down version of Bouncy Castle. In the past (pre-Android 3.0), this caused conflicts and there was a separate version of the SDK for Android which used Spongy Castle.

Because there are very few people who use pre-Android 3.0 devices, and the fact that Spongy Castle is not maintained anymore, there is no longer a separate version.

To avoid problems you should reinitialize the Bouncy Castle security provider when your application starts. This can be done by extending Application and using a static initialization block. See following example.

...

import org.bouncycastle.jce.provider.BouncyCastleProvider;

public class DracoonApplication extends Application {
    
    static {
        Security.removeProvider(BouncyCastleProvider.PROVIDER_NAME);
        Security.addProvider(new BouncyCastleProvider());
    }

    ...
    
}

Example

The following example shows how to get all root rooms.

DracoonAuth auth = new DracoonAuth("access-token");

DracoonClient client = new DracoonClient.Builder(new URL("https://dracoon.team"))
        .auth(auth)
        .build();

long parentNodeId = 0L;

NodeList nodeList = client.nodes().getNodes(parentNodeId);
for (Node node : nodeList.getItems()) {
    System.out.println(node.getId() + ": " + node.getParentPath() + node.getName());
}

Documentation

The documentation of the Dracoon SDK can be found here.

Contribution

If you would like to contribute code, fork the repository and send a pull request. We don't use the GitHub Flow, so please create a feature branch of the develop branch and make your changes there.

When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible.

Copyright and License

Copyright Dracoon GmbH. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

com.dracoon

DRACOON

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

Версия
1.8.0-beta1
1.7.1-beta1
1.7.0-beta1
1.6.1-beta1
1.6.0-beta1
1.5.0-beta1
1.4.0-beta1
1.3.0-beta1
1.2.0-beta1
1.1.0-beta1