moko-permissions
moko-permissions copied to clipboard
retainInstance is deprecated
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.