Debian Codegraph @

templates/other/WatchFaceService/recipe.xml.ftl

raw
1 <?xml version="1.0"?>
2 <recipe>
3
4 <dependency mavenUrl="com.google.android.support:wearable:1.1.+" />
5
6 <merge from="root/AndroidManifest.xml.ftl"
7 to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />
8 <merge from="root/AndroidManifestPermissions.xml"
9 to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />
10 <#if appManifestOut??>
11 <merge from="root/AndroidManifestPermissions.xml"
12 to="${escapeXmlAttribute(appManifestOut)}/AndroidManifest.xml" />
13 </#if>
14
15 <merge from="root/res/values/strings.xml.ftl"
16 to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
17
18 <copy from="root/res/xml/watch_face.xml"
19 to="${escapeXmlAttribute(resOut)}/xml/watch_face.xml" />
20
21 <#if style == "analog">
22 <dependency mavenUrl="com.android.support:palette-v7:${buildApi}.+" />
23
24 <copy from="root/res/drawable-nodpi/preview_analog.png"
25 to="${escapeXmlAttribute(resOut)}/drawable-nodpi/preview_analog.png" />
26 <copy from="root/res/drawable-nodpi/bg.png"
27 to="${escapeXmlAttribute(resOut)}/drawable-nodpi/bg.png" />
28 <#elseif style == "digital">
29 <merge from="root/res/values/dimens.xml.ftl"
30 to="${escapeXmlAttribute(resOut)}/values/dimens.xml" />
31 <merge from="root/res/values/colors.xml.ftl"
32 to="${escapeXmlAttribute(resOut)}/values/colors.xml" />
33 <copy from="root/res/drawable-nodpi/preview_digital.png"
34 to="${escapeXmlAttribute(resOut)}/drawable-nodpi/preview_digital.png" />
35 <copy from="root/res/drawable-nodpi/preview_digital_circular.png"
36 to="${escapeXmlAttribute(resOut)}/drawable-nodpi/preview_digital_circular.png" />
37 </#if>
38
39 <#if style == "analog">
40 <instantiate from="root/src/app_package/MyAnalogWatchFaceService.java.ftl"
41 to="${escapeXmlAttribute(srcOut)}/${serviceClass}.java" />
42 <#elseif style == "digital">
43 <instantiate from="root/src/app_package/MyDigitalWatchFaceService.java.ftl"
44 to="${escapeXmlAttribute(srcOut)}/${serviceClass}.java" />
45 </#if>
46
47 <open file="${escapeXmlAttribute(srcOut)}/${serviceClass}.java" />
48 </recipe>