Skip to content
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

feat: Inline WebView bundle #2528

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

FrederikBolding
Copy link
Member

Inline the Snaps execution bundle in the WebView index.html, this will get us closer to running Snaps without a remote execution environment on mobile.

Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.95%. Comparing base (b7caba9) to head (b952a59).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2528   +/-   ##
=======================================
  Coverage   93.95%   93.95%           
=======================================
  Files         456      456           
  Lines        9568     9568           
  Branches     1465     1465           
=======================================
  Hits         8990     8990           
  Misses        578      578           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FrederikBolding FrederikBolding marked this pull request as ready for review July 9, 2024 15:02
@FrederikBolding FrederikBolding requested a review from a team as a code owner July 9, 2024 15:02
Copy link
Contributor

@Jonathansoufer Jonathansoufer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Jonathansoufer Jonathansoufer merged commit 2b9ac55 into main Jul 9, 2024
156 checks passed
@Jonathansoufer Jonathansoufer deleted the fb/inline-webview-bundle branch July 9, 2024 16:31
Jonathansoufer added a commit to MetaMask/metamask-mobile that referenced this pull request Jul 19, 2024
## **Description**

Replaces the remote WebView with a locally bundled WebView. This WebView
still uses a remote iframe for execution, but the initial load will be
using all local code. Dependant on
MetaMask/snaps#2528

Also moves the `SnapsExecutionWebView` to the App index to have it
available even when the application is locked, also prevents issues with
breaking the execution environment when locking the app.

---------

Co-authored-by: Jonathan Ferreira <44679989+Jonathansoufer@users.noreply.github.com>
Co-authored-by: JSoufer <jonathan.ferreira@consensys.net>
devin-ai-integration bot pushed a commit to MetaMask/metamask-mobile that referenced this pull request Jul 23, 2024
## **Description**

Replaces the remote WebView with a locally bundled WebView. This WebView
still uses a remote iframe for execution, but the initial load will be
using all local code. Dependant on
MetaMask/snaps#2528

Also moves the `SnapsExecutionWebView` to the App index to have it
available even when the application is locked, also prevents issues with
breaking the execution environment when locking the app.

---------

Co-authored-by: Jonathan Ferreira <44679989+Jonathansoufer@users.noreply.github.com>
Co-authored-by: JSoufer <jonathan.ferreira@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants