Open eyedol opened 7 months ago
Hi, You are right, it's better to have the necessary ProGuard rules shipped with the library. It will be available in the next release.
Thanks for confirming and considering it for inclusion in the next release.
Are we using reflection? If not, this should not be stripped and if so is a bug with R8. Adding that proguard rule does not seem right, since onOpenTag
should be stripped out if no one is using it!
Usage of the library causes app to crash with Android release builds because
R8
removes unused classes or methods from the Ksoup library. Specifically,Builder#onOpenTag
is stripped out, causing a crash when onlyBuilder#onCloseTag
is called in the app.Here's a simplified example of how the library is used in the app:
Adding the following ProGuard rule resolves the issue:
Ideally, this rule could be shipped with the library to avoid manual configuration by consumers?
I'm unsure of the best way forward, but I believe this issue warrants further investigation.
P.S. Thanks for the library, saved me a ton of time parsing html tags in a KMM project