Class: Fastlane::Actions::CheckAppStoreMetadataAction

Inherits:
Fastlane::Action show all
Defined in:
fastlane/lib/fastlane/actions/check_app_store_metadata.rb

Direct Known Subclasses

PrecheckAction

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, deprecated_notes, lane_context, method_missing, other_action, output, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject



39
40
41
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 39

def self.authors
  ["taquitos"]
end

.available_optionsObject



26
27
28
29
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 26

def self.available_options
  require 'precheck/options'
  Precheck::Options.available_options
end

.categoryObject



57
58
59
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 57

def self.category
  :app_store_connect
end

.descriptionObject



18
19
20
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 18

def self.description
  "Check your app's metadata before you submit your app to review (via _precheck_)"
end

.detailsObject



22
23
24
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 22

def self.details
  "More information: https://fastlane.tools/precheck"
end

.example_codeObject



47
48
49
50
51
52
53
54
55
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 47

def self.example_code
  [
    'check_app_store_metadata(
      negative_apple_sentiment: [level: :skip], # Set to skip to not run the `negative_apple_sentiment` rule
      curse_words: [level: :warn] # Set to warn to only warn on curse word check failures
    )',
    'precheck   # alias for "check_app_store_metadata"'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



43
44
45
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 43

def self.is_supported?(platform)
  platform == :ios
end

.return_typeObject



35
36
37
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 35

def self.return_type
  :bool
end

.return_valueObject



31
32
33
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 31

def self.return_value
  return "true if precheck passes, else, false"
end

.run(config) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'fastlane/lib/fastlane/actions/check_app_store_metadata.rb', line 7

def self.run(config)
  # Only set :api_key from SharedValues if :api_key_path isn't set (conflicting options)
  unless config[:api_key_path]
    config[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
  end

  require 'precheck'
  Precheck.config = config
  return Precheck::Runner.new.run
end