BuildStendhalForAndroid: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Ant: additional instructions
imported>AntumDeluge
Ant: update instructions
Line 106: Line 106:
The resulting .apk packages will be located in the <span style="color:green;"><source root>/build</span> directory.
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;">assembleRelease</span>.
The build type can be set manually using the <span style="color:green;">android.build</span> property. The default is <span style="color:green;">assembleDebug</span>.


<pre>
<pre>
$ ant dist_client_android -Dandroid.build=assembleDebug
$ ant dist_client_android -Dandroid.build=assembleDebug
</pre>
</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''