Last active
May 29, 2020 07:17
-
-
Save ktvipin27/8bfb091ef4bd654eef6c5757d7614112 to your computer and use it in GitHub Desktop.
Sample recipe.xml.ftl file
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"?> | |
<recipe> | |
<merge from="root/res/values/strings.xml.ftl" | |
to="${escapeXmlAttribute(resOut)}/values/strings.xml" /> | |
<merge from="root/AndroidManifest.xml.ftl" | |
to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" /> | |
<instantiate from="root/src/app_package/Activity.kt.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${activityClass}.kt" /> | |
<instantiate from="root/src/app_package/ViewModel.kt.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${viewModelClass}.kt" /> | |
<instantiate from="root/res/layout/activity.xml.ftl" | |
to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> | |
<open file="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> | |
<open file="${escapeXmlAttribute(srcOut)}/${viewModelClass}.kt" /> | |
<open file="${escapeXmlAttribute(srcOut)}/${activityClass}.kt" /> | |
</recipe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment