Cordova Android 6.x compiles code by default using java 6, so plugins need to support Java 6, otherwise the following error will be reported:
Error: diamond operator is not supported in-source 1.6(use-source 7 or higher to enable diamond operator)
Thanks for this pull request. I'm not going to merge this for now. This plugin is going to require newer versions of Java (and Javascript). Upgrading cordova and cordova android should fix most projects.
Cordova Android 6.x compiles code by default using java 6, so plugins need to support Java 6, otherwise the following error will be reported:
Error: diamond operator is not supported in-source 1.6
(use-source 7 or higher to enable diamond operator)