Skip to content

Releases: fornewid/material-motion-compose

0.9.0-rc03

01 Jul 01:31
Compare
Choose a tag to compare
0.9.0-rc03 Pre-release
Pre-release

Built to work with Jetpack Compose 1.2.0-rc03

What’s Changed

  • Updates to Compose 1.2.0-rc03 and Compose Compiler 1.2.0 (#164) @fornewid

0.9.0-rc02

23 Jun 08:16
Compare
Choose a tag to compare
0.9.0-rc02 Pre-release
Pre-release

Built to work with Jetpack Compose 1.2.0-rc02

What’s Changed

0.9.0-rc01

16 Jun 15:53
Compare
Choose a tag to compare
0.9.0-rc01 Pre-release
Pre-release

Built to work with Jetpack Compose 1.2.0-rc01

What’s Changed

0.9.0-beta03

02 Jun 02:04
Compare
Choose a tag to compare
0.9.0-beta03 Pre-release
Pre-release

Built to work with Jetpack Compose 1.2.0-beta03

What’s Changed

0.9.0-beta02

19 May 02:22
Compare
Choose a tag to compare
0.9.0-beta02 Pre-release
Pre-release

Built to work with Jetpack Compose 1.2.0-beta02

What’s Changed

0.9.0-beta01

12 May 16:08
Compare
Choose a tag to compare
0.9.0-beta01 Pre-release
Pre-release

Built to work with Jetpack Compose 1.2.0-beta01

What’s Changed

0.9.0-alpha09

03 May 11:28
Compare
Choose a tag to compare
0.9.0-alpha09 Pre-release
Pre-release

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

03 May 09:34
Compare
Choose a tag to compare

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

01 May 17:20
Compare
Choose a tag to compare
0.9.0-alpha08 Pre-release
Pre-release

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

0.8.3

01 May 17:12
Compare
Choose a tag to compare

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