fastlane-plugin-rustore_developer 0.2.9 → 0.2.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3835e5851b853cfb2952eac02045f665dbfbeb1aa25bc4fd8d1d95d94d666b68
4
- data.tar.gz: 40d08ccdaa4b733f3a7babed362723f314d46f00184d0d6896789f6de19651fc
3
+ metadata.gz: cdbb9a5ebe02e3d3a263cbb39abc3697450136d38f297fc0f77a723ca8388d14
4
+ data.tar.gz: 0a9372e926b329d90192c5a7f428a2d49d539a8c50dc3220503f762cc596b19b
5
5
  SHA512:
6
- metadata.gz: ecf389d56ce32286c62326457c4c9d7889e907506b746fcb9a6f7802e3ca18944425c8f00828a984c932e3d0f8498b76272c9f066fd5223de19165f420f311af
7
- data.tar.gz: 48ccf425ca7bbcd74aab0bbba2d9a352655d84ea799021a201a75b4e15e83cebefa4ec50b121c91bf028a141fe1d0645ee9adad53f2fb5ad25bcdc1bdf3c9383
6
+ metadata.gz: c25b929f254827632d1f76ee20db82b67a18925c58adcfd90d3a2427b55a082f94f2b538beb1c9a4bf77e9c1d975b84e8a51e4bec765a93f2ba2f4cddd30db18
7
+ data.tar.gz: 52bcd9ef17b61e0383ea86882d95a109f039d7848866c885b8b1db4a731cf57887ccaff578135cba9b0b3f74eeae89d3af2f09b2a49aa13208f64fc4d724ed6c
@@ -10,7 +10,7 @@ module Fastlane
10
10
  class RustoreDeveloperCreateVersionAction < Action
11
11
 
12
12
  def self.run(params)
13
- version = Helper::RustoreDeveloperHelper.createVersion(params[:token], params[:package], params[:publish], nil )
13
+ version = Helper::RustoreDeveloperHelper.createVersion(params[:token], params[:package], params[:publish], params[:news] )
14
14
  Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION] = version.to_s
15
15
  return version
16
16
  end
@@ -52,7 +52,11 @@ module Fastlane
52
52
  verify_block: proc do |value|
53
53
  UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty?
54
54
  end,
55
- type: String)
55
+ type: String),
56
+ FastlaneCore::ConfigItem.new(key: :news,
57
+ description: "What's new listing",
58
+ optional: false,
59
+ type: String),
56
60
  ]
57
61
  end
58
62
 
@@ -0,0 +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
@@ -173,7 +173,7 @@ module Fastlane
173
173
  end
174
174
  end
175
175
 
176
- def self.publishVersion(token, package_name, version_id, priority_update = 0)
176
+ def self.publishVersion(token, package_name, version_id)
177
177
  UI.important("Publishing version #{version_id} ...")
178
178
  uri = URI(BASE_URL + "/public/v1/application/#{package_name}/version/#{version_id}/publish")
179
179
  http = Net::HTTP.new(uri.host, uri.port)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RustoreDeveloper
3
- VERSION = "0.2.9"
3
+ VERSION = "0.2.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-rustore_developer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - RimiX2
@@ -163,6 +163,7 @@ files:
163
163
  - lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb
164
164
  - lib/fastlane/plugin/rustore_developer/actions/rustore_developer_create_version_action.rb
165
165
  - lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb
166
+ - lib/fastlane/plugin/rustore_developer/actions/rustore_developer_publish_action.rb
166
167
  - lib/fastlane/plugin/rustore_developer/actions/rustore_developer_status_action.rb
167
168
  - lib/fastlane/plugin/rustore_developer/actions/rustore_developer_upload_action.rb
168
169
  - lib/fastlane/plugin/rustore_developer/helper/rustore_developer_helper.rb