Class: Fastlane::Actions::GalaxyStoreDeveloperSubmitAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb

Constant Summary collapse

PUB_SCOPE =
"publishing"

Class Method Summary collapse

Class Method Details

.authorsObject



22
23
24
# File 'lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb', line 22

def self.authors
  ["Rim Ganiev"]
end

.available_optionsObject



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb', line 34

def self.available_options
  [
      FastlaneCore::ConfigItem.new(key: :sa_id,
                                   env_name: "GALAXY_STORE_DEVELOPER_SA_ID",
                                   description: "Service Account (SA) ID",
                                   optional: false,
                                   type: String),
      FastlaneCore::ConfigItem.new(key: :key_path,
                                   env_name: "GALAXY_STORE_DEVELOPER_SA_KEY_PATH",
                                   description: "Path for the SA's private key (PEM)",
                                   optional: false,
                                   type: String),
      FastlaneCore::ConfigItem.new(key: :app_id,
                                   env_name: "GALAXY_STORE_DEVELOPER_APP_ID",
                                   description: "Developer's application ID",
                                   optional: false,
                                   type: String)
  ]
end

.descriptionObject



18
19
20
# File 'lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb', line 18

def self.description
  "Samsung Developer API integration - Submitting app for review"
end

.detailsObject



30
31
32
# File 'lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb', line 30

def self.details
  "Fastlane plugin to interacting with Samsung Galaxy Store API"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


54
55
56
57
# File 'lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb', line 54

def self.is_supported?(platform)
  [:android].include?(platform)
  true
end

.return_valueObject



26
27
28
# File 'lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb', line 26

def self.return_value
  # If your method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/fastlane/plugin/galaxy_store_developer/actions/galaxy_store_developer_submit.rb', line 10

def self.run(params)

  accessToken = Helper::GalaxyStoreDeveloperHelper.get_access_token(params[:sa_id], PUB_SCOPE, params[:key_path])

  Helper::GalaxyStoreDeveloperHelper.submit_app(params[:sa_id], accessToken, params[:app_id])

end