Files
Meshtastic-Android/build.gradle
James Rich 4242afef9c feat: Introduce Version Catalog for Dependency Management (#1607)
* feat: Introduce Version Catalog for Dependency Management

This commit introduces a version catalog via `libs.versions.toml` to centralize and manage project dependencies. It replaces the previous hardcoded dependency versions in `app/build.gradle` with references to the version catalog. This change enhances maintainability and organization by centralizing dependency management.

- Added `gradle/libs.versions.toml` to define dependencies and their versions.
- Updated `app/build.gradle` to utilize dependencies from the version catalog.

* chore: migrate plugins to version catalog

* chore: sort lines in `libs.versions.toml`

-Sorts `versions`, `dependencies`, and `plugins` references alphabetically.

* feat: pin ZXing Core dependency

*   Suppressed warning about updating zxing-core to avoid confusion.
*   Added a note to avoid updating zxing-core.

* refactor: Enforce consistent `implementation()` calls in `build.gradle`

-   Ensures all library dependencies are called with `implementation(libs.xxx)` instead of `implementation libs.xxx` in `build.gradle`.

* feat: use version catalog bundles

- Updated dependencies in the app build.gradle to use bundles where possible.

* fix: fix ui test dependency declarations

* chore: comments for clarity

* fix: remove material3 from this PR
2025-02-24 18:42:37 -06:00

52 lines
1.3 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
useCrashlytics = false
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath libs.agp
classpath libs.kotlin.gradle.plugin
classpath libs.kotlin.serialization
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// Firebase Crashlytics
if (useCrashlytics) {
classpath libs.google.services
classpath libs.firebase.crashlytics.gradle
}
// protobuf plugin - docs here https://github.com/google/protobuf-gradle-plugin
classpath libs.protobuf.gradle.plugin
classpath libs.hilt.android.gradle.plugin
}
}
plugins {
alias (libs.plugins.kotlin.jvm) apply false
alias (libs.plugins.devtools.ksp) apply false
alias (libs.plugins.compose) apply false
}
allprojects {
repositories {
google()
mavenCentral()
// jcenter()
maven { url 'https://jitpack.io' }
//maven { url "https://plugins.gradle.org/m2/" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}