| <?xml version="1.0"?> |
| <#import "root://activities/common/kotlin_macros.ftl" as kt> |
| <recipe> |
| <#if appCompat && !(hasDependency('com.android.support:appcompat-v7'))> |
| <dependency mavenUrl="com.android.support:appcompat-v7:${buildApi}.+" /> |
| </#if> |
| |
| <#if (buildApi gte 22) && appCompat && !(hasDependency('com.android.support:design'))> |
| <dependency mavenUrl="com.android.support:design:${buildApi}.+" /> |
| </#if> |
| |
| <#if !appCompat && (includePermissionCheck!false)> |
| <dependency mavenUrl="com.android.support:support-annotations:${buildApi}.+" /> |
| </#if> |
| |
| <#include "../common/recipe_theme.xml.ftl" /> |
| |
| <merge from="root/AndroidManifest.xml.ftl" |
| to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" /> |
| |
| <merge from="root/res/values/dimens.xml" |
| to="${escapeXmlAttribute(resOut)}/values/dimens.xml" /> |
| |
| <merge from="root/res/values/strings.xml.ftl" |
| to="${escapeXmlAttribute(resOut)}/values/strings.xml" /> |
| |
| <instantiate from="root/res/layout/activity_login.xml.ftl" |
| to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> |
| |
| |
| <@kt.addAllKotlinDependencies /> |
| <instantiate from="root/src/app_package/LoginActivity.${ktOrJavaExt}.ftl" |
| to="${escapeXmlAttribute(srcOut)}/${activityClass}.${ktOrJavaExt}" /> |
| <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.${ktOrJavaExt}" /> |
| |
| </recipe> |