• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
6 #define SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
7 
8 #import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterDartProject.h"
9 
10 #include <vector>
11 
12 /**
13  * Provides access to data needed to construct a FlutterProjectArgs for the project.
14  */
15 @interface FlutterDartProject ()
16 
17 /**
18  * The path to the Flutter assets directory.
19  */
20 @property(nonatomic, readonly, nullable) NSString* assetsPath;
21 
22 /**
23  * The path to the ICU data file.
24  */
25 @property(nonatomic, readonly, nullable) NSString* ICUDataPath;
26 
27 /**
28  * The command line arguments array for the engine.
29  *
30  * WARNING: The pointers in this array are valid only until the next call to set `engineSwitches`.
31  * The returned vector should be used immediately, then discarded. It is returned this way for
32  * ease of use with FlutterProjectArgs.
33  */
34 @property(nonatomic, readonly) std::vector<const char*> argv;
35 
36 @end
37 
38 #endif  // SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_