-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrecipe.xml.ftl
29 lines (19 loc) · 1.37 KB
/
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
27
28
29
<?xml version="1.0"?>
<recipe>
<#include "recipe_manifest.xml.ftl" />
<instantiate from="simple_layout.xml.ftl"
to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
<#assign packagePath = "${packageName}">
<#assign packagePath = packagePath?replace('.','/')>
<instantiate from="root/src/app_package/BaseActivity.kt.ftl"
to="${escapeXmlAttribute(manifestOut)}/kotlin/${packagePath}/${activityClass}Activity.kt" />
<instantiate from="root/src/app_package/BaseActivityComponent.kt.ftl"
to="${escapeXmlAttribute(manifestOut)}/kotlin/${packagePath}/di/${activityClass}ActivityComponent.kt" />
<instantiate from="root/src/app_package/BaseActivityModule.kt.ftl"
to="${escapeXmlAttribute(manifestOut)}/kotlin/${packagePath}/di/${activityClass}ActivityModule.kt" />
<instantiate from="root/src/app_package/BasePresenter.kt.ftl"
to="${escapeXmlAttribute(manifestOut)}/kotlin/${packagePath}/presenter/${activityClass}Presenter.kt" />
<instantiate from="root/src/app_package/BaseView.kt.ftl"
to="${escapeXmlAttribute(manifestOut)}/kotlin/${packagePath}/presenter/${activityClass}View.kt" />
<open file="${escapeXmlAttribute(manifestOut)}/kotlin/${packagePath}/${activityClass}Activity.kt" />
</recipe>