diff --git a/build.gradle b/build.gradle index 8d8bd25c9..1cb069a56 100644 --- a/build.gradle +++ b/build.gradle @@ -116,6 +116,15 @@ String findNDK() { } } +boolean ndkExists() { + String ndkCommandPath = findNDK() + if (ndkCommandPath != null && new File(ndkCommandPath).exists()) { + return true + } else { + return false + } +} + //class IncrementalReverseTask extends DefaultTask { // @InputDirectory // def File inputDir