Class: Fastlane::CrashlyticsBetaInfo
- Inherits:
-
Object
- Object
- Fastlane::CrashlyticsBetaInfo
- Defined in:
- lib/fastlane/setup/crashlytics_beta_info.rb
Constant Summary collapse
- EXPORT_METHODS =
%w(app-store ad-hoc package enterprise development developer-id).freeze
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#build_secret ⇒ Object
Returns the value of attribute build_secret.
-
#crashlytics_path ⇒ Object
Returns the value of attribute crashlytics_path.
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#export_method ⇒ Object
Returns the value of attribute export_method.
-
#schemes ⇒ Object
Returns the value of attribute schemes.
Instance Method Summary collapse
- #api_key_valid? ⇒ Boolean
- #build_secret_valid? ⇒ Boolean
- #crashlytics_path_valid? ⇒ Boolean
- #emails_valid? ⇒ Boolean
- #export_method_valid? ⇒ Boolean
- #has_all_detectable_values? ⇒ Boolean
- #schemes_valid? ⇒ Boolean
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 6 def api_key @api_key end |
#build_secret ⇒ Object
Returns the value of attribute build_secret.
7 8 9 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 7 def build_secret @build_secret end |
#crashlytics_path ⇒ Object
Returns the value of attribute crashlytics_path.
5 6 7 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 5 def crashlytics_path @crashlytics_path end |
#emails ⇒ Object
Returns the value of attribute emails.
8 9 10 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 8 def emails @emails end |
#export_method ⇒ Object
Returns the value of attribute export_method.
10 11 12 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 10 def export_method @export_method end |
#schemes ⇒ Object
Returns the value of attribute schemes.
9 10 11 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 9 def schemes @schemes end |
Instance Method Details
#api_key_valid? ⇒ Boolean
20 21 22 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 20 def api_key_valid? !api_key.nil? && api_key.to_s.length == 40 end |
#build_secret_valid? ⇒ Boolean
24 25 26 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 24 def build_secret_valid? !build_secret.nil? && build_secret.to_s.length == 64 end |
#crashlytics_path_valid? ⇒ Boolean
28 29 30 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 28 def crashlytics_path_valid? !crashlytics_path.nil? && File.exist?(crashlytics_path) && File.exist?(File.join(crashlytics_path, 'submit')) end |
#emails_valid? ⇒ Boolean
32 33 34 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 32 def emails_valid? !emails.nil? && emails.any? { |email| !email.empty? } end |
#export_method_valid? ⇒ Boolean
40 41 42 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 40 def export_method_valid? !export_method.nil? && !export_method.empty? && EXPORT_METHODS.include?(export_method) end |
#has_all_detectable_values? ⇒ Boolean
44 45 46 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 44 def has_all_detectable_values? api_key && build_secret && crashlytics_path && emails && schemes end |
#schemes_valid? ⇒ Boolean
36 37 38 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 36 def schemes_valid? !schemes.nil? && schemes.size == 1 && !schemes.first.empty? end |