davidliu
Committed by GitHub

Use settings.gradle for dependency resolution (#451)

... ... @@ -60,7 +60,7 @@ dependencies {
Compose-based apps should check out our [Android Components SDK](https://github.com/livekit/components-android) for composables support.
You'll also need jitpack as one of your repositories.
You'll also need JitPack as one of your repositories. In your `settings.gradle` file:
```groovy title="settings.gradle"
dependencyResolutionManagement {
... ...
... ... @@ -28,12 +28,6 @@ subprojects {
return
}
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
apply plugin: "com.diffplug.spotless"
spotless {
// optional: limit format enforcement to just the files changed by this feature branch
... ...
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
include ':sample-app', ':sample-app-compose', ':livekit-android-sdk'
rootProject.name = 'livekit-android'
include ':sample-app-common'
... ...