Skip to content

Commit

Permalink
Merge pull request #40 from ademcan/master
Browse files Browse the repository at this point in the history
Small UI fixes and new tag 1.0.6
  • Loading branch information
ademcan authored Jan 25, 2019
2 parents 8e035fd + 8a0e37f commit dafe8fb
Show file tree
Hide file tree
Showing 24 changed files with 302 additions and 296 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ android {
minSdkVersion 23
targetSdkVersion 26
versionCode 1
versionName "1.0.5"
versionName "1.0.6"

ndk {
abiFilters "armeabi-v7a", "x86"
Expand Down
551 changes: 281 additions & 270 deletions android/app/src/main/assets/index.android.bundle

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion android/app/src/main/assets/index.android.bundle.meta
Original file line number Diff line number Diff line change
@@ -1 +1 @@
�����7_�8�Aw�s��&
��/�eFC6�s_ֆ�SI��o
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand Down
2 changes: 1 addition & 1 deletion ios/theQRL/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>5</string>
<string>6</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
2 changes: 1 addition & 1 deletion screens/BackupWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class BackupWallet extends React.Component {
<View style={{flex:1}}>

<View style={{alignItems:'flex-start', justifyContent:'flex-start', paddingTop:40, paddingLeft:30}}>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='white'>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='#184477'>
<Image source={require('../resources/images/sandwich.png')} resizeMode={Image.resizeMode.contain} style={{height:25, width:25}} />
</TouchableHighlight>
</View>
Expand Down
7 changes: 1 addition & 6 deletions screens/CreateNewWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ export default class CreateNewWallet extends React.Component {
</TouchableHighlight>
</View>
</View>
{rowID < this.state.walletlist.length - 1 ?
<View style={{height: .5,width: "90%",backgroundColor: "#000",alignSelf:'center'}}/>
:
undefined
}
</View>
);
}
Expand Down Expand Up @@ -193,7 +188,7 @@ export default class CreateNewWallet extends React.Component {
<ImageBackground source={require('../resources/images/sendreceive_bg_half.png')} style={styles.backgroundImage}>
<View style={{flex:1}}>
<View style={{alignItems:'flex-start', justifyContent:'flex-start', paddingTop:40, paddingLeft:30}}>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='white'>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='#184477'>
<Image source={require('../resources/images/sandwich.png')} resizeMode={Image.resizeMode.contain} style={{height:25, width:25}} />
</TouchableHighlight>
</View>
Expand Down
4 changes: 2 additions & 2 deletions screens/OpenExistingWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export default class OpenExistingWallet extends React.Component {
componentDidMount(){
const hexseed = this.props.navigation.getParam('hexseed', 'nohexseed');
if (hexseed == "nohexseed"){
// this.setState({hexseed: "" })
this.setState({ hexseed: GLOBALS.hexseed1 })
this.setState({hexseed: "" })
// this.setState({ hexseed: GLOBALS.hexseed1 })
}
else {
this.setState({hexseed: hexseed})
Expand Down
16 changes: 7 additions & 9 deletions screens/SendReceive.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default class SendReceive extends React.Component {
componentDidMount() {
const recipient = this.props.navigation.getParam('recipient', 'norecipient');
if (recipient == "norecipient"){
// this.setState({recipient:""})
this.setState({recipient: GLOBALS.recipient })
this.setState({recipient:""})
// this.setState({recipient: GLOBALS.recipient })
}
else {
this.setState({recipient:recipient})
Expand Down Expand Up @@ -214,15 +214,15 @@ export default class SendReceive extends React.Component {

<ImageBackground source={require('../resources/images/sendreceive_bg_half.png')} style={styles.backgroundImage}>
<View style={{alignItems:'flex-start', justifyContent:'flex-start', paddingTop:40, paddingLeft:30}}>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} activeOpacity={1}>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='#184477'>
<Image source={require('../resources/images/sandwich.png')} resizeMode={Image.resizeMode.contain} style={{height:25, width:25}} />
</TouchableHighlight>
</View>
<FlashMessage/>

<View style={{ alignItems:'center', paddingTop:this.state.paddingTopMain }}>
<ImageBackground source={require('../resources/images/fund_bg_small.png')} resizeMode={Image.resizeMode.contain} style={{height:100, width:330, justifyContent:'center',alignItems:'center', paddingLeft:10, paddingRight:10}} >
<Text style={{color:'white', fontWeight: "bold", fontSize:12, textAlign:'center'}} selectable={true}>{this.state.walletAddress}</Text>
<Text style={{color:'white', fontWeight: "bold", fontSize:12, textAlign:'center'}} selectable={true}>Q{this.state.walletAddress}</Text>
<Text style={{color:'white',fontSize:30}}>{this.state.balance} QRL</Text>
</ImageBackground>
<TouchableOpacity style={styles.SubmitButtonStyle2} activeOpacity = { .5 } onPress={ this.refreshWallet }>
Expand Down Expand Up @@ -302,16 +302,16 @@ export default class SendReceive extends React.Component {
<KeyboardAvoidingView style={{flex:1}} keyboardVerticalOffset={-200} behavior="padding">
<ImageBackground source={require('../resources/images/sendreceive_bg_half.png')} style={styles.backgroundImage}>
<View style={{alignItems:'flex-start', justifyContent:'flex-start', paddingTop:40, paddingLeft:30}}>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='white'>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='#184477'>
<Image source={require('../resources/images/sandwich.png')} resizeMode={Image.resizeMode.contain} style={{height:25, width:25}} />
</TouchableHighlight>
</View>
<FlashMessage/>

<View style={{ alignItems:'center', paddingTop:20}}>
<ImageBackground source={require('../resources/images/fund_bg_small.png')} resizeMode={Image.resizeMode.contain} style={{height:100, width:330, justifyContent:'center',alignItems:'center'}} >
<Text style={{color:'white'}}>QRL BALANCE</Text>
<Text style={{color:'white',fontSize:30}}>{this.state.balance}</Text>
<Text style={{color:'white', fontWeight: "bold", fontSize:12, textAlign:'center'}} selectable={true}>Q{this.state.walletAddress}</Text>
<Text style={{color:'white',fontSize:30}}>{this.state.balance} QRL</Text>
</ImageBackground>
<TouchableOpacity style={styles.SubmitButtonStyle2} activeOpacity = { .5 } onPress={ this.refreshWallet }>
<Image source={require("../resources/images/refresh.png")} style={{height:40, width:40}}/>
Expand Down Expand Up @@ -398,8 +398,6 @@ const styles = StyleSheet.create({
paddingTop:15,
paddingBottom:15,
backgroundColor:'#f33160',
borderWidth: 1,
borderColor: '#fff'
},
SubmitButtonStyleBig: {
alignSelf:'center',
Expand Down
10 changes: 6 additions & 4 deletions screens/TransactionsHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export default class Wallet extends React.Component{
if (Platform.OS === 'ios'){
IosWallet.refreshWallet(walletindex, (error, walletAddress, otsIndex, balance, keys)=> {
this.setState({walletAddress: walletAddress, isLoading:false, updatedDate: new Date(), balance: balance, otsIndex: otsIndex, dataSource: ds.cloneWithRows(JSON.parse(keys)), tx_count: JSON.parse(keys).length})


});
}
// Android
Expand Down Expand Up @@ -166,7 +168,7 @@ export default class Wallet extends React.Component{
<ImageBackground source={require('../resources/images/main_bg_half.png')} style={styles.backgroundImage}>
<View style={{flex:1}}>
<View style={{alignItems:'flex-start', justifyContent:'flex-start', paddingTop:40, paddingLeft:30}}>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='white'>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='#184477'>
<Image source={require('../resources/images/sandwich.png')} resizeMode={Image.resizeMode.contain} style={{height:25, width:25}} />
</TouchableHighlight>
</View>
Expand Down Expand Up @@ -224,7 +226,7 @@ export default class Wallet extends React.Component{
<View style={{flex:1}}>

<View style={{alignItems:'flex-start', justifyContent:'flex-start', paddingTop:40, paddingLeft:30}}>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='white'>
<TouchableHighlight onPress={()=> this.props.navigation.openDrawer()} underlayColor='#184477'>
<Image source={require('../resources/images/sandwich.png')} resizeMode={Image.resizeMode.contain} style={{height:25, width:25}} />
</TouchableHighlight>
</View>
Expand All @@ -239,7 +241,7 @@ export default class Wallet extends React.Component{
<ImageBackground source={require('../resources/images/fund_bg.png')} resizeMode={Image.resizeMode.contain} style={{height:240, width:360, justifyContent:'center',alignItems:'center', paddingTop: 30, paddingLeft:10, paddingRight:10}} >
{/* <Text style={{color:'white'}}>QRL BALANCE</Text> */}
{/* <Text style={{color:'white', fontWeight: "bold"}} selectable={true}>Q{addressBegin}...{addressEnd}</Text> */}
<Text style={{color:'white', fontWeight: "bold", fontSize:12, textAlign:'center'}} selectable={true}>{this.state.walletAddress}</Text>
<Text style={{color:'white', fontWeight: "bold", fontSize:12, textAlign:'center'}} selectable={true}>Q{this.state.walletAddress}</Text>
<Text style={{color:'white',fontSize:30}}>{this.state.balance / 1000000000 } QRL</Text>
<Text style={{color:'white',fontSize:13}}>USD ${ ((this.state.balance / 1000000000 ) * this.state.price).toFixed(2) }</Text>

Expand Down Expand Up @@ -283,7 +285,7 @@ export default class Wallet extends React.Component{
<View style={{backgroundColor:'white', flex:2, width:350, alignSelf:'center', borderRadius:10, marginTop:10}}>
<Text style={{alignItems:'center', alignSelf:'center', paddingTop:20, marginBottom:20}}>TRANSACTION HISTORY</Text>
<View style={{height: .5,width: "90%",backgroundColor: "#000",alignSelf:'center'}}/>
{this.state.tx_count == 0 ?
{this.state.tx_count == 0 || this.state.tx_count == undefined ?
<Text style={{alignSelf:'center'}}>No Transaction yet</Text>
:
<ListView automaticallyAdjustContentInsets={false} dataSource={this.state.dataSource} renderRow={this.renderRow.bind(this)} enableEmptySections={true} />
Expand Down

0 comments on commit dafe8fb

Please sign in to comment.