Comments (3)
Gradle send errors about this variables not declared. You need to add next lines in local.properties
file in the project's root folder:
RELEASE_KEYSTORE_PATH=''
RELEASE_KEYSTORE_PASSWORD=''
RELEASE_KEY_ALIAS=''
RELEASE_KEY_PASSWORD=''
Yes, variables can be empty because you cannot sign the app while run debug
version.
from hash-checker-lite.
Gradle send errors about this variables not declared. You need to add next lines in
local.properties
file in the project's root folder:RELEASE_KEYSTORE_PATH='' RELEASE_KEYSTORE_PASSWORD='' RELEASE_KEY_ALIAS='' RELEASE_KEY_PASSWORD=''
Yes, variables can be empty because you cannot sign the app while run
debug
version.
Yes, before opening issue i tried to declare this values in local.properties. The error disappeared.
But look at repo's code:
if (keystoreProperties[KEYSTORE_PATH] == null) {
keystoreProperties.put(
KEYSTORE_PATH,
System.getenv(KEYSTORE_PATH)
)
...
}
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.
from hash-checker-lite.
@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.
from hash-checker-lite.
Related Issues (20)
- Check Feedback message before send it
- Add In-app update feature HOT 2
- Colorize icons in source and actions bottom sheet selectors to accent color
- Fix Codacy issues
- Update translations
- Add Dagger 2 implementation
- Fix Analysis issues HOT 1
- Update Changelog HOT 1
- Non-Free dependencies added with v1.0.8 HOT 4
- Update translations HOT 1
- Fix CDP issues
- Add SHA-3 support HOT 1
- Update translations
- CI fix
- Create `default` and `googlePlay` flavors HOT 2
- Update translations (v. 1.1.0) HOT 1
- Separate unit and instrumentation tests on CI
- Update Wiki after release `1.1.0` version HOT 1
- Integrate with `pip-license-checker` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hash-checker-lite.