mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 06:18:12 +00:00
modify build export for signing - removed spaces + version info from apk
This commit is contained in:
1 parent
03d25d330a
commit
a20fbb3bbf
4 files changed
+27
-33
No files matched your search
@@ -59,7 +59,7 @@ dependencies {
|
||||
api "de.psdev.licensesdialog:licensesdialog:${rootProject.ext.license_dialog}"
|
||||
|
||||
/* Branch.io */
|
||||
api group: 'io.branch.sdk.android', name: 'library', version: '2.19.2'
|
||||
api group: "io.branch.sdk.android", name: "library", version: "2.19.2"
|
||||
|
||||
/* JVM tests */
|
||||
testImplementation "junit:junit:${rootProject.ext.junit}"
|
||||
|
||||
@@ -20,19 +20,17 @@ android {
|
||||
*/
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all { output ->
|
||||
def newName = outputFileName.replace(".apk", "-v" + variant.versionName + ".apk");
|
||||
newName = newName.replace("-" + variant.buildType.name, "");
|
||||
outputFileName = new File(newName)
|
||||
outputFileName = new File(outputFileName.replace("-$variant.buildType.name", ""))
|
||||
}
|
||||
variant.assemble.doLast { assemble ->
|
||||
// Create version file
|
||||
def versionFile = new File(rootProject.ext.destinationFolder, "$packageName." + "version")
|
||||
versionFile.text = "$packageName" + ".apk=$verCode"
|
||||
copy {
|
||||
from variant.outputs*.outputFile
|
||||
into rootProject.ext.destinationFolder
|
||||
}
|
||||
}
|
||||
// Create version file
|
||||
def versionFile = new File(rootProject.ext.destinationFolder, packageName + ".version")
|
||||
versionFile.text = packageName + ".apk=$verCode-$variant.buildType.name"
|
||||
copy {
|
||||
from variant.outputs*.outputFile
|
||||
into rootProject.ext.destinationFolder
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def versionPropertiesFile = file('project.properties')
|
||||
|
||||
@@ -20,19 +20,17 @@ android {
|
||||
*/
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all { output ->
|
||||
def newName = outputFileName.replace(".apk", "-v" + variant.versionName + ".apk");
|
||||
newName = newName.replace("-" + variant.buildType.name, "");
|
||||
outputFileName = new File(newName)
|
||||
outputFileName = new File(outputFileName.replace("-$variant.buildType.name", ""))
|
||||
}
|
||||
variant.assemble.doLast { assemble ->
|
||||
// Create version file
|
||||
def versionFile = new File(rootProject.ext.destinationFolder, "$packageName." + "version")
|
||||
versionFile.text = "$packageName" + ".apk=$verCode"
|
||||
copy {
|
||||
from variant.outputs*.outputFile
|
||||
into rootProject.ext.destinationFolder
|
||||
}
|
||||
}
|
||||
// Create version file
|
||||
def versionFile = new File(rootProject.ext.destinationFolder, packageName + ".version")
|
||||
versionFile.text = packageName + ".apk=$verCode-$variant.buildType.name"
|
||||
copy {
|
||||
from variant.outputs*.outputFile
|
||||
into rootProject.ext.destinationFolder
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def versionPropertiesFile = file('project.properties')
|
||||
|
||||
@@ -18,22 +18,20 @@ android {
|
||||
/**
|
||||
* Copies apk into www apps directory and create version file
|
||||
*/
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all { output ->
|
||||
def newName = outputFileName.replace(".apk", "-v" + variant.versionName + ".apk");
|
||||
newName = newName.replace("-" + variant.buildType.name, "");
|
||||
outputFileName = new File(newName)
|
||||
}
|
||||
variant.assemble.doLast { assemble ->
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all { output ->
|
||||
outputFileName = new File(outputFileName.replace("-$variant.buildType.name", ""))
|
||||
}
|
||||
variant.assemble.doLast { assemble ->
|
||||
// Create version file
|
||||
def versionFile = new File(rootProject.ext.destinationFolder, "$packageName." + "version")
|
||||
versionFile.text = "$packageName" + ".apk=$verCode"
|
||||
def versionFile = new File(rootProject.ext.destinationFolder, "$packageName" + ".version")
|
||||
versionFile.text = "$packageName" + ".apk=$verCode-$variant.buildType.name"
|
||||
copy {
|
||||
from variant.outputs*.outputFile
|
||||
into rootProject.ext.destinationFolder
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def versionPropertiesFile = file('project.properties')
|
||||
if (versionPropertiesFile.exists()) {
|
||||
|
||||
Reference in new issue
Block a user