UNPKG

@react-native/core-cli-utils

Version:
42 lines (36 loc) 841 B
/** * 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>, }, };