Skip to content
Closed

ignore #10232

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
eb7cac6
methods, basic types, sync, nullable-sync, async, and classes
tarrinneal Apr 15, 2025
9fa695d
broken nullable async methods
tarrinneal Apr 15, 2025
0aff0fd
refactor type logic, add codec
tarrinneal Apr 17, 2025
1ed8a8b
objects and enums
tarrinneal Apr 22, 2025
ee50607
full codec
tarrinneal May 9, 2025
4c6eb1a
error handling and more tests
tarrinneal May 29, 2025
f87efd4
fix codec
tarrinneal May 29, 2025
3e9d9f0
flutter api and plumbing through legacy apis and tests
tarrinneal Jun 27, 2025
6ad2e37
jnigen.yaml
tarrinneal Jun 27, 2025
9b55d44
ffi just getting started
tarrinneal Jul 7, 2025
25e8c30
gen fluff
tarrinneal Jul 11, 2025
df40332
not working
tarrinneal Jul 16, 2025
d90ecca
missing files
tarrinneal Jul 17, 2025
92933f8
gitignore
tarrinneal Jul 17, 2025
cb1c0fe
ios ffigen settings
tarrinneal Jul 17, 2025
a7cc7ce
remove macos min version from ffigen config
tarrinneal Jul 17, 2025
8fb8dca
no dylibs
tarrinneal Jul 17, 2025
ab64302
more basic, still can't see class
tarrinneal Jul 17, 2025
c7d00c6
upload macos
tarrinneal Jul 17, 2025
33f8fa1
fix ffigen files
tarrinneal Jul 17, 2025
4977cc2
test
tarrinneal Jul 29, 2025
586edf2
wip
tarrinneal Jul 29, 2025
74b1cb1
Merge branch 'Frillback' of github.com:tarrinneal/packages into Frill…
tarrinneal Jul 29, 2025
3736528
ns
tarrinneal Jul 29, 2025
31d182f
dunno
tarrinneal Jul 30, 2025
c63e598
something
tarrinneal Jul 30, 2025
6dc23e7
working again
tarrinneal Jul 30, 2025
982dfe6
Merge branch 'Frillback' of https://github.com/tarrinneal/packages in…
tarrinneal Jul 30, 2025
ecc088a
enums
tarrinneal Aug 12, 2025
927fd8d
and this one
tarrinneal Aug 12, 2025
877d60d
ffi support for classes, enums, and objects (partial testing)
tarrinneal Aug 26, 2025
910ac95
tests
tarrinneal Aug 26, 2025
b522d6c
fix enums, still need to resolve Any?
tarrinneal Sep 4, 2025
bd47b34
actually fix enums
tarrinneal Sep 5, 2025
4192a89
starting nullables, gonna be a mess
tarrinneal Sep 5, 2025
86e6907
nullable base types in classes
tarrinneal Sep 17, 2025
87f4f8a
add nullable enums (no tests for null things though.....)
tarrinneal Sep 18, 2025
ed3eb93
update to latest version
tarrinneal Sep 19, 2025
457edef
Not even I understand
tarrinneal Sep 24, 2025
9214479
fix null object?
tarrinneal Sep 25, 2025
aadd859
multi-arity and nullable enums in classes
tarrinneal Sep 26, 2025
8cb24b6
nested classes
tarrinneal Sep 27, 2025
d29e86a
typed lists and maps except int keys
tarrinneal Oct 14, 2025
b32d506
Merge branch 'main' of https://github.com/flutter/packages into Frill…
tarrinneal Oct 15, 2025
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
Prev Previous commit
Next Next commit
gen fluff
  • Loading branch information
tarrinneal committed Jul 11, 2025
commit 25e8c30ade9d3b25bfda70025c5fc61ea42abdd2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
jni
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
88 changes: 44 additions & 44 deletions packages/pigeon/example/app/linux/messages.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ G_DECLARE_FINAL_TYPE(PigeonExamplePackageMessageData,
*
* Returns: a new #PigeonExamplePackageMessageData
*/
PigeonExamplePackageMessageData* pigeon_example_package_message_data_new(
const gchar* name, const gchar* description, PigeonExamplePackageCode code,
FlValue* data);
PigeonExamplePackageMessageData *pigeon_example_package_message_data_new(
const gchar *name, const gchar *description, PigeonExamplePackageCode code,
FlValue *data);

/**
* pigeon_example_package_message_data_get_name
Expand All @@ -54,8 +54,8 @@ PigeonExamplePackageMessageData* pigeon_example_package_message_data_new(
*
* Returns: the field value.
*/
const gchar* pigeon_example_package_message_data_get_name(
PigeonExamplePackageMessageData* object);
const gchar *pigeon_example_package_message_data_get_name(
PigeonExamplePackageMessageData *object);

/**
* pigeon_example_package_message_data_get_description
Expand All @@ -65,8 +65,8 @@ const gchar* pigeon_example_package_message_data_get_name(
*
* Returns: the field value.
*/
const gchar* pigeon_example_package_message_data_get_description(
PigeonExamplePackageMessageData* object);
const gchar *pigeon_example_package_message_data_get_description(
PigeonExamplePackageMessageData *object);

/**
* pigeon_example_package_message_data_get_code
Expand All @@ -77,7 +77,7 @@ const gchar* pigeon_example_package_message_data_get_description(
* Returns: the field value.
*/
PigeonExamplePackageCode pigeon_example_package_message_data_get_code(
PigeonExamplePackageMessageData* object);
PigeonExamplePackageMessageData *object);

