File tree Expand file tree Collapse file tree
packages/webview_flutter_lwe Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 0.4.1
2+
3+ * Remove Ecore API.
4+
15## 0.4.0
26
37* Update minimum supported SDK version to Flutter 3.32/Dart 3.8.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ This package is not an _endorsed_ implementation of `webview_flutter`. Therefore
2121``` yaml
2222dependencies :
2323 webview_flutter : ^4.13.1
24- webview_flutter_lwe : ^0.4.0
24+ webview_flutter_lwe : ^0.4.1
2525` ` `
2626
2727## Example
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: webview_flutter_lwe
22description : Tizen implementation of the webview_flutter plugin backed by Lightweight Web Engine.
33homepage : https://github.com/flutter-tizen/plugins
44repository : https://github.com/flutter-tizen/plugins/tree/master/packages/webview_flutter_lwe
5- version : 0.4.0
5+ version : 0.4.1
66
77environment :
88 sdk : ^3.8.0
Original file line number Diff line number Diff line change 44
55#include " message_dispatcher.h"
66
7- #include < Ecore .h>
7+ #include < glib .h>
88
9- MessageDispatcher::MessageDispatcher () { ecore_init (); }
10- MessageDispatcher::~MessageDispatcher () { ecore_shutdown (); }
9+ MessageDispatcher::MessageDispatcher () {}
10+ MessageDispatcher::~MessageDispatcher () {}
1111
1212void MessageDispatcher::dispatchTaskOnMainThread (std::function<void ()>&& fn) {
1313 struct Param {
1414 std::function<void ()> fn;
1515 };
1616 Param* p = new Param ({std::move (fn)});
1717
18- ecore_main_loop_thread_safe_call_async (
19- [](void * data) -> void {
20- ecore_timer_add (
21- 0.0 ,
22- [](void * data) -> Eina_Bool {
23- auto * p = static_cast <Param*>(data);
24- p->fn ();
25- delete p;
26- return ECORE_CALLBACK_CANCEL ;
27- },
28- data);
18+ g_idle_add_full (
19+ G_PRIORITY_DEFAULT ,
20+ [](gpointer data) -> gboolean {
21+ auto * p = static_cast <Param*>(data);
22+ p->fn ();
23+ return G_SOURCE_REMOVE ;
2924 },
30- p);
25+ p, [](gpointer data) { delete static_cast <Param*>(data); } );
3126}
You can’t perform that action at this time.
0 commit comments