@@ -21,8 +21,8 @@ import 'package:package_config/src/package_config.dart';
2121import '../tizen_build_info.dart' ;
2222import '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 (
0 commit comments