-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use Secrets Gradle Plugin to provide the secrets securely to t…
…he project The [Secrets Gradle Plugin](https://github.com/google/secrets-gradle-plugin#configuration-options) reads the secrets from `apikeys.properties` (not checked into VCS) and exposes them to the `BuildConfig` via an intermediate `apikeys.defaults.properties` file. This file is checked into VCS and acts as a template for the CI to fill with the secrets.
- Loading branch information
1 parent
87f6c52
commit 5aa4e5f
Showing
4 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file serves as a template for the apikeys.properties file. | ||
# It should be checked into Version Control Systems to provide a structure for the required API keys and client URLs. | ||
# The actual values should be filled in by the CI pipeline using the secrets Gradle plugin and GitHub Secrets. | ||
POWERSYNC_URL= | ||
SUPABASE_KEY= | ||
SERVICE_KEY= | ||
SUPABASE_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
alias(libs.plugins.androidApplication) apply false | ||
alias(libs.plugins.jetbrainsKotlinAndroid) apply false | ||
alias(libs.plugins.ktfmt) apply false | ||
kotlin("plugin.serialization") version "2.0.0-RC1" apply false | ||
alias(libs.plugins.compose.compiler) apply false | ||
alias(libs.plugins.androidApplication) apply false | ||
alias(libs.plugins.jetbrainsKotlinAndroid) apply false | ||
alias(libs.plugins.ktfmt) apply false | ||
kotlin("plugin.serialization") version "2.0.0-RC1" apply false | ||
alias(libs.plugins.compose.compiler) apply false | ||
} | ||
|
||
buildscript { dependencies { classpath(libs.secrets.gradle.plugin) } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters