Compare commits
25 commits
master
...
wallet/rel
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3043e6824 |
||
|
|
f0d020f538 |
||
|
|
d410acbba2 |
||
|
|
acacb5660b |
||
|
|
fb41fca601 |
||
|
|
8039ea26da | ||
|
|
5401bf9a09 | ||
|
|
0598a07af7 |
||
|
|
9f904bb098 |
||
|
|
37596c3a25 |
||
|
|
dbe920a67b |
||
|
|
d2178d670f | ||
|
|
8f8027d573 | ||
|
|
babdc8a13b | ||
|
|
6452a0c7f4 | ||
|
|
1b0541a7b5 | ||
|
|
c661798cd1 | ||
|
|
a5a1d3edb6 | ||
|
|
0ba4db83e0 | ||
|
|
10b9b0c5c9 |
||
|
|
9e01303f37 |
||
|
|
e3a82a1118 |
||
|
|
ef8e7ac501 |
||
|
|
3b0b85f234 |
||
|
|
5d1ed16ab5 |
8 changed files with 17 additions and 17 deletions
|
|
@ -57,7 +57,7 @@ module.exports = function(grunt) {
|
||||||
command: 'node ./util/buildExternalServices.js'
|
command: 'node ./util/buildExternalServices.js'
|
||||||
},
|
},
|
||||||
get_nwjs_for_pkg: {
|
get_nwjs_for_pkg: {
|
||||||
command: 'if [ ! -d ./cache/0.19.5-pkg/osx64/nwjs.app ]; then cd ./cache; curl https://dl.nwjs.io/v0.19.5-mas-beta/nwjs-mas-v0.19.5-osx-x64.zip --output nwjs.zip; unzip nwjs.zip; mkdir -p ./0.19.5-pkg/osx64; cp -R ./nwjs-mas-v0.19.5-osx-x64/nwjs.app ./0.19.5-pkg/osx64/; fi'
|
command: 'if [ ! -d ./cache/0.19.4/osx64/nwjs.app ]; then mkdir -p ./cache/0.19.4/osx64; curl https://dl.nwjs.io/v0.19.5-mas-beta/nwjs-mas-v0.19.5-osx-x64.zip --output ./cache/nwjs.zip; unzip ./cache/nwjs.zip -d ./cache; cp -R ./cache/nwjs-mas-v0.19.5-osx-x64/nwjs.app ./cache/0.19.4/osx64/; fi'
|
||||||
},
|
},
|
||||||
log_android: {
|
log_android: {
|
||||||
command: 'adb logcat | grep chromium',
|
command: 'adb logcat | grep chromium',
|
||||||
|
|
@ -71,7 +71,7 @@ module.exports = function(grunt) {
|
||||||
sign_android: {
|
sign_android: {
|
||||||
// When the build log outputs "Built the following apk(s):", it seems to need the filename to start with "android-release".
|
// When the build log outputs "Built the following apk(s):", it seems to need the filename to start with "android-release".
|
||||||
// It looks like it simply lists all apk files starting with "android-release"
|
// It looks like it simply lists all apk files starting with "android-release"
|
||||||
command: 'rm -f platforms/android/build/outputs/apk/android-release-signed-*.apk; jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../bitcoin-com-release-key.jks -signedjar platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-unsigned.apk bitcoin-com && zipalign -v 4 platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/bitcoin-com-wallet-<%= pkg.fullVersion %>-android-signed-aligned.apk',
|
command: 'rm -f platforms/android/build/outputs/apk/release/*-android-signed-aligned.apk; jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../bitcoin-com-release-key.jks -signedjar platforms/android/build/outputs/apk/release/android-release-signed.apk platforms/android/build/outputs/apk/release/android-release-unsigned.apk bitcoin-com && zipalign -v 4 platforms/android/build/outputs/apk/release/android-release-signed.apk platforms/android/build/outputs/apk/release/bitcoin-com-wallet-<%= pkg.fullVersion %>-android-signed-aligned.apk',
|
||||||
stdin: true,
|
stdin: true,
|
||||||
},
|
},
|
||||||
sign_desktop_dist: {
|
sign_desktop_dist: {
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,9 @@
|
||||||
"windowsAppId": "804636ee-b017-4cad-8719-e58ac97ffa5c",
|
"windowsAppId": "804636ee-b017-4cad-8719-e58ac97ffa5c",
|
||||||
"pushSenderId": "1036948132229",
|
"pushSenderId": "1036948132229",
|
||||||
"description": "A Secure Bitcoin Wallet",
|
"description": "A Secure Bitcoin Wallet",
|
||||||
"version": "5.1.3",
|
"version": "5.1.4",
|
||||||
"fullVersion": "5.1-rc2",
|
"fullVersion": "5.1-rc3",
|
||||||
"androidVersion": "501003",
|
"androidVersion": "501400",
|
||||||
"_extraCSS": "",
|
"_extraCSS": "",
|
||||||
"_enabledExtensions": {
|
"_enabledExtensions": {
|
||||||
"coinbase": false,
|
"coinbase": false,
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Supported Platforms -->
|
<!-- Supported Platforms -->
|
||||||
<engine name="ios" spec="~4.5.3" />
|
<engine name="ios" spec="~4.5.3" />
|
||||||
<engine name="android" spec="~6.3.0" />
|
<engine name="android" spec="~6.4.0" />
|
||||||
<engine name="windows" spec="~5.0.0" />
|
<engine name="windows" spec="~5.0.0" />
|
||||||
|
|
||||||
<!-- Platform Specific Settings -->
|
<!-- Platform Specific Settings -->
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
ext {
|
ext {
|
||||||
ANDROID_SUPPORT_V4_VERSION = '26.1.0'
|
ANDROID_SUPPORT_V4_VERSION = '26.1.0'
|
||||||
|
ANDROID_SUPPORT_ANNOTATIONS_VERSION = '26.1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ angular
|
||||||
// Detect some merchant that we know
|
// Detect some merchant that we know
|
||||||
if (payProData.memo.indexOf('eGifter') > -1) {
|
if (payProData.memo.indexOf('eGifter') > -1) {
|
||||||
name = 'eGifter'
|
name = 'eGifter'
|
||||||
} else if (paymentUrl.indexOf('https://bitpay.com') > -1) {
|
} else if (payProData.url.indexOf('https://bitpay.com') > -1) {
|
||||||
name = 'BitPay';
|
name = 'BitPay';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ angular.module('copayApp.services').factory('servicesService', function(configSe
|
||||||
name: 'shapeshift',
|
name: 'shapeshift',
|
||||||
title: 'Shapeshift',
|
title: 'Shapeshift',
|
||||||
icon: 'icon-shapeshift',
|
icon: 'icon-shapeshift',
|
||||||
href: 'https://shapeshift.io/'
|
sref: 'tabs.shapeshift'
|
||||||
}];
|
}];
|
||||||
|
|
||||||
root.register = function(serviceInfo) {
|
root.register = function(serviceInfo) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ var ShapeShift = (function() {
|
||||||
var parsedResponse = JP(xmlhttp.responseText);
|
var parsedResponse = JP(xmlhttp.responseText);
|
||||||
cb.apply(null, [parsedResponse]);
|
cb.apply(null, [parsedResponse]);
|
||||||
} else {
|
} else {
|
||||||
cb.apply(null, [new Error('Request Failed')])
|
cb.apply(null, [new Error('Request Failed')]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@
|
||||||
.factory('walletHistoryService', walletHistoryService);
|
.factory('walletHistoryService', walletHistoryService);
|
||||||
|
|
||||||
function walletHistoryService(configService, storageService, lodash, $log, txFormatService) {
|
function walletHistoryService(configService, storageService, lodash, $log, txFormatService) {
|
||||||
//var PAGE_SIZE = 50;
|
var PAGE_SIZE = 50;
|
||||||
var PAGE_SIZE = 20; // For dev only
|
//var PAGE_SIZE = 20; // For dev only
|
||||||
// How much to overlap on each end of the page, for mitigating inconsistent sort order.
|
// How much to overlap on each end of the page, for mitigating inconsistent sort order.
|
||||||
var PAGE_OVERLAP_FRACTION = 0.2;
|
var PAGE_OVERLAP_FRACTION = 0.2;
|
||||||
var PAGE_OVERLAP = Math.floor(PAGE_SIZE * PAGE_OVERLAP_FRACTION);
|
var PAGE_OVERLAP = Math.floor(PAGE_SIZE * PAGE_OVERLAP_FRACTION);
|
||||||
|
|
@ -28,8 +28,8 @@
|
||||||
function addEarlyTransactions(walletId, cachedTxs, newTxs) {
|
function addEarlyTransactions(walletId, cachedTxs, newTxs) {
|
||||||
|
|
||||||
var cachedTxIndexFromId = {};
|
var cachedTxIndexFromId = {};
|
||||||
cachedTxs.forEach(function forCachedTx(tx){
|
cachedTxs.forEach(function forCachedTx(tx, txIndex){
|
||||||
cachedTxIndexFromId[tx.txid] = true;
|
cachedTxIndexFromId[tx.txid] = txIndex;
|
||||||
});
|
});
|
||||||
|
|
||||||
var confirmationsUpdated = false;
|
var confirmationsUpdated = false;
|
||||||
|
|
@ -49,8 +49,9 @@
|
||||||
|
|
||||||
var overlappingTxFraction = overlappingTxsCount / Math.min(cachedTxs.length, PAGE_OVERLAP);
|
var overlappingTxFraction = overlappingTxsCount / Math.min(cachedTxs.length, PAGE_OVERLAP);
|
||||||
console.log('overlappingTxFraction:', overlappingTxFraction);
|
console.log('overlappingTxFraction:', overlappingTxFraction);
|
||||||
|
console.log('overlappingTxsCount:', overlappingTxsCount);
|
||||||
|
|
||||||
if (overlappingTxFraction >= MIN_KNOWN_TX_OVERLAP_FRACTION) { // We are good
|
if (overlappingTxFraction >= MIN_KNOWN_TX_OVERLAP_FRACTION || (someTransactionsWereNew && overlappingTxsCount === 0)) { // We are good
|
||||||
if (someTransactionsWereNew) {
|
if (someTransactionsWereNew) {
|
||||||
saveTxHistory(walletId, cachedTxs);
|
saveTxHistory(walletId, cachedTxs);
|
||||||
} else if (confirmationsUpdated) {
|
} else if (confirmationsUpdated) {
|
||||||
|
|
@ -93,7 +94,7 @@
|
||||||
|
|
||||||
var overlappingTxFraction = overlappingTxsCount / Math.min(cachedTxs.length, PAGE_OVERLAP);
|
var overlappingTxFraction = overlappingTxsCount / Math.min(cachedTxs.length, PAGE_OVERLAP);
|
||||||
|
|
||||||
if (overlappingTxFraction >= MIN_KNOWN_TX_OVERLAP_FRACTION) { // We are good
|
if (overlappingTxFraction >= MIN_KNOWN_TX_OVERLAP_FRACTION || (someTransactionsWereNew && overlappingTxsCount === 0)) { // We are good
|
||||||
if (someTransactionsWereNew) {
|
if (someTransactionsWereNew) {
|
||||||
var allTxs = uniqueNewTxs.concat(cachedTxs);
|
var allTxs = uniqueNewTxs.concat(cachedTxs);
|
||||||
saveTxHistory(walletId, allTxs);
|
saveTxHistory(walletId, allTxs);
|
||||||
|
|
@ -147,7 +148,6 @@
|
||||||
* @param {function(error, txs)} cb - txs is always an array, may be empty
|
* @param {function(error, txs)} cb - txs is always an array, may be empty
|
||||||
*/
|
*/
|
||||||
function getCachedTxHistory(walletId, cb) {
|
function getCachedTxHistory(walletId, cb) {
|
||||||
console.log('txhistory updateLocalTxHistoryByPage()');
|
|
||||||
storageService.getTxHistory(walletId, function onGetTxHistory(err, txHistoryString){
|
storageService.getTxHistory(walletId, function onGetTxHistory(err, txHistoryString){
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb(err, []);
|
return cb(err, []);
|
||||||
|
|
@ -230,7 +230,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateLocalTxHistoryByPage(wallet, getLatest, flushCacheOnNew, cb) {
|
function updateLocalTxHistoryByPage(wallet, getLatest, flushCacheOnNew, cb) {
|
||||||
console.log('txhistory updaetLocalTxHistoryByPage()');
|
|
||||||
if (flushCacheOnNew) {
|
if (flushCacheOnNew) {
|
||||||
fetchTxHistoryByPage(wallet, 0, function onFetchTxHistory(err, txs){
|
fetchTxHistoryByPage(wallet, 0, function onFetchTxHistory(err, txs){
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue