Skip to content

Commit

Permalink
Merge branch 'main' into json-rpc-middleware-12
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioAslau committed Jun 20, 2024
2 parents 6cfbed3 + 08a7949 commit dfae3be
Show file tree
Hide file tree
Showing 910 changed files with 22,579 additions and 7,374 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = {
ignoreRestSiblings: true, // this line is what has changed
},
],
'@typescript-eslint/no-explicit-any': 'error',
},
},
{
Expand Down
8 changes: 7 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* @MetaMask/mobile-devs
app/component-library/ @MetaMask/design-system-engineers @MetaMask/mobile-platform
patches/ @MetaMask/mobile-platform
bitrise.yml @MetaMask/mobile-platform
bitrise.yml @MetaMask/supply-chain @MetaMask/mobile-platform
yarn.lock @MetaMask/supply-chain @MetaMask/mobile-platform
ios/Podfile.lock @MetaMask/supply-chain @MetaMask/mobile-platform
app/components/UI/Ramp/ @MetaMask/ramp @MetaMask/mobile-platform
app/reducers/fiatOrders/ @MetaMask/ramp @MetaMask/mobile-platform
app/components/Views/confirmations @MetaMask/confirmations @MetaMask/mobile-platform
Expand All @@ -27,3 +29,7 @@ app/core/Encryptor/ @MetaMask/accounts-engineers

# Swaps Team
app/components/UI/Swaps @MetaMask/swaps-engineers @MetaMask/mobile-platform

# LavaMoat Team
ses.cjs @MetaMask/supply-chain
patches/react-native+0.*.patch @MetaMask/supply-chain
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ contact_links:
url: https://community.metamask.io/c/feature-requests-ideas/
about: Request new features and vote on the ones that are important to you
- name: Get support or ask a question
url: https://metamask.zendesk.com/hc/en-us
url: https://support.metamask.io
about: Use the MetaMask support system to get help and ask questions
80 changes: 80 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,86 @@

## Current Main Branch

## 7.24.2 - Jun 13, 2024
### Added
- [#9687](https://github.com/MetaMask/metamask-mobile/pull/9687): feat: adds "data collection for marketing" toggles

### Fixed
- [#9905](https://github.com/MetaMask/metamask-mobile/pull/9905): fix: remove metametrics redundant calls and improve compliance

## 7.24.1 - Jun 13, 2024
### Fixed
- [#9943](https://github.com/MetaMask/metamask-mobile/pull/9943): fix: Remove duplicate accounts (#9943)
- [#10006](https://github.com/MetaMask/metamask-mobile/pull/10006): fix: Fix order of accounts (#10006)
- [#10004](https://github.com/MetaMask/metamask-mobile/pull/10004): fix: Synchronize account names (#10004)
- [#9974](https://github.com/MetaMask/metamask-mobile/pull/9974): fix: Fix freeze on buy and sell flow (#9974)
- [#9980](https://github.com/MetaMask/metamask-mobile/pull/9980): fix: Fix initialization crash / login error "Engine does not exist (#9980)

## 7.24.0 - Jun 11, 2024
### Added
- [#9767](https://github.com/MetaMask/metamask-mobile/pull/9767): feat: push Privacy policy date to 2024 Jun 18 12:00 UTC (#9767)
- [#9707](https://github.com/MetaMask/metamask-mobile/pull/9707): feat: adds strings for the opt in toggles (#9707)
- [#9661](https://github.com/MetaMask/metamask-mobile/pull/9661): feat: smart-tx opt in modal 2 (#9661)
- [#9448](https://github.com/MetaMask/metamask-mobile/pull/9448): feat: smart tx small views (#9448)
- [#9442](https://github.com/MetaMask/metamask-mobile/pull/9442): feat: smart-tx-small-logic (#9442)
- [#9204](https://github.com/MetaMask/metamask-mobile/pull/9204): feat: Add new privacy policy alert toast (#9204)
- [#9651](https://github.com/MetaMask/metamask-mobile/pull/9651): feat: Upgrade signature Controller to v14 (#9651)
- [#9394](https://github.com/MetaMask/metamask-mobile/pull/9394): feat: Network & Gas & Assets & Utils controllers update (#9394)
- [#9625](https://github.com/MetaMask/metamask-mobile/pull/9625): feat: Update signature controller v13 (#9625)
- [#9129](https://github.com/MetaMask/metamask-mobile/pull/9129): feat: setting to show fiat values on testnets (#9129)
- [#9740](https://github.com/MetaMask/metamask-mobile/pull/9740): feat: Update checkbox to be able to override checkbox style (#9740)
- [#9346](https://github.com/MetaMask/metamask-mobile/pull/9346): feat: notifications LIST screen UI - [9 of 10] (#9346)
- [#9572](https://github.com/MetaMask/metamask-mobile/pull/9572): feat: notifications onboarding wizard - [8 of 10] (#9572)

### Changed
- [#9612](https://github.com/MetaMask/metamask-mobile/pull/9612): revert: feat(swaps): enable Base for swaps (#9286) (#9612)
- [#9735](https://github.com/MetaMask/metamask-mobile/pull/9735): chore: add swaps team to swaps domain folder (#9735)
- [#9683](https://github.com/MetaMask/metamask-mobile/pull/9683): refactor: the network name and image utils into selectors (#9683)
- [#9639](https://github.com/MetaMask/metamask-mobile/pull/9639): chore: New Crowdin translations by Github Action (#9639)
- [#9725](https://github.com/MetaMask/metamask-mobile/pull/9725): chore: make test code dev env only (#9725)
- [#9574](https://github.com/MetaMask/metamask-mobile/pull/9574): chore: update confirmations codeowners (#9574)
- [#9663](https://github.com/MetaMask/metamask-mobile/pull/9663): chore: update tx controller v13 patch notes (#9663)
- [#9629](https://github.com/MetaMask/metamask-mobile/pull/9629): chore: apply string changes from #9565 (#9629)
- [#9753](https://github.com/MetaMask/metamask-mobile/pull/9753): chore: Chore/optimize Wallet screen re-renders (#9753)
- [#9771](https://github.com/MetaMask/metamask-mobile/pull/9771): chore: align main and flask build numbers (#9771)
- [#9751](https://github.com/MetaMask/metamask-mobile/pull/9751): test: disable flakey test (#9751)
- [#9708](https://github.com/MetaMask/metamask-mobile/pull/9708): test: add send to saved contact e2e test (#9708)
- [#9690](https://github.com/MetaMask/metamask-mobile/pull/9690): test: Address App launch times failure test (#9690)
- [#9694](https://github.com/MetaMask/metamask-mobile/pull/9694): test: send flow page object refactor (#9694)
- [#9658](https://github.com/MetaMask/metamask-mobile/pull/9658): chore: Upgrade react-native-svg to 15.3 (#9658)
- [#9657](https://github.com/MetaMask/metamask-mobile/pull/9657): chore: Update boost checksum (#9657)
- [#9609](https://github.com/MetaMask/metamask-mobile/pull/9609): chore: add deprecated tag to the websiteicon component (#9609)
- [#9619](https://github.com/MetaMask/metamask-mobile/pull/9619): chore(deps): remove unused react-native-v8 (#9619)
- [#9599](https://github.com/MetaMask/metamask-mobile/pull/9599): chore: update Encryptor CODEOWNER to Accounts Team (#9599)
- [#9734](https://github.com/MetaMask/metamask-mobile/pull/9734): test: Added swap ERC20->ETH test case (#9734)
- [#9712](https://github.com/MetaMask/metamask-mobile/pull/9712): chore: remove unnecessary patch imports and change the patch branch name (#9712)

### Fixed
- [#9301](https://github.com/MetaMask/metamask-mobile/pull/9301): fix: flaky tests issues template skip 2 (#9301)
- [#9774](https://github.com/MetaMask/metamask-mobile/pull/9774): fix: unit tests (#9774)
- [#9706](https://github.com/MetaMask/metamask-mobile/pull/9706): fix: QR scanner crash when user dismisses camera view in web view (#9706)
- [#9787](https://github.com/MetaMask/metamask-mobile/pull/9787): fix: revert use of sponge not available in actions Ubuntu image (#9787)
- [#9780](https://github.com/MetaMask/metamask-mobile/pull/9780): fix: make version setting script work with both main and flask (#9780)
- [#9721](https://github.com/MetaMask/metamask-mobile/pull/9721): fix: App slower when changing account and switching network (#9721)
- [#9775](https://github.com/MetaMask/metamask-mobile/pull/9775): fix: Update boost checksum (#9775)
- [#9772](https://github.com/MetaMask/metamask-mobile/pull/9772): fix: Fix/ruby install (#9772)
- [#9773](https://github.com/MetaMask/metamask-mobile/pull/9773): fix: e2e builds (#9773)
- [#9742](https://github.com/MetaMask/metamask-mobile/pull/9742): fix: Selecting custom ethereum mainnet on fresh install (#9742)
- [#9733](https://github.com/MetaMask/metamask-mobile/pull/9733): fix: Fix/9662 account section disappears (#9733)
- [#9699](https://github.com/MetaMask/metamask-mobile/pull/9699): fix: Move permission middleware to be later than rpc method middleware (#9699)
- [#9680](https://github.com/MetaMask/metamask-mobile/pull/9680): fix: Increase waiting for swaps and switch account on E2E (#9680)
- [#9656](https://github.com/MetaMask/metamask-mobile/pull/9656): fix: Fix/1723 broken sign verification (#9656)
- [#9630](https://github.com/MetaMask/metamask-mobile/pull/9630): fix: Fix/rn svg pod files (#9630)
- [#9614](https://github.com/MetaMask/metamask-mobile/pull/9614): fix: migrations key numbers (#9614)
- [#9611](https://github.com/MetaMask/metamask-mobile/pull/9611): fix: Fix/9345 bitrise cache failure (#9611)
- [#9696](https://github.com/MetaMask/metamask-mobile/pull/9696): fix(devDeps): @lavamoat/allow-scripts@^2.3.1->^3.0.4 (#9696)
- [#9685](https://github.com/MetaMask/metamask-mobile/pull/9685): fix(deps): @metamask/eth-sig-util@^4.0.1->^7.0.2 (#9685)
- [#9682](https://github.com/MetaMask/metamask-mobile/pull/9682): fix: update base nickname (#9682)
- [#9686](https://github.com/MetaMask/metamask-mobile/pull/9686): fix: update sepolia nickname (#9686)
- [#9764](https://github.com/MetaMask/metamask-mobile/pull/9764): fix: selectSelectedInternalAccount: Account with ID not found (#9764)
- [#9568](https://github.com/MetaMask/metamask-mobile/pull/9568): fix: 9559 issue android json parse (#9568)
- [#9616](https://github.com/MetaMask/metamask-mobile/pull/9616): fix: fix the issue 9560 which QR code accounts has been reappeared aftter user `remove wallets` (#9616)

## 7.23.0 - May 10, 2024
### Added
- [#9595](https://github.com/MetaMask/metamask-mobile/pull/9595): feat: Upgrade to react-native-svg to 15.2.0 (#9595)
Expand Down
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ GEM
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.2.6)
rexml (3.2.8)
strscan (>= 3.0.9)
ruby-macho (2.5.1)
strscan (3.1.0)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ android {
applicationId "io.metamask"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1333
versionName "7.23.0"
versionCode 1348
versionName "7.24.2"
testBuildType System.getProperty('testBuildType', 'debug')
missingDimensionStrategy 'react-native-camera', 'general'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export const TagBase = {
endAccessory: false,
includesBorder: false,
},
// TODO: Replace "any" with type
// eslint-disable-next-line @typescript-eslint/no-explicit-any
render: (args: any) => (
<View
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { TagShape, TagSeverity } from './TagBase.types';
* @param params.vars Inputs that the style sheet depends on.
* @returns StyleSheet object.
*/
// TODO: Replace "any" with type
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const styleSheet = (params: { theme: Theme; vars: any }) => {
const { theme, vars } = params;
const { style, shape, containerSize, severity, includesBorder } = vars;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ exports[`TagBase should render TagBase 1`] = `
{
"alignItems": "center",
"alignSelf": "flex-start",
"backgroundColor": "#FFFFFF",
"borderColor": "#BBC0C5",
"backgroundColor": "#ffffff",
"borderColor": "#bbc0c5",
"borderRadius": 999,
"borderWidth": 0,
"color": "#24272A",
"color": "#141618",
"flexDirection": "row",
"padding": 16,
"paddingHorizontal": 8,
Expand All @@ -23,7 +23,7 @@ exports[`TagBase should render TagBase 1`] = `
testID="tagbase"
>
<SvgMock
color="#24272A"
color="#141618"
height={20}
name="Add"
style={
Expand All @@ -47,7 +47,7 @@ exports[`TagBase should render TagBase 1`] = `
accessibilityRole="text"
style={
{
"color": "#24272A",
"color": "#141618",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
"fontWeight": "400",
Expand All @@ -69,7 +69,7 @@ exports[`TagBase should render TagBase 1`] = `
testID="listitem-gap"
/>
<SvgMock
color="#24272A"
color="#141618"
height={20}
name="Add"
style={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ exports[`Component ContractBoxBase should render correctly 1`] = `
<Text
style={
{
"color": "#0376C9",
"color": "#0376c9",
}
}
variant="sHeadingMD"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`CustomInput should render correctly 1`] = `
style={
[
{
"backgroundColor": "#FFFFFF",
"backgroundColor": "#ffffff",
"borderRadius": 8,
"flexDirection": "row",
"justifyContent": "space-between",
Expand Down Expand Up @@ -33,7 +33,7 @@ exports[`CustomInput should render correctly 1`] = `
style={
[
{
"color": "#24272A",
"color": "#141618",
"flexGrow": 1,
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand All @@ -55,7 +55,7 @@ exports[`CustomInput should render correctly 1`] = `
onPress={[Function]}
style={
{
"color": "#535A61",
"color": "#6a737d",
}
}
testID="custom-spend-cap-max-test-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
<View
style={
{
"backgroundColor": "#F2F4F6",
"backgroundColor": "#f2f4f6",
"borderRadius": 8,
"padding": 16,
}
Expand All @@ -31,7 +31,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
accessibilityRole="text"
style={
{
"color": "#24272A",
"color": "#141618",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
"fontWeight": "700",
Expand Down Expand Up @@ -75,7 +75,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
onStartShouldSetResponder={[Function]}
>
<SvgMock
color="#D73847"
color="#d73847"
height={16}
name="Danger"
style={
Expand All @@ -97,7 +97,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
style={
{
"backgroundColor": "transparent",
"color": "#24272A",
"color": "#141618",
}
}
suppressHighlighting={true}
Expand All @@ -107,7 +107,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
accessibilityRole="text"
style={
{
"color": "#0376C9",
"color": "#0376c9",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
"fontWeight": "400",
Expand All @@ -131,7 +131,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
style={
[
{
"backgroundColor": "#FFFFFF",
"backgroundColor": "#ffffff",
"borderRadius": 8,
"flexDirection": "row",
"justifyContent": "space-between",
Expand Down Expand Up @@ -159,7 +159,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
style={
[
{
"color": "#24272A",
"color": "#141618",
"flexGrow": 1,
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand All @@ -171,7 +171,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
"paddingTop": 0,
},
{
"color": "#D73847",
"color": "#d73847",
},
]
}
Expand All @@ -184,7 +184,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
onPress={[Function]}
style={
{
"color": "#535A61",
"color": "#6a737d",
"fontFamily": "Euclid Circular B",
"fontSize": 12,
"fontWeight": "400",
Expand All @@ -209,7 +209,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
accessibilityRole="text"
style={
{
"color": "#535A61",
"color": "#6a737d",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
"fontWeight": "400",
Expand All @@ -229,7 +229,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
style={
{
"backgroundColor": "transparent",
"color": "#24272A",
"color": "#141618",
}
}
suppressHighlighting={true}
Expand All @@ -238,7 +238,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
accessibilityRole="text"
style={
{
"color": "#0376C9",
"color": "#0376c9",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
"fontWeight": "400",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`TagColored should render TagColored 1`] = `
{
"alignItems": "center",
"alignSelf": "flex-start",
"backgroundColor": "#F2F4F6",
"backgroundColor": "#f2f4f6",
"borderRadius": 4,
"height": 20,
"justifyContent": "center",
Expand All @@ -19,7 +19,7 @@ exports[`TagColored should render TagColored 1`] = `
accessibilityRole="text"
style={
{
"color": "#535A61",
"color": "#6a737d",
"fontFamily": "Euclid Circular B",
"fontSize": 10,
"fontWeight": "bold",
Expand Down
Loading

0 comments on commit dfae3be

Please sign in to comment.