Skip to content

Commit 24fd305

Browse files
committed
Fix PR comments
1 parent 86ac9bd commit 24fd305

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/services/ios-project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
7272
platformProjectService: this,
7373
emulatorServices: this.$iOSEmulatorServices,
7474
projectRoot: projectRoot,
75-
deviceBuildOutputPath: path.join(projectRoot, "build", "device"),
76-
emulatorBuildOutputPath: path.join(projectRoot, "build", "emulator"),
75+
deviceBuildOutputPath: path.join(projectRoot, constants.BUILD_DIR, "device"),
76+
emulatorBuildOutputPath: path.join(projectRoot, constants.BUILD_DIR, "emulator"),
7777
getValidBuildOutputData: (buildOptions: IBuildOutputOptions): IValidBuildOutputData => {
7878
if (buildOptions.isForDevice) {
7979
return {

lib/services/platform-service.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -779,10 +779,10 @@ export class PlatformService extends EventEmitter implements IPlatformService {
779779
return packages.map(filepath => this.createApplicationPackage(filepath));
780780
}
781781

782-
private createApplicationPackage(filepath: string): IApplicationPackage {
782+
private createApplicationPackage(packageName: string): IApplicationPackage {
783783
return {
784-
packageName: filepath,
785-
time: this.$fs.getFsStats(filepath).mtime
784+
packageName,
785+
time: this.$fs.getFsStats(packageName).mtime
786786
};
787787
}
788788

test/stubs.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export class PlatformProjectServiceStub extends EventEmitter implements IPlatfor
305305
emulatorServices: undefined,
306306
projectRoot: "",
307307
deviceBuildOutputPath: "",
308-
getValidBuildOutputData: (buildOptions: { isForDevice?: boolean, isReleaseBuild?: boolean }) => ({ packageNames: [] }),
308+
getValidBuildOutputData: (buildOptions: IBuildOutputOptions) => ({ packageNames: [] }),
309309
frameworkFilesExtensions: [],
310310
appDestinationDirectoryPath: "",
311311
relativeToFrameworkConfigurationFilePath: "",
@@ -416,7 +416,7 @@ export class PlatformsDataStub extends EventEmitter implements IPlatformsData {
416416
normalizedPlatformName: "",
417417
appDestinationDirectoryPath: "",
418418
deviceBuildOutputPath: "",
419-
getValidBuildOutputData: (buildOptions: { isForDevice?: boolean, isReleaseBuild?: boolean }) => ({ packageNames: []}),
419+
getValidBuildOutputData: (buildOptions: IBuildOutputOptions) => ({ packageNames: []}),
420420
frameworkFilesExtensions: [],
421421
relativeToFrameworkConfigurationFilePath: "",
422422
fastLivesyncFileExtensions: []

0 commit comments

Comments
 (0)