<?xml version='1.0' encoding='utf-8'?>
<widget id="com.bitpay.*BUNDLENAME*"
  version="*VERSION*"
  android-versionCode="*ANDROIDVERSION*"
  ios-CFBundleVersion="*VERSION*">
    <name>*USERVISIBLENAME*</name>
    <description>
      *PURPOSELINE*
    </description>
    <author email="support@bitpay.com" href="*URL*">
        BitPay Inc.
    </author>
    <content src="index.html" />
    <access origin="*" />
    <preference name="AndroidPersistentFileLocation" value="Internal" />
    <preference name="iosPersistentFileLocation" value="Library" />
    <preference name="DisallowOverscroll" value="true"/>
    <preference name="HideKeyboardFormAccessoryBar" value="true"/>
    <!-- #355 -->
    <!-- <preference name="KeyboardDisplayRequiresUserAction" value="false" /> -->
    <preference name="StatusBarBackgroundColor" value="#1e3186" />
    <preference name="BackupWebStorage" value="none"/>
    <preference name="windows-target-version" value="10.0"/>
    <preference name="Orientation" value="default" />
    <preference name="cordova-custom-config-stoponerror" value="true" />

    <preference name="StatusBarOverlaysWebView" value="true" />
    <preference name="StatusBarStyle" value="lightcontent" />

    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="FadeSplashScreen" value="true" />
    <preference name="FadeSplashScreenDuration" value="100" />
    <preference name="SplashMaintainAspectRatio" value="true" />

    <!-- Plugins -->
    <plugin name="cordova-plugin-device" spec="~1.1.3"/>
    <plugin name="cordova-plugin-globalization" spec="~1.0.4" />
    <plugin name="cordova-plugin-splashscreen" spec="~4.0.0" />
    <plugin name="cordova-plugin-statusbar" spec="~2.2.0" />
    <plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />
    <plugin name="cordova-plugin-x-toast" spec="~2.5.2" />
    <plugin name="com.verso.cordova.clipboard" spec="https://github.com/VersoSolutions/CordovaClipboard" />
    <plugin name="cordova-plugin-x-socialsharing" spec="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" />
    <plugin name="cordova-plugin-spinner-dialog" spec="~1.3.1" />
    <plugin name="cordova-plugin-dialogs" spec="~1.3.0" />
    <plugin name="cordova-plugin-network-information" spec="~1.3.0" />
    <plugin name="cordova-plugin-console" spec="~1.0.4" />
    <plugin name="cordova-plugin-uniquedeviceid" spec="~1.3.2" />
    <plugin name="cordova-plugin-file" spec="~4.3.0" />
    <plugin name="cordova-plugin-touch-id" spec="~3.2.0" />
    <plugin name="cordova-plugin-transport-security" spec="~0.1.2" />
    <plugin name="cordova-ios-requires-fullscreen" spec="~0.0.2" />
    <plugin name="cordova-plugin-android-fingerprint-auth" spec="~0.2.0" />
    <plugin name="cordova-plugin-screen-orientation" spec="~1.4.2" />
    <plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
    <plugin name="cordova-plugin-whitelist" spec="~1.3.0" />
    <plugin name="cordova-plugin-wkwebview-engine" spec="https://github.com/driftyco/cordova-plugin-wkwebview-engine.git#4221015eb3f309fe593a7d81205b691e27088743" />
    <plugin name="cordova-plugin-qrscanner" spec="~2.5.0" />
    <plugin name="cordova-plugin-customurlscheme" spec="https://github.com/cmgustavo/Custom-URL-scheme.git">
      <variable name="URL_SCHEME" value="bitcoin" />
      <variable name="SECOND_URL_SCHEME" value="*APPURI*" />
    </plugin>
    <plugin name="cordova-custom-config" spec="~3.0.5" />
    <plugin name="cordova-plugin-queries-schemes" spec="~0.1.5" />
    <plugin name="cordova-plugin-fcm" spec="2.1.1" />

    <!-- Supported Platforms -->
    <engine name="ios" spec="~4.2.1" />
    <engine name="android" spec="~5.2.2" />
    <engine name="windows" spec="~4.4.3" />

    <!-- Platform Specific Settings -->
    <platform name="ios">
      <config-file platform="ios" target="*-Info.plist" parent="UIStatusBarHidden"><true/></config-file>
      <config-file platform="ios" target="*-Info.plist" parent="UIViewControllerBasedStatusBarAppearance"><false/></config-file>
      <config-file target="*-Info.plist" parent="ITSAppUsesNonExemptEncryption"><false/></config-file>
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-60@3x.png" width="180" height="180" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-60.png" width="60" height="60" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-60@2x.png" width="120" height="120" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-76.png" width="76" height="76" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-76@2x.png" width="152" height="152" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-83.5@2x.png" width="167" height="167" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-40.png" width="40" height="40" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-40@2x.png" width="80" height="80" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon.png" width="57" height="57" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon@2x.png" width="114" height="114" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-72.png" width="72" height="72" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-72@2x.png" width="144" height="144" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-small.png" width="29" height="29" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-small@2x.png" width="58" height="58" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-small@3x.png" width="87" height="87" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-50.png" width="50" height="50" />
      <icon src="resources/*PACKAGENAME*/ios/icon/icon-50@2x.png" width="100" height="100" />

      <splash src="resources/*PACKAGENAME*/ios/splash/Default~iphone.png" width="320" height="480"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-667h.png" width="750" height="1334"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-736h.png" width="1242" height="2208"/>
      <splash src="resources/*PACKAGENAME*/ios/splash/Default-Landscape-736h.png" width="2208" height="1242"/>
      <allow-navigation href="*" />
    </platform>

    <platform name="android">
      <preference name="android-manifest/application/@android:allowBackup" value="false" />

      <icon src="resources/*PACKAGENAME*/android/icon/drawable-ldpi-icon.png" density="ldpi" />
      <icon src="resources/*PACKAGENAME*/android/icon/drawable-mdpi-icon.png" density="mdpi" />
      <icon src="resources/*PACKAGENAME*/android/icon/drawable-hdpi-icon.png" density="hdpi" />
      <icon src="resources/*PACKAGENAME*/android/icon/drawable-xhdpi-icon.png" density="xhdpi" />
      <icon src="resources/*PACKAGENAME*/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi" />
      <icon src="resources/*PACKAGENAME*/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi" />

      <splash src="resources/*PACKAGENAME*/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>

      <splash src="resources/*PACKAGENAME*/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
      <splash src="resources/*PACKAGENAME*/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
    </platform>

    <platform name="windows">
      <icon src="resources/*PACKAGENAME*/windows/icon/StoreLogo.png" target="StoreLogo" />
      <icon src="resources/*PACKAGENAME*/windows/icon/Square30x30Logo.png" target="Square30x30Logo" />
      <icon src="resources/*PACKAGENAME*/windows/icon/Square44x44Logo.png" target="Square44x44Logo" />
      <icon src="resources/*PACKAGENAME*/windows/icon/Square70x70Logo.png" target="Square70x70Logo" />
      <icon src="resources/*PACKAGENAME*/windows/icon/Square71x71Logo.png" target="Square71x71Logo" />
      <icon src="resources/*PACKAGENAME*/windows/icon/Square150x150Logo.png" target="Square150x150Logo" />
      <icon src="resources/*PACKAGENAME*/windows/icon/Square310x310Logo.png" target="Square310x310Logo" />
      <icon src="resources/*PACKAGENAME*/windows/icon/Wide310x150Logo.png" target="Wide310x150Logo" />

      <splash src="resources/*PACKAGENAME*/windows/splash/SplashScreen.scale-100.png" width="620" height="300"/>
      <splash src="resources/*PACKAGENAME*/windows/splash/SplashScreenPhone.scale-240.png" width="1152" height="1920"/>
    </platform>

  </widget>
