@@ -277,22 +277,22 @@ class AndroidGradleBuilder implements AndroidBuilder {
277
277
if (! buildInfo.androidGradleDaemon) {
278
278
command.add ('--no-daemon' );
279
279
}
280
- if (_artifacts is LocalEngineArtifacts ) {
281
- final LocalEngineArtifacts localEngineArtifacts = _artifacts as LocalEngineArtifacts ;
280
+ final LocalEngineInfo ? localEngineInfo = _artifacts.localEngineInfo;
281
+ if (localEngineInfo != null ) {
282
282
final Directory localEngineRepo = _getLocalEngineRepo (
283
- engineOutPath: localEngineArtifacts .engineOutPath,
283
+ engineOutPath: localEngineInfo .engineOutPath,
284
284
androidBuildInfo: androidBuildInfo,
285
285
fileSystem: _fileSystem,
286
286
);
287
287
_logger.printTrace (
288
- 'Using local engine: ${localEngineArtifacts .engineOutPath }\n '
288
+ 'Using local engine: ${localEngineInfo .engineOutPath }\n '
289
289
'Local Maven repo: ${localEngineRepo .path }'
290
290
);
291
291
command.add ('-Plocal-engine-repo=${localEngineRepo .path }' );
292
292
command.add ('-Plocal-engine-build-mode=${buildInfo .modeName }' );
293
- command.add ('-Plocal-engine-out=${localEngineArtifacts .engineOutPath }' );
293
+ command.add ('-Plocal-engine-out=${localEngineInfo .engineOutPath }' );
294
294
command.add ('-Ptarget-platform=${_getTargetPlatformByLocalEnginePath (
295
- localEngineArtifacts .engineOutPath )}' );
295
+ localEngineInfo .engineOutPath )}' );
296
296
} else if (androidBuildInfo.targetArchs.isNotEmpty) {
297
297
final String targetPlatforms = androidBuildInfo
298
298
.targetArchs
@@ -611,20 +611,20 @@ class AndroidGradleBuilder implements AndroidBuilder {
611
611
);
612
612
}
613
613
614
- if (_artifacts is LocalEngineArtifacts ) {
615
- final LocalEngineArtifacts localEngineArtifacts = _artifacts as LocalEngineArtifacts ;
614
+ final LocalEngineInfo ? localEngineInfo = _artifacts.localEngineInfo;
615
+ if (localEngineInfo != null ) {
616
616
final Directory localEngineRepo = _getLocalEngineRepo (
617
- engineOutPath: localEngineArtifacts .engineOutPath,
617
+ engineOutPath: localEngineInfo .engineOutPath,
618
618
androidBuildInfo: androidBuildInfo,
619
619
fileSystem: _fileSystem,
620
620
);
621
621
_logger.printTrace (
622
- 'Using local engine: ${localEngineArtifacts .engineOutPath }\n '
622
+ 'Using local engine: ${localEngineInfo .engineOutPath }\n '
623
623
'Local Maven repo: ${localEngineRepo .path }'
624
624
);
625
625
command.add ('-Plocal-engine-repo=${localEngineRepo .path }' );
626
626
command.add ('-Plocal-engine-build-mode=${buildInfo .modeName }' );
627
- command.add ('-Plocal-engine-out=${localEngineArtifacts .engineOutPath }' );
627
+ command.add ('-Plocal-engine-out=${localEngineInfo .engineOutPath }' );
628
628
629
629
// Copy the local engine repo in the output directory.
630
630
try {
@@ -639,7 +639,7 @@ class AndroidGradleBuilder implements AndroidBuilder {
639
639
);
640
640
}
641
641
command.add ('-Ptarget-platform=${_getTargetPlatformByLocalEnginePath (
642
- localEngineArtifacts .engineOutPath )}' );
642
+ localEngineInfo .engineOutPath )}' );
643
643
} else if (androidBuildInfo.targetArchs.isNotEmpty) {
644
644
final String targetPlatforms = androidBuildInfo.targetArchs
645
645
.map (getPlatformNameForAndroidArch).join (',' );
0 commit comments