Browse Source

Merge branch 'master' into defualtview

walletselecttest
Marcos Rodriguez 5 years ago
parent
commit
7f02c1594a
  1. 8
      MainBottomTabs.js
  2. 2
      android/app/build.gradle
  3. 2
      ios/BlueWallet/Info.plist
  4. 2
      ios/BlueWalletWatch Extension/Info.plist
  5. 2
      ios/BlueWalletWatch/Info.plist
  6. 5
      loc/pt_PT.js
  7. 2
      package-lock.json
  8. 2
      package.json
  9. 4
      screen/receive/receiveAmount.js
  10. 11
      screen/wallets/selectWallet.js

8
MainBottomTabs.js

@ -175,6 +175,9 @@ const CreateTransactionStackNavigator = createStackNavigator({
},
SelectWallet: {
screen: SelectWallet,
navigationOptions: {
headerRight: null,
},
},
});
@ -210,6 +213,9 @@ const LightningScanInvoiceStackNavigator = createStackNavigator({
},
SelectWallet: {
screen: SelectWallet,
navigationOptions: {
headerRight: null,
},
},
Success: {
screen: Success,
@ -257,7 +263,7 @@ const MainBottomTabs = createStackNavigator(
screen: SelectWallet,
navigationOptions: {
headerLeft: null,
}
},
},
//

2
android/app/build.gradle

@ -118,7 +118,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "4.5.2"
versionName "4.6.0"
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}

2
ios/BlueWallet/Info.plist

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.5.2</string>
<string>4.6.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>

2
ios/BlueWalletWatch Extension/Info.plist

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>4.5.2</string>
<string>4.6.0</string>
<key>CFBundleVersion</key>
<string>239</string>
<key>CLKComplicationPrincipalClass</key>

2
ios/BlueWalletWatch/Info.plist

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.5.2</string>
<string>4.6.0</string>
<key>CFBundleVersion</key>
<string>239</string>
<key>UISupportedInterfaceOrientations</key>

5
loc/pt_PT.js

@ -188,8 +188,9 @@ module.exports = {
lightning_settings: 'Definições do Lightning',
lightning_settings_explain:
'Para se ligar ao seu próprio node LND, por favor instale o LndHub ' +
' e coloque o seu endereço aqui nas definições. Deixe em branco para usar o valor por omissão' +
'ndHub\n (lndhub.io)',
'e coloque o seu endereço aqui nas definições. ' +
'Deixe em branco para usar o LNDHub da BlueWallet (lndhub.io). ' +
'Wallets criadas depois desta alteração ligar-se-ão ao LNDHub especificado.',
electrum_settings: 'Definições do Electrum',
electrum_settings_explain: 'Deixe em branco para usar o valor por omissão',
save: 'Guardar',

2
package-lock.json

@ -1,6 +1,6 @@
{
"name": "BlueWallet",
"version": "4.5.2",
"version": "4.6.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

2
package.json

@ -1,6 +1,6 @@
{
"name": "BlueWallet",
"version": "4.5.2",
"version": "4.6.0",
"devDependencies": {
"@babel/core": "^7.5.0",
"@babel/runtime": "^7.5.1",

4
screen/receive/receiveAmount.js

@ -13,7 +13,6 @@ import {
} from '../../BlueComponents';
import PropTypes from 'prop-types';
import Privacy from '../../Privacy';
import SystemSetting from 'react-native-system-setting';
/** @type {AppStorage} */
let BlueApp = require('../../BlueApp');
let loc = require('../../loc');
@ -51,13 +50,10 @@ export default class ReceiveAmount extends Component {
async componentDidMount() {
Privacy.enableBlur();
await SystemSetting.saveBrightness();
await SystemSetting.setAppBrightness(1.0);
}
async componentWillUnmount() {
Privacy.disableBlur();
await SystemSetting.restoreBrightness();
}
determineSize = () => {

11
screen/wallets/selectWallet.js

@ -11,13 +11,14 @@ let BlueApp = require('../../BlueApp');
let loc = require('../../loc');
export default class SelectWallet extends Component {
static navigationOptions = () => ({
...BlueNavigationStyle(),
static navigationOptions = ({ navigation }) => ({
...BlueNavigationStyle(navigation, true, navigation.getParam('dismissAcion')),
title: loc.wallets.select_wallet,
});
constructor(props) {
super(props);
props.navigation.setParams({ dismissAcion: this.dismissComponent });
this.state = {
isLoading: true,
data: [],
@ -25,6 +26,10 @@ export default class SelectWallet extends Component {
this.chainType = props.navigation.getParam('chainType');
}
dismissComponent = () => {
this.props.navigation.goBack(null);
};
componentDidMount() {
const wallets = this.chainType
? BlueApp.getWallets().filter(item => item.chain === this.chainType && item.allowSend())
@ -165,8 +170,8 @@ export default class SelectWallet extends Component {
SelectWallet.propTypes = {
navigation: PropTypes.shape({
navigate: PropTypes.func,
goBack: PropTypes.func,
setParams: PropTypes.func,
dismiss: PropTypes.func,
getParam: PropTypes.func,
}),
};

Loading…
Cancel
Save