Skip to content

Commit a93e4a4

Browse files
Update ios-device-lib
Update `ios-device-lib` to 0.4.3. The new version includes a fix for long living processes where detaching iOS device causes a huge memory consuption and core dump.
1 parent 0f8c9e4 commit a93e4a4

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

PublicAPI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ interface IExtensionData {
9494
```
9595
9696
### installExtension
97-
Installs specified extension and loads it in the current process, so the functionality that it adds can be used immediately.
97+
Installs specified extension.
9898
9999
* Definition:
100100
```TypeScript
101101
/**
102-
* Installs and loads specified extension.
102+
* Installs a specified extension.
103103
* @param {string} extensionName Name of the extension to be installed. It may contain version as well, i.e. myPackage, myPackage@1.0.0, myPackage.tgz, https://github.com/myOrganization/myPackage/tarball/master, https://github.com/myOrganization/myPackage etc.
104104
* @returns {Promise<IExtensionData>} Information about installed extensions.
105105
*/
@@ -186,7 +186,7 @@ Loads a specified extension.
186186
* Definition
187187
```TypeScript
188188
/**
189-
* Loads a single extension, so their methods and commands can be used from CLI.
189+
* Loads a single extension, so its methods and commands can be used from CLI.
190190
* @param {string} extensionName Name of the extension to be installed. It may contain version as well, i.e. myPackage, myPackage@1.0.0
191191
* A Promise is returned. It will be rejected in case the extension cannot be loaded.
192192
* @returns {Promise<IExtensionData>} Promise, resolved with IExtensionData.

lib/commands/extensibility/install-extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export class InstallExtensionCommand implements ICommand {
66
public async execute(args: string[]): Promise<void> {
77
const extensionData = await this.$extensibilityService.installExtension(args[0]);
88
this.$logger.info(`Successfully installed extension ${extensionData.extensionName}.`);
9+
10+
await this.$extensibilityService.loadExtension(extensionData.extensionName);
11+
this.$logger.info(`Successfully loaded extension ${extensionData.extensionName}.`);
912
}
1013

1114
allowedParameters: ICommandParameter[] = [this.$stringParameterBuilder.createMandatoryParameter("You have to provide a valid name for extension that you want to install.")];

lib/definitions/extensibility.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface IExtensionData {
1313
*/
1414
interface IExtensibilityService {
1515
/**
16-
* Installs and loads specified extension.
16+
* Installs a specified extension.
1717
* @param {string} extensionName Name of the extension to be installed. It may contain version as well, i.e. myPackage, myPackage@1.0.0,
1818
* myPackage.tgz, https://github.com/myOrganization/myPackage/tarball/master, https://github.com/myOrganization/myPackage, etc.
1919
* @returns {Promise<IExtensionData>} Information about installed extensions.
@@ -36,7 +36,7 @@ interface IExtensibilityService {
3636
loadExtensions(): Promise<IExtensionData>[];
3737

3838
/**
39-
* Loads a single extension, so their methods and commands can be used from CLI.
39+
* Loads a single extension, so its methods and commands can be used from CLI.
4040
* @param {string} extensionName Name of the extension to be installed. It may contain version as well, i.e. myPackage, myPackage@1.0.0
4141
* A Promise is returned. It will be rejected in case the extension cannot be loaded.
4242
* @returns {Promise<IExtensionData>} Promise, resolved with IExtensionData.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"glob": "^7.0.3",
4343
"iconv-lite": "0.4.11",
4444
"inquirer": "0.9.0",
45-
"ios-device-lib": "0.4.2",
45+
"ios-device-lib": "0.4.3",
4646
"ios-mobileprovision-finder": "1.0.9",
4747
"ios-sim-portable": "~3.0.0",
4848
"lockfile": "1.0.1",

0 commit comments

Comments
 (0)