Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I access secrets in build.gradle? #66

Open
distinctdan opened this issue Aug 28, 2023 · 2 comments
Open

How do I access secrets in build.gradle? #66

distinctdan opened this issue Aug 28, 2023 · 2 comments

Comments

@distinctdan
Copy link

distinctdan commented Aug 28, 2023

I need to access secrets in my app build.gradle, but I'm not seeing any documentation on how to do it. Specifically, I want to default my signing keystore to use an environment variable if present for github actions, but then fallback to using a local secrets file. It seems like this would probably be supported, is there a way to do this?

I'm trying this, but this doesn't work:

    signingConfigs {
        release {
            storePassword System.getenv("MY_RELEASE_KEYSTORE_PASSWORD") ?: project.findProperty('MyReleaseKeystorePassword')
        }
    }
@aleksamarkoni
Copy link

Any updates on this topic, it's been almost 6 months.

@BenderNK
Copy link

BenderNK commented Jan 7, 2025

I am not part of this project. We had the exact same issue. It is not officially supported by this plugin. The plugin appears to be very simple and does not give you the controls that OP is asking. We are getting rid of this plugin and just use custom gradle scripts instead as it gives you finer controls on how to configure your build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants