Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.ligi:trezor-android:purify_proto_210_tag_3'
}
dependencies {
implementation("com.github.ligi:trezor-android:purify_proto_210_tag_3")
}
<dependency>
<groupId>com.github.ligi</groupId>
<artifactId>trezor-android</artifactId>
<version>purify_proto_210_tag_3</version>
</dependency>
libraryDependencies += "com.github.ligi" % "trezor-android" % "purify_proto_210_tag_3"
:dependencies [[com.github.ligi/trezor-android "purify_proto_210_tag_3"]]
TREZOR Management App and Communication Library for Android
You can add the library via jitpack. Add to jitpack as a repository:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
...
}
}
Then you can add the dependency like this:
dependencies {
compile 'com.github.trezor.trezor-android:trezor-lib:v1.0.4'
...
}
Please consider using gradle witness to improve security.
TREZOR has to be connected to Android by OTG cable. The Android device needs to support such connections.