Releases: pubiqq/lifecycleprops
Releases · pubiqq/lifecycleprops
2.1.0
2.0.0
What's new
- Added global configurations for lifecycle-aware properties (see
LifecycleProps
). lifecycleAware
andviewLifecycleAware
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
andviewLifecycleAware
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 anON_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 |