Skip to content

Commit

Permalink
Improved messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc007 committed Jul 17, 2019
1 parent 8710d00 commit 7aa55f0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/src/orientation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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', [
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 7aa55f0

Please sign in to comment.