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 173
173
settings.trace_systrace = enableTraceSystrace.boolValue ;
174
174
}
175
175
176
+ NSNumber * enableDartProfiling = [mainBundle objectForInfoDictionaryKey: @" FLTEnableDartProfiling" ];
177
+ // Change the default only if the option is present.
178
+ if (enableDartProfiling != nil ) {
179
+ settings.enable_dart_profiling = enableDartProfiling.boolValue ;
180
+ }
181
+
176
182
// Leak Dart VM settings, set whether leave or clean up the VM after the last shell shuts down.
177
183
NSNumber * leakDartVM = [mainBundle objectForInfoDictionaryKey: @" FLTLeakDartVM" ];
178
184
// 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 @@ -80,6 +80,15 @@ - (void)testEnableTraceSystraceSettingIsCorrectlyParsed {
80
80
XCTAssertEqual (settings.trace_systrace , NO );
81
81
}
82
82
83
+ - (void )testEnableDartProflingSettingIsCorrectlyParsed {
84
+ NSBundle * mainBundle = [NSBundle mainBundle ];
85
+ NSNumber * enableTraceSystrace = [mainBundle objectForInfoDictionaryKey: @" FLTEnableDartProfiling" ];
86
+ XCTAssertNotNil (enableTraceSystrace);
87
+ XCTAssertEqual (enableTraceSystrace.boolValue , NO );
88
+ auto settings = FLTDefaultSettingsForBundle ();
89
+ XCTAssertEqual (settings.trace_systrace , NO );
90
+ }
91
+
83
92
- (void )testEmptySettingsAreCorrect {
84
93
XCTAssertFalse ([FlutterDartProject allowsArbitraryLoads: [[NSDictionary alloc ] init ]]);
85
94
XCTAssertEqualObjects (@" " , [FlutterDartProject domainNetworkPolicy: [[NSDictionary alloc ] init ]]);
Original file line number Diff line number Diff line change 50
50
<false />
51
51
<key >FLTTraceSystrace </key >
52
52
<false />
53
+ <key >FLTEnableDartProfiling </key >
54
+ <false />
53
55
<key >UIRequiredDeviceCapabilities </key >
54
56
<array >
55
57
<string >armv7 </string >
You can’t perform that action at this time.
0 commit comments