MCPcopy Index your code
hub / github.com/zoontek/react-native-bootsplash / getAndroidOutputPath

Function getAndroidOutputPath

src/extras/generate.ts:54–81  ·  view source on GitHub ↗
({ flavor }: { flavor: string })

Source from the content-addressed store, hash-verified

52}
53
54const 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
83const getIOSOutputPath = () => {
84 const podfile = glob

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…