image, GifSupport and SvgSupport Class.forName
This commit is contained in:
		
							parent
							
								
									abeb5044af
								
							
						
					
					
						commit
						392333806a
					
				| @ -2,6 +2,7 @@ | ||||
| 
 | ||||
| # 4.3.1-SNAPSHOT | ||||
| * 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 | ||||
| [@francescocervone]: https://github.com/francescocervone | ||||
|  | ||||
| @ -14,7 +14,8 @@ public abstract class GifSupport { | ||||
|     static { | ||||
|         boolean result; | ||||
|         try { | ||||
|             pl.droidsonroids.gif.GifDrawable.class.getName(); | ||||
|             // @since $nap; | ||||
|             Class.forName("pl.droidsonroids.gif.GifDrawable"); | ||||
|             result = true; | ||||
|         } catch (Throwable t) { | ||||
|             // @since 4.1.1 instead of printing full stacktrace of the exception, | ||||
|  | ||||
| @ -14,7 +14,7 @@ public abstract class SvgSupport { | ||||
|     static { | ||||
|         boolean result; | ||||
|         try { | ||||
|             com.caverock.androidsvg.SVG.class.getName(); | ||||
|             Class.forName("com.caverock.androidsvg.SVG"); | ||||
|             result = true; | ||||
|         } catch (Throwable t) { | ||||
|             // @since 4.1.1 instead of printing full stacktrace of the exception, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dimitry Ivanov
						Dimitry Ivanov