Created
May 10, 2020 09:19
-
-
Save IkhwanSI13/c7f95b14adb1c968d2b35a4aaedcf708 to your computer and use it in GitHub Desktop.
recipe.xml.ftl for activity with MVP patter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<#import "root://activities/common/kotlin_macros.ftl" as kt> | |
<recipe> | |
<#include "../common/recipe_manifest.xml.ftl" /> | |
<@kt.addAllKotlinDependencies /> | |
<#include "../common/recipe_simple.xml.ftl" /> | |
<open file="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> | |
<instantiate from="root/src/app_package/ViewClass.kt.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${mvpClass}Activity.kt" /> | |
<instantiate from="root/src/app_package/ContractClass.kt.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${mvpClass}Contract.kt" /> | |
<instantiate from="root/src/app_package/PresenterClass.kt.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${mvpClass}Presenter.kt" /> | |
<open file="${escapeXmlAttribute(srcOut)}/${mvpClass}Activity.kt" /> | |
<open file="${escapeXmlAttribute(srcOut)}/${mvpClass}Contract.kt" /> | |
<open file="${escapeXmlAttribute(srcOut)}/${mvpClass}Presenter.kt" /> | |
</recipe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment