• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1List<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",
10"content/documentsUi/StorageProvider",
11"views/TextLinkify",
12"input/gestures/BasicGestureDetect",
13"input/multitouch/BasicMultitouch",
14"testing/ActivityInstrumentation",
15"media/MediaRecorder",
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",
23"ui/actionbarcompat/ActionBarCompat-Basic",
24"ui/actionbarcompat/ActionBarCompat-Styled",
25"ui/actionbarcompat/ActionBarCompat-ListPopupMenu",
26"ui/actionbarcompat/ActionBarCompat-ShareActionProvider",
27"notification/BasicNotifications",
28"notification/CustomNotifications",
29"ui/actionbar/DoneBar",
30"ui/graphics/PdfRendererBasic",
31"ui/window/BasicImmersiveMode",
32"ui/window/AdvancedImmersiveMode",
33"ui/window/ImmersiveMode",
34"background/alarms/RepeatingAlarm",
35"renderScript/BasicRenderScript",
36"renderScript/RenderScriptIntrinsic",
37"ui/views/SlidingTabs/SlidingTabsBasic",
38"ui/views/SlidingTabs/SlidingTabsColors",
39"connectivity/nfc/CardEmulation",
40"connectivity/nfc/CardReader",
41"sensors/BatchStepSensor",
42"ui/graphics/DisplayingBitmaps",
43"ui/transition/AdapterTransition",
44"ui/transition/BasicTransition",
45"ui/transition/CustomTransition",
46"ui/transition/FragmentTransition",
47"ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic",
48"ui/views/SwipeRefreshLayout/SwipeRefreshListFragment",
49"ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews",
50"media/MediaBrowserService",
51"media/MediaRouter",
52"media/MediaEffects",
53"admin/BasicManagedProfile",
54"media/Camera2Basic",
55"media/Camera2Video",
56"ui/activityscenetransition/ActivitySceneTransitionBasic",
57"ui/views/NavigationDrawer",
58"ui/views/Elevation/ElevationBasic",
59"ui/views/Elevation/ElevationDrag",
60"ui/views/Clipping/ClippingBasic",
61"ui/views/FloatingActionButton/FloatingActionButtonBasic",
62"ui/views/RevealEffect/RevealEffectBasic",
63"background/JobScheduler",
64"ui/views/RecyclerView",
65"ui/views/CardView",
66"notification/LNotifications",
67"notification/MessagingService",
68"ui/DrawableTinting",
69"ui/Interpolator",
70"media/HdrViewfinder",
71"ui/activitytasks/DocumentCentricApps",
72"ui/activitytasks/DocumentCentricRelinquishIdentity",
73"admin/AppRestrictionEnforcer",
74"admin/AppRestrictionSchema",
75"connectivity/bluetooth/BluetoothChat",
76"wearable/wear/AgendaData",
77"wearable/wear/DataLayer",
78"wearable/wear/DelayedConfirmation",
79"wearable/wear/ElizaChat",
80"wearable/wear/EmbeddedApp",
81"wearable/wear/FindMyPhone",
82"wearable/wear/Flashlight",
83"wearable/wear/Geofencing",
84"wearable/wear/GridViewPager",
85"wearable/wear/JumpingJack",
86"wearable/wear/Notifications",
87"wearable/wear/Quiz",
88"wearable/wear/RecipeAssistant",
89"wearable/wear/SkeletonWearableApp",
90"wearable/wear/SpeedTracker",
91"wearable/wear/SynchronizedNotifications",
92"wearable/wear/Timer",
93"wearable/wear/WatchViewStub",
94"wearable/wear/WatchFace",
95"content/webview/PermissionRequest",
96"content/documentsUi/DirectorySelection",
97"system/AppUsageStatistics",
98"media/ScreenCapture",
99]
100
101List<String> taskNames = [
102    "clean",
103    "refresh",
104    "build",
105    "emitAnt",
106    "emitGradle",
107    "emitBrowseable",
108    "emitGradleZip",
109]
110
111taskNames.each { taskName ->
112    def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName)
113    println task
114    samples.each { sample ->
115        File sampleDir = new File(sample)
116        task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", {
117            buildFile = "${sample}/build.gradle"
118            dir = sample
119            tasks = [taskName]
120        })
121    }
122}
123
124