inlay_gen 0.2.0
inlay_gen: ^0.2.0 copied to clipboard
Code generator for the inlay add-to-app framework - produces type-safe route and store classes for Dart, Kotlin, and Swift from annotated schemas.
0.2.0 #
- Java output for Android hosts written in Java - routes, enums, data classes and the
NativeRouteHandlerbase class. Enable it with ajava:section ininlay.yaml. Stores are not supported yet. - New
header:option in every language section - adds custom comment lines at the top of generated files (lint suppressions, license notices). - Swift structs with optional fields can now be created without passing every field.
- Fixed generated Dart, Kotlin and Swift code not compiling for routes without fields.
- Generated Dart files are now skipped by
dart format, so they no longer churn. - build_runner: generated routes are now available to
go_router_builderandauto_route_generatorin the same build.
0.1.1 #
- Documentation and example improvements
0.1.0 #
- Initial release
- Generates type-safe route classes for Dart, Kotlin, and Swift from
@InlayFlutterRoute,@InlayFlutterDialog, and@InlayNativeRouteannotations - Generates typed store wrappers and immutable snapshots from
@InlayStore/@InlayStoreKeyschemas - Typed result plumbing (
pushForResult,popWithResult,encodeResult/decodeResult) for routes declaringresult: - Schema fingerprint embedded in all three languages for automatic drift detection
- Works as a build_runner builder and as a standalone CLI (
dart run inlay_gen:inlay_gen)