Skip to content

Commit f7486ec

Browse files
authored
Merge branch 'WietseWind:main' into main
2 parents 8ff233e + cc15762 commit f7486ec

File tree

24 files changed

+443
-364
lines changed

24 files changed

+443
-364
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply plugin: "com.google.firebase.crashlytics"
77
import com.android.build.OutputFile
88

99
def canonicalVersionName = "4.0.0"
10-
def canonicalVersionCode = 83
10+
def canonicalVersionCode = 85
1111

1212
// NOTE: DO NOT change postFixSize value, this is for handling legacy method for handling the versioning in android
1313
def postFixSize = 30_000

ios/Xaman.xcodeproj/project.pbxproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@
10701070
"${PODS_ROOT}/Firebase/CoreOnly/Sources",
10711071
"\"$(PODS_ROOT)/boost\"",
10721072
"\"$(PODS_ROOT)/Headers/Private/React-Core\"",
1073-
"$CONFIGURATION_TEMP_DIR/Xaman.build/DerivedSources",
1073+
$CONFIGURATION_TEMP_DIR/Xaman.build/DerivedSources,
10741074
);
10751075
INFOPLIST_FILE = XamanTests/Info.plist;
10761076
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
@@ -1155,7 +1155,7 @@
11551155
"${PODS_ROOT}/Firebase/CoreOnly/Sources",
11561156
"\"$(PODS_ROOT)/boost\"",
11571157
"\"$(PODS_ROOT)/Headers/Private/React-Core\"",
1158-
"$CONFIGURATION_TEMP_DIR/Xaman.build/DerivedSources",
1158+
$CONFIGURATION_TEMP_DIR/Xaman.build/DerivedSources,
11591159
);
11601160
INFOPLIST_FILE = XamanTests/Info.plist;
11611161
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
@@ -1183,7 +1183,7 @@
11831183
CODE_SIGN_ENTITLEMENTS = Xaman/Xaman.entitlements;
11841184
CODE_SIGN_IDENTITY = "Apple Development";
11851185
CODE_SIGN_STYLE = Automatic;
1186-
CURRENT_PROJECT_VERSION = 83;
1186+
CURRENT_PROJECT_VERSION = 85;
11871187
DEVELOPMENT_TEAM = LK5BBJNJZ6;
11881188
ENABLE_BITCODE = NO;
11891189
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
@@ -1194,7 +1194,7 @@
11941194
INFOPLIST_FILE = Xaman/Info.plist;
11951195
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
11961196
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1197-
MARKETING_VERSION = 4.0.0;
1197+
MARKETING_VERSION = 4.0.1;
11981198
OTHER_LDFLAGS = (
11991199
"$(inherited)",
12001200
"-ObjC",
@@ -1219,13 +1219,13 @@
12191219
CODE_SIGN_ENTITLEMENTS = Xaman/Xaman.entitlements;
12201220
CODE_SIGN_IDENTITY = "Apple Development";
12211221
CODE_SIGN_STYLE = Automatic;
1222-
CURRENT_PROJECT_VERSION = 83;
1222+
CURRENT_PROJECT_VERSION = 85;
12231223
DEVELOPMENT_TEAM = LK5BBJNJZ6;
12241224
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
12251225
INFOPLIST_FILE = Xaman/Info.plist;
12261226
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
12271227
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1228-
MARKETING_VERSION = 4.0.0;
1228+
MARKETING_VERSION = 4.0.1;
12291229
OTHER_LDFLAGS = (
12301230
"$(inherited)",
12311231
"-ObjC",
@@ -1271,8 +1271,8 @@
12711271
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
12721272
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
12731273
COPY_PHASE_STRIP = NO;
1274-
DEBUG_INFORMATION_FORMAT = dwarf;
12751274
CXX = "";
1275+
DEBUG_INFORMATION_FORMAT = dwarf;
12761276
ENABLE_STRICT_OBJC_MSGSEND = YES;
12771277
ENABLE_TESTABILITY = YES;
12781278
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;

ios/Xaman/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</dict>
5555
</array>
5656
<key>CFBundleVersion</key>
57-
<string>83</string>
57+
<string>85</string>
5858
<key>ITSAppUsesNonExemptEncryption</key>
5959
<false/>
6060
<key>LSApplicationQueriesSchemes</key>

ios/XamanTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>83</string>
22+
<string>85</string>
2323
</dict>
2424
</plist>

src/common/helpers/navigator.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { get } from 'lodash';
1+
import { get, merge } from 'lodash';
22
import { Platform, InteractionManager } from 'react-native';
33

44
import { Navigation, Options, LayoutTabsChildren } from 'react-native-navigation';
@@ -320,7 +320,7 @@ const Navigator = {
320320
name: overlay,
321321
id: overlay,
322322
passProps: Object.assign(passProps, { componentType: ComponentTypes.Overlay }),
323-
options: {
323+
options: merge({
324324
overlay: {
325325
handleKeyboardEvents: true,
326326
},
@@ -334,8 +334,7 @@ const Navigator = {
334334
waitForRender: true, // Wait for the component to render before ANY transitions
335335
},
336336
},
337-
...options,
338-
},
337+
}, options || {}),
339338
},
340339
});
341340
}

