| <?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"> |
| <queries> |
| <intent> |
| <!-- Needed to have visibility on complication data sources installed on the device. --> |
| <action |
| android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST"/> |
| </intent> |
| <intent> |
| <!-- Needed to have visibility on launcher items to handle app shortcuts in complications. --> |
| <action android:name="android.intent.action.MAIN" /> |
| <category android:name="android.intent.category.LAUNCHER" /> |
| </intent> |
| </queries> |
| <application> |
| <uses-library android:name="com.google.android.wearable" android:required="false" /> |
| <service |
| android:name="androidx.wear.watchface.control.WatchFaceControlService" |
| android:enabled="@bool/watch_face_instance_service_enabled" |
| android:exported="true" |
| android:permission="com.google.android.wearable.permission.BIND_WATCH_FACE_CONTROL"> |
| <meta-data android:name="androidx.wear.watchface.api_version" android:value="4" /> |
| <intent-filter> |
| <action android:name="com.google.android.wearable.action.WATCH_FACE_CONTROL"/> |
| </intent-filter> |
| </service> |
| |
| <!-- |
| Used to configure complications. Applications can remove this using: |
| <activity |
| android:name="androidx.wear.watchface.ComplicationHelperActivity" |
| tools:node="remove" /> |
| in their manifest if they do not support complications and want to allow |
| R8 to remove the code associated with this activity. If the activity is |
| remove while it is needed, this may lead to a runtime exception of type |
| android.content.ActivityNotFoundException. |
| --> |
| <activity |
| android:name="androidx.wear.watchface.ComplicationHelperActivity" |
| android:exported="false" |
| android:theme="@android:style/Theme.Translucent.NoTitleBar"/> |
| |
| </application> |
| </manifest> |