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 Apr 30, 2024
1 parent 1ffb970 commit a462815
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 25 deletions.
17 changes: 6 additions & 11 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IPFS hash of the deployment:
- CIDv0: `QmbCfM6eTk9jM5SRW692DahimRpNHpuMADyEQbtqJmqZDy`
- CIDv1: `bafybeif7dqatkcqbp5g3txheh4is2xg7maknkjcsijfzo7xtqnzplb6m2a`
- CIDv0: `QmXVxBhofYSQo7Jxn46t9UxWwyRE4owjbGxuA3Bhtppt8w`
- CIDv1: `bafybeieidmvwvcchexlp33ze5o6465qj23rff2w6yjriyehazikji2ojea`

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

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

IPFS gateways:
- https://bafybeif7dqatkcqbp5g3txheh4is2xg7maknkjcsijfzo7xtqnzplb6m2a.ipfs.dweb.link/
- https://bafybeif7dqatkcqbp5g3txheh4is2xg7maknkjcsijfzo7xtqnzplb6m2a.ipfs.cf-ipfs.com/
- [ipfs://QmbCfM6eTk9jM5SRW692DahimRpNHpuMADyEQbtqJmqZDy/](ipfs://QmbCfM6eTk9jM5SRW692DahimRpNHpuMADyEQbtqJmqZDy/)
- https://bafybeieidmvwvcchexlp33ze5o6465qj23rff2w6yjriyehazikji2ojea.ipfs.dweb.link/
- https://bafybeieidmvwvcchexlp33ze5o6465qj23rff2w6yjriyehazikji2ojea.ipfs.cf-ipfs.com/
- [ipfs://QmXVxBhofYSQo7Jxn46t9UxWwyRE4owjbGxuA3Bhtppt8w/](ipfs://QmXVxBhofYSQo7Jxn46t9UxWwyRE4owjbGxuA3Bhtppt8w/)

### 5.25.4 (2024-04-26)


### Bug Fixes

* **web:** hotfix change to copy for multi routing options (#7924) 1d08dff
### 5.25.5 (2024-04-30)


2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web/5.25.4
web/5.25.5
19 changes: 19 additions & 0 deletions packages/eslint-config/crossPlatform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
group: [
'*react-native*',
'!react-native-image-colors', // Allow importing react-native-image-colors, since it is cross platform.
],
message:
"React Native modules should not be imported outside of .native.ts files. If this is a .native.ts file, add an ignore comment to the top of the file. If you're trying to import a cross-platform module, add it to the whitelist in crossPlatform.js.",
},
],
},
],
},
}
2 changes: 1 addition & 1 deletion packages/uniswap/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
extends: ['@uniswap/eslint-config/native'],
extends: ['@uniswap/eslint-config/native', '@uniswap/eslint-config/crossPlatform'],
ignorePatterns: ['node_modules', '.turbo', '.eslintrc.js', 'codegen.ts'],
parserOptions: {
project: 'tsconfig.json',
Expand Down
1 change: 1 addition & 0 deletions packages/uniswap/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import {
APPSFLYER_API_KEY,
APPSFLYER_APP_ID,
Expand Down
14 changes: 2 additions & 12 deletions packages/uniswap/src/data/constants.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import DeviceInfo from 'react-native-device-info'
import { isAndroid, isExtension, isIOS, isMobile } from 'uniswap/src/utils/platform'
import { isAndroid, isIOS } from 'uniswap/src/utils/platform'

export const ROUTING_API_PATH = '/v2/quote'

export const REQUEST_SOURCE = isIOS ? 'uniswap-ios' : isAndroid ? 'uniswap-android' : 'uniswap-web'

export const getVersionHeader = (): string => {
if (isMobile) {
return DeviceInfo.getVersion()
} else if (isExtension) {
return process.env.VERSION ?? ''
} else {
// unimplemented for web
return ''
}
}
export { getVersionHeader } from './getVersionHeader'
6 changes: 6 additions & 0 deletions packages/uniswap/src/data/getVersionHeader.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// eslint-disable-next-line no-restricted-imports
import DeviceInfo from 'react-native-device-info'

export const getVersionHeader = (): string => {
return DeviceInfo.getVersion()
}
10 changes: 10 additions & 0 deletions packages/uniswap/src/data/getVersionHeader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { isExtension } from 'uniswap/src/utils/platform'

export const getVersionHeader = (): string => {
if (isExtension) {
return process.env.VERSION ?? ''
} else {
// unimplemented for interface
return ''
}
}
2 changes: 2 additions & 0 deletions packages/uniswap/src/features/gating/sdk/statsig.native.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// eslint-disable-next-line no-restricted-imports
import { Statsig, StatsigContext } from 'statsig-react-native'
const statsig = Statsig
const statsigContext = StatsigContext

// eslint-disable-next-line no-restricted-imports
export {
DynamicConfig,
useConfig,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import { Platform } from 'react-native'

export function getCloudProviderName(): string {
Expand Down
1 change: 1 addition & 0 deletions packages/uniswap/src/utils/env/index.native.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import DeviceInfo from 'react-native-device-info'

const BUNDLE_ID = DeviceInfo.getBundleId()
Expand Down
1 change: 1 addition & 0 deletions packages/uniswap/src/utils/platform/index.native.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import { Platform } from 'react-native'

// Platform
Expand Down

0 comments on commit a462815

Please sign in to comment.