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

wip: splitting web bundle for background and content scripts #1770

Draft
wants to merge 2 commits into
base: cross-platform-poc-2
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .expo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
> Why do I have a folder named ".expo" in my project?
The ".expo" folder is created when an Expo project is started using "expo start" command.

> What do the files contain?
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
- "settings.json": contains the server configuration that is used to serve the application manifest.

> Should I commit the ".expo" folder?
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.

Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
3 changes: 2 additions & 1 deletion mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
}
]
],
"expo-secure-store"
],
"experiments": {
"typedRoutes": true
Expand Down
10 changes: 10 additions & 0 deletions mobile/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import React from "react";

import serviceLayerTest from "@/platform/service";
import Button from "@/components/ui/Button";

export default function RootLayout() {
React.useEffect(() => {
console.log("runing effect");
console.log(serviceLayerTest);
serviceLayerTest();
console.log("effect done");
}, []);

return <Button />;
}
26 changes: 26 additions & 0 deletions mobile/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "Freighter",
"version": "5.26.0",
"version_name": "5.26.0",
"description": "Freighter is a non-custodial wallet extension that enables you to sign Stellar transactions via your browser.",
"browser_specific_settings": {
"gecko": {
"id": "{3ee0dd4e-8c64-4b92-b539-25718a10f62f}"
}
},
"background": {
"service_worker": "background.js"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["content-script.js"],
"run_at": "document_start"
}
],
"permissions": ["storage", "alarms"],
"manifest_version": 3,
"action": {
"default_popup": "index.html"
}
}
Loading
Loading