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 10, 2024
1 parent 5a7e99f commit 9a511c8
Show file tree
Hide file tree
Showing 918 changed files with 17,211 additions and 19,081 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ yarn-error.log*
dist/out-tsc/*

# Locale backup/generated files
packages/wallet/src/i18n/locales/source/*_old.json
packages/wallet/src/i18n/locales/@types/resources.d.ts
packages/uniswap/src/i18n/locales/source/*_old.json
packages/uniswap/src/i18n/locales/@types/resources.d.ts

# ci
.ci-cache/
Expand Down
13 changes: 13 additions & 0 deletions .yarn/patches/@tamagui-animations-moti-npm-1.92.0-a8dde990ec.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/cjs/createAnimations.native.js b/dist/cjs/createAnimations.native.js
index 8ef9a4b03e660025bd16f4d15ec9e82ead963be0..023de8bf1955d83f0483917f4d6e0a5205d6fb17 100644
--- a/dist/cjs/createAnimations.native.js
+++ b/dist/cjs/createAnimations.native.js
@@ -163,7 +163,7 @@ function createAnimations(animations) {
else {
var animateOnly = props.animateOnly;
for (var key in style)
- !import_web.stylePropsAll[key] || neverAnimate[key] || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key];
+ !import_web.stylePropsAll[key] || neverAnimate[key] || style[key] === 'auto' || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key];
}
var animateStr = JSON.stringify(animate), styles = (0, import_react.useMemo)(function() {
return JSON.parse(animateStr);
58 changes: 0 additions & 58 deletions .yarn/patches/zone.js-npm-0.14.4-2d2e93cd7c.patch

This file was deleted.

8 changes: 4 additions & 4 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
We are back with another round of small updates. Here’s what’s new:
Excited to share some new updates! Here’s what’s new:

Unicons Updates — these auto-generated icons are refreshed to be more visually appealing. You may have received a new one.
Expanded Fiat On-ramp Providers — We’ve added more provider options to on-ramp to crypto from your wallet, dependent on your geography.

Other changes:

- Various UI fixes to our fiat-on ramp screens
- Various bug fixes related to stale notifications
- Polish around view-only wallets
- 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.23
mobile/1.24
3 changes: 0 additions & 3 deletions apps/mobile/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ jest.config.js
metro.config.js
node_modules

generated*.ts
__generated__/

storybook-static

coverage
5 changes: 1 addition & 4 deletions apps/mobile/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
ios
android
src/abis/types
generated*.ts
__generated__/
.eslintrc.js
.eslintrc.js
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.23"
versionName "1.24"
dimension "variant"
}
beta {
applicationIdSuffix ".beta"
versionName "1.23"
versionName "1.24"
dimension "variant"
}
prod {
dimension "variant"
versionName "1.23"
versionName "1.24"
}
}

Expand Down
17 changes: 0 additions & 17 deletions apps/mobile/android/app/src/dev/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,5 @@
tools:ignore="GoogleAppIndexingWarning"
tools:targetApi="28"
android:networkSecurityConfig="@xml/network_security_config">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter android:autoVerify="true" android:priority="2">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="https" />
<data android:host="uniswap.org" />
<data android:host="app.uniswap.org" />
<data android:host="uniswap.com" />
<data android:host="app.uniswap.com" />
</intent-filter>
</activity>

</application>
</manifest>
46 changes: 45 additions & 1 deletion apps/mobile/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,55 @@
<data android:scheme="uniswap" />
</intent-filter>
<intent-filter>
<data android:scheme="wc" />
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="wc" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:scheme="https"
android:host="app.uniswap.org"
android:pathPrefix="/nfts/asset/" />

<data
android:scheme="https"
android:host="app.uniswap.org"
android:pathPrefix="/nfts/collection/" />

<data
android:scheme="https"
android:host="app.uniswap.org"
android:pathPrefix="/tokens/" />

<data
android:scheme="https"
android:host="app.uniswap.org"
android:pathPrefix="/address/" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:scheme="https"
android:host="uniswap.org"
android:pathPrefix="/app" />

<data
android:scheme="https"
android:host="uniswap.org"
android:pathPrefix="/app/wc" />
</intent-filter>
</activity>
</application>
</manifest>
17 changes: 0 additions & 17 deletions apps/mobile/android/app/src/prod/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,5 @@
android:usesCleartextTraffic="true"
tools:ignore="GoogleAppIndexingWarning"
tools:targetApi="28">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="https" />
<data android:host="uniswap.org" />
<data android:host="app.uniswap.org" />
<data android:host="uniswap.com" />
<data android:host="app.uniswap.com" />
</intent-filter>
</activity>

</application>
</manifest>
16 changes: 12 additions & 4 deletions apps/mobile/e2e/Onboarding.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import { CreateNewWallet } from './usecases/CreateNewWallet'
import { CreateNewWallet } from 'e2e/usecases/onboarding/CreateNewWallet'
import { ImportWallet } from 'e2e/usecases/onboarding/ImportWallet'
import { WatchWallet } from 'e2e/usecases/onboarding/WatchWallet'

describe('Onboarding', () => {
beforeAll(async () => {
beforeEach(async () => {
await device.launchApp({ newInstance: true })
await device.reloadReactNative()
})

describe(CreateNewWallet, CreateNewWallet)
afterEach(async () => {
await device.uninstallApp()
await device.installApp()
})

it('creates a new wallet', CreateNewWallet)
it('watches wallet', WatchWallet)
it('imports a testing wallet using recovery phrase', ImportWallet)
})
11 changes: 11 additions & 0 deletions apps/mobile/e2e/Swap.e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { WatchWallet } from 'e2e/usecases/onboarding/WatchWallet'
import { SwapBasicInteractions } from 'e2e/usecases/swap/SwapBasicInteractions'

describe('Swap', () => {
beforeAll(async () => {
await device.launchApp({ newInstance: true })
await WatchWallet()
})

it('tests swap screen interactions', SwapBasicInteractions)
})
47 changes: 47 additions & 0 deletions apps/mobile/e2e/usecases/onboarding/CreateNewWallet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { by, element, expect } from 'detox'
import { TestWallet } from 'e2e/utils/fixtures'
import { ElementName } from 'wallet/src/telemetry/constants'

export async function CreateNewWallet(): Promise<void> {
// Selects "Create a new wallet" option on the landing screen
await element(by.id(ElementName.CreateAccount)).tap()

// Skips unitag flow
await element(by.id(ElementName.Skip)).tap()

// Taps "Let's keep it safe" on QRAnimation screen
await element(by.id(ElementName.Next)).tap()

// Check is both manual and cloud backup options are available on BackupScreen
await expect(element(by.id(ElementName.AddCloudBackup))).toBeVisible()
await expect(element(by.id(ElementName.AddManualBackup))).toBeVisible()

// Picks "Manual backup" option
await element(by.id(ElementName.AddManualBackup)).tap()

// Checks if ManualBackupScreen warning displays and taps "I'm ready" button
await expect(element(by.id(ElementName.Confirm))).toBeVisible()
await element(by.id(ElementName.Confirm)).tap()

// Taps continue on ManualBackupScreen
await element(by.id(ElementName.Next)).tap()

// Taps continue on manual backup confirmation screen. It is replaced by mock because detox
// can't interact with native screens
await element(by.id(ElementName.Continue)).tap()

// Skips notification setup by tapping "Maybe later" button
await element(by.id(ElementName.Skip)).tap()

// Skips biometrics setup by tapping "Maybe later" button
await element(by.id(ElementName.Skip)).tap()

// Confirms by tapping "Skip" on warning modal
await element(by.id(ElementName.Confirm)).tap()

// Confirms if user successfuly finished create new wallet flow by checking if provided wallet name is
// displayed and other
await expect(element(by.text(TestWallet.name))).toBeVisible()
await expect(element(by.id(ElementName.Swap))).toBeVisible()
await expect(element(by.id(ElementName.SearchTokensAndWallets))).toBeVisible()
}
43 changes: 43 additions & 0 deletions apps/mobile/e2e/usecases/onboarding/ImportWallet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { by, element, expect } from 'detox'
import { TestWallet } from 'e2e/utils/fixtures'
import { ElementName } from 'wallet/src/telemetry/constants'

export async function ImportWallet(): Promise<void> {
// Selects "Add an existing wallet" option on the landing screen
await element(by.id(ElementName.ImportAccount)).tap()

// Picks Import a wallet by recovery phase option
await element(by.id(ElementName.OnboardingImportSeedPhrase)).tap()

// Checks if recovery phase input is in focus and types recovery phrase in
await expect(element(by.id(ElementName.ImportAccountInput))).toBeFocused()
await element(by.id(ElementName.ImportAccountInput)).typeText(TestWallet.recoveryPhrase)

// Taps continue navigating to SelectWalletScreen
await element(by.id(ElementName.Continue)).tap()

// Taps continue on SelectWalletScreen
await waitFor(element(by.id(`${ElementName.WalletCard}-1`)))
.toBeVisible()
.withTimeout(10000)
await element(by.id(ElementName.Next)).tap()

// Skips cloud backup step on BackupScreen by clicking "Maybe later"
await expect(element(by.id(ElementName.AddCloudBackup))).toBeVisible()
await element(by.id(ElementName.Next)).tap()

// Skips notification setup by tapping "Maybe later" button
await element(by.id(ElementName.Skip)).tap()

// Skips biometrics setup by tapping "Maybe later" button
await element(by.id(ElementName.Skip)).tap()

// Confirms by tapping "Skip" on warning modal
await element(by.id(ElementName.Confirm)).tap()

// Confirms if user successfuly finished create new wallet flow by checking if provided wallet name is
// displayed and other
await expect(element(by.text(TestWallet.name))).toBeVisible()
await expect(element(by.id(ElementName.Swap))).toBeVisible()
await expect(element(by.id(ElementName.SearchTokensAndWallets))).toBeVisible()
}
23 changes: 23 additions & 0 deletions apps/mobile/e2e/usecases/onboarding/WatchWallet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { by, element, expect } from 'detox'
import { TestWatchedWallet } from 'e2e/utils/fixtures'
import { ElementName } from 'wallet/src/telemetry/constants'

export async function WatchWallet(): Promise<void> {
// Selects "Add an existing wallet" option on the landing screen
await element(by.id(ElementName.ImportAccount)).tap()

// Picks Watch a wallet option on ImportMethodScreen
await element(by.id(ElementName.WatchWallet)).tap()

// Checks if wallet name is in focus and types recovery phrase in
await expect(element(by.id(ElementName.ImportAccountInput))).toBeFocused()
await element(by.id(ElementName.ImportAccountInput)).typeText(TestWatchedWallet.ens)

// Confirms the entered wallet name by tapping "continue"
await element(by.id(ElementName.Next)).tap()

// Checks if Home screen is displayed with a proper user name
await expect(element(by.text(TestWatchedWallet.displayName))).toBeVisible()
await expect(element(by.id(ElementName.Swap))).toBeVisible()
await expect(element(by.id(ElementName.SearchTokensAndWallets))).toBeVisible()
}
Loading

0 comments on commit 9a511c8

Please sign in to comment.