Skip to content

Instantly share code, notes, and snippets.

@IkhwanSI13
Created May 10, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IkhwanSI13/c7f95b14adb1c968d2b35a4aaedcf708 to your computer and use it in GitHub Desktop.
Save IkhwanSI13/c7f95b14adb1c968d2b35a4aaedcf708 to your computer and use it in GitHub Desktop.
recipe.xml.ftl for activity with MVP patter
<?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