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 | d26c23e | 2013-10-31 14:46:14 -0700 | [diff] [blame] | 33 | "background/alarms/RepeatingAlarm" |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 34 | ] |
| 35 | |
| 36 | List<String> taskNames = [ |
| 37 | "clean", |
| 38 | "refresh", |
| 39 | "build", |
| 40 | "emitAnt", |
| 41 | "emitGradle", |
| 42 | "emitBrowseable", |
Alexander Lucas | 1d31e4f | 2013-10-30 18:43:56 -0700 | [diff] [blame] | 43 | "emitGradleZip", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 44 | ] |
| 45 | |
| 46 | taskNames.each { taskName -> |
| 47 | def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName) |
| 48 | println task |
| 49 | samples.each { sample -> |
| 50 | File sampleDir = new File(sample) |
| 51 | task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", { |
| 52 | buildFile = "${sample}/build.gradle" |
| 53 | dir = sample |
| 54 | tasks = [taskName] |
| 55 | }) |
| 56 | } |
| 57 | } |
| 58 | |