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 15, 2024
1 parent d69a638 commit d21815f
Show file tree
Hide file tree
Showing 2,235 changed files with 35,029 additions and 27,762 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',
]
48 changes: 48 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
__generated__
__mocks__
.detoxrc.js
.eslintrc
.eslintrc.js
.prettierrc
.tamagui
.turbo
.turbo
.yarn
@types
*.graphql
*.html
*.inc
*.json
*.md
*.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/extension/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"
]
}
14 changes: 0 additions & 14 deletions .yarn/patches/detox-npm-20.18.1-b532b310b4.patch

This file was deleted.

Binary file added .yarn/patches/detox-npm-20.23.0-6d61110e63.patch
Binary file not shown.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @uniswap/web-admins
71 changes: 65 additions & 6 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,9 +1,68 @@
Expanded network support — we now support ZKsync!
IPFS hash of the deployment:
- CIDv0: `QmSGQkPLXbvRMGegFzdGhSLALt5cd9pZyEaSDUZ1snJHnY`
- CIDv1: `bafybeib2lcrzr7jlhypszmgucmxiavixeikdk5ejknv6s4sovb7nft65je`

Better multi-network warnings — provides clear warnings when a user doesn’t have enough base asset on a network to pay gas and complete a transaction.
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).

You can also access the Uniswap Interface from an IPFS gateway.
**BEWARE**: The Uniswap interface uses [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to remember your settings, such as which tokens you have imported.
**You should always use an IPFS gateway that enforces origin separation**, or our hosted deployment of the latest release at [app.uniswap.org](https://app.uniswap.org).
Your Uniswap settings are never remembered across different URLs.

IPFS gateways:
- https://bafybeib2lcrzr7jlhypszmgucmxiavixeikdk5ejknv6s4sovb7nft65je.ipfs.dweb.link/
- https://bafybeib2lcrzr7jlhypszmgucmxiavixeikdk5ejknv6s4sovb7nft65je.ipfs.cf-ipfs.com/
- [ipfs://QmSGQkPLXbvRMGegFzdGhSLALt5cd9pZyEaSDUZ1snJHnY/](ipfs://QmSGQkPLXbvRMGegFzdGhSLALt5cd9pZyEaSDUZ1snJHnY/)

## 5.40.0 (2024-07-15)


### Features

* **web:** [ext-gtm] Add analytics events (#10000) 0866b3e
* **web:** [ext-gtm] add custom extension download connector (#9766) f0d477c
* **web:** [ext-gtm] expand/collapse other wallets if uni extension is available (#9752) d1d2ce1
* **web:** [ext-gtm] Extension Promo Modal (#9853) ff0080d
* **web:** [ext-gtm] Hide 'Detected' text for uni connector on xs screens (#9869) 96f1f0d
* **web:** [ext-gtm] update Getting Started modal (#9866) cf4697b
* **web:** [staging] push ext gtm changes to staging (#10140) f096063
* **web:** add address QR code page (#9726) 023442d
* **web:** add initial receive crypto modal (#9565) f4afa73
* **web:** add logging for meld flow (#9943) 411ea91
* **web:** display service provider options (#9566) 9da9ac7
* **web:** dynamic modal that adapts to bottom sheet on small screens (#9552) 5f5900d
* **web:** error state view and connected view to receive crypto modal (#9920) ca0bc7c
* **web:** extension limits (#9855) 9d3a053
* **web:** extension pools view (#9849) 04d76e4
* **web:** fix background image in FOR modal (incl. large SVG file) (#10043) b1f26fe
* **web:** FOR show recently used provider (#9933) 3dc6356
* **web:** loading state for FOR provider rows (#9932) f6f7dea
* **web:** loading state in Buy form for currency conversion (#9985) c0f75e2
* **web:** remove abandoned FOR transactions after 10m (#9929) f28c0e4


### Bug Fixes

* **web:** fiat formatting of non-USD in Buy flow (#9944) cb1f6cc
* **web:** memoize useFiatOnRampTransactions (#9901) 044680f
* **web:** mobile modal bottom sheet overlay (#9983) ee4d8bf
* **web:** prevent uniwallet displaying beneath wallet connect modal (#9799) 686d411
* **web:** remove max-width on nav (#10186) 4661a16
* **web:** remove opacity effect on loading provider row for FOR modal (#10046) 75dbd8f
* **web:** Show chart error state if priceHistory is an empty array (#9924) 1e89865
* **web:** show deadline settings (#10153) 7b2046c
* **web:** Update responsive behavior of TDPActionTabs (#9964) 98de10f
* **web:** USD//C token name display (#10008) 4d7fbd4


### Continuous Integration

* **web:** update sitemaps 2bd0a4e


### Code Refactoring

* **web:** AddressDisplay component with optional Copy Helper (#9687) cef2428
* **web:** common GetHelpHeader component (#9669) 3dc95fd

Other changes:

- Onboarding improvements
- Better handling of larger numbers
- Various bug fixes and performance improvements
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mobile/1.30
web/5.40.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
30 changes: 30 additions & 0 deletions apps/mobile/__mocks__/@react-navigation/native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copied from:
// https://gist.github.com/phcbarros/bd90825863c3573cc0a28e90db17d1a4
const RNN = require('@react-navigation/native')
let listeners = {}
const setOptions = jest.fn()
const navigate = jest.fn()

const navigation = {
setOptions,
navigate,
addListener: jest.fn((name, l) => (listeners[name] = l)),
getListener: (name) => listeners[name],
triggerListener: (name, ...params) => listeners[name](...params),
resetListeners: () => {
listeners = {}
},
}

const useNavigation = () => navigation
let params = {}
const useRoute = () => ({
params,
})

module.exports = {
...RNN,
useNavigation,
useRoute,
setParams: (p) => (params = { ...params, ...p }),
}
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.clip
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
Expand Down Expand Up @@ -141,26 +142,29 @@ fun SeedPhraseInput(
private fun SeedPhraseError(viewModel: SeedPhraseInputViewModel) {
val status = viewModel.status
val rnStrings = viewModel.rnStrings
var text = ""

if (status is Error) {
val text = when (val error = status.error) {
text = when (val error = status.error) {
is InvalidWord -> "${rnStrings.errorInvalidWord} ${error.word}"
is NotEnoughWords, TooManyWords -> rnStrings.errorPhraseLength
is WrongRecoveryPhrase -> rnStrings.errorWrongPhrase
is InvalidPhrase -> rnStrings.errorInvalidPhrase
}
Row(
horizontalArrangement = Arrangement.spacedBy(UniswapTheme.spacing.spacing4),
verticalAlignment = Alignment.CenterVertically
) {
Icon(
painter = painterResource(id = R.drawable.uniswap_icon_alert_triangle),
tint = UniswapTheme.colors.statusCritical,
contentDescription = null,
modifier = Modifier.size(16.dp)
)
Text(text, style = UniswapTheme.typography.body3, color = UniswapTheme.colors.statusCritical)
}
}

Row(
horizontalArrangement = Arrangement.spacedBy(UniswapTheme.spacing.spacing4),
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.alpha(if (text.isEmpty()) 0f else 1f)
) {
Icon(
painter = painterResource(id = R.drawable.uniswap_icon_alert_triangle),
tint = UniswapTheme.colors.statusCritical,
contentDescription = null,
modifier = Modifier.size(16.dp)
)
Text(text, style = UniswapTheme.typography.body3, color = UniswapTheme.colors.statusCritical)
}
}

Expand Down
Loading

0 comments on commit d21815f

Please sign in to comment.