Overview
The Encore SDK is distributed as a private Maven package hosted on GitHub Packages. You’ll receive a GitHub Personal Access Token from the Encore Dashboard to authenticate and install the package.Prerequisites: Obtain Access Credentials
Before installing the SDK, you need to obtain your access credentials from the Encore Dashboard.Don’t have credentials? Visit dashboard.encorekit.com to create an account, add your app, and receive your SDK access credentials automatically.
- Access Token: A GitHub Personal Access Token (starts with
ghp_...) provided through the Dashboard - API Key: Your public API key (starts with
pk_...) for SDK configuration
Install via Gradle
Step 1: Add the GitHub Packages Repository
Add the Encore Maven repository to your project-levelsettings.gradle.kts:
Step 2: Configure Authentication
Add your credentials to~/.gradle/gradle.properties (create the file if it doesn’t exist):
Step 3: Add the Dependency
Add the SDK to your app-levelbuild.gradle.kts:
Step 4: Sync and Verify
Sync your Gradle project, then verify the SDK is available:Next Steps
Now that the SDK is installed, continue with the integration:- Configure the SDK - Set up your API key and initialize Encore
- Identify Users - Learn how to identify users for offer tracking