{
  "$ref": "#/definitions/BrownfieldConfig",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "BrownfieldAndroidConfig": {
      "additionalProperties": false,
      "properties": {
        "expo": {
          "$ref": "#/definitions/BrownfieldExpoAndroidConfig",
          "description": "Expo config plugin options for Android Expo prebuild phase."
        },
        "moduleName": {
          "description": "AAR module name.",
          "type": "string"
        },
        "variant": {
          "description": "Your app's build variant, which is constructed from build type and product flavor, e.g. 'debug' or 'freeRelease'.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "BrownfieldConfig": {
      "additionalProperties": false,
      "properties": {
        "$schema": {
          "type": "string"
        },
        "android": {
          "$ref": "#/definitions/BrownfieldAndroidConfig",
          "description": "Brownfield Android configuration."
        },
        "brownie": {
          "$ref": "#/definitions/BrownieConfig",
          "description": "Brownie (state library) configuration."
        },
        "ios": {
          "$ref": "#/definitions/BrownfieldIosConfig",
          "description": "Brownfield iOS configuration."
        },
        "verbose": {
          "description": "Enables verbose CLI logging.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "BrownfieldExpoAndroidConfig": {
      "additionalProperties": false,
      "description": "Expo config plugin options for Android prebuild scaffolding.",
      "properties": {
        "artifactId": {
          "description": "Maven artifact ID used when publishing the AAR.",
          "type": "string"
        },
        "compileSdkVersion": {
          "description": "Compile SDK version for the Android library. Defaults to 37 on Expo SDK 58 and later, otherwise 35.",
          "type": "number"
        },
        "excludeDependencies": {
          "description": "Dependencies to keep out of the published AAR's POM and module.json, as \"group:module\" or \"group\" for a whole group. Written as Gradle excludes into the generated module, e.g. \"com.caverock:androidsvg\".",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "extraProguardRules": {
          "description": "Extra Proguard rules appended to the default rules.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "groupId": {
          "description": "Maven group ID used when publishing the AAR.",
          "type": "string"
        },
        "minSdkVersion": {
          "description": "Minimum SDK version for the Android library.",
          "type": "number"
        },
        "minifyEnabled": {
          "description": "Toggle minification for the generated Android library.",
          "type": "boolean"
        },
        "missingDimensionStrategies": {
          "description": "Missing dimension strategies as dimension + flavor(s), e.g. \"type, alpha\".",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "packageName": {
          "description": "The package name for the Android library module.",
          "type": "string"
        },
        "targetSdkVersion": {
          "description": "Target SDK version for the Android library. Used on Expo SDK versions below 58; ignored on 58 and later.",
          "type": "number"
        },
        "useLocalGradlePlugin": {
          "description": "When true, load the Brownfield Gradle plugin from `@callstack/react-native-brownfield/gradle-plugin/brownfield` via `includeBuild` instead of adding the Maven classpath dependency. Disabled by default.",
          "type": "boolean"
        },
        "useLocalMaven": {
          "description": "When true, prefer artifacts from the local Maven repository when resolving the Brownfield plugin dependencies. Disabled by default.",
          "type": "boolean"
        },
        "version": {
          "description": "Maven version used when publishing the AAR.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "BrownfieldExpoIosConfig": {
      "additionalProperties": false,
      "description": "Expo config plugin options for iOS prebuild scaffolding.",
      "properties": {
        "buildSettings": {
          "additionalProperties": {
            "type": ["string", "boolean", "number"]
          },
          "description": "Custom build settings applied when building the framework.",
          "type": "object"
        },
        "bundleIdentifier": {
          "description": "The bundle identifier for the framework.",
          "type": "string"
        },
        "deploymentTarget": {
          "description": "Minimum iOS deployment target for the generated framework.",
          "type": "string"
        },
        "frameworkVersion": {
          "description": "Framework version used for Apple build settings.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "BrownfieldIosConfig": {
      "additionalProperties": false,
      "properties": {
        "addSpmPackage": {
          "description": "When set, generate a local Swift Package Manager manifest next to the packaged XCFramework outputs.",
          "type": "boolean"
        },
        "buildFolder": {
          "description": "Location for iOS build artifacts.",
          "type": "string"
        },
        "configuration": {
          "description": "Xcode scheme configuration (case sensitive).",
          "type": "string"
        },
        "destination": {
          "description": "Destination(s) for the build. You can pass multiple destinations as separate values or repeated use of the flag. Values can be either: \"simulator\", \"device\" or destinations supported by \"xcodebuild -destination\" flag, e.g. \"generic/platform=iOS\".",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "expo": {
          "$ref": "#/definitions/BrownfieldExpoIosConfig",
          "description": "Expo config plugin options for iOS Expo prebuild phase."
        },
        "exportExtraParams": {
          "description": "Custom xcodebuild export archive parameters.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "exportOptionsPlist": {
          "description": "Export options file name for archiving (default: ExportOptions.plist).",
          "type": "string"
        },
        "extraParams": {
          "description": "Custom xcodebuild parameters.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "extraSpmXcframeworks": {
          "description": "Additional XCFrameworks copied into the generated local SPM package as binary targets. Only consumed when `--add-spm-package` is set. Defaults to [].",
          "items": {
            "$ref": "#/definitions/ExtraSpmXcframework"
          },
          "type": "array"
        },
        "installPods": {
          "description": "Whether to install CocoaPods.",
          "type": "boolean"
        },
        "newArch": {
          "description": "Whether to build in new architecture.",
          "type": "boolean"
        },
        "scheme": {
          "description": "Xcode scheme to use.",
          "type": "string"
        },
        "target": {
          "description": "Xcode target to use.",
          "type": "string"
        },
        "usePrebuiltExpo": {
          "description": "Set when `--use-prebuilt-expo` is passed; omitted when the flag is absent (Rock applies Expo version defaults).",
          "type": "boolean"
        },
        "usePrebuiltRnCore": {
          "description": "Set when `--use-prebuilt-rn-core` is passed; omitted when the flag is absent (Rock applies RN version defaults).",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "BrownieConfig": {
      "additionalProperties": false,
      "properties": {
        "kotlin": {
          "description": "The output path to generate Kotlin Brownie store files at.",
          "type": "string"
        },
        "kotlinPackageName": {
          "description": "The package name for the Kotlin source code.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExtraSpmXcframework": {
      "additionalProperties": false,
      "description": "Extra XCFramework declared for inclusion as a binary target in the local SPM package generated by `package:ios --add-spm-package`.",
      "properties": {
        "name": {
          "description": "Binary target / module name used in Package.swift.",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
          "type": "string"
        },
        "path": {
          "description": "Path to the XCFramework directory, absolute or relative to the project root.",
          "type": "string"
        }
      },
      "required": ["name", "path"],
      "type": "object"
    }
  }
}
