<?xml version="1.0" encoding="UTF-8"?>
<plugin id="cordova-plugin-recaptcha-enterprise" version="1.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0">
    <name>Recaptcha Enterprise</name>
    <description>A cordova plugin for the reCAPTCHA Enterprise API</description>
    <author>Andres Zsögön</author>
    <license>MIT</license>
    <keywords>recaptcha,enterprise,android,browser</keywords>
    <info>------------------------------------------------------------
 Use RECAPTCHA_VERSION to set com.google.android.recaptcha:recaptcha dependency version.
------------------------------------------------------------
 Notice: For testing this plugin in emulator, use a Google Play System Image.
 Visit https://github.com/andreszs/cordova-plugin-demos for demo apps.
------------------------------------------------------------</info>
	
	<engines>
		<engine name="cordova" version=">=10.0.0" />
		<engine name="cordova-android" version=">=8.0.0" />
	</engines>
    
    <js-module name="RecaptchaEnterprise" src="www/RecaptchaEnterprise.js">
        <clobbers target="cordova.plugins.Recaptcha" />
    </js-module>
    
    <platform name="android">
        <preference name="RECAPTCHA_VERSION" default="18.2.1" />
        <framework src="com.google.android.recaptcha:recaptcha:$RECAPTCHA_VERSION" />
        <config-file target="config.xml" parent="/*">
            <feature name="RecaptchaEnterprise">
                <param name="android-package" value="com.andreszs.grecaptcha.RecaptchaEnterprise"/>
            </feature>
        </config-file>
        <source-file src="src/android/RecaptchaEnterprise.java" target-dir="src/com/andreszs/grecaptcha" />
    </platform>
    
    <platform name="browser">
		<config-file target="config.xml" parent="/*">
			<feature name="RecaptchaEnterprise">
				<param name="browser-package" value="RecaptchaEnterprise" />
			</feature>
		</config-file>
		<js-module src="src/browser/RecaptchaProxy.js" name="RecaptchaProxy">
			<runs />
		</js-module>
	</platform>

</plugin>
