|
| 1 | +# android-bom |
| 2 | + |
| 3 | + |
| 4 | +<span style="margin-left: 5px"/> |
| 5 | + |
| 6 | + |
| 7 | +This is the BOM dependency for unified version management of Android modules. |
| 8 | + |
| 9 | +## Configure Dependency |
| 10 | + |
| 11 | +You can add this module to your project using the following method. |
| 12 | + |
| 13 | +### Version Catalog (Recommended) |
| 14 | + |
| 15 | +Add dependency in your project's `gradle/libs.versions.toml`. |
| 16 | + |
| 17 | +```toml |
| 18 | +[versions] |
| 19 | +betterandroid-android-bom = "<version>" |
| 20 | + |
| 21 | +[libraries] |
| 22 | +betterandroid-android-bom = { module = "com.highcapable.betterandroid:android-bom", version.ref = "betterandroid-android-bom" } |
| 23 | +betterandroid-ui-component = { module = "com.highcapable.betterandroid:ui-component" } |
| 24 | +betterandroid-ui-component-adapter = { module = "com.highcapable.betterandroid:ui-component-adapter" } |
| 25 | +betterandroid-ui-extension = { module = "com.highcapable.betterandroid:ui-extension" } |
| 26 | +betterandroid-system-extension = { module = "com.highcapable.betterandroid:system-extension" } |
| 27 | +``` |
| 28 | + |
| 29 | +Configure dependency in your project's `build.gradle.kts`. |
| 30 | + |
| 31 | +```kotlin |
| 32 | +implementation(platform(libs.betterandroid.android.bom)) |
| 33 | + |
| 34 | +implementation(libs.betterandroid.ui.component) |
| 35 | +implementation(libs.betterandroid.ui.component.adapter) |
| 36 | +implementation(libs.betterandroid.ui.extension) |
| 37 | +implementation(libs.betterandroid.system.extension) |
| 38 | +``` |
| 39 | + |
| 40 | +Please change `<version>` to the version displayed at the top of this document. |
| 41 | + |
| 42 | +### Traditional Method |
| 43 | + |
| 44 | +Configure dependency in your project's `build.gradle.kts`. |
| 45 | + |
| 46 | +```kotlin |
| 47 | +implementation(platform("com.highcapable.betterandroid:android-bom:<version>")) |
| 48 | + |
| 49 | +implementation("com.highcapable.betterandroid:ui-component") |
| 50 | +implementation("com.highcapable.betterandroid:ui-component-adapter") |
| 51 | +implementation("com.highcapable.betterandroid:ui-extension") |
| 52 | +implementation("com.highcapable.betterandroid:system-extension") |
| 53 | +``` |
| 54 | + |
| 55 | +Please change `<version>` to the version displayed at the top of this document. |
| 56 | + |
| 57 | +## Function Introduction |
| 58 | + |
| 59 | +`android-bom` does not contain actual code itself. It only serves as the BOM of Android modules for unified dependency version management. |
| 60 | + |
| 61 | +It currently manages the versions of the following modules: |
| 62 | + |
| 63 | +- [ui-component](./ui-component.md) |
| 64 | +- [ui-component-adapter](./ui-component-adapter.md) |
| 65 | +- [ui-extension](./ui-extension.md) |
| 66 | +- [system-extension](./system-extension.md) |
| 67 | + |
| 68 | +::: tip |
| 69 | + |
| 70 | +Jetpack Compose related modules are not included in this BOM, and they currently still keep independent version. |
| 71 | + |
| 72 | +::: |
0 commit comments