Skip to content

Commit

Permalink
ci(release): publish latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-happy-puppy committed Jul 3, 2024
1 parent 5e06d2e commit 80fae3a
Show file tree
Hide file tree
Showing 1,725 changed files with 17,849 additions and 21,009 deletions.
30 changes: 16 additions & 14 deletions .depcheckrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
ignores: [
# Dependencies that depcheck thinks are unused but are actually used
"@graphql-codegen/*",
"@commitlint/*",
"i18next",
'@graphql-codegen/*',
'@commitlint/*',
'i18next',
# Dependencies that depcheck thinks are missing but are actually present or never used
"@yarnpkg/core",
"@yarnpkg/cli",
"clipanion",
"@yarnpkg/fslib",
"bufferutil",
"utf-8-validate",
"@yarnpkg/parsers",
"@yarnpkg/plugin-git",
"semver",
"typanion",
"turbo-ignore",
'@yarnpkg/core',
'@yarnpkg/cli',
'clipanion',
'@yarnpkg/fslib',
'bufferutil',
'utf-8-validate',
'@yarnpkg/parsers',
'@yarnpkg/plugin-git',
'semver',
'typanion',
'turbo-ignore',
'prettier',
'prettier-plugin-organize-imports',
]
49 changes: 49 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
__generated__
__mocks__
.detoxrc.js
.eslintrc
.eslintrc.js
.prettierrc
.tamagui
.turbo
.turbo
.yarn
@types
*.graphql
*.html
*.inc
*.json
*.md
*.test.ts
*.yml
babel.config.js
build
craco.config.cjs
cypress
dist
jest-setup.js
jest.config.js
jest.config.js
metro.config.js
node_modules
tsconfig.json
types

# app/package specific

# mobile

apps/mobile/ios
apps/mobile/android

# extension

apps/stretch/dev

# packages

packages/uniswap/codegen.ts

packages/eslint-config/react.js
packages/eslint-config/restrictedImports.js
packages/eslint-config/native.js
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bracketSameLine": false,
"singleQuote": true,
"printWidth": 120,
"semi": false,
"plugins": [
"prettier-plugin-organize-imports"
]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
diff --git a/android/src/main/java/com/mpiannucci/reactnativecontextmenu/ContextMenuView.java b/android/src/main/java/com/mpiannucci/reactnativecontextmenu/ContextMenuView.java
index 9fc8eeb9b6b66061fca818a17127ff6f21df3126..6a3c9f1addd4bd8bcea3afc2e60aca52cd4c8248 100644
index 9fc8eeb9b6b66061fca818a17127ff6f21df3126..f975490e71a72967b112b7ef973119608d67fc68 100644
--- a/android/src/main/java/com/mpiannucci/reactnativecontextmenu/ContextMenuView.java
+++ b/android/src/main/java/com/mpiannucci/reactnativecontextmenu/ContextMenuView.java
@@ -67,6 +67,14 @@ public class ContextMenuView extends ReactViewGroup implements View.OnCreateCont
@@ -37,6 +37,8 @@ public class ContextMenuView extends ReactViewGroup implements View.OnCreateCont

boolean cancelled = true;

+ int[] longPressStartLocation = new int[2];
+
protected boolean dropdownMenuMode = false;

protected boolean disabled = false;
@@ -61,12 +63,40 @@ public class ContextMenuView extends ReactViewGroup implements View.OnCreateCont

