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

[Enhancement] Add Default Environment variables to buildtools.json #154

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

dansiegel
Copy link
Owner

Description

Adds the ability to add non-sensitive default values to the buildtools.json that are used by the Secrets class generator and the template manifest task. This allows both generically default variables and build configuration based variables.

The defaults can now be added in the buildtools.json as follows:

{
  "environment": {
    "defaults": {
      "AppId": "com.avantipoint.awesomeapp"
    },
    "configuration": {
      "Debug": {
        "AppId": "com.avantipoint.awesomeappdev"
      }
    }
  }
}

Given this sample I might tokenize the package name in the AndroidManifest or the CFBundleIdentifier in the Info.plist, this would then allow me to automatically set the name to com.avantipoint.awesomeappdev while debugging the app, and com.avantipoint.awesomeapp on all other builds. As a result I can easily ensure that I can deploy side by side instances of the app.

Issues

@dansiegel dansiegel merged commit 4cd6a80 into master Oct 27, 2020
@dansiegel dansiegel deleted the config-environment branch October 27, 2020 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Add Configuration based values Allow severity and default handling for missing Secrets
1 participant