Download
Getting Personal Access Token¶
Before downloading this library, you need to configure personal access token in Github.
Click here for configuring it!
!!! info Store your token for later!
Defining Credential¶
After generating your personal access token, store it inside gradle.properties
like this:
gpr_user=yourgithubusername
gpr_key=yourgeneratedpersonalaccesstoken
Defining Repository¶
Add this repository to your gradle configuration:
build.gradle
allProjects {
repositories {
maven {
url = uri("https://maven.pkg.github.com/jimlyas/okdynamic")
credentials {
username = properties["gpr_user"].toString() // (1)
password = properties["gpr_key"].toString() // (2)
}
}
}
}
- Your github username
- Your Personal Access Token that you generate earlier
Adding Dependencies¶
In your app's build.gradle
, add this dependencies:
build.gradle
dependencies {
implementation "com.github.jimlyas:okdynamic:VERSION"
}
Change VERSION to the version of the library you want to use.