Skip to content

[native_doc_dartifier] Fix CI #2473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkgs/native_doc_dartifier/lib/src/prompts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ JNIgen handles various syntactic and semantic differences between Java/Kotlin an
* Pass each interface method as a named closure argument within the `\$InterfaceName` factory constructor.
* Example: `InterfaceName.implement(\$InterfaceName(method1: (param1) { /* ... */ }))`
* **Reusable Implementations:**
* If the Java/Kotlin code defines a class that `implements` an interface, To translate it to Dart make this class to be 'final class with' \$InterfaceName, as JNIgen make a mixin class \$InterfaceName that handles this, Don't make it to implements InterfaceName only use the mixin class.
* If the Java/Kotlin code defines a class that `implements` an interface, To translate it to Dart make this class to be 'final class with', Don't make it to implements InterfaceName only use the mixin class.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also mention that to use this interface you'd need to do Comparable.implement(MyClass())

* Example: `public class MyClass implements Comparable` becomes `final class MyClass with \$Comparable`.
* **Asynchronous Listener Methods:**
* For `void`-returning methods in implemented interfaces that should be non-blocking (listeners), explicitly set the `<methodName>\$async` parameter to `true` when using the inline implementation (e.g., `run\$async: true`).
* If using a reusable class (mixin), override the `<methodName>\$async` getter to return `true` (e.g., `bool get run\$async => true;`).
Expand Down
Loading