Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
26b65701
Commit
26b65701
authored
Feb 08, 2016
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS Sim: Wire in launch arguments to simctl
parent
c47775fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
device_ios.dart
packages/flutter_tools/lib/src/ios/device_ios.dart
+19
-4
No files found.
packages/flutter_tools/lib/src/ios/device_ios.dart
View file @
26b65701
...
...
@@ -19,6 +19,7 @@ import 'simulator.dart';
const
String
_ideviceinstallerInstructions
=
'To work with iOS devices, please install ideviceinstaller.
\n
'
'If you use homebrew, you can install it with "
\$
brew install ideviceinstaller".'
;
const
String
_flutterToolsFlagPrefix
=
"flutter_tools_"
;
class
IOSDeviceDiscovery
extends
DeviceDiscovery
{
List
<
Device
>
_devices
=
<
Device
>[];
...
...
@@ -303,8 +304,7 @@ class IOSSimulator extends Device {
int
debugPort:
observatoryDefaultPort
,
Map
<
String
,
dynamic
>
platformArgs
})
async
{
// TODO(chinmaygarde): Use checked, mainPath, route.
// TODO(devoncarew): Handle startPaused, debugPort.
// TODO(chinmaygarde): Use mainPath, route.
printTrace
(
'Building
${app.name}
for
$id
'
);
if
(
clearLogs
)
...
...
@@ -328,8 +328,23 @@ class IOSSimulator extends Device {
// Step 3: Install the updated bundle to the simulator
SimControl
.
install
(
id
,
path
.
absolute
(
bundle
.
path
));
// Step 4: Launch the updated application in the simulator
SimControl
.
launch
(
id
,
app
.
id
);
// Step 4: Prepare launch arguments
List
<
String
>
args
=
[];
if
(
checked
)
{
args
.
add
(
"--
${_flutterToolsFlagPrefix}
checked"
);
}
if
(
startPaused
)
{
args
.
add
(
"--
${_flutterToolsFlagPrefix}
startPaused"
);
}
if
(
debugPort
!=
observatoryDefaultPort
)
{
args
.
add
(
"--
${_flutterToolsFlagPrefix}
debugPort=
$debugPort
"
);
}
// Step 5: Launch the updated application in the simulator
SimControl
.
launch
(
id
,
app
.
id
,
args
);
printTrace
(
'Successfully started
${app.name}
on
$id
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment