| 1 |
<?xml version="1.0"?> |
| 2 |
<recipe> |
| 3 |
|
| 4 |
<merge from="root/AndroidManifest.xml.ftl" |
| 5 |
to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" /> |
| 6 |
|
| 7 |
<copy from="root/res/drawable-nodpi/example_appwidget_preview.png" |
| 8 |
to="${escapeXmlAttribute(resOut)}/drawable-nodpi/example_appwidget_preview.png" /> |
| 9 |
<instantiate from="root/res/layout/appwidget.xml" |
| 10 |
to="${escapeXmlAttribute(resOut)}/layout/${class_name}.xml" /> |
| 11 |
|
| 12 |
<#if configurable> |
| 13 |
<instantiate from="root/res/layout/appwidget_configure.xml" |
| 14 |
to="${escapeXmlAttribute(resOut)}/layout/${class_name}_configure.xml" /> |
| 15 |
</#if> |
| 16 |
|
| 17 |
<instantiate from="root/res/xml/appwidget_info.xml.ftl" |
| 18 |
to="${escapeXmlAttribute(resOut)}/xml/${class_name}_info.xml" /> |
| 19 |
<merge from="root/res/values/strings.xml.ftl" |
| 20 |
to="${escapeXmlAttribute(resOut)}/values/strings.xml" /> |
| 21 |
<merge from="root/res/values-v14/dimens.xml" |
| 22 |
to="${escapeXmlAttribute(resOut)}/values-v14/dimens.xml" /> |
| 23 |
<merge from="root/res/values/dimens.xml" |
| 24 |
to="${escapeXmlAttribute(resOut)}/values/dimens.xml" /> |
| 25 |
|
| 26 |
<instantiate from="root/src/app_package/AppWidget.java.ftl" |
| 27 |
to="${escapeXmlAttribute(srcOut)}/${className}.java" /> |
| 28 |
|
| 29 |
<#if configurable> |
| 30 |
<instantiate from="root/src/app_package/AppWidgetConfigureActivity.java.ftl" |
| 31 |
to="${escapeXmlAttribute(srcOut)}/${className}ConfigureActivity.java" /> |
| 32 |
</#if> |
| 33 |
|
| 34 |
<open file="${escapeXmlAttribute(srcOut)}/${className}.java" /> |
| 35 |
</recipe> |