diff --git a/.gitignore b/.gitignore
index 21dea94dbdf..672a06c6d09 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,8 +6,6 @@ src/js/translations.js
# cordova
plugins
platforms
-cordova/project-*/*
-cordova/*.keystore
# node-webkit
cache
@@ -98,26 +96,13 @@ www/fonts
/ionic.config.json
/appConfig.json
externalServices.json
-cordova/Makefile
-cordova/ProjectMakefile
app-template/bitpay-wallet
-cordova/config.xml
-cordova/wp/Package.appxmanifest
src/js/appConfig.js
src/js/externalServices.js
chrome-app/manifest.json
www/img/app
www/index.html
-
-cordova/android/res/
-cordova/wp/Assets/
-cordova/wp/*.png
-cordova/wp/*.jpg
-cordova/ios/splash/
-cordova/ios/icons/
-cordova/project/
-
## Firebase
GoogleService-Info.plist
google-services.json
diff --git a/app-template/Makefile b/app-template/Makefile
deleted file mode 100644
index c4ce002e417..00000000000
--- a/app-template/Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
-.PHONY: ios android wp
-
-WORKDIR=project-
-
-all:
-
-clean:
- rm -Rf $(WORKDIR)*
-
-wp-init: config.xml
- cordova create $(WORKDIR)$@ com.bitpay.*BUNDLENAME* "*USERVISIBLENAME*" || echo "Project Path Existed"
- cp ProjectMakefile $(WORKDIR)$@/Makefile
- mkdir -p $(WORKDIR)$@/www
- cp -Rf ../www/* $(WORKDIR)$@/www
- cp config.xml $(WORKDIR)$@/config.xml
- make -C $(WORKDIR)$@ $(subst $(WORKDIR),, $(WORKDIR)$@)
-
-wp-copy:
- cp -rvf wp/Properties/* $(WORKDIR)wp/platforms/wp8/Properties/
- cp -rvf wp/MainPage.xaml $(WORKDIR)wp/platforms/wp8/
- cp -rvf wp/Package.appxmanifest $(WORKDIR)wp/platforms/wp8/
- cp -rvf wp/Assets/* $(WORKDIR)wp/platforms/wp8/Assets/
- cp -rvf wp/SplashScreenImage.jpg $(WORKDIR)wp/platforms/wp8/
- cp -rvf wp/ApplicationIcon.png $(WORKDIR)wp/platforms/wp8/
- cp -rvf wp/Background.png $(WORKDIR)wp/platforms/wp8/
- cp -rvf ../www/* $(WORKDIR)wp/www
- wp/fix-svg.sh
diff --git a/app-template/Package.appxmanifest b/app-template/Package.appxmanifest
deleted file mode 100644
index 3571f696202..00000000000
--- a/app-template/Package.appxmanifest
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
- *APPDESCRIPTION*
- BitPay Inc.
- Assets\StoreLogo.png
-
-
- 6.3.1
- 6.3.1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AgHostSvcs.dll
-
-
-
-
-
diff --git a/app-template/ProjectMakefile b/app-template/ProjectMakefile
deleted file mode 100644
index ee503f4610f..00000000000
--- a/app-template/ProjectMakefile
+++ /dev/null
@@ -1,18 +0,0 @@
-.PHONY:plugins ios-platform android-platform wp8-platform
-
-plugins:
- cordova plugin add https://github.com/cmgustavo/Custom-URL-scheme.git --variable URL_SCHEME=bitcoin --variable SECOND_URL_SCHEME=*APPURI*
- cordova prepare
- rm -rf platforms/android/res/values-es
-
-wp8-platform:
- cordova platforms add $(subst -platform,,$@) || echo "Platform already added"
-
-wp: wp8-platform plugins
- cordova plugin add https://github.com/jrontend/phonegap-plugin-barcodescanner
-
-build-wp8:
- cordova build $(subst build-,,$@)
-
-run:
- cordova run --device
diff --git a/app-template/WMAppManifest.xml b/app-template/WMAppManifest.xml
deleted file mode 100644
index 506d8d941f8..00000000000
--- a/app-template/WMAppManifest.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Assets\icon@2.png
-
-
-
-
-
-
-
-
-
-
-
-
- Assets\200x200@1.png
- 0
- Assets\200x200@2.png
- *APPDESCRIPTION*
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
diff --git a/app-template/apply.js b/app-template/apply.js
index 5f95484bbbe..fa35abce4c3 100755
--- a/app-template/apply.js
+++ b/app-template/apply.js
@@ -7,11 +7,8 @@
var templates = {
'package-template.json': '/',
'index.html': 'www/',
- 'Makefile': 'cordova/',
- 'ProjectMakefile': 'cordova/',
'config-template.xml': '/',
'ionic.config.json': '/',
- 'Package.appxmanifest': 'cordova/wp/',
'.desktop': 'webkitbuilds/',
'setup-win.iss': 'webkitbuilds/',
'build-macos.sh': 'webkitbuilds/',
diff --git a/app-template/config-template.xml b/app-template/config-template.xml
index e984f2e8d92..46a54bbc9e5 100644
--- a/app-template/config-template.xml
+++ b/app-template/config-template.xml
@@ -20,7 +20,7 @@
-
+
@@ -56,20 +56,20 @@
-
+
-
+
-
+
diff --git a/app-template/package-template.json b/app-template/package-template.json
index d804a47ae34..8bc761455ac 100644
--- a/app-template/package-template.json
+++ b/app-template/package-template.json
@@ -55,12 +55,12 @@
"angular-mocks": "1.4.10",
"bezier-easing": "^2.0.3",
"bhttp": "^1.2.1",
- "bitauth": "^0.3.2",
+ "bitauth": "git@github.com:gabrielbazan7/bitauth.git#copay",
"bitcore-wallet-client": "5.0.0",
"bower": "^1.7.9",
"cordova-android": "5.1.1",
"cordova-custom-config": "^3.0.5",
- "cordova-plugin-qrscanner": "^2.3.1",
+ "cordova-plugin-qrscanner": "^2.5.0",
"coveralls": "^2.11.9",
"express": "^4.11.2",
"fs": "0.0.2",
@@ -84,12 +84,14 @@
"start": "npm run build:www && ionic serve --nolivereload --nogulp -s",
"start:ios": "npm run build:www && npm run build:ios && npm run open:ios",
"start:android": "npm run build:www && npm run build:android && npm run run:android",
+ "start:windows": "npm run build:www && npm run build:windows",
"start:desktop": "npm start",
"watch": "grunt watch",
"build:www": "grunt",
"build:www-release": "grunt prod",
"build:ios": "cordova prepare ios && cordova build ios --debug",
"build:android": "cordova prepare android && cordova build android --debug",
+ "build:windows": "cordova prepare windows && cordova build windows -- --arch=\"x86\"",
"build:ios-release": "cordova prepare ios && cordova build ios --release",
"build:android-release": "cordova prepare android && cordova build android --release",
"build:desktop": "grunt desktop",
diff --git a/cordova/readme.md b/cordova/readme.md
deleted file mode 100644
index b80002e4144..00000000000
--- a/cordova/readme.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Mobile building
-
-## Requisites
-* [Install Android SDK](https://developer.android.com/sdk/installing/index.html?pkg=tools)
-* [Install XCode for IOS](https://itunes.apple.com/en/app/xcode/id497799835?mt=12)
-* Install Cordova: ``sudo npm install -g cordova``
-* Install Copay dependecies: ``bower install && npm install``
-* Install Java-SDK and Apache Ant
-
-## Build the project
-
- $ make [clean] open-ios
- OR $ make [clean] android-run
- OR $ make [clean] wp8
-
- See Makefile for more targets
-
-
diff --git a/cordova/wp/MainPage.xaml b/cordova/wp/MainPage.xaml
deleted file mode 100644
index 10a9fbbd3d6..00000000000
--- a/cordova/wp/MainPage.xaml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/cordova/wp/Properties/AppManifest.xml b/cordova/wp/Properties/AppManifest.xml
deleted file mode 100644
index 547c354695e..00000000000
--- a/cordova/wp/Properties/AppManifest.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
diff --git a/cordova/wp/Properties/AssemblyInfo.cs b/cordova/wp/Properties/AssemblyInfo.cs
deleted file mode 100644
index 04907da929e..00000000000
--- a/cordova/wp/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Resources;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("CordovaAppProj")]
-[assembly: AssemblyDescription("2.0.0.0")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Apache Cordova")]
-[assembly: AssemblyProduct("CordovaAppProj")]
-[assembly: AssemblyCopyright("Copyright © Apache Cordova 2013")]
-[assembly: AssemblyTrademark("Apache Cordova")]
-[assembly: AssemblyCulture("")]
-
-
-[assembly: NeutralResourcesLanguageAttribute("en-US")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("9e27b972-0825-4386-ba17-63c695262c3d")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/cordova/wp/Properties/WMAppManifest.xml b/cordova/wp/Properties/WMAppManifest.xml
deleted file mode 100644
index 81a7e9513cd..00000000000
--- a/cordova/wp/Properties/WMAppManifest.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Assets\icon@2.png
-
-
-
-
-
-
-
-
-
-
-
-
- Assets\200x200@1.png
- 0
- Assets\200x200@2.png
- Copay Bitcoin Wallet
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
diff --git a/cordova/wp/fix-svg.sh b/cordova/wp/fix-svg.sh
deleted file mode 100755
index 8015e1dac1c..00000000000
--- a/cordova/wp/fix-svg.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#/bin/bash
-
-PROJECT=./build-wp/platforms
-for i in $PROJECT/wp8/www/img/*.svg
-do
- cat $i |grep -v ?xml > $i
-done
-
-for i in $PROJECT/wp8/www/font/*.svg
-do
- cat $i |grep -v ?xml > $i
-done
diff --git a/resources/bitpay/windows/app-store/icon-300x300.png b/resources/bitpay/windows/app-store/icon-300x300.png
new file mode 100644
index 00000000000..cd48dc3c853
Binary files /dev/null and b/resources/bitpay/windows/app-store/icon-300x300.png differ
diff --git a/src/js/routes.js b/src/js/routes.js
index df76b0fbb0b..e95c63bb4d7 100644
--- a/src/js/routes.js
+++ b/src/js/routes.js
@@ -1100,7 +1100,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
if (screen.width < 768 && platformInfo.isCordova)
screen.lockOrientation('portrait');
- if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
+ if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard && !platformInfo.isWP) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
cordova.plugins.Keyboard.disableScroll(true);
}