From b222b25861fab2e032c877c2cb941d76f449a905 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 31 Mar 2021 13:55:55 +1300 Subject: [PATCH] [path_provider] Update the Linux example template --- .../example/linux/flutter/CMakeLists.txt | 3 ++- .../example/linux/flutter/generated_plugin_registrant.cc | 6 +++++- .../example/linux/flutter/generated_plugin_registrant.h | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/path_provider/path_provider_linux/example/linux/flutter/CMakeLists.txt b/packages/path_provider/path_provider_linux/example/linux/flutter/CMakeLists.txt index 4f48a7ced5f4..5b465c7ecfcd 100644 --- a/packages/path_provider/path_provider_linux/example/linux/flutter/CMakeLists.txt +++ b/packages/path_provider/path_provider_linux/example/linux/flutter/CMakeLists.txt @@ -80,7 +80,8 @@ add_custom_command( COMMAND ${CMAKE_COMMAND} -E env ${FLUTTER_TOOL_ENVIRONMENT} "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" - linux-x64 ${CMAKE_BUILD_TYPE} + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM ) add_custom_target(flutter_assemble DEPENDS "${FLUTTER_LIBRARY}" diff --git a/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.cc b/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.cc index 890de29bbab1..e71a16d23d05 100644 --- a/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.cc +++ b/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.cc @@ -2,6 +2,10 @@ // Generated file. Do not edit. // +// clang-format off + #include "generated_plugin_registrant.h" -void fl_register_plugins(FlPluginRegistry* registry) {} + +void fl_register_plugins(FlPluginRegistry* registry) { +} diff --git a/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.h b/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.h index 9bf7478940c1..e0f0a47bc08f 100644 --- a/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.h +++ b/packages/path_provider/path_provider_linux/example/linux/flutter/generated_plugin_registrant.h @@ -2,6 +2,8 @@ // Generated file. Do not edit. // +// clang-format off + #ifndef GENERATED_PLUGIN_REGISTRANT_ #define GENERATED_PLUGIN_REGISTRANT_