Enable building the plugin without having the Android SDK

This commit is contained in:
str4d
2017-05-07 13:00:45 +12:00
parent 6566ad1510
commit fbf5b43b9e

View File

@ -1 +1,11 @@
include 'crypto', 'core', 'webapp', 'android'
include 'crypto', 'core', 'webapp'
def localPropsFile = new File('local.properties')
if (localPropsFile.canRead()) {
def Properties props = new Properties()
props.load(new FileInputStream(localPropsFile))
if (props != null && props.containsKey('sdk.dir')) {
include 'android'
}
}