You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
In my understanding if keystoreProperties[KEYSTORE_PATH] == null (and it is actually null, coz KEYSTORE_PATH not declared in local.properties by default), then keystoreProperties.put() calls, which saves value System.getenv(KEYSTORE_PATH) with a key KEYSTORE_PATH at local.properties.
In theory, your code is built in such a way that you do not need to declare keys in local.properties.
I tried to figure out why this error occurred and found answer that you need to add String.valueOf() for result of System.getenv(KEYSTORE_PATH)
Now gradle error disappears and you don't even need to declare keys in local.properties. Your code already does it for you.
@vipozdn Thanks. Yes, this is works. I'm added value reading from ENV for CI. local.properties contains values only for current project, and if in ENV you are declared variable with same name but for another project, release build fails. CI (in the app case - GitHub Actions) has a separated environment.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Changing System.getenv(KEYSTORE_PATH)
to String.valueOf(System.getenv(KEYSTORE_PATH))
solves the problem and makes a successful gradle sync
The same for the other three calls of System.getenv
If you accept this, assign it to me, please
The text was updated successfully, but these errors were encountered: