mirror of https://github.com/M66B/FairEmail.git
Upload mapping files
This commit is contained in:
parent
ce114969d0
commit
0fdce8de4d
|
@ -340,8 +340,16 @@ android {
|
||||||
// $JAVA_HOME/bin/java -jar ~/Android/Sdk/tools/proguard/lib/retrace.jar ~/email/app/schemas/mapping/FairEmail-v1.nnn-github-release-mapping.txt
|
// $JAVA_HOME/bin/java -jar ~/Android/Sdk/tools/proguard/lib/retrace.jar ~/email/app/schemas/mapping/FairEmail-v1.nnn-github-release-mapping.txt
|
||||||
if (variant.getBuildType().isMinifyEnabled())
|
if (variant.getBuildType().isMinifyEnabled())
|
||||||
variant.assembleProvider.get().doLast {
|
variant.assembleProvider.get().doLast {
|
||||||
for (file in variant.getMappingFileProvider().get().files)
|
for (file in variant.getMappingFileProvider().get().files) {
|
||||||
if (file != null && file.exists()) {
|
if (file != null && file.exists()) {
|
||||||
|
exec {
|
||||||
|
commandLine 'curl',
|
||||||
|
'-o', '/dev/null',
|
||||||
|
'-X', 'POST', "https://M66B:" + localProperties.getProperty("bb.pwd", "") + "@api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads",
|
||||||
|
'--form', "files=@" + file + ";" +
|
||||||
|
"filename=FairEmail-v1." + getVersionCode() + getRevision() + "-" + variant.baseName + "-mapping.txt"
|
||||||
|
}
|
||||||
|
|
||||||
def dir = "${rootDir}/app/schemas/mapping"
|
def dir = "${rootDir}/app/schemas/mapping"
|
||||||
def name = "$archivesBaseName-$variant.baseName-$file.name"
|
def name = "$archivesBaseName-$variant.baseName-$file.name"
|
||||||
def target = new File(dir, name)
|
def target = new File(dir, name)
|
||||||
|
@ -352,6 +360,7 @@ android {
|
||||||
rename { String fileName -> name }
|
rename { String fileName -> name }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue