mirror of
https://github.com/bitwarden/android.git
synced 2026-03-11 20:54:58 -05:00
46 lines
1.2 KiB
Kotlin
46 lines
1.2 KiB
Kotlin
import java.io.FileInputStream
|
|
import java.util.Properties
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
google {
|
|
content {
|
|
includeGroupByRegex("com\\.android.*")
|
|
includeGroupByRegex("com\\.google.*")
|
|
includeGroupByRegex("androidx.*")
|
|
}
|
|
}
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Loads local user-specific build properties that are not checked into source control.
|
|
*/
|
|
val userProperties = Properties().apply {
|
|
val buildPropertiesFile = File(rootDir, "user.properties")
|
|
if (buildPropertiesFile.exists()) {
|
|
FileInputStream(buildPropertiesFile).use { load(it) }
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven {
|
|
name = "GitHubPackages (Bitwarden)"
|
|
url = uri("https://maven.pkg.github.com/bitwarden/sdk")
|
|
credentials {
|
|
username = ""
|
|
password = userProperties["gitHubToken"] as String? ?: System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
rootProject.name = "Authenticator"
|
|
include(":app")
|
|
|