| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" > |
| 3 |
|
| 4 |
<uses-feature android:name="android.hardware.type.watch" /> |
| 5 |
|
| 6 |
<application> |
| 7 |
<service |
| 8 |
android:name="${relativePackage}.${serviceClass}" |
| 9 |
<#if style == "analog"> |
| 10 |
android:label="@string/my_analog_name" |
| 11 |
<#elseif style == "digital"> |
| 12 |
android:label="@string/my_digital_name" |
| 13 |
</#if> |
| 14 |
android:permission="android.permission.BIND_WALLPAPER" > |
| 15 |
<meta-data |
| 16 |
android:name="android.service.wallpaper" |
| 17 |
android:resource="@xml/watch_face" /> |
| 18 |
<meta-data |
| 19 |
android:name="com.google.android.wearable.watchface.preview" |
| 20 |
<#if style == "analog"> |
| 21 |
android:resource="@drawable/preview_analog" /> |
| 22 |
<#elseif style == "digital"> |
| 23 |
android:resource="@drawable/preview_digital" /> |
| 24 |
</#if> |
| 25 |
<meta-data |
| 26 |
android:name="com.google.android.wearable.watchface.preview_circular" |
| 27 |
<#if style == "analog"> |
| 28 |
android:resource="@drawable/preview_analog" /> |
| 29 |
<#elseif style == "digital"> |
| 30 |
android:resource="@drawable/preview_digital_circular" /> |
| 31 |
</#if> |
| 32 |
<intent-filter> |
| 33 |
<action android:name="android.service.wallpaper.WallpaperService" /> |
| 34 |
<category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" /> |
| 35 |
</intent-filter> |
| 36 |
</service> |
| 37 |
|
| 38 |
<meta-data |
| 39 |
android:name="com.google.android.gms.version" |
| 40 |
android:value="@integer/google_play_services_version" /> |
| 41 |
</application> |
| 42 |
</manifest> |