@Override
public void onLongPress(MotionEvent e) {
+ int[] location = new int[2];
+ getLocationOnScreen(location);
+
+ int dx = location[0] - longPressStartLocation[0];
+ int dy = location[1] - longPressStartLocation[1];
+ double distance = Math.sqrt(dx * dx + dy * dy);
+ // Cancel long press if the user moves their finger more than 10 pixels
+ // (e.g. the context menu is used inside the scrollable component and it
+ // moves as the user scrolls)
+ if (distance > 10) {
+ cancelled = true;
+ return;
+ }
+
if (!dropdownMenuMode && !disabled) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
showContextMenu(e.getX(), e.getY());
}
}
}
Expand All @@ -13,6 +42,12 @@ index 9fc8eeb9b6b66061fca818a17127ff6f21df3126..6a3c9f1addd4bd8bcea3afc2e60aca52
+ showContextMenu(e.getX(), e.getY());
+ }
+ return super.onSingleTapConfirmed(e);
+ }
+
+ @Override
+ public boolean onDown(MotionEvent e) {
+ getLocationOnScreen(longPressStartLocation);
+ return super.onDown(e);
+ }
});
}
Expand Down
55 changes: 48 additions & 7 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IPFS hash of the deployment:
- CIDv0: `Qmf3UgVbYneiT58xJcLJYSpvoowcUmhgH1N21P68nkxpvn`
- CIDv1: `bafybeihygb3syfjqxcfwuu4ti6jbim4o2efhlbzg54qrk5feiwz4cqmvom`
- CIDv0: `QmagCqi7cKazCA4x7qyhwMvzpJPGHACvZGNZZ6LNLTS5La`
- CIDv1: `bafybeifxj2n7miiatvhem2m2ghihgdzuzdhqfatqdm3vle55dgb7lc65e4`

The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).

Expand All @@ -10,15 +10,56 @@ You can also access the Uniswap Interface from an IPFS gateway.
Your Uniswap settings are never remembered across different URLs.

