Skip to content

Commit f7c761f

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Run application on device after deploying it
1 parent 73b9aff commit f7c761f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/services/platform-service.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class PlatformService implements IPlatformService {
193193
? this.debugOnEmulator(platform)
194194
: this.debugOnDevice(platform);
195195

196-
return ret;
196+
return ret;
197197
}
198198

199199
public debugOnEmulator(platform: string): IFuture<void> {
@@ -272,7 +272,13 @@ export class PlatformService implements IPlatformService {
272272
this.$logger.out("Using ", packageFile);
273273

274274
this.$devicesServices.initialize({platform: platform, deviceId: options.device}).wait();
275-
var action = (device: Mobile.IDevice): IFuture<void> => { return device.deploy(packageFile, this.$projectData.projectId); };
275+
var action = (device: Mobile.IDevice): IFuture<void> => {
276+
return (() => {
277+
device.deploy(packageFile, this.$projectData.projectId).wait();
278+
device.runApplication(this.$projectData.projectId).wait();
279+
280+
}).future<void>()();
281+
};
276282
this.$devicesServices.execute(action).wait();
277283

278284
}).future<void>()();

0 commit comments

Comments
 (0)