Skip to content

Commit e15ee69

Browse files
authored
feat: workspace support (#5552)
2 parents 4703cef + 5495727 commit e15ee69

23 files changed

+22185
-8403
lines changed

lib/commands/plugin/build-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
import { ICommand, ICommandParameter } from "../../common/definitions/commands";
1010
import { IErrors, IFileSystem } from "../../common/declarations";
1111
import { injector } from "../../common/yok";
12+
import { ITempService } from "../../definitions/temp-service";
1213

1314
export class BuildPluginCommand implements ICommand {
1415
public allowedParameters: ICommandParameter[] = [];

lib/common/definitions/temp.d.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

lib/common/mobile/android/android-device-file-system.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { executeActionByChunks } from "../../helpers";
66
import { DEFAULT_CHUNK_SIZE } from "../../constants";
77
import { IFileSystem, IStringDictionary } from "../../declarations";
88
import { IInjector } from "../../definitions/yok";
9+
import { ITempService } from "../../../definitions/temp-service";
910

1011
export class AndroidDeviceFileSystem implements Mobile.IDeviceFileSystem {
1112
private _deviceHashServices = Object.create(null);

lib/common/mobile/android/android-device-hash-service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { cache } from "../../decorators";
44
import { executeActionByChunks } from "../../helpers";
55
import { DEFAULT_CHUNK_SIZE, LiveSyncPaths } from "../../constants";
66
import { IFileSystem, IStringDictionary } from "../../declarations";
7+
import { ITempService } from "../../../definitions/temp-service";
78

89
export class AndroidDeviceHashService
910
implements Mobile.IAndroidDeviceHashService {

lib/common/mobile/ios/simulator/ios-simulator-application-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
IFileSystem,
1414
IHooksService,
1515
} from "../../../declarations";
16+
import { ITempService } from "../../../../definitions/temp-service";
1617

1718
export class IOSSimulatorApplicationManager extends ApplicationManagerBase {
1819
private _lldbProcesses: IDictionary<ChildProcess> = {};

lib/common/mobile/mobile-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as _ from "lodash";
44
import { IProjectData } from "../../definitions/project";
55
import { IErrors, IFileSystem } from "../declarations";
66
import { injector } from "../yok";
7+
import { ITempService } from "../../definitions/temp-service";
78

89
export class MobileHelper implements Mobile.IMobileHelper {
910
private static DEVICE_PATH_SEPARATOR = "/";

lib/definitions/temp-service.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { AffixOptions } from "temp";
2+
13
/**
24
* Declares wrapped functions of temp module
35
*/
46
interface ITempService {
5-
mkdirSync(affixes: string): Promise<string>;
6-
path(options: ITempPathOptions): Promise<string>;
7+
mkdirSync(affixes: string | AffixOptions): Promise<string>;
8+
path(options: string | AffixOptions): Promise<string>;
79
}

lib/device-sockets/ios/app-debug-socket-proxy-factory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MessageUnpackStream } from "ios-device-lib";
66
import { IAppDebugSocketProxyFactory, IOptions } from "../../declarations";
77
import { IDictionary, IErrors, INet } from "../../common/declarations";
88
import { injector } from "../../common/yok";
9+
import { ITempService } from "../../definitions/temp-service";
910

1011
export class AppDebugSocketProxyFactory
1112
extends EventEmitter

lib/helpers/platform-command-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { IPlatformsDataService, IPlatformData } from "../definitions/platform";
1414
import { IFileSystem, IErrors } from "../common/declarations";
1515
import { injector } from "../common/yok";
16+
import { ITempService } from "../definitions/temp-service";
1617

1718
export class PlatformCommandHelper implements IPlatformCommandHelper {
1819
constructor(

lib/services/ios-project-service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { IOSProvisionService } from "./ios-provision-service";
1313
import { IOSEntitlementsService } from "./ios-entitlements-service";
1414
import { IOSBuildData } from "../data/build-data";
1515
import { IOSPrepareData } from "../data/prepare-data";
16-
import { BUILD_XCCONFIG_FILE_NAME, IosProjectConstants } from "../constants";
16+
import { BUILD_XCCONFIG_FILE_NAME, CONFIG_FILE_NAME_DISPLAY, IosProjectConstants } from "../constants";
1717
import { hook } from "../common/helpers";
1818
import {
1919
IPlatformData,
@@ -45,6 +45,7 @@ import { IInjector } from "../common/definitions/yok";
4545
import { injector } from "../common/yok";
4646
import { INotConfiguredEnvOptions } from "../common/definitions/commands";
4747
import { IProjectChangesInfo } from "../definitions/project-changes";
48+
import { ITempService } from "../definitions/temp-service";
4849

4950
interface INativeSourceCodeGroup {
5051
name: string;
@@ -1489,7 +1490,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
14891490
infoPlist.CFBundleIdentifier !== mergedPlist.CFBundleIdentifier
14901491
) {
14911492
this.$logger.warn(
1492-
"[WARNING]: The CFBundleIdentifier key inside the 'Info.plist' will be overriden by the 'id' inside 'package.json'."
1493+
`[WARNING]: The CFBundleIdentifier key inside the 'Info.plist' will be overriden by the 'id' set inside the "${CONFIG_FILE_NAME_DISPLAY}".`
14931494
);
14941495
}
14951496
}

0 commit comments

Comments
 (0)