diff --git a/shell/platform/tizen/BUILD.gn b/shell/platform/tizen/BUILD.gn index b285f11b2260e..62e4603bfc525 100644 --- a/shell/platform/tizen/BUILD.gn +++ b/shell/platform/tizen/BUILD.gn @@ -63,6 +63,7 @@ source_set("flutter_tizen") { include_dirs = [ "//third_party/tizen_tools/sysroot/$target_cpu/usr/include", + "//third_party/tizen_tools/sysroot/$target_cpu/usr/include/appfw", "//third_party/tizen_tools/sysroot/$target_cpu/usr/include/base", "//third_party/tizen_tools/sysroot/$target_cpu/usr/include/dlog", "//third_party/tizen_tools/sysroot/$target_cpu/usr/include/ecore-1", @@ -89,6 +90,7 @@ source_set("flutter_tizen") { libs = [ "base-utils-i18n", + "capi-appfw-application", "capi-system-info", "capi-system-system-settings", "dlog", diff --git a/shell/platform/tizen/channels/platform_channel.cc b/shell/platform/tizen/channels/platform_channel.cc index 65de673403c0e..0ec2e0c13017a 100644 --- a/shell/platform/tizen/channels/platform_channel.cc +++ b/shell/platform/tizen/channels/platform_channel.cc @@ -4,6 +4,8 @@ #include "platform_channel.h" +#include + #include "flutter/shell/platform/common/cpp/json_method_codec.h" #include "flutter/shell/platform/tizen/logger.h" @@ -28,7 +30,7 @@ void PlatformChannel::HandleMethodCall( const auto method = call.method_name(); if (method == "SystemNavigator.pop") { - exit(EXIT_SUCCESS); + ui_app_exit(); result->Success(); } else if (method == "SystemSound.play") { result->NotImplemented();