Installation
Installing the Android SDK.
Github Packages
Create a Personal Access Token on Github
Configure your Github Personal Access Token
gpr.user=GITHUB_USERID
gpr.key=PERSONAL_ACCESS_TOKENAdd Github Packages Repository to Application Module's build.gradle
def githubProperties = new Properties() githubProperties.load(new FileInputStream(rootProject.file("github.properties")))
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/snapodds/sdk-android")
credentials {
/** Create github.properties in root project folder file with
** gpr.usr=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN
** Or set env variable GPR_USER & GPR_API_KEY if not adding a properties file**/
username = githubProperties['gpr.usr'] ?: System.getenv("GPR_USER")
password = githubProperties['gpr.key'] ?: System.getenv("GPR_API_KEY")
}
metadataSources {
mavenPom()
google()
mavenCentral()
artifact()
}
}
}Add Dependency to Snapscreen SDK in Application Module's build.gradle
Last updated
Was this helpful?