BuildStendhalForAndroid: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Ant: add instructions for "gradle.params" property
imported>AntumDeluge
Revision suffix property no longer supported
Line 126: Line 126:
$ ant android -Dgradle.params="assembleRelease assembleDebug"
$ ant android -Dgradle.params="assembleRelease 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 android -Dandroid.rev=1
</pre>

Example output: ''stendhal-webview-{{#time:Ymd}}-1-debug.apk''