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 | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 23 | "ui/actionbarcompat/ActionBarCompat-Basic", |
Alexander Lucas | 3ce4dfd | 2013-11-21 11:29:59 -0800 | [diff] [blame] | 24 | "ui/actionbarcompat/ActionBarCompat-Styled", |
| 25 | "ui/actionbarcompat/ActionBarCompat-ListPopupMenu", |
| 26 | "ui/actionbarcompat/ActionBarCompat-ShareActionProvider", |
Renato Mangini | ebeca0e | 2014-11-11 17:55:39 -0800 | [diff] [blame] | 27 | "notification/BasicNotifications", |
| 28 | "notification/CustomNotifications", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 29 | "ui/actionbar/DoneBar", |
Naoki Ishihara | a6351e5 | 2014-08-11 12:35:55 -0700 | [diff] [blame] | 30 | "ui/graphics/PdfRendererBasic", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 31 | "ui/window/BasicImmersiveMode", |
| 32 | "ui/window/AdvancedImmersiveMode", |
| 33 | "ui/window/ImmersiveMode", |
Alexander Lucas | 07f4ce3 | 2014-02-06 13:49:42 -0800 | [diff] [blame] | 34 | "background/alarms/RepeatingAlarm", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 35 | "renderScript/BasicRenderScript", |
| 36 | "renderScript/RenderScriptIntrinsic", |
Alexander Lucas | 07f4ce3 | 2014-02-06 13:49:42 -0800 | [diff] [blame] | 37 | "ui/views/SlidingTabs/SlidingTabsBasic", |
| 38 | "ui/views/SlidingTabs/SlidingTabsColors", |
Trevor Johns | ed5c50b | 2015-03-24 01:08:48 -0700 | [diff] [blame] | 39 | "connectivity/nfc/BeamLargeFiles", |
Alexander Lucas | 07f4ce3 | 2014-02-06 13:49:42 -0800 | [diff] [blame] | 40 | "connectivity/nfc/CardEmulation", |
| 41 | "connectivity/nfc/CardReader", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 42 | "sensors/BatchStepSensor", |
Alexander Lucas | e9467ad | 2014-03-06 15:27:22 -0800 | [diff] [blame] | 43 | "ui/graphics/DisplayingBitmaps", |
Alexander Lucas | e9467ad | 2014-03-06 15:27:22 -0800 | [diff] [blame] | 44 | "ui/transition/BasicTransition", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 45 | "ui/transition/CustomTransition", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 46 | "ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic", |
| 47 | "ui/views/SwipeRefreshLayout/SwipeRefreshListFragment", |
| 48 | "ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews", |
Renato Mangini | ebeca0e | 2014-11-11 17:55:39 -0800 | [diff] [blame] | 49 | "media/MediaBrowserService", |
Trevor Johns | f47778e | 2014-06-19 17:45:06 -0700 | [diff] [blame] | 50 | "media/MediaRouter", |
Trevor Johns | ef0bc70 | 2014-10-17 09:21:19 -0700 | [diff] [blame] | 51 | "media/MediaEffects", |
Trevor Johns | f47778e | 2014-06-19 17:45:06 -0700 | [diff] [blame] | 52 | "admin/BasicManagedProfile", |
| 53 | "media/Camera2Basic", |
| 54 | "media/Camera2Video", |
| 55 | "ui/activityscenetransition/ActivitySceneTransitionBasic", |
| 56 | "ui/views/NavigationDrawer", |
| 57 | "ui/views/Elevation/ElevationBasic", |
| 58 | "ui/views/Elevation/ElevationDrag", |
| 59 | "ui/views/Clipping/ClippingBasic", |
Naoki Ishihara | a6351e5 | 2014-08-11 12:35:55 -0700 | [diff] [blame] | 60 | "ui/views/FloatingActionButton/FloatingActionButtonBasic", |
| 61 | "ui/views/RevealEffect/RevealEffectBasic", |
Trevor Johns | f47778e | 2014-06-19 17:45:06 -0700 | [diff] [blame] | 62 | "background/JobScheduler", |
Trevor Johns | c88240a | 2014-09-16 19:32:57 -0700 | [diff] [blame] | 63 | "ui/views/RecyclerView", |
| 64 | "ui/views/CardView", |
Renato Mangini | ebeca0e | 2014-11-11 17:55:39 -0800 | [diff] [blame] | 65 | "notification/LNotifications", |
| 66 | "notification/MessagingService", |
Trevor Johns | c88240a | 2014-09-16 19:32:57 -0700 | [diff] [blame] | 67 | "ui/DrawableTinting", |
| 68 | "ui/Interpolator", |
Trevor Johns | 0755123 | 2014-10-16 16:44:28 -0700 | [diff] [blame] | 69 | "media/HdrViewfinder", |
| 70 | "ui/activitytasks/DocumentCentricApps", |
| 71 | "ui/activitytasks/DocumentCentricRelinquishIdentity", |
| 72 | "admin/AppRestrictionEnforcer", |
| 73 | "admin/AppRestrictionSchema", |
Trevor Johns | 92fd62a | 2014-10-21 19:50:22 -0700 | [diff] [blame] | 74 | "connectivity/bluetooth/BluetoothChat", |
Takeshi Hagikura | 035641e | 2014-10-17 10:48:19 +0900 | [diff] [blame] | 75 | "wearable/wear/AgendaData", |
| 76 | "wearable/wear/DataLayer", |
| 77 | "wearable/wear/DelayedConfirmation", |
| 78 | "wearable/wear/ElizaChat", |
Takeshi Hagikura | 035641e | 2014-10-17 10:48:19 +0900 | [diff] [blame] | 79 | "wearable/wear/FindMyPhone", |
| 80 | "wearable/wear/Flashlight", |
| 81 | "wearable/wear/Geofencing", |
| 82 | "wearable/wear/GridViewPager", |
| 83 | "wearable/wear/JumpingJack", |
| 84 | "wearable/wear/Notifications", |
| 85 | "wearable/wear/Quiz", |
| 86 | "wearable/wear/RecipeAssistant", |
| 87 | "wearable/wear/SkeletonWearableApp", |
| 88 | "wearable/wear/SpeedTracker", |
Trevor Johns | ebff27d | 2014-10-24 18:29:17 -0700 | [diff] [blame] | 89 | "wearable/wear/SynchronizedNotifications", |
Takeshi Hagikura | 035641e | 2014-10-17 10:48:19 +0900 | [diff] [blame] | 90 | "wearable/wear/Timer", |
Trevor Johns | 02b7c5f | 2014-11-20 16:26:17 -0800 | [diff] [blame] | 91 | "wearable/wear/WatchViewStub", |
| 92 | "wearable/wear/WatchFace", |
Trevor Johns | c90e4cf | 2014-12-11 15:13:45 -0800 | [diff] [blame] | 93 | "content/webview/PermissionRequest", |
| 94 | "content/documentsUi/DirectorySelection", |
| 95 | "system/AppUsageStatistics", |
| 96 | "media/ScreenCapture", |
Trevor Johns | 97b2cfe | 2015-03-30 15:55:50 -0700 | [diff] [blame] | 97 | "admin/NfcProvisioning", |
| 98 | "admin/DeviceOwner", |
| 99 | "wearable/wear/XYZTouristAttractions", |
Clare Bayley | a78545c | 2015-05-05 16:07:02 -0700 | [diff] [blame] | 100 | "connectivity/bluetooth/BluetoothAdvertisements", |
Trevor Johns | 7e6f96a | 2015-05-12 12:16:01 -0700 | [diff] [blame] | 101 | "wearable/wear/AlwaysOn", |
Trevor Johns | 9d37fdb | 2015-05-28 10:38:00 -0700 | [diff] [blame] | 102 | "media/Camera2Raw", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 103 | ] |
| 104 | |
| 105 | List<String> taskNames = [ |
| 106 | "clean", |
| 107 | "refresh", |
| 108 | "build", |
| 109 | "emitAnt", |
| 110 | "emitGradle", |
| 111 | "emitBrowseable", |
Alexander Lucas | 1d31e4f | 2013-10-30 18:43:56 -0700 | [diff] [blame] | 112 | "emitGradleZip", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 113 | ] |
| 114 | |
| 115 | taskNames.each { taskName -> |
| 116 | def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName) |
| 117 | println task |
| 118 | samples.each { sample -> |
| 119 | File sampleDir = new File(sample) |
| 120 | task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", { |
| 121 | buildFile = "${sample}/build.gradle" |
| 122 | dir = sample |
| 123 | tasks = [taskName] |
| 124 | }) |
| 125 | } |
| 126 | } |