BuildStendhalForAndroid: Difference between revisions

Content deleted Content added
imported>AntumDeluge
Ant: additional instructions
imported>AntumDeluge
Ant: update instructions
Line 106:
The resulting .apk packages will be located in the <span style="color:green;"><source root>/build</span> directory.
 
The build type can be set manually using the <span style="color:green;">android.build</span> property. The default is <span style="color:green;">assembleReleaseassembleDebug</span>.
 
<pre>
$ ant dist_client_android -Dandroid.build=assembleDebug
</pre>
 
=== Setting Revision Suffix ===
 
The compiled .apk packages will be versioned with the date of build. A custom revision suffix can be added by setting the <span style="color:darkgreen;">android.rev</span> property. If invoking gradle script directly, use the '''''-P''''' switch. If calling ant, use the '''''-D''''' switch.
 
Example usage:
<pre>
# calling gradle script directly
$ ./gradlew assembleDebug -Pandroid.rev=1
 
# calling ant target
$ ant dist_client_android -Dandroid.rev=1
</pre>
 
Example output: ''stendhal-webview-{{#time:Ymd}}-1-debug.apk''