flutter_lua_bridge_codegen 0.2.0
flutter_lua_bridge_codegen: ^0.2.0 copied to clipboard
build_runner builders that generate typed Dart/Lua bindings and Teal declarations for flutter_lua_bridge, and compile Teal to Lua.
0.2.0 #
- Require Dart 3.14 (Flutter 3.50),
analyzer14.7,build5 andsource_gen4.3. dart run build_runner buildno longer needs--force-jit.
0.1.1 #
- Support
analyzer8.4 to 14 andbuild4 or 5. The reader no longer uses theisSyntheticgetters that analyzer 10 deprecates and 14 removes.
0.1.0 #
- Initial release.
build_runnerbuilders forflutter_lua_bridgecontracts:bridgegenerates the Dart part file (clients, host registration, codecs and the embedded Lua glue),teal_typesthe Teal declarations (lua/types/<name>_bridge.d.tl), andtealcompileslua/srctoassets/lua(Teal compiled, Lua copied).- Teal 0.24.8 is bundled (
lib/src/teal/tl.lua) and runs onflutter_lua_bridge's own Lua runtime; no Lua toolchain is installed. - Safety levels
O1(validators andpcall,LuaCallResult<T>),O2(pcallonly) andO3(direct calls,LuaBridgeException), set inbuild.yamlor per interface. - Contract interfaces may implement plain abstract interfaces, so one set of methods can be bound at several safety levels.
dart run flutter_lua_bridge_codegen:initscaffolds the directories,build.yaml,tlconfig.luaandlua/test/main.tl.dart run flutter_lua_bridge_codegen:runruns Lua and Teal entries (main.tl,*_test.tl) without the app, with--watch.