• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18        package="com.example.android.wearable.watchface" >
19
20    <uses-sdk android:minSdkVersion="18"
21              android:targetSdkVersion="25" />
22
23    <!-- Permissions required by the wearable app -->
24    <uses-permission android:name="android.permission.WAKE_LOCK" />
25
26    <!-- Requests to calendar are only made on the wear side (CalendarWatchFaceService.java), so
27    no runtime permissions are needed on the phone side. -->
28    <uses-permission android:name="android.permission.READ_CALENDAR" />
29
30    <!-- Location permission used by FitDistanceWatchFaceService -->
31    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
32
33    <!-- All intent-filters for config actions must include the categories
34        com.google.android.wearable.watchface.category.COMPANION_CONFIGURATION and
35        android.intent.category.DEFAULT. -->
36    <application
37            android:allowBackup="true"
38            android:icon="@drawable/ic_launcher"
39            android:label="@string/app_name"
40            android:theme="@style/AppTheme" >
41
42        <activity
43                android:name=".AnalogAndCardBoundsWatchFaceConfigActivity"
44                android:label="@string/app_name">
45            <intent-filter>
46                <action android:name="com.example.android.wearable.watchface.CONFIG_ANALOG" />
47                <action android:name="com.example.android.wearable.watchface.CONFIG_CARD_BOUNDS" />
48                <category android:name="com.google.android.wearable.watchface.category.COMPANION_CONFIGURATION" />
49                <category android:name="android.intent.category.DEFAULT" />
50            </intent-filter>
51        </activity>
52
53        <activity
54                android:name=".DigitalWatchFaceCompanionConfigActivity"
55                android:label="@string/app_name">
56            <intent-filter>
57                <action android:name="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
58                <category android:name="com.google.android.wearable.watchface.category.COMPANION_CONFIGURATION" />
59                <category android:name="android.intent.category.DEFAULT" />
60            </intent-filter>
61        </activity>
62
63        <!-- This activity is needed to allow the user to authorize Google Fit for the Fit Distance
64             WatchFace (required to view distance). -->
65        <activity
66            android:name=".FitDistanceWatchFaceConfigActivity"
67            android:label="@string/app_name">
68            <intent-filter>
69                <action android:name="com.example.android.wearable.watchface.CONFIG_FIT_DISTANCE" />
70                <category android:name="com.google.android.wearable.watchface.category.COMPANION_CONFIGURATION" />
71                <category android:name="android.intent.category.DEFAULT" />
72            </intent-filter>
73        </activity>
74
75        <activity
76                android:name=".OpenGLWatchFaceConfigActivity"
77                android:label="@string/app_name">
78            <intent-filter>
79                <action android:name="com.example.android.wearable.watchface.CONFIG_OPENGL" />
80                <category android:name="com.google.android.wearable.watchface.category.COMPANION_CONFIGURATION" />
81                <category android:name="android.intent.category.DEFAULT" />
82            </intent-filter>
83        </activity>
84
85        <meta-data
86                android:name="com.google.android.gms.version"
87                android:value="@integer/google_play_services_version" />
88
89    </application>
90
91</manifest>
92