All Versions
33
Latest Version
Avg Release Cycle
55 days
Latest Release
-

Changelog History
Page 1

  • v2.6.1 Changes

    • ๐Ÿ”ฆ Expose state restoration functions (#611)
    • ๐Ÿ‘‰ Use passed scope as fragment if possible (#618)
  • v2.6.0 Changes

    ๐Ÿš€ Big thanks to @itsandreramon for contributing the two main improvements in this release!

    • ๐Ÿ”ง Pre-configure Hilt by adding a new "mvrx-hilt" artifact (#598)

    ๐Ÿ“š See the updated Hilt documentation for guidance on how to more easily use Hilt with Mavericks https://airbnb.io/mavericks/#/dagger?id=hilt

    • โž• Add support to use Mavericks with JUnit 5 (#600)

    ๐Ÿ“š See the new testing documentation at https://airbnb.io/mavericks/#/testing for details.

    • Don't expose lifecycleAwareLazy in viewModel return type (#603)
  • v2.5.1 Changes

    • โž• Add ability to manually pass argument to composable viewModel factories (#595)
    • ๐Ÿ›  Fix Fragment arguments not being correctly passed to viewmodel state initialization in compose usage (#595)
    • Switch mavericks-compose artifact to use same versioning scheme as other artifacts
  • v2.5.0 Changes

    • ๐Ÿ›  Fix issue when the LocalContext is not directly an Activity (#582)
    • โšก๏ธ update to Compose 1.0.4, Kotlin 1.5.31, Koin 3.1.3 (#586)
    • ๐Ÿคก Ignore VerifyError Exception when loading potential mockable classes #590
  • v2.4.0 Changes

    • โž• Add covariant recreation support (#565)
    • Exposing unique subscription handling for custom flow operations (#560)
    • โž• Add support for restoring ViewModels that were initially created with a companion factory in a superclass #566
  • v2.3.0 Changes

    • Error handling enhancements (#540)
    • โฌ†๏ธ Upgraded Compose to beta07 (#549)

    ๐Ÿ‘ Note: Compose support is experimental and mvrx-compose artifact is at version 2.1.0-alpha02

  • v2.2.0 Changes

    • ๐Ÿ›  Fix subscriptionLifecycleOwner to use viewLifecycleOwner in Fragment's onCreateView (#533)
    • โœ‚ Remove createUnsafe and don't auto-subscribe on background threads (#525)
    • ๐Ÿ›  Fix lifecycle 2.3.0 throwing IllegalStateException when using MavericksLauncherActivity (#523)
  • v2.1.0 Changes

    • โฌ†๏ธ Upgraded to Kotlin 1.4.30.
    • โœ‚ Removed @RestrictTo annotations in favor of just @InternalMavericksApi. The Kotlin opt-in annotations work more reliably than the Android lint rules and there is no need for both.
    • ๐Ÿš€ Created initial release of mavericks-compose.

    ๐Ÿ’ฅ Breaking Changes

    • ActivityViewModelContext and MavericksViewModelFactory now uses ComponentActivity instead of FragmentActivity to improve Compose interop. ComponentActivity is the super class of FragmentActivity so you may need to replace FragmentActivity with ComponentActivity if you using ActivityViewModelContext.
  • v2.0.0 Changes

    ๐Ÿ“š Mavericks 2.0 is a ground up rewrite for coroutines. Check out the documentation for 2.0 to find out what is new and how to upgrade.

    ๐Ÿ’ฅ Breaking Changes

    • All mvrx artifact names are now mavericks.
    • If you are using RxJava, you will need to use mavericks-rxjava2 to maintain backwards compatibility. New Mavericks users who just use coroutines can just use mavericks.
    • If your MavericksView/Fragment does not use any ViewModels, invalidate() will NOT be called in onStart(). In MvRx 1.x, invalidate would be called even if MvRx was not used at all. If you would like to maintain the original behavior, call postInvalidate() from onStart in your base Fragment class
    • MavericksViewModel and BaseMvRxViewModel (from mavericks-rxjava2) no longer extends Jetpack ViewModel. However, viewModelScope and onCleared() still exist to match the existing API
    • The order of nested with and set states has changed slightly. It now matches the original intention. If you had code like: kotlin withState { // W1 withState { // W2 } setState { // S1 setState { // S2 setState { // S3 } } } } Previously, setState would only be prioritized at that nesting level so it would run: [W1, S1, W2, S2, S3] Now, it will run: [W1, S1, S2, S3, W2]
    • viewModelScope is now a property on MavericksViewModel and BaseMvRxViewModel (from mavericks-rxjava2), not the Jetpack extension function for ViewModel. Functionally, this is the same but the previous viewModelScope import will now be unused
    • ๐Ÿ— If you had been using any restricted internal mavericks library functions your build may break as they have been renamed (you shouldn't be doing this, but in case you are...)

    Other Changes

    • ๐Ÿ‘‰ Make MavericksViewModel extension functions protected (#488)
    • โž• Add MavericksViewModel.awaitState (#487) to access current ViewModel state via a suspend function
    • Mark all @RestrictTo APIs with @InternalMavericksApi (#480)
    • ๐Ÿคก Api additions to the mocking framework (#475) (#477)
    • โœ… Migrated CoroutinesStateStore to SharedFlow (#469)
    • ๐Ÿคก Launcher and mock speed optimizations (#468)
    • FragmentViewModelContext now allows for custom ViewModelStoreOwner and/or SavedStateRegistry that are different from the fragment ones in FragmentViewModelContext. (#443)
    • โž• Add mavericks-navigation artifact to support AndroidX Navigation destination ViewModels navGraphViewModel(R.id.my_graph) (#443)
  • v2.0.0-beta3 Changes

    December 02, 2020

    ๐Ÿ”„ Changes since beta 2

    ๐Ÿ‘‰ Make MavericksViewModel extension functions protected (#488)
    โž• Add MavericksViewModel.awaitState (#487) to access current ViewModel state via a suspend function
    Mark all @RestrictTo APIs with @InternalMavericksApi (#480)
    ๐Ÿคก Api additions to the mocking framework (#475) (#477)
    โœ… Migrated CoroutinesStateStore to SharedFlow (#469)
    ๐Ÿคก Launcher and mock speed optimizations (#468)