Skip to content

Commit f5bd873

Browse files
committed
Migrate to Flutter 2.2.1 (#105)
* Change TextRange to flutter::TextRange * Change shell/platform/common/cpp to shell/platform/common * Update azure-pipelines.yml * Adjust header guards
1 parent 935ec69 commit f5bd873

23 files changed

+73
-76
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
steps:
1616
- checkout: self
1717
path: src/flutter
18+
- bash: |
19+
git reset --hard HEAD
20+
gclient sync -D
21+
sed -i 's/"-Wno-non-c-typedef-for-linkage",//g' build/config/compiler/BUILD.gn
22+
sed -i 's/"-Wno-psabi",//g' build/config/compiler/BUILD.gn
23+
displayName: Run gclient sync
24+
workingDirectory: $(Pipeline.Workspace)/src
25+
failOnStderr: true
1826
- bash: ci/format.sh
1927
displayName: Verify formatting
2028
- job: build
@@ -54,20 +62,9 @@ jobs:
5462
demands: agent.os -equals Linux
5563
timeoutInMinutes: 60
5664
cancelTimeoutInMinutes: 1
57-
variables:
58-
- name: buildroot
59-
value: $(Pipeline.Workspace)/src
6065
steps:
6166
- checkout: self
6267
path: src/flutter
63-
- bash: |
64-
git reset --hard HEAD
65-
gclient sync -D
66-
sed -i 's/"-Wno-non-c-typedef-for-linkage",//g' build/config/compiler/BUILD.gn
67-
sed -i 's/"-Wno-psabi",//g' build/config/compiler/BUILD.gn
68-
displayName: Prepare for build
69-
workingDirectory: $(buildroot)
70-
failOnStderr: true
7168
- bash: |
7269
flutter/tools/gn \
7370
--target-os linux \
@@ -81,7 +78,7 @@ jobs:
8178
--build-tizen-shell
8279
ninja -C out/linux_$(mode)_$(arch)
8380
displayName: Build
84-
workingDirectory: $(buildroot)
81+
workingDirectory: $(Pipeline.Workspace)/src
8582
failOnStderr: true
8683
- bash: |
8784
OUTDIR=$(Build.StagingDirectory)
@@ -92,7 +89,7 @@ jobs:
9289
rm $OUTDIR/common/cpp_client_wrapper/engine_method_result.cc
9390
fi
9491
displayName: Copy artifacts
95-
workingDirectory: $(buildroot)
92+
workingDirectory: $(Pipeline.Workspace)/src
9693
failOnStderr: true
9794
- publish: $(Build.StagingDirectory)
9895
artifact: $(System.JobName)
@@ -105,7 +102,7 @@ jobs:
105102
clean: outputs
106103
variables:
107104
- name: upstreamVersion
108-
value: 40441def692f444660a11e20fac37af9050245ab
105+
value: 0fdb562ac8068ce3dda6b69aca3f355f4d1d2718
109106
steps:
110107
- checkout: self
111108
path: src/flutter

shell/platform/tizen/BUILD.gn

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
import("//flutter/shell/platform/common/cpp/client_wrapper/publish.gni")
5+
import("//flutter/shell/platform/common/client_wrapper/publish.gni")
66
import("//flutter/shell/platform/tizen/config.gni")
77

88
# Sets the rpath of dependent targets (shared libs) to $ORIGIN.
@@ -153,18 +153,18 @@ template("embedder_for_profile") {
153153

154154
configs += [
155155
":tizen_rootstrap_include_dirs",
156-
"//flutter/shell/platform/common/cpp:desktop_library_implementation",
156+
"//flutter/shell/platform/common:desktop_library_implementation",
157157
]
158158

159159
public_configs = [ "//flutter:config" ]
160160

161161
public_deps = [ ":flutter_engine" ]
162162

163163
deps = [
164-
"//flutter/shell/platform/common/cpp:common_cpp",
165-
"//flutter/shell/platform/common/cpp:common_cpp_input",
166-
"//flutter/shell/platform/common/cpp:common_cpp_library_headers",
167-
"//flutter/shell/platform/common/cpp/client_wrapper:client_wrapper",
164+
"//flutter/shell/platform/common:common_cpp",
165+
"//flutter/shell/platform/common:common_cpp_input",
166+
"//flutter/shell/platform/common:common_cpp_library_headers",
167+
"//flutter/shell/platform/common/client_wrapper:client_wrapper",
168168
"//third_party/rapidjson",
169169
]
170170
}
@@ -193,10 +193,10 @@ publish_client_wrapper_core("publish_cpp_client_wrapper") {
193193
}
194194

195195
_common_cpp_public_headers = [
196-
"//flutter/shell/platform/common/cpp/public/flutter_export.h",
197-
"//flutter/shell/platform/common/cpp/public/flutter_messenger.h",
198-
"//flutter/shell/platform/common/cpp/public/flutter_plugin_registrar.h",
199-
"//flutter/shell/platform/common/cpp/public/flutter_texture_registrar.h",
196+
"//flutter/shell/platform/common/public/flutter_export.h",
197+
"//flutter/shell/platform/common/public/flutter_messenger.h",
198+
"//flutter/shell/platform/common/public/flutter_plugin_registrar.h",
199+
"//flutter/shell/platform/common/public/flutter_texture_registrar.h",
200200
]
201201

202202
copy("publish_headers_tizen") {

shell/platform/tizen/channels/key_event_channel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#include <Ecore_Input.h>
99

10-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/basic_message_channel.h"
11-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
12-
#include "flutter/shell/platform/common/cpp/json_message_codec.h"
10+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h"
11+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
12+
#include "flutter/shell/platform/common/json_message_codec.h"
1313
#include "rapidjson/document.h"
1414

1515
class KeyEventChannel {

shell/platform/tizen/channels/navigation_channel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "navigation_channel.h"
66

7-
#include "flutter/shell/platform/common/cpp/json_method_codec.h"
7+
#include "flutter/shell/platform/common/json_method_codec.h"
88

99
static constexpr char kChannelName[] = "flutter/navigation";
1010

shell/platform/tizen/channels/navigation_channel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#ifndef EMBEDDER_NAVIGATION_CHANNEL_H_
66
#define EMBEDDER_NAVIGATION_CHANNEL_H_
77

8-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
9-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_channel.h"
8+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
9+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_channel.h"
1010
#include "rapidjson/document.h"
1111

1212
class NavigationChannel {

shell/platform/tizen/channels/platform_channel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <map>
1111

12-
#include "flutter/shell/platform/common/cpp/json_method_codec.h"
12+
#include "flutter/shell/platform/common/json_method_codec.h"
1313
#include "flutter/shell/platform/tizen/tizen_log.h"
1414

1515
static constexpr char kChannelName[] = "flutter/platform";

shell/platform/tizen/channels/platform_channel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#ifndef EMBEDDER_PLATFORM_CHANNEL_H_
66
#define EMBEDDER_PLATFORM_CHANNEL_H_
77

8-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
9-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_channel.h"
8+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
9+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_channel.h"
1010
#include "flutter/shell/platform/tizen/tizen_renderer.h"
1111
#include "rapidjson/document.h"
1212

shell/platform/tizen/channels/platform_view_channel.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// found in the LICENSE file.
44
#include "platform_view_channel.h"
55

6-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/plugin_registrar.h"
7-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_message_codec.h"
8-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_method_codec.h"
9-
#include "flutter/shell/platform/common/cpp/json_method_codec.h"
6+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h"
7+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_message_codec.h"
8+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_method_codec.h"
9+
#include "flutter/shell/platform/common/json_method_codec.h"
1010
#include "flutter/shell/platform/tizen/channels/text_input_channel.h"
1111
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
1212
#include "flutter/shell/platform/tizen/public/flutter_platform_view.h"

shell/platform/tizen/channels/platform_view_channel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#include <map>
1111

12-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
13-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_channel.h"
12+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
13+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_channel.h"
1414
#include "rapidjson/document.h"
1515

1616
class FlutterTizenEngine;

shell/platform/tizen/channels/settings_channel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#include <system/system_settings.h>
99

10-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/basic_message_channel.h"
11-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
12-
#include "flutter/shell/platform/common/cpp/json_message_codec.h"
10+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h"
11+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
12+
#include "flutter/shell/platform/common/json_message_codec.h"
1313
#include "rapidjson/document.h"
1414

1515
class SettingsChannel {

0 commit comments

Comments
 (0)