Installation
Requirements
The Android SDK requires SDK version >=24 with Kotlin version >= 1.7. The SDK is provided as multiple AAR files. These files are so-called fat AARs, bundling dependencies which are not publicly available.
Getting started
All SDK packages are accessible in a maven repository. Adding this access repository to your android project requires specifying an access token that you can generate on GitLab:
- Go to the Access Tokens section
in your profile and create an access token with a scope of
read_api
. Save it right to the clip board right away. - Create (or edit) file
~/.gradle/gradle.properties
and add your access token. In order to work flawlessly with the provided sample configuration, we suggest you to use the token name that is already used in the example:gitLabComunyPrivateToken
. Add a line like:gitLabComunyPrivateToken=<your access token>
. - Add the Trinity ID Wallet SDK dependencies:
- Main SDK dependency
implementation "de.comuny:trinityidwallet:VERSION"
- Module dependecies regarding your needs:
- Twilio module dependency
implementation "de.comuny.module:twilio:VERSION"
- Twilio module dependency
- Additional dependencies (AndroidX lifecycle, retrofit2) have to be added as well. (TBD)
- Main SDK dependency
- Use the SDK.
Adding to the project
Gradle / maven
settings.gradle | |
---|---|
Manually
Alternatively you can also add the artifacts as external dependencies to your project.
First create a folder called libs
in your project and move aar packages there.
Then add the following code to your build gradle.
or and you also have to add these dependenciesNote
For more information about dependencies, see official documentation.
Releases
The latest release is available on GitLab.