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 1f82ba309..2bd898d52 100644 --- a/app-template/package.json +++ b/app-template/package.json @@ -86,12 +86,18 @@ "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": {} + "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 0112dfaad..4d42bde88 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ - { + { "//":"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", @@ -16,7 +16,7 @@ ], "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, @@ -89,12 +89,17 @@ "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": {} + "devDependencies": { + "trash-cli": "^1.4.0" + } } diff --git a/webkitbuilds/.desktop b/webkitbuilds/.desktop index ef36f1003..b886061ba 100644 --- a/webkitbuilds/.desktop +++ b/webkitbuilds/.desktop @@ -1,9 +1,9 @@ [Desktop Entry] Type=Application -Version=0.13.0 -Name=BitPay -Comment=The BitPay Bitcoin Wallet -Exec=bitpay +Version=0.6.0 +Name=BitPay Wallet +Comment=Secure Bitcoin Storage +Exec=wallet Icon=icon-256.png Terminal=false Categories=Finance diff --git a/webkitbuilds/setup-win.iss b/webkitbuilds/setup-win.iss index cb7008351..75890c496 100755 --- a/webkitbuilds/setup-win.iss +++ b/webkitbuilds/setup-win.iss @@ -1,8 +1,8 @@ ; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! -#define MyAppName "bitpay" -#define MyAppVersion "0.13.0" +#define MyAppName "wallet" +#define MyAppVersion "0.6.0" #define MyAppPublisher "BitPay" #define MyAppURL "https://bitpay.com" #define MyAppExeName "*NAMECASENOSPACE.exe" @@ -18,7 +18,7 @@ AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={pf}\{#MyAppName} DefaultGroupName={#MyAppName} -OutputBaseFilename=BitPay-win +OutputBaseFilename=BitPay Wallet-win OutputDir=./ Compression=lzma SolidCompression=yes @@ -32,8 +32,8 @@ Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] -Source: "BitPay\win64\bitpay.exe"; DestDir: "{app}"; Flags: ignoreversion -Source: "BitPay\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "BitPay Wallet\win64\wallet.exe"; DestDir: "{app}"; Flags: ignoreversion +Source: "BitPay Wallet\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion ; NOTE: Don't use "Flags: ignoreversion" on any shared system files @@ -50,8 +50,8 @@ Root: HKCR; Subkey: "bitcoin"; ValueType: "string"; ValueName: "URL Protocol"; V Root: HKCR; Subkey: "bitcoin\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0" Root: HKCR; Subkey: "bitcoin\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1""" -Root: HKCR; Subkey: "bitpay"; ValueType: "string"; ValueData: "URL:BitPay Custom Protocol"; Flags: uninsdeletekey -Root: HKCR; Subkey: "bitpay"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: "" -Root: HKCR; Subkey: "bitpay\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0" -Root: HKCR; Subkey: "bitpay\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1""" +Root: HKCR; Subkey: "wallet"; ValueType: "string"; ValueData: "URL:BitPay Wallet Custom Protocol"; Flags: uninsdeletekey +Root: HKCR; Subkey: "wallet"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: "" +Root: HKCR; Subkey: "wallet\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0" +Root: HKCR; Subkey: "wallet\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""