diff --git a/engine/src/flutter/shell/platform/darwin/BUILD.gn b/engine/src/flutter/shell/platform/darwin/BUILD.gn index c971c443bc..1abd27fdcb 100644 --- a/engine/src/flutter/shell/platform/darwin/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/BUILD.gn @@ -28,13 +28,13 @@ source_set("flutter_channels") { sources = [ "common/buffer_conversions.h", "common/buffer_conversions.mm", - "ios/framework/Headers/FlutterBinaryMessenger.h", - "ios/framework/Headers/FlutterChannels.h", - "ios/framework/Headers/FlutterCodecs.h", - "ios/framework/Source/FlutterChannels.mm", - "ios/framework/Source/FlutterCodecs.mm", - "ios/framework/Source/FlutterStandardCodec.mm", - "ios/framework/Source/FlutterStandardCodec_Internal.h", + "common/FlutterBinaryMessenger.h", + "common/FlutterChannels.h", + "common/FlutterCodecs.h", + "common/FlutterChannels.mm", + "common/FlutterCodecs.mm", + "common/FlutterStandardCodec.mm", + "common/FlutterStandardCodec_Internal.h", ] set_sources_assignment_filter(sources_assignment_filter) @@ -61,8 +61,8 @@ executable("flutter_channels_unittests") { set_sources_assignment_filter([]) sources = [ - "ios/framework/Source/flutter_codecs_unittest.mm", - "ios/framework/Source/flutter_standard_codec_unittest.mm", + "common/flutter_codecs_unittest.mm", + "common/flutter_standard_codec_unittest.mm", ] set_sources_assignment_filter(sources_assignment_filter) diff --git a/engine/src/flutter/shell/platform/darwin/common/BUILD.gn b/engine/src/flutter/shell/platform/darwin/common/BUILD.gn index e6fa86366b..adaf52640f 100644 --- a/engine/src/flutter/shell/platform/darwin/common/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/common/BUILD.gn @@ -9,6 +9,12 @@ source_set("common") { sources = [ "buffer_conversions.h", "buffer_conversions.mm", + "FlutterChannels.h", + "FlutterChannels.mm", + "FlutterCodecs.h", + "FlutterCodecs.mm", + "FlutterStandardCodec.mm", + "FlutterStandardCodec_internal.h", "platform_mac.h", "platform_mac.mm", "process_info_mac.cc", diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterBinaryMessenger.h b/engine/src/flutter/shell/platform/darwin/common/FlutterBinaryMessenger.h similarity index 100% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterBinaryMessenger.h rename to engine/src/flutter/shell/platform/darwin/common/FlutterBinaryMessenger.h diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterChannels.h b/engine/src/flutter/shell/platform/darwin/common/FlutterChannels.h similarity index 100% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterChannels.h rename to engine/src/flutter/shell/platform/darwin/common/FlutterChannels.h diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterChannels.mm b/engine/src/flutter/shell/platform/darwin/common/FlutterChannels.mm similarity index 99% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterChannels.mm rename to engine/src/flutter/shell/platform/darwin/common/FlutterChannels.mm index 86bef50253..98c306c7bf 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterChannels.mm +++ b/engine/src/flutter/shell/platform/darwin/common/FlutterChannels.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterChannels.h" +#include "flutter/shell/platform/darwin/common/FlutterChannels.h" #pragma mark - Basic message channel diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h b/engine/src/flutter/shell/platform/darwin/common/FlutterCodecs.h similarity index 100% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h rename to engine/src/flutter/shell/platform/darwin/common/FlutterCodecs.h diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterCodecs.mm b/engine/src/flutter/shell/platform/darwin/common/FlutterCodecs.mm similarity index 98% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterCodecs.mm rename to engine/src/flutter/shell/platform/darwin/common/FlutterCodecs.mm index e49ec86aad..56150dd80b 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterCodecs.mm +++ b/engine/src/flutter/shell/platform/darwin/common/FlutterCodecs.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h" +#include "flutter/shell/platform/darwin/common/FlutterCodecs.h" @implementation FlutterBinaryCodec + (instancetype)sharedInstance { diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterMacros.h b/engine/src/flutter/shell/platform/darwin/common/FlutterMacros.h similarity index 100% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterMacros.h rename to engine/src/flutter/shell/platform/darwin/common/FlutterMacros.h diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec.mm b/engine/src/flutter/shell/platform/darwin/common/FlutterStandardCodec.mm similarity index 100% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec.mm rename to engine/src/flutter/shell/platform/darwin/common/FlutterStandardCodec.mm diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec_Internal.h b/engine/src/flutter/shell/platform/darwin/common/FlutterStandardCodec_Internal.h similarity index 95% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec_Internal.h rename to engine/src/flutter/shell/platform/darwin/common/FlutterStandardCodec_Internal.h index ccd46e6771..84ba142c27 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec_Internal.h +++ b/engine/src/flutter/shell/platform/darwin/common/FlutterStandardCodec_Internal.h @@ -5,7 +5,7 @@ #ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERSTANDARDCODECINTERNAL_H_ #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERSTANDARDCODECINTERNAL_H_ -#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h" +#include "flutter/shell/platform/darwin/common/FlutterCodecs.h" typedef NS_ENUM(NSInteger, FlutterStandardField) { FlutterStandardFieldNil, diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/flutter_codecs_unittest.mm b/engine/src/flutter/shell/platform/darwin/common/flutter_codecs_unittest.mm similarity index 96% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Source/flutter_codecs_unittest.mm rename to engine/src/flutter/shell/platform/darwin/common/flutter_codecs_unittest.mm index b94793d39e..ec41fec607 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/flutter_codecs_unittest.mm +++ b/engine/src/flutter/shell/platform/darwin/common/flutter_codecs_unittest.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h" +#include "flutter/shell/platform/darwin/common/FlutterCodecs.h" #include "gtest/gtest.h" TEST(FlutterStringCodec, CanEncodeAndDecodeNil) { diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/flutter_standard_codec_unittest.mm b/engine/src/flutter/shell/platform/darwin/common/flutter_standard_codec_unittest.mm similarity index 99% rename from engine/src/flutter/shell/platform/darwin/ios/framework/Source/flutter_standard_codec_unittest.mm rename to engine/src/flutter/shell/platform/darwin/common/flutter_standard_codec_unittest.mm index 9070ceb0a4..82a7dfef98 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/flutter_standard_codec_unittest.mm +++ b/engine/src/flutter/shell/platform/darwin/common/flutter_standard_codec_unittest.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h" +#include "flutter/shell/platform/darwin/common/FlutterCodecs.h" #include "gtest/gtest.h" void checkEncodeDecode(id value, NSData* expectedEncoding) { diff --git a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn index 5796d55d69..e1b94334a0 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn @@ -26,16 +26,12 @@ shared_library("flutter_framework_dylib") { "framework/Headers/FlutterViewController.h", "framework/Headers/FlutterNavigationController.h", "framework/Source/FlutterAppDelegate.mm", - "framework/Source/FlutterChannels.mm", - "framework/Source/FlutterCodecs.mm", "framework/Source/FlutterDartProject.mm", "framework/Source/FlutterDartProject_Internal.h", "framework/Source/FlutterDartSource.h", "framework/Source/FlutterDartSource.mm", "framework/Source/FlutterPlatformPlugin.h", "framework/Source/FlutterPlatformPlugin.mm", - "framework/Source/FlutterStandardCodec.mm", - "framework/Source/FlutterStandardCodec_Internal.h", "framework/Source/FlutterTextInputDelegate.h", "framework/Source/FlutterTextInputPlugin.h", "framework/Source/FlutterTextInputPlugin.mm",