| 1 |
<?xml version="1.0"?> |
| 2 |
<recipe> |
| 3 |
<#if appCompat && !(hasDependency('com.android.support:appcompat-v7'))> |
| 4 |
<dependency mavenUrl="com.android.support:appcompat-v7:${buildApi}.+" /> |
| 5 |
</#if> |
| 6 |
|
| 7 |
<#if (buildApi gte 22) && appCompat && !(hasDependency('com.android.support:design'))> |
| 8 |
<dependency mavenUrl="com.android.support:design:${buildApi}.+" /> |
| 9 |
</#if> |
| 10 |
|
| 11 |
<merge from="root/AndroidManifest.xml.ftl" |
| 12 |
to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" /> |
| 13 |
|
| 14 |
<merge from="root/res/values/dimens.xml" |
| 15 |
to="${escapeXmlAttribute(resOut)}/values/dimens.xml" /> |
| 16 |
|
| 17 |
<merge from="root/res/values/strings.xml.ftl" |
| 18 |
to="${escapeXmlAttribute(resOut)}/values/strings.xml" /> |
| 19 |
|
| 20 |
<instantiate from="root/res/layout/activity_login.xml.ftl" |
| 21 |
to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> |
| 22 |
|
| 23 |
<instantiate from="root/src/app_package/LoginActivity.java.ftl" |
| 24 |
to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |
| 25 |
|
| 26 |
<open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |
| 27 |
|
| 28 |
</recipe> |