@@ -106,7 +106,7 @@ declare module Mobile {
106
106
}
107
107
108
108
interface IiOSDevice extends IDevice {
109
- getDebugSocket ( appId : string , projectName : string , ensureAppStarted ?: boolean ) : Promise < any > ;
109
+ getDebugSocket ( appId : string , projectName : string , projectDir : string , ensureAppStarted ?: boolean ) : Promise < any > ;
110
110
destroyDebugSocket ( appId : string ) : Promise < void > ;
111
111
openDeviceLogStream ( options ?: IiOSLogStreamOptions ) : Promise < void > ;
112
112
destroyAllSockets ( ) : Promise < void > ;
@@ -145,6 +145,7 @@ declare module Mobile {
145
145
device : Mobile . IDevice ;
146
146
getDeviceProjectRootPath ( ) : Promise < string > ;
147
147
deviceSyncZipPath ?: string ;
148
+ projectDir : string
148
149
}
149
150
150
151
interface ILogcatStartOptions {
@@ -192,12 +193,19 @@ declare module Mobile {
192
193
* @param {string } projectName The project name of the currently running application for which we need the logs.
193
194
*/
194
195
setProjectNameForDevice ( deviceIdentifier : string , projectName : string ) : void ;
196
+
197
+ /**
198
+ * Sets the project name of the application on the specified device.
199
+ * @param {string } deviceIdentifier The unique identifier of the device.
200
+ * @param {string } projectDir The project dir of the currently running application for which we need the logs.
201
+ */
202
+ setProjectDirForDevice ( deviceIdentifier : string , projectDir : string ) : void ;
195
203
}
196
204
197
205
/**
198
206
* Describes different options for filtering device logs.
199
207
*/
200
- interface IDeviceLogOptions extends IDictionary < string | boolean > {
208
+ interface IDeviceLogOptions extends IDictionary < string | boolean > , Partial < IProjectDir > {
201
209
/**
202
210
* Process id of the application on the device.
203
211
*/
@@ -212,7 +220,6 @@ declare module Mobile {
212
220
* The project name.
213
221
*/
214
222
projectName ?: string ;
215
-
216
223
}
217
224
218
225
/**
@@ -247,6 +254,13 @@ declare module Mobile {
247
254
filterData ( platform : string , data : string , deviceLogOptions : Mobile . IDeviceLogOptions ) : string ;
248
255
}
249
256
257
+ /**
258
+ * Replaces file paths in device log with their original location
259
+ */
260
+ interface ILogSourceMapService {
261
+ replaceWithOriginalFileLocations ( platform : string , messageData : string , loggingOptions : Mobile . IDeviceLogOptions ) : string
262
+ }
263
+
250
264
/**
251
265
* Describes filtering logic for specific platform (Android, iOS).
252
266
*/
@@ -266,7 +280,7 @@ declare module Mobile {
266
280
full : string ;
267
281
}
268
282
269
- interface IApplicationData {
283
+ interface IApplicationData extends IProjectDir {
270
284
appId : string ;
271
285
projectName : string ;
272
286
justLaunch ?: boolean ;
@@ -462,9 +476,9 @@ declare module Mobile {
462
476
isiOSDevice ( device : Mobile . IDevice ) : boolean ;
463
477
isiOSSimulator ( device : Mobile . IDevice ) : boolean ;
464
478
isOnlyiOSSimultorRunning ( ) : boolean ;
465
- isAppInstalledOnDevices ( deviceIdentifiers : string [ ] , appIdentifier : string , framework : string ) : Promise < IAppInstalledInfo > [ ] ;
479
+ isAppInstalledOnDevices ( deviceIdentifiers : string [ ] , appIdentifier : string , framework : string , projectDir : string ) : Promise < IAppInstalledInfo > [ ] ;
466
480
setLogLevel ( logLevel : string , deviceIdentifier ?: string ) : void ;
467
- deployOnDevices ( deviceIdentifiers : string [ ] , packageFile : string , packageName : string , framework : string ) : Promise < void > [ ] ;
481
+ deployOnDevices ( deviceIdentifiers : string [ ] , packageFile : string , packageName : string , framework : string , projectDir : string ) : Promise < void > [ ] ;
468
482
getDeviceByIdentifier ( identifier : string ) : Mobile . IDevice ;
469
483
mapAbstractToTcpPort ( deviceIdentifier : string , appIdentifier : string , framework : string ) : Promise < string > ;
470
484
getDebuggableApps ( deviceIdentifiers : string [ ] ) : Promise < Mobile . IDeviceApplicationInformation [ ] > [ ] ;
0 commit comments