extraBuildSteps static method
The steps run after the build command of a platform, e.g. the cache busting of web
Implementation
static List<PipeStep> extraBuildSteps(BPConfig config, TargetPlatform platform) {
switch (platform) {
case TargetPlatform.web:
if (config.web?.webConfig?.addVersionQueryParam != true) return [];
WebVersioningType versioningType = config.web?.webConfig?.webVersioningType ?? WebVersioningType.hash;
return [
ActionStep(
"Cache bust (${versioningType.isHash ? "hash" : "version ${config.version}"})",
(StepContext context) => WebUtils.applyCacheBustPostBuild(config, context),
),
];
case TargetPlatform.ios:
case TargetPlatform.android:
case TargetPlatform.macos:
case TargetPlatform.linux:
case TargetPlatform.windows:
return [];
}
}