almosr / android-svg-code-render

Convert SVG files into Java source and use it in your Android app
Apache License 2.0
24 stars 3 forks source link

Minimum AndroidOS version warning for hardware supported rendering #75

Closed almosr closed 6 years ago

almosr commented 7 years ago

Generated code is depending on Android OS drawing methods, but not all of these methods are implemented with hardware acceleration on all Android OS versions.

Implement a new parameter for specifying the minimum Android OS version for the rendering and if any of the used rendering methods in the generated code is not available with hardware acceleration on the specified OS version then print a warning to the output.

Parameter name: -aos Format: integer Value: minimum Android OS API version

Validate specified API version and stop processing if an unknown Android OS API version was specified. Valid versions are: Android API versions

Hardware acceleration per method per API versions: unsupported methods

Any methods which are not listed on that page are deemed to be supported.