question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mosby V4 - AndroidX support

See original GitHub issue

Unfortunately 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:open
  • Created 4 years ago
  • Reactions:10
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
DanielNovakcommented, Oct 26, 2020

Any news? Thank you.

3reactions
Evgeniy-Shcommented, Nov 11, 2020

Hi! Tell me please the release date of Mosby v4?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found