MCPcopy
hub / github.com/ionic-team/capacitor / doctorAndroid

Function doctorAndroid

cli/src/android/doctor.ts:12–23  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

10import { readXML } from '../util/xml';
11
12export async function doctorAndroid(config: Config): Promise<void> {
13 try {
14 await check([checkAndroidInstalled, () => checkGradlew(config), () => checkAppSrcDirs(config)]);
15 logSuccess('Android looking great! 👌');
16 } catch (e: any) {
17 if (!isFatal(e)) {
18 fatal(e.stack ?? e);
19 }
20
21 throw e;
22 }
23}
24
25async function checkAppSrcDirs(config: Config): Promise<string | null> {
26 if (!(await pathExists(config.android.appDirAbs))) {

Callers 1

doctorFunction · 0.90

Calls 6

checkFunction · 0.90
logSuccessFunction · 0.90
isFatalFunction · 0.90
fatalFunction · 0.90
checkGradlewFunction · 0.85
checkAppSrcDirsFunction · 0.85

Tested by

no test coverage detected