mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 19:05:23 +01:00
Upload mapping files
This commit is contained in:
@@ -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
|
||||
if (variant.getBuildType().isMinifyEnabled())
|
||||
variant.assembleProvider.get().doLast {
|
||||
for (file in variant.getMappingFileProvider().get().files)
|
||||
for (file in variant.getMappingFileProvider().get().files) {
|
||||
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 name = "$archivesBaseName-$variant.baseName-$file.name"
|
||||
def target = new File(dir, name)
|
||||
@@ -352,6 +360,7 @@ android {
|
||||
rename { String fileName -> name }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user