@@ -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 /**
@@ -251,7 +258,7 @@ declare module Mobile {
251258 * Replaces file paths in device log with their original location
252259 */
253260 interface ILogSourceMapService {
254- replaceWithOriginalFileLocations ( platform : string , messageData : string ) : string
261+ replaceWithOriginalFileLocations ( platform : string , messageData : string , loggingOptions : Mobile . IDeviceLogOptions ) : string
255262 }
256263
257264 /**
@@ -273,7 +280,7 @@ declare module Mobile {
273280 full : string ;
274281 }
275282
276- interface IApplicationData {
283+ interface IApplicationData extends IProjectDir {
277284 appId : string ;
278285 projectName : string ;
279286 justLaunch ?: boolean ;
@@ -469,9 +476,9 @@ declare module Mobile {
469476 isiOSDevice ( device : Mobile . IDevice ) : boolean ;
470477 isiOSSimulator ( device : Mobile . IDevice ) : boolean ;
471478 isOnlyiOSSimultorRunning ( ) : boolean ;
472- isAppInstalledOnDevices ( deviceIdentifiers : string [ ] , appIdentifier : string , framework : string ) : Promise < IAppInstalledInfo > [ ] ;
479+ isAppInstalledOnDevices ( deviceIdentifiers : string [ ] , appIdentifier : string , framework : string , projectDir : string ) : Promise < IAppInstalledInfo > [ ] ;
473480 setLogLevel ( logLevel : string , deviceIdentifier ?: string ) : void ;
474- 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 > [ ] ;
475482 getDeviceByIdentifier ( identifier : string ) : Mobile . IDevice ;
476483 mapAbstractToTcpPort ( deviceIdentifier : string , appIdentifier : string , framework : string ) : Promise < string > ;
477484 getDebuggableApps ( deviceIdentifiers : string [ ] ) : Promise < Mobile . IDeviceApplicationInformation [ ] > [ ] ;
0 commit comments