blob: 5c72a6fcc540d7b5894075c85ed755c5600712af [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",
26"ui/actionbarcompat/ActionBarCompat-ShareActionProvider",
Renato Manginiebeca0e2014-11-11 17:55:39 -080027"notification/BasicNotifications",
28"notification/CustomNotifications",
Trevor Johnsa6b46362013-10-30 16:38:01 -070029"ui/actionbar/DoneBar",
Naoki Ishiharaa6351e52014-08-11 12:35:55 -070030"ui/graphics/PdfRendererBasic",
Trevor Johnsa6b46362013-10-30 16:38:01 -070031"ui/window/BasicImmersiveMode",
32"ui/window/AdvancedImmersiveMode",
33"ui/window/ImmersiveMode",
Alexander Lucas07f4ce32014-02-06 13:49:42 -080034"background/alarms/RepeatingAlarm",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070035"renderScript/BasicRenderScript",
36"renderScript/RenderScriptIntrinsic",
Alexander Lucas07f4ce32014-02-06 13:49:42 -080037"ui/views/SlidingTabs/SlidingTabsBasic",
38"ui/views/SlidingTabs/SlidingTabsColors",
Trevor Johnsed5c50b2015-03-24 01:08:48 -070039"connectivity/nfc/BeamLargeFiles",
Alexander Lucas07f4ce32014-02-06 13:49:42 -080040"connectivity/nfc/CardEmulation",
41"connectivity/nfc/CardReader",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070042"sensors/BatchStepSensor",
Alexander Lucase9467ad2014-03-06 15:27:22 -080043"ui/graphics/DisplayingBitmaps",
Alexander Lucase9467ad2014-03-06 15:27:22 -080044"ui/transition/BasicTransition",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070045"ui/transition/CustomTransition",
Alexander Lucasb6bfd832014-04-10 13:41:32 -070046"ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic",
47"ui/views/SwipeRefreshLayout/SwipeRefreshListFragment",
48"ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews",
Renato Manginiebeca0e2014-11-11 17:55:39 -080049"media/MediaBrowserService",
Trevor Johnsf47778e2014-06-19 17:45:06 -070050"media/MediaRouter",
Trevor Johnsef0bc702014-10-17 09:21:19 -070051"media/MediaEffects",
Trevor Johnsf47778e2014-06-19 17:45:06 -070052"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 Ishiharaa6351e52014-08-11 12:35:55 -070060"ui/views/FloatingActionButton/FloatingActionButtonBasic",
61"ui/views/RevealEffect/RevealEffectBasic",
Trevor Johnsf47778e2014-06-19 17:45:06 -070062"background/JobScheduler",
Trevor Johnsc88240a2014-09-16 19:32:57 -070063"ui/views/RecyclerView",
64"ui/views/CardView",
Renato Manginiebeca0e2014-11-11 17:55:39 -080065"notification/LNotifications",
66"notification/MessagingService",
Trevor Johnsc88240a2014-09-16 19:32:57 -070067"ui/DrawableTinting",
68"ui/Interpolator",
Trevor Johns07551232014-10-16 16:44:28 -070069"media/HdrViewfinder",
70"ui/activitytasks/DocumentCentricApps",
71"ui/activitytasks/DocumentCentricRelinquishIdentity",
72"admin/AppRestrictionEnforcer",
73"admin/AppRestrictionSchema",
Trevor Johns92fd62a2014-10-21 19:50:22 -070074"connectivity/bluetooth/BluetoothChat",
Takeshi Hagikura035641e2014-10-17 10:48:19 +090075"wearable/wear/AgendaData",
76"wearable/wear/DataLayer",
77"wearable/wear/DelayedConfirmation",
78"wearable/wear/ElizaChat",
Takeshi Hagikura035641e2014-10-17 10:48:19 +090079"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 Johnsebff27d2014-10-24 18:29:17 -070089"wearable/wear/SynchronizedNotifications",
Takeshi Hagikura035641e2014-10-17 10:48:19 +090090"wearable/wear/Timer",
Trevor Johns02b7c5f2014-11-20 16:26:17 -080091"wearable/wear/WatchViewStub",
92"wearable/wear/WatchFace",
Trevor Johnsc90e4cf2014-12-11 15:13:45 -080093"content/webview/PermissionRequest",
94"content/documentsUi/DirectorySelection",
95"system/AppUsageStatistics",
96"media/ScreenCapture",
Trevor Johns97b2cfe2015-03-30 15:55:50 -070097"admin/NfcProvisioning",
98"admin/DeviceOwner",
99"wearable/wear/XYZTouristAttractions",
Trevor Johnsa6b46362013-10-30 16:38:01 -0700100]
101
102List<String> taskNames = [
103 "clean",
104 "refresh",
105 "build",
106 "emitAnt",
107 "emitGradle",
108 "emitBrowseable",
Alexander Lucas1d31e4f2013-10-30 18:43:56 -0700109 "emitGradleZip",
Trevor Johnsa6b46362013-10-30 16:38:01 -0700110]
111
112taskNames.each { taskName ->
113 def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName)
114 println task
115 samples.each { sample ->
116 File sampleDir = new File(sample)
117 task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", {
118 buildFile = "${sample}/build.gradle"
119 dir = sample
120 tasks = [taskName]
121 })
122 }
123}