moko-permissions icon indicating copy to clipboard operation
moko-permissions copied to clipboard

retainInstance is deprecated

Open khalid64927 opened this issue 2 years ago • 0 comments

Issue Summary:

Currently, the Permission Lib relies on ResolveFragment to maintain its lifecycle in alignment with the application's lifecycle, enabled by a deprecated flag. Although ResolveFragment itself is not deprecated, the flag it utilizes for lifecycle retention has been marked as deprecated by Google (source).

Proposed Solution: Google

Given the deprecation of the flag used by ResolveFragment, it is advisable to consider alternative methods for lifecycle management. One viable approach is to integrate ViewModel with the associated Fragment. This would ensure the persistence of state throughout the application's lifecycle, offering a robust solution in light of the deprecation.

khalid64927 avatar Apr 04 '24 07:04 khalid64927