Generate typed event constants
generate_event_constantsGenerate a typed constants file for analytics events, eliminating typos from string literals. Specify platform and optional events to produce consistent, reusable constants.
Instructions
The generated constants file for this project's events, in the language you ask for. Write it into the repo and call the constants instead of string literals — event matching is exact, so a typo is a journey that silently never advances. Regenerating produces an identical file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | No | Restrict to these events. Omit for every event the project is waiting on. | |
| platform | Yes | The language to generate for. | |
| packageName | No | Android only. The package of the directory you're writing the file into, e.g. com.acme.wallet. |