Skip to content
Michel Meier edited this page Sep 12, 2019 · 9 revisions

How to add the SDK to your project

System dependencies

  • Java 8
  • Sodium library for encryption, decryption, ...
    • Mac
      • brew install libsodium
    • Linux
      • CentOS
      • Ubuntu / Debian
        • apt-get install libsodium18
    • Windows
      • get latest release libsodium
      • download the latest pre-built binary (e.g. libsodium-1.0.18-msvc.zip)
      • extract libsodium.dll to C:\Windows\System32

Include aepp-sdk-java as dependency

You can choose between release versions or snapshot version when adding the SDK to your project.

Include a release version

Download

Maven

...
<repositories>
  <repository>
    <id>jcenter</id>
    <url>https://jcenter.bintray.com/</url>
  </repository>
  <!-- add repository to resolve tuweni library supporting RLP encoding -->
  <repository>
    <id>tuweni</id>
    <url>https://dl.bintray.com/tuweni/tuweni/</url>
  </repository>
</repositories>

<dependency>
    <groupId>com.kryptokrauts</groupId>
    <artifactId>aepp-sdk-java</artifactId>
    <version>1.2.0</version>
</dependency>
...

Gradle

repositories {
  jcenter()
  maven { url "https://dl.bintray.com/tuweni/tuweni" }
}

compile "com.kryptokrauts:aepp-sdk-java:1.2.0"

Include a snapshot version

You can access the latest snapshot by adding "-SNAPSHOT" to the version number and adding the repository https://oss.jfrog.org/artifactory/oss-snapshot-local to your build.

You can also reference a specific snapshot. Here's the list of snapshot versions.

Maven

...
<repositories>
  <repository>
    <id>jcenter</id>
    <url>https://jcenter.bintray.com/</url>
  </repository>
  <!-- add repository to resolve tuweni library supporting RLP encoding -->
  <repository>
    <id>tuweni</id>
    <url>https://dl.bintray.com/tuweni/tuweni/</url>
  </repository>
  <repository>
    <id>oss-snapshot-local</id>
    <url>https://oss.jfrog.org/artifactory/oss-snapshot-local</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.kryptokrauts</groupId>
    <artifactId>aepp-sdk-java</artifactId>
    <version>1.2.1-SNAPSHOT</version>
  </dependency>
</dependencies>
...

Gradle

repositories {
  jcenter()
  maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
  maven { url "https://dl.bintray.com/tuweni/tuweni" }
}

compile "com.kryptokrauts:aepp-sdk-java:1.2.1-SNAPSHOT"
Clone this wiki locally
You can’t perform that action at this time.