This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
shell/platform/darwin/ios/framework/Source
testing/ios/IosUnitTests/App Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 167167 settings.enable_impeller = enableImpeller.boolValue ;
168168 }
169169
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+
170176 // Leak Dart VM settings, set whether leave or clean up the VM after the last shell shuts down.
171177 NSNumber * leakDartVM = [mainBundle objectForInfoDictionaryKey: @" FLTLeakDartVM" ];
172178 // 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 {
7171 XCTAssertEqual (settings.enable_impeller , NO );
7272}
7373
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+
7483- (void )testEmptySettingsAreCorrect {
7584 XCTAssertFalse ([FlutterDartProject allowsArbitraryLoads: [[NSDictionary alloc ] init ]]);
7685 XCTAssertEqualObjects (@" " , [FlutterDartProject domainNetworkPolicy: [[NSDictionary alloc ] init ]]);
Original file line number Diff line number Diff line change 4848 <false />
4949 <key >FLTEnableImpeller </key >
5050 <false />
51+ <key >FLTTraceSystrace </key >
52+ <false />
5153 <key >UIRequiredDeviceCapabilities </key >
5254 <array >
5355 <string >armv7 </string >
You can’t perform that action at this time.
0 commit comments