Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:rainbow-me/rainbow into brody/ma…
Browse files Browse the repository at this point in the history
…estro-test

* 'develop' of github.com:rainbow-me/rainbow:
  createRainbowStore (#5689)
  Browser: new architecture (#5671)
  handle injection natively (#5677)
  fix wallet balance in send flow (#5665)
  bump version to v1.9.23 (#5668)
  use current safari UA (#5670)
  Browser: browserStore (#5669)
  • Loading branch information
BrodyHughes committed May 3, 2024
2 parents c8a1248 + 5fb88b4 commit 284f5e1
Show file tree
Hide file tree
Showing 65 changed files with 4,671 additions and 2,229 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/)

### Fixed

## [1.9.22] (https://github.com/rainbow-me/rainbow/releases/tag/v1.9.22)

### Added

- Swaps v2 updates (#5601, #5635, #5632, #5630, #5643, #5648, #5650, #5649)
- We now show total USD value of wallet instead of just mainnet ETH balance inside the wallet switcher (#5631)

### Changed

- Updated booleans in remote config (#5627)
- Removed codepush and unused updates to token list (#5622)
- Copy update when sending on different networks (#5495)
- Updates to e2e (#5637)
- bumped sentry to latest sdk (#5640)
- Updated firebase to better support notifications deeplinks and Apple privacy warnings (#5636)

### Fixed

- Fixed an edge case in swaps v2 when choosing to swap assets (#5644)
- Fixed a bug where send sheet USD value was marked as ETH (#5665)
- Fixed crash when swapping Degen token to ProxySwap token (#5667)

## [1.9.21] (https://github.com/rainbow-me/rainbow/releases/tag/v1.9.21)

### Added
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ android {
applicationId "me.rainbow"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 210
versionName "1.9.22"
versionCode 211
versionName "1.9.23"
missingDimensionStrategy 'react-native-camera', 'general'
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
Expand Down
12 changes: 6 additions & 6 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ PODS:
- React-Core
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- FasterImage (1.4.3):
- FasterImage/Nuke (= 1.4.3)
- FasterImage/NukeUI (= 1.4.3)
- FasterImage (1.5.0):
- FasterImage/Nuke (= 1.5.0)
- FasterImage/NukeUI (= 1.5.0)
- React-Core
- FasterImage/Nuke (1.4.3):
- FasterImage/Nuke (1.5.0):
- React-Core
- FasterImage/NukeUI (1.4.3):
- FasterImage/NukeUI (1.5.0):
- React-Core
- FBLazyVector (0.72.3)
- FBReactNativeSpec (0.72.3):
Expand Down Expand Up @@ -1858,7 +1858,7 @@ SPEC CHECKSUMS:
BVLinearGradient: 880f91a7854faff2df62518f0281afb1c60d49a3
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FasterImage: 60d0750ddbcefff0070c4c17309c2d1d6cc650f0
FasterImage: 1f65cdb2966c47b2a7b83162e5fc712534e50149
FBLazyVector: 4cce221dd782d3ff7c4172167bba09d58af67ccb
FBReactNativeSpec: c6bd9e179757b3c0ecf815864fae8032377903ef
Firebase: 91fefd38712feb9186ea8996af6cbdef41473442
Expand Down
8 changes: 4 additions & 4 deletions ios/Rainbow.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.22;
MARKETING_VERSION = 1.9.23;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
OTHER_LDFLAGS = (
Expand Down Expand Up @@ -1841,7 +1841,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.22;
MARKETING_VERSION = 1.9.23;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
OTHER_LDFLAGS = (
Expand Down Expand Up @@ -1959,7 +1959,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.22;
MARKETING_VERSION = 1.9.23;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
OTHER_LDFLAGS = (
Expand Down Expand Up @@ -2078,7 +2078,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.22;
MARKETING_VERSION = 1.9.23;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
OTHER_LDFLAGS = (
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Rainbow",
"version": "1.9.22-1",
"version": "1.9.23-1",
"private": true,
"scripts": {
"setup": "yarn install && yarn graphql-codegen:install && yarn ds:install && yarn allow-scripts && yarn postinstall && yarn graphql-codegen",
Expand Down Expand Up @@ -64,7 +64,7 @@
"dependencies": {
"@bankify/react-native-animate-number": "0.2.1",
"@bradgarropy/use-countdown": "1.4.1",
"@candlefinance/faster-image": "1.4.3",
"@candlefinance/faster-image": "1.5.0",
"@capsizecss/core": "3.0.0",
"@ensdomains/address-encoder": "0.2.16",
"@ensdomains/content-hash": "2.5.7",
Expand Down Expand Up @@ -204,6 +204,7 @@
"react": "18.2.0",
"react-coin-icon": "rainbow-me/react-coin-icon#06464588a3d986f6ef3a7d7341b2d7ea0c5ac50b",
"react-fast-compare": "2.0.4",
"react-fast-memo": "2.0.1",
"react-flatten-children": "1.1.2",
"react-freeze": "1.0.3",
"react-native": "0.72.3",
Expand Down
29 changes: 29 additions & 0 deletions patches/@candlefinance+faster-image+1.5.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/node_modules/@candlefinance/faster-image/ios/FasterImageViewManager.swift b/node_modules/@candlefinance/faster-image/ios/FasterImageViewManager.swift
index a0b0ac6..e093754 100644
--- a/node_modules/@candlefinance/faster-image/ios/FasterImageViewManager.swift
+++ b/node_modules/@candlefinance/faster-image/ios/FasterImageViewManager.swift
@@ -41,7 +41,10 @@ final class FasterImageView: UIView {
lazyImageView.trailingAnchor.constraint(equalTo: trailingAnchor),
])
lazyImageView.pipeline = .shared
- lazyImageView.priority = .high
+ // 🌈🌈
+ lazyImageView.priority = .veryLow
+// lazyImageView.priority = .high
+ // 🌈🌈
lazyImageView.onCompletion = { [weak self] result in
self?.completionHandler(with: result)
}
@@ -121,11 +124,7 @@ final class FasterImageView: UIView {
}
}

- var showActivityIndicator = false {
- didSet {
- lazyImageView.placeholderView = UIActivityIndicatorView()
- }
- }
+ var showActivityIndicator = false

var resizeMode = "contain" {
didSet {
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
diff --git a/node_modules/react-native-reanimated/.DS_Store b/node_modules/react-native-reanimated/.DS_Store
new file mode 100644
index 0000000..928aae8
Binary files /dev/null and b/node_modules/react-native-reanimated/.DS_Store differ
index 0000000..e69de29
diff --git a/node_modules/react-native-reanimated/apple/REANodesManager.mm b/node_modules/react-native-reanimated/apple/REANodesManager.mm
index ed36c99..0156141 100644
--- a/node_modules/react-native-reanimated/apple/REANodesManager.mm
Expand All @@ -19,3 +18,15 @@ index ed36c99..0156141 100644
#endif
[_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];
}
diff --git a/node_modules/react-native-reanimated/src/propsAllowlists.ts b/node_modules/react-native-reanimated/src/propsAllowlists.ts
index 5e004b7..0f752e0 100644
--- a/node_modules/react-native-reanimated/src/propsAllowlists.ts
+++ b/node_modules/react-native-reanimated/src/propsAllowlists.ts
@@ -85,6 +85,7 @@ export const PropsAllowlists: AllowlistsHolder = {
elevation: true,
fontSize: true,
lineHeight: true,
+ textShadowColor: true,
textShadowRadius: true,
textShadowOffset: true,
letterSpacing: true,
10 changes: 6 additions & 4 deletions src/__swaps__/screens/Swap/components/GestureHandlerV1Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import ConditionalWrap from 'conditional-wrap';
import React from 'react';
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
import { TapGestureHandler, TapGestureHandlerGestureEvent } from 'react-native-gesture-handler';
import Animated, { runOnJS, useAnimatedGestureHandler } from 'react-native-reanimated';
import Animated, { AnimatedStyle, runOnJS, useAnimatedGestureHandler } from 'react-native-reanimated';
import { ButtonPressAnimation } from '@/components/animations';
import { IS_IOS } from '@/env';

export type GestureHandlerButtonProps = {
buttonPressWrapperStyleIOS?: StyleProp<ViewStyle>;
children: React.ReactNode;
disableButtonPressWrapper?: boolean;
disabled?: boolean;
Expand All @@ -15,7 +16,7 @@ export type GestureHandlerButtonProps = {
onPressWorklet?: () => void;
pointerEvents?: ViewProps['pointerEvents'];
scaleTo?: number;
style?: StyleProp<ViewStyle>;
style?: StyleProp<ViewStyle> | AnimatedStyle;
};

/**
Expand Down Expand Up @@ -57,6 +58,7 @@ export type GestureHandlerButtonProps = {
*/
export const GestureHandlerV1Button = React.forwardRef(function GestureHandlerV1Button(
{
buttonPressWrapperStyleIOS,
children,
disableButtonPressWrapper = false,
disabled = false,
Expand All @@ -67,7 +69,7 @@ export const GestureHandlerV1Button = React.forwardRef(function GestureHandlerV1
scaleTo = 0.86,
style,
}: GestureHandlerButtonProps,
forwardedRef: React.LegacyRef<any> | undefined
forwardedRef: React.LegacyRef<unknown> | undefined
) {
const pressHandler = useAnimatedGestureHandler<TapGestureHandlerGestureEvent>({
onStart: () => {
Expand All @@ -83,7 +85,7 @@ export const GestureHandlerV1Button = React.forwardRef(function GestureHandlerV1
<ConditionalWrap
condition={IS_IOS && !disableButtonPressWrapper}
wrap={children => (
<ButtonPressAnimation scaleTo={disabled ? 1 : scaleTo} useLateHaptic={disabled}>
<ButtonPressAnimation scaleTo={disabled ? 1 : scaleTo} style={buttonPressWrapperStyleIOS} useLateHaptic={disabled}>
{children}
</ButtonPressAnimation>
)}
Expand Down
4 changes: 4 additions & 0 deletions src/components/AnimatedComponents/AnimatedBlurView.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { BlurView } from '@react-native-community/blur';
import Animated from 'react-native-reanimated';

export const AnimatedBlurView = Animated.createAnimatedComponent(BlurView);
4 changes: 4 additions & 0 deletions src/components/AnimatedComponents/AnimatedFasterImage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FasterImageView } from '@candlefinance/faster-image';
import Animated from 'react-native-reanimated';

export const AnimatedFasterImage = Animated.createAnimatedComponent(FasterImageView);
4 changes: 4 additions & 0 deletions src/components/AnimatedComponents/AnimatedInput.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Animated from 'react-native-reanimated';
import Input from '@/components/inputs/Input';

export const AnimatedInput = Animated.createAnimatedComponent(Input);
4 changes: 4 additions & 0 deletions src/components/AnimatedComponents/AnimatedScrollView.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { ScrollView } from 'react-native-gesture-handler';
import Animated from 'react-native-reanimated';

export const AnimatedScrollView = Animated.createAnimatedComponent(ScrollView);
23 changes: 23 additions & 0 deletions src/components/AnimatedComponents/extendedPropsAllowlists.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Animated from 'react-native-reanimated';

/**
* These lists extend the built-in props allowlists for Animated components.
*
* The default list for the latest version of Reanimated can be found here:
* https://github.com/software-mansion/react-native-reanimated/blob/main/src/propsAllowlists.ts
*/

/**
* 🟡 Extended Native props allowlist 🟡
*/
Animated.addWhitelistedNativeProps({
defaultValue: true, // AnimatedTextInput
text: true, // AnimatedTextInput
});

/**
* 🔵 Extended UI props allowlist 🔵
*/
Animated.addWhitelistedUIProps({
source: true, // AnimatedFasterImage
});
Loading

0 comments on commit 284f5e1

Please sign in to comment.