blob: 34fd2496a5d5a853f370346664d84d10dce896d5 [file] [log] [blame]
List<String> samples = [
"security/keystore/BasicAndroidKeyStore",
"connectivity/sync/BasicSyncAdapter",
"connectivity/network/NetworkConnect",
"connectivity/network/BasicNetworking",
"connectivity/bluetooth/BluetoothLeGatt",
"content/multiuser/AppRestrictions",
"content/contacts/BasicContactables",
"content/documentsUi/StorageClient",
"content/documentsUi/StorageProvider",
"views/TextLinkify",
"input/gestures/BasicGestureDetect",
"input/multitouch/BasicMultitouch",
"testing/ActivityInstrumentation",
"media/MediaRecorder",
"media/BasicMediaRouter",
"media/BasicMediaDecoder",
"ui/holo/BorderlessButtons",
"ui/accessibility/BasicAccessibility",
"ui/lists/CustomChoiceList",
"ui/views/TextSwitcher",
"ui/views/HorizontalPaging",
"ui/actionbarcompat/ActionBarCompat-Basic",
"ui/actionbarcompat/ActionBarCompat-Styled",
"ui/actionbarcompat/ActionBarCompat-ListPopupMenu",
"ui/actionbarcompat/ActionBarCompat-ShareActionProvider",
"ui/notifications/BasicNotifications",
"ui/notifications/CustomNotifications",
"ui/actionbar/DoneBar",
"ui/graphics/PdfRendererBasic",
"ui/window/BasicImmersiveMode",
"ui/window/AdvancedImmersiveMode",
"ui/window/ImmersiveMode",
"background/alarms/RepeatingAlarm",
"renderScript/BasicRenderScript",
"renderScript/RenderScriptIntrinsic",
"ui/views/SlidingTabs/SlidingTabsBasic",
"ui/views/SlidingTabs/SlidingTabsColors",
"connectivity/nfc/CardEmulation",
"connectivity/nfc/CardReader",
"sensors/BatchStepSensor",
"ui/graphics/DisplayingBitmaps",
"ui/transition/AdapterTransition",
"ui/transition/BasicTransition",
"ui/transition/CustomTransition",
"ui/transition/FragmentTransition",
"ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic",
"ui/views/SwipeRefreshLayout/SwipeRefreshListFragment",
"ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews",
"media/MediaRouter",
"admin/BasicManagedProfile",
"media/Camera2Basic",
"media/Camera2Video",
"ui/activityscenetransition/ActivitySceneTransitionBasic",
"ui/views/NavigationDrawer",
"ui/views/Elevation/ElevationBasic",
"ui/views/Elevation/ElevationDrag",
"ui/views/Clipping/ClippingBasic",
"ui/views/FloatingActionButton/FloatingActionButtonBasic",
"ui/views/RevealEffect/RevealEffectBasic",
"background/JobScheduler",
"wearable/wear/SynchronizedNotifications",
"ui/views/RecyclerView",
"ui/views/CardView",
"ui/notifications/LNotifications",
"ui/DrawableTinting",
"ui/Interpolator",
]
List<String> taskNames = [
"clean",
"refresh",
"build",
"emitAnt",
"emitGradle",
"emitBrowseable",
"emitGradleZip",
]
taskNames.each { taskName ->
def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName)
println task
samples.each { sample ->
File sampleDir = new File(sample)
task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", {
buildFile = "${sample}/build.gradle"
dir = sample
tasks = [taskName]
})
}
}