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-Basic",
     24 "ui/actionbarcompat/ActionBarCompat-Styled",
     25 "ui/actionbarcompat/ActionBarCompat-ListPopupMenu",
     26 "ui/actionbarcompat/ActionBarCompat-ShareActionProvider",
     27 "ui/notifications/BasicNotifications",
     28 "ui/notifications/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/MediaRouter",
     51 "media/MediaEffects",
     52 "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",
     60 "ui/views/FloatingActionButton/FloatingActionButtonBasic",
     61 "ui/views/RevealEffect/RevealEffectBasic",
     62 "background/JobScheduler",
     63 "wearable/wear/SynchronizedNotifications",
     64 "ui/views/RecyclerView",
     65 "ui/views/CardView",
     66 "ui/notifications/LNotifications",
     67 "ui/DrawableTinting",
     68 "ui/Interpolator",
     69 "media/HdrViewfinder",
     70 "ui/activitytasks/DocumentCentricApps",
     71 "ui/activitytasks/DocumentCentricRelinquishIdentity",
     72 "admin/AppRestrictionEnforcer",
     73 "admin/AppRestrictionSchema",
     74 "bluetooth/BluetoothChat",
     75 "wearable/wear/AgendaData",
     76 "wearable/wear/DataLayer",
     77 "wearable/wear/DelayedConfirmation",
     78 "wearable/wear/ElizaChat",
     79 "wearable/wear/EmbeddedApp",
     80 "wearable/wear/FindMyPhone",
     81 "wearable/wear/Flashlight",
     82 "wearable/wear/Geofencing",
     83 "wearable/wear/GridViewPager",
     84 "wearable/wear/JumpingJack",
     85 "wearable/wear/Notifications",
     86 "wearable/wear/Quiz",
     87 "wearable/wear/RecipeAssistant",
     88 "wearable/wear/SkeletonWearableApp",
     89 "wearable/wear/SpeedTracker",
     90 "wearable/wear/Timer",
     91 "wearable/wear/WatchViewStub"
     92 ]
     93 
     94 List<String> taskNames = [
     95     "clean",
     96     "refresh",
     97     "build",
     98     "emitAnt",
     99     "emitGradle",
    100     "emitBrowseable",
    101     "emitGradleZip",
    102 ]
    103 
    104 taskNames.each { taskName ->
    105     def task = project.hasProperty(taskName) ? project.tasks[taskName] : project.task(taskName)
    106     println task
    107     samples.each { sample ->
    108         File sampleDir = new File(sample)
    109         task.dependsOn project.task([type: GradleBuild], "${sample}_${taskName}", {
    110             buildFile = "${sample}/build.gradle"
    111             dir = sample
    112             tasks = [taskName]
    113         })
    114     }
    115 }
    116 
    117