From 9453cb51b6f77a9e28719f15c3eccba85f380201 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 13 Oct 2020 04:32:02 +0200 Subject: [PATCH] Add workaround for missing fl_method_xxx_response_get_type() symbols (flutter/engine#21405) --- .../src/flutter/shell/platform/linux/fl_method_response.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/linux/fl_method_response.cc b/engine/src/flutter/shell/platform/linux/fl_method_response.cc index d4c760c213..cd66bdf23a 100644 --- a/engine/src/flutter/shell/platform/linux/fl_method_response.cc +++ b/engine/src/flutter/shell/platform/linux/fl_method_response.cc @@ -26,8 +26,11 @@ struct _FlMethodNotImplementedResponse { FlMethodResponse parent_instance; }; -// Added here to stop the compiler from optimising this function away. +// Added here to stop the compiler from optimising these functions away. G_MODULE_EXPORT GType fl_method_response_get_type(); +G_MODULE_EXPORT GType fl_method_success_response_get_type(); +G_MODULE_EXPORT GType fl_method_error_response_get_type(); +G_MODULE_EXPORT GType fl_method_not_implemented_response_get_type(); G_DEFINE_TYPE(FlMethodResponse, fl_method_response, G_TYPE_OBJECT) G_DEFINE_TYPE(FlMethodSuccessResponse,