/**
* pigeon_example_package_message_data_get_data
Expand All @@ -87,8 +87,8 @@ PigeonExamplePackageCode pigeon_example_package_message_data_get_code(
*
* Returns: the field value.
*/
FlValue* pigeon_example_package_message_data_get_data(
PigeonExamplePackageMessageData* object);
FlValue *pigeon_example_package_message_data_get_data(
PigeonExamplePackageMessageData *object);

G_DECLARE_FINAL_TYPE(PigeonExamplePackageMessageCodec,
pigeon_example_package_message_codec,
Expand Down Expand Up @@ -117,9 +117,9 @@ G_DECLARE_FINAL_TYPE(
*
* Returns: a new #PigeonExamplePackageExampleHostApiGetHostLanguageResponse
*/
PigeonExamplePackageExampleHostApiGetHostLanguageResponse*
PigeonExamplePackageExampleHostApiGetHostLanguageResponse *
pigeon_example_package_example_host_api_get_host_language_response_new(
const gchar* return_value);
const gchar *return_value);

/**
* pigeon_example_package_example_host_api_get_host_language_response_new_error:
Expand All @@ -131,9 +131,9 @@ pigeon_example_package_example_host_api_get_host_language_response_new(
*
* Returns: a new #PigeonExamplePackageExampleHostApiGetHostLanguageResponse
*/
PigeonExamplePackageExampleHostApiGetHostLanguageResponse*
PigeonExamplePackageExampleHostApiGetHostLanguageResponse *
pigeon_example_package_example_host_api_get_host_language_response_new_error(
const gchar* code, const gchar* message, FlValue* details);
const gchar *code, const gchar *message, FlValue *details);

