# `FogOfWar.Wrapper.NativeBundle`
[🔗](https://github.com/mrluc/fow/blob/main/lib/fog_of_war/wrapper/native_bundle.ex#L1)

Turns public route captures into files a native WebView can serve at startup. Android and Apple use different asset loading mechanisms, so each gets its own prepared directory. Use `mix fow.bundle.prepare` to produce one.

## How it fits

Called by `mix fow.bundle.prepare` and directly by `FogOfWar.Wrapper.Workflow.desktop!/2`. It uses `CacheExport` for routes, `Export` for assets and `InlineAssets` for Apple startup documents.

# `run!`

Capture public routes, prepare startup HTML and assets for the selected platform, and return the native resource manifest. Supply a resolved manifest and a fresh output directory.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
