@@ -106,7 +106,7 @@ declare module Mobile {
106106 }
107107
108108 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 > ;
110110 destroyDebugSocket ( appId : string ) : Promise < void > ;
111111 openDeviceLogStream ( options ?: IiOSLogStreamOptions ) : Promise < void > ;
112112 destroyAllSockets ( ) : Promise < void > ;
@@ -145,6 +145,7 @@ declare module Mobile {
145145 device : Mobile . IDevice ;
146146 getDeviceProjectRootPath ( ) : Promise < string > ;
147147 deviceSyncZipPath ?: string ;
148+ projectDir : string
148149 }
149150
150151 interface ILogcatStartOptions {
@@ -192,12 +193,19 @@ declare module Mobile {
192193 * @param {string } projectName The project name of the currently running application for which we need the logs.
193194 */
194195 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 ;
195203 }
196204
197205 /**
198206 * Describes different options for filtering device logs.
199207 */
200- interface IDeviceLogOptions extends IDictionary < string | boolean > {
208+ interface IDeviceLogOptions extends IDictionary < string | boolean > , Partial < IProjectDir > {
201209 /**
202210 * Process id of the application on the device.
203211 */
@@ -212,7 +220,6 @@ declare module Mobile {
212220 * The project name.
213221 */
214222 projectName ?: string ;
215-
216223 }
217224
218225 /**
@@ -247,6 +254,13 @@ declare module Mobile {
247254 filterData ( platform : string , data : string , deviceLogOptions : Mobile . IDeviceLogOptions ) : string ;
248255 }
249256
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+
250264 /**
251265 * Describes filtering logic for specific platform (Android, iOS).
252266 */
@@ -266,7 +280,7 @@ declare module Mobile {
266280 full : string ;
267281 }
268282
269- interface IApplicationData {
283+ interface IApplicationData extends IProjectDir {
270284 appId : string ;
271285 projectName : string ;
272286 justLaunch ?: boolean ;
@@ -462,9 +476,9 @@ declare module Mobile {
462476 isiOSDevice ( device : Mobile . IDevice ) : boolean ;
463477 isiOSSimulator ( device : Mobile . IDevice ) : boolean ;
464478 isOnlyiOSSimultorRunning ( ) : boolean ;
465- isAppInstalledOnDevices ( deviceIdentifiers : string [ ] , appIdentifier : string , framework : string ) : Promise < IAppInstalledInfo > [ ] ;
479+ isAppInstalledOnDevices ( deviceIdentifiers : string [ ] , appIdentifier : string , framework : string , projectDir : string ) : Promise < IAppInstalledInfo > [ ] ;
466480 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 > [ ] ;
468482 getDeviceByIdentifier ( identifier : string ) : Mobile . IDevice ;
469483 mapAbstractToTcpPort ( deviceIdentifier : string , appIdentifier : string , framework : string ) : Promise < string > ;
470484 getDebuggableApps ( deviceIdentifiers : string [ ] ) : Promise < Mobile . IDeviceApplicationInformation [ ] > [ ] ;
0 commit comments