Skip to content

Commit 19a1373

Browse files
committed
fix: fix build.gradle
1 parent 5193a0d commit 19a1373

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

packages/react-native-executorch/android/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ android {
104104
buildConfig true
105105
}
106106

107+
prefab {
108+
"react-native-executorch" {
109+
headers "src/main/cpp"
110+
}
111+
}
112+
107113
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
108114

109115
defaultConfig {
@@ -114,8 +120,8 @@ android {
114120
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all -fopenmp -static-openmp"
115121
abiFilters (*reactNativeArchitectures())
116122
arguments "-DANDROID_STL=c++_shared",
117-
"-DREACT_NATIVE_DIR=${toPlatformFileString(reactNativeRootDir.path)}"
118-
"-DBUILD_DIR=${project.buildDir}"
123+
"-DREACT_NATIVE_DIR=${toPlatformFileString(reactNativeRootDir.path)}",
124+
"-DBUILD_DIR=${project.buildDir}",
119125
"-DANDROID_TOOLCHAIN=clang"
120126
}
121127
}

0 commit comments

Comments
 (0)