Skip to content

Commit fec3863

Browse files
committed
fix: unify the casing of hookArgs.prepareData.platform from prepare and run commands
Rel to: #4963
1 parent 6bd1fe6 commit fec3863

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/services/prepare-data-service.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ export class PrepareDataService implements IPrepareDataService {
44
constructor(private $mobileHelper: Mobile.IMobileHelper) { }
55

66
public getPrepareData(projectDir: string, platform: string, data: any) {
7+
const platformLowerCase = platform.toLowerCase();
8+
79
if (this.$mobileHelper.isiOSPlatform(platform)) {
8-
return new IOSPrepareData(projectDir, platform, data);
10+
return new IOSPrepareData(projectDir, platformLowerCase, data);
911
} else if (this.$mobileHelper.isAndroidPlatform(platform)) {
10-
return new AndroidPrepareData(projectDir, platform, data);
12+
return new AndroidPrepareData(projectDir, platformLowerCase, data);
1113
}
1214
}
1315
}

0 commit comments

Comments
 (0)