G_DECLARE_FINAL_TYPE(PigeonExamplePackageExampleHostApiAddResponse,
pigeon_example_package_example_host_api_add_response,
Expand All @@ -147,7 +147,7 @@ G_DECLARE_FINAL_TYPE(PigeonExamplePackageExampleHostApiAddResponse,
*
* Returns: a new #PigeonExamplePackageExampleHostApiAddResponse
*/
PigeonExamplePackageExampleHostApiAddResponse*
PigeonExamplePackageExampleHostApiAddResponse *
pigeon_example_package_example_host_api_add_response_new(int64_t return_value);

/**
Expand All @@ -160,9 +160,9 @@ pigeon_example_package_example_host_api_add_response_new(int64_t return_value);
*
* Returns: a new #PigeonExamplePackageExampleHostApiAddResponse
*/
PigeonExamplePackageExampleHostApiAddResponse*
PigeonExamplePackageExampleHostApiAddResponse *
pigeon_example_package_example_host_api_add_response_new_error(
const gchar* code, const gchar* message, FlValue* details);
const gchar *code, const gchar *message, FlValue *details);

/**
* PigeonExamplePackageExampleHostApiVTable:
Expand All @@ -171,13 +171,13 @@ pigeon_example_package_example_host_api_add_response_new_error(
* provider.
*/
typedef struct {
PigeonExamplePackageExampleHostApiGetHostLanguageResponse* (
PigeonExamplePackageExampleHostApiGetHostLanguageResponse *(
*get_host_language)(gpointer user_data);
PigeonExamplePackageExampleHostApiAddResponse* (*add)(int64_t a, int64_t b,
PigeonExamplePackageExampleHostApiAddResponse *(*add)(int64_t a, int64_t b,
gpointer user_data);
void (*send_message)(
PigeonExamplePackageMessageData* message,
PigeonExamplePackageExampleHostApiResponseHandle* response_handle,
PigeonExamplePackageMessageData *message,
PigeonExamplePackageExampleHostApiResponseHandle *response_handle,
gpointer user_data);
} PigeonExamplePackageExampleHostApiVTable;

Expand All @@ -194,8 +194,8 @@ typedef struct {
* Connects the method handlers in the ExampleHostApi API.
*/
void pigeon_example_package_example_host_api_set_method_handlers(
FlBinaryMessenger* messenger, const gchar* suffix,
const PigeonExamplePackageExampleHostApiVTable* vtable, gpointer user_data,
FlBinaryMessenger *messenger, const gchar *suffix,
const PigeonExamplePackageExampleHostApiVTable *vtable, gpointer user_data,
GDestroyNotify user_data_free_func);

/**
Expand All @@ -207,7 +207,7 @@ void pigeon_example_package_example_host_api_set_method_handlers(
* Clears the method handlers in the ExampleHostApi API.
*/
void pigeon_example_package_example_host_api_clear_method_handlers(
FlBinaryMessenger* messenger, const gchar* suffix);
FlBinaryMessenger *messenger, const gchar *suffix);

/**
* pigeon_example_package_example_host_api_respond_send_message:
Expand All @@ -217,7 +217,7 @@ void pigeon_example_package_example_host_api_clear_method_handlers(
* Responds to ExampleHostApi.sendMessage.
*/
void pigeon_example_package_example_host_api_respond_send_message(
PigeonExamplePackageExampleHostApiResponseHandle* response_handle,
PigeonExamplePackageExampleHostApiResponseHandle *response_handle,
gboolean return_value);

/**
Expand All @@ -230,8 +230,8 @@ void pigeon_example_package_example_host_api_respond_send_message(
* Responds with an error to ExampleHostApi.sendMessage.
*/
void pigeon_example_package_example_host_api_respond_error_send_message(
PigeonExamplePackageExampleHostApiResponseHandle* response_handle,
const gchar* code, const gchar* message, FlValue* details);
PigeonExamplePackageExampleHostApiResponseHandle *response_handle,
const gchar *code, const gchar *message, FlValue *details);

G_DECLARE_FINAL_TYPE(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse,
Expand All @@ -249,7 +249,7 @@ G_DECLARE_FINAL_TYPE(
*/
gboolean
pigeon_example_package_message_flutter_api_flutter_method_response_is_error(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse *response);

/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_error_code:
Expand All @@ -259,9 +259,9 @@ pigeon_example_package_message_flutter_api_flutter_method_response_is_error(
*
* Returns: an error code or %NULL if not an error.
*/
const gchar*
const gchar *
pigeon_example_package_message_flutter_api_flutter_method_response_get_error_code(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse *response);

/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_error_message:
Expand All @@ -271,9 +271,9 @@ pigeon_example_package_message_flutter_api_flutter_method_response_get_error_cod
*
* Returns: an error message.
*/
const gchar*
const gchar *
pigeon_example_package_message_flutter_api_flutter_method_response_get_error_message(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse *response);

/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_error_details:
Expand All @@ -283,9 +283,9 @@ pigeon_example_package_message_flutter_api_flutter_method_response_get_error_mes
*
* Returns: (allow-none): an error details or %NULL.
*/
FlValue*
FlValue *
pigeon_example_package_message_flutter_api_flutter_method_response_get_error_details(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse *response);

/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_return_value:
Expand All @@ -295,9 +295,9 @@ pigeon_example_package_message_flutter_api_flutter_method_response_get_error_det
*
* Returns: a return value.
*/
const gchar*
const gchar *
pigeon_example_package_message_flutter_api_flutter_method_response_get_return_value(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse *response);

/**
* PigeonExamplePackageMessageFlutterApi:
Expand All @@ -317,9 +317,9 @@ G_DECLARE_FINAL_TYPE(PigeonExamplePackageMessageFlutterApi,
*
* Returns: a new #PigeonExamplePackageMessageFlutterApi
*/
PigeonExamplePackageMessageFlutterApi*
pigeon_example_package_message_flutter_api_new(FlBinaryMessenger* messenger,
const gchar* suffix);
PigeonExamplePackageMessageFlutterApi *
pigeon_example_package_message_flutter_api_new(FlBinaryMessenger *messenger,
const gchar *suffix);

/**
* pigeon_example_package_message_flutter_api_flutter_method:
Expand All @@ -332,8 +332,8 @@ pigeon_example_package_message_flutter_api_new(FlBinaryMessenger* messenger,
*
*/
void pigeon_example_package_message_flutter_api_flutter_method(
PigeonExamplePackageMessageFlutterApi* api, const gchar* a_string,
GCancellable* cancellable, GAsyncReadyCallback callback,
PigeonExamplePackageMessageFlutterApi *api, const gchar *a_string,
GCancellable *cancellable, GAsyncReadyCallback callback,
gpointer user_data);

/**
Expand All @@ -348,10 +348,10 @@ void pigeon_example_package_message_flutter_api_flutter_method(
* Returns: a #PigeonExamplePackageMessageFlutterApiFlutterMethodResponse or
* %NULL on error.
*/
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse*
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse *
pigeon_example_package_message_flutter_api_flutter_method_finish(
PigeonExamplePackageMessageFlutterApi* api, GAsyncResult* result,
GError** error);
PigeonExamplePackageMessageFlutterApi *api, GAsyncResult *result,
GError **error);

G_END_DECLS

Expand Down
2 changes: 1 addition & 1 deletion packages/pigeon/example/app/linux/my_application.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
*
* Returns: a new #MyApplication.
*/
MyApplication* my_application_new();
MyApplication *my_application_new();

#endif // FLUTTER_MY_APPLICATION_H_
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
jni
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class FlutterWindow : public Win32Window {
public:
// Creates a new FlutterWindow hosting a Flutter view running |project|.
explicit FlutterWindow(const flutter::DartProject& project);
explicit FlutterWindow(const flutter::DartProject &project);
virtual ~FlutterWindow();

protected:
Expand Down
Loading