UNPKG

react-native-integrate

Version:

Automate integration of additional code into React Native projects

1,547 lines (1,546 loc) 84.4 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "AndroidCodeType": { "enum": [ "java", "kotlin" ], "type": "string" }, "AndroidManifestModifierType": { "additionalProperties": false, "properties": { "after": { "$ref": "#/definitions/TextOrRegex" }, "append": { "$ref": "#/definitions/TextOrFileValue" }, "attributes": { "$ref": "#/definitions/AnyObject" }, "before": { "$ref": "#/definitions/TextOrRegex" }, "block": { "$ref": "#/definitions/TBlock_3" }, "comment": { "type": "string" }, "exact": { "type": "boolean" }, "ifNotPresent": { "type": "string" }, "name": { "type": "string" }, "prepend": { "$ref": "#/definitions/TextOrFileValue" }, "replace": { "$ref": "#/definitions/TextOrFileValue" }, "script": { "type": "string" }, "search": { "$ref": "#/definitions/TextOrRegex" }, "strict": { "type": "boolean" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "type": "object" }, "AndroidManifestTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/AndroidManifestModifierType" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "android_manifest", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "AnyObject": { "additionalProperties": true, "type": "object" }, "AppDelegateTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<AppDelegateBlockType>" }, "type": "array" }, "label": { "type": "string" }, "lang": { "$ref": "#/definitions/IosCodeType" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "app_delegate", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "BabelConfigModifierType": { "anyOf": [ { "additionalProperties": false, "properties": { "name": { "type": "string" }, "root": { "type": "string" }, "set": { "additionalProperties": {}, "type": "object" }, "strategy": { "$ref": "#/definitions/ObjectModifierStrategy" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "set" ], "type": "object" }, { "additionalProperties": false, "properties": { "name": { "type": "string" }, "root": { "type": "string" }, "script": { "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "script" ], "type": "object" }, { "additionalProperties": false, "properties": { "after": { "$ref": "#/definitions/TextOrRegex" }, "append": { "$ref": "#/definitions/TextOrFileValue" }, "before": { "$ref": "#/definitions/TextOrRegex" }, "block": { "type": "string" }, "comment": { "type": "string" }, "exact": { "type": "boolean" }, "ifNotPresent": { "type": "string" }, "mode": { "const": "text", "type": "string" }, "name": { "type": "string" }, "prepend": { "$ref": "#/definitions/TextOrFileValue" }, "replace": { "$ref": "#/definitions/TextOrFileValue" }, "script": { "type": "string" }, "search": { "$ref": "#/definitions/TextOrRegex" }, "strict": { "type": "boolean" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "mode" ], "type": "object" } ] }, "BabelConfigTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/BabelConfigModifierType" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "babel_config", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "BuildGradleLocationType": { "enum": [ "app", "root" ], "type": "string" }, "BuildGradleTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<string>" }, "type": "array" }, "label": { "type": "string" }, "location": { "$ref": "#/definitions/BuildGradleLocationType" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "build_gradle", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "ContentModifierType<AppDelegateBlockType>": { "additionalProperties": false, "properties": { "after": { "$ref": "#/definitions/TextOrRegex" }, "append": { "$ref": "#/definitions/TextOrFileValue" }, "before": { "$ref": "#/definitions/TextOrRegex" }, "block": { "$ref": "#/definitions/TBlock" }, "comment": { "type": "string" }, "exact": { "type": "boolean" }, "ifNotPresent": { "type": "string" }, "name": { "type": "string" }, "prepend": { "$ref": "#/definitions/TextOrFileValue" }, "replace": { "$ref": "#/definitions/TextOrFileValue" }, "script": { "type": "string" }, "search": { "$ref": "#/definitions/TextOrRegex" }, "strict": { "type": "boolean" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "type": "object" }, "ContentModifierType<NotificationContentBlockType>": { "additionalProperties": false, "properties": { "after": { "$ref": "#/definitions/TextOrRegex" }, "append": { "$ref": "#/definitions/TextOrFileValue" }, "before": { "$ref": "#/definitions/TextOrRegex" }, "block": { "$ref": "#/definitions/TBlock_2" }, "comment": { "type": "string" }, "exact": { "type": "boolean" }, "ifNotPresent": { "type": "string" }, "name": { "type": "string" }, "prepend": { "$ref": "#/definitions/TextOrFileValue" }, "replace": { "$ref": "#/definitions/TextOrFileValue" }, "script": { "type": "string" }, "search": { "$ref": "#/definitions/TextOrRegex" }, "strict": { "type": "boolean" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "type": "object" }, "ContentModifierType<NotificationServiceBlockType>": { "additionalProperties": false, "properties": { "after": { "$ref": "#/definitions/TextOrRegex" }, "append": { "$ref": "#/definitions/TextOrFileValue" }, "before": { "$ref": "#/definitions/TextOrRegex" }, "block": { "$ref": "#/definitions/TBlock_1" }, "comment": { "type": "string" }, "exact": { "type": "boolean" }, "ifNotPresent": { "type": "string" }, "name": { "type": "string" }, "prepend": { "$ref": "#/definitions/TextOrFileValue" }, "replace": { "$ref": "#/definitions/TextOrFileValue" }, "script": { "type": "string" }, "search": { "$ref": "#/definitions/TextOrRegex" }, "strict": { "type": "boolean" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "type": "object" }, "ContentModifierType<string>": { "additionalProperties": false, "properties": { "after": { "$ref": "#/definitions/TextOrRegex" }, "append": { "$ref": "#/definitions/TextOrFileValue" }, "before": { "$ref": "#/definitions/TextOrRegex" }, "block": { "type": "string" }, "comment": { "type": "string" }, "exact": { "type": "boolean" }, "ifNotPresent": { "type": "string" }, "name": { "type": "string" }, "prepend": { "$ref": "#/definitions/TextOrFileValue" }, "replace": { "$ref": "#/definitions/TextOrFileValue" }, "script": { "type": "string" }, "search": { "$ref": "#/definitions/TextOrRegex" }, "strict": { "type": "boolean" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "type": "object" }, "FsCopyModifierType": { "additionalProperties": false, "properties": { "copyFile": { "type": "string" }, "destination": { "type": "string" }, "message": { "type": "string" }, "name": { "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "copyFile", "destination" ], "type": "object" }, "FsModifierType": { "anyOf": [ { "$ref": "#/definitions/FsCopyModifierType" }, { "$ref": "#/definitions/FsRemoveModifierType" } ] }, "FsRemoveModifierType": { "additionalProperties": false, "properties": { "name": { "type": "string" }, "removeFile": { "type": "string" }, "strict": { "type": "boolean" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "removeFile" ], "type": "object" }, "FsTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/FsModifierType" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "fs", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "GitignoreTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<string>" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "gitignore", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "GradlePropertiesTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<string>" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "gradle_properties", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "IosCodeType": { "enum": [ "objc", "swift" ], "type": "string" }, "JsonTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ObjectModifierType" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "json", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "path", "task" ], "type": "object" }, "MainActivityTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<string>" }, "type": "array" }, "label": { "type": "string" }, "lang": { "$ref": "#/definitions/AndroidCodeType" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "main_activity", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "MainApplicationTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<string>" }, "type": "array" }, "label": { "type": "string" }, "lang": { "$ref": "#/definitions/AndroidCodeType" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "main_application", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "ModStep": { "anyOf": [ { "$ref": "#/definitions/PlistTaskType" }, { "$ref": "#/definitions/JsonTaskType" }, { "$ref": "#/definitions/AppDelegateTaskType" }, { "$ref": "#/definitions/NotificationServiceTaskType" }, { "$ref": "#/definitions/NotificationViewControllerTaskType" }, { "$ref": "#/definitions/BuildGradleTaskType" }, { "$ref": "#/definitions/SettingsGradleTaskType" }, { "$ref": "#/definitions/MainApplicationTaskType" }, { "$ref": "#/definitions/MainActivityTaskType" }, { "$ref": "#/definitions/AndroidManifestTaskType" }, { "$ref": "#/definitions/StringsXmlTaskType" }, { "$ref": "#/definitions/StylesXmlTaskType" }, { "$ref": "#/definitions/XcodeTaskType" }, { "$ref": "#/definitions/PodFileTaskType" }, { "$ref": "#/definitions/GitignoreTaskType" }, { "$ref": "#/definitions/GradlePropertiesTaskType" }, { "$ref": "#/definitions/FsTaskType" }, { "$ref": "#/definitions/ShellTaskType" }, { "$ref": "#/definitions/PromptTaskType" }, { "$ref": "#/definitions/BabelConfigTaskType" }, { "$ref": "#/definitions/ScriptTaskType" } ] }, "ModuleScriptActionType": { "additionalProperties": false, "properties": { "module": { "type": "string" }, "name": { "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "module" ], "type": "object" }, "NotificationServiceTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<NotificationServiceBlockType>" }, "type": "array" }, "label": { "type": "string" }, "lang": { "$ref": "#/definitions/IosCodeType" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "target": { "type": "string" }, "task": { "const": "notification_service", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "target", "task" ], "type": "object" }, "NotificationViewControllerTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ContentModifierType<NotificationContentBlockType>" }, "type": "array" }, "label": { "type": "string" }, "lang": { "$ref": "#/definitions/IosCodeType" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "target": { "type": "string" }, "task": { "const": "notification_view_controller", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "target", "task" ], "type": "object" }, "ObjectModifierStrategy": { "enum": [ "append", "assign", "merge", "merge_concat", "merge_distinct" ], "type": "string" }, "ObjectModifierType": { "anyOf": [ { "additionalProperties": false, "properties": { "name": { "type": "string" }, "set": { "additionalProperties": {}, "type": "object" }, "strategy": { "$ref": "#/definitions/ObjectModifierStrategy" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "set" ], "type": "object" }, { "additionalProperties": false, "properties": { "name": { "type": "string" }, "script": { "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "script" ], "type": "object" } ] }, "OptionValue": { "type": [ "string", "number", "boolean" ] }, "PlistTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/ObjectModifierType" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "target": { "type": "string" }, "task": { "const": "plist", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "PodFileModifierType": { "additionalProperties": false, "properties": { "after": { "$ref": "#/definitions/TextOrRegex" }, "append": { "$ref": "#/definitions/TextOrFileValue" }, "before": { "$ref": "#/definitions/TextOrRegex" }, "block": { "type": "string" }, "comment": { "type": "string" }, "disableFlipper": { "type": "boolean" }, "exact": { "type": "boolean" }, "ifNotPresent": { "type": "string" }, "name": { "type": "string" }, "prepend": { "$ref": "#/definitions/TextOrFileValue" }, "replace": { "$ref": "#/definitions/TextOrFileValue" }, "script": { "type": "string" }, "search": { "$ref": "#/definitions/TextOrRegex" }, "staticLibrary": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "string" } ] }, "strict": { "type": "boolean" }, "useFrameworks": { "enum": [ "dynamic", "static" ], "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "type": "object" }, "PodFileTaskType": { "additionalProperties": false, "properties": { "actions": { "items": { "$ref": "#/definitions/PodFileModifierType" }, "type": "array" }, "label": { "type": "string" }, "name": { "type": "string" }, "postInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "preInfo": { "$ref": "#/definitions/TextOrTitleMessage" }, "task": { "const": "podfile", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "actions", "task" ], "type": "object" }, "PromptActionType": { "anyOf": [ { "additionalProperties": false, "properties": { "defaultValue": { "type": "string" }, "initialValue": { "type": "string" }, "name": { "type": "string" }, "placeholder": { "type": "string" }, "text": { "type": "string" }, "type": { "const": "text", "type": "string" }, "validate": { "anyOf": [ { "additionalProperties": false, "properties": { "flags": { "type": "string" }, "message": { "type": "string" }, "regex": { "type": "string" } }, "required": [ "message", "regex" ], "type": "object" }, { "items": { "additionalProperties": false, "properties": { "flags": { "type": "string" }, "message": { "type": "string" }, "regex": { "type": "string" } }, "required": [ "message", "regex" ], "type": "object" }, "type": "array" } ] }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "name", "text", "type" ], "type": "object" }, { "additionalProperties": false, "properties": { "initialValue": { "type": "boolean" }, "name": { "type": "string" }, "negative": { "type": "string" }, "positive": { "type": "string" }, "text": { "type": "string" }, "type": { "const": "boolean", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string" } ] } }, "required": [ "name", "text", "type" ], "type": "object" }, { "additionalProperties": false, "properties": { "initialValues": { "items": { "$ref": "#/definitions/OptionValue" }, "type": "array" }, "name": { "type": "string" }, "options": { "items": { "additionalProperties": false, "properties": { "hint": { "type": "string" }, "label": { "type": "string" }, "value": { "$ref": "#/definitions/OptionValue" } }, "required": [ "value" ], "type": "object" }, "type": "array" }, "required": { "type": "boolean" }, "text": { "type": "string" }, "type": { "const": "multiselect", "type": "string" }, "when": { "anyOf": [ { "$ref": "#/definitions/AnyObject" }, { "type": "string"