blob: 71eedaca6e98f625cc8681fcac6f3c088d01abfd [file] [log] [blame]
Trevor Johnsa6b46362013-10-30 16:38:01 -07001List<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 Lucas06bb7eb2013-10-30 15:13:29 -070010"content/documentsUi/StorageProvider",
Trevor Johnsa6b46362013-10-30 16:38:01 -070011"views/TextLinkify",
12"input/gestures/BasicGestureDetect",
13"input/multitouch/BasicMultitouch",
14"testing/ActivityInstrumentation",
Alexander Lucas06bb7eb2013-10-30 15:13:29 -070015"media/MediaRecorder",
Trevor Johnsa6b46362013-10-30 16:38:01 -070016"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 Lucasb6bfd832014-04-10 13:41:32 -070023"ui/actionbarcompat/ActionBarCompat-Basic",
Alexander Lucas3ce4dfd2013-11-21 11:29:59 -080024"ui/actionbarcompat/ActionBarCompat-Styled",
25"ui/actionbarcompat/ActionBarCompat-ListPopupMenu",
Renato Manginiebeca0e2014-11-11 17:55:39 -080026"notification/BasicNotifications",
27"notification/CustomNotifications",
Trevor Johnsa6b46362013-10-30 16:38:01 -070028"ui/actionbar/DoneBar",
Naoki Ishiharaa6351e52014-08-11 12:35:55 -070029"ui/graphics/PdfRendererBasic",
Trevor Johnsa6b46362013-10-30 16:38:01 -070030"ui/window/BasicImmersiveMode",
31"ui/window/AdvancedImmersiveMode",
32"ui/window/ImmersiveMode",
Alexander Lucas07f4ce32014-02-06 13:49:42 -080033"background/alarms/RepeatingAlarm",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070034"renderScript/BasicRenderScript",
35"renderScript/RenderScriptIntrinsic",
Alexander Lucas07f4ce32014-02-06 13:49:42 -080036"ui/views/SlidingTabs/SlidingTabsBasic",
37"ui/views/SlidingTabs/SlidingTabsColors",
Trevor Johnsed5c50b2015-03-24 01:08:48 -070038"connectivity/nfc/BeamLargeFiles",
Alexander Lucas07f4ce32014-02-06 13:49:42 -080039"connectivity/nfc/CardEmulation",
40"connectivity/nfc/CardReader",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070041"sensors/BatchStepSensor",
Alexander Lucase9467ad2014-03-06 15:27:22 -080042"ui/graphics/DisplayingBitmaps",
Alexander Lucase9467ad2014-03-06 15:27:22 -080043"ui/transition/BasicTransition",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070044"ui/transition/CustomTransition",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070045"ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic",
46"ui/views/SwipeRefreshLayout/SwipeRefreshListFragment",
47"ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews",
Renato Manginiebeca0e2014-11-11 17:55:39 -080048"media/MediaBrowserService",
Trevor Johnsf47778e2014-06-19 17:45:06 -070049"media/MediaRouter",
Trevor Johnsef0bc702014-10-17 09:21:19 -070050"media/MediaEffects",
Trevor Johnsf47778e2014-06-19 17:45:06 -070051"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 Ishiharaa6351e52014-08-11 12:35:55 -070059"ui/views/FloatingActionButton/FloatingActionButtonBasic",
60"ui/views/RevealEffect/RevealEffectBasic",
Trevor Johnsf47778e2014-06-19 17:45:06 -070061"background/JobScheduler",
Trevor Johnsc88240a2014-09-16 19:32:57 -070062"ui/views/RecyclerView",
63"ui/views/CardView",
Renato Manginiebeca0e2014-11-11 17:55:39 -080064"notification/LNotifications",
65"notification/MessagingService",
Trevor Johnsc88240a2014-09-16 19:32:57 -070066"ui/DrawableTinting",
67"ui/Interpolator",
Trevor Johns07551232014-10-16 16:44:28 -070068"media/HdrViewfinder",
69"ui/activitytasks/DocumentCentricApps",
70"ui/activitytasks/DocumentCentricRelinquishIdentity",
71"admin/AppRestrictionEnforcer",
72"admin/AppRestrictionSchema",
Trevor Johns92fd62a2014-10-21 19:50:22 -070073"connectivity/bluetooth/BluetoothChat",
Takeshi Hagikura035641e2014-10-17 10:48:19 +090074"wearable/wear/AgendaData",
75"wearable/wear/DataLayer",
76"wearable/wear/DelayedConfirmation",
77"wearable/wear/ElizaChat",
Takeshi Hagikura035641e2014-10-17 10:48:19 +090078"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 Johnsebff27d2014-10-24 18:29:17 -070088"wearable/wear/SynchronizedNotifications",
Takeshi Hagikura035641e2014-10-17 10:48:19 +090089"wearable/wear/Timer",
Trevor Johns02b7c5f2014-11-20 16:26:17 -080090"wearable/wear/WatchViewStub",
91"wearable/wear/WatchFace",
Trevor Johnsc90e4cf2014-12-11 15:13:45 -080092"content/webview/PermissionRequest",
93"content/documentsUi/DirectorySelection",
94"system/AppUsageStatistics",
95"media/ScreenCapture",
Trevor Johns97b2cfe2015-03-30 15:55:50 -070096"admin/NfcProvisioning",
97"admin/DeviceOwner",
98"wearable/wear/XYZTouristAttractions",
Clare Bayleya78545c2015-05-05 16:07:02 -070099"connectivity/bluetooth/BluetoothAdvertisements",
Trevor Johns7e6f96a2015-05-12 12:16:01 -0700100"wearable/wear/AlwaysOn",
Trevor Johns415e5ce2015-05-27 12:21:44 -0700101"security/ConfirmCredential",
102"security/FingerprintDialog",
103"system/RuntimePermissions",
104"system/RuntimePermissionsBasic",
Trevor Johns89535232016-01-07 18:50:06 -0800105"wearable/wear/RuntimePermissionsWear",
Trevor Johns415e5ce2015-05-27 12:21:44 -0700106"notification/ActiveNotifications",
107"media/Camera2Raw",
108"content/AutoBackupForApps",
Jan-Felix Schmakeit9c928572016-03-01 19:12:05 +1100109"ui/window/MultiWindowPlayground",
Trevor Johnsdea54462016-03-08 15:50:43 -0800110"content/documentsUi/ScopedDirectoryAccess",
111"security/DirectBoot",
Trevor Johnsec5f8542015-08-28 17:31:52 -0700112"content/DirectShare",
113"media/MidiScope",
114"media/MidiSynth",
Trevor Johns1a0b1952015-10-02 14:01:53 -0700115"security/AsymmetricFingerprintDialog",
Trevor Johns44c699b2015-11-17 18:19:40 -0800116"wearable/wear/WearSpeakerSample",
Trevor Johns4ee836e2016-05-17 21:56:56 -0700117"wearable/wear/WearDrawers",
Jan-Felix Schmakeit0bf3ed82016-03-02 19:06:48 +1100118"ui/window/DragAndDropAcrossApps",
Trevor Johns4cacafe2016-09-28 19:04:57 -0700119"wearable/wear/WearNotifications",
Trevor Johns16825c22016-10-18 01:04:22 -0700120"system/AppShortcuts",
Trevor Johnseb25fe92016-10-18 02:56:07 -0700121"input/keyboard/CommitContentSampleApp",
122"input/keyboard/CommitContentSampleIME",
Takeshi Hagikurab703d262016-10-19 14:25:51 +0900123"content/ShareActionProvider",
Trevor Johns9dd464c2016-12-13 01:24:59 -0800124"wearable/wear/WearVerifyRemoteApp",
125"wearable/wear/WearHighBandwidthNetworking",
Trevor Johnsa6b46362013-10-30 16:38:01 -0700126]
127
128List<String> taskNames = [
129 "clean",
130 "refresh",
Trevor Johns4d25faa2016-06-15 14:20:07 -0700131 "assembleDebug",
Trevor Johnsa6b46362013-10-30 16:38:01 -0700132 "build",
Trevor Johnsc707b682016-06-17 11:47:23 -0700133 "check",
134 "connectedCheck",
135 "deviceCheck",
Trevor Johnsa6b46362013-10-30 16:38:01 -0700136 "emitAnt",
137 "emitGradle",
138 "emitBrowseable",
Alexander Lucas1d31e4f2013-10-30 18:43:56 -0700139 "emitGradleZip",
Trevor Johnsa6b46362013-10-30 16:38:01 -0700140]
141
142taskNames.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}