Home | History | Annotate | Download | only in android
      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",
     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-Styled",
     24 "ui/actionbarcompat/ActionBarCompat-ListPopupMenu",
     25 "ui/actionbarcompat/ActionBarCompat-ShareActionProvider",
     26 "ui/actionbarcompat/ActionBarCompat-Basic",
     27 "ui/notifications/BasicNotifications",
     28 "ui/notifications/CustomNotifications",
     29 "ui/actionbar/DoneBar",
     30 "ui/window/BasicImmersiveMode",
     31 "ui/window/AdvancedImmersiveMode",
     32 "ui/window/ImmersiveMode",
     33 "background/alarms/RepeatingAlarm",
     34 "renderScript/BasicRenderScript",
     35 "renderScript/RenderScriptIntrinsic",
     36 "ui/views/SlidingTabs/SlidingTabsBasic",
     37 "ui/views/SlidingTabs/SlidingTabsColors",
     38 "connectivity/nfc/CardEmulation",
     39 "connectivity/nfc/CardReader",
     40 "sensors/BatchStepSensor"
     41 
     42 ]
     43 
     44 List<String> taskNames = [
     45     "clean",
     46     "refresh",
     47     "build",
     48     "emitAnt",
     49     "emitGradle",
     50     "emitBrowseable",
     51     "emitGradleZip",
     52 ]
     53 
     54 taskNames.each { taskName ->
     55     def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName)
     56     println task
     57     samples.each { sample ->
     58         File sampleDir = new File(sample)
     59         task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", {
     60             buildFile = "${sample}/build.gradle"
     61             dir = sample
     62             tasks = [taskName]
     63         })
     64     }
     65 }
     66 
     67