| 1 |
<?xml version="1.0"?> |
| 2 |
<recipe> |
| 3 |
<dependency mavenUrl="com.android.support:support-v4:${buildApi}.+" /> |
| 4 |
<dependency mavenUrl="com.android.support:recyclerview-v7:${buildApi}.+" /> |
| 5 |
|
| 6 |
<#if hasAppBar> |
| 7 |
<dependency mavenUrl="com.android.support:design:${buildApi}.+"/> |
| 8 |
</#if> |
| 9 |
|
| 10 |
<merge from="root/AndroidManifest.xml.ftl" |
| 11 |
to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" /> |
| 12 |
|
| 13 |
<#if minApiLevel lt 13> |
| 14 |
<merge from="root/res/values-w900dp/refs.xml.ftl" |
| 15 |
to="${escapeXmlAttribute(resOut)}/values-w900dp/refs.xml" /> |
| 16 |
</#if> |
| 17 |
<merge from="root/res/values/strings.xml.ftl" |
| 18 |
to="${escapeXmlAttribute(resOut)}/values/strings.xml" /> |
| 19 |
<merge from="root/res/values/dimens.xml.ftl" |
| 20 |
to="${escapeXmlAttribute(resOut)}/values/dimens.xml" /> |
| 21 |
<#if hasAppBar> |
| 22 |
<#include "../common/recipe_no_actionbar.xml.ftl" /> |
| 23 |
</#if> |
| 24 |
|
| 25 |
<instantiate from="root/res/layout/activity_item_detail.xml.ftl" |
| 26 |
to="${escapeXmlAttribute(resOut)}/layout/activity_${detail_name}.xml" /> |
| 27 |
<instantiate from="root/res/layout/fragment_item_list.xml.ftl" |
| 28 |
to="${escapeXmlAttribute(resOut)}/layout/${item_list_layout}.xml" /> |
| 29 |
<#if minApiLevel lt 13> |
| 30 |
<instantiate from="root/res/layout/fragment_item_list_twopane.xml.ftl" |
| 31 |
to="${escapeXmlAttribute(resOut)}/layout/${item_list_layout}_twopane.xml" /> |
| 32 |
<#else> |
| 33 |
<instantiate from="root/res/layout/fragment_item_list_twopane.xml.ftl" |
| 34 |
to="${escapeXmlAttribute(resOut)}/layout-w900dp/${item_list_layout}.xml" /> |
| 35 |
</#if> |
| 36 |
<instantiate from="root/res/layout/item_list_content.xml.ftl" |
| 37 |
to="${escapeXmlAttribute(resOut)}/layout/${item_list_content_layout}.xml" /> |
| 38 |
<instantiate from="root/res/layout/fragment_item_detail.xml.ftl" |
| 39 |
to="${escapeXmlAttribute(resOut)}/layout/${detail_name}.xml" /> |
| 40 |
<#if hasAppBar> |
| 41 |
<instantiate from="root/res/layout/activity_item_list_app_bar.xml.ftl" |
| 42 |
to="${escapeXmlAttribute(resOut)}/layout/activity_${item_list_layout}.xml" /> |
| 43 |
</#if> |
| 44 |
|
| 45 |
<instantiate from="root/src/app_package/ContentDetailActivity.java.ftl" |
| 46 |
to="${escapeXmlAttribute(srcOut)}/${DetailName}Activity.java" /> |
| 47 |
<instantiate from="root/src/app_package/ContentDetailFragment.java.ftl" |
| 48 |
to="${escapeXmlAttribute(srcOut)}/${DetailName}Fragment.java" /> |
| 49 |
<instantiate from="root/src/app_package/ContentListActivity.java.ftl" |
| 50 |
to="${escapeXmlAttribute(srcOut)}/${CollectionName}Activity.java" /> |
| 51 |
<#include "../common/recipe_dummy_content.xml.ftl" /> |
| 52 |
|
| 53 |
<open file="${escapeXmlAttribute(srcOut)}/${DetailName}Fragment.java" /> |
| 54 |
<open file="${escapeXmlAttribute(resOut)}/layout/fragment_${detail_name}.xml" /> |
| 55 |
</recipe> |