Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.74 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.74 KB

Vcx SDK for Java and Android

This is a Java wrapper for VCX library. VCX is the open-source library on top of Libindy which fully implements the credentials exchange.

Note: This library is currently in experimental state.

This Java wrapper currently requires Java 8.

How to install

In your maven project add to pom.xml file next content:

  1. Inside repositories tag block add:

    sovrin https://repo.sovrin.org/repository/maven-public
  2. Inside dependencies tag block add:

    com.evernym vcx 0.6.2

Note that before you can use java wrapper you must install c-callable SDK and Vcx.

How to build

JAR

  • run ./gradlew clean build.

The jar will be present in indy-sdk/vcx/wrappers/java/vcx/build/libs

AAR

  • Copy the binaries i.e libvcx.so to folder indy-sdk/vcx/wrappers/java/vcx/android/src/main/jniLibs/<ARCH>.
    • Make sure the binaries are in correct architecture folders.
  • run ./gradlew clean build --project-dir=android in folder indy-sdk/vcx/wrappers/java/vcx

###Publishing the AAR

  • run ./gradlew clean assemble --project-dir=android in folder indy-sdk/vcx/wrappers/java/vcx

Aar will be present in indy-sdk/vcx/wrappers/java/vcx/android/build/outputs/aar

Logging

The Java wrapper uses slf4j as a facade for various logging frameworks, such as java.util.logging, logback and log4j.