From 2faa3274cb280f4b677b1efe6526dd19d7e0f02a Mon Sep 17 00:00:00 2001 From: Jeremy Silver Date: Thu, 19 Jan 2017 14:29:01 -0800 Subject: [PATCH] Fix issue #14 --- S01.01-Exercise-CreateLayout/build.gradle | 4 ++++ S01.01-Solution-CreateLayout/build.gradle | 4 ++++ S01.02-Exercise-AddWeatherList/build.gradle | 4 ++++ S01.02-Solution-AddWeatherList/build.gradle | 4 ++++ S02.01-Exercise-Networking/build.gradle | 4 ++++ S02.01-Solution-Networking/build.gradle | 4 ++++ S02.02-Exercise-Menus/build.gradle | 4 ++++ S02.02-Solution-Menus/build.gradle | 4 ++++ S02.03-Exercise-Polish/build.gradle | 4 ++++ S02.03-Solution-Polish/build.gradle | 4 ++++ S03.01-Exercise-RecyclerView/build.gradle | 4 ++++ S03.01-Solution-RecyclerView/build.gradle | 4 ++++ S03.02-Exercise-RecyclerViewClickHandling/build.gradle | 4 ++++ S03.02-Solution-RecyclerViewClickHandling/build.gradle | 4 ++++ S04.01-Exercise-LaunchNewActivity/build.gradle | 4 ++++ S04.01-Solution-LaunchNewActivity/build.gradle | 4 ++++ S04.02-Exercise-DisplayDayForecast/build.gradle | 4 ++++ S04.02-Solution-DisplayDayForecast/build.gradle | 4 ++++ S04.03-Exercise-AddMapAndSharing/build.gradle | 4 ++++ S04.03-Solution-AddMapAndSharing/build.gradle | 4 ++++ S05.01-Exercise-AsyncTaskLoader/build.gradle | 4 ++++ S05.01-Solution-AsyncTaskLoader/build.gradle | 4 ++++ S06.01-Exercise-LaunchSettingsActivity/build.gradle | 4 ++++ S06.01-Solution-LaunchSettingsActivity/build.gradle | 4 ++++ S06.02-Exercise-SettingsFragment/build.gradle | 4 ++++ S06.02-Solution-SettingsFragment/build.gradle | 4 ++++ S06.03-Exercise-PolishingPreferences/build.gradle | 4 ++++ S06.03-Solution-PolishingPreferences/build.gradle | 4 ++++ S07.01-Exercise-DatabaseCreation/build.gradle | 4 ++++ S07.01-Solution-DatabaseCreation/build.gradle | 4 ++++ S07.02-Exercise-PreventInvalidInserts/build.gradle | 4 ++++ S07.02-Solution-PreventInvalidInserts/build.gradle | 4 ++++ S07.03-Exercise-ConflictResolutionPolicy/build.gradle | 4 ++++ S07.03-Solution-ConflictResolutionPolicy/build.gradle | 4 ++++ S09.01-Exercise-ContentProviderFoundation/build.gradle | 4 ++++ S09.01-Solution-ContentProviderFoundation/build.gradle | 4 ++++ S09.02-Exercise-ContentProviderBulkInsert/build.gradle | 4 ++++ S09.02-Solution-ContentProviderBulkInsert/build.gradle | 4 ++++ S09.03-Exercise-ContentProviderDelete/build.gradle | 4 ++++ S09.03-Solution-ContentProviderDelete/build.gradle | 4 ++++ S09.04-Exercise-UsingCursorLoader/build.gradle | 4 ++++ S09.04-Solution-UsingCursorLoader/build.gradle | 4 ++++ S09.05-Exercise-MoreDetails/build.gradle | 4 ++++ S09.05-Solution-MoreDetails/build.gradle | 4 ++++ S10.01-Exercise-SynchronizingTheWeather/build.gradle | 4 ++++ S10.01-Solution-SynchronizingTheWeather/build.gradle | 4 ++++ S10.02-Exercise-SmarterSyncing/build.gradle | 4 ++++ S10.02-Solution-SmarterSyncing/build.gradle | 4 ++++ S10.03-Exercise-FirebaseJobDispatcher/build.gradle | 4 ++++ S10.03-Solution-FirebaseJobDispatcher/build.gradle | 4 ++++ S10.04-Exercise-Notifications/build.gradle | 4 ++++ S10.04-Solution-Notifications/build.gradle | 4 ++++ S11.01-Exercise-NewListItemLayout/build.gradle | 4 ++++ S11.01-Solution-NewListItemLayout/build.gradle | 4 ++++ S11.02-Exercise-TodayListItem/build.gradle | 4 ++++ S11.02-Solution-TodayListItem/build.gradle | 4 ++++ S11.03-Exercise-DetailLayoutAndDataBinding/build.gradle | 4 ++++ S11.03-Solution-DetailLayoutAndDataBinding/build.gradle | 4 ++++ S12.01-Exercise-DimensionsColorsAndFonts/build.gradle | 4 ++++ S12.01-Solution-DimensionsColorsAndFonts/build.gradle | 4 ++++ S12.02-Exercise-Styles/build.gradle | 4 ++++ S12.02-Solution-Styles/build.gradle | 4 ++++ S12.03-Exercise-TouchSelectors/build.gradle | 4 ++++ S12.03-Solution-TouchSelectors/build.gradle | 4 ++++ S12.04-Exercise-ResourceQualifiers/build.gradle | 4 ++++ S12.04-Solution-ResourceQualifiers/build.gradle | 4 ++++ 66 files changed, 264 insertions(+) diff --git a/S01.01-Exercise-CreateLayout/build.gradle b/S01.01-Exercise-CreateLayout/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S01.01-Exercise-CreateLayout/build.gradle +++ b/S01.01-Exercise-CreateLayout/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S01.01-Solution-CreateLayout/build.gradle b/S01.01-Solution-CreateLayout/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S01.01-Solution-CreateLayout/build.gradle +++ b/S01.01-Solution-CreateLayout/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S01.02-Exercise-AddWeatherList/build.gradle b/S01.02-Exercise-AddWeatherList/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S01.02-Exercise-AddWeatherList/build.gradle +++ b/S01.02-Exercise-AddWeatherList/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S01.02-Solution-AddWeatherList/build.gradle b/S01.02-Solution-AddWeatherList/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S01.02-Solution-AddWeatherList/build.gradle +++ b/S01.02-Solution-AddWeatherList/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S02.01-Exercise-Networking/build.gradle b/S02.01-Exercise-Networking/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S02.01-Exercise-Networking/build.gradle +++ b/S02.01-Exercise-Networking/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S02.01-Solution-Networking/build.gradle b/S02.01-Solution-Networking/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S02.01-Solution-Networking/build.gradle +++ b/S02.01-Solution-Networking/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S02.02-Exercise-Menus/build.gradle b/S02.02-Exercise-Menus/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S02.02-Exercise-Menus/build.gradle +++ b/S02.02-Exercise-Menus/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S02.02-Solution-Menus/build.gradle b/S02.02-Solution-Menus/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S02.02-Solution-Menus/build.gradle +++ b/S02.02-Solution-Menus/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S02.03-Exercise-Polish/build.gradle b/S02.03-Exercise-Polish/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S02.03-Exercise-Polish/build.gradle +++ b/S02.03-Exercise-Polish/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S02.03-Solution-Polish/build.gradle b/S02.03-Solution-Polish/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S02.03-Solution-Polish/build.gradle +++ b/S02.03-Solution-Polish/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S03.01-Exercise-RecyclerView/build.gradle b/S03.01-Exercise-RecyclerView/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S03.01-Exercise-RecyclerView/build.gradle +++ b/S03.01-Exercise-RecyclerView/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S03.01-Solution-RecyclerView/build.gradle b/S03.01-Solution-RecyclerView/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S03.01-Solution-RecyclerView/build.gradle +++ b/S03.01-Solution-RecyclerView/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S03.02-Exercise-RecyclerViewClickHandling/build.gradle b/S03.02-Exercise-RecyclerViewClickHandling/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S03.02-Exercise-RecyclerViewClickHandling/build.gradle +++ b/S03.02-Exercise-RecyclerViewClickHandling/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S03.02-Solution-RecyclerViewClickHandling/build.gradle b/S03.02-Solution-RecyclerViewClickHandling/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S03.02-Solution-RecyclerViewClickHandling/build.gradle +++ b/S03.02-Solution-RecyclerViewClickHandling/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S04.01-Exercise-LaunchNewActivity/build.gradle b/S04.01-Exercise-LaunchNewActivity/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S04.01-Exercise-LaunchNewActivity/build.gradle +++ b/S04.01-Exercise-LaunchNewActivity/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S04.01-Solution-LaunchNewActivity/build.gradle b/S04.01-Solution-LaunchNewActivity/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S04.01-Solution-LaunchNewActivity/build.gradle +++ b/S04.01-Solution-LaunchNewActivity/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S04.02-Exercise-DisplayDayForecast/build.gradle b/S04.02-Exercise-DisplayDayForecast/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S04.02-Exercise-DisplayDayForecast/build.gradle +++ b/S04.02-Exercise-DisplayDayForecast/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S04.02-Solution-DisplayDayForecast/build.gradle b/S04.02-Solution-DisplayDayForecast/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S04.02-Solution-DisplayDayForecast/build.gradle +++ b/S04.02-Solution-DisplayDayForecast/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S04.03-Exercise-AddMapAndSharing/build.gradle b/S04.03-Exercise-AddMapAndSharing/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S04.03-Exercise-AddMapAndSharing/build.gradle +++ b/S04.03-Exercise-AddMapAndSharing/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S04.03-Solution-AddMapAndSharing/build.gradle b/S04.03-Solution-AddMapAndSharing/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S04.03-Solution-AddMapAndSharing/build.gradle +++ b/S04.03-Solution-AddMapAndSharing/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S05.01-Exercise-AsyncTaskLoader/build.gradle b/S05.01-Exercise-AsyncTaskLoader/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S05.01-Exercise-AsyncTaskLoader/build.gradle +++ b/S05.01-Exercise-AsyncTaskLoader/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S05.01-Solution-AsyncTaskLoader/build.gradle b/S05.01-Solution-AsyncTaskLoader/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S05.01-Solution-AsyncTaskLoader/build.gradle +++ b/S05.01-Solution-AsyncTaskLoader/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S06.01-Exercise-LaunchSettingsActivity/build.gradle b/S06.01-Exercise-LaunchSettingsActivity/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S06.01-Exercise-LaunchSettingsActivity/build.gradle +++ b/S06.01-Exercise-LaunchSettingsActivity/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S06.01-Solution-LaunchSettingsActivity/build.gradle b/S06.01-Solution-LaunchSettingsActivity/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S06.01-Solution-LaunchSettingsActivity/build.gradle +++ b/S06.01-Solution-LaunchSettingsActivity/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S06.02-Exercise-SettingsFragment/build.gradle b/S06.02-Exercise-SettingsFragment/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S06.02-Exercise-SettingsFragment/build.gradle +++ b/S06.02-Exercise-SettingsFragment/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S06.02-Solution-SettingsFragment/build.gradle b/S06.02-Solution-SettingsFragment/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S06.02-Solution-SettingsFragment/build.gradle +++ b/S06.02-Solution-SettingsFragment/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S06.03-Exercise-PolishingPreferences/build.gradle b/S06.03-Exercise-PolishingPreferences/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S06.03-Exercise-PolishingPreferences/build.gradle +++ b/S06.03-Exercise-PolishingPreferences/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S06.03-Solution-PolishingPreferences/build.gradle b/S06.03-Solution-PolishingPreferences/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S06.03-Solution-PolishingPreferences/build.gradle +++ b/S06.03-Solution-PolishingPreferences/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S07.01-Exercise-DatabaseCreation/build.gradle b/S07.01-Exercise-DatabaseCreation/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S07.01-Exercise-DatabaseCreation/build.gradle +++ b/S07.01-Exercise-DatabaseCreation/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S07.01-Solution-DatabaseCreation/build.gradle b/S07.01-Solution-DatabaseCreation/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S07.01-Solution-DatabaseCreation/build.gradle +++ b/S07.01-Solution-DatabaseCreation/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S07.02-Exercise-PreventInvalidInserts/build.gradle b/S07.02-Exercise-PreventInvalidInserts/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S07.02-Exercise-PreventInvalidInserts/build.gradle +++ b/S07.02-Exercise-PreventInvalidInserts/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S07.02-Solution-PreventInvalidInserts/build.gradle b/S07.02-Solution-PreventInvalidInserts/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S07.02-Solution-PreventInvalidInserts/build.gradle +++ b/S07.02-Solution-PreventInvalidInserts/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S07.03-Exercise-ConflictResolutionPolicy/build.gradle b/S07.03-Exercise-ConflictResolutionPolicy/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S07.03-Exercise-ConflictResolutionPolicy/build.gradle +++ b/S07.03-Exercise-ConflictResolutionPolicy/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S07.03-Solution-ConflictResolutionPolicy/build.gradle b/S07.03-Solution-ConflictResolutionPolicy/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S07.03-Solution-ConflictResolutionPolicy/build.gradle +++ b/S07.03-Solution-ConflictResolutionPolicy/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.01-Exercise-ContentProviderFoundation/build.gradle b/S09.01-Exercise-ContentProviderFoundation/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.01-Exercise-ContentProviderFoundation/build.gradle +++ b/S09.01-Exercise-ContentProviderFoundation/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.01-Solution-ContentProviderFoundation/build.gradle b/S09.01-Solution-ContentProviderFoundation/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.01-Solution-ContentProviderFoundation/build.gradle +++ b/S09.01-Solution-ContentProviderFoundation/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.02-Exercise-ContentProviderBulkInsert/build.gradle b/S09.02-Exercise-ContentProviderBulkInsert/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.02-Exercise-ContentProviderBulkInsert/build.gradle +++ b/S09.02-Exercise-ContentProviderBulkInsert/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.02-Solution-ContentProviderBulkInsert/build.gradle b/S09.02-Solution-ContentProviderBulkInsert/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.02-Solution-ContentProviderBulkInsert/build.gradle +++ b/S09.02-Solution-ContentProviderBulkInsert/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.03-Exercise-ContentProviderDelete/build.gradle b/S09.03-Exercise-ContentProviderDelete/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.03-Exercise-ContentProviderDelete/build.gradle +++ b/S09.03-Exercise-ContentProviderDelete/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.03-Solution-ContentProviderDelete/build.gradle b/S09.03-Solution-ContentProviderDelete/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.03-Solution-ContentProviderDelete/build.gradle +++ b/S09.03-Solution-ContentProviderDelete/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.04-Exercise-UsingCursorLoader/build.gradle b/S09.04-Exercise-UsingCursorLoader/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.04-Exercise-UsingCursorLoader/build.gradle +++ b/S09.04-Exercise-UsingCursorLoader/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.04-Solution-UsingCursorLoader/build.gradle b/S09.04-Solution-UsingCursorLoader/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.04-Solution-UsingCursorLoader/build.gradle +++ b/S09.04-Solution-UsingCursorLoader/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.05-Exercise-MoreDetails/build.gradle b/S09.05-Exercise-MoreDetails/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.05-Exercise-MoreDetails/build.gradle +++ b/S09.05-Exercise-MoreDetails/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S09.05-Solution-MoreDetails/build.gradle b/S09.05-Solution-MoreDetails/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S09.05-Solution-MoreDetails/build.gradle +++ b/S09.05-Solution-MoreDetails/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.01-Exercise-SynchronizingTheWeather/build.gradle b/S10.01-Exercise-SynchronizingTheWeather/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.01-Exercise-SynchronizingTheWeather/build.gradle +++ b/S10.01-Exercise-SynchronizingTheWeather/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.01-Solution-SynchronizingTheWeather/build.gradle b/S10.01-Solution-SynchronizingTheWeather/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.01-Solution-SynchronizingTheWeather/build.gradle +++ b/S10.01-Solution-SynchronizingTheWeather/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.02-Exercise-SmarterSyncing/build.gradle b/S10.02-Exercise-SmarterSyncing/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.02-Exercise-SmarterSyncing/build.gradle +++ b/S10.02-Exercise-SmarterSyncing/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.02-Solution-SmarterSyncing/build.gradle b/S10.02-Solution-SmarterSyncing/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.02-Solution-SmarterSyncing/build.gradle +++ b/S10.02-Solution-SmarterSyncing/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.03-Exercise-FirebaseJobDispatcher/build.gradle b/S10.03-Exercise-FirebaseJobDispatcher/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.03-Exercise-FirebaseJobDispatcher/build.gradle +++ b/S10.03-Exercise-FirebaseJobDispatcher/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.03-Solution-FirebaseJobDispatcher/build.gradle b/S10.03-Solution-FirebaseJobDispatcher/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.03-Solution-FirebaseJobDispatcher/build.gradle +++ b/S10.03-Solution-FirebaseJobDispatcher/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.04-Exercise-Notifications/build.gradle b/S10.04-Exercise-Notifications/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.04-Exercise-Notifications/build.gradle +++ b/S10.04-Exercise-Notifications/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S10.04-Solution-Notifications/build.gradle b/S10.04-Solution-Notifications/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S10.04-Solution-Notifications/build.gradle +++ b/S10.04-Solution-Notifications/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S11.01-Exercise-NewListItemLayout/build.gradle b/S11.01-Exercise-NewListItemLayout/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S11.01-Exercise-NewListItemLayout/build.gradle +++ b/S11.01-Exercise-NewListItemLayout/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S11.01-Solution-NewListItemLayout/build.gradle b/S11.01-Solution-NewListItemLayout/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S11.01-Solution-NewListItemLayout/build.gradle +++ b/S11.01-Solution-NewListItemLayout/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S11.02-Exercise-TodayListItem/build.gradle b/S11.02-Exercise-TodayListItem/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S11.02-Exercise-TodayListItem/build.gradle +++ b/S11.02-Exercise-TodayListItem/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S11.02-Solution-TodayListItem/build.gradle b/S11.02-Solution-TodayListItem/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S11.02-Solution-TodayListItem/build.gradle +++ b/S11.02-Solution-TodayListItem/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S11.03-Exercise-DetailLayoutAndDataBinding/build.gradle b/S11.03-Exercise-DetailLayoutAndDataBinding/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S11.03-Exercise-DetailLayoutAndDataBinding/build.gradle +++ b/S11.03-Exercise-DetailLayoutAndDataBinding/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S11.03-Solution-DetailLayoutAndDataBinding/build.gradle b/S11.03-Solution-DetailLayoutAndDataBinding/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S11.03-Solution-DetailLayoutAndDataBinding/build.gradle +++ b/S11.03-Solution-DetailLayoutAndDataBinding/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.01-Exercise-DimensionsColorsAndFonts/build.gradle b/S12.01-Exercise-DimensionsColorsAndFonts/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.01-Exercise-DimensionsColorsAndFonts/build.gradle +++ b/S12.01-Exercise-DimensionsColorsAndFonts/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.01-Solution-DimensionsColorsAndFonts/build.gradle b/S12.01-Solution-DimensionsColorsAndFonts/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.01-Solution-DimensionsColorsAndFonts/build.gradle +++ b/S12.01-Solution-DimensionsColorsAndFonts/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.02-Exercise-Styles/build.gradle b/S12.02-Exercise-Styles/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.02-Exercise-Styles/build.gradle +++ b/S12.02-Exercise-Styles/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.02-Solution-Styles/build.gradle b/S12.02-Solution-Styles/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.02-Solution-Styles/build.gradle +++ b/S12.02-Solution-Styles/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.03-Exercise-TouchSelectors/build.gradle b/S12.03-Exercise-TouchSelectors/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.03-Exercise-TouchSelectors/build.gradle +++ b/S12.03-Exercise-TouchSelectors/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.03-Solution-TouchSelectors/build.gradle b/S12.03-Solution-TouchSelectors/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.03-Solution-TouchSelectors/build.gradle +++ b/S12.03-Solution-TouchSelectors/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.04-Exercise-ResourceQualifiers/build.gradle b/S12.04-Exercise-ResourceQualifiers/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.04-Exercise-ResourceQualifiers/build.gradle +++ b/S12.04-Exercise-ResourceQualifiers/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() } diff --git a/S12.04-Solution-ResourceQualifiers/build.gradle b/S12.04-Solution-ResourceQualifiers/build.gradle index 74b2ab0dd8..4697c773d3 100755 --- a/S12.04-Solution-ResourceQualifiers/build.gradle +++ b/S12.04-Solution-ResourceQualifiers/build.gradle @@ -13,6 +13,10 @@ buildscript { } allprojects { + String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("windows")) { + buildDir = "C:/tmp/${rootProject.name}/${project.name}" + } repositories { jcenter() }