FogOfWar.Wrapper.NativeBundle (Fog of War v0.1.0)

Copy Markdown View Source

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.

Summary

Functions

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.

Functions

run!(manifest, project, output, platform, opts \\ [])

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.