You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Only generate code if platform is actually used (#395)
* chore(nitro-config): adds a json schema for the nitro config file
* feat: allow platform-specific code generation based on `<{platform:lang}>` specified in when creating a hybrid object
Currently, nitrogen generates code for all platforms (code/hybrid objects) regardless of the platform specified in `<{platform:lang}>` generic tags. This PR modifies the code generation to respect these platform tags and only generate the necessary code for the specified platforms.
For example:
- `<{ios:'swift'|'c++'}>` will only generate iOS-specific code
- `<{android:'kotlin'|'c++'}>` will only generate Android-specific code
This change improves efficiency by preventing unnecessary code generation for unused platforms.
* Delete nitro.schema.json
* chore: adds usedPlatforms
0 commit comments