fastlane-plugin-rustore_developer 0.2.10 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -21
- data/README.md +52 -52
- data/lib/fastlane/plugin/rustore_developer/actions/rustore_developer_auth_action.rb +56 -56
- data/lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb +59 -59
- data/lib/fastlane/plugin/rustore_developer/actions/rustore_developer_create_version_action.rb +70 -69
- data/lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb +59 -59
- data/lib/fastlane/plugin/rustore_developer/actions/rustore_developer_publish_action.rb +59 -59
- data/lib/fastlane/plugin/rustore_developer/actions/rustore_developer_status_action.rb +106 -106
- data/lib/fastlane/plugin/rustore_developer/actions/rustore_developer_upload_action.rb +63 -63
- data/lib/fastlane/plugin/rustore_developer/helper/rustore_developer_helper.rb +198 -198
- data/lib/fastlane/plugin/rustore_developer/version.rb +5 -5
- data/lib/fastlane/plugin/rustore_developer.rb +16 -16
- metadata +2 -2
@@ -1,59 +1,59 @@
|
|
1
|
-
require 'fastlane/action'
|
2
|
-
require_relative '../helper/rustore_developer_helper'
|
3
|
-
|
4
|
-
module Fastlane
|
5
|
-
module Actions
|
6
|
-
class RustoreDeveloperPublishAction < Action
|
7
|
-
|
8
|
-
def self.run(params)
|
9
|
-
return Helper::RustoreDeveloperHelper.publishVersion(params[:token], params[:package],params[:version])
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.description
|
13
|
-
"RUSTORE: Publish version to market"
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.authors
|
17
|
-
["RimiX2"]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.return_value
|
21
|
-
"Was operation successfull? (true|false)"
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.details
|
25
|
-
# Optional:
|
26
|
-
""
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.available_options
|
30
|
-
[
|
31
|
-
FastlaneCore::ConfigItem.new(key: :package,
|
32
|
-
env_name: "RUSTORE_PACKAGE_NAME",
|
33
|
-
description: "Android app package name (FQDN)",
|
34
|
-
optional: false,
|
35
|
-
type: String),
|
36
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
37
|
-
description: "Version ID",
|
38
|
-
optional: true,
|
39
|
-
type: String,
|
40
|
-
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION]),
|
41
|
-
FastlaneCore::ConfigItem.new(key: :token,
|
42
|
-
description: "Access token",
|
43
|
-
optional: false,
|
44
|
-
sensitive: true,
|
45
|
-
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN],
|
46
|
-
verify_block: proc do |value|
|
47
|
-
UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty?
|
48
|
-
end,
|
49
|
-
type: String)
|
50
|
-
]
|
51
|
-
end
|
52
|
-
|
53
|
-
def self.is_supported?(platform)
|
54
|
-
[:android].include?(platform)
|
55
|
-
true
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/rustore_developer_helper'
|
3
|
+
|
4
|
+
module Fastlane
|
5
|
+
module Actions
|
6
|
+
class RustoreDeveloperPublishAction < Action
|
7
|
+
|
8
|
+
def self.run(params)
|
9
|
+
return Helper::RustoreDeveloperHelper.publishVersion(params[:token], params[:package],params[:version])
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.description
|
13
|
+
"RUSTORE: Publish version to market"
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.authors
|
17
|
+
["RimiX2"]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.return_value
|
21
|
+
"Was operation successfull? (true|false)"
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.details
|
25
|
+
# Optional:
|
26
|
+
""
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.available_options
|
30
|
+
[
|
31
|
+
FastlaneCore::ConfigItem.new(key: :package,
|
32
|
+
env_name: "RUSTORE_PACKAGE_NAME",
|
33
|
+
description: "Android app package name (FQDN)",
|
34
|
+
optional: false,
|
35
|
+
type: String),
|
36
|
+
FastlaneCore::ConfigItem.new(key: :version,
|
37
|
+
description: "Version ID",
|
38
|
+
optional: true,
|
39
|
+
type: String,
|
40
|
+
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION]),
|
41
|
+
FastlaneCore::ConfigItem.new(key: :token,
|
42
|
+
description: "Access token",
|
43
|
+
optional: false,
|
44
|
+
sensitive: true,
|
45
|
+
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN],
|
46
|
+
verify_block: proc do |value|
|
47
|
+
UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty?
|
48
|
+
end,
|
49
|
+
type: String)
|
50
|
+
]
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.is_supported?(platform)
|
54
|
+
[:android].include?(platform)
|
55
|
+
true
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -1,106 +1,106 @@
|
|
1
|
-
require 'fastlane/action'
|
2
|
-
require_relative '../helper/rustore_developer_helper'
|
3
|
-
|
4
|
-
module Fastlane
|
5
|
-
module Actions
|
6
|
-
class RustoreDeveloperStatusAction < Action
|
7
|
-
|
8
|
-
def self.run(params)
|
9
|
-
if params[:version].nil?
|
10
|
-
massive = Helper::RustoreDeveloperHelper.getStatusAll(params[:token], params[:package])
|
11
|
-
# puts(massive)
|
12
|
-
exclude_cols = ['paid', 'priceValue', 'whatsNew', 'partialValue', 'sendDateForModer', 'publishDateTime',]
|
13
|
-
col_labels = {versionId: "ID",
|
14
|
-
appName: "Title",
|
15
|
-
appType: "appType",
|
16
|
-
versionName: "vName",
|
17
|
-
versionCode: "vCode",
|
18
|
-
versionStatus: "Status",
|
19
|
-
publishType: 'publishType',
|
20
|
-
publishDateTime: 'Published',
|
21
|
-
sendDateForModer: 'Commited',
|
22
|
-
partialValue: 'Part',
|
23
|
-
whatsNew: 'whatsNew',
|
24
|
-
priceValue: 'Price',
|
25
|
-
paid: 'paid',
|
26
|
-
}
|
27
|
-
@columns = col_labels.each_with_object({}) { |(col, label), h|
|
28
|
-
h[col] = {label: label,
|
29
|
-
width: [[(massive.map { |g| g[col.to_s].to_s.size }.max), 30].min, label.size].max}
|
30
|
-
}
|
31
|
-
|
32
|
-
# header top line
|
33
|
-
puts "+-#{@columns.map { |_, g| '-' * g[:width] }.join('-+-')}-+"
|
34
|
-
# header line
|
35
|
-
puts "| #{@columns.map { |_, g| g[:label].to_s.ljust(g[:width]) }.join(' | ')} |"
|
36
|
-
# # header bottom line
|
37
|
-
puts "+-#{@columns.map { |_, g| '-' * g[:width] }.join('-+-')}-+"
|
38
|
-
|
39
|
-
# row line
|
40
|
-
massive.each do |row|
|
41
|
-
str = row.keys.map { |k|
|
42
|
-
a = row[k]
|
43
|
-
if a.to_s.size > 30 then
|
44
|
-
a = a.to_s[0..26] + "..."
|
45
|
-
end
|
46
|
-
a.to_s.ljust(@columns[k.to_sym][:width])
|
47
|
-
}.join(' | ')
|
48
|
-
puts "| #{str} |"
|
49
|
-
end
|
50
|
-
# bottom line
|
51
|
-
puts "+-#{@columns.map { |_, g| '-' * g[:width] }.join('-+-')}-+"
|
52
|
-
else
|
53
|
-
info = Helper::RustoreDeveloperHelper.getStatus(params[:token], params[:package], params[:version])
|
54
|
-
puts(info)
|
55
|
-
end
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
|
-
def self.description
|
60
|
-
"RUSTORE: Get app versions statuses"
|
61
|
-
end
|
62
|
-
|
63
|
-
def self.authors
|
64
|
-
["RimiX2"]
|
65
|
-
end
|
66
|
-
|
67
|
-
def self.return_value
|
68
|
-
""
|
69
|
-
end
|
70
|
-
|
71
|
-
def self.details
|
72
|
-
# Optional:
|
73
|
-
""
|
74
|
-
end
|
75
|
-
|
76
|
-
def self.available_options
|
77
|
-
[
|
78
|
-
FastlaneCore::ConfigItem.new(key: :package,
|
79
|
-
env_name: "RUSTORE_PACKAGE_NAME",
|
80
|
-
description: "Android app package name (FQDN)",
|
81
|
-
optional: false,
|
82
|
-
type: String),
|
83
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
84
|
-
description: "Version ID",
|
85
|
-
optional: true,
|
86
|
-
type: String,
|
87
|
-
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION]),
|
88
|
-
FastlaneCore::ConfigItem.new(key: :token,
|
89
|
-
description: "Access token",
|
90
|
-
optional: false,
|
91
|
-
sensitive: true,
|
92
|
-
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN],
|
93
|
-
verify_block: proc do |value|
|
94
|
-
UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty?
|
95
|
-
end,
|
96
|
-
type: String)
|
97
|
-
]
|
98
|
-
end
|
99
|
-
|
100
|
-
def self.is_supported?(platform)
|
101
|
-
[:android].include?(platform)
|
102
|
-
true
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/rustore_developer_helper'
|
3
|
+
|
4
|
+
module Fastlane
|
5
|
+
module Actions
|
6
|
+
class RustoreDeveloperStatusAction < Action
|
7
|
+
|
8
|
+
def self.run(params)
|
9
|
+
if params[:version].nil?
|
10
|
+
massive = Helper::RustoreDeveloperHelper.getStatusAll(params[:token], params[:package])
|
11
|
+
# puts(massive)
|
12
|
+
exclude_cols = ['paid', 'priceValue', 'whatsNew', 'partialValue', 'sendDateForModer', 'publishDateTime',]
|
13
|
+
col_labels = {versionId: "ID",
|
14
|
+
appName: "Title",
|
15
|
+
appType: "appType",
|
16
|
+
versionName: "vName",
|
17
|
+
versionCode: "vCode",
|
18
|
+
versionStatus: "Status",
|
19
|
+
publishType: 'publishType',
|
20
|
+
publishDateTime: 'Published',
|
21
|
+
sendDateForModer: 'Commited',
|
22
|
+
partialValue: 'Part',
|
23
|
+
whatsNew: 'whatsNew',
|
24
|
+
priceValue: 'Price',
|
25
|
+
paid: 'paid',
|
26
|
+
}
|
27
|
+
@columns = col_labels.each_with_object({}) { |(col, label), h|
|
28
|
+
h[col] = {label: label,
|
29
|
+
width: [[(massive.map { |g| g[col.to_s].to_s.size }.max), 30].min, label.size].max}
|
30
|
+
}
|
31
|
+
|
32
|
+
# header top line
|
33
|
+
puts "+-#{@columns.map { |_, g| '-' * g[:width] }.join('-+-')}-+"
|
34
|
+
# header line
|
35
|
+
puts "| #{@columns.map { |_, g| g[:label].to_s.ljust(g[:width]) }.join(' | ')} |"
|
36
|
+
# # header bottom line
|
37
|
+
puts "+-#{@columns.map { |_, g| '-' * g[:width] }.join('-+-')}-+"
|
38
|
+
|
39
|
+
# row line
|
40
|
+
massive.each do |row|
|
41
|
+
str = row.keys.map { |k|
|
42
|
+
a = row[k]
|
43
|
+
if a.to_s.size > 30 then
|
44
|
+
a = a.to_s[0..26] + "..."
|
45
|
+
end
|
46
|
+
a.to_s.ljust(@columns[k.to_sym][:width])
|
47
|
+
}.join(' | ')
|
48
|
+
puts "| #{str} |"
|
49
|
+
end
|
50
|
+
# bottom line
|
51
|
+
puts "+-#{@columns.map { |_, g| '-' * g[:width] }.join('-+-')}-+"
|
52
|
+
else
|
53
|
+
info = Helper::RustoreDeveloperHelper.getStatus(params[:token], params[:package], params[:version])
|
54
|
+
puts(info)
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.description
|
60
|
+
"RUSTORE: Get app versions statuses"
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.authors
|
64
|
+
["RimiX2"]
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.return_value
|
68
|
+
""
|
69
|
+
end
|
70
|
+
|
71
|
+
def self.details
|
72
|
+
# Optional:
|
73
|
+
""
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.available_options
|
77
|
+
[
|
78
|
+
FastlaneCore::ConfigItem.new(key: :package,
|
79
|
+
env_name: "RUSTORE_PACKAGE_NAME",
|
80
|
+
description: "Android app package name (FQDN)",
|
81
|
+
optional: false,
|
82
|
+
type: String),
|
83
|
+
FastlaneCore::ConfigItem.new(key: :version,
|
84
|
+
description: "Version ID",
|
85
|
+
optional: true,
|
86
|
+
type: String,
|
87
|
+
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION]),
|
88
|
+
FastlaneCore::ConfigItem.new(key: :token,
|
89
|
+
description: "Access token",
|
90
|
+
optional: false,
|
91
|
+
sensitive: true,
|
92
|
+
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN],
|
93
|
+
verify_block: proc do |value|
|
94
|
+
UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty?
|
95
|
+
end,
|
96
|
+
type: String)
|
97
|
+
]
|
98
|
+
end
|
99
|
+
|
100
|
+
def self.is_supported?(platform)
|
101
|
+
[:android].include?(platform)
|
102
|
+
true
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -1,63 +1,63 @@
|
|
1
|
-
require 'fastlane/action'
|
2
|
-
require_relative '../helper/rustore_developer_helper'
|
3
|
-
|
4
|
-
module Fastlane
|
5
|
-
module Actions
|
6
|
-
class RustoreDeveloperUploadAction < Action
|
7
|
-
|
8
|
-
def self.run(params)
|
9
|
-
return Helper::RustoreDeveloperHelper.uploadAPK(params[:token], params[:package], params[:version], params[:file_path])
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.description
|
13
|
-
"RUSTORE: Upload an APK package"
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.authors
|
17
|
-
["RimiX2"]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.return_value
|
21
|
-
"Was operation successfull? (true|false)"
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.details
|
25
|
-
# Optional:
|
26
|
-
""
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.available_options
|
30
|
-
[
|
31
|
-
FastlaneCore::ConfigItem.new(key: :package,
|
32
|
-
env_name: "RUSTORE_PACKAGE_NAME",
|
33
|
-
description: "Android app package name (FQDN)",
|
34
|
-
optional: false,
|
35
|
-
type: String),
|
36
|
-
FastlaneCore::ConfigItem.new(key: :token,
|
37
|
-
description: "Access token",
|
38
|
-
optional: false,
|
39
|
-
sensitive: true,
|
40
|
-
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN],
|
41
|
-
verify_block: proc do |value|
|
42
|
-
UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty?
|
43
|
-
end,
|
44
|
-
type: String),
|
45
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
46
|
-
description: "Version ID",
|
47
|
-
optional: true,
|
48
|
-
type: String,
|
49
|
-
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION]),
|
50
|
-
FastlaneCore::ConfigItem.new(key: :file_path,
|
51
|
-
description: "File path of APK artifact",
|
52
|
-
optional: false ,
|
53
|
-
type: String)
|
54
|
-
]
|
55
|
-
end
|
56
|
-
|
57
|
-
def self.is_supported?(platform)
|
58
|
-
[:android].include?(platform)
|
59
|
-
true
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/rustore_developer_helper'
|
3
|
+
|
4
|
+
module Fastlane
|
5
|
+
module Actions
|
6
|
+
class RustoreDeveloperUploadAction < Action
|
7
|
+
|
8
|
+
def self.run(params)
|
9
|
+
return Helper::RustoreDeveloperHelper.uploadAPK(params[:token], params[:package], params[:version], params[:file_path])
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.description
|
13
|
+
"RUSTORE: Upload an APK package"
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.authors
|
17
|
+
["RimiX2"]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.return_value
|
21
|
+
"Was operation successfull? (true|false)"
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.details
|
25
|
+
# Optional:
|
26
|
+
""
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.available_options
|
30
|
+
[
|
31
|
+
FastlaneCore::ConfigItem.new(key: :package,
|
32
|
+
env_name: "RUSTORE_PACKAGE_NAME",
|
33
|
+
description: "Android app package name (FQDN)",
|
34
|
+
optional: false,
|
35
|
+
type: String),
|
36
|
+
FastlaneCore::ConfigItem.new(key: :token,
|
37
|
+
description: "Access token",
|
38
|
+
optional: false,
|
39
|
+
sensitive: true,
|
40
|
+
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN],
|
41
|
+
verify_block: proc do |value|
|
42
|
+
UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty?
|
43
|
+
end,
|
44
|
+
type: String),
|
45
|
+
FastlaneCore::ConfigItem.new(key: :version,
|
46
|
+
description: "Version ID",
|
47
|
+
optional: true,
|
48
|
+
type: String,
|
49
|
+
default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION]),
|
50
|
+
FastlaneCore::ConfigItem.new(key: :file_path,
|
51
|
+
description: "File path of APK artifact",
|
52
|
+
optional: false ,
|
53
|
+
type: String)
|
54
|
+
]
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.is_supported?(platform)
|
58
|
+
[:android].include?(platform)
|
59
|
+
true
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|