Skip to content

Commit

Permalink
Merge pull request #3289 from bithyve/sprint
Browse files Browse the repository at this point in the history
Build 257
  • Loading branch information
cakesoft-shashank authored Oct 6, 2023
2 parents 21b1b79 + b45a2ec commit a2c2ded
Show file tree
Hide file tree
Showing 18 changed files with 200 additions and 191 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ android {
applicationId "io.hexawallet.keeper"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 256
versionCode 257
versionName "1.1.6"
missingDimensionStrategy 'react-native-camera', 'general'
missingDimensionStrategy 'store', 'play'
Expand Down
8 changes: 4 additions & 4 deletions ios/hexa_keeper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@
CODE_SIGN_ENTITLEMENTS = hexa_keeper/hexa_keeper.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 256;
CURRENT_PROJECT_VERSION = 257;
DEVELOPMENT_TEAM = Y5TCB759QL;
ENABLE_BITCODE = NO;
HEADER_SEARCH_PATHS = (
Expand Down Expand Up @@ -915,7 +915,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper/hexa_keeper.entitlements;
CODE_SIGN_IDENTITY = "Apple Distribution: Bithyve UK Ltd (Y5TCB759QL)";
CURRENT_PROJECT_VERSION = 256;
CURRENT_PROJECT_VERSION = 257;
DEVELOPMENT_TEAM = Y5TCB759QL;
HEADER_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -1176,7 +1176,7 @@
CODE_SIGN_ENTITLEMENTS = hexa_keeper_dev.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 256;
CURRENT_PROJECT_VERSION = 257;
DEVELOPMENT_TEAM = Y5TCB759QL;
ENABLE_BITCODE = NO;
HEADER_SEARCH_PATHS = (
Expand Down Expand Up @@ -1310,7 +1310,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper_dev.entitlements;
CODE_SIGN_IDENTITY = "Apple Distribution";
CURRENT_PROJECT_VERSION = 256;
CURRENT_PROJECT_VERSION = 257;
DEVELOPMENT_TEAM = Y5TCB759QL;
HEADER_SEARCH_PATHS = (
"$(inherited)",
Expand Down
2 changes: 1 addition & 1 deletion ios/hexa_keeper/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>256</string>
<string>257</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NFCReaderUsageDescription</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/hexa_keeperTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>256</string>
<string>257</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion ios/hexa_keeper_dev-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>256</string>
<string>257</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NFCReaderUsageDescription</key>
Expand Down
6 changes: 6 additions & 0 deletions src/assets/images/icon_vault_new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/OptionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const OptionCard = ({ title, description, Icon, callback }: OptionProps)
<Pressable onPress={callback}>
<HStack
padding={3}
width={Icon ? windowWidth * 0.9 : windowWidth * 0.85}
width={windowWidth * 0.85}
justifyContent="space-between"
alignItems={'center'}
borderRadius={10}
Expand Down
4 changes: 3 additions & 1 deletion src/screens/Channel/ConnectChannel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ function ConnectChannel() {
) : (
<VStack>
<Text numberOfLines={2} color={`${colorMode}.greenText`} style={styles.instructions}>
{'\u2022 Please share the xPub from the Keeper web interface...'}
{`\u2022 Please ${
mode === InteracationMode.HEALTH_CHECK ? 'do a health check' : 'share the xPub'
} from the Keeper web interface...`}
</Text>
<Text numberOfLines={3} color={`${colorMode}.greenText`} style={styles.instructions}>
{
Expand Down
23 changes: 6 additions & 17 deletions src/screens/HomeScreen/VaultScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ function VaultScreen() {
<Text style={styles.titleText} color={`${colorMode}.primaryText`} testID="text_YourVault">
Your Vault
</Text>
{/* <Text style={styles.subTitleText} color="light.secondaryText">
Keys on Signing Devices
</Text> */}
</Box>
<TouchableOpacity testID="btn_vault" onPress={onVaultPress} activeOpacity={0.7}>
<Box
style={!activeVault ? styles.emptyVaultSignerWrapper : styles.vaultDetailsWrapper}
style={[
styles.vaultDetailsWrapper,
{ alignItems: !activeVault ? 'center' : 'flex-start' },
]}
backgroundColor={`${colorMode}.learnMoreBorder`}
>
{!activeVault ? (
Expand Down Expand Up @@ -99,7 +99,6 @@ function VaultScreen() {
)}
</Box>
</TouchableOpacity>

<ListItemView
icon={<InheritanceIcon />}
title="Inheritance Tools"
Expand All @@ -118,8 +117,7 @@ export default VaultScreen;

const styles = StyleSheet.create({
titleWrapper: {
marginVertical: windowHeight > 680 ? hp(5) : 0,
marginTop: hp(20),
marginVertical: hp(20),
},
titleText: {
fontSize: 16,
Expand All @@ -132,18 +130,9 @@ const styles = StyleSheet.create({
vaultDetailsWrapper: {
paddingHorizontal: 15,
borderRadius: 10,
marginVertical: hp(20),
height: hp(210),
justifyContent: 'center',
},
emptyVaultSignerWrapper: {
// paddingVertical: 45,
paddingHorizontal: 20,
borderRadius: 10,
marginVertical: hp(20),
height: hp(210),
alignItems: 'center',
justifyContent: 'center',
marginBottom: hp(20),
},
emptyVaultIllustration: {
alignSelf: 'center',
Expand Down
19 changes: 7 additions & 12 deletions src/screens/HomeScreen/WalletsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { StyleSheet, TouchableOpacity, Animated, Pressable, View } from 'react-n
import React, { useContext, useEffect, useState } from 'react';
import useWallets from 'src/hooks/useWallets';
import { useAppSelector } from 'src/store/hooks';
import useBalance from 'src/hooks/useBalance';
import { Box, useColorMode } from 'native-base';
import { hp, windowHeight, windowWidth, wp } from 'src/constants/responsive';
import { useNavigation } from '@react-navigation/native';
Expand Down Expand Up @@ -120,8 +119,8 @@ function WalletItem({
onPress={() => {
isCollaborativeWallet
? navigation.navigate('VaultDetails', {
collaborativeWalletId: item.collaborativeWalletId,
})
collaborativeWalletId: item.collaborativeWalletId,
})
: navigation.navigate('WalletDetails', { walletId: item.id, walletIndex });
}}
>
Expand Down Expand Up @@ -162,7 +161,6 @@ function WalletList({
bounces={false}
snapToInterval={ITEM_SIZE}
scrollEventThrottle={16}
contentContainerStyle={{ marginTop: '10%' }}
onScroll={Animated.event([{ nativeEvent: { contentOffset: { x: scrollX } } }], {
useNativeDriver: true,
listener: (event) => {
Expand Down Expand Up @@ -416,9 +414,7 @@ const WalletsScreen = ({ navigation }) => {
const [defaultWalletCreation, setDefaultWalletCreation] = useState(false);

const { showToast } = useToastMessage();
const { recepitVerificationFailed } = useAppSelector(
(state) => state.login
);
const { recepitVerificationFailed } = useAppSelector((state) => state.login);

const electrumClientConnectionStatus = useAppSelector(
(state) => state.login.electrumClientConnectionStatus
Expand Down Expand Up @@ -526,7 +522,7 @@ const WalletsScreen = ({ navigation }) => {
</Box>
<KeeperModal
dismissible={false}
close={() => { }}
close={() => {}}
visible={recepitVerificationFailed}
title="Failed to validate your subscription"
subTitle="Do you want to downgrade to Pleb and continue?"
Expand Down Expand Up @@ -588,12 +584,11 @@ const styles = StyleSheet.create({
justifyContent: 'flex-end',
},
titleWrapper: {
marginVertical: windowHeight > 680 ? hp(5) : 0,
flexDirection: 'row',
width: '100%',
alignSelf: 'center',
alignItems: 'center',
marginTop: hp(20),
marginVertical: hp(20),
justifyContent: 'space-between',
},
titleText: {
fontSize: 16,
Expand Down Expand Up @@ -676,7 +671,7 @@ const styles = StyleSheet.create({
},
netBalanceView: {
width: '40%',
alignItems: 'center',
alignItems: 'flex-end',
},
AddNewWalletIllustrationWrapper: {
flexDirection: 'row',
Expand Down
9 changes: 6 additions & 3 deletions src/screens/HomeScreen/components/CurrencyInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ function CurrencyInfo({
const { getSatUnit, getBalance, getCurrencyIcon } = useBalance();

return (
<HStack style={styles.vaultBalanceContainer} testID='view_currencyView'>
<HStack style={styles.vaultBalanceContainer} testID="view_currencyView">
{getCurrencyIcon(BTC, variation)}
{!hideAmounts ? (
<Box style={styles.rowCenter}>
<Text color={color} style={{ fontSize }}>
<Text color={color} style={{ fontSize }} numberOfLines={1}>
{` ${getBalance(amount)} ${getSatUnit()}`}
</Text>
</Box>
) : (
<Box style={[styles.rowCenter, styles.hiddenContainer, { height: fontSize + 1 }]} testID='view_hideCurrencyView'>
<Box
style={[styles.rowCenter, styles.hiddenContainer, { height: fontSize + 1 }]}
testID="view_hideCurrencyView"
>
<Hidden style={{ color }} />
</Box>
)}
Expand Down
Loading

0 comments on commit a2c2ded

Please sign in to comment.