image, GifSupport and SvgSupport Class.forName

This commit is contained in:
Dimitry Ivanov 2020-03-24 09:26:36 +03:00
parent abeb5044af
commit 392333806a
3 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
# 4.3.1-SNAPSHOT # 4.3.1-SNAPSHOT
* Fix DexGuard optimization issue ([#216])<br>Thanks [@francescocervone] * Fix DexGuard optimization issue ([#216])<br>Thanks [@francescocervone]
* module `images`: `GifSupport` and `SvgSupport` use `Class.forName` instead access to full qualified class name
[#216]: https://github.com/noties/Markwon/pull/216 [#216]: https://github.com/noties/Markwon/pull/216
[@francescocervone]: https://github.com/francescocervone [@francescocervone]: https://github.com/francescocervone

View File

@ -14,7 +14,8 @@ public abstract class GifSupport {
static { static {
boolean result; boolean result;
try { try {
pl.droidsonroids.gif.GifDrawable.class.getName(); // @since $nap;
Class.forName("pl.droidsonroids.gif.GifDrawable");
result = true; result = true;
} catch (Throwable t) { } catch (Throwable t) {
// @since 4.1.1 instead of printing full stacktrace of the exception, // @since 4.1.1 instead of printing full stacktrace of the exception,

View File

@ -14,7 +14,7 @@ public abstract class SvgSupport {
static { static {
boolean result; boolean result;
try { try {
com.caverock.androidsvg.SVG.class.getName(); Class.forName("com.caverock.androidsvg.SVG");
result = true; result = true;
} catch (Throwable t) { } catch (Throwable t) {
// @since 4.1.1 instead of printing full stacktrace of the exception, // @since 4.1.1 instead of printing full stacktrace of the exception,