Debian Codegraph @

templates/gradle-projects/NewAndroidModule/recipe.xml.ftl

raw
1 <?xml version="1.0"?>
2 <recipe>
3
4 <#if backwardsCompatibility!true>
5 <dependency mavenUrl="com.android.support:appcompat-v7:${buildApi}.+"/>
6 </#if>
7
8 <#if unitTestsSupported>
9 <dependency mavenUrl="junit:junit:4.12" gradleConfiguration="testCompile" />
10 </#if>
11
12 <#if !createActivity>
13 <mkdir at="${escapeXmlAttribute(srcOut)}" />
14 </#if>
15
16 <mkdir at="${escapeXmlAttribute(projectOut)}/libs" />
17
18 <merge from="root/settings.gradle.ftl"
19 to="${escapeXmlAttribute(topOut)}/settings.gradle" />
20 <instantiate from="root/build.gradle.ftl"
21 to="${escapeXmlAttribute(projectOut)}/build.gradle" />
22 <instantiate from="root/AndroidManifest.xml.ftl"
23 to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />
24
25 <mkdir at="${escapeXmlAttribute(resOut)}/drawable" />
26 <#if copyIcons && !isLibraryProject>
27 <copy from="root/res/mipmap-hdpi"
28 to="${escapeXmlAttribute(resOut)}/mipmap-hdpi" />
29 <copy from="root/res/mipmap-mdpi"
30 to="${escapeXmlAttribute(resOut)}/mipmap-mdpi" />
31 <copy from="root/res/mipmap-xhdpi"
32 to="${escapeXmlAttribute(resOut)}/mipmap-xhdpi" />
33 <copy from="root/res/mipmap-xxhdpi"
34 to="${escapeXmlAttribute(resOut)}/mipmap-xxhdpi" />
35 <copy from="root/res/mipmap-xxxhdpi"
36 to="${escapeXmlAttribute(resOut)}/mipmap-xxxhdpi" />
37 </#if>
38 <#if makeIgnore>
39 <copy from="root/module_ignore"
40 to="${escapeXmlAttribute(projectOut)}/.gitignore" />
41 </#if>
42 <#if enableProGuard>
43 <instantiate from="root/proguard-rules.txt.ftl"
44 to="${escapeXmlAttribute(projectOut)}/proguard-rules.pro" />
45 </#if>
46 <#if !(isLibraryProject??) || !isLibraryProject>
47 <instantiate from="root/res/values/styles.xml.ftl"
48 to="${escapeXmlAttribute(resOut)}/values/styles.xml" />
49 <#if buildApi gte 22>
50 <copy from="root/res/values/colors.xml"
51 to="${escapeXmlAttribute(resOut)}/values/colors.xml" />
52 </#if>
53 </#if>
54
55 <instantiate from="root/res/values/strings.xml.ftl"
56 to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
57
58 <instantiate from="root/test/app_package/ExampleInstrumentedTest.java.ftl"
59 to="${escapeXmlAttribute(testOut)}/ExampleInstrumentedTest.java" />
60
61 <#if unitTestsSupported>
62 <instantiate from="root/test/app_package/ExampleUnitTest.java.ftl"
63 to="${escapeXmlAttribute(unitTestOut)}/ExampleUnitTest.java" />
64 </#if>
65 <#if includeCppSupport!false>
66 <instantiate from="root/CMakeLists.txt.ftl"
67 to="${escapeXmlAttribute(projectOut)}/CMakeLists.txt" />
68
69 <mkdir at="${nativeSrcOut}" />
70 <instantiate from="root/native-lib.cpp.ftl" to="${nativeSrcOut}/native-lib.cpp" />
71 </#if>
72
73 </recipe>