Home | History | Annotate | Download | only in WearComplicationProvidersTestSuite
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3  Copyright 2017 The Android Open Source Project
      4 
      5  Licensed under the Apache License, Version 2.0 (the "License");
      6  you may not use this file except in compliance with the License.
      7  You may obtain a copy of the License at
      8 
      9      http://www.apache.org/licenses/LICENSE-2.0
     10 
     11  Unless required by applicable law or agreed to in writing, software
     12  distributed under the License is distributed on an "AS IS" BASIS,
     13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  See the License for the specific language governing permissions and
     15  limitations under the License.
     16 -->
     17 <sample>
     18     <name>WearComplicationProvidersTestSuite</name>
     19     <group>Wearable</group>
     20     <package>com.example.android.wearable.wear.wearcomplicationproviderstestsuite</package>
     21 
     22     <minSdk>18</minSdk>
     23     <targetSdkVersion>28</targetSdkVersion>
     24 
     25     <minSdkVersionWear>23</minSdkVersionWear>
     26     <targetSdkVersionWear>28</targetSdkVersionWear>
     27 
     28     <wearable>
     29         <has_handheld_app>false</has_handheld_app>
     30     </wearable>
     31 
     32     <androidX>true</androidX>
     33 
     34     <dependency_wearable>androidx.appcompat:appcompat:1.0.2</dependency_wearable>
     35     <dependency_wearable>androidx.legacy:legacy-support-v13:1.0.0</dependency_wearable>
     36 
     37     <strings>
     38         <intro>
     39 <![CDATA[
     40 Complication Test Suite is a set of complication providers that provide dummy data and it can be
     41 used to test how different types of complications render on a watch face.
     42 ]]>
     43         </intro>
     44     </strings>
     45 
     46     <template src="base-build" />
     47     <template src="Wear" />
     48 
     49     <metadata>
     50         <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} -->
     51         <status>PUBLISHED</status>
     52         <!-- See http://go/sample-categories for details on the next 4 fields. -->
     53         <!-- Most samples just need to udpate the Categories field. This is a comma-
     54              seperated list of topic tags. Unlike the old category system, samples
     55              may have multiple categories, so feel free to add extras. Try to avoid
     56              simply tagging everything with "UI". :)-->
     57         <categories>Wearable</categories>
     58         <technologies>Android</technologies>
     59         <languages>Java</languages>
     60         <solutions>Mobile</solutions>
     61         <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} -->
     62         <!-- Beginner is for "getting started" type content, or essential content.
     63              (e.g. "Hello World", activities, intents)
     64 
     65              Intermediate is for content that covers material a beginner doesn't need
     66              to know, but that a skilled developer is expected to know.
     67              (e.g. services, basic styles and theming, sync adapters)
     68 
     69              Advanced is for highly technical content geared towards experienced developers.
     70              (e.g. performance optimizations, custom views, bluetooth)
     71 
     72              Expert is reserved for highly technical or specialized content, and should
     73              be used sparingly. (e.g. VPN clients, SELinux, custom instrumentation runners) -->
     74         <level>INTERMEDIATE</level>
     75         <!-- Dimensions: 512x512, PNG fomrat -->
     76         <icon>screenshots/icon-web.png</icon>
     77         <!-- Path to screenshots. Use <img> tags for each. -->
     78         <screenshots>
     79             <img>screenshots/wear-1.png</img>
     80             <img>screenshots/wear-2.png</img>
     81         </screenshots>
     82         <!-- List of APIs that this sample should be cross-referenced under. Use <android>
     83         for fully-qualified Framework class names ("android:" namespace).
     84 
     85         Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation
     86         for more details. -->
     87         <api_refs>
     88             <android>android.support.wearable.complications.ComplicationData</android>
     89             <android>android.support.wearable.complications.ComplicationManager</android>
     90             <android>android.support.wearable.complications.ComplicationProviderService</android>
     91             <android>android.support.wearable.complications.ComplicationText</android>
     92             <android>android.support.wearable.complications.ProviderUpdateRequester</android>
     93         </api_refs>
     94 
     95         <!-- 1-3 line description of the sample here.
     96 
     97             Avoid simply rearranging the sample's title. What does this sample actually
     98             accomplish, and how does it do it? -->
     99         <description>
    100 <![CDATA[
    101 Complication Test Suite is a set of complication providers that provide dummy data and it can be
    102 used to test how different types of complications render on a watch face.
    103 ]]>
    104         </description>
    105 
    106 
    107         <intro>
    108             <![CDATA[
    109 Steps for trying out the sample:
    110 * Compile and install the wearable app onto your Wear device or emulator (for Wear scenario).
    111 
    112 * This sample does not have a main Activity (just Services that provide the complication data).
    113 Therefore, you may see an error next to the 'Run' button. To fix, click on the
    114 "Wearable" dropdown next to the 'Run' button and select 'Edit Configurations'. Under the
    115 'Launch Options', change the 'Launch' field from 'Default APK' to 'Nothing' and save.
    116 
    117 This sample provides dummy data for testing the complications UI in your watch face. After
    118 selecting a type from your watch face configuration Activity, you can tap on the complications to
    119 see more options.
    120 
    121 The Wear app demonstrates the use of [ComplicationData][1], [ComplicationManager][2],
    122 [ComplicationProviderService][3], [ComplicationText][4], and [ProviderUpdateRequester][5].
    123 
    124 [1]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html
    125 [2]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationManager.html
    126 [3]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html
    127 [4]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html
    128 [5]: https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester.html
    129 ]]>
    130         </intro>
    131     </metadata>
    132 </sample>
    133