Integrate the Gamealia SDK
gamealia_integrate_sdkPatch a local project to integrate the Gamealia SDK: add imports and a lifecycle adapter, migrate CrazyGames/Poki SDKs, and return manual TODO locations. Dry runs show a diff; write:true applies.
Instructions
Patches a local project to use the Gamealia SDK, after gamealia_analyze_project: adds the SDK script tag (or import) and a lifecycle adapter, swaps CrazyGames/Poki SDKs for the Gamealia shims, adds the Unity .jslib / Godot addon. Deterministic and idempotent. Dry run by default (returns a unified diff, changes nothing); write:true edits the project's files. Returns TODOs (file:line) for the calls only you can place: gameplayStart/Stop, happyTime and ad breaks; then run gamealia_check_integration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Project folder (absolute, or relative to the server's working directory) | |
| write | No | Apply the patch (default: dry run, diff only) |