| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 1 | List<String> samples = [ | 
|  | 2 | "security/keystore/BasicAndroidKeyStore", | 
|  | 3 | "connectivity/sync/BasicSyncAdapter", | 
|  | 4 | "connectivity/network/NetworkConnect", | 
|  | 5 | "connectivity/network/BasicNetworking", | 
|  | 6 | "connectivity/bluetooth/BluetoothLeGatt", | 
|  | 7 | "content/multiuser/AppRestrictions", | 
|  | 8 | "content/contacts/BasicContactables", | 
|  | 9 | "content/documentsUi/StorageClient", | 
| Alexander Lucas | 06bb7eb | 2013-10-30 15:13:29 -0700 | [diff] [blame] | 10 | "content/documentsUi/StorageProvider", | 
| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 11 | "views/TextLinkify", | 
|  | 12 | "input/gestures/BasicGestureDetect", | 
|  | 13 | "input/multitouch/BasicMultitouch", | 
|  | 14 | "testing/ActivityInstrumentation", | 
| Alexander Lucas | 06bb7eb | 2013-10-30 15:13:29 -0700 | [diff] [blame] | 15 | "media/MediaRecorder", | 
| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 16 | "media/BasicMediaRouter", | 
|  | 17 | "media/BasicMediaDecoder", | 
|  | 18 | "ui/holo/BorderlessButtons", | 
|  | 19 | "ui/accessibility/BasicAccessibility", | 
|  | 20 | "ui/lists/CustomChoiceList", | 
|  | 21 | "ui/views/TextSwitcher", | 
|  | 22 | "ui/views/HorizontalPaging", | 
| Alexander Lucas | 3ce4dfd | 2013-11-21 11:29:59 -0800 | [diff] [blame] | 23 | "ui/actionbarcompat/ActionBarCompat-Styled", | 
|  | 24 | "ui/actionbarcompat/ActionBarCompat-ListPopupMenu", | 
|  | 25 | "ui/actionbarcompat/ActionBarCompat-ShareActionProvider", | 
|  | 26 | "ui/actionbarcompat/ActionBarCompat-Basic", | 
| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 27 | "ui/notifications/BasicNotifications", | 
|  | 28 | "ui/notifications/CustomNotifications", | 
|  | 29 | "ui/actionbar/DoneBar", | 
|  | 30 | "ui/window/BasicImmersiveMode", | 
|  | 31 | "ui/window/AdvancedImmersiveMode", | 
|  | 32 | "ui/window/ImmersiveMode", | 
| Alexander Lucas | 07f4ce3 | 2014-02-06 13:49:42 -0800 | [diff] [blame^] | 33 | "background/alarms/RepeatingAlarm", | 
|  | 34 | "renderScript/BasicRenderScript", | 
|  | 35 | "renderScript/RenderScriptIntrinsic", | 
|  | 36 | "ui/views/SlidingTabs/SlidingTabsBasic", | 
|  | 37 | "ui/views/SlidingTabs/SlidingTabsColors", | 
|  | 38 | "connectivity/nfc/CardEmulation", | 
|  | 39 | "connectivity/nfc/CardReader", | 
|  | 40 | "sensors/BatchStepSensor" | 
|  | 41 |  | 
| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 42 | ] | 
|  | 43 |  | 
|  | 44 | List<String> taskNames = [ | 
|  | 45 | "clean", | 
|  | 46 | "refresh", | 
|  | 47 | "build", | 
|  | 48 | "emitAnt", | 
|  | 49 | "emitGradle", | 
|  | 50 | "emitBrowseable", | 
| Alexander Lucas | 1d31e4f | 2013-10-30 18:43:56 -0700 | [diff] [blame] | 51 | "emitGradleZip", | 
| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 52 | ] | 
|  | 53 |  | 
|  | 54 | taskNames.each { taskName -> | 
|  | 55 | def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName) | 
|  | 56 | println task | 
|  | 57 | samples.each { sample -> | 
|  | 58 | File sampleDir = new File(sample) | 
|  | 59 | task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", { | 
|  | 60 | buildFile = "${sample}/build.gradle" | 
|  | 61 | dir = sample | 
|  | 62 | tasks = [taskName] | 
|  | 63 | }) | 
|  | 64 | } | 
|  | 65 | } | 
|  | 66 |  |