| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2020 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| package="androidx.wear.watchface.samples"> |
| |
| <!-- Required for complications to receive complication data and open the provider chooser. --> |
| <uses-feature android:name="android.hardware.type.watch" /> |
| |
| <uses-permission android:name="com.google.android.permission.PROVIDE_BACKGROUND"/> |
| <uses-permission android:name="android.permission.WAKE_LOCK"/> |
| <uses-permission android:name="com.google.android.wearable.permission.RECEIVE_COMPLICATION_DATA" /> |
| <uses-permission android:name="com.google.android.wearable.permission.RECEIVE_COMPLICATION_DATA_PRIVILEGED" /> |
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| |
| <!-- Required to act as a custom watch face. --> |
| <application |
| android:allowBackup="true" |
| android:label="@string/app_name" |
| android:supportsRtl="true" |
| android:theme="@android:style/Theme.DeviceDefault"> |
| |
| <service |
| android:name=".ExampleCanvasAnalogWatchFaceService" |
| android:directBootAware="true" |
| android:exported="true" |
| android:label="@string/canvas_analog_watch_face_name" |
| android:permission="android.permission.BIND_WALLPAPER"> |
| <intent-filter> |
| <action android:name="android.service.wallpaper.WallpaperService" /> |
| <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" /> |
| </intent-filter> |
| |
| <intent-filter> |
| <action android:name="com.google.android.wearable.libraries.steampack.watchface.MockTime" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| <data android:mimeType="text/plain" /> |
| </intent-filter> |
| |
| <meta-data |
| android:name="com.google.android.wearable.standalone" |
| android:value="true" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.preview" |
| android:resource="@drawable/watch_preview" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.preview_circular" |
| android:resource="@drawable/watch_preview" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.wearableConfigurationAction" |
| android:value="com.google.android.clockwork.watchfaces.complication.CONFIG_DIGITAL"/> |
| <meta-data |
| android:name="android.service.wallpaper" |
| android:resource="@xml/watch_face" /> |
| </service> |
| |
| <service |
| android:name=".ExampleCanvasDigitalWatchFaceService" |
| android:directBootAware="true" |
| android:exported="true" |
| android:label="@string/canvas_digital_watch_face_name" |
| android:permission="android.permission.BIND_WALLPAPER"> |
| <intent-filter> |
| <action android:name="android.service.wallpaper.WallpaperService" /> |
| <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" /> |
| </intent-filter> |
| |
| <intent-filter> |
| <action android:name="com.google.android.wearable.libraries.steampack.watchface.MockTime" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| <data android:mimeType="text/plain" /> |
| </intent-filter> |
| |
| <meta-data |
| android:name="com.google.android.wearable.standalone" |
| android:value="true" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.preview" |
| android:resource="@drawable/watch_preview" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.preview_circular" |
| android:resource="@drawable/watch_preview" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.wearableConfigurationAction" |
| android:value="com.google.android.clockwork.watchfaces.complication.CONFIG_DIGITAL"/> |
| <meta-data |
| android:name="android.service.wallpaper" |
| android:resource="@xml/watch_face" /> |
| </service> |
| |
| <service |
| android:name=".ExampleOpenGLWatchFaceService" |
| android:directBootAware="true" |
| android:exported="true" |
| android:label="@string/gl_watch_face_name" |
| android:permission="android.permission.BIND_WALLPAPER"> |
| <intent-filter> |
| <action android:name="android.service.wallpaper.WallpaperService" /> |
| <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" /> |
| </intent-filter> |
| |
| <intent-filter> |
| <action android:name="com.google.android.wearable.libraries.steampack.watchface.MockTime" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| <data android:mimeType="text/plain" /> |
| </intent-filter> |
| |
| <meta-data |
| android:name="com.google.android.wearable.standalone" |
| android:value="true" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.preview" |
| android:resource="@drawable/watch_preview" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.preview_circular" |
| android:resource="@drawable/watch_preview" /> |
| <meta-data |
| android:name="com.google.android.wearable.watchface.wearableConfigurationAction" |
| android:value="com.google.android.clockwork.watchfaces.complication.CONFIG_DIGITAL"/> |
| <meta-data |
| android:name="android.service.wallpaper" |
| android:resource="@xml/watch_face" /> |
| </service> |
| |
| <activity |
| android:name="androidx.wear.complications.ComplicationHelperActivity" |
| android:exported="false" /> |
| |
| <activity |
| android:name="androidx.wear.watchface.editor.sample.WatchFaceConfigActivity" |
| android:exported="true" |
| android:label="Config" |
| android:theme="@android:style/Theme.Translucent.NoTitleBar"> |
| <intent-filter> |
| <action android:name="com.google.android.clockwork.watchfaces.complication.CONFIG_DIGITAL" /> |
| |
| <category android:name="com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| </activity> |
| </application> |
| </manifest> |