@react-native/core-cli-utils
Version:
React Native CLI library for Frameworks to build on
42 lines (36 loc) • 841 B
Flow
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import type { Task } from "./types";
import type { ExecaPromise } from "execa";
type AndroidBuildMode = "Debug" | "Release";
type Path = string;
type Args = $ReadOnlyArray<string>;
type Config = {
cwd: Path,
hermes?: boolean,
mode: AndroidBuildMode,
name: string,
newArchitecture?: boolean,
sdk?: Path,
};
//
// Android Tasks
//
declare export const tasks: (config: Config) => {
assemble: (...gradleArgs: Args) => {
run: Task<ExecaPromise>,
},
build: (...gradleArgs: Args) => {
run: Task<ExecaPromise>,
},
install: (...gradleArgs: Args) => {
run: Task<ExecaPromise>,
},
};