Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
implementation(project(":permissions-notification"))
implementation(project(":scanner-ble"))

implementation(libs.nordic.blek.client.android)
implementation(nordic.blek.client.android)

implementation(libs.androidx.compose.material.iconsExtended)

Expand Down
87 changes: 0 additions & 87 deletions gradle/libs.versions.toml

This file was deleted.

13 changes: 13 additions & 0 deletions gradle/nordic.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Versions of Nordic libraries used in this project.

# This is a subset of the Version Catalog available at https://github.com/NordicSemiconductor/Android-Version-Catalog
# The version catalog can be updated independently of this project after the release of this library.

[versions]
log = "2.5.0"
blek = "2.0.0-alpha08"

[libraries]
log = { group = "no.nordicsemi.android", name = "log", version.ref = "log" }
blek-client-core-android = { group = "no.nordicsemi.kotlin.ble", name = "client-core-android", version.ref = "blek" }
blek-client-android = { group = "no.nordicsemi.kotlin.ble", name = "client-android", version.ref = "blek" }
2 changes: 1 addition & 1 deletion logger/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ dokka {
dependencies {
implementation(project(":ui"))

api(libs.nordic.log)
api(nordic.log)
}
2 changes: 1 addition & 1 deletion scanner-ble/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ dependencies {
implementation(project(":ui"))
implementation(libs.androidx.compose.material.iconsExtended)

api(libs.nordic.blek.client.core.android)
api(nordic.blek.client.core.android)
}
38 changes: 35 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,51 @@
pluginManagement {
repositories {
mavenLocal()
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
gradlePluginPortal {
content {
includeGroupByRegex("com\\.gradle.*")
includeGroupByRegex("no\\.nordicsemi.*")
includeGroupByRegex("org\\.jetbrains")
}
}
}
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenLocal()
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
}
versionCatalogs {
// Use Nordic Gradle Version Catalog with common external libraries versions.
create("libs") {
from("no.nordicsemi.android.gradle:version-catalog:2.10-1")
}
// Fixed versions for Nordic libraries.
create("nordic") {
from(files("gradle/nordic.versions.toml"))
}
// Nordic Version Catalog is released after library releases, so cannot be used internally in libs.
// create("nordic") {
// from("no.nordicsemi.android:version-catalog:2025.10.00")
// }
}
}
rootProject.name = "Common Libraries"

Expand Down