Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

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.gradle
similarity index 100%
rename from console/android/build.gradle.disabled
rename to console/android/build.gradle
diff --git a/settings.gradle b/settings.gradle
index 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.gradle
String 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