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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
# File 'lib/fastlane/plugin/appcenter/actions/appcenter_codepush_release_react.rb', line 64
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :api_token,
type: String,
env_name: "APPCENTER_API_TOKEN",
description: "API Token for App Center Access",
verify_block: proc do |value|
UI.user_error!("No API token for App Center given, pass using `api_token: 'token'`") unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :owner_name,
type: String,
env_name: "APPCENTER_OWNER_NAME",
description: "Name of the owner of the application on App Center",
verify_block: proc do |value|
UI.user_error!("No owner name for App Center given, pass using `owner_name: 'owner name'`") unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :app_name,
type: String,
env_name: "APPCENTER_APP_NAME",
description: "Name of the application on App Center",
verify_block: proc do |value|
UI.user_error!("No app name for App Center given, pass using `app_name: 'app name'`") unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :deployment,
type: String,
env_name: "APPCENTER_CODEPUSH_DEPLOYMENT",
optional: true,
default_value: "Staging",
description: "Deployment name for releasing to"),
FastlaneCore::ConfigItem.new(key: :target_version,
type: String,
env_name: "APPCENTER_CODEPUSH_TARGET_VERSION",
optional: true,
description: "Target binary version for example 1.0.1"),
FastlaneCore::ConfigItem.new(key: :mandatory,
type: Boolean,
env_name: "APPCENTER_CODEPUSH_MANDATORY",
default_value: true,
optional: true,
description: "mandatory update or not"),
FastlaneCore::ConfigItem.new(key: :description,
type: String,
env_name: "APPCENTER_CODEPUSH_DESCRIPTION",
optional: true,
description: "Release description for CodePush"),
FastlaneCore::ConfigItem.new(key: :dry_run,
type: Boolean,
env_name: "APPCENTER_CODEPUSH_DRY_RUN",
default_value: false,
optional: true,
description: "Print the command that would be run, and don't run it"),
FastlaneCore::ConfigItem.new(key: :disabled,
type: Boolean,
env_name: "APPCENTER_CODEPUSH_DISABLED",
default_value: false,
optional: true,
description: "Specifies whether this release should be immediately downloadable"),
FastlaneCore::ConfigItem.new(key: :no_duplicate_release_error,
type: Boolean,
env_name: "APPCENTER_CODEPUSH_NO_DUPLICATE_ERROR",
default_value: false,
optional: true,
description: "Specifies whether to return an error if the main bundle is identical to the latest codepush release"),
FastlaneCore::ConfigItem.new(key: :bundle_name,
type: String,
env_name: "APPCENTER_CODEPUSH_BUNDLE_NAME",
optional: true,
description: "Specifies the name of the bundle file"),
FastlaneCore::ConfigItem.new(key: :output_dir,
type: String,
env_name: "APPCENTER_CODEPUSH_OUTPUT",
optional: true,
description: "Specifies path to where the bundle and sourcemap should be written"),
FastlaneCore::ConfigItem.new(key: :sourcemap_output,
type: String,
env_name: "APPCENTER_CODEPUSH_SOURCEMAP_OUTPUT",
optional: true,
description: "Specifies path to write sourcemap to"),
FastlaneCore::ConfigItem.new(key: :development,
type: Boolean,
env_name: "APPCENTER_CODEPUSH_DEVELOPMENT",
optional: true,
default_value: false,
description: "Specifies whether to generate a dev build")
]
end
|