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

4
app.json

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

7
loc/en.js

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

7
loc/es.js

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

7
loc/pt_BR.js

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

7
loc/pt_PT.js

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

7
loc/ru.js

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

7
loc/ua.js

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

1
package.json

@ -23,6 +23,7 @@
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js", "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": { "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", "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", "start": "expo start",
"eject": "expo eject", "eject": "expo eject",
"android": "expo android", "android": "expo android",

2
release-notes.sh

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
TAG=`git tag | sort | tail -n 1` TAG=`git tag | sort | tail -n 1`
HASH=`git show-ref -s $TAG` 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 /> <BlueSpacing20 />
<BlueButton <BlueButton
icon={{
name: 'cloud-upload',
type: 'octicon',
color: BlueApp.settings.buttonTextColor,
}}
onPress={() => onPress={() =>
this.props.navigation.navigate('WalletExport', { this.props.navigation.navigate('WalletExport', {
address: this.state.wallet.getAddress(), address: this.state.wallet.getAddress(),
@ -163,6 +168,23 @@ export default class WalletDetails extends Component {
} }
title={loc.wallets.details.export_backup} 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> </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') || {(this.isLightning() && '\nTo start using it tap on "manage funds"\nand topup your balance') ||
loc.wallets.list.empty_txs2} loc.wallets.list.empty_txs2}
</Text> </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> </View>
} }
refreshControl={<RefreshControl onRefresh={() => this.refreshTransactions()} refreshing={this.state.isTransactionsLoading} />} 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