Skip to content

Commit 1ea7ff0

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 88dfe31 commit 1ea7ff0

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 {

shell/platform/tizen/channels/text_input_channel.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ void TextInputChannel::HandleMethodCall(
366366
return;
367367
}
368368
active_model_->SetText(text->value.GetString());
369-
active_model_->SetSelection(TextRange(selection_base->value.GetInt(),
370-
selection_extent->value.GetInt()));
369+
active_model_->SetSelection(flutter::TextRange(
370+
selection_base->value.GetInt(), selection_extent->value.GetInt()));
371371
} else {
372372
result->NotImplemented();
373373
return;
@@ -382,7 +382,7 @@ void TextInputChannel::SendStateUpdate(const flutter::TextInputModel& model) {
382382
auto& allocator = args->GetAllocator();
383383
args->PushBack(client_id_, allocator);
384384

385-
TextRange selection = model.selection();
385+
flutter::TextRange selection = model.selection();
386386
rapidjson::Value editing_state(rapidjson::kObjectType);
387387
editing_state.AddMember(kComposingBaseKey, -1, allocator);
388388
editing_state.AddMember(kComposingExtentKey, -1, allocator);

shell/platform/tizen/channels/text_input_channel.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
#include <string>
1313

14-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
15-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_channel.h"
16-
#include "flutter/shell/platform/common/cpp/json_method_codec.h"
17-
#include "flutter/shell/platform/common/cpp/text_input_model.h"
14+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
15+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_channel.h"
16+
#include "flutter/shell/platform/common/json_method_codec.h"
17+
#include "flutter/shell/platform/common/text_input_model.h"
1818

1919
class FlutterTizenEngine;
2020
class TextInputChannel {

shell/platform/tizen/external_texture.h

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

88
#include <atomic>
99
#include <memory>
10-
#include "flutter/shell/platform/common/cpp/public/flutter_texture_registrar.h"
10+
#include "flutter/shell/platform/common/public/flutter_texture_registrar.h"
1111
#include "flutter/shell/platform/embedder/embedder.h"
1212

1313
#ifdef TIZEN_RENDERER_EVAS_GL

shell/platform/tizen/external_texture_pixel_gl.h

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

88
#include <memory>
99

10-
#include "flutter/shell/platform/common/cpp/public/flutter_texture_registrar.h"
10+
#include "flutter/shell/platform/common/public/flutter_texture_registrar.h"
1111
#include "flutter/shell/platform/embedder/embedder.h"
1212
#include "flutter/shell/platform/tizen/external_texture.h"
1313

shell/platform/tizen/external_texture_surface_gl.cc

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

55
#include "external_texture_surface_gl.h"
66

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

99
#ifdef TIZEN_RENDERER_EVAS_GL
1010
#undef EFL_BETA_API_SUPPORT

shell/platform/tizen/external_texture_surface_gl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef EMBEDDER_EXTERNAL_TEXTURE_SURFACE_GL_H_
66
#define EMBEDDER_EXTERNAL_TEXTURE_SURFACE_GL_H_
77

8-
#include "flutter/shell/platform/common/cpp/public/flutter_texture_registrar.h"
8+
#include "flutter/shell/platform/common/public/flutter_texture_registrar.h"
99
#include "flutter/shell/platform/embedder/embedder.h"
1010
#include "flutter/shell/platform/tizen/external_texture.h"
1111

shell/platform/tizen/flutter_tizen.cc

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

88
#include <inttypes.h>
99

10-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/plugin_registrar.h"
11-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_message_codec.h"
12-
#include "flutter/shell/platform/common/cpp/incoming_message_dispatcher.h"
10+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h"
11+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_message_codec.h"
12+
#include "flutter/shell/platform/common/incoming_message_dispatcher.h"
1313
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
1414
#include "flutter/shell/platform/tizen/public/flutter_platform_view.h"
1515
#include "flutter/shell/platform/tizen/tizen_log.h"

shell/platform/tizen/flutter_tizen_engine.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
// Use of this source code is governed by a BSD-style license that can be
44
// found in the LICENSE file.
55

6-
#ifndef EMBEDDER_TIZEN_EMBEDDER_ENGINE_H_
7-
#define EMBEDDER_TIZEN_EMBEDDER_ENGINE_H_
6+
#ifndef EMBEDDER_FLUTTER_TIZEN_ENGINE_H_
7+
#define EMBEDDER_FLUTTER_TIZEN_ENGINE_H_
88

99
#include <map>
1010
#include <memory>
1111

12-
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/plugin_registrar.h"
13-
#include "flutter/shell/platform/common/cpp/incoming_message_dispatcher.h"
12+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/plugin_registrar.h"
13+
#include "flutter/shell/platform/common/incoming_message_dispatcher.h"
1414
#include "flutter/shell/platform/embedder/embedder.h"
1515
#include "flutter/shell/platform/tizen/channels/key_event_channel.h"
1616
#include "flutter/shell/platform/tizen/channels/lifecycle_channel.h"
@@ -189,4 +189,4 @@ class FlutterTizenEngine : public TizenRenderer::Delegate {
189189
FlutterTransformation transformation_;
190190
};
191191

192-
#endif // EMBEDDER_TIZEN_EMBEDDER_ENGINE_H_
192+
#endif // EMBEDDER_FLUTTER_TIZEN_ENGINE_H_

shell/platform/tizen/public/flutter_tizen.h

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

6-
#ifndef PUBLIC_FLUTTER_TIZEN_EMBEDDER_H_
7-
#define PUBLIC_FLUTTER_TIZEN_EMBEDDER_H_
6+
#ifndef FLUTTER_SHELL_PLATFORM_TIZEN_PUBLIC_FLUTTER_TIZEN_H_
7+
#define FLUTTER_SHELL_PLATFORM_TIZEN_PUBLIC_FLUTTER_TIZEN_H_
88

99
#include <stddef.h>
1010
#include <stdint.h>
@@ -84,4 +84,4 @@ FLUTTER_EXPORT void FlutterDesktopNotifyAppIsDetached(
8484
} // extern "C"
8585
#endif
8686

87-
#endif // PUBLIC_FLUTTER_TIZEN_EMBEDDER_H_
87+
#endif // FLUTTER_SHELL_PLATFORM_TIZEN_PUBLIC_FLUTTER_TIZEN_H_

shell/platform/tizen/tizen_event_loop.h

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

6-
#ifndef TIZEN_EVENT_LOOP_H_
7-
#define TIZEN_EVENT_LOOP_H_
6+
#ifndef EMBEDDER_TIZEN_EVENT_LOOP_H_
7+
#define EMBEDDER_TIZEN_EVENT_LOOP_H_
88

99
#include <Ecore.h>
1010

@@ -99,4 +99,4 @@ class TizenRenderEventLoop : public TizenEventLoop {
9999
};
100100
#endif
101101

102-
#endif // TIZEN_EVENT_LOOP_H_
102+
#endif // EMBEDDER_TIZEN_EVENT_LOOP_H_

shell/platform/tizen/tizen_renderer.h

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

5-
#ifndef EMBEDDER_TIZEN_RENDERER_H
6-
#define EMBEDDER_TIZEN_RENDERER_H
5+
#ifndef EMBEDDER_TIZEN_RENDERER_H_
6+
#define EMBEDDER_TIZEN_RENDERER_H_
77

88
#include <cstdint>
99
#include <vector>
@@ -51,4 +51,4 @@ class TizenRenderer {
5151
TizenRenderer::Delegate& delegate_;
5252
};
5353

54-
#endif // EMBEDDER_TIZEN_RENDERER_H
54+
#endif // EMBEDDER_TIZEN_RENDERER_H_

shell/platform/tizen/tizen_renderer_ecore_wl2.h

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

5-
#ifndef EMBEDDER_TIZEN_RENDERER_ECORE_WL2_H
6-
#define EMBEDDER_TIZEN_RENDERER_ECORE_WL2_H
5+
#ifndef EMBEDDER_TIZEN_RENDERER_ECORE_WL2_H_
6+
#define EMBEDDER_TIZEN_RENDERER_ECORE_WL2_H_
77

88
#define EFL_BETA_API_SUPPORT
99
#include <EGL/egl.h>
@@ -69,4 +69,4 @@ class TizenRendererEcoreWl2 : public TizenRenderer {
6969
EGLSurface egl_resource_surface_ = EGL_NO_SURFACE;
7070
};
7171

72-
#endif // EMBEDDER_TIZEN_RENDERER_ECORE_WL2_H
72+
#endif // EMBEDDER_TIZEN_RENDERER_ECORE_WL2_H_

shell/platform/tizen/tizen_renderer_evas_gl.h

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

5-
#ifndef EMBEDDER_TIZEN_RENDERER_EVAS_GL_H
6-
#define EMBEDDER_TIZEN_RENDERER_EVAS_GL_H
5+
#ifndef EMBEDDER_TIZEN_RENDERER_EVAS_GL_H_
6+
#define EMBEDDER_TIZEN_RENDERER_EVAS_GL_H_
77

88
#undef EFL_BETA_API_SUPPORT
99
#include <Ecore.h>
@@ -66,4 +66,4 @@ class TizenRendererEvasGL : public TizenRenderer {
6666
Evas_GL_Surface* gl_resource_surface_{nullptr};
6767
};
6868

69-
#endif // EMBEDDER_TIZEN_RENDERER_ECORE_WL2_H
69+
#endif // EMBEDDER_TIZEN_RENDERER_EVAS_GL_H_

0 commit comments

Comments
 (0)