Skip to content

Commit 9509158

Browse files
authored
fix: build architectures needed only for cpp projects (#753)
### Summary This PR adds an additional if statement for defining `reactNativeArchitectures` as its needed only for C++ projects. ### Test plan CI Green
1 parent 7f5fbc7 commit 9509158

File tree

1 file changed

+2
-0
lines changed
  • packages/create-react-native-library/templates/native-common/android

1 file changed

+2
-0
lines changed

packages/create-react-native-library/templates/native-common/android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ buildscript {
1414
}
1515
}
1616

17+
<% if (project.cpp) { -%>
1718
def reactNativeArchitectures() {
1819
def value = rootProject.getProperties().get("reactNativeArchitectures")
1920
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
2021
}
22+
<% } -%>
2123

2224
def isNewArchitectureEnabled() {
2325
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"

0 commit comments

Comments
 (0)