-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipe.xml.ftl
26 lines (15 loc) · 973 Bytes
/
recipe.xml.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<#import "root://activities/common/kotlin_macros.ftl" as kt>
<recipe>
<#include "../common/recipe_manifest.xml.ftl" />
<@kt.addAllKotlinDependencies />
<instantiate from="root/res/layout/activity.xml.ftl"
to="${escapeXmlAttribute(resOut)}/layout/${escapeXmlAttribute(activityLayout)}.xml" />
<instantiate from="root/src/app_package/Activity.${ktOrJavaExt}.ftl"
to="${escapeXmlAttribute(srcOut)}/${activityClass}.${ktOrJavaExt}" />
<instantiate from="root/src/app_package/ViewModel.${ktOrJavaExt}.ftl"
to="${escapeXmlAttribute(srcOut)}/${viewModelClass}.${ktOrJavaExt}" />
<open file="${escapeXmlAttribute(srcOut)}/${viewModelClass}.${ktOrJavaExt}" />
<open file="${escapeXmlAttribute(resOut)}/layout/${escapeXmlAttribute(activityLayout)}.xml" />
<open file="${escapeXmlAttribute(resOut)}/layout/${escapeXmlAttribute(activityLayout)}.xml" />
</recipe>