golubets 1.3.1 copy "golubets: ^1.3.1" to clipboard
golubets: ^1.3.1 copied to clipboard

Code generator tool to make communication between Flutter and the host platform type-safe and easier.

1.3.1 #

  • [dart] Adds opportunity to generate interface of HostApi
  • [dart][kotlin][swift] Adds opportunity to generate "pure" sealed subclasses names

1.3.0 #

  • Produces a helpful error message when a method return type is missing or an unsupported type, such as a function type or record type.
  • [dart] Ignores all lint rules in generated code.
  • [dart] In generated code, imports the meta package for annotations, instead of the Flutter foundation library.
  • [dart] In generated code, no longer imports Uint8List. Bumps minimum version of the args package to 2.5.0.
  • [dart] Improves nullability-handling in generated code.
  • [kotlin] Adds option to add javax.annotation.Generated annotation.
  • [dart] Reduces much duplication in reply-handling code.
  • Dramatically reduces the number of File write operations sent to the operating system during code-generation. This improves performance of IDEs and the Dart analysis server.
  • Makes some internal class constructors constant

1.2.0 #

  • [objc] Updates to use module imports.
  • Bumps kotlin_version to 2.3.0.
  • [kotlin] Fixes a "bridge method" warning when implementing an event stream handler.
  • [swift][kotlin] Fixes crash that occurs when an object that is removed from the instance manager calls to Dart.
  • [dart] Fixes error from constructor parameter sharing name with attached field for a ProxyApi.
  • Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
  • [kotlin] Fixes compilation error with unbounded type parameter for InstanceManager.

1.1.1 #

  • [kotlin] Fixes generating suspend for AsyncType void method

1.1.0 #

  • Updates supported analyzer versions to 8.x or 9.x.
  • Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.
  • Deprecates dartHostTestHandler and dartTestOut.
  • [kotlin] Serialize custom enums as Long instead of Int to avoid ClassCastException on decoding.
  • Adds compatibility with analyzer 8.x.
  • [kotlin] Removes all containsKey and replaces with contains.
  • [kotlin] Fixes support for classes that override equals and hashCode for ProxyApis.
  • [kotlin] Adds error message log when a new Dart proxy instance fails to be created.
  • Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.

1.0.0 #

  • [kotlin] Adds support for nested sealed classes
  • [swift] Adds support for enum-sealed classes
  • [swift, kotlin] Adds support for Swift concurrency and Kotlin coroutines.
  • [dart, swift, kotlin] Adds support for default values
  • [dart, swift, kotlin] Adds support for generics
  • [dart, swift, kotlin] Adds support for const/immutable classes
17
likes
140
points
194
downloads
screenshot

Documentation

API reference

Publisher

verified publisherfeduke-nukem.dev

Weekly Downloads

Code generator tool to make communication between Flutter and the host platform type-safe and easier.

Repository (GitHub)
View/report issues
Contributing

Topics

#codegen #interop #platform-channels #plugin-development

License

BSD-3-Clause (license)

Dependencies

analyzer, args, code_builder, collection, dart_style, graphs, meta, path, pub_semver, yaml

More

Packages that depend on golubets