From cb46f45b1b1e2e6171b6e7180305a7f05b0d42a7 Mon Sep 17 00:00:00 2001 From: Mark Murphy Date: Wed, 28 May 2014 08:55:43 -0400 Subject: [PATCH] Gradle build support (part one) --- Accessibility/FontScale/build.gradle | 42 +++++++++++++++ Accessibility/Hotkey/build.gradle | 42 +++++++++++++++ ActionBar/ActionBarDemo/AndroidManifest.xml | 2 +- ActionBar/ActionBarDemo/build.gradle | 51 ++++++++++++++++++ ActionBar/ActionBarDemoNative/build.gradle | 42 +++++++++++++++ ActionBar/ListNav/build.gradle | 52 ++++++++++++++++++ ActionBar/ListNavNative/build.gradle | 42 +++++++++++++++ ActionBar/Overlay/build.gradle | 52 ++++++++++++++++++ ActionBar/SearchView/build.gradle | 42 +++++++++++++++ ActionBar/Share/build.gradle | 52 ++++++++++++++++++ ActionBar/ShareNative/build.gradle | 42 +++++++++++++++ ActionBar/TabFragmentDemo/build.gradle | 52 ++++++++++++++++++ ActionBar/TabFragmentDemoNative/build.gradle | 42 +++++++++++++++ ActionMode/ActionModeMC/build.gradle | 42 +++++++++++++++ ActionMode/LongPress/build.gradle | 42 +++++++++++++++ ActionMode/Manual/build.gradle | 52 ++++++++++++++++++ ActionMode/ManualNative/build.gradle | 42 +++++++++++++++ Activities/Explicit/build.gradle | 42 +++++++++++++++ Activities/Extras/build.gradle | 42 +++++++++++++++ Activities/FullScreen/build.gradle | 42 +++++++++++++++ Activities/Launch/build.gradle | 42 +++++++++++++++ Activities/Lifecycle/build.gradle | 42 +++++++++++++++ AdvServices/Binding/build.gradle | 52 ++++++++++++++++++ AdvServices/RemoteClient/build.gradle | 42 +++++++++++++++ AdvServices/RemoteClientEx/build.gradle | 42 +++++++++++++++ AdvServices/RemoteClientUnbound/build.gradle | 42 +++++++++++++++ AdvServices/RemoteService/build.gradle | 42 +++++++++++++++ AdvServices/RemoteServiceEx/build.gradle | 42 +++++++++++++++ AdvServices/RemoteServiceUnbound/build.gradle | 42 +++++++++++++++ AlarmManager/Scheduled/build.gradle | 42 +++++++++++++++ AlarmManager/Simple/build.gradle | 42 +++++++++++++++ AlarmManager/WakeCast/build.gradle | 42 +++++++++++++++ AlarmManager/Wakeful/build.gradle | 42 +++++++++++++++ Animation/AnimatorFade/build.gradle | 42 +++++++++++++++ Animation/FragmentTransition/build.gradle | 42 +++++++++++++++ Animation/ObjectAnimator/build.gradle | 42 +++++++++++++++ Animation/SlidingPanel/build.gradle | 42 +++++++++++++++ Animation/SlidingPanelEx/build.gradle | 42 +++++++++++++++ Animation/ThreePane/build.gradle | 42 +++++++++++++++ AppWidget/LoremWidget/build.gradle | 42 +++++++++++++++ AppWidget/PairOfDice/build.gradle | 42 +++++++++++++++ AppWidget/Resize/build.gradle | 42 +++++++++++++++ AppWidget/TwoOrThreeDice/build.gradle | 42 +++++++++++++++ BC/CompoundButton/build.gradle | 42 +++++++++++++++ Bandwidth/TrafficMonitor/build.gradle | 42 +++++++++++++++ Basic/Button/build.gradle | 42 +++++++++++++++ Basic/CheckBox/build.gradle | 42 +++++++++++++++ Basic/Field/build.gradle | 42 +++++++++++++++ Basic/ImageView/build.gradle | 42 +++++++++++++++ Basic/Label/build.gradle | 42 +++++++++++++++ Basic/RadioButton/build.gradle | 42 +++++++++++++++ Basic/ToggleButton/build.gradle | 42 +++++++++++++++ CPU-Java/AIDLOverhead/Client/build.gradle | 42 +++++++++++++++ .../AIDLOverhead/RemoteService/build.gradle | 42 +++++++++++++++ CPU-Java/GoAsync/build.gradle | 42 +++++++++++++++ CPU-Java/PrefsPersist/build.gradle | 42 +++++++++++++++ Calendar/Query/build.gradle | 42 +++++++++++++++ Camera/Content/build.gradle | 42 +++++++++++++++ Camera/Picture/build.gradle | 52 ++++++++++++++++++ Camera/Preview/build.gradle | 52 ++++++++++++++++++ Camera/ZXing-II/build.gradle | 42 +++++++++++++++ Camera/ZXing/build.gradle | 42 +++++++++++++++ ConfigChange/Bundle/build.gradle | 42 +++++++++++++++ ConfigChange/DIY/build.gradle | 42 +++++++++++++++ .../FragmentBundle/AndroidManifest.xml | 4 +- ConfigChange/FragmentBundle/build.gradle | 52 ++++++++++++++++++ ConfigChange/Fragments/AndroidManifest.xml | 4 +- ConfigChange/Fragments/build.gradle | 52 ++++++++++++++++++ ConfigChange/Retain/AndroidManifest.xml | 4 +- ConfigChange/Retain/build.gradle | 52 ++++++++++++++++++ Contacts/Inserter/build.gradle | 42 +++++++++++++++ Contacts/Pick/build.gradle | 42 +++++++++++++++ Contacts/Spinners/build.gradle | 42 +++++++++++++++ Containers/LinearPercent/build.gradle | 42 +++++++++++++++ Containers/Relative/build.gradle | 42 +++++++++++++++ Containers/RelativeOverlap/build.gradle | 42 +++++++++++++++ Containers/Scroll/build.gradle | 42 +++++++++++++++ Containers/Table/build.gradle | 42 +++++++++++++++ ContentProvider/ConstantsPlus/build.gradle | 42 +++++++++++++++ ContentProvider/Files/build.gradle | 42 +++++++++++++++ .../GrantUriPermissions/build.gradle | 42 +++++++++++++++ ContentProvider/Pipe/build.gradle | 42 +++++++++++++++ ContentProvider/V4FileProvider/build.gradle | 42 +++++++++++++++ Database/Constants/build.gradle | 52 ++++++++++++++++++ Database/ConstantsAssets/build.gradle | 42 +++++++++++++++ Database/ConstantsROWID/build.gradle | 52 ++++++++++++++++++ Database/ConstantsSecure/build.gradle | 42 +++++++++++++++ Database/PasswordBox-Start/build.gradle | 52 ++++++++++++++++++ Database/PasswordBox/build.gradle | 52 ++++++++++++++++++ Database/SQLCipherPassphrase/build.gradle | 52 ++++++++++++++++++ DeviceAdmin/LockMeNow/build.gradle | 42 +++++++++++++++ DeviceAdmin/PasswordEnforcer/build.gradle | 42 +++++++++++++++ Dialogs/Chrono/build.gradle | 42 +++++++++++++++ Dialogs/DialogFragment/build.gradle | 52 ++++++++++++++++++ Documents/Consumer/build.gradle | 42 +++++++++++++++ Documents/Consumer/project.properties | 1 - Drawable/Gradient/build.gradle | 42 +++++++++++++++ Drawable/NinePatch/build.gradle | 42 +++++++++++++++ Drawable/ScaleClip/build.gradle | 42 +++++++++++++++ Drawable/Shape/build.gradle | 52 ++++++++++++++++++ Drawable/TileMode/build.gradle | 52 ++++++++++++++++++ EventBus/GreenRobot/build.gradle | 52 ++++++++++++++++++ EventBus/LocalBroadcastManager/build.gradle | 52 ++++++++++++++++++ EventBus/Otto/build.gradle | 52 ++++++++++++++++++ Files/ReadWrite/build.gradle | 52 ++++++++++++++++++ Focus/Sampler/build.gradle | 52 ++++++++++++++++++ Focus/Sampler/project.properties | 1 - Fonts/FontSampler/build.gradle | 42 +++++++++++++++ Fragments/ActionBar/AndroidManifest.xml | 2 +- Fragments/ActionBar/build.gradle | 52 ++++++++++++++++++ Fragments/ActionBarNative/build.gradle | 42 +++++++++++++++ Fragments/Dynamic/build.gradle | 52 ++++++++++++++++++ Fragments/Static/build.gradle | 52 ++++++++++++++++++ GridLayout/Sampler/build.gradle | 53 +++++++++++++++++++ HTTP/Ion/build.gradle | 42 +++++++++++++++ HTTP/Picasso/build.gradle | 42 +++++++++++++++ HTTP/Retrofit/build.gradle | 42 +++++++++++++++ InputMethod/IMEDemo1/build.gradle | 42 +++++++++++++++ InputMethod/IMEDemo2/build.gradle | 42 +++++++++++++++ Intents/FauxSender/build.gradle | 42 +++++++++++++++ Intents/Local/build.gradle | 42 +++++++++++++++ Intents/OnBattery/build.gradle | 52 ++++++++++++++++++ Intents/OnBoot/build.gradle | 42 +++++++++++++++ Internet/Download/build.gradle | 52 ++++++++++++++++++ Internet/Weather/build.gradle | 52 ++++++++++++++++++ Introspection/CPProxy/Consumer/build.gradle | 42 +++++++++++++++ Introspection/CPProxy/Provider/build.gradle | 42 +++++++++++++++ Introspection/DefaultDetector/build.gradle | 42 +++++++++++++++ Introspection/FauxSender/build.gradle | 42 +++++++++++++++ Introspection/Launchalot/build.gradle | 42 +++++++++++++++ Introspection/PrefActivities/build.gradle | 42 +++++++++++++++ Introspection/QuickSender/build.gradle | 42 +++++++++++++++ Introspection/Resolver/build.gradle | 42 +++++++++++++++ Introspection/URLHandler/build.gradle | 42 +++++++++++++++ JNI/WeakBench/build.gradle | 42 +++++++++++++++ JVM/InterpreterService/build.gradle | 42 +++++++++++++++ LargeScreen/EU4You/build.gradle | 52 ++++++++++++++++++ LargeScreen/EU4YouSingleActivity/build.gradle | 52 ++++++++++++++++++ LargeScreen/EU4YouSlidingPane/build.gradle | 52 ++++++++++++++++++ .../EU4YouStaticCountries/build.gradle | 52 ++++++++++++++++++ Loaders/ConstantsLoader/build.gradle | 42 +++++++++++++++ Location/Fused/build.gradle | 53 +++++++++++++++++++ Location/Periodic/build.gradle | 42 +++++++++++++++ MAT/LeakedThread/build.gradle | 42 +++++++++++++++ MAT/RandomAppOfCrap/build.gradle | 42 +++++++++++++++ MAT/Spinners/build.gradle | 42 +++++++++++++++ MAT/StaticWidget/build.gradle | 42 +++++++++++++++ Manifest/Alias/build.gradle | 42 +++++++++++++++ Media/Audio/build.gradle | 42 +++++++++++++++ Media/AudioPlayStream/build.gradle | 42 +++++++++++++++ Media/AudioRecordStream/build.gradle | 42 +++++++++++++++ Media/AudioRecording/build.gradle | 42 +++++++++++++++ Media/SoundRecordIntent/build.gradle | 42 +++++++++++++++ Media/Video/build.gradle | 42 +++++++++++++++ Media/VideoList/build.gradle | 42 +++++++++++++++ Media/VideoRecordIntent/build.gradle | 42 +++++++++++++++ MediaRouter/ActionProvider/build.gradle | 43 +++++++++++++++ MediaRouter/RemotePlayback/build.gradle | 43 +++++++++++++++ MediaRouter/RouteProvider/build.gradle | 43 +++++++++++++++ .../SecureServiceIPC/BadService/build.gradle | 42 +++++++++++++++ .../SecureServiceIPC/Client/build.gradle | 42 +++++++++++++++ .../SecureServiceIPC/GoodService/build.gradle | 42 +++++++++++++++ MiscSecurity/SigCheck/build.gradle | 42 +++++++++++++++ MiscSecurity/SigDump/build.gradle | 52 ++++++++++++++++++ MiscSecurity/SigHashCheck/AndroidManifest.xml | 4 +- MiscSecurity/SigHashCheck/build.gradle | 49 +++++++++++++++++ MiscUI/DelayedTimeout/build.gradle | 42 +++++++++++++++ NavDrawer/Activated/build.gradle | 42 +++++++++++++++ NavDrawer/Simple/build.gradle | 42 +++++++++++++++ 169 files changed, 7163 insertions(+), 12 deletions(-) create mode 100644 Accessibility/FontScale/build.gradle create mode 100644 Accessibility/Hotkey/build.gradle create mode 100644 ActionBar/ActionBarDemo/build.gradle create mode 100644 ActionBar/ActionBarDemoNative/build.gradle create mode 100644 ActionBar/ListNav/build.gradle create mode 100644 ActionBar/ListNavNative/build.gradle create mode 100644 ActionBar/Overlay/build.gradle create mode 100644 ActionBar/SearchView/build.gradle create mode 100644 ActionBar/Share/build.gradle create mode 100644 ActionBar/ShareNative/build.gradle create mode 100644 ActionBar/TabFragmentDemo/build.gradle create mode 100644 ActionBar/TabFragmentDemoNative/build.gradle create mode 100644 ActionMode/ActionModeMC/build.gradle create mode 100644 ActionMode/LongPress/build.gradle create mode 100644 ActionMode/Manual/build.gradle create mode 100644 ActionMode/ManualNative/build.gradle create mode 100644 Activities/Explicit/build.gradle create mode 100644 Activities/Extras/build.gradle create mode 100644 Activities/FullScreen/build.gradle create mode 100644 Activities/Launch/build.gradle create mode 100644 Activities/Lifecycle/build.gradle create mode 100644 AdvServices/Binding/build.gradle create mode 100644 AdvServices/RemoteClient/build.gradle create mode 100644 AdvServices/RemoteClientEx/build.gradle create mode 100644 AdvServices/RemoteClientUnbound/build.gradle create mode 100644 AdvServices/RemoteService/build.gradle create mode 100644 AdvServices/RemoteServiceEx/build.gradle create mode 100644 AdvServices/RemoteServiceUnbound/build.gradle create mode 100644 AlarmManager/Scheduled/build.gradle create mode 100644 AlarmManager/Simple/build.gradle create mode 100644 AlarmManager/WakeCast/build.gradle create mode 100644 AlarmManager/Wakeful/build.gradle create mode 100644 Animation/AnimatorFade/build.gradle create mode 100644 Animation/FragmentTransition/build.gradle create mode 100644 Animation/ObjectAnimator/build.gradle create mode 100644 Animation/SlidingPanel/build.gradle create mode 100644 Animation/SlidingPanelEx/build.gradle create mode 100644 Animation/ThreePane/build.gradle create mode 100644 AppWidget/LoremWidget/build.gradle create mode 100644 AppWidget/PairOfDice/build.gradle create mode 100644 AppWidget/Resize/build.gradle create mode 100644 AppWidget/TwoOrThreeDice/build.gradle create mode 100644 BC/CompoundButton/build.gradle create mode 100644 Bandwidth/TrafficMonitor/build.gradle create mode 100644 Basic/Button/build.gradle create mode 100644 Basic/CheckBox/build.gradle create mode 100644 Basic/Field/build.gradle create mode 100644 Basic/ImageView/build.gradle create mode 100644 Basic/Label/build.gradle create mode 100644 Basic/RadioButton/build.gradle create mode 100644 Basic/ToggleButton/build.gradle create mode 100644 CPU-Java/AIDLOverhead/Client/build.gradle create mode 100644 CPU-Java/AIDLOverhead/RemoteService/build.gradle create mode 100644 CPU-Java/GoAsync/build.gradle create mode 100644 CPU-Java/PrefsPersist/build.gradle create mode 100644 Calendar/Query/build.gradle create mode 100644 Camera/Content/build.gradle create mode 100644 Camera/Picture/build.gradle create mode 100644 Camera/Preview/build.gradle create mode 100644 Camera/ZXing-II/build.gradle create mode 100644 Camera/ZXing/build.gradle create mode 100644 ConfigChange/Bundle/build.gradle create mode 100644 ConfigChange/DIY/build.gradle create mode 100644 ConfigChange/FragmentBundle/build.gradle create mode 100644 ConfigChange/Fragments/build.gradle create mode 100644 ConfigChange/Retain/build.gradle create mode 100644 Contacts/Inserter/build.gradle create mode 100644 Contacts/Pick/build.gradle create mode 100644 Contacts/Spinners/build.gradle create mode 100644 Containers/LinearPercent/build.gradle create mode 100644 Containers/Relative/build.gradle create mode 100644 Containers/RelativeOverlap/build.gradle create mode 100644 Containers/Scroll/build.gradle create mode 100644 Containers/Table/build.gradle create mode 100644 ContentProvider/ConstantsPlus/build.gradle create mode 100644 ContentProvider/Files/build.gradle create mode 100644 ContentProvider/GrantUriPermissions/build.gradle create mode 100644 ContentProvider/Pipe/build.gradle create mode 100644 ContentProvider/V4FileProvider/build.gradle create mode 100644 Database/Constants/build.gradle create mode 100644 Database/ConstantsAssets/build.gradle create mode 100644 Database/ConstantsROWID/build.gradle create mode 100644 Database/ConstantsSecure/build.gradle create mode 100644 Database/PasswordBox-Start/build.gradle create mode 100644 Database/PasswordBox/build.gradle create mode 100644 Database/SQLCipherPassphrase/build.gradle create mode 100644 DeviceAdmin/LockMeNow/build.gradle create mode 100644 DeviceAdmin/PasswordEnforcer/build.gradle create mode 100644 Dialogs/Chrono/build.gradle create mode 100644 Dialogs/DialogFragment/build.gradle create mode 100644 Documents/Consumer/build.gradle create mode 100644 Drawable/Gradient/build.gradle create mode 100644 Drawable/NinePatch/build.gradle create mode 100644 Drawable/ScaleClip/build.gradle create mode 100644 Drawable/Shape/build.gradle create mode 100644 Drawable/TileMode/build.gradle create mode 100644 EventBus/GreenRobot/build.gradle create mode 100644 EventBus/LocalBroadcastManager/build.gradle create mode 100644 EventBus/Otto/build.gradle create mode 100644 Files/ReadWrite/build.gradle create mode 100644 Focus/Sampler/build.gradle create mode 100644 Fonts/FontSampler/build.gradle create mode 100644 Fragments/ActionBar/build.gradle create mode 100644 Fragments/ActionBarNative/build.gradle create mode 100644 Fragments/Dynamic/build.gradle create mode 100644 Fragments/Static/build.gradle create mode 100644 GridLayout/Sampler/build.gradle create mode 100644 HTTP/Ion/build.gradle create mode 100644 HTTP/Picasso/build.gradle create mode 100644 HTTP/Retrofit/build.gradle create mode 100644 InputMethod/IMEDemo1/build.gradle create mode 100644 InputMethod/IMEDemo2/build.gradle create mode 100644 Intents/FauxSender/build.gradle create mode 100644 Intents/Local/build.gradle create mode 100644 Intents/OnBattery/build.gradle create mode 100644 Intents/OnBoot/build.gradle create mode 100644 Internet/Download/build.gradle create mode 100644 Internet/Weather/build.gradle create mode 100644 Introspection/CPProxy/Consumer/build.gradle create mode 100644 Introspection/CPProxy/Provider/build.gradle create mode 100644 Introspection/DefaultDetector/build.gradle create mode 100644 Introspection/FauxSender/build.gradle create mode 100644 Introspection/Launchalot/build.gradle create mode 100644 Introspection/PrefActivities/build.gradle create mode 100644 Introspection/QuickSender/build.gradle create mode 100644 Introspection/Resolver/build.gradle create mode 100644 Introspection/URLHandler/build.gradle create mode 100644 JNI/WeakBench/build.gradle create mode 100644 JVM/InterpreterService/build.gradle create mode 100644 LargeScreen/EU4You/build.gradle create mode 100644 LargeScreen/EU4YouSingleActivity/build.gradle create mode 100644 LargeScreen/EU4YouSlidingPane/build.gradle create mode 100644 LargeScreen/EU4YouStaticCountries/build.gradle create mode 100644 Loaders/ConstantsLoader/build.gradle create mode 100644 Location/Fused/build.gradle create mode 100644 Location/Periodic/build.gradle create mode 100644 MAT/LeakedThread/build.gradle create mode 100644 MAT/RandomAppOfCrap/build.gradle create mode 100644 MAT/Spinners/build.gradle create mode 100644 MAT/StaticWidget/build.gradle create mode 100644 Manifest/Alias/build.gradle create mode 100644 Media/Audio/build.gradle create mode 100644 Media/AudioPlayStream/build.gradle create mode 100644 Media/AudioRecordStream/build.gradle create mode 100644 Media/AudioRecording/build.gradle create mode 100644 Media/SoundRecordIntent/build.gradle create mode 100644 Media/Video/build.gradle create mode 100644 Media/VideoList/build.gradle create mode 100644 Media/VideoRecordIntent/build.gradle create mode 100644 MediaRouter/ActionProvider/build.gradle create mode 100644 MediaRouter/RemotePlayback/build.gradle create mode 100644 MediaRouter/RouteProvider/build.gradle create mode 100644 MiscSecurity/SecureServiceIPC/BadService/build.gradle create mode 100644 MiscSecurity/SecureServiceIPC/Client/build.gradle create mode 100644 MiscSecurity/SecureServiceIPC/GoodService/build.gradle create mode 100644 MiscSecurity/SigCheck/build.gradle create mode 100644 MiscSecurity/SigDump/build.gradle create mode 100644 MiscSecurity/SigHashCheck/build.gradle create mode 100644 MiscUI/DelayedTimeout/build.gradle create mode 100644 NavDrawer/Activated/build.gradle create mode 100644 NavDrawer/Simple/build.gradle diff --git a/Accessibility/FontScale/build.gradle b/Accessibility/FontScale/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Accessibility/FontScale/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Accessibility/Hotkey/build.gradle b/Accessibility/Hotkey/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Accessibility/Hotkey/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/ActionBarDemo/AndroidManifest.xml b/ActionBar/ActionBarDemo/AndroidManifest.xml index dd8c33d2d..581acd12f 100644 --- a/ActionBar/ActionBarDemo/AndroidManifest.xml +++ b/ActionBar/ActionBarDemo/AndroidManifest.xml @@ -30,4 +30,4 @@ - \ No newline at end of file + diff --git a/ActionBar/ActionBarDemo/build.gradle b/ActionBar/ActionBarDemo/build.gradle new file mode 100644 index 000000000..d9ddcbfa3 --- /dev/null +++ b/ActionBar/ActionBarDemo/build.gradle @@ -0,0 +1,51 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/ActionBarDemoNative/build.gradle b/ActionBar/ActionBarDemoNative/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionBar/ActionBarDemoNative/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/ListNav/build.gradle b/ActionBar/ListNav/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ActionBar/ListNav/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/ListNavNative/build.gradle b/ActionBar/ListNavNative/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionBar/ListNavNative/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/Overlay/build.gradle b/ActionBar/Overlay/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ActionBar/Overlay/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/SearchView/build.gradle b/ActionBar/SearchView/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionBar/SearchView/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/Share/build.gradle b/ActionBar/Share/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ActionBar/Share/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/ShareNative/build.gradle b/ActionBar/ShareNative/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionBar/ShareNative/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/TabFragmentDemo/build.gradle b/ActionBar/TabFragmentDemo/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ActionBar/TabFragmentDemo/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionBar/TabFragmentDemoNative/build.gradle b/ActionBar/TabFragmentDemoNative/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionBar/TabFragmentDemoNative/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionMode/ActionModeMC/build.gradle b/ActionMode/ActionModeMC/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionMode/ActionModeMC/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionMode/LongPress/build.gradle b/ActionMode/LongPress/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionMode/LongPress/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionMode/Manual/build.gradle b/ActionMode/Manual/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ActionMode/Manual/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ActionMode/ManualNative/build.gradle b/ActionMode/ManualNative/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ActionMode/ManualNative/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Activities/Explicit/build.gradle b/Activities/Explicit/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Activities/Explicit/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Activities/Extras/build.gradle b/Activities/Extras/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Activities/Extras/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Activities/FullScreen/build.gradle b/Activities/FullScreen/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Activities/FullScreen/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Activities/Launch/build.gradle b/Activities/Launch/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Activities/Launch/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Activities/Lifecycle/build.gradle b/Activities/Lifecycle/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Activities/Lifecycle/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AdvServices/Binding/build.gradle b/AdvServices/Binding/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/AdvServices/Binding/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AdvServices/RemoteClient/build.gradle b/AdvServices/RemoteClient/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AdvServices/RemoteClient/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AdvServices/RemoteClientEx/build.gradle b/AdvServices/RemoteClientEx/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AdvServices/RemoteClientEx/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AdvServices/RemoteClientUnbound/build.gradle b/AdvServices/RemoteClientUnbound/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AdvServices/RemoteClientUnbound/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AdvServices/RemoteService/build.gradle b/AdvServices/RemoteService/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AdvServices/RemoteService/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AdvServices/RemoteServiceEx/build.gradle b/AdvServices/RemoteServiceEx/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AdvServices/RemoteServiceEx/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AdvServices/RemoteServiceUnbound/build.gradle b/AdvServices/RemoteServiceUnbound/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AdvServices/RemoteServiceUnbound/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AlarmManager/Scheduled/build.gradle b/AlarmManager/Scheduled/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AlarmManager/Scheduled/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AlarmManager/Simple/build.gradle b/AlarmManager/Simple/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AlarmManager/Simple/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AlarmManager/WakeCast/build.gradle b/AlarmManager/WakeCast/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AlarmManager/WakeCast/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AlarmManager/Wakeful/build.gradle b/AlarmManager/Wakeful/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AlarmManager/Wakeful/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Animation/AnimatorFade/build.gradle b/Animation/AnimatorFade/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Animation/AnimatorFade/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Animation/FragmentTransition/build.gradle b/Animation/FragmentTransition/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Animation/FragmentTransition/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Animation/ObjectAnimator/build.gradle b/Animation/ObjectAnimator/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Animation/ObjectAnimator/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Animation/SlidingPanel/build.gradle b/Animation/SlidingPanel/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Animation/SlidingPanel/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Animation/SlidingPanelEx/build.gradle b/Animation/SlidingPanelEx/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Animation/SlidingPanelEx/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Animation/ThreePane/build.gradle b/Animation/ThreePane/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Animation/ThreePane/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AppWidget/LoremWidget/build.gradle b/AppWidget/LoremWidget/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AppWidget/LoremWidget/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AppWidget/PairOfDice/build.gradle b/AppWidget/PairOfDice/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AppWidget/PairOfDice/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AppWidget/Resize/build.gradle b/AppWidget/Resize/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AppWidget/Resize/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/AppWidget/TwoOrThreeDice/build.gradle b/AppWidget/TwoOrThreeDice/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/AppWidget/TwoOrThreeDice/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/BC/CompoundButton/build.gradle b/BC/CompoundButton/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/BC/CompoundButton/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Bandwidth/TrafficMonitor/build.gradle b/Bandwidth/TrafficMonitor/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Bandwidth/TrafficMonitor/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Basic/Button/build.gradle b/Basic/Button/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Basic/Button/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Basic/CheckBox/build.gradle b/Basic/CheckBox/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Basic/CheckBox/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Basic/Field/build.gradle b/Basic/Field/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Basic/Field/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Basic/ImageView/build.gradle b/Basic/ImageView/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Basic/ImageView/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Basic/Label/build.gradle b/Basic/Label/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Basic/Label/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Basic/RadioButton/build.gradle b/Basic/RadioButton/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Basic/RadioButton/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Basic/ToggleButton/build.gradle b/Basic/ToggleButton/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Basic/ToggleButton/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/CPU-Java/AIDLOverhead/Client/build.gradle b/CPU-Java/AIDLOverhead/Client/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/CPU-Java/AIDLOverhead/Client/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/CPU-Java/AIDLOverhead/RemoteService/build.gradle b/CPU-Java/AIDLOverhead/RemoteService/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/CPU-Java/AIDLOverhead/RemoteService/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/CPU-Java/GoAsync/build.gradle b/CPU-Java/GoAsync/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/CPU-Java/GoAsync/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/CPU-Java/PrefsPersist/build.gradle b/CPU-Java/PrefsPersist/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/CPU-Java/PrefsPersist/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Calendar/Query/build.gradle b/Calendar/Query/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Calendar/Query/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Camera/Content/build.gradle b/Camera/Content/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Camera/Content/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Camera/Picture/build.gradle b/Camera/Picture/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Camera/Picture/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Camera/Preview/build.gradle b/Camera/Preview/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Camera/Preview/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Camera/ZXing-II/build.gradle b/Camera/ZXing-II/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Camera/ZXing-II/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Camera/ZXing/build.gradle b/Camera/ZXing/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Camera/ZXing/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ConfigChange/Bundle/build.gradle b/ConfigChange/Bundle/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ConfigChange/Bundle/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ConfigChange/DIY/build.gradle b/ConfigChange/DIY/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ConfigChange/DIY/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ConfigChange/FragmentBundle/AndroidManifest.xml b/ConfigChange/FragmentBundle/AndroidManifest.xml index 1ad8c1e3a..ef857ff57 100644 --- a/ConfigChange/FragmentBundle/AndroidManifest.xml +++ b/ConfigChange/FragmentBundle/AndroidManifest.xml @@ -5,7 +5,7 @@ android:versionName="1.0.0"> - \ No newline at end of file + diff --git a/ConfigChange/FragmentBundle/build.gradle b/ConfigChange/FragmentBundle/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ConfigChange/FragmentBundle/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ConfigChange/Fragments/AndroidManifest.xml b/ConfigChange/Fragments/AndroidManifest.xml index c50322a00..8f0197f6a 100644 --- a/ConfigChange/Fragments/AndroidManifest.xml +++ b/ConfigChange/Fragments/AndroidManifest.xml @@ -5,7 +5,7 @@ android:versionName="1.0.0"> - \ No newline at end of file + diff --git a/ConfigChange/Fragments/build.gradle b/ConfigChange/Fragments/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ConfigChange/Fragments/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ConfigChange/Retain/AndroidManifest.xml b/ConfigChange/Retain/AndroidManifest.xml index 0ec4a1f2e..c3096179d 100644 --- a/ConfigChange/Retain/AndroidManifest.xml +++ b/ConfigChange/Retain/AndroidManifest.xml @@ -5,7 +5,7 @@ android:versionName="1.0.0"> - \ No newline at end of file + diff --git a/ConfigChange/Retain/build.gradle b/ConfigChange/Retain/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/ConfigChange/Retain/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Contacts/Inserter/build.gradle b/Contacts/Inserter/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Contacts/Inserter/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Contacts/Pick/build.gradle b/Contacts/Pick/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Contacts/Pick/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Contacts/Spinners/build.gradle b/Contacts/Spinners/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Contacts/Spinners/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Containers/LinearPercent/build.gradle b/Containers/LinearPercent/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Containers/LinearPercent/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Containers/Relative/build.gradle b/Containers/Relative/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Containers/Relative/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Containers/RelativeOverlap/build.gradle b/Containers/RelativeOverlap/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Containers/RelativeOverlap/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Containers/Scroll/build.gradle b/Containers/Scroll/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Containers/Scroll/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Containers/Table/build.gradle b/Containers/Table/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Containers/Table/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ContentProvider/ConstantsPlus/build.gradle b/ContentProvider/ConstantsPlus/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ContentProvider/ConstantsPlus/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ContentProvider/Files/build.gradle b/ContentProvider/Files/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ContentProvider/Files/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ContentProvider/GrantUriPermissions/build.gradle b/ContentProvider/GrantUriPermissions/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ContentProvider/GrantUriPermissions/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ContentProvider/Pipe/build.gradle b/ContentProvider/Pipe/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ContentProvider/Pipe/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/ContentProvider/V4FileProvider/build.gradle b/ContentProvider/V4FileProvider/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/ContentProvider/V4FileProvider/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Database/Constants/build.gradle b/Database/Constants/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Database/Constants/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Database/ConstantsAssets/build.gradle b/Database/ConstantsAssets/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Database/ConstantsAssets/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Database/ConstantsROWID/build.gradle b/Database/ConstantsROWID/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Database/ConstantsROWID/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Database/ConstantsSecure/build.gradle b/Database/ConstantsSecure/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Database/ConstantsSecure/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Database/PasswordBox-Start/build.gradle b/Database/PasswordBox-Start/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Database/PasswordBox-Start/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Database/PasswordBox/build.gradle b/Database/PasswordBox/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Database/PasswordBox/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Database/SQLCipherPassphrase/build.gradle b/Database/SQLCipherPassphrase/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Database/SQLCipherPassphrase/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/DeviceAdmin/LockMeNow/build.gradle b/DeviceAdmin/LockMeNow/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/DeviceAdmin/LockMeNow/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/DeviceAdmin/PasswordEnforcer/build.gradle b/DeviceAdmin/PasswordEnforcer/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/DeviceAdmin/PasswordEnforcer/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Dialogs/Chrono/build.gradle b/Dialogs/Chrono/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Dialogs/Chrono/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Dialogs/DialogFragment/build.gradle b/Dialogs/DialogFragment/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Dialogs/DialogFragment/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Documents/Consumer/build.gradle b/Documents/Consumer/build.gradle new file mode 100644 index 000000000..c0e994ed6 --- /dev/null +++ b/Documents/Consumer/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 19 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Documents/Consumer/project.properties b/Documents/Consumer/project.properties index 8695770ca..4ab125693 100644 --- a/Documents/Consumer/project.properties +++ b/Documents/Consumer/project.properties @@ -12,4 +12,3 @@ # Project target. target=android-19 -android.library.reference.1=../../../../../../../workspace/android-support-v7-mediarouter diff --git a/Drawable/Gradient/build.gradle b/Drawable/Gradient/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Drawable/Gradient/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Drawable/NinePatch/build.gradle b/Drawable/NinePatch/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Drawable/NinePatch/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Drawable/ScaleClip/build.gradle b/Drawable/ScaleClip/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Drawable/ScaleClip/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Drawable/Shape/build.gradle b/Drawable/Shape/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Drawable/Shape/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Drawable/TileMode/build.gradle b/Drawable/TileMode/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Drawable/TileMode/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/EventBus/GreenRobot/build.gradle b/EventBus/GreenRobot/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/EventBus/GreenRobot/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/EventBus/LocalBroadcastManager/build.gradle b/EventBus/LocalBroadcastManager/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/EventBus/LocalBroadcastManager/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/EventBus/Otto/build.gradle b/EventBus/Otto/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/EventBus/Otto/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Files/ReadWrite/build.gradle b/Files/ReadWrite/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Files/ReadWrite/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Focus/Sampler/build.gradle b/Focus/Sampler/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Focus/Sampler/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Focus/Sampler/project.properties b/Focus/Sampler/project.properties index fef91e7ef..68aa5333b 100644 --- a/Focus/Sampler/project.properties +++ b/Focus/Sampler/project.properties @@ -1,3 +1,2 @@ android.library.reference.1=../../external/ActionBarSherlock target=android-15 -android.library.reference.2=../../../../../../../workspace/gridlayout diff --git a/Fonts/FontSampler/build.gradle b/Fonts/FontSampler/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Fonts/FontSampler/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Fragments/ActionBar/AndroidManifest.xml b/Fragments/ActionBar/AndroidManifest.xml index 8d1295db0..6e1dae4ac 100644 --- a/Fragments/ActionBar/AndroidManifest.xml +++ b/Fragments/ActionBar/AndroidManifest.xml @@ -3,7 +3,7 @@ - + diff --git a/Fragments/ActionBar/build.gradle b/Fragments/ActionBar/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Fragments/ActionBar/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Fragments/ActionBarNative/build.gradle b/Fragments/ActionBarNative/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Fragments/ActionBarNative/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Fragments/Dynamic/build.gradle b/Fragments/Dynamic/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Fragments/Dynamic/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Fragments/Static/build.gradle b/Fragments/Static/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Fragments/Static/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/GridLayout/Sampler/build.gradle b/GridLayout/Sampler/build.gradle new file mode 100644 index 000000000..e372feed6 --- /dev/null +++ b/GridLayout/Sampler/build.gradle @@ -0,0 +1,53 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' + compile 'com.android.support:gridlayout-v7:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/HTTP/Ion/build.gradle b/HTTP/Ion/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/HTTP/Ion/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/HTTP/Picasso/build.gradle b/HTTP/Picasso/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/HTTP/Picasso/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/HTTP/Retrofit/build.gradle b/HTTP/Retrofit/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/HTTP/Retrofit/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/InputMethod/IMEDemo1/build.gradle b/InputMethod/IMEDemo1/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/InputMethod/IMEDemo1/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/InputMethod/IMEDemo2/build.gradle b/InputMethod/IMEDemo2/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/InputMethod/IMEDemo2/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Intents/FauxSender/build.gradle b/Intents/FauxSender/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Intents/FauxSender/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Intents/Local/build.gradle b/Intents/Local/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Intents/Local/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Intents/OnBattery/build.gradle b/Intents/OnBattery/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Intents/OnBattery/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Intents/OnBoot/build.gradle b/Intents/OnBoot/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Intents/OnBoot/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Internet/Download/build.gradle b/Internet/Download/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Internet/Download/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Internet/Weather/build.gradle b/Internet/Weather/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/Internet/Weather/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/CPProxy/Consumer/build.gradle b/Introspection/CPProxy/Consumer/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/CPProxy/Consumer/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/CPProxy/Provider/build.gradle b/Introspection/CPProxy/Provider/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/CPProxy/Provider/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/DefaultDetector/build.gradle b/Introspection/DefaultDetector/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/DefaultDetector/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/FauxSender/build.gradle b/Introspection/FauxSender/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/FauxSender/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/Launchalot/build.gradle b/Introspection/Launchalot/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/Launchalot/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/PrefActivities/build.gradle b/Introspection/PrefActivities/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/PrefActivities/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/QuickSender/build.gradle b/Introspection/QuickSender/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/QuickSender/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/Resolver/build.gradle b/Introspection/Resolver/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/Resolver/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Introspection/URLHandler/build.gradle b/Introspection/URLHandler/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Introspection/URLHandler/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/JNI/WeakBench/build.gradle b/JNI/WeakBench/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/JNI/WeakBench/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/JVM/InterpreterService/build.gradle b/JVM/InterpreterService/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/JVM/InterpreterService/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/LargeScreen/EU4You/build.gradle b/LargeScreen/EU4You/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/LargeScreen/EU4You/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/LargeScreen/EU4YouSingleActivity/build.gradle b/LargeScreen/EU4YouSingleActivity/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/LargeScreen/EU4YouSingleActivity/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/LargeScreen/EU4YouSlidingPane/build.gradle b/LargeScreen/EU4YouSlidingPane/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/LargeScreen/EU4YouSlidingPane/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/LargeScreen/EU4YouStaticCountries/build.gradle b/LargeScreen/EU4YouStaticCountries/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/LargeScreen/EU4YouStaticCountries/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Loaders/ConstantsLoader/build.gradle b/Loaders/ConstantsLoader/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Loaders/ConstantsLoader/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Location/Fused/build.gradle b/Location/Fused/build.gradle new file mode 100644 index 000000000..2f7c1ad78 --- /dev/null +++ b/Location/Fused/build.gradle @@ -0,0 +1,53 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' + compile 'com.google.android.gms:play-services:4.4.52' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Location/Periodic/build.gradle b/Location/Periodic/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Location/Periodic/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MAT/LeakedThread/build.gradle b/MAT/LeakedThread/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MAT/LeakedThread/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MAT/RandomAppOfCrap/build.gradle b/MAT/RandomAppOfCrap/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MAT/RandomAppOfCrap/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MAT/Spinners/build.gradle b/MAT/Spinners/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MAT/Spinners/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MAT/StaticWidget/build.gradle b/MAT/StaticWidget/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MAT/StaticWidget/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Manifest/Alias/build.gradle b/Manifest/Alias/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Manifest/Alias/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/Audio/build.gradle b/Media/Audio/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/Audio/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/AudioPlayStream/build.gradle b/Media/AudioPlayStream/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/AudioPlayStream/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/AudioRecordStream/build.gradle b/Media/AudioRecordStream/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/AudioRecordStream/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/AudioRecording/build.gradle b/Media/AudioRecording/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/AudioRecording/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/SoundRecordIntent/build.gradle b/Media/SoundRecordIntent/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/SoundRecordIntent/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/Video/build.gradle b/Media/Video/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/Video/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/VideoList/build.gradle b/Media/VideoList/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/VideoList/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/Media/VideoRecordIntent/build.gradle b/Media/VideoRecordIntent/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/Media/VideoRecordIntent/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MediaRouter/ActionProvider/build.gradle b/MediaRouter/ActionProvider/build.gradle new file mode 100644 index 000000000..f1d1139fb --- /dev/null +++ b/MediaRouter/ActionProvider/build.gradle @@ -0,0 +1,43 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.android.support:mediarouter-v7:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MediaRouter/RemotePlayback/build.gradle b/MediaRouter/RemotePlayback/build.gradle new file mode 100644 index 000000000..f1d1139fb --- /dev/null +++ b/MediaRouter/RemotePlayback/build.gradle @@ -0,0 +1,43 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.android.support:mediarouter-v7:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MediaRouter/RouteProvider/build.gradle b/MediaRouter/RouteProvider/build.gradle new file mode 100644 index 000000000..f1d1139fb --- /dev/null +++ b/MediaRouter/RouteProvider/build.gradle @@ -0,0 +1,43 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.android.support:mediarouter-v7:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MiscSecurity/SecureServiceIPC/BadService/build.gradle b/MiscSecurity/SecureServiceIPC/BadService/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MiscSecurity/SecureServiceIPC/BadService/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MiscSecurity/SecureServiceIPC/Client/build.gradle b/MiscSecurity/SecureServiceIPC/Client/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MiscSecurity/SecureServiceIPC/Client/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MiscSecurity/SecureServiceIPC/GoodService/build.gradle b/MiscSecurity/SecureServiceIPC/GoodService/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MiscSecurity/SecureServiceIPC/GoodService/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MiscSecurity/SigCheck/build.gradle b/MiscSecurity/SigCheck/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MiscSecurity/SigCheck/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MiscSecurity/SigDump/build.gradle b/MiscSecurity/SigDump/build.gradle new file mode 100644 index 000000000..c3d76adbf --- /dev/null +++ b/MiscSecurity/SigDump/build.gradle @@ -0,0 +1,52 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' + compile 'com.android.support:support-v4:19.1.0' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + defaultConfig { + targetSdkVersion 17 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MiscSecurity/SigHashCheck/AndroidManifest.xml b/MiscSecurity/SigHashCheck/AndroidManifest.xml index 8f3383557..4196ba957 100644 --- a/MiscSecurity/SigHashCheck/AndroidManifest.xml +++ b/MiscSecurity/SigHashCheck/AndroidManifest.xml @@ -6,7 +6,7 @@ + android:targetSdkVersion="19"/> - \ No newline at end of file + diff --git a/MiscSecurity/SigHashCheck/build.gradle b/MiscSecurity/SigHashCheck/build.gradle new file mode 100644 index 000000000..792f595a0 --- /dev/null +++ b/MiscSecurity/SigHashCheck/build.gradle @@ -0,0 +1,49 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +repositories { + maven { + url "https://repo.commonsware.com.s3.amazonaws.com" + } +} + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.commonsware.cwac:security:0.3.+' +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/MiscUI/DelayedTimeout/build.gradle b/MiscUI/DelayedTimeout/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/MiscUI/DelayedTimeout/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/NavDrawer/Activated/build.gradle b/NavDrawer/Activated/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/NavDrawer/Activated/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +} diff --git a/NavDrawer/Simple/build.gradle b/NavDrawer/Simple/build.gradle new file mode 100644 index 000000000..49dbf93c1 --- /dev/null +++ b/NavDrawer/Simple/build.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.10.+' + } +} +apply plugin: 'android' + +dependencies { + compile fileTree(dir: 'libs', include: '*.jar') +} + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.1" + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') + + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } +}