| 1 |
<?xml version="1.0"?> |
| 2 |
<recipe> |
| 3 |
|
| 4 |
<#if appCompat><dependency mavenUrl="com.android.support:appcompat-v7:19.+"/></#if> |
| 5 |
<#if !appCompat && hasViewPager><dependency mavenUrl="com.android.support:support-v13:19.+"/></#if> |
| 6 |
|
| 7 |
<merge from="root/AndroidManifest.xml.ftl" |
| 8 |
to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" /> |
| 9 |
|
| 10 |
<instantiate from="root/res/menu/main.xml.ftl" |
| 11 |
to="${escapeXmlAttribute(resOut)}/menu/${menuName}.xml" /> |
| 12 |
|
| 13 |
<merge from="root/res/values/strings.xml.ftl" |
| 14 |
to="${escapeXmlAttribute(resOut)}/values/strings.xml" /> |
| 15 |
|
| 16 |
<merge from="root/res/values/dimens.xml.ftl" |
| 17 |
to="${escapeXmlAttribute(resOut)}/values/dimens.xml" /> |
| 18 |
<merge from="root/res/values-w820dp/dimens.xml" |
| 19 |
to="${escapeXmlAttribute(resOut)}/values-w820dp/dimens.xml" /> |
| 20 |
|
| 21 |
<!-- Decide what kind of layout(s) to add --> |
| 22 |
<#if hasViewPager> |
| 23 |
<instantiate from="root/res/layout/activity_pager.xml.ftl" |
| 24 |
to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> |
| 25 |
|
| 26 |
<#else> |
| 27 |
<instantiate from="root/res/layout/activity_fragment_container.xml.ftl" |
| 28 |
to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> |
| 29 |
</#if> |
| 30 |
|
| 31 |
<instantiate from="root/res/layout/fragment_simple.xml.ftl" |
| 32 |
to="${escapeXmlAttribute(resOut)}/layout/${fragmentLayoutName}.xml" /> |
| 33 |
|
| 34 |
<!-- Decide which activity code to add --> |
| 35 |
<#if features == "tabs" || features == "pager"> |
| 36 |
<instantiate from="root/src/app_package/TabsAndPagerActivity.java.ftl" |
| 37 |
to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |
| 38 |
|
| 39 |
<#elseif features == "spinner"> |
| 40 |
<instantiate from="root/src/app_package/DropdownActivity.java.ftl" |
| 41 |
to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |
| 42 |
|
| 43 |
</#if> |
| 44 |
|
| 45 |
<open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |
| 46 |
<open file="${escapeXmlAttribute(resOut)}/layout/${fragmentLayoutName}.xml" /> |
| 47 |
</recipe> |