Flutter Engine
The Flutter Engine
FlutterDartProject_Internal.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
7
8#include "flutter/common/settings.h"
9#include "flutter/runtime/platform_data.h"
10#include "flutter/shell/common/engine.h"
11#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterDartProject.h"
12#import "flutter/shell/platform/darwin/common/framework/Source/FlutterNSBundleUtils.h"
13
15
16flutter::Settings FLTDefaultSettingsForBundle(NSBundle* _Nullable bundle = nil,
17 NSProcessInfo* _Nullable processInfoOrNil = nil);
18
19@interface FlutterDartProject ()
20
21@property(nonatomic, readonly) BOOL isWideGamutEnabled;
22@property(nonatomic, readonly) BOOL isImpellerEnabled;
23
24/**
25 * This is currently used for *only for tests* to override settings.
26 */
27- (instancetype)initWithSettings:(const flutter::Settings&)settings;
28- (const flutter::Settings&)settings;
29- (const flutter::PlatformData)defaultPlatformData;
30
31- (flutter::RunConfiguration)runConfiguration;
32- (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil;
33- (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil
34 libraryOrNil:(nullable NSString*)dartLibraryOrNil;
35- (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil
36 libraryOrNil:(nullable NSString*)dartLibraryOrNil
37 entrypointArgs:
38 (nullable NSArray<NSString*>*)entrypointArgs;
39
40+ (NSString*)flutterAssetsName:(NSBundle*)bundle;
41+ (NSString*)domainNetworkPolicy:(NSDictionary*)appTransportSecurity;
42+ (bool)allowsArbitraryLoads:(NSDictionary*)appTransportSecurity;
43
44@end
45
47
48#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
#define NS_ASSUME_NONNULL_BEGIN
Definition: FlutterMacros.h:19
#define NS_ASSUME_NONNULL_END
Definition: FlutterMacros.h:20
NS_ASSUME_NONNULL_BEGIN flutter::Settings FLTDefaultSettingsForBundle(NSBundle *_Nullable bundle=nil, NSProcessInfo *_Nullable processInfoOrNil=nil)
int BOOL
Definition: windows_types.h:37