Skip to content

Commit

Permalink
Set correct content type (application/octet-stream) when upload deobf…
Browse files Browse the repository at this point in the history
…uscation file
  • Loading branch information
Khang-NT committed Feb 28, 2018
1 parent 7cf335c commit 508800f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class PublishTask extends DefaultTask {
println(apk)
// update mapping file
println("Start uploading ${publishConfig.mappings[index]}")
def mappingFileContent = new FileContent('text/plain', publishConfig.mappings[index])
def mappingFileContent = new FileContent('application/octet-stream', publishConfig.mappings[index])
def mappingFile = edits.deobfuscationfiles().upload(publishConfig.packageName,
editId, apk.getVersionCode(), "proguard", mappingFileContent).execute()
println("Upload mapping file success ${publishConfig.mappings[index]}")
Expand Down

0 comments on commit 508800f

Please sign in to comment.