(config: Config)
| 10 | import { readXML } from '../util/xml'; |
| 11 | |
| 12 | export 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 | |
| 25 | async function checkAppSrcDirs(config: Config): Promise<string | null> { |
| 26 | if (!(await pathExists(config.android.appDirAbs))) { |
no test coverage detected