|
| 1 | +/** |
| 2 | + * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + * |
| 7 | + * @flow |
| 8 | + * @format |
| 9 | + * @oncall react_native |
| 10 | + */ |
| 11 | + |
| 12 | +/*:: |
| 13 | +export type Folder = RegExp; |
| 14 | +
|
| 15 | +export type Files = $ReadOnly<{ |
| 16 | + headers: $ReadOnlyArray<string>, |
| 17 | + sources: $ReadOnlyArray<string>, |
| 18 | + resources?: $ReadOnlyArray<string>, |
| 19 | + // Relative path from target root to where the header files should be copied. |
| 20 | + // Can be used to ensure header search paths like <double-conversion/double-conversion.h> |
| 21 | + // are correctly resolved. |
| 22 | + headerTargetFolder?: string, |
| 23 | + headerSkipFolderNames?: string, |
| 24 | +}>; |
| 25 | +
|
| 26 | +export type Define = $ReadOnly<{ |
| 27 | + name: string, |
| 28 | + value?: string, |
| 29 | +}>; |
| 30 | +
|
| 31 | +export type Settings = $ReadOnly<{ |
| 32 | + headerSearchPaths?: $ReadOnlyArray<string>, |
| 33 | + defines?: $ReadOnlyArray<Define>, |
| 34 | + compilerFlags?: $ReadOnlyArray<string>, |
| 35 | + linkedLibraries?: $ReadOnlyArray<string>, |
| 36 | + publicHeaderFiles: string, |
| 37 | + linkerSettings?: $ReadOnlyArray<string> |
| 38 | +}>; |
| 39 | +
|
| 40 | +export type Dependency = $ReadOnly<{ |
| 41 | + name: string, |
| 42 | + version: string, |
| 43 | + url: URL, |
| 44 | + prepareScript?: string, |
| 45 | + files: Files, |
| 46 | + settings: Settings, |
| 47 | + disabled?: boolean, |
| 48 | + dependencies?: $ReadOnlyArray<string>, |
| 49 | +}>; |
| 50 | +
|
| 51 | +export type Platform = |
| 52 | + 'iOS' | |
| 53 | + 'iOS Simulator' | |
| 54 | + 'macOS' | |
| 55 | + 'macOS,variant=Mac Catalyst' | |
| 56 | + 'tvOS' | |
| 57 | + 'tvOS Simulator' | |
| 58 | + 'visionOS' | |
| 59 | + 'visionOS Simulator'; |
| 60 | +*/ |
| 61 | + |
| 62 | +module.exports = {}; |
0 commit comments