Skip to content

Commit 6e86e6d

Browse files
fix: skip clean platform in case it has not been prepared
1 parent 8b29f3a commit 6e86e6d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/services/prepare-platform-native-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class PreparePlatformNativeService extends PreparePlatformService impleme
113113
}
114114

115115
const previousPrepareInfo = this.$projectChangesService.getPrepareInfo(platform, projectData);
116-
if (!previousPrepareInfo) {
116+
if (!previousPrepareInfo || previousPrepareInfo.nativePlatformStatus !== constants.NativePlatformStatus.alreadyPrepared) {
117117
return;
118118
}
119119

test/platform-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,7 @@ describe('Platform Service Tests', () => {
921921
appResourcesDestinationDirectoryPath: testDirData.appResourcesFolderPath,
922922
normalizedPlatformName: "Android",
923923
projectRoot: testDirData.tempFolder,
924+
configurationFileName: "configFileName",
924925
platformProjectService: {
925926
prepareProject: (): any => null,
926927
prepareAppResources: (): any => null,

test/stubs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export class ProjectDataStub implements IProjectData {
303303
projectDir: string;
304304
projectName: string;
305305
get platformsDir(): string {
306-
return this.plafromsDir;
306+
return this.plafromsDir || (this.projectDir && path.join(this.projectDir, "platforms"));
307307
}
308308
set platformsDir(value) {
309309
this.plafromsDir = value;

0 commit comments

Comments
 (0)