Closed Catfriend1 closed 3 years ago
Ok, I've set ANDROID_PUBLISHER_CREDENTIALS to a full path and filename, e. g. C:\keys\mykey.json .
It's hard under Windows to use the control panel for env vars and set the whole long JSON file content (including line breaks). So I modified my build script as follows to read the file to the env var if the env var is set to a filename. ( see https://github.com/Catfriend1/syncthing-android-fdroid/commit/c8033127ffa03931559041ca2b9bf479b57271cb )
I'd suggest you...
a) throw a meaningful error message like "Sorry, you didn't specify JSON content within the ANDROID_PUBLISHER_CREDENTIALS env var. Please do so."
b) Be lenient and auto-detect if the non-JSON content correspons to an existing file on disk. If so, read the file.
Thank you.
a) sounds reasonable since I've had several people run into this issue.
b) is a no-go because you can define your own envvar and pass it into the play config file path.
@SUPERCILEX Thank you, good job! :-)
How To Reproduce
gradlew PublishReleaseListing
Describe the bug
I repeatedly get the same non meaningful error message.
Versions
For Windows users the equivalent command is:
Tasks executed
What tasks did you run?
Expected behavior
It should have outputted the locales and uploaded them to gplay console successfully.
Additional context (if a crash, provide stack trace)