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", |
Renato Mangini | ebeca0e | 2014-11-11 17:55:39 -0800 | [diff] [blame] | 26 | "notification/BasicNotifications", |
| 27 | "notification/CustomNotifications", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 28 | "ui/actionbar/DoneBar", |
Naoki Ishihara | a6351e5 | 2014-08-11 12:35:55 -0700 | [diff] [blame] | 29 | "ui/graphics/PdfRendererBasic", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 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", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 34 | "renderScript/BasicRenderScript", |
| 35 | "renderScript/RenderScriptIntrinsic", |
Alexander Lucas | 07f4ce3 | 2014-02-06 13:49:42 -0800 | [diff] [blame] | 36 | "ui/views/SlidingTabs/SlidingTabsBasic", |
| 37 | "ui/views/SlidingTabs/SlidingTabsColors", |
Trevor Johns | ed5c50b | 2015-03-24 01:08:48 -0700 | [diff] [blame] | 38 | "connectivity/nfc/BeamLargeFiles", |
Alexander Lucas | 07f4ce3 | 2014-02-06 13:49:42 -0800 | [diff] [blame] | 39 | "connectivity/nfc/CardEmulation", |
| 40 | "connectivity/nfc/CardReader", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 41 | "sensors/BatchStepSensor", |
Alexander Lucas | e9467ad | 2014-03-06 15:27:22 -0800 | [diff] [blame] | 42 | "ui/graphics/DisplayingBitmaps", |
Alexander Lucas | e9467ad | 2014-03-06 15:27:22 -0800 | [diff] [blame] | 43 | "ui/transition/BasicTransition", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 44 | "ui/transition/CustomTransition", |
Alexander Lucas | b6bfd83 | 2014-04-10 13:41:32 -0700 | [diff] [blame] | 45 | "ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic", |
| 46 | "ui/views/SwipeRefreshLayout/SwipeRefreshListFragment", |
| 47 | "ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews", |
Renato Mangini | ebeca0e | 2014-11-11 17:55:39 -0800 | [diff] [blame] | 48 | "media/MediaBrowserService", |
Trevor Johns | f47778e | 2014-06-19 17:45:06 -0700 | [diff] [blame] | 49 | "media/MediaRouter", |
Trevor Johns | ef0bc70 | 2014-10-17 09:21:19 -0700 | [diff] [blame] | 50 | "media/MediaEffects", |
Trevor Johns | f47778e | 2014-06-19 17:45:06 -0700 | [diff] [blame] | 51 | "admin/BasicManagedProfile", |
| 52 | "media/Camera2Basic", |
| 53 | "media/Camera2Video", |
| 54 | "ui/activityscenetransition/ActivitySceneTransitionBasic", |
| 55 | "ui/views/NavigationDrawer", |
| 56 | "ui/views/Elevation/ElevationBasic", |
| 57 | "ui/views/Elevation/ElevationDrag", |
| 58 | "ui/views/Clipping/ClippingBasic", |
Naoki Ishihara | a6351e5 | 2014-08-11 12:35:55 -0700 | [diff] [blame] | 59 | "ui/views/FloatingActionButton/FloatingActionButtonBasic", |
| 60 | "ui/views/RevealEffect/RevealEffectBasic", |
Trevor Johns | f47778e | 2014-06-19 17:45:06 -0700 | [diff] [blame] | 61 | "background/JobScheduler", |
Trevor Johns | c88240a | 2014-09-16 19:32:57 -0700 | [diff] [blame] | 62 | "ui/views/RecyclerView", |
| 63 | "ui/views/CardView", |
Renato Mangini | ebeca0e | 2014-11-11 17:55:39 -0800 | [diff] [blame] | 64 | "notification/LNotifications", |
| 65 | "notification/MessagingService", |
Trevor Johns | c88240a | 2014-09-16 19:32:57 -0700 | [diff] [blame] | 66 | "ui/DrawableTinting", |
| 67 | "ui/Interpolator", |
Trevor Johns | 0755123 | 2014-10-16 16:44:28 -0700 | [diff] [blame] | 68 | "media/HdrViewfinder", |
| 69 | "ui/activitytasks/DocumentCentricApps", |
| 70 | "ui/activitytasks/DocumentCentricRelinquishIdentity", |
| 71 | "admin/AppRestrictionEnforcer", |
| 72 | "admin/AppRestrictionSchema", |
Trevor Johns | 92fd62a | 2014-10-21 19:50:22 -0700 | [diff] [blame] | 73 | "connectivity/bluetooth/BluetoothChat", |
Takeshi Hagikura | 035641e | 2014-10-17 10:48:19 +0900 | [diff] [blame] | 74 | "wearable/wear/AgendaData", |
| 75 | "wearable/wear/DataLayer", |
| 76 | "wearable/wear/DelayedConfirmation", |
| 77 | "wearable/wear/ElizaChat", |
Takeshi Hagikura | 035641e | 2014-10-17 10:48:19 +0900 | [diff] [blame] | 78 | "wearable/wear/FindMyPhone", |
| 79 | "wearable/wear/Flashlight", |
| 80 | "wearable/wear/Geofencing", |
| 81 | "wearable/wear/GridViewPager", |
| 82 | "wearable/wear/JumpingJack", |
| 83 | "wearable/wear/Notifications", |
| 84 | "wearable/wear/Quiz", |
| 85 | "wearable/wear/RecipeAssistant", |
| 86 | "wearable/wear/SkeletonWearableApp", |
| 87 | "wearable/wear/SpeedTracker", |
Trevor Johns | ebff27d | 2014-10-24 18:29:17 -0700 | [diff] [blame] | 88 | "wearable/wear/SynchronizedNotifications", |
Takeshi Hagikura | 035641e | 2014-10-17 10:48:19 +0900 | [diff] [blame] | 89 | "wearable/wear/Timer", |
Trevor Johns | 02b7c5f | 2014-11-20 16:26:17 -0800 | [diff] [blame] | 90 | "wearable/wear/WatchViewStub", |
| 91 | "wearable/wear/WatchFace", |
Trevor Johns | c90e4cf | 2014-12-11 15:13:45 -0800 | [diff] [blame] | 92 | "content/webview/PermissionRequest", |
| 93 | "content/documentsUi/DirectorySelection", |
| 94 | "system/AppUsageStatistics", |
| 95 | "media/ScreenCapture", |
Trevor Johns | 97b2cfe | 2015-03-30 15:55:50 -0700 | [diff] [blame] | 96 | "admin/NfcProvisioning", |
| 97 | "admin/DeviceOwner", |
| 98 | "wearable/wear/XYZTouristAttractions", |
Clare Bayley | a78545c | 2015-05-05 16:07:02 -0700 | [diff] [blame] | 99 | "connectivity/bluetooth/BluetoothAdvertisements", |
Trevor Johns | 7e6f96a | 2015-05-12 12:16:01 -0700 | [diff] [blame] | 100 | "wearable/wear/AlwaysOn", |
Trevor Johns | 415e5ce | 2015-05-27 12:21:44 -0700 | [diff] [blame] | 101 | "security/ConfirmCredential", |
| 102 | "security/FingerprintDialog", |
| 103 | "system/RuntimePermissions", |
| 104 | "system/RuntimePermissionsBasic", |
Trevor Johns | 8953523 | 2016-01-07 18:50:06 -0800 | [diff] [blame] | 105 | "wearable/wear/RuntimePermissionsWear", |
Trevor Johns | 415e5ce | 2015-05-27 12:21:44 -0700 | [diff] [blame] | 106 | "notification/ActiveNotifications", |
| 107 | "media/Camera2Raw", |
| 108 | "content/AutoBackupForApps", |
Jan-Felix Schmakeit | 9c92857 | 2016-03-01 19:12:05 +1100 | [diff] [blame] | 109 | "ui/window/MultiWindowPlayground", |
Trevor Johns | dea5446 | 2016-03-08 15:50:43 -0800 | [diff] [blame] | 110 | "content/documentsUi/ScopedDirectoryAccess", |
| 111 | "security/DirectBoot", |
Trevor Johns | ec5f854 | 2015-08-28 17:31:52 -0700 | [diff] [blame] | 112 | "content/DirectShare", |
| 113 | "media/MidiScope", |
| 114 | "media/MidiSynth", |
Trevor Johns | 1a0b195 | 2015-10-02 14:01:53 -0700 | [diff] [blame] | 115 | "security/AsymmetricFingerprintDialog", |
Trevor Johns | 44c699b | 2015-11-17 18:19:40 -0800 | [diff] [blame] | 116 | "wearable/wear/WearSpeakerSample", |
Trevor Johns | 4ee836e | 2016-05-17 21:56:56 -0700 | [diff] [blame] | 117 | "wearable/wear/WearDrawers", |
Jan-Felix Schmakeit | 0bf3ed8 | 2016-03-02 19:06:48 +1100 | [diff] [blame] | 118 | "ui/window/DragAndDropAcrossApps", |
Trevor Johns | 4cacafe | 2016-09-28 19:04:57 -0700 | [diff] [blame] | 119 | "wearable/wear/WearNotifications", |
Trevor Johns | 16825c2 | 2016-10-18 01:04:22 -0700 | [diff] [blame] | 120 | "system/AppShortcuts", |
Trevor Johns | eb25fe9 | 2016-10-18 02:56:07 -0700 | [diff] [blame] | 121 | "input/keyboard/CommitContentSampleApp", |
| 122 | "input/keyboard/CommitContentSampleIME", |
Takeshi Hagikura | b703d26 | 2016-10-19 14:25:51 +0900 | [diff] [blame] | 123 | "content/ShareActionProvider", |
Trevor Johns | 9dd464c | 2016-12-13 01:24:59 -0800 | [diff] [blame] | 124 | "wearable/wear/WearVerifyRemoteApp", |
| 125 | "wearable/wear/WearHighBandwidthNetworking", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 126 | ] |
| 127 | |
| 128 | List<String> taskNames = [ |
| 129 | "clean", |
| 130 | "refresh", |
Trevor Johns | 4d25faa | 2016-06-15 14:20:07 -0700 | [diff] [blame] | 131 | "assembleDebug", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 132 | "build", |
Trevor Johns | c707b68 | 2016-06-17 11:47:23 -0700 | [diff] [blame] | 133 | "check", |
| 134 | "connectedCheck", |
| 135 | "deviceCheck", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 136 | "emitAnt", |
| 137 | "emitGradle", |
| 138 | "emitBrowseable", |
Alexander Lucas | 1d31e4f | 2013-10-30 18:43:56 -0700 | [diff] [blame] | 139 | "emitGradleZip", |
Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 140 | ] |
| 141 | |
| 142 | taskNames.each { taskName -> |
| 143 | def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName) |
| 144 | println task |
| 145 | samples.each { sample -> |
| 146 | File sampleDir = new File(sample) |
| 147 | task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", { |
| 148 | buildFile = "${sample}/build.gradle" |
| 149 | dir = sample |
| 150 | tasks = [taskName] |
| 151 | }) |
| 152 | } |
| 153 | } |