diff --git a/Gruntfile.js b/Gruntfile.js index 21b799ac7..15deb7e92 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -115,7 +115,6 @@ module.exports = function(grunt) { vendors: { src: [ 'lib/mousetrap/mousetrap.min.js', - 'js/shell.js', // shell must be loaded before moment due to the way moment loads in a commonjs env 'lib/moment/min/moment.min.js', 'lib/qrcode-generator/js/qrcode.js', 'lib/lodash/dist/lodash.js', diff --git a/cordova/android/config.xml b/cordova/android/config.xml deleted file mode 100644 index c9941d97a..000000000 --- a/cordova/android/config.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - Copay - - A secure bitcoin wallet for friends and companies. - - - Bitpay Inc. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cordova/ios/Copay-Info.plist b/cordova/ios/Copay-Info.plist deleted file mode 100644 index c619115c1..000000000 --- a/cordova/ios/Copay-Info.plist +++ /dev/null @@ -1,83 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - icon.png - CFBundleIcons - - CFBundlePrimaryIcon - - CFBundleIconFiles - - icon-40 - icon-small - icon-60 - icon.png - icon@2x - icon-72 - icon-72@2x - - UIPrerenderedIcon - - - - CFBundleIcons~ipad - - CFBundlePrimaryIcon - - CFBundleIconFiles - - icon-small - icon-40 - icon-50 - icon-76 - icon-60 - icon - icon@2x - icon-72 - icon-72@2x - - UIPrerenderedIcon - - - - CFBundleIdentifier - com.bitpay.copay - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 0.6.4 - CFBundleSignature - ???? - CFBundleVersion - 0.6.4 - LSRequiresIPhoneOS - - NSMainNibFile - - NSMainNibFile~ipad - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeRight - - - diff --git a/js/controllers/history.js b/js/controllers/history.js index 911659760..770bae7c5 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -29,10 +29,6 @@ angular.module('copayApp.controllers').controller('HistoryController', $scope.downloadHistory = function() { - if (window.cordova) { - log.info('Not available on mobile'); - return; - } var w = $rootScope.wallet; if (!w) return; diff --git a/js/controllers/import.js b/js/controllers/import.js index 9c802fa0c..b7ecf09bc 100644 --- a/js/controllers/import.js +++ b/js/controllers/import.js @@ -18,14 +18,6 @@ angular.module('copayApp.controllers').controller('ImportController', $scope.$digest(); } - $scope.openFileDialog = function() { - if (window.cshell) { - return cshell.send('backup:import'); - } - $scope.choosefile = !$scope.choosefile; - }; - - $scope._doImport = function(encryptedObj, password) { updateStatus('Importing wallet - Procesing backup...'); diff --git a/js/controllers/importProfile.js b/js/controllers/importProfile.js index fe9a292a3..016308052 100644 --- a/js/controllers/importProfile.js +++ b/js/controllers/importProfile.js @@ -46,13 +46,6 @@ angular.module('copayApp.controllers').controller('ImportProfileController', }); }; - $scope.openFileDialog = function() { - if (window.cshell) { - return cshell.send('backup:import'); - } - $scope.choosefile = !$scope.choosefile; - }; - $scope.getFile = function() { // If we use onloadend, we need to check the readyState. reader.onloadend = function(evt) { diff --git a/js/controllers/receive.js b/js/controllers/receive.js index c7f860403..a701c0392 100644 --- a/js/controllers/receive.js +++ b/js/controllers/receive.js @@ -25,12 +25,6 @@ angular.module('copayApp.controllers').controller('ReceiveController', $scope.openAddressModal = function(address) { var ModalInstanceCtrl = function($scope, $modalInstance, address) { $scope.address = address; - $scope.isMobile = !!window.cordova; - - $scope.mobileCopy = function(address) { - window.cordova.plugins.clipboard.copy(address); - window.plugins.toast.showShortBottom('Copied to clipboard'); - }; $scope.cancel = function() { $modalInstance.dismiss('cancel'); diff --git a/js/directives.js b/js/directives.js index e24748362..262cb719e 100644 --- a/js/directives.js +++ b/js/directives.js @@ -264,16 +264,6 @@ angular.module('copayApp.directives') } }; }) - .directive('openExternal', function() { - return { - restrict: 'A', - link: function(scope, element, attrs) { - element.bind('click', function() { - window.open('bitcoin:' + attrs.address, '_blank'); - }); - } - } - }) // From https://gist.github.com/asafge/7430497 .directive('ngReallyClick', [ diff --git a/js/mobile.js b/js/mobile.js index b8d28931c..8da5a66e6 100644 --- a/js/mobile.js +++ b/js/mobile.js @@ -14,13 +14,4 @@ function onDeviceReady() { }, false); - - function handleBitcoinURI(url) { - if (!url) return; - window.location = '#!/uri-payment/' + url; - } - - window.plugins.webintent.getUri(handleBitcoinURI); - window.plugins.webintent.onNewIntent(handleBitcoinURI); - window.handleOpenURL = handleBitcoinURI; } diff --git a/js/services/backupService.js b/js/services/backupService.js index d903a0bf9..775b25be3 100644 --- a/js/services/backupService.js +++ b/js/services/backupService.js @@ -14,25 +14,6 @@ BackupService.prototype._download = function(ew, walletName, filename) { type: 'text/plain;charset=utf-8' }); - - // show a native save dialog if we are in the shell - // and pass the wallet to the shell to convert to node Buffer - if (window.cshell) { - return window.cshell.send('backup:download', { - name: walletName, - wallet: ew - }); - } - - // throw an email intent if we are in the mobile version - if (window.cordova) { - var name = wallet.name ? wallet.name + ' ' : ''; - return window.plugin.email.open({ - subject: 'Copay - ' + name + 'Wallet ' + 'Backup', - body: 'Here is the encrypted backup of the wallet ' + wallet.id, - attachments: ['base64:' + filename + '//' + btoa(ew)] - }); - } this.notifications.success('Backup created', 'Encrypted backup file saved'); // otherwise lean on the browser implementation diff --git a/views/receive.html b/views/receive.html index 6ec2c7fe3..50a11468e 100644 --- a/views/receive.html +++ b/views/receive.html @@ -11,9 +11,7 @@
- - - + change