This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
task.json
89 lines (89 loc) · 2.93 KB
/
task.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"id": "42284b34-be85-4034-890f-8755ad9f6249",
"name": "ios-bundle-version",
"friendlyName": "iOS Bundle Version Numbers",
"description": "Bump the version of your iOS info.plist file at build time.",
"helpMarkDown": "",
"category": "Utility",
"author": "James Montemagno",
"visibility": [
"Build",
"Release"
],
"version": {
"Major": 1,
"Minor": 0,
"Patch": 0
},
"instanceNameFormat": "Bump iOS Versions in $(sourcePath)",
"groups": [
{
"name": "advanced",
"displayName": "Advanced",
"isExpanded": false
}
],
"inputs": [
{
"name": "sourcePath",
"type": "filePath",
"label": "iOS info.plist File Path",
"defaultValue": "",
"required": true,
"helpMarkDown": "Full path to iOS info.plist file."
},
{
"name": "versionCodeOption",
"type": "pickList",
"label": "Version Code Format",
"required": true,
"defaultValue": "buildid",
"options":
{
"buildid": "User Defined/Build Id",
"timestamp": "Unix timestamp in seconds"
},
"helpMarkDown": "Select the type of version code format that you would like to use. Selecting timestamp ignores the version code."
},
{
"name": "versionCode",
"type": "string",
"label": "Version Code (CFBundleVersion)",
"defaultValue": "$(Build.BuildId)",
"required": true,
"visibleRule": "versionCodeOption == buildid",
"helpMarkDown": "Number to set the version code to, must be an integer to use offset, else can be anything."
},
{
"name": "versionCodeOffset",
"type": "string",
"label": "Version Code Offset",
"defaultValue": "",
"required": false,
"visibleRule": "versionCodeOption == buildid",
"helpMarkDown": "A number to offset the version code below, must be an integer."
},
{
"name": "versionName",
"type": "string",
"label": "Version Name (CFBundleShortVersionString)",
"defaultValue": "1.0.$(Build.BuildId)",
"required": false,
"helpMarkDown": "The version number shown to users (leave blank to use existing value in info.plist)."
},
{
"name": "printFile",
"type": "boolean",
"label": "Print File",
"defaultValue": true,
"required": true,
"helpMarkDown": "If you would like to print the file contents before and after changing variables."
}
],
"execution": {
"Node": {
"target": "built/task.js",
"workingDirectory": "$(currentDirectory)"
}
}
}