From 7aa55f003b2d7822f2287b9098df16426506f4a9 Mon Sep 17 00:00:00 2001 From: Maurice McCabe Date: Wed, 17 Jul 2019 10:45:49 -0700 Subject: [PATCH] Improved messaging --- lib/src/orientation.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/src/orientation.dart b/lib/src/orientation.dart index d57a564d..f28504e7 100644 --- a/lib/src/orientation.dart +++ b/lib/src/orientation.dart @@ -22,7 +22,7 @@ void changeDeviceOrientation(DeviceType deviceType, Orientation orientation, }; const sim_orientation_script = 'sim_orientation.scpt'; final _orientation = utils.getStringFromEnum(orientation); - print('_orientation=$_orientation'); + print('Setting orientation to $_orientation'); switch (deviceType) { case DeviceType.android: run.cmd('adb', [ @@ -38,10 +38,11 @@ void changeDeviceOrientation(DeviceType deviceType, Orientation orientation, break; case DeviceType.ios: // requires permission when run for first time - run.cmd('osascript', [ - '$scriptDir/$sim_orientation_script', - iosOrientations[_orientation] - ]); + run.cmd( + 'osascript', + ['$scriptDir/$sim_orientation_script', iosOrientations[_orientation]], + '.', + true); break; } }