Resolve warnings due to import of lifecycle-livedata-core-ktx
Description
Android Studio automatically switches to a wildcard import of androidx.lifecycle.*
when a threshold is reached. This pulls in a deprecated extension that triggers a warning during the build process.
Two options exist for addressing the issue:
- Explicitly create an
Observer
lambda to avoid invoking the extension - Exclude the lifecycle-livedata-core-ktx dependency