({ flavor }: { flavor: string })
| 52 | } |
| 53 | |
| 54 | const getAndroidOutputPath = ({ flavor }: { flavor: string }) => { |
| 55 | const sourceDir = path.join(projectRoot, "android"); |
| 56 | |
| 57 | if (!fs.existsSync(sourceDir)) { |
| 58 | return; |
| 59 | } |
| 60 | |
| 61 | const appDir = path.join(sourceDir, "app"); |
| 62 | |
| 63 | const androidOutputPath = path.resolve( |
| 64 | sourceDir, |
| 65 | fs.existsSync(appDir) ? "app" : "", |
| 66 | "src", |
| 67 | flavor, |
| 68 | "res", |
| 69 | ); |
| 70 | |
| 71 | if (hfs.exists(androidOutputPath)) { |
| 72 | return androidOutputPath; |
| 73 | } |
| 74 | |
| 75 | log.warn( |
| 76 | `No ${path.relative( |
| 77 | cwd, |
| 78 | androidOutputPath, |
| 79 | )} directory found. Skipping Android assets generation…`, |
| 80 | ); |
| 81 | }; |
| 82 | |
| 83 | const getIOSOutputPath = () => { |
| 84 | const podfile = glob |
no outgoing calls
no test coverage detected
searching dependent graphs…