diff --git a/Gruntfile.js b/Gruntfile.js index 5b610e424..36610478e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -141,7 +141,8 @@ module.exports = function(grunt) { 'src/js/externalServices.js', 'src/js/init.js', 'src/js/trezor-url.js', - 'bower_components/trezor-connect/login.js' + 'bower_components/trezor-connect/login.js', + 'node_modules/cordova-plugin-qrscanner/dist/cordova-plugin-qrscanner-lib.min.js' ], dest: 'public/js/copay.js' }, diff --git a/app-template/Makefile b/app-template/Makefile index f18321402..c8b86509c 100644 --- a/app-template/Makefile +++ b/app-template/Makefile @@ -9,7 +9,7 @@ clean: $(WORKDIR)android $(WORKDIR)ios: config.xml - cordova create $@ com.bitpay.*NAMENOSPACE* *NAMECASENOSPACE* || echo "Project Path Existed" + cordova create $@ com.bitpay.*NAMENOSPACE* '*NAMECASENOSPACE*' || echo "Project Path Existed" cp ProjectMakefile $@/Makefile rm -r $@/www && ln -sF ../../public $@/www cp config.xml $@/config.xml @@ -35,7 +35,7 @@ wp-init: config.xml cp config.xml $(WORKDIR)$@/config.xml make -C $(WORKDIR)$@ $(subst $(WORKDIR),, $(WORKDIR)$@) -wp-copy: +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/ diff --git a/app-template/ProjectMakefile b/app-template/ProjectMakefile index a3813ae2d..1116fc159 100644 --- a/app-template/ProjectMakefile +++ b/app-template/ProjectMakefile @@ -1,52 +1,24 @@ .PHONY:plugins ios-platform android-platform wp8-platform plugins: - cordova plugin add cordova-plugin-globalization - cordova plugin add cordova.plugins.diagnostic - cordova plugin add cordova-plugin-splashscreen - cordova plugin add cordova-plugin-statusbar cordova plugin add https://github.com/cmgustavo/Custom-URL-scheme.git --variable URL_SCHEME=bitcoin --variable SECOND_URL_SCHEME=*NAMENOSPACE* - cordova plugin add cordova-plugin-inappbrowser - cordova plugin add cordova-plugin-x-toast && cordova prepare - cordova plugin add https://github.com/VersoSolutions/CordovaClipboard - cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git && cordova prepare - cordova plugin add cordova-plugin-spinner-dialog - cordova plugin add cordova-plugin-dialogs - cordova plugin add cordova-plugin-network-information - cordova plugin add cordova-plugin-console - cordova plugin add cordova-plugin-uniquedeviceid - cordova plugin add cordova-plugin-file - cordova plugin add cordova-plugin-touch-id cordova prepare - cordova plugin add cordova-plugin-transport-security - cordova plugin add cordova-ios-requires-fullscreen - cordova plugin add cordova-plugin-disable-bitcode rm -rf platforms/android/res/values-es - cordova plugin add cordova-plugin-android-fingerprint-auth - cordova plugin add cordova-plugin-screen-orientation - cordova plugin add ionic-plugin-keyboard - cordova plugin add cordova-plugin-whitelist - cordova plugin add https://github.com/driftyco/cordova-plugin-wkwebview-engine.git --save - - ios-platform android-platform wp8-platform: cordova platforms add $(subst -platform,,$@) || echo "Platform already added" ios: ios-platform plugins - cordova plugin add https://github.com/tjwoon/csZBar.git - cordova plugin add phonegap-plugin-push@1.5.3 + echo android: android-platform plugins - cordova plugin add https://github.com/jrontend/phonegap-plugin-barcodescanner - cordova plugin add phonegap-plugin-push@1.2.3 + echo wp: wp8-platform plugins - cordova plugin add https://github.com/jrontend/phonegap-plugin-barcodescanner + echo build-ios build-android build-wp8: cordova build $(subst build-,,$@) run: cordova run --device - diff --git a/app-template/config.xml b/app-template/config.xml index 84952a749..e865b2bbf 100644 --- a/app-template/config.xml +++ b/app-template/config.xml @@ -28,10 +28,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The camera is used to read QR codes. + + + + + diff --git a/app-template/package.json b/app-template/package.json index 4cb6f7c94..2bd898d52 100644 --- a/app-template/package.json +++ b/app-template/package.json @@ -1,14 +1,14 @@ - { "name": "*NAMENOSPACE*", "description": "*DESCRIPTION*", "author": "BitPay", "version": "*VERSION*", "keywords": [ + "bitcoin", "wallet", + "bitpay", "copay", "multisignature", - "bitcoin", "bitcore" ], "main": "public/index.html", @@ -42,13 +42,21 @@ "url": "https://github.com/bitpay/copay/issues" }, "dependencies": { + "adm-zip": "^0.4.7", + "angular": "1.4.6", + "angular-mocks": "1.4.10", + "bhttp": "^1.2.1", "bitcore-wallet-client": "4.2.1", + "bower": "^1.7.9", + "chai": "^3.5.0", + "cordova": "5.4.1", + "cordova-android": "5.1.1", + "cordova-plugin-qrscanner": "^2.3.1", "coveralls": "^2.11.9", "express": "^4.11.2", "fs": "0.0.2", - "shelljs": "^0.3.0", - "grunt-angular-gettext": "^2.2.3", "fs-extra": "^0.30.0", + "grunt-angular-gettext": "^2.2.3", "grunt-browserify": "^5.0.0", "grunt-cli": "^1.2.0", "grunt-contrib-compress": "^1.3.0", @@ -61,37 +69,35 @@ "grunt-karma-coveralls": "^2.5.4", "grunt-nw-builder": "^2.0.3", "grunt-sass": "^1.2.0", - "adm-zip": "^0.4.7", - "angular": "1.4.6", - "angular-mocks": "1.4.10", - "bhttp": "^1.2.1", - "bower": "^1.7.9", - "chai": "^3.5.0", - "cordova": "5.4.1", - "cordova-android": "5.1.1", "karma": "^0.13.22", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^1.0.1", "karma-cli": "^1.0.0", "karma-coverage": "^1.0.0", - "pbkdf2": "^3.0.4", "karma-mocha": "^1.0.1", "karma-mocha-reporter": "^2.0.3", "karma-phantomjs-launcher": "^1.0.0", "karma-sinon": "^1.0.5", "load-grunt-tasks": "^3.5.0", "mocha": "^2.4.5", + "pbkdf2": "^3.0.4", "phantomjs-prebuilt": "^2.1.7", + "shelljs": "^0.3.0", "xcode": "^0.8.2" }, "scripts": { - "preinstall": "bower install && npm i fs-extra && cd app-template && node apply.js", - "postinstall": "npm run build", + "preinstall": "bower install && npm i fs-extra", "build": "grunt", - "start": "node app.js", + "apply:copay": "cd app-template && node apply.js", + "apply:bitpay-wallet": "cd app-template && node apply.js bitpay-wallet", + "start": "npm run build && node app.js", + "watch": "grunt watch", "test": "./node_modules/.bin/grunt test-coveralls", - "clean": "git clean -dfx" + "clean": "git clean -dfx", + "start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj", + "start:android": "npm run build && cd cordova && trash project-android && make android" }, "devDependencies": { + "trash-cli": "^1.4.0" } } diff --git a/chrome-app/manifest.json b/chrome-app/manifest.json index 82548f4c9..66fed64f0 100644 --- a/chrome-app/manifest.json +++ b/chrome-app/manifest.json @@ -3,9 +3,9 @@ "//":" Modify it at app-template/", "manifest_version": 2, - "name": "BitPay", - "description": "The BitPay Bitcoin Wallet", - "version": "0.13.0", + "name": "BitPay Wallet", + "description": "Secure Bitcoin Storage", + "version": "0.6.0", "permissions": [ "storage", "unlimitedStorage", diff --git a/package.json b/package.json index 29384a197..4d42bde88 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,22 @@ - - { + { "//":"PLEASE! Do not edit this file directly", - "//":" Modify it at app-template/", + "//":" Modify it at app-template/", - "name": "bitpay", - "description": "The BitPay Bitcoin Wallet", + "name": "wallet", + "description": "Secure Bitcoin Storage", "author": "BitPay", - "version": "0.13.0", + "version": "0.6.0", "keywords": [ + "bitcoin", "wallet", + "bitpay", "copay", "multisignature", - "bitcoin", "bitcore" ], "main": "public/index.html", "window": { - "title": "BitPay - The BitPay Bitcoin Wallet", + "title": "BitPay Wallet - Secure Bitcoin Storage", "icon": "./public/img/icons/icon-256.png", "toolbar": false, "show": true, @@ -45,13 +45,21 @@ "url": "https://github.com/bitpay/copay/issues" }, "dependencies": { + "adm-zip": "^0.4.7", + "angular": "1.4.6", + "angular-mocks": "1.4.10", + "bhttp": "^1.2.1", "bitcore-wallet-client": "4.2.1", + "bower": "^1.7.9", + "chai": "^3.5.0", + "cordova": "5.4.1", + "cordova-android": "5.1.1", + "cordova-plugin-qrscanner": "^2.3.1", "coveralls": "^2.11.9", "express": "^4.11.2", "fs": "0.0.2", - "shelljs": "^0.3.0", - "grunt-angular-gettext": "^2.2.3", "fs-extra": "^0.30.0", + "grunt-angular-gettext": "^2.2.3", "grunt-browserify": "^5.0.0", "grunt-cli": "^1.2.0", "grunt-contrib-compress": "^1.3.0", @@ -64,37 +72,34 @@ "grunt-karma-coveralls": "^2.5.4", "grunt-nw-builder": "^2.0.3", "grunt-sass": "^1.2.0", - "adm-zip": "^0.4.7", - "angular": "1.4.6", - "angular-mocks": "1.4.10", - "bhttp": "^1.2.1", - "bower": "^1.7.9", - "chai": "^3.5.0", - "cordova": "5.4.1", - "cordova-android": "5.1.1", "karma": "^0.13.22", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^1.0.1", "karma-cli": "^1.0.0", "karma-coverage": "^1.0.0", - "pbkdf2": "^3.0.4", "karma-mocha": "^1.0.1", "karma-mocha-reporter": "^2.0.3", "karma-phantomjs-launcher": "^1.0.0", "karma-sinon": "^1.0.5", "load-grunt-tasks": "^3.5.0", "mocha": "^2.4.5", + "pbkdf2": "^3.0.4", "phantomjs-prebuilt": "^2.1.7", + "shelljs": "^0.3.0", "xcode": "^0.8.2" }, "scripts": { - "preinstall": "bower install && npm i fs-extra && cd app-template && node apply.js", - "postinstall": "npm run build", + "preinstall": "bower install && npm i fs-extra", "build": "grunt", - "start": "node app.js", + "apply:copay": "cd app-template && node apply.js", + "apply:bitpay-wallet": "cd app-template && node apply.js bitpay-wallet", + "start": "npm run build && node app.js", + "watch": "grunt watch", "test": "./node_modules/.bin/grunt test-coveralls", - "clean": "git clean -dfx" + "clean": "git clean -dfx", + "start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj" }, "devDependencies": { + "trash-cli": "^1.4.0" } } diff --git a/public/img/bitpay-wallet-qr-scan-guides.svg b/public/img/bitpay-wallet-qr-scan-guides.svg new file mode 100644 index 000000000..07a700688 --- /dev/null +++ b/public/img/bitpay-wallet-qr-scan-guides.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/img/icon-camera-toggle.svg b/public/img/icon-camera-toggle.svg new file mode 100644 index 000000000..1e1f06503 --- /dev/null +++ b/public/img/icon-camera-toggle.svg @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/public/img/icon-card.svg b/public/img/icon-card.svg new file mode 100644 index 000000000..873f912f6 --- /dev/null +++ b/public/img/icon-card.svg @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/public/img/icon-flash.svg b/public/img/icon-flash.svg new file mode 100644 index 000000000..72c726a69 --- /dev/null +++ b/public/img/icon-flash.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/public/img/icon-wallet.svg b/public/img/icon-wallet.svg index 9cbcfb85f..a1d7c73eb 100644 --- a/public/img/icon-wallet.svg +++ b/public/img/icon-wallet.svg @@ -1,28 +1,10 @@ - - - - Wallet Copy - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - + + + + + + diff --git a/public/img/tab-icons/ico-scan-selected.svg b/public/img/tab-icons/ico-scan-selected.svg index 4738582d9..06a118a83 100644 --- a/public/img/tab-icons/ico-scan-selected.svg +++ b/public/img/tab-icons/ico-scan-selected.svg @@ -5,7 +5,7 @@ Created with Sketch. - + @@ -17,4 +17,4 @@ - \ No newline at end of file + diff --git a/public/views/tab-home.html b/public/views/tab-home.html index 7901a3c4b..6f8caad5a 100644 --- a/public/views/tab-home.html +++ b/public/views/tab-home.html @@ -134,7 +134,7 @@
- Add BitPay Card + Add BitPay Visa® Card @@ -154,9 +154,5 @@ -

-{{name}} v{{version}} -

- diff --git a/public/views/tab-scan.html b/public/views/tab-scan.html new file mode 100644 index 000000000..27c9cb9c5 --- /dev/null +++ b/public/views/tab-scan.html @@ -0,0 +1,22 @@ + + + {{'Scan' | translate}} + + +
+ +
+
+ + diff --git a/public/views/tab-send.html b/public/views/tab-send.html index 3ab5f5f6a..963c7e094 100644 --- a/public/views/tab-send.html +++ b/public/views/tab-send.html @@ -8,7 +8,7 @@