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
8d9e0d4b
Unverified
Commit
8d9e0d4b
authored
Oct 08, 2020
by
Dan Field
Committed by
GitHub
Oct 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respect --enable-software-rendering flag on iOS simulators (#67576)
parent
1e0007f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+1
-0
simulators_test.dart
...flutter_tools/test/general.shard/ios/simulators_test.dart
+23
-0
No files found.
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
8d9e0d4b
...
...
@@ -423,6 +423,7 @@ class IOSSimulator extends Device {
'--enable-checked-mode'
,
'--verify-entry-points'
,
],
if
(
debuggingOptions
.
enableSoftwareRendering
)
'--enable-software-rendering'
,
if
(
debuggingOptions
.
startPaused
)
'--start-paused'
,
if
(
debuggingOptions
.
disableServiceAuthCodes
)
'--disable-service-auth-codes'
,
if
(
debuggingOptions
.
skiaDeterministicRendering
)
'--skia-deterministic-rendering'
,
...
...
packages/flutter_tools/test/general.shard/ios/simulators_test.dart
View file @
8d9e0d4b
...
...
@@ -910,6 +910,29 @@ Dec 20 17:04:32 md32-11-vm1 Another App[88374]: Ignore this text'''
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
any
(),
});
testUsingContext
(
'startApp respects the enable software rendering flag'
,
()
async
{
final
IOSSimulator
device
=
IOSSimulator
(
'x'
,
name:
'iPhone SE'
,
simulatorCategory:
'iOS 11.2'
,
simControl:
simControl
,
xcode:
mockXcode
,
);
final
Directory
mockDir
=
globals
.
fs
.
currentDirectory
;
final
IOSApp
package
=
PrebuiltIOSApp
(
projectBundleId:
'incorrect'
,
bundleName:
'name'
,
bundleDir:
mockDir
);
const
BuildInfo
mockInfo
=
BuildInfo
(
BuildMode
.
debug
,
'flavor'
,
treeShakeIcons:
false
);
final
DebuggingOptions
mockOptions
=
DebuggingOptions
.
enabled
(
mockInfo
,
enableSoftwareRendering:
true
);
await
device
.
startApp
(
package
,
prebuiltApplication:
true
,
debuggingOptions:
mockOptions
);
verify
(
simControl
.
launch
(
any
,
any
,
captureAny
)).
captured
.
contains
(
'--enable-software-rendering'
);
},
overrides:
<
Type
,
Generator
>{
PlistParser:
()
=>
MockPlistUtils
(),
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
any
(),
});
});
group
(
'IOSDevice.isSupportedForProject'
,
()
{
...
...
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