<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-sign-in-with-apple" version="0.1.2">
  <name>cordova-plugin-sign-in-with-apple</name>

  <description>Sign in with Apple</description>
  <license>MIT</license>

  <keywords>cordova,ios,apple,sign in with apple</keywords>
  <repo>https://github.com/twogate/cordova-plugin-sign-in-with-apple.git</repo>
  <issue>https://github.com/twogate/cordova-plugin-sign-in-with-apple/issues</issue>

  <engines>
    <engine name="cordova" version=">=8.0.0"/>
    <engine name="cordova-ios" version=">=4.5.0"/>
    <!--<engine name="apple-ios" version=">=13.0" />-->
  </engines>

  <js-module src="www/sign-in-with-apple.js" name="SignInWithApple">
    <clobbers target="cordova.plugins.SignInWithApple" />
  </js-module>
  <platform name="ios">

    <config-file target="config.xml" parent="/*">
      <feature name="SignInWithApple">
        <param name="ios-package" value="SignInWithApple" />
        <param name="onload" value="true" />
      </feature>
    </config-file>
    <framework src="AuthenticationServices.framework" />
    <!--<dependency id="cordova-plugin-add-swift-support" version="2.0.2"/>-->
    <source-file src="src/ios/SignInWithApple.h" />
    <source-file src="src/ios/SignInWithApple.m" />

    <config-file parent="com.apple.developer.applesignin" target="*/Entitlements-Debug.plist">
      <array>
        <string>Default</string>
      </array>
		</config-file>
    <config-file parent="com.apple.developer.applesignin" target="*/Entitlements-Release.plist">
      <array>
        <string>Default</string>
      </array>
    </config-file>
<!--<hook type="after_prepare" src="scripts/after_prepare.js" />-->
  </platform>
</plugin>
