Skip to content
Snippets Groups Projects
Commit a9284c57 authored by Luboš Horáček's avatar Luboš Horáček
Browse files

Debug apk does not change name and Android is sensorLandscape

parent 987067ce
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
<activity
android:name="cz.nic.tablexia.android.AndroidLauncher"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:screenOrientation="sensorLandscape"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
......@@ -36,9 +36,11 @@ android {
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
def file = output.outputFile
output.outputFile = new File(file.parent, file.name.replace(".apk", "-" + tablexiaVersionName + ".apk").replace("android", appName))
if (!variant.buildType.name.equals("debug")) {
variant.outputs.each { output ->
def file = output.outputFile
output.outputFile = new File(file.parent, file.name.replace(".apk", "-" + tablexiaVersionName + ".apk").replace("android", appName))
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment