# Liquid Multi-Platform Starter Project

This is a clean, pre-structured workspace for building cross-platform native applications using the **Liquid Framework**.

## Workspace Structure

```
my_liquid_app/
├── liquid.config.json   # Configuration for build targets
├── README.md            # Getting started guide
├── src/
│   └── main.liq         # The main entry component code
└── platforms/
    ├── web/             # Web wrapper project (Rust/WASM + HTML)
    │   ├── Cargo.toml
    │   ├── index.html
    │   └── src/
    │       └── lib.rs   # Target for compiler output
    ├── ios/             # iOS wrapper project (Swift/SwiftUI)
    │   ├── AppView.swift# Target for compiler output
    │   └── App.swift    # App startup entry
    ├── android/         # Android wrapper project (Kotlin/Compose)
    │   └── app/
    │       └── src/
    │           └── main/
    │               └── java/
    │                   └── com/
    │                       └── example/
    │                           └── app/
    │                               ├── Counter.kt     # Target for compiler output
    │                               └── MainActivity.kt# Compose Activity loader
    └── windows/         # Windows Desktop wrapper project (C#/WinUI 3)
        ├── MainWindow.xaml.cs # Host window code-behind
        ├── Counter.xaml       # Target for compiler XAML
        └── Counter.xaml.cs    # Target for compiler C# Code-behind
```

## How to Build

Thanks to `liquid.config.json`, compilation is fully automated. You do not need to specify input or output paths. Simply run the following commands from the root of your workspace:

### Build All Targets
To compile for all target platforms defined in `liquid.config.json` simultaneously:
```bash
liquid build
```

### Build Web (WASM)
```bash
liquid build web
```

### Build iOS
```bash
liquid build ios
```

### Build Android
```bash
liquid build android
```

### Build Windows (WinUI 3)
This automatically generates and splits the XAML markup and C# code-behind files:
```bash
liquid build windows
```

### Local Live Development (Hot Reload & Emulator Dashboard)
To run a local live-reloaded simulator server in the browser:
```bash
liquid dev
```

