Skip to content

0.51.0

Compare
Choose a tag to compare
@LouisCAD LouisCAD released this 25 Oct 14:53
· 149 commits to main since this release

Version 0.51.0 (2022-10-25)

Support Jetpack Compose BoM

Yesterday, Google released a BoM for Jetpack Compose.
Today we're introducing first-class support for it.

To take advantage of it, you just need to add the dependency on platform(AndroidX.compose.bom).
Just like Firebase.bom, make sure you add it before any dependent dependency:

dependencies {
    implementation(platform(AndroidX.compose.bom)) // Add this FIRST
    implementation(AndroidX.compose.material3) // Related dependencies AFTER
    implementation(AndroidX.compose.material3.windowSizeClass) // Same as above
}

In case you need to use a pre-release version (alpha, beta, rc…), use the withVersionPlaceholder() function as such:

dependencies {
    implementation(platform(AndroidX.compose.bom)) // Enables the BoM and depends on it
    implementation(AndroidX.compose.icons.extended) // Uses version defined in the BoM
    implementation(AndroidX.compose.material3.withVersionPlaceholder()) // Separate version in versions.properties
}

Fix StabilityLevel calculation for number-less pre-versions

Since last changes in the Version class, versions like 1.7.20-RC and 1.7.20-Beta would be marked as stable instead of respectively ReleaseCandidate and Beta because the logic expected a number in all cases.

The number is now optional for all pre-versions, except milestones.

To prevent future recurrence of such regression, this commit
also adds tests that assert the expected stability level of
many known versions from various libraries.

New dependency notations:

Click to expand (11)
  • AndroidX.asyncLayoutInflater.appcompat
  • AndroidX.compose.bom
  • AndroidX.dataStore.core.okio
  • AndroidX.graphics.core
  • AndroidX.input.motionPrediction
  • AndroidX.paging.testing
  • AndroidX.test.espresso.device
  • AndroidX.tv.foundation
  • AndroidX.tv.material
  • Firebase.dynamicModuleSupport
  • Google.firebase.dynamicModuleSupport