Skip to content

Commit fe9bd7c

Browse files
JSUYAswift-kim
andauthored
Upgrade to Flutter 3.24.1 (flutter-tizen#566)
Co-authored-by: Swift Kim <[email protected]>
1 parent ecb9119 commit fe9bd7c

File tree

9 files changed

+35
-17
lines changed

9 files changed

+35
-17
lines changed

bin/internal/embedder.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
36f818a8ab2ef36eabfeabe0c8aa76c0b92f02c1
1+
b0fd447d3b9bdb56cd7751ff8e574a462fa310cb

bin/internal/engine.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
84ee23c69b2e9e1b465d0db4e261e60462b5ed54
1+
cb62dfec1ae1a22be8833353e7d410781c2692ca

bin/internal/flutter.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
761747bfc538b5af34aa0d3fac380f1bc331ec49
1+
5874a72aa4c779a02553007c47dacbefba2374dc

lib/build_targets/application.dart

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import 'package:package_config/src/package_config.dart';
2121
import '../tizen_build_info.dart';
2222
import 'plugins.dart';
2323

24-
class TizenKernelSnapshot extends KernelSnapshot {
25-
const TizenKernelSnapshot();
24+
class TizenKernelSnapshotProgram extends KernelSnapshotProgram {
25+
const TizenKernelSnapshotProgram();
2626

2727
/// Source: [KernelSnapshot.build] in `common.dart`
2828
@override
@@ -64,6 +64,9 @@ class TizenKernelSnapshot extends KernelSnapshot {
6464
logger: environment.logger,
6565
);
6666

67+
final String dillPath =
68+
environment.buildDir.childFile(KernelSnapshotProgram.dillName).path;
69+
6770
final CompilerOutput? output = await compiler.compile(
6871
sdkRoot: environment.artifacts.getArtifactPath(
6972
Artifact.flutterPatchedSdkPath,
@@ -73,14 +76,13 @@ class TizenKernelSnapshot extends KernelSnapshot {
7376
buildMode: buildMode,
7477
trackWidgetCreation:
7578
trackWidgetCreation && buildMode != BuildMode.release,
76-
outputFilePath: environment.buildDir.childFile('app.dill').path,
77-
initializeFromDill: buildMode.isPrecompiled
78-
? null
79-
: environment.buildDir.childFile('app.dill').path,
79+
outputFilePath: dillPath,
80+
initializeFromDill: buildMode.isPrecompiled ? null : dillPath,
8081
packagesPath: packagesFile.path,
8182
linkPlatformKernelIn: buildMode.isPrecompiled,
8283
mainPath: targetFileAbsolute,
83-
depFilePath: environment.buildDir.childFile('kernel_snapshot.d').path,
84+
depFilePath:
85+
environment.buildDir.childFile(KernelSnapshotProgram.depfile).path,
8486
frontendServerStarterPath: frontendServerStarterPath,
8587
extraFrontEndOptions: extraFrontEndOptions,
8688
fileSystemRoots: fileSystemRoots,
@@ -97,6 +99,16 @@ class TizenKernelSnapshot extends KernelSnapshot {
9799
}
98100
}
99101

102+
class TizenKernelSnapshot extends KernelSnapshot {
103+
const TizenKernelSnapshot();
104+
105+
@override
106+
List<Target> get dependencies => const <Target>[
107+
TizenKernelSnapshotProgram(),
108+
KernelSnapshotNativeAssets(),
109+
];
110+
}
111+
100112
/// Prepares the pre-built Flutter bundle.
101113
///
102114
/// Source: [AndroidAssetBundle] in `android.dart`
@@ -156,6 +168,7 @@ abstract class TizenAssetBundle extends Target {
156168
environment,
157169
outputDirectory,
158170
targetPlatform: TargetPlatform.android,
171+
buildMode: buildMode,
159172
flavor: environment.defines[kFlavor],
160173
);
161174
final DepfileService depfileService = DepfileService(

lib/commands/create.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ class TizenCreateCommand extends CreateCommand {
194194
String? kotlinVersion,
195195
String? gradleVersion,
196196
bool withPlatformChannelPluginHook = false,
197+
bool withSwiftPackageManager = false,
197198
bool withFfiPluginHook = false,
198199
bool withFfiPackage = false,
199200
bool withEmptyMain = false,
@@ -219,6 +220,7 @@ class TizenCreateCommand extends CreateCommand {
219220
kotlinVersion: kotlinVersion,
220221
gradleVersion: gradleVersion,
221222
withPlatformChannelPluginHook: withPlatformChannelPluginHook,
223+
withSwiftPackageManager: withSwiftPackageManager,
222224
withFfiPluginHook: withFfiPluginHook,
223225
withFfiPackage: withFfiPackage,
224226
withEmptyMain: withEmptyMain,

lib/commands/test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ void main() {
124124
String? icudtlPath,
125125
Directory? coverageDirectory,
126126
bool web = false,
127-
bool useWasm = false,
128127
String? randomSeed,
129128
String? reporter,
130129
String? fileReporter,
131130
String? timeout,
131+
bool failFast = false,
132132
bool runSkipped = false,
133133
int? shardIndex,
134134
int? totalShards,
@@ -161,11 +161,11 @@ void main() {
161161
icudtlPath: icudtlPath,
162162
coverageDirectory: coverageDirectory,
163163
web: web,
164-
useWasm: useWasm,
165164
randomSeed: randomSeed,
166165
reporter: reporter,
167166
fileReporter: fileReporter,
168167
timeout: timeout,
168+
failFast: failFast,
169169
runSkipped: runSkipped,
170170
shardIndex: shardIndex,
171171
totalShards: totalShards,
@@ -194,6 +194,7 @@ void main() {
194194
String? reporter,
195195
String? fileReporter,
196196
String? timeout,
197+
bool failFast = false,
197198
bool runSkipped = false,
198199
int? shardIndex,
199200
int? totalShards,
@@ -220,6 +221,7 @@ void main() {
220221
reporter: reporter,
221222
fileReporter: fileReporter,
222223
timeout: timeout,
224+
failFast: failFast,
223225
runSkipped: runSkipped,
224226
shardIndex: shardIndex,
225227
totalShards: totalShards,

templates/multi-app/lib/main.dart.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void serviceMain() {
4848
}
4949

5050
class MyApp extends StatefulWidget {
51-
const MyApp({Key? key}) : super(key: key);
51+
const MyApp({super.key});
5252

5353
@override
5454
State<MyApp> createState() => _MyAppState();
@@ -111,7 +111,7 @@ class _MyAppState extends State<MyApp> {
111111
ElevatedButton(
112112
onPressed: _terminateService,
113113
style: ElevatedButton.styleFrom(
114-
primary: Colors.redAccent,
114+
foregroundColor: Colors.redAccent,
115115
),
116116
child: const Text('Terminate service'),
117117
)

templates/multi-app/pubspec.yaml.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ index 8e9a7d66fb..fa388a4369 100644
44
+++ b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl
55
@@ -67,6 +67,11 @@ dependencies:
66
# Use with the CupertinoIcons class for iOS style icons.
7-
cupertino_icons: ^1.0.6
7+
cupertino_icons: ^1.0.8
88

99
+ # Tizen-specific dependencies.
1010
+ messageport_tizen: ^0.3.2
11-
+ tizen_app_control: ^0.2.2
12-
+ tizen_app_manager: ^0.2.2
11+
+ tizen_app_control: ^0.2.3
12+
+ tizen_app_manager: ^0.2.3
1313
+
1414
dev_dependencies:
1515
{{#withPlatformChannelPluginHook}}

test/general/tizen_builder_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ void main() {
5959
trackWidgetCreation: true,
6060
treeShakeIcons: false,
6161
codeSizeDirectory: 'code_size_analysis',
62+
packageConfigPath: '.dart_tool/package_config.json',
6263
),
6364
targetArch: 'arm',
6465
deviceProfile: 'common',

0 commit comments

Comments
 (0)