(expoConfig, rawProps)
| 35 | ); |
| 36 | |
| 37 | const withAndroidAssets: ConfigPlugin = (expoConfig, rawProps) => |
| 38 | Expo.withDangerousMod(expoConfig, [ |
| 39 | "android", |
| 40 | async (config) => { |
| 41 | const { platformProjectRoot, projectRoot } = config.modRequest; |
| 42 | const props = await transformProps(projectRoot, rawProps); |
| 43 | const addon = requireAddon(props); |
| 44 | |
| 45 | const androidOutputPath = path.resolve( |
| 46 | platformProjectRoot, |
| 47 | "app", |
| 48 | "src", |
| 49 | "main", |
| 50 | "res", |
| 51 | ); |
| 52 | |
| 53 | await writeAndroidAssets({ androidOutputPath, props }); |
| 54 | await addon?.writeAndroidAssets({ androidOutputPath, props }); |
| 55 | |
| 56 | return config; |
| 57 | }, |
| 58 | ]); |
| 59 | |
| 60 | const withAndroidManifest: ConfigPlugin = (expoConfig) => |
| 61 | Expo.withAndroidManifest(expoConfig, (config) => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…