Closed renclav closed 2 years ago
should be simple enough to add a catch for VerifyError too, and any other exception type you can think would be good
@elihart I'm not sure what else, to be honest. Quite frankly, I'm still surprised the above can be thrown, I mean, how does it even compile? Could be incompatible interdependent libraries? This might be a one-off, probably best to not overload that catch block any more than necessary, so let's stop at two :) (The maverick in me says, "why not catch em all, it's not like the error is ever relevant to the consumer?")
Sounds good - interested in making the commit? We'll probably be making a new release soon
Using: def mvrx_version = "2.3.0" implementation "com.airbnb.android:mavericks:$mvrx_version" implementation "com.airbnb.android:mavericks-mocking:$mvrx_version" implementation "com.airbnb.android:mavericks-navigation:$mvrx_version" implementation "com.airbnb.android:mavericks-launcher:$mvrx_version"
When launching MavericksLauncherActivity via MavericksLauncherActivity.show(context) the app crashes with the following error:
The issue seems to be that the method getAsMavericksView inside MavericksGlobalMockLibrary.kt only catches ClassNotFoundException exceptions. While I recognise the possibility that this is not related to mavericks, I do think the error handling can be updated with no deviation to the existing library's logic.