fix: Distribute Android code as source (#234)

* Build Android as source

* more reliably find `enableHermes`
This commit is contained in:
Marc Rousavy
2021-07-08 10:52:14 +02:00
committed by GitHub
parent 349b1146b0
commit b2f3c08a07
8 changed files with 8 additions and 108 deletions

View File

@@ -4,12 +4,12 @@ import java.nio.file.Paths
def reactNative = new File("$projectDir/../node_modules/react-native")
def FOR_HERMES = "";
if(findProject(':app')) {
FOR_HERMES = project(':app').ext.react.enableHermes;
} else {
FOR_HERMES = System.getenv("FOR_HERMES") == "True";
}
def FOR_HERMES = System.getenv("FOR_HERMES") == "True";
rootProject.getSubprojects().forEach({project ->
if (project.plugins.hasPlugin("com.android.application")) {
FOR_HERMES = project.ext.react.enableHermes;
}
})
/**
* Finds the path of the installed npm package with the given name using Node's