-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Pull @metamask/mobile-provider
back into metamask-mobile
#7494
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
@metamask/mobile-provider
back into metamask-mobile
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: obj-multiplex@1.0.0 |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring: Next stepsTake a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with |
@metamask/mobile-provider
back into metamask-mobile
@metamask/mobile-provider
back into metamask-mobile
@SocketSecurity ignore @metamask/object-multiplex@1.2.0 these are our packages. but i don't trust this gudahtt fellow |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7494 +/- ##
=======================================
Coverage 34.61% 34.61%
=======================================
Files 1019 1019
Lines 27193 27193
Branches 2218 2218
=======================================
Hits 9413 9413
Misses 17289 17289
Partials 491 491
☔ View full report in Codecov by Sentry. |
Since the Provider directory are files used during build time, seems better to move them out to maybe the top most level of the application. WDYT? |
we can move them. Not sure what directory to park them in though. This is where inpage lives in extension for reference |
Hm, maybe we move them into our scripts dir? |
# Conflicts: # package.json # yarn.lock
# Conflicts: # .depcheckrc.yml # package.json # yarn.lock
E2E smoke tests - https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ad87c9c6-c0b0-4852-a600-1911b1f8421d Edit - passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Kudos, SonarCloud Quality Gate passed! |
@SocketSecurity ignore setprototypeof@1.2.0 unmaintained |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Currently the inpage injected scripts used in the in-app browser (for making the wallet provider object available to the dapp) are currently built in a separate
@metamask/mobile-provider
package. This PR brings the build process into the mobile repo itself. This is needed in order to support passing build time variables to the provider initialization (for EIP6963 support).Manual testing steps
yarn setup
yarn watch
yarn start:ios
window.ethereum
is defined andwindow.ethereum.chainId
logs a deprecation warningScreenshots/Recordings
Note the deprecation warnings which indicates that provider v13.0.0 is now being used
Related issues
See: https://github.com/MetaMask/MetaMask-planning/issues/869
Pre-merge author checklist
Pre-merge reviewer checklist