Skip to content

Commit ae48b95

Browse files
committed
fixup! fix(android): fix codegen not being applied correctly
1 parent 6c2ab97 commit ae48b95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

android/app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ plugins {
1212

1313
if (isNewArchitectureEnabled(project)) {
1414
apply(plugin: "com.facebook.react")
15+
react {
16+
codegenDir = file(findNodeModulesPath("react-native-codegen", file(reactNativeDir)))
17+
reactNativeDir = file(reactNativeDir)
18+
}
1519
}
1620

1721
// `react-native run-android` is hard-coded to look for the output APK at a very
@@ -63,8 +67,6 @@ project.ext.react = [
6367
enableFlipper : getFlipperVersion(rootDir),
6468
enableHermes : true,
6569
enableNewArchitecture: isNewArchitectureEnabled(project),
66-
codegenDir : findNodeModulesPath("react-native-codegen", file(reactNativeDir)),
67-
reactNativeDir : reactNativeDir,
6870
]
6971

7072
project.ext.signingConfigs = getSigningConfigs()

0 commit comments

Comments
 (0)