Skip to content

Instantly share code, notes, and snippets.

@joshtynjala
Last active September 29, 2020 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshtynjala/2ef852272dc25c73502ce408a96ec3de to your computer and use it in GitHub Desktop.
Save joshtynjala/2ef852272dc25c73502ce408a96ec3de to your computer and use it in GitHub Desktop.
asconfig.json: How to use the "extends" field to define different options for debug and release builds
{
"config": "air",
"compilerOptions": {
"source-path": "src"
},
"application": "src/MyProjectDebug-app.xml",
"mainClass": "MyProject"
}
{
"extends": "asconfig.json",
"application": "src/MyProjectRelease-app.xml"
}
@joshtynjala
Copy link
Author

joshtynjala commented Aug 10, 2020

asconfig.json is the base file that defines most of the project's configuration options.

asconfig.release.json inherits everything from asconfig.json by using the extends field. It can override a subset of the configuration that needs to be different. In other words, asconfig.json is treated kind of like a template.

In this example, asconfig.json defines the options required for a debug build, while asconfig.release.json overrides the options that need to be different for a release build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment