Mosby V4 - AndroidX support
See original GitHub issueUnfortunately Mosby V3 is not compatable with AndroidX as accessing the backstack to see if a fragment is still in use (or presenter can be released) is not possible anymore in androidx as the method to get this information is “blacklisted” and no accessible from the outside anymore (it was in support.v4 days) see #338 #336
Any workaround suggested in #338 seems to me fragile.
Therefore I considering the following:
What we actually need is a lifecycle callback that tells us when the Fragment is actually destroyed. We could get this information by using AndroidX ViewModel,onCleared()
.
This will not be breaking change, rather it’s a minor implementation detail under the hood.
What do you think?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Developers - Mosby V4 - AndroidX support - - Bountysource
Unfortunately Mosby V3 is not compatable with AndroidX as accessing the backstack to see if a fragment is still in use (or presenter...
Read more >Issues · sockeqwe/mosby - GitHub
A Model-View-Presenter / Model-View-Intent library for modern Android apps - Issues ... sockeqwe / mosby Public ... Mosby V4 - AndroidX support help...
Read more >Ted Mosby - Software Architect - Hannes Dorfmann
Ted Mosby - Software Architect. A library for MVP on Android. Model-View-Presenter Android.
Read more >MVP-Mosby-Api10: NoSuchMethodError android.support.v4.app ...
I override manifest for library to use it with api level 10 and I already test it on android 2.3.3 and it was...
Read more >Support Library Packages - Android Developers
v4 Support Libraries ... These libraries include the largest set of APIs compared to the other libraries, including support for application components, user ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any news? Thank you.
Hi! Tell me please the release date of Mosby v4?