metamask-mobile
metamask-mobile copied to clipboard
chore: Add new code fence for keyring-snaps
Description
- What is the reason for the change?
- To enable the development of
keyring-snaps(accounts that are created from external snaps) without interfering with the main build. - we have been using code fences to develop other features like
preinstalled-snapsandbetafor a while now. - We are using an entirely new flag for this feature because some features will be
keyring-snapsspecific that will not need to be included in thepreinstalled-snapsorexternal-snapsbuild keyring-snapswill only be available on flask for now- One could argue that we do not need a new flag, instead we could use the
external-snapsflag, however by creating a new flag, this allows us to ship feature related toexternal-sapswhile not worrying about accidentally releasingkeyring-snaps
- What is the improvement/solution?
- created the
keyring-snapsflag in themetro.transformfile - added
keyring-snapsas a feature to be included in the flask build - added
keyring-snapsto all fences containingexternal-snaps. This is because allkeyring-snapsfeatures rely on theexternal-snapsfeature but not allexternal-snapsfeatures will rely onkeyring-snaps. - this matches the same flag and pattern we are using in extension: https://github.com/MetaMask/metamask-extension/blob/46bf4e8ff857be5b7b3bd393a0f54ef494889964/builds.yml#L20
Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/568
Manual testing steps
This change is not user facing so there is no need for qa. instead if the linter, tests and e2e pass we can confidently say this is working.
- Build the application
- Import/create a wallet
- navigate to settings
- there should be no snaps settings
Code check
- [ ] each code fence containing
external-snaps(///: BEGIN:ONLY_INCLUDE_IF(external-snaps....) should also containkeyring-snaps(///: BEGIN:ONLY_INCLUDE_IF(external-snaps,keyring-snaps))
Screenshots/Recordings
Before
N/A
After
Pre-merge author checklist
- [ ] I’ve followed MetaMask Contributor Docs and MetaMask Mobile Coding Standards.
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using JSDoc format if applicable
- [ ] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
Pre-merge reviewer checklist
- [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
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.
Bitrise
🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄
Commit hash: 97d625831298eb685c0fbbaacdc8c48cf776116d Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0ab533f5-fa87-4d50-9e87-f13bf3f6c851
[!NOTE]
- This comment will auto-update when build completes
- You can kick off another
pr_smoke_e2e_pipelineon Bitrise by removing and re-applying theRun Smoke E2Elabel on the pull request
Bitrise
✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅
Commit hash: 21b1cc2e679d16b3db25221c6482db63bd236a9c Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/edd0a4e7-dbeb-4152-ae17-a70285387b19
[!NOTE]
- You can kick off another
pr_smoke_e2e_pipelineon Bitrise by removing and re-applying theRun Smoke E2Elabel on the pull request
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 52.74%. Comparing base (
8dcdd3c) to head (21b1cc2). Report is 9 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #10874 +/- ##
==========================================
- Coverage 52.75% 52.74% -0.01%
==========================================
Files 1534 1539 +5
Lines 36777 36835 +58
Branches 4335 4349 +14
==========================================
+ Hits 19403 19430 +27
- Misses 16058 16081 +23
- Partials 1316 1324 +8
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Bitrise
❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌
Commit hash: 0c5c348177f17d0402538cdaf069c901efd6c124 Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a090a0af-aab3-498c-9d2e-e88cb015e6a3
[!NOTE]
- You can kick off another
pr_smoke_e2e_pipelineon Bitrise by removing and re-applying theRun Smoke E2Elabel on the pull request