100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Implement Android & iOS Console #17 add enableAndroidDevelopment variable to control android gradle import from root project directory
mhalline674419c10dc
diff --git a/console/android/build.gradle.disabled b/console/android/build.gradlesimilarity index 100%rename from console/android/build.gradle.disabledrename to console/android/build.gradlediff --git a/settings.gradle b/settings.gradleindex 4ab09d3ac..53731c211 100644--- a/settings.gradle+++ b/settings.gradle@@ -1,8 +1,12 @@rootProject.name = "openremote"-+boolean enableAndroidDevelopment = false// Include sub-projects dynamically, every directory with a build.gradleString rootDir = new File('.').canonicalPath-fileTree(dir: '.', include: '**/build.gradle').filter { it.parent != rootDir }.each {- String projectName = it.parent.replace(rootDir, "").replace("\\", ":").replace("/", ":")- include projectName-}\ No newline at end of file+fileTree(dir: '.', include: '**/build.gradle')+ .filter { it.parent != rootDir }+ .filter { !it.parent.endsWith("android") || enableAndroidDevelopment }+ .each {+ String projectName = it.parent.replace(rootDir, "").replace("\\", ":").replace("/", ":")+ println projectName+ include projectName+ }\ No newline at end of file