Installation
Step 1: Configure settings.gradle.kts
-
Get access token from the Silence Laboratories team.
-
Add the following in your settings.gradle.kts :
Under
dependencyResolutionManagement{repositories{}}
DSLmaven {
url =
uri("https://maven.pkg.github.com/silencelaboratories/")
credentials {
username = "github_username"
password = "token_from_silence_laboratories"
}
}Your final
dependencyResolutionManagement
block will look like this (along with your own configuration)dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url =
uri("https://maven.pkg.github.com/silencelaboratories/")
credentials {
username = "github_username"
password = "token_from_silence_laboratories"
}
}
//Other private repos or other resolution configuration. Or maybe another maven repo.
}
}
Step 2: Configure app level build.gradle.kts
-
Add the following dependency in your dependencies block
implementation("com.silencelaboratories.silentshard:trio-android:1.0.0")
Your final
dependencies
block will look like thisdependencies {
implementation("com.silencelaboratories.silentshard:trio-android:1.0.0")
//Your Other dependencies
//..
//..
}
Step 3: Gradle-Sync
- Sync gradle with project files and that's it.