feat(very_good_core): add linux platform support#347
feat(very_good_core): add linux platform support#347Crdzbird wants to merge 5 commits intoVeryGoodOpenSource:mainfrom
Conversation
Adds the necessary files and configuration to support building and running the application on Linux. Introduces a Linux application ID model, CMake build scripts, Flutter plugin registration, and application runner setup.
marcossevilla
left a comment
There was a problem hiding this comment.
can we also remove the files related to very_good_flame_game? thanks! :)
There was a problem hiding this comment.
should we make this more generic like app.cc/app.h? or use the {{project_name}} var?
There was a problem hiding this comment.
related to the change on name, I'll vote to leave it as it is, since flutter by default generates it when running flutter create demo_app, which in this case on linux it'll always be my_application.c and the bridge my_application.h.
Updates the application class name from MyApplication to Application for consistency and clarity. Refactors related files and code to reflect the new naming convention.
erickzanardo
left a comment
There was a problem hiding this comment.
Does this supports flavors? The reason that Linux wasn't in the very good core template was because that platform didn't supported flavors and adding it would make it inconsistent with the other platforms
| https://github.com/waqas028/Document_Scanner_CMP | ||
|
|
||
| https://github.com/Coding-Meet/TextToSpeech-CMP | ||
|
|
||
| https://github.com/Debanshu777/XCalendar | ||
|
|
||
| https://github.com/thejohnsondev/PassGuard-Multiplatform | ||
|
|
||
| https://github.com/pksunny/flutter-ui-and-animations No newline at end of file |
| static void my_application_activate(GApplication* application) { | ||
| MyApplication* self = MY_APPLICATION(application); | ||
| static void application_activate(GApplication* application) { | ||
| Application* self = MY_APPLICATION(application); |
There was a problem hiding this comment.
| Application* self = MY_APPLICATION(application); | |
| Application* self = APPLICATION(application); |
| static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { | ||
| MyApplication* self = MY_APPLICATION(application); | ||
| static gboolean application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { | ||
| Application* self = MY_APPLICATION(application); |
There was a problem hiding this comment.
| Application* self = MY_APPLICATION(application); | |
| Application* self = APPLICATION(application); |
| static void my_application_startup(GApplication* application) { | ||
| //MyApplication* self = MY_APPLICATION(object); | ||
| static void application_startup(GApplication* application) { | ||
| //Application* self = MY_APPLICATION(object); |
There was a problem hiding this comment.
should we remove these comments?
| static void my_application_dispose(GObject* object) { | ||
| MyApplication* self = MY_APPLICATION(object); | ||
| static void application_dispose(GObject* object) { | ||
| Application* self = MY_APPLICATION(object); |
There was a problem hiding this comment.
| Application* self = MY_APPLICATION(object); | |
| Application* self = APPLICATION(application); |
| g_set_prgname(APPLICATION_ID); | ||
|
|
||
| return MY_APPLICATION(g_object_new(my_application_get_type(), | ||
| return MY_APPLICATION(g_object_new(application_get_type(), |
There was a problem hiding this comment.
| return MY_APPLICATION(g_object_new(application_get_type(), | |
| return APPLICATION(g_object_new(application_get_type(), |
| MyApplication* my_application_new(); | ||
| Application* application_new(); | ||
|
|
||
| #endif // FLUTTER_MY_APPLICATION_H_ |
There was a problem hiding this comment.
| #endif // FLUTTER_MY_APPLICATION_H_ | |
| #endif // FLUTTER_APPLICATION_H_ |
| #include <gtk/gtk.h> | ||
|
|
||
| G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, | ||
| G_DECLARE_FINAL_TYPE(Application, application, MY, APPLICATION, |
There was a problem hiding this comment.
| G_DECLARE_FINAL_TYPE(Application, application, MY, APPLICATION, | |
| G_DECLARE_FINAL_TYPE(Application, application, APPLICATION, |
This PR Adds to the VG core the necessary files and configuration to support building and running the application on Linux.
Introduces a Linux application ID model, CMake build scripts, Flutter plugin registration, and application runner setup.
Description
Type of Change