Browse Source

Merge branch 'master' of https://github.com/BlueWallet/BlueWallet into smalluifixes

localNotifications
Marcos Rodriguez Vélez 6 years ago
parent
commit
4a89610260
  1. 8
      MainBottomTabs.js
  2. 4
      app.json
  3. 7
      loc/en.js
  4. 7
      loc/es.js
  5. 7
      loc/pt_BR.js
  6. 7
      loc/pt_PT.js
  7. 7
      loc/ru.js
  8. 7
      loc/ua.js
  9. 1
      package.json
  10. 2
      release-notes.sh
  11. 22
      screen/wallets/details.js
  12. 20
      screen/wallets/transactions.js
  13. 5
      up-build-number.sh

8
MainBottomTabs.js

@ -10,6 +10,7 @@ import AddWallet from './screen/wallets/add';
import ImportWallet from './screen/wallets/import';
import WalletDetails from './screen/wallets/details';
import WalletExport from './screen/wallets/export';
import BuyBitcoin from './screen/wallets/buyBitcoin';
import scanQrWif from './screen/wallets/scanQrWif';
import details from './screen/transactions/details';
@ -85,7 +86,7 @@ const CreateTransactionStackNavigator = createStackNavigator({
},
});
const Tabs = createStackNavigator(
const MainBottomTabs = createStackNavigator(
{
Wallets: {
screen: WalletsStackNavigator,
@ -112,6 +113,9 @@ const Tabs = createStackNavigator(
WalletExport: {
screen: WalletExport,
},
BuyBitcoin: {
screen: BuyBitcoin,
},
//
SendDetails: {
screen: CreateTransactionStackNavigator,
@ -162,4 +166,4 @@ const Tabs = createStackNavigator(
},
);
export default Tabs;
export default MainBottomTabs;

4
app.json

@ -7,7 +7,7 @@
"ios"
],
"ios": {
"buildNumber": "104",
"buildNumber": "106",
"supportsTablet": true,
"bundleIdentifier": "io.bluewallet.bluewallet",
"infoPlist": {
@ -53,4 +53,4 @@
]
}
}
}
}

7
loc/en.js

@ -22,6 +22,7 @@ module.exports = {
latest_transaction: 'latest transaction',
empty_txs1: 'Your transactions will appear here,',
empty_txs2: 'none at the moment',
tap_here_to_buy: 'Tap here to buy Bitcoin',
},
add: {
title: 'add wallet',
@ -51,6 +52,7 @@ module.exports = {
no_cancel: 'No, cancel',
delete_this_wallet: 'Delete this wallet',
export_backup: 'Export / backup',
buy_bitcoin: 'Buy Bitcoin',
},
export: {
title: 'wallet export',
@ -145,6 +147,11 @@ module.exports = {
copiedToClipboard: 'Copied to clipboard.',
},
},
buyBitcoin: {
header: 'Buy Bitcoin',
tap_your_address: 'Tap your address to copy it to clipboard:',
copied: 'Copied to Clipboard!',
},
settings: {
header: 'settings',
plausible_deniability: 'Plausible deniability...',

7
loc/es.js

@ -22,6 +22,7 @@ module.exports = {
latest_transaction: 'última transacción',
empty_txs1: 'Sus transacciones aparecerán aquí,',
empty_txs2: 'ninguno por el momento.',
tap_here_to_buy: 'Tap here to buy Bitcoin',
},
add: {
title: 'Añadir cartera',
@ -51,6 +52,7 @@ module.exports = {
no_cancel: 'No, cancelar',
delete_this_wallet: 'Eliminar esta carterqa',
export_backup: 'Exportar / Guardar',
buy_bitcoin: 'Buy Bitcoin',
},
export: {
title: 'Exportacion de cartera',
@ -146,6 +148,11 @@ module.exports = {
copiedToClipboard: 'Copiado a portapapeles.',
},
},
buyBitcoin: {
header: 'Buy Bitcoin',
tap_your_address: 'Tap your address to copy it to clipboard:',
copied: 'Copied to Clipboard!',
},
settings: {
tabBarLabel: 'Ajustes',
header: 'Ajustes',

7
loc/pt_BR.js

@ -23,6 +23,7 @@ module.exports = {
latest_transaction: 'última transação',
empty_txs1: 'Suas transações aparecerão aqui',
empty_txs2: 'nenhuma de momento',
tap_here_to_buy: 'Tap here to buy Bitcoin',
},
add: {
title: 'Adicionar Wallet',
@ -52,6 +53,7 @@ module.exports = {
no_cancel: 'Não, cancelar',
delete_this_wallet: 'Apagar esta wallet',
export_backup: 'Exportar / backup',
buy_bitcoin: 'Buy Bitcoin',
},
export: {
title: 'Exportar Wallet',
@ -147,6 +149,11 @@ module.exports = {
copiedToClipboard: 'copiado para clip board',
},
},
buyBitcoin: {
header: 'Buy Bitcoin',
tap_your_address: 'Tap your address to copy it to clipboard:',
copied: 'Copied to Clipboard!',
},
settings: {
tabBarLabel: 'Definições',
header: 'definições',

7
loc/pt_PT.js

@ -22,6 +22,7 @@ module.exports = {
latest_transaction: 'últimas transacções',
empty_txs1: 'As suas transacções aparecerão aqui,',
empty_txs2: 'nenhuma de momento',
tap_here_to_buy: 'Tap here to buy Bitcoin',
},
add: {
title: 'adicionar wallet',
@ -51,6 +52,7 @@ module.exports = {
no_cancel: 'Não, cancelar',
delete_this_wallet: 'Apagar esta wallet',
export_backup: 'Exportar / backup',
buy_bitcoin: 'Buy Bitcoin',
},
export: {
title: 'Exportar Wallet',
@ -138,6 +140,11 @@ module.exports = {
not_enough_fee: 'Taxa demasiado baixo. Aumente a taxa.',
},
},
buyBitcoin: {
header: 'Buy Bitcoin',
tap_your_address: 'Tap your address to copy it to clipboard:',
copied: 'Copied to Clipboard!',
},
receive: {
header: 'receber',
details: {

7
loc/ru.js

@ -22,6 +22,7 @@ module.exports = {
latest_transaction: 'последняя транзакция',
empty_txs1: 'Список транзакций пока пуст',
empty_txs2: ' ',
tap_here_to_buy: 'Tap here to buy Bitcoin',
},
add: {
title: 'добавить кошелек',
@ -51,6 +52,7 @@ module.exports = {
no_cancel: 'Нет, отмена',
delete_this_wallet: 'Удалить этот кошелек',
export_backup: 'Экспорт / резервная копия',
buy_bitcoin: 'Buy Bitcoin',
},
export: {
title: 'Экспорт Кошелька',
@ -137,6 +139,11 @@ module.exports = {
not_enough_fee: 'Слишком маленькая комиссия. Увеличьте комиссию',
},
},
buyBitcoin: {
header: 'Buy Bitcoin',
tap_your_address: 'Tap your address to copy it to clipboard:',
copied: 'Copied to Clipboard!',
},
receive: {
header: 'Получить',
details: {

7
loc/ua.js

@ -22,6 +22,7 @@ module.exports = {
latest_transaction: 'остання транзакція',
empty_txs1: "Транзакціі з'являться тут,",
empty_txs2: 'поки що жодноі',
tap_here_to_buy: 'Tap here to buy Bitcoin',
},
add: {
title: 'Додати Гаманець',
@ -51,6 +52,7 @@ module.exports = {
no_cancel: 'Ні, відміна',
delete_this_wallet: 'Видалити цей гаманець',
export_backup: 'Експорт / резервна копія',
buy_bitcoin: 'Buy Bitcoin',
},
export: {
title: 'Експорт Гаманця',
@ -145,6 +147,11 @@ module.exports = {
copiedToClipboard: 'Зкопіювано',
},
},
buyBitcoin: {
header: 'Buy Bitcoin',
tap_your_address: 'Tap your address to copy it to clipboard:',
copied: 'Copied to Clipboard!',
},
settings: {
tabBarLabel: 'Налаштування',
header: 'Налаштування',

1
package.json

@ -23,6 +23,7 @@
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"prepare": "./patches/fix_mangle.sh; git apply patches/transaction_builder.js.patch; git apply ./patches/transaction.js.patch; test -f sentry.sh && ./sentry.sh || true",
"clean": "rm -r -f node_modules/",
"start": "expo start",
"eject": "expo eject",
"android": "expo android",

2
release-notes.sh

@ -1,4 +1,4 @@
#!/usr/bin/env bash
TAG=`git tag | sort | tail -n 1`
HASH=`git show-ref -s $TAG`
git log --pretty=format:'%Cred*%Creset %Creset %s %b %Creset' $HASH..HEAD
git log --pretty=format:'* %s %b' $HASH..HEAD

22
screen/wallets/details.js

@ -155,6 +155,11 @@ export default class WalletDetails extends Component {
<BlueSpacing20 />
<BlueButton
icon={{
name: 'cloud-upload',
type: 'octicon',
color: BlueApp.settings.buttonTextColor,
}}
onPress={() =>
this.props.navigation.navigate('WalletExport', {
address: this.state.wallet.getAddress(),
@ -163,6 +168,23 @@ export default class WalletDetails extends Component {
}
title={loc.wallets.details.export_backup}
/>
<BlueSpacing20 />
<BlueButton
icon={{
name: 'shopping-cart',
type: 'font-awesome',
color: BlueApp.settings.buttonTextColor,
}}
onPress={() =>
this.props.navigation.navigate('BuyBitcoin', {
address: this.state.wallet.getAddress(),
secret: this.state.wallet.getSecret(),
})
}
title={loc.wallets.details.buy_bitcoin}
/>
</View>
);
}

20
screen/wallets/transactions.js

@ -362,6 +362,26 @@ export default class WalletTransactions extends Component {
{(this.isLightning() && '\nTo start using it tap on "manage funds"\nand topup your balance') ||
loc.wallets.list.empty_txs2}
</Text>
<Text />
<Text />
<Text
style={{
fontSize: 18,
color: '#9aa0aa',
textAlign: 'center',
textDecorationLine: 'underline',
}}
onPress={() =>
this.props.navigation.navigate('BuyBitcoin', {
address: this.state.wallet.getAddress(),
secret: this.state.wallet.getSecret(),
})
}
>
{loc.wallets.list.tap_here_to_buy}
</Text>
</View>
}
refreshControl={<RefreshControl onRefresh={() => this.refreshTransactions()} refreshing={this.state.isTransactionsLoading} />}

5
up-build-number.sh

@ -0,0 +1,5 @@
#!/usr/bin/env bash
./release-notes.sh
./release-notes.sh > fastlane/metadata/en-US/release_notes.txt
echo
nodejs up-build-number.js
Loading…
Cancel
Save