fix swapped version-name and -code in appcenter-upload-script

This commit is contained in:
Felix 2019-11-19 23:38:01 +01:00
parent 755c647d32
commit 1f326ad995

View file

@ -61,7 +61,7 @@ echo ${response_json}
if [ -n "$mapping_path" ]; then
#step 1 get upload id and url
request_url="https://api.appcenter.ms/v0.1/apps/${owner_name}/${app_name}/symbol_uploads"
data="{\"symbol_type\": \"AndroidProguard\",\"file_name\": \"mapping.txt\",\"build\": \"$versionName\",\"version\": \"$versionCode\"}"
data="{\"symbol_type\": \"AndroidProguard\",\"file_name\": \"mapping.txt\",\"build\": \"$versionCode\",\"version\": \"$versionName\"}"
mapping_json=$(curl -X POST \
-d "$data" \
--header "Content-Type: application/json" \
@ -89,4 +89,4 @@ if [ -n "$mapping_path" ]; then
--header "X-API-Token: ${token}" \
-d "${data}" \
${confirm_url} 2> /dev/null)
fi
fi