<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-googlesignin" 
        version="0.0.3" xmlns="http://apache.org/cordova/ns/plugins/1.0" 
        xmlns:android="http://schemas.android.com/apk/res/android">
    <name>GoogleSignIn</name>
    <description>Cordova plugin for Google Sign In flow using GoogleSignInClient.</description>
    <author>Rogerio Takejame</author>
    <license>MIT</license>
    <keywords>Google, Google SignIn, GoogleSignIn, Google Login, Login, OAuth, Identity, Authentication, Play, Game, Cordova, Android</keywords>
    <repo>https://github.com/rogeriotakejame/cordova-plugin-googlesignin.git</repo>
    <issue>https://github.com/rogeriotakejame/cordova-plugin-googlesignin/issues</issue>

    <js-module name="GoogleSignIn" src="www/GoogleSignIn.js">
        <clobbers target="cordova.plugins.GoogleSignIn" />
    </js-module>

    <platform name="android">
        <preference name="APP_ID" />
        
        
        
        <config-file parent="/*" target="res/xml/config.xml">
            <feature name="GoogleSignIn">
                <param name="android-package" 
                       value="com.takejame.cordova.plugin.googlesignin.CordovaGoogleSignIn" />
            </feature>
        </config-file>

        <config-file target="res/values/strings.xml" parent="/resources">
            <string name="app_id">$APP_ID</string>
        </config-file>
        
        <config-file parent="/*" target="AndroidManifest.xml">
        </config-file>

        <framework src="com.google.code.gson:gson:2.8.5" />
        <framework src="com.google.android.gms:play-services-games:19.0.0" />
        <framework src="com.google.android.gms:play-services-auth:18.0.0" />

        <source-file src="src/android/CordovaGoogleSignIn.java" 
                     target-dir="src/cordova-plugin-googlesignin/GoogleSignIn" />
    </platform>
</plugin>