/compose-bom

Compose BOM (bill of materials) - alpha edition

Primary LanguageShellApache License 2.0Apache-2.0

Maven Central Build status

Compose BOM (alpha edition)

The Android team at Google introduced a BOM (Bills of Materials) to simplify managing Compose dependencies, late in 2022. You can read more about the BOM in the official setup documentation: https://developer.android.com/jetpack/compose/setup#using-the-bom

The official BOM is great for automatically using the latest stable dependencies, but there are times when you may want to depend on the latest non-stable versions instead (alphas, etc). That is where this repository comes in. This repository contains a copy of the official Compose BOM, but with the latest versions of each library.

It is always up to date, through the amazing Renovate app, which updates the dependencies in this repository automatically.

Using the BOM

'Stable'

The 'stable' releases are those which are tagged. I use quotes on 'stable' because you are still using alpha versions underneath, so YMMV.

Maven Central

repositories {
    mavenCentral()
}

dependencies {
    api(platform("dev.chrisbanes.compose:compose-bom:2023.04.00-beta02"))

    // Use whichever Compose artifacts you need without a version number
    implementation("androidx.compose.foundation:foundation")
    implementation("androidx.compose.material:material")
    implementation("androidx.compose.material3:material3")
}

Snapshot

We also publish SNAPSHOTs which are deployed on every commit.

Maven Central

repositories {
    maven("https://oss.sonatype.org/content/repositories/snapshots/")
}

dependencies {
    api(platform("dev.chrisbanes.compose:compose-bom:2023.04.00-SNAPSHOT"))

    // Use whichever Compose artifacts you need without a version number
    implementation("androidx.compose.foundation:foundation")
    implementation("androidx.compose.material:material")
    implementation("androidx.compose.material3:material3")
}

License

Copyright 2023 Chris Banes
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.