Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.9 hotfix2 #571

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app-template/bitcoincom/appConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"windowsAppId": "804636ee-b017-4cad-8719-e58ac97ffa5c",
"pushSenderId": "1036948132229",
"description": "A Secure Bitcoin Wallet",
"version": "5.9.1",
"fullVersion": "5.9-rc2",
"androidVersion": "509001",
"version": "5.9.4",
"fullVersion": "5.9-hotfix2",
"androidVersion": "509004",
"_extraCSS": "",
"_enabledExtensions": {
"coinbase": false,
Expand Down
8 changes: 4 additions & 4 deletions app-template/package-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@
},
"scripts": {
"apply:bitcoincom": "npm i fs-extra && cd app-template && node apply.js bitcoincom && npm i && cordova prepare && cd ../ && ./fix-asn1.sh",

"build:app-release": "grunt build-app-release",

"build:mobile-release": "grunt build-mobile-release",
"build:desktop-release": "grunt build-desktop-release",

Expand All @@ -110,10 +110,10 @@
"build:windows-release": "cordova prepare windows && cordova build windows --release --arch=\"ARM\"",
"build:www": "grunt",
"build:www-release": "grunt prod",

"clean": "trash platforms && trash plugins && cordova prepare",
"clean-all": "git clean -dfx",

"log:android": "adb logcat | grep chromium",

"open:android": "grunt exec:android_studio",
Expand Down
Binary file modified resources/bitcoin.com/android/icon/drawable-hdpi-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/bitcoin.com/android/icon/drawable-ldpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/bitcoin.com/android/icon/drawable-mdpi-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/bitcoin.com/android/icon/drawable-xhdpi-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/bitcoin.com/android/icon/drawable-xxhdpi-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/bitcoin.com/android/icon/drawable-xxxhdpi-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/js/controllers/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ angular.module('copayApp.controllers').controller('createController',
$scope.formData = {};
var config = configService.getSync();
var defaults = configService.getDefaults();
var tc = $state.current.name == 'tabs.add.create-personal' ? 1 : defaults.wallet.totalCopayers;
var totalCopayers = $state.current.name == 'tabs.add.create-personal' ? 1 : defaults.wallet.totalCopayers;
var bchUrl = totalCopayers == 1 ? defaults.bwscashnew.url : defaults.bwscash.url;
$scope.formData.account = 1;
$scope.formData.bwsurl = data.stateParams.coin == 'btc' ? defaults.bws.url : defaults.bwscash.url;
$scope.formData.bwsurl = data.stateParams.coin == 'btc' ? defaults.bws.url : bchUrl;
$scope.TCValues = lodash.range(2, defaults.limits.totalCopayers + 1);
$scope.formData.derivationPath = derivationPathHelper.default;
$scope.formData.coin = data.stateParams.coin;
Expand All @@ -36,8 +37,8 @@ angular.module('copayApp.controllers').controller('createController',

if (config.cashSupport) $scope.enableCash = true;

$scope.setTotalCopayers(tc);
updateRCSelect(tc);
$scope.setTotalCopayers(totalCopayers);
updateRCSelect(totalCopayers);
resetPasswordFields();
});

Expand Down
4 changes: 2 additions & 2 deletions src/js/controllers/custom-amount.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
var coinsFromSatoshis = 0;
var listeningAddressLegacy = '';
var satoshisRequested = 0;
var bchAddresses = {};

function _showErrorAndBack(title, msg) {
popupService.showAlert(title, msg, function() {
Expand Down Expand Up @@ -80,8 +81,7 @@
}

$scope.bchAddressType = 'cashaddr';
var bchAddresses = {};


if ($scope.wallet.coin == 'bch') {
bchAddresses = bitcoinCashJsService.translateAddresses(addr);
vm.displayAddress = bchAddresses[$scope.bchAddressType];
Expand Down
5 changes: 3 additions & 2 deletions src/js/controllers/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ angular.module('copayApp.controllers').controller('importController',
$scope.supportsTrezor = platformInfo.supportsTrezor;
$scope.isCordova = platformInfo.isCordova;
$scope.formData = {};
$scope.formData.bwsurl = $stateParams.coin == 'btc' ? defaults.bws.url : defaults.bwscash.url;
$scope.isCopay = appConfigService.name == 'copay';
$scope.formData.bwsurl = $stateParams.coin == 'btc' ? defaults.bws.url : $scope.isCopay ? defaults.bwscash.url : defaults.bwscashnew.url;
$scope.formData.derivationPath = derivationPathHelper.default;
$scope.formData.account = 1;
$scope.formData.coin = $stateParams.coin ? $stateParams.coin : 'bch';
Expand Down Expand Up @@ -78,7 +79,7 @@ angular.module('copayApp.controllers').controller('importController',
};

$scope.coinChanged = function() {
$scope.formData.bwsurl = $scope.formData.coin == 'btc' ? defaults.bws.url : defaults.bwscash.url;
$scope.formData.bwsurl = $scope.formData.coin == 'btc' ? defaults.bws.url : $scope.isCopay ? defaults.bwscash.url : defaults.bwscashnew.url;
}

$scope.processWalletInfo = function(code) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/controllers/marco-coino.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
, $timeout
) {

var MARCO_COINO_BASE_URL = 'https://marco-coino.firebaseapp.com/marcocoino-embed.html?zoom=5&color=gold';
var MARCO_COINO_BASE_URL = 'https://marco-coino.firebaseapp.com/marcocoino-embed.html?zoom=5&color=default';
var ADD_MERCHANT_URL = 'https://marcocoino.bitcoin.com/submit-listing/';
var vm = this;

Expand Down
2 changes: 1 addition & 1 deletion src/js/controllers/modals/pin.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ angular.module('copayApp.controllers').controller('pinController', function($sta
};

$scope.getFilledClass = function(limit) {
return currentPin.length >= limit ? 'filled-' + $scope.appName : null;
return currentPin.length >= limit ? 'filled' : null;
};

$scope.delete = function() {
Expand Down
10 changes: 0 additions & 10 deletions src/js/services/bitcoincomService.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ angular.module('copayApp.services').factory('bitcoincomService', function(gettex
credentials.BITPAY_API_URL = "https://bitpay.com";
};

var cashGamesItem = {
name: 'games',
title: gettextCatalog.getString('Bitcoin Games'),
icon: 'icon-games',
href: 'https://games.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os
};

var newsItem = {
name: 'news',
title: gettextCatalog.getString('News'),
Expand Down Expand Up @@ -99,9 +92,6 @@ angular.module('copayApp.services').factory('bitcoincomService', function(gettex
};

var register = function() {
if (!platformInfo.isAndroid) { // To comply with Google Play policies
nextStepsService.register(cashGamesItem);
}
nextStepsService.register(newsItem);
nextStepsService.register(toolsItem);
nextStepsService.register(priceChartItem);
Expand Down
4 changes: 4 additions & 0 deletions src/js/services/configService.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ angular.module('copayApp.services').factory('configService', function(storageSer
url: 'https://bwscash.bitcoin.com/bws/api'
},

bwscashnew: {
url: 'https://bch.api.wallet.bitcoin.com/bws/api'
},

download: {
bitpay: {
url: 'https://wallet.bitcoin.com'
Expand Down
2 changes: 1 addition & 1 deletion src/js/services/profileService.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ angular.module('copayApp.services')
bchOpts.n = 1;
bchOpts.networkName = 'livenet';
bchOpts.coin = 'bch';
bchOpts.bwsurl = defaults.bwscash.url;
bchOpts.bwsurl = defaults.bwscashnew.url;

var btcOpts = {};
btcOpts.m = 1;
Expand Down
3 changes: 3 additions & 0 deletions src/sass/forms.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.button-clear{
background: none !important;
&.text-black {
color: black;
}
}

.button-skip {
Expand Down
7 changes: 7 additions & 0 deletions src/sass/views/includes/pin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
padding: 7%;
margin: 5%;
}
.circle {
@include circle;
border: 1px solid $v-bitcoin-green;
}
.circle-copay {
@include circle;
border: 1px solid $v-accent-color;
Expand All @@ -80,6 +84,9 @@
@include circle;
border: 1px solid $v-primary-color;
}
.filled {
background-color: $v-bitcoin-green;
}
.filled-copay {
background-color: $v-accent-color;
}
Expand Down
34 changes: 25 additions & 9 deletions www/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -10253,7 +10253,7 @@ ion-view.deflash-blue:before, ion-view#view-amount:before, ion-view#view-confirm
text-decoration: none; }
.button-white.active, .button-white.activated {
border-color: transparent;
background-color: #F1F3FB; }
background-color: transparent; }
.button-white.button-clear {
border-color: transparent;
background: none;
Expand All @@ -10263,7 +10263,7 @@ ion-view.deflash-blue:before, ion-view#view-amount:before, ion-view#view-confirm
border-color: transparent;
background: none; }
.button-white.activated {
color: #FFF; }
background-color: rgba(0, 0, 0, 0.05); }
.button-white-outline {
border-color: #FFFFFF;
background-color: transparent;
Expand All @@ -10274,7 +10274,7 @@ ion-view.deflash-blue:before, ion-view#view-amount:before, ion-view#view-confirm
color: #FFFFFF;
text-decoration: none; }
.button-white-outline.active, .button-white-outline.activated {
border-color: #FFFFFF;
border-color: transparent;
background-color: #FFFFFF; }
.button-white-outline.button-outline {
border-color: #FFFFFF;
Expand All @@ -10284,6 +10284,8 @@ ion-view.deflash-blue:before, ion-view#view-amount:before, ion-view#view-confirm
background-color: #FFFFFF;
box-shadow: none;
color: #fff; }
.button-white-outline.activated {
background-color: rgba(0, 0, 0, 0.1); }
.button-grey-outline {
border-color: #727272;
background-color: transparent;
Expand All @@ -10305,18 +10307,20 @@ ion-view.deflash-blue:before, ion-view#view-amount:before, ion-view#view-confirm
box-shadow: none;
color: #fff; }
.button-card-style {
border-radius: 3px;
background: white; }
border-radius: 3px; }
.button-card-style.white {
border-color: transparent;
background-color: #FFF;
color: #15d6a0; }
color: #15d6a0;
background: white; }
.button-card-style.white:hover {
color: #15d6a0;
text-decoration: none; }
.button-card-style.white.active, .button-card-style.white.activated {
border-color: #FFF;
background-color: #FFF; }
.button-card-style.white.activated {
background-color: rgba(0, 0, 0, 0.05); }
.button-card-style.white-outline {
border-color: #FFF;
background-color: transparent;
Expand All @@ -10332,6 +10336,8 @@ ion-view.deflash-blue:before, ion-view#view-amount:before, ion-view#view-confirm

.button-clear {
background: none !important; }
.button-clear.text-black {
color: black; }

.button-skip {
padding-top: 15px !important;
Expand Down Expand Up @@ -12215,11 +12221,12 @@ ion-tabs .tab-title {
transform: scale3d(0.5, 0.5, 0.5) translateY(0px); }
#walletDetails .bp-content.collapse .amount-alternative, #walletDetails .bp-content.collapse .send-receive-buttons, #walletDetails .bp-content.collapse .wallet-details-wallet-info {
opacity: 0; }
#walletDetails ion-header-bar.bar.bar-header {
background-color: #fbfcff !important; }
#walletDetails .bar-header {
border: 0;
background: #eeb640; }
border: 0; }
#walletDetails .bar-header .title, #walletDetails .bar-header .button {
color: #fff; }
color: #000000; }
#walletDetails .bar-header .button {
background-color: transparent; }
#walletDetails .nav-bar-block, #walletDetails .bar {
Expand Down Expand Up @@ -15798,6 +15805,13 @@ account-selector {
left: 15%;
width: 70%;
max-height: 55%; } }
#pin .circle {
border-radius: 50%;
box-shadow: 0 0 3px 0px #5b5b5b;
transition: background-color .2s ease-in-out;
padding: 7%;
margin: 5%;
border: 1px solid #0AC18E; }
#pin .circle-copay {
border-radius: 50%;
box-shadow: 0 0 3px 0px #5b5b5b;
Expand All @@ -15812,6 +15826,8 @@ account-selector {
padding: 7%;
margin: 5%;
border: 1px solid #0AC18E; }
#pin .filled {
background-color: #0AC18E; }
#pin .filled-copay {
background-color: #494949; }
#pin .filled-bitpay {
Expand Down
4 changes: 2 additions & 2 deletions www/img/contact-placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/views/modals/altCurrency.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="title">
{{'Alternative Currency'|translate}}
</div>
<button class="button button-dark" ng-click="vm.close()" translate>
<button class="button button-clear text-black" ng-click="vm.close()" translate>
{{'Close'|translate}}
</button>
</ion-header-bar>
Expand Down
10 changes: 5 additions & 5 deletions www/views/modals/pin.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ion-modal-view id="pin" ng-controller="pinController">
<ion-header-bar align-title="center">
<button ng-if="action != 'check'" class="button button-back button-clear" ng-click="hideModal()" translate>
<button ng-if="action != 'check'" class="button button-back button-clear text-black" ng-click="hideModal()" translate>
Close
</button>
</ion-header-bar>
Expand All @@ -20,10 +20,10 @@
</div>
<div class="block-code">
<div class="row">
<div class="col circle-{{appName}}" ng-class="getFilledClass(1)"></div>
<div class="col circle-{{appName}}" ng-class="getFilledClass(2)"></div>
<div class="col circle-{{appName}}" ng-class="getFilledClass(3)"></div>
<div class="col circle-{{appName}}" ng-class="getFilledClass(4)"></div>
<div class="col circle" ng-class="getFilledClass(1)"></div>
<div class="col circle" ng-class="getFilledClass(2)"></div>
<div class="col circle" ng-class="getFilledClass(3)"></div>
<div class="col circle" ng-class="getFilledClass(4)"></div>
</div>
</div>
<div class="block-buttons">
Expand Down
2 changes: 1 addition & 1 deletion www/views/tab-receive.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div class="address-info" ng-if="wallet && wallet.isComplete()">
<div ng-show="!showingPaymentReceived">
<div>
<button ng-show="addr" class="button button-standard button-small" ng-click="requestSpecificAmount()">
<button ng-show="addr" class="button button-card-style button-no-border button-drop-shadow white" ng-click="requestSpecificAmount()">
<span translate>Request Specific amount</span>
</button><br/><br/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion www/views/tab-scan.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ion-nav-bar>
<ion-nav-title>{{'Scan' | translate}}</ion-nav-title>
<ion-nav-buttons side="primary">
<button class="button back-button button button-dark ng-hide" ng-click="goBack()" ng-show="canGoBack()">
<button class="button back-button button button-clear ng-hide" ng-click="goBack()" ng-show="canGoBack()">
<i class="icon ion-ios-close-empty"></i>
</button>
</ion-nav-buttons>
Expand Down