Releases: fornewid/material-motion-compose
0.9.0-rc03
Built to work with Jetpack Compose 1.2.0-rc03
What’s Changed
0.9.0-rc02
Built to work with Jetpack Compose 1.2.0-rc02
What’s Changed
0.9.0-rc01
Built to work with Jetpack Compose 1.2.0-rc01
What’s Changed
0.9.0-beta03
Built to work with Jetpack Compose 1.2.0-beta03
What’s Changed
0.9.0-beta02
Built to work with Jetpack Compose 1.2.0-beta02
What’s Changed
0.9.0-beta01
Built to work with Jetpack Compose 1.2.0-beta01
What’s Changed
- Updates to Compose 1.2.0-beta01 (#156) @fornewid
- Android Studio Chipmunk | 2021.2.1 (#155) @fornewid
- Remove
compose-material
dependency from library modules (#154) @fornewid - Add API files using metalava (#153) @fornewid
- Create CODEOWNERS (#151) @fornewid
- Merge 'preview' to 'main' (#150) @fornewid
- Merge 'preview' to 'main' (#149) @fornewid
- Update README.md (#148) @fornewid
0.9.0-alpha09
Built to work with Jetpack Compose 1.2.0-alpha08
Breaking changes
Now 'Material Motion for Jetpack Compose' is available on Maven Central! 🎉 🎉 🎉
repositories {
- maven { url "https://jitpack.io" }
+ mavenCentral()
}
dependencies {
- implementation "com.github.fornewid.material-motion-compose:core:<version>"
+ implementation "io.github.fornewid:material-motion-compose-core:<version>"
- implementation "com.github.fornewid.material-motion-compose:navigation:<version>"
+ implementation "io.github.fornewid:material-motion-compose-navigation:<version>"
}
What’s Changed
0.8.4
Built to work with Jetpack Compose 1.1.1
Breaking changes
Now 'Material Motion for Jetpack Compose' is available on Maven Central! 🎉 🎉 🎉
repositories {
- maven { url "https://jitpack.io" }
+ mavenCentral()
}
dependencies {
- implementation "com.github.fornewid.material-motion-compose:core:<version>"
+ implementation "io.github.fornewid:material-motion-compose-core:<version>"
- implementation "com.github.fornewid.material-motion-compose:navigation:<version>"
+ implementation "io.github.fornewid:material-motion-compose-navigation:<version>"
}
What’s Changed
0.9.0-alpha08
Built to work with Jetpack Compose 1.2.0-alpha08
Breaking changes
(1) Add AnimatedContentScope
and AnimatedVisiblityScope
in MaterialMotion.
MaterialMotion(
targetState = state,
- motionSpec = when (state.motionSpecType) {
- MotionSpecType.SharedAxis -> materialSharedAxisY()
- MotionSpecType.FadeThrough -> materialFadeThrough()
- }
+ motionSpec = {
+ when (targetState.motionSpecType) {
+ MotionSpecType.SharedAxis -> materialSharedAxisY()
+ MotionSpecType.FadeThrough -> materialFadeThrough()
+ }
+ }
) { currentState ->
(2) Add AnimatedContentScope
and AnimatedVisiblityScope
in MaterialMotionNavHost.
MaterialMotionNavHost(
navController,
startDestination = "library",
- enterMotionSpec = { _, _ -> translateXIn({ it }) },
- exitMotionSpec = { _, _ -> materialElevationScaleOut() },
- popEnterMotionSpec = { _, _ -> materialElevationScaleIn() },
- popExitMotionSpec = { _, _ -> translateXOut({ it }) }
+ enterMotionSpec = { translateXIn({ it }) },
+ exitMotionSpec = { materialElevationScaleOut() },
+ popEnterMotionSpec = { materialElevationScaleIn() },
+ popExitMotionSpec = { translateXOut({ it }) }
) {
composable(
"first",
- enterMotionSpec = { _, _ -> holdIn() },
- exitMotionSpec = { _, _ -> holdOut() },
+ enterMotionSpec = { holdIn() },
+ exitMotionSpec = { holdOut() },
) { ... }
navigation(
"second",
"subGraph",
- enterMotionSpec = { _, _ -> translateYIn({ it }) },
- exitMotionSpec = { _, _ -> translateYOut({ it }) },
+ enterMotionSpec = { translateYIn({ it }) },
+ exitMotionSpec = { translateYOut({ it }) },
) {
composable("second") { ... }
}
}
(3) Lambdas in Enter/ExitMotionSpec
factories have been moved to the last position in the param list.
- translateXIn({ it })
+ translateXIn { it }
- translateXOut({ it })
+ translateXOut { it }
- translateYIn({ it })
+ translateYIn { it }
- translateYOut({ it })
+ translateYOut { it }
What’s Changed
- Migrate buildSrc to Version Catalog (#144) @fornewid
- [Navigation] Fix Nested NavHost animations (#142) @fornewid
- [Core] Graduate Enter/ExitMotionSpec from experimental (#141) @fornewid
- [Navigation] Add AnimatedContentScope and AnimatedVisiblityScope (#136) @fornewid
- Update to Android Gradle Plugin 7.1.3 (#139) @fornewid
- [Core] Support custom keys in MaterialMotion (#135) @fornewid
- [Core] Support
AnimatedContentScope
in MaterialMotion (#133) @fornewid - [Navigation] Allow nested NavGraphs to take args and deeplinks (#131) @fornewid
- Make visible entries a set (#129) @fornewid
- Fix destination animations being ignored (#127) @fornewid
- [Navigation] Disallow null animations on MaterialMotionNavHost (#123) @fornewid
- Correcting the docs for Navigation (#125) @fornewid
- Updates to Compose 1.2.0-alpha08 (#121) @fornewid
0.8.3
Built to work with Jetpack Compose 1.1.1
Breaking changes
(1) Add AnimatedContentScope
and AnimatedVisiblityScope
in MaterialMotion.
MaterialMotion(
targetState = state,
- motionSpec = when (state.motionSpecType) {
- MotionSpecType.SharedAxis -> materialSharedAxisY()
- MotionSpecType.FadeThrough -> materialFadeThrough()
- }
+ motionSpec = {
+ when (targetState.motionSpecType) {
+ MotionSpecType.SharedAxis -> materialSharedAxisY()
+ MotionSpecType.FadeThrough -> materialFadeThrough()
+ }
+ }
) { currentState ->
(2) Add AnimatedContentScope
and AnimatedVisiblityScope
in MaterialMotionNavHost.
MaterialMotionNavHost(
navController,
startDestination = "library",
- enterMotionSpec = { _, _ -> translateXIn({ it }) },
- exitMotionSpec = { _, _ -> materialElevationScaleOut() },
- popEnterMotionSpec = { _, _ -> materialElevationScaleIn() },
- popExitMotionSpec = { _, _ -> translateXOut({ it }) }
+ enterMotionSpec = { translateXIn({ it }) },
+ exitMotionSpec = { materialElevationScaleOut() },
+ popEnterMotionSpec = { materialElevationScaleIn() },
+ popExitMotionSpec = { translateXOut({ it }) }
) {
composable(
"first",
- enterMotionSpec = { _, _ -> holdIn() },
- exitMotionSpec = { _, _ -> holdOut() },
+ enterMotionSpec = { holdIn() },
+ exitMotionSpec = { holdOut() },
) { ... }
navigation(
"second",
"subGraph",
- enterMotionSpec = { _, _ -> translateYIn({ it }) },
- exitMotionSpec = { _, _ -> translateYOut({ it }) },
+ enterMotionSpec = { translateYIn({ it }) },
+ exitMotionSpec = { translateYOut({ it }) },
) {
composable("second") { ... }
}
}
(3) Lambdas in Enter/ExitMotionSpec
factories have been moved to the last position in the param list.
- translateXIn({ it })
+ translateXIn { it }
- translateXOut({ it })
+ translateXOut { it }
- translateYIn({ it })
+ translateYIn { it }
- translateYOut({ it })
+ translateYOut { it }
What’s Changed
- Migrate buildSrc to Version Catalog (#143) @fornewid
- [Core] Graduate Enter/ExitMotionSpec from experimental (#140) @fornewid
- [Navigation] Add AnimatedContentScope and AnimatedVisiblityScope (#137) @fornewid
- Update to Android Gradle Plugin 7.1.3 (#138) @fornewid
- [Core] Support custom keys in MaterialMotion (#134) @fornewid
- [Core] Support
AnimatedContentScope
in MaterialMotion (#132) @fornewid - [Navigation] Allow nested NavGraphs to take args and deeplinks (#130) @fornewid
- Make visible entries a set (#128) @fornewid
- Fix destination animations being ignored (#126) @fornewid
- [Navigation] Disallow null animations on MaterialMotionNavHost (#122) @fornewid
- Correcting the docs for Navigation (#124) @fornewid