{
  "$schema": "http://json-schema.org/schema",
  "title": "NativeScript builder",
  "description": "",
  "type": "object",
  "properties": {
    "command": {
      "type": "string",
      "description": "NativeScript CLI command to invoke",
      "default": "test"
    },
    "platform": {
      "type": "string",
      "description": "Platform to run on"
    },
    "force": {
      "type": "boolean",
      "default": true,
      "description": "If true, skips the application compatibility checks and forces npm i to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring ns migrate."
    },
    "silent": {
      "type": "boolean",
      "default": false,
      "description": "If true, skips prompts.",
      "alias": "s"
    },
    "verbose": {
      "type": "boolean",
      "default": false,
      "description": "Enable verbose logging"
    },
    "id": {
      "type": "string",
      "description": "App bundle id. Use with configurations that desire a specific bundle id to be set."
    },
    "combineWithConfig": {
      "type": "string",
      "description": "Used with targets to share build configurations and avoid duplicating configurations across multiple targets."
    },
    "provision": {
      "type": "string",
      "description": "(Apple Only) When building, use this provision profile name."
    },
    "aab": {
      "type": "boolean",
      "default": false,
      "description": "(Android Only) When building, create an Android App Bundle (.aab file)."
    },
    "keyStorePath": {
      "type": "string",
      "description": "(Android Only) When building, use the keystore file at this location."
    },
    "keyStorePassword": {
      "type": "string",
      "description": "(Android Only) When building, use this keystore password."
    },
    "keyStoreAlias": {
      "type": "string",
      "description": "(Android Only) When building, use this keystore alias."
    },
    "keyStoreAliasPassword": {
      "type": "string",
      "description": "(Android Only) When building, use this keystore alias password."
    },
    "copyTo": {
      "type": "string",
      "description": "When building, copy the package to this location."
    },
    "android": {
      "type": "object",
      "aab": {
        "type": "boolean",
        "default": false,
        "description": "(Android Only) When building, create an Android App Bundle (.aab file)."
      },
      "keyStorePath": {
        "type": "string",
        "description": "(Android Only) When building, use the keystore file at this location."
      },
      "keyStorePassword": {
        "type": "string",
        "description": "(Android Only) When building, use this keystore password."
      },
      "keyStoreAlias": {
        "type": "string",
        "description": "(Android Only) When building, use this keystore alias."
      },
      "keyStoreAliasPassword": {
        "type": "string",
        "description": "(Android Only) When building, use this keystore alias password."
      },
      "xmlUpdates": {
        "type": "object",
        "description": "Update any .xml value. Specify name of any filename with key/value pairs, e.g. { 'src/main/res/values/strings.xml': { app_name: 'MyApp', title_activity_kimera: 'MyApp' } }. Defaults to look in App_Resources/Android/{filepath} however you can specify relative path if located elsewhere."
      }
    },
    "ios": {
      "type": "object",
      "required": [],
      "provision": {
        "type": "string",
        "description": "(iOS Only) When building, use this provision profile name."
      },
      "plistUpdates": {
        "type": "object",
        "description": "Update any .plist value. Specify name of any filename with key/value pairs, e.g. { 'Info.plist': { CFBundleDisplayName: 'MyApp' } }. Defaults to look in App_Resources/iOS/{filepath} however you can specify relative path if located elsewhere."
      }
    },
    "visionos": {
      "type": "object",
      "required": [],
      "provision": {
        "type": "string",
        "description": "(visionOS Only) When building, use this provision profile name."
      },
      "plistUpdates": {
        "type": "object",
        "description": "Update any .plist value. Specify name of any filename with key/value pairs, e.g. { 'Info.plist': { CFBundleDisplayName: 'MyApp' } }. Defaults to look in App_Resources/visionOS/{filepath} however you can specify relative path if located elsewhere."
      }
    },
    "device": {
      "type": "string",
      "description": "Device identifier to run app on.",
      "alias": "d"
    },
    "emulator": {
      "type": "boolean",
      "default": false,
      "description": "Explicitly run with an emulator or simulator"
    },
    "noHmr": {
      "type": "boolean",
      "default": false,
      "description": "Disable HMR"
    },
    "uglify": {
      "type": "boolean",
      "default": false,
      "description": "Enable uglify during the webpack build"
    },
    "release": {
      "type": "boolean",
      "default": false,
      "description": "Enable release mode during build using the --release flag"
    },
    "forDevice": {
      "type": "boolean",
      "default": false,
      "description": "Build in device mode using the --for-device flag"
    },
    "production": {
      "type": "boolean",
      "default": false,
      "description": "Build in production mode using the --env.production flag"
    },
    "plistUpdates": {
      "type": "object",
      "description": "Update any .plist value. Specify name of any filename with key/value pairs, e.g. { 'Info.plist': { CFBundleDisplayName: 'MyApp' } }. Defaults to look in App_Resources/iOS/{filepath} however you can specify relative path if located elsewhere."
    },
    "xmlUpdates": {
      "type": "object",
      "description": "Update any .xml value. Specify name of any filename with key/value pairs, e.g. { 'src/main/res/values/strings.xml': { app_name: 'MyApp', title_activity_kimera: 'MyApp' } }. Defaults to look in App_Resources/Android/{filepath} however you can specify relative path if located elsewhere."
    },
    "fileReplacements": {
      "description": "Replace files with other files in the build.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "replace": {
            "type": "string",
            "description": "The file to be replaced."
          },
          "with": {
            "type": "string",
            "description": "The file to replace with."
          }
        },
        "additionalProperties": false,
        "required": [
          "replace",
          "with"
        ]
      },
      "default": []
    },
    "clean": {
      "type": "boolean",
      "default": false,
      "description": "Do a full project clean"
    },
    "debug": {
      "type": "boolean",
      "default": true,
      "description": "Use 'ns debug' instead of 'ns run'. Defaults to true"
    },
    "timeout": {
      "type": "number",
      "default": -1,
      "description": "Increase the default 90s timeout to connect to a device/simulator"
    },
    "prepare": {
      "type": "boolean",
      "description": "Starts a Webpack compilation and prepares the app's App_Resources and the plugins platforms directories. The output is generated in a subdirectory for the selected target platform in the platforms directory. This lets you build the project for the selected platform.",
      "default": false
    },
    "flags": {
      "type": "string",
      "description": "Extra flags to pass to the NativeScript CLI (e.g. '--env.config=myapp'). You can separate multiple flags by spaces and use '=' to join option/values (e.g. '--env.config=myapp --env.appComponents=myCustomActivity.ts"
    },
    "coverage": {
      "type": "boolean",
      "description": "",
      "default": false
    }
  }
}