IPFS gateways:
- https://bafybeihygb3syfjqxcfwuu4ti6jbim4o2efhlbzg54qrk5feiwz4cqmvom.ipfs.dweb.link/
- https://bafybeihygb3syfjqxcfwuu4ti6jbim4o2efhlbzg54qrk5feiwz4cqmvom.ipfs.cf-ipfs.com/
- [ipfs://Qmf3UgVbYneiT58xJcLJYSpvoowcUmhgH1N21P68nkxpvn/](ipfs://Qmf3UgVbYneiT58xJcLJYSpvoowcUmhgH1N21P68nkxpvn/)
- https://bafybeifxj2n7miiatvhem2m2ghihgdzuzdhqfatqdm3vle55dgb7lc65e4.ipfs.dweb.link/
- https://bafybeifxj2n7miiatvhem2m2ghihgdzuzdhqfatqdm3vle55dgb7lc65e4.ipfs.cf-ipfs.com/
- [ipfs://QmagCqi7cKazCA4x7qyhwMvzpJPGHACvZGNZZ6LNLTS5La/](ipfs://QmagCqi7cKazCA4x7qyhwMvzpJPGHACvZGNZZ6LNLTS5La/)

### 5.37.1 (2024-07-02)
## 5.38.0 (2024-07-03)


### Features

* **web:** 4212 fix wrap in multichain world (#8454) 9a3b933
* **web:** add datadog logs/errors alongside sentry (#8682) a9fb607
* **web:** add l2 nfts feature flag (#9042) b6b378a
* **web:** buy flow code cleanup / refactor (#8889) c1d14b7
* **web:** buy flow errors states (#9206) 191b9a2
* **web:** buy flow, connecting screen (#9173) 0dc94a7
* **web:** complete in provider tab modal state (#9402) c276b4a
* **web:** Disable Clicking on L2 NFTs in MiniPort (#9324) 1083d81
* **web:** fetch FOR quotes and show provider modal (#9030) 5c9bcee
* **web:** Have tooltip follow cursor (#9328) 68603c1
* **web:** import Zora nfts into miniport and improve usNftBalance (#9043) f7f4539
* **web:** kill useAutoRouterSupported hook (#9078) 74c0bcf
* **web:** nav bar polishes (#9163) 299fa69
* **web:** styled app qr code (#9514) 215ac3f
* **web:** token selection for buy flow (#8869) 24ad20d
* **web:** use quick portfolio balances query (#9285) e2f0d72


### Bug Fixes

* **web:** avalanche isToken check hotfix (#9790) a60c130
* **web:** avalanche istoken check (staging) (#9789) 53d34cd
* **web:** check common bases in MiniPortfolio getCurrency function (#9632) f8be510
* **web:** disable scroll when mobile drawer is open (#9335) c9ed125
* **web:** fix broken link, translation, and importing v2 positions (#9435) 7c6c355
* **web:** fix chain selector tests (#9376) 16fc2d9
* **web:** fix multichain state when connected to unsupported chain (#9057) 7d9206e
* **web:** fix token safety popup on prefilled currencies (#9487) 8fb464c
* **web:** group hero title for better translations (#8729) 8962aa5
* **web:** legacy nav should not transition out of view on scroll (#9542) 78313d5
* **web:** prevent uniwallet displaying beneath wallet connect modal (#9798) 78eb31b
* **web:** skip token lookup if search query is not address (#9539) 23eec13
* **web:** swap context chainId (multichain) (#9143) db3f7ff
* **web:** switch chain before confirm on limit orders (#8498) 30698e2
* **web:** token URL switch on TDP should use correct chain (#8574) a62f72b
* **web:** use chainId from currency in useCurrencyBalance (#9139) 3da2eb9
* **web:** use correct chainId in transaction adder & swap tax hooks (#9354) 953fe51
* **web:** use rive wasm internally to avoid potential side load attack (#9569) 6d332fb


### Continuous Integration

* **web:** update sitemaps d9e916f


2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web/5.37.1
web/5.38.0
3 changes: 0 additions & 3 deletions apps/mobile/.prettierignore

This file was deleted.

9 changes: 9 additions & 0 deletions apps/mobile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,15 @@ Resolve this issue by navigating to the `ios/` directory and running `pod update
- `Build target hermes-engine: Command PhaseScriptExecution failed with a nonzero exit code`
Node isn't being located correctly during the build phase. Run `which node` and copy the resulting path into `.xcode.env.local`. More context [here](https://github.com/facebook/react-native/issues/42221).

- `CocoaPods could not find compatible versions for pod "hermes-engine"`
The following commands can help you fix these types of errors:

`cd ios && pod install --repo-update`
`cd ios && pod repo update`
`cd ios && pod update hermes-engine --no-repo-update`

Context: https://uniswapteam.slack.com/archives/C02GYG8TU12/p1692640189802989?thread_ts=1692635970.952869&cid=C02GYG8TU12

### Common fixes

If something isn’t working the way it should or you’re getting a weird error when trying to run the app, try the following:
Expand Down
5 changes: 1 addition & 4 deletions apps/mobile/__mocks__/@shopify/react-native-skia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { View, ViewProps } from 'react-native'

// Source: https://github.com/Shopify/react-native-skia/issues/548#issuecomment-1157609472

const PlainView = ({
children,
...props
}: PropsWithChildren<unknown>): React.CElement<ViewProps, View> => {
const PlainView = ({ children, ...props }: PropsWithChildren<unknown>): React.CElement<ViewProps, View> => {
return React.createElement(View, props, children)
}
const noop = (): null => null
Expand Down
5 changes: 1 addition & 4 deletions apps/mobile/__mocks__/react-native-context-menu-view.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React, { PropsWithChildren } from 'react'
import { View, ViewProps } from 'react-native'

const PlainView = ({
children,
...props
}: PropsWithChildren<unknown>): React.CElement<ViewProps, View> => {
const PlainView = ({ children, ...props }: PropsWithChildren<unknown>): React.CElement<ViewProps, View> => {
return React.createElement(View, props, children)
}

Expand Down
5 changes: 1 addition & 4 deletions apps/mobile/__mocks__/react-native-fast-image.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React, { PropsWithChildren } from 'react'
import { Image, ImageProps } from 'react-native'

const PlainImage = ({
children,
...props
}: PropsWithChildren<ImageProps>): React.CElement<ImageProps, Image> => {
const PlainImage = ({ children, ...props }: PropsWithChildren<ImageProps>): React.CElement<ImageProps, Image> => {
return React.createElement(Image, props, children)
}

Expand Down
6 changes: 3 additions & 3 deletions apps/mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,17 @@ android {
dev {
isDefault(true)
applicationIdSuffix ".dev"
versionName "1.30"
versionName "1.31"
dimension "variant"
}
beta {
applicationIdSuffix ".beta"
versionName "1.30"
versionName "1.31"
dimension "variant"
}
prod {
dimension "variant"
versionName "1.30"
versionName "1.31"
}
}

Expand Down
3 changes: 1 addition & 2 deletions apps/mobile/e2e/utils/fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const TestWallet = {
name: 'Wallet 1',
recoveryPhrase:
'oak reduce strong borrow control funny library disagree radio clarify degree pistol',
recoveryPhrase: 'oak reduce strong borrow control funny library disagree radio clarify degree pistol',
}

export const TestWatchedWallet = {
Expand Down
Loading

0 comments on commit 80fae3a

Please sign in to comment.