src/components/General/SwipeButton/SwipeButton.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class SwipeButton extends Component<Props, State> {
5959
};
6060

6161
private animatedWidth: Animated.Value;
62+
// private animatedWidth: number;
6263
private defaultContainerWidth: number;
6364
private maxWidth: number;
6465
private panResponder: any;
@@ -76,6 +77,7 @@ class SwipeButton extends Component<Props, State> {
7677
this.defaultContainerWidth = AppSizes.scale(45);
7778
this.maxWidth = 0;
7879
this.animatedWidth = new Animated.Value(this.defaultContainerWidth);
80+
// this.animatedWidth = this.defaultContainerWidth;
7981

8082
this.panResponder = PanResponder.create({
8183
onStartShouldSetPanResponder: () => true,
@@ -138,10 +140,11 @@ class SwipeButton extends Component<Props, State> {
138140
};
139141

140142
changePosition = (width: number) => {
143+
// this.animatedWidth = width;
141144
Animated.timing(this.animatedWidth, {
142145
toValue: width,
143146
duration: 400,
144-
useNativeDriver: false,
147+
useNativeDriver: true,
145148
}).start();
146149
};
147150

@@ -194,11 +197,8 @@ class SwipeButton extends Component<Props, State> {
194197
// Reached end position
195198
this.changePosition(this.maxWidth);
196199
} else {
197-
Animated.timing(this.animatedWidth, {
198-
toValue: newWidth,
199-
duration: 0,
200-
useNativeDriver: false,
201-
}).start();
200+
// this.animatedWidth = newWidth;
201+
this.animatedWidth.setValue(newWidth);
202202
}
203203
};
204204

@@ -298,7 +298,10 @@ class SwipeButton extends Component<Props, State> {
298298
<Text style={[styles.label, labelColor ? { color: labelColor } : {}]}>{label}</Text>
299299
<Animated.View
300300
testID={testID}
301-
style={[styles.thumpContainer, { width: this.animatedWidth }]}
301+
style={[
302+
styles.thumpContainer,
303+
{ transform: [ { translateX: this.animatedWidth } ] },
304+
]}
302305
// eslint-disable-next-line react/jsx-props-no-spreading
303306
{...this.panResponder.panHandlers}
304307
>

src/components/General/SwipeButton/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const Styles = StyleService.create({
3434
alignSelf: 'flex-start',
3535
marginVertical: 1,
3636
marginHorizontal: 5,
37+
left: -AppSizes.scale(45),
3738
},
3839
iconContainer: {
3940
height: AppSizes.scale(44),

src/components/Modules/AssetsList/Tokens/TokensList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class TokensList extends Component<Props, State> {
212212
{ token, account },
213213
{
214214
overlay: {
215-
interceptTouchOutside: true,
215+
interceptTouchOutside: false,
216216
// ^^ Needed for tapping backdrop = close, uses onTouchStart={this.startTouch}
217217
},
218218
},

src/components/Modules/MutationWidgets/ActionButtons.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -349,20 +349,25 @@ class ActionButtons extends PureComponent<Props, State> {
349349

350350
renderActionButtons = () => {
351351
const { availableActions } = this.state;
352+
const { item } = this.props;
352353

353354
if (!availableActions) {
354355
return null;
355356
}
356357

357-
return availableActions.map((type) => (
358-
<View style={[AppStyles.paddingBottomExtraSml]}>
359-
<ActionButton
360-
key={`action-button-${type}`}
361-
actionType={type}
362-
onPress={this.onActionButtonPress}
363-
/>
364-
</View>
365-
));
358+
return availableActions.map((type) => {
359+
const key = `action-button-${type}-${item.Account}-${(item as any)?.Destination}`;
360+
361+
return (
362+
<View style={[AppStyles.paddingBottomExtraSml]}>
363+
<ActionButton
364+
key={key}
365+
actionType={type}
366+
onPress={this.onActionButtonPress}
367+
/>
368+
</View>
369+
);
370+
});
366371
};
367372

368373
render() {

src/screens/Account/Add/Import/Steps/EnterSeed/styles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const styles = StyleService.create({
1616
borderColor: 'transparent',
1717
borderWidth: 0,
1818
width: '100%',
19+
color: '$contrast',
1920
},
2021
value: {
2122
fontFamily: AppFonts.base.family,

0 commit comments

Comments
 (0)