Initial Commit

This commit is contained in:
2026-06-05 16:52:42 +03:00
commit 045517d8b9
43 changed files with 968 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
# Development
The mobile crate defines the entrypoint for the mobile app along with any assets, components and dependencies that are specific to mobile builds. The mobile crate starts out something like this:
```
mobile/
├─ assets/ # Assets used by the mobile app - Any platform specific assets should go in this folder
├─ src/
│ ├─ main.rs # The entrypoint for the mobile app.
├─ Cargo.toml # The mobile crate's Cargo.toml - This should include all mobile specific dependencies
```
## Dependencies
Since you have fullstack enabled, the mobile crate will be built two times:
1. Once for the server build with the `server` feature enabled
2. Once for the client build with the `mobile` feature enabled
You should make all mobile specific dependencies optional and only enabled in the `mobile` feature. This will ensure that the server builds don't pull in mobile specific dependencies which cuts down on build times significantly.
### Serving Your Mobile App
Mobile platforms are shared in a single crate. To serve mobile, you need to explicitly set your target device to `android` or `ios`:
```bash
dx serve --platform android
```