UNPKG

@react-native/core-cli-utils

Version:
30 lines (28 loc) 815 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. * * * @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; }; export declare const tasks: (config: Config) => { assemble: (...gradleArgs: Args) => { run: Task<ExecaPromise> }; build: (...gradleArgs: Args) => { run: Task<ExecaPromise> }; install: (...gradleArgs: Args) => { run: Task<ExecaPromise> }; }; export declare type tasks = typeof tasks;