This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 3 files changed +17
-0
lines changed
shell/platform/darwin/ios/framework/Source
testing/ios/IosUnitTests/App 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 167
167
settings.enable_impeller = enableImpeller.boolValue ;
168
168
}
169
169
170
+ NSNumber * enableTraceSystrace = [mainBundle objectForInfoDictionaryKey: @" FLTTraceSystrace" ];
171
+ // Change the default only if the option is present.
172
+ if (enableTraceSystrace != nil ) {
173
+ settings.trace_systrace = enableTraceSystrace.boolValue ;
174
+ }
175
+
170
176
// Leak Dart VM settings, set whether leave or clean up the VM after the last shell shuts down.
171
177
NSNumber * leakDartVM = [mainBundle objectForInfoDictionaryKey: @" FLTLeakDartVM" ];
172
178
// It will change the default leak_vm value in settings only if the key exists.
Original file line number Diff line number Diff line change @@ -71,6 +71,15 @@ - (void)testEnableImpellerSettingIsCorrectlyParsed {
71
71
XCTAssertEqual (settings.enable_impeller , NO );
72
72
}
73
73
74
+ - (void )testEnableTraceSystraceSettingIsCorrectlyParsed {
75
+ NSBundle * mainBundle = [NSBundle mainBundle ];
76
+ NSNumber * enableTraceSystrace = [mainBundle objectForInfoDictionaryKey: @" FLTTraceSystrace" ];
77
+ XCTAssertNotNil (enableTraceSystrace);
78
+ XCTAssertEqual (enableTraceSystrace.boolValue , NO );
79
+ auto settings = FLTDefaultSettingsForBundle ();
80
+ XCTAssertEqual (settings.trace_systrace , NO );
81
+ }
82
+
74
83
- (void )testEmptySettingsAreCorrect {
75
84
XCTAssertFalse ([FlutterDartProject allowsArbitraryLoads: [[NSDictionary alloc ] init ]]);
76
85
XCTAssertEqualObjects (@" " , [FlutterDartProject domainNetworkPolicy: [[NSDictionary alloc ] init ]]);
Original file line number Diff line number Diff line change 48
48
<false />
49
49
<key >FLTEnableImpeller </key >
50
50
<false />
51
+ <key >FLTTraceSystrace </key >
52
+ <false />
51
53
<key >UIRequiredDeviceCapabilities </key >
52
54
<array >
53
55
<string >armv7 </string >
You can’t perform that action at this time.
0 commit comments