[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
/ compose-bom Public archive

Compose BOM (bill of materials) - alpha edition

License

Notifications You must be signed in to change notification settings

chrisbanes/compose-bom

Repository files navigation

DEPRECATED

This library is now deprecated and no further releases are planned, as the Compose team have started publishing alpha version of the offical BOM. The first version of the official BOM (as of 6th September 2024) is androidx.compose:compose-bom-alpha:2024.09.02, therefore please migrate to that.

Thanks to everyone who has found this library useful, as well as @eygraber for maintaining it over the past 6 months or so! 🫡

Chris


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.