-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.xml
More file actions
201 lines (158 loc) · 9.39 KB
/
plugin.xml
File metadata and controls
201 lines (158 loc) · 9.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?xml version="1.0" encoding="utf-8"?>
<plugin>
<documentation>
Use this plugin to build for the android platform. Current limitations are mainly that only armv7 architecture is properly working, meaning currently there isn't the possibility to build for x86 or mips.
</documentation>
<configuration>
<elem name="icon">
Use this to configure where the icon files are. By default they are searched in current_project_path/Icons/android. The naming and sizing is strict. To know them, just do a "duell create emptyProject" and see the icons that are on the default project. E.g.: <icon path="Iconys/android" />.
</elem>
<elem name="app-icon">
Use this to specify the icon name, as if you were inputting it as @drawable/icon. By default it is specified as "icon". E.g.: <app-icon drawable="app_icon" />.
</elem>
<elem name="hxcpp-compilation-arg">
Use this tag if you want to pass an additional compilation argument to the hxcpp compilation of the generated c++ code. E.g.: <hxcpp-compilation-arg value="-DSOMETHING" />.
</elem>
<elem name="install-location">
Use this to specify the install location. By default it is auto. E.g.: <install-location value="preferExternal" />.
</elem>
<elem name="target-sdk">
Use this to specify a target android sdk. By default it is 21. Please don't change :( E.g.: <target-sdk value="20" />.
</elem>
<elem name="minimum-sdk">
Use this to specify a minimum android sdk. By default it is 14. E.g.: <minimum-sdk value="16" />.
</elem>
<elem name="fullscreen">
Use this to use the new android immersive mode which hides the android back/home/etc buttons. By default it is false. E.g.: <fullscreen value="true" />.
</elem>
<elem name="uses">
Use this to specify that your app uses additional android features. E.g.: <uses name="glEsVersion" value="0x00020000" required="true" />.
</elem>
<elem name="permission">
Use this to specify permissions for your app (using uses-permission). E.g.: <permission name="android.permission.RECEIVE_SMS" />.
</elem>
<elem name="raw-permission">
Use this to specify permissions for your app (using permission). E.g.: <raw-permission name="com.gameduell.test.permission.C2D_MESSAGE" level="signature" />.
</elem>
<elem name="activity-extension">
Use this to specify a class as being an activity extension that will then receive Activity callbacks. This is used together with inserting java classes into the final app. E.g.: <activity-extension name="com.superlib.SuperLibDelegate" />.
</elem>
<elem name="application-extension">
Use this to specify a class as being an application extension that will then receive Application callbacks. This is used together with inserting java classes into the final app. E.g.: <application-extension name="com.superlib.SuperLibAppDelegate" />.
</elem>
<elem name="java-source">
Use this to add a folder that contains java sources to be compiled. This should be the top level folder in case the sources are organized in packages. E.g.: <java-source path="path/to/lib" />.
</elem>
<elem name="jar">
Use this to add a jar. E.g.: <jar path="path/to/jar" />.
</elem>
<elem name="supports-screen">
Use this to specify that your app supports a specific screen type. E.g.: <supports-screen name="smallScreens" value="true" />.
</elem>
<elem name="activity-parameter">
Use this to specify an android manifest activity parameter. E.g.: <activity-parameter name="theme" value="@android:style/Theme.NoTitleBar.Fullscreen" />.
</elem>
<elem name="application-parameter">
Use this to specify an android manifest application parameter. E.g.: <application-parameter name="largeHeap" value="true" />.
</elem>
<elem name="string-resource">
Use this to add a string resource. E.g.: <string-resource name="facebook_app_id" value="1234567" />.
</elem>
<elem name="project-properties">
Specify a line that is inserted into the project.properties file in the Android project. E.g.: <project-properties value="dex.force.jumbo=true" />.
</elem>
<elem name="manifest-main-activity-section">
This is an advanced android configuration possibility. The xml that is contained inside this element will be directly copied into the manifest in main activity section. Use this if none of the previous configuration elements allow the setting you need.
</elem>
<elem name="manifest-main-activity-intent-filter-section">
This is an advanced android configuration possibility. The xml that is contained inside this element will be directly copied into the manifest in intent filter section. Use this if none of the previous configuration elements allow the setting you need.
</elem>
<elem name="manifest-application-section">
This is an advanced android configuration possibility. The xml that is contained inside this element will be directly copied into the manifest in application section. Use this if none of the previous configuration elements allow the setting you need.
</elem>
<elem name="key-store">
Use this to specify the keystore you want to use to sign your app. This configuration should mostly be in the duell_user.xml folder since it is private information and should not be committed with your project. E.g.: <key-store path="androidkey/debug.keystore" alias="MyDebugKey" password="password" aliaspassword="password" />
</elem>
<elem name="proguard">
Use this to specify the path a proguard file that will be merged into the final master proguard file. E.g.: <proguard path="someFolder/proguard.cfg"/>
</elem>
<elem name="gradle-repository">
Use this to specify a gradle repository. E.g.: <gradle-repository name="jcenter" url="www.someurl.com" />
</elem>
<elem name="gradle-dependency">
Use this to specify a gradle dependency. E.g.: <gradle-dependency value="com.google.android.gms:play-services-base:8.1.0" />
</elem>
<elem name="gradle-binary-plugin">
Use this to specify a gradle apply plugin. E.g.: <gradle-binary-plugin value="com.google.gms.google-services" />
</elem>
<elem name="gradle-build-script-dependency">
Use this to specify a gradle build script dependency. E.g.: <gradle-build-script-dependency value="com.google.gms:google-services:3.0.0" />
</elem>
<elem name="gradle-compilation-dependency">
Use this to specify a gradle compilation dependency. E.g.: <gradle-compilation-dependency value="com.fyber:fyber-annotations:1.2.0" />
</elem>
<elem name="gradle-annotation-processor">
Use this to specify a gradle annotation processors. E.g.: <gradle-annotation-processor value="com.fyber:fyber-annotations-compiler:1.3.0" />
</elem>
</configuration>
<arg name="-debug" type="void">
<documentation>
Use this argument if you want to build in debug.
</documentation>
</arg>
<arg name="-fulllogcat" type="void">
<documentation>
Use this argument if you want to see the complete logcat as opposed to seeing a filtered one. The default filters are "duell", "Main", "DuellActivity", "GLThread" and "trace"
</documentation>
</arg>
<arg name="-ndkgdb" type="void">
<documentation>
Use this argument if you want to launch gdb on the running app. Debug is option is automatically set for this.
</documentation>
</arg>
<arg name="-x86" type="void">
<documentation>
Use this argument if you want to build specifically for x86 platforms.
</documentation>
</arg>
<arg name="-armv6" type="void">
<documentation>
Use this if you want to build for armv6.
</documentation>
</arg>
<arg name="-armv7" type="void">
<documentation>
Use this if you want to build for armv7.
</documentation>
</arg>
<arg name="-arm64" type="void">
<documentation>
Use this if you want to build for arm64.
</documentation>
</arg>
<arg name="-emulator" type="void">
<documentation>
Use the emulator to run the app. If x86 is specified, the x86 will launch, otherwise the armv7 will run. If the emulator is already running this will fail. If that is the case, then run without this option, as the emulator counts as a normal device. The default emulators that this uses are called "duellarmv7a" and "duellx86".
</documentation>
</arg>
<arg name="-emulatorname" type="string">
<documentation>
Specify the name of the emulator that you want to run when the build starts.
</documentation>
</arg>
<arg name="-stripsym" type="void">
<documentation>
This option will strip all debugging symbols from the binaries. Example usage is when releasing to the public or to a wide audience. The unstripped libraries are still present in a libs folder on the Export for symbolication.
</documentation>
</arg>
<arg name="-wipeemulator" type="void">
<documentation>
Use this if you want to wipe the user data with the start of the emulator.
</documentation>
</arg>
<arg name="-proguard" type="void">
<documentation>
Use this if you want to run proguard on the release apk.
</documentation>
</arg>
</plugin>