Skip to content

Commit 4499fb2

Browse files
authored
fix: fix type and mark deprecated as no usage for unused xcodeVersion and deprecated idb (#1072)
* fix: fix type and mark deprecated as no usage * chore: add deprecated for idb stuff as well * reverr unnecessary change
1 parent 29b017d commit 4499fb2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export interface AppleDevice {
9494
udid: string;
9595
simctl?: any;
9696
devicectl?: any;
97+
/** @deprecated We'll stop supporting idb */
9798
idb?: any;
9899
[key: string]: any;
99100
}

lib/webdriveragent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class WebDriverAgent {
3535
agentPath;
3636

3737
/**
38-
* @param {import('appium-xcode').XcodeVersion} xcodeVersion
38+
* @param {import('appium-xcode').XcodeVersion | undefined} xcodeVersion @deprecated Will be removed as no actual usage.
3939
* @param {import('./types').WebDriverAgentArgs} args
4040
* @param {import('@appium/types').AppiumLogger?} [log=null]
4141
*/
@@ -51,6 +51,7 @@ export class WebDriverAgent {
5151
this.iosSdkVersion = args.iosSdkVersion;
5252
this.host = args.host;
5353
this.isRealDevice = !!args.realDevice;
54+
/** @deprecated We'll stop supporting idb */
5455
this.idb = args.device.idb;
5556
this.wdaBundlePath = args.wdaBundlePath;
5657

@@ -539,6 +540,7 @@ export class WebDriverAgent {
539540
}
540541

541542
/**
543+
* @deprecated We'll stop using idb
542544
* @returns {Promise<{wdaBundleId: string, testBundleId: string, wdaBundlePath: string}>}
543545
*/
544546
async prepareWDA () {

lib/xcodebuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class XcodeBuild {
4646
xcodebuild;
4747

4848
/**
49-
* @param {import('appium-xcode').XcodeVersion} xcodeVersion
49+
* @param {import('appium-xcode').XcodeVersion | undefined} xcodeVersion @deprecated Will be removed as no actual usage.
5050
* @param {import('./types').AppleDevice} device
5151
* @param {import('./types').XcodeBuildArgs} args
5252
* @param {import('@appium/types').AppiumLogger | null} [log=null]

0 commit comments

Comments
 (0)