Skip to content

Conversation

francescocervone
Copy link
Contributor

We had an issue with Markwon and DexGuard.
DexGuard does some kind of optimization that removes the try/catch in the static initializer. This causes the NoClassDefFoundError to be propagated outside causing a crash, when clients don't have commonmark-ext-gfm-strikethrough as a dependency.

Using Class.forName at line 28 fixes the issue.

We added commonmark-ext-gfm-strikethrough to our dependencies as a temporary fix, but this PR should be the real fix.

@noties noties changed the base branch from master to develop March 23, 2020 09:30
@noties
Copy link
Owner

noties commented Mar 23, 2020

Hello @francescocervone !

Thanks for your submission 🙌

@noties noties merged commit cca2409 into noties:develop Mar 23, 2020
@francescocervone francescocervone deleted the feature/fix-dexguard-optimization-issue branch March 24, 2020 08:29
@noties noties mentioned this pull request Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants