From c965e4066d675a004e12dd50f22892ad25ea68f7 Mon Sep 17 00:00:00 2001 From: iwgeric Date: Mon, 24 Mar 2014 19:35:44 -0400 Subject: [PATCH] Add method to check for existance of NDK --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) 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