Installation
Installing the Android SDK.
Github Packages
Create a Personal Access Token on Github
Inside your GitHub Account:
Go to Settings -> Developer Settings -> Personal Access Tokens -> Generate new token
Make sure to select the scope read:packages and Generate a token
After the token is generated, be sure to copy your new personal access token. It will not be accessible again. If the key is lost, the only option is to generate a new key.
Configure your Github Personal Access Token
To configure your token, a github.properties file containing your Github User ID and Personal Access Token must be placed in your project's root directory as shown below:
Alternatively, you can set the environment variables GPR_USER
and GPR_API_KEY
.
Add Github Packages Repository to Application Module's build.gradle
Next, define the Github Packages as a repository in the application module's build.gradle by adding the following section:
Add Dependency to Snapscreen SDK in Application Module's build.gradle
Note: If you have configured the project repositories via settings.gradle and changed the dependencyResolutionManagement to settings such as FAIL_ON_PROJECT_REPOS this may necessitate a change in where the repository is defined.
Last updated