Skip to content

Commit b039631

Browse files
committed
Merge branch 'main' of github.com:MetaMask/metamask-mobile into fix/card-onboarding-debounced-values
2 parents 01fa4d2 + 2f0340d commit b039631

File tree

125 files changed

+4130
-5538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+4130
-5538
lines changed

.github/actions/smart-e2e-selection/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ runs:
4646
- name: Fetch base branch for comparison
4747
shell: bash
4848
run: |
49-
# Fetch base branch with enough depth to compute merge base for git diff
50-
git fetch origin main --depth=100 2>/dev/null || git fetch origin master --depth=100 2>/dev/null || true
49+
# Unshallow the repository first (if it's shallow)
50+
git fetch --unshallow 2>/dev/null || true
51+
# Then fetch base branch to ensure merge-base exists
52+
git fetch origin main 2>/dev/null || true
5153
5254
- name: Setup Node.js
5355
uses: actions/setup-node@v4

.github/workflows/create-release-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ jobs:
7979
create-release-pr:
8080
needs: [resolve-bases, resolve-previous-ref, generate-build-version]
8181
name: Create Release Pull Request using Github Tools
82-
uses: MetaMask/github-tools/.github/workflows/create-release-pr.yml@749c097218590d5cd36d28d07967e12ba830b146
82+
uses: MetaMask/github-tools/.github/workflows/create-release-pr.yml@6a04e4d0c8c25680a7543cfcd2e2fb7125b6759c
8383
with:
8484
platform: mobile
8585
checkout-base-branch: ${{ needs.resolve-bases.outputs.checkout_base }}
8686
release-pr-base-branch: ${{ needs.resolve-bases.outputs.release_base }}
8787
semver-version: ${{ inputs.semver-version }}
8888
previous-version-ref: ${{ needs.resolve-previous-ref.outputs.previous_ref }}
8989
mobile-build-version: ${{ needs.generate-build-version.outputs.build-version }}
90-
github-tools-version: 749c097218590d5cd36d28d07967e12ba830b146
90+
github-tools-version: 6a04e4d0c8c25680a7543cfcd2e2fb7125b6759c
9191
secrets:
9292
# This token needs write permissions to metamask-mobile & read permissions to metamask-planning
9393
# If called from auto-create-release-pr use the PR_TOKEN passed in as an input, if called manually use github secret token values

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ android {
187187
applicationId "io.metamask"
188188
minSdkVersion rootProject.ext.minSdkVersion
189189
targetSdkVersion rootProject.ext.targetSdkVersion
190-
versionName "7.60.0"
190+
versionName "7.61.0"
191191
versionCode 2993
192192
testBuildType System.getProperty('testBuildType', 'debug')
193193
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

app/components/Nav/Main/MainNavigator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import RampRoutes from '../../UI/Ramp/Aggregator/routes';
6060
import { RampType } from '../../UI/Ramp/Aggregator/types';
6161
import RampSettings from '../../UI/Ramp/Aggregator/Views/Settings';
6262
import RampActivationKeyForm from '../../UI/Ramp/Aggregator/Views/Settings/ActivationKeyForm';
63-
import RampTokenSelection from '../../UI/Ramp/components/TokenSelection';
63+
import TokenListRoutes from '../../UI/Ramp/routes';
6464

6565
import DepositOrderDetails from '../../UI/Ramp/Deposit/Views/DepositOrderDetails/DepositOrderDetails';
6666
import DepositRoutes from '../../UI/Ramp/Deposit/routes';
@@ -1047,7 +1047,7 @@ const MainNavigator = () => {
10471047
<Stack.Screen name="PaymentRequestView" component={PaymentRequestView} />
10481048
<Stack.Screen
10491049
name={Routes.RAMP.TOKEN_SELECTION}
1050-
component={RampTokenSelection}
1050+
component={TokenListRoutes}
10511051
/>
10521052
<Stack.Screen name={Routes.RAMP.BUY}>
10531053
{() => <RampRoutes rampType={RampType.BUY} />}

app/components/UI/Bridge/Views/BridgeView/BridgeView.styles.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ export const createStyles = (params: { theme: Theme }) => {
5656
flex: 1,
5757
justifyContent: 'flex-end',
5858
},
59-
keypadContainer: {
60-
flex: 1,
61-
justifyContent: 'flex-end',
62-
paddingBottom: 8,
63-
},
64-
keypad: {
65-
paddingHorizontal: 24,
66-
},
6759
destinationAccountSelectorContainer: {
6860
paddingBottom: 12,
6961
},

app/components/UI/Bridge/Views/BridgeView/BridgeView.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ describe('BridgeView', () => {
443443
},
444444
};
445445

446-
const { queryByText } = renderScreen(
446+
const { queryByTestId } = renderScreen(
447447
BridgeView,
448448
{
449449
name: Routes.BRIDGE.ROOT,
@@ -452,7 +452,7 @@ describe('BridgeView', () => {
452452
);
453453

454454
// Verify max button is not present for native token
455-
expect(queryByText('Max')).toBeNull();
455+
expect(queryByTestId('token-input-area-max-button')).toBeNull();
456456
});
457457

458458
it('should display max button when source token is not native token', () => {
@@ -472,7 +472,7 @@ describe('BridgeView', () => {
472472
},
473473
};
474474

475-
const { queryByText } = renderScreen(
475+
const { queryByTestId } = renderScreen(
476476
BridgeView,
477477
{
478478
name: Routes.BRIDGE.ROOT,
@@ -481,7 +481,7 @@ describe('BridgeView', () => {
481481
);
482482

483483
// Verify max button is present for ERC-20 token
484-
expect(queryByText('Max')).toBeTruthy();
484+
expect(queryByTestId('token-input-area-max-button')).toBeTruthy();
485485
});
486486

487487
it('should set source amount to maximum balance when max button is pressed', async () => {
@@ -501,7 +501,7 @@ describe('BridgeView', () => {
501501
},
502502
};
503503

504-
const { getByText, getByTestId } = renderScreen(
504+
const { getByTestId } = renderScreen(
505505
BridgeView,
506506
{
507507
name: Routes.BRIDGE.ROOT,
@@ -510,7 +510,7 @@ describe('BridgeView', () => {
510510
);
511511

512512
// Find and press the max button
513-
const maxButton = getByText('Max');
513+
const maxButton = getByTestId('token-input-area-max-button');
514514
expect(maxButton).toBeTruthy();
515515
fireEvent.press(maxButton);
516516

0 commit comments

Comments
 (0)