Revert "Move channel and codec related files to common" (flutter/engine#4256)

* Revert "Pass option to reuse an existing runtime controller (#4253)"

This reverts commit c281542231.

* Revert "Document the Porter-Duff operators. (#4250)"

This reverts commit 73a218a980.

* Revert "Move channel and codec related files to common (#4225)"

This reverts commit 8a687cb332.
This commit is contained in:
amirh
2017-10-20 11:44:56 -07:00
committed by GitHub
parent c281542231
commit dfcfcd96e9
13 changed files with 18 additions and 20 deletions

View File

@@ -28,13 +28,13 @@ source_set("flutter_channels") {
sources = [
"common/buffer_conversions.h",
"common/buffer_conversions.mm",
"common/FlutterBinaryMessenger.h",
"common/FlutterChannels.h",
"common/FlutterCodecs.h",
"common/FlutterChannels.mm",
"common/FlutterCodecs.mm",
"common/FlutterStandardCodec.mm",
"common/FlutterStandardCodec_Internal.h",
"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",
]
set_sources_assignment_filter(sources_assignment_filter)
@@ -61,8 +61,8 @@ executable("flutter_channels_unittests") {
set_sources_assignment_filter([])
sources = [
"common/flutter_codecs_unittest.mm",
"common/flutter_standard_codec_unittest.mm",
"ios/framework/Source/flutter_codecs_unittest.mm",
"ios/framework/Source/flutter_standard_codec_unittest.mm",
]
set_sources_assignment_filter(sources_assignment_filter)

View File

@@ -9,12 +9,6 @@ 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",

View File

@@ -26,12 +26,16 @@ 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",

View File

@@ -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/common/FlutterChannels.h"
#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterChannels.h"
#pragma mark - Basic message channel

View File

@@ -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/common/FlutterCodecs.h"
#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h"
@implementation FlutterBinaryCodec
+ (instancetype)sharedInstance {

View File

@@ -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/common/FlutterCodecs.h"
#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h"
typedef NS_ENUM(NSInteger, FlutterStandardField) {
FlutterStandardFieldNil,

View File

@@ -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/common/FlutterCodecs.h"
#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h"
#include "gtest/gtest.h"
TEST(FlutterStringCodec, CanEncodeAndDecodeNil) {

View File

@@ -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/common/FlutterCodecs.h"
#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h"
#include "gtest/gtest.h"
void checkEncodeDecode(id value, NSData* expectedEncoding) {