| 1 |
<?xml version="1.0"?> |
| 2 |
<template |
| 3 |
format="5" |
| 4 |
revision="5" |
| 5 |
name="Android Module" |
| 6 |
description="Creates a new Android module."> |
| 7 |
|
| 8 |
<category value="Application" /> |
| 9 |
|
| 10 |
<formfactor value="Mobile" /> |
| 11 |
|
| 12 |
<thumbs> |
| 13 |
<thumb>template_new_project.png</thumb> |
| 14 |
</thumbs> |
| 15 |
|
| 16 |
<parameter |
| 17 |
id="packageName" |
| 18 |
name="Package name" |
| 19 |
type="string" |
| 20 |
constraints="app_package|nonempty" |
| 21 |
default="com.mycompany.myapp" /> |
| 22 |
|
| 23 |
<parameter |
| 24 |
id="appTitle" |
| 25 |
name="Module title" |
| 26 |
type="string" |
| 27 |
constraints="nonempty" |
| 28 |
default="My Module" /> |
| 29 |
|
| 30 |
<parameter |
| 31 |
id="baseTheme" |
| 32 |
name="Base Theme" |
| 33 |
type="enum" |
| 34 |
default="holo_light_darkactionbar" |
| 35 |
help="The base user interface theme for the module"> |
| 36 |
<option id="none">None</option> |
| 37 |
<option id="holo_dark" minBuildApi="11">Holo Dark</option> |
| 38 |
<option id="holo_light" minBuildApi="11">Holo Light</option> |
| 39 |
<option id="holo_light_darkactionbar" minBuildApi="14">Holo Light with Dark Action Bar</option> |
| 40 |
</parameter> |
| 41 |
|
| 42 |
<parameter |
| 43 |
id="minApi" |
| 44 |
name="Minimum API level" |
| 45 |
type="string" |
| 46 |
constraints="apilevel" |
| 47 |
default="8" /> |
| 48 |
|
| 49 |
<!-- |
| 50 |
Usually the same as minApi, but when minApi is a code name this will be the corresponding |
| 51 |
API level |
| 52 |
--> |
| 53 |
<parameter |
| 54 |
id="minApiLevel" |
| 55 |
name="Minimum API level" |
| 56 |
type="string" |
| 57 |
constraints="apilevel" |
| 58 |
default="8" /> |
| 59 |
|
| 60 |
<parameter |
| 61 |
id="targetApi" |
| 62 |
name="Target API level" |
| 63 |
type="string" |
| 64 |
constraints="apilevel" |
| 65 |
default="19" /> |
| 66 |
|
| 67 |
<!-- |
| 68 |
Usually the same as targetApi, but when targeting a preview platform this is the code name instead |
| 69 |
--> |
| 70 |
<parameter |
| 71 |
id="targetApiString" |
| 72 |
name="Target API" |
| 73 |
type="string" |
| 74 |
constraints="apilevel" |
| 75 |
default="19" /> |
| 76 |
|
| 77 |
<parameter |
| 78 |
id="buildApi" |
| 79 |
name="Build API level" |
| 80 |
type="string" |
| 81 |
constraints="apilevel" |
| 82 |
default="19" /> |
| 83 |
|
| 84 |
<!-- |
| 85 |
Usually the same as buildApi, but when targeting a preview platform this is the code name instead |
| 86 |
--> |
| 87 |
<parameter |
| 88 |
id="buildApiString" |
| 89 |
name="Build API level" |
| 90 |
type="string" |
| 91 |
constraints="apilevel" |
| 92 |
default="19" /> |
| 93 |
|
| 94 |
<parameter |
| 95 |
id="copyIcons" |
| 96 |
name="Include launcher icons" |
| 97 |
type="boolean" |
| 98 |
default="true" /> |
| 99 |
|
| 100 |
<parameter |
| 101 |
id="makeIgnore" |
| 102 |
name="Create .gitignore file" |
| 103 |
type="boolean" |
| 104 |
default="true" /> |
| 105 |
|
| 106 |
<parameter |
| 107 |
id="enableProGuard" |
| 108 |
name="Enable ProGuard" |
| 109 |
type="boolean" |
| 110 |
default="true" /> |
| 111 |
|
| 112 |
<globals file="globals.xml.ftl" /> |
| 113 |
<execute file="recipe.xml.ftl" /> |
| 114 |
|
| 115 |
</template> |