Skip to content

Releases: pubiqq/lifecycleprops

2.1.0

07 Jul 21:25
Compare
Choose a tag to compare

No changes except dependency updates.

Library dependency updates

Dependency Previous version New version
Kotlin 1.8.0 1.9.0
AndroidX Fragment 1.5.7 1.6.0
AndroidX Lifecycle 2.5.1 2.6.1

2.0.0

19 Jun 15:55
Compare
Choose a tag to compare

What's new

  • Added global configurations for lifecycle-aware properties (see LifecycleProps).
  • lifecycleAware and viewLifecycleAware delegates now throw an exception if the property value is not initialized when a lifecycle event with a handler occurs (before, the delegates didn't throw exceptions in this case). This change is made to ensure that all lifecycle event handlers will be invoked for the property.
  • Read/write lifecycleAware and viewLifecycleAware delegates now throw an exception when trying to assign a value to an already initialized property (before, the delegates didn't throw exceptions in this case). This change is made to ensure that all lifecycle event handlers will be invoked for the same object within the lifecycle.
  • All delegates now automatically close AutoCloseable properties when an ON_DESTROY event occurs.

Library dependency updates

Dependency Previous version New version
Kotlin 1.7.0 1.8.0
AndroidX Activity 1.4.0 - (removed)
AndroidX Fragment 1.4.1 1.5.7
AndroidX Lifecycle 2.4.1 2.5.1

1.1.0

27 Jun 20:43
Compare
Choose a tag to compare

No changes except dependency updates.

Library dependency updates

Dependency Previous version New version
Kotlin 1.6.10 1.7.0

1.0.0

12 Apr 22:50
Compare
Choose a tag to compare

Initial release.