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.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#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
- #groups_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.
11 12 13 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 11 def export_method @export_method end |
#groups ⇒ Object
Returns the value of attribute groups.
9 10 11 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 9 def groups @groups end |
#schemes ⇒ Object
Returns the value of attribute schemes.
10 11 12 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 10 def schemes @schemes end |
Instance Method Details
#api_key_valid? ⇒ Boolean
25 26 27 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 25 def api_key_valid? !api_key.nil? && api_key.to_s.length == 40 end |
#build_secret_valid? ⇒ Boolean
29 30 31 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 29 def build_secret_valid? !build_secret.nil? && build_secret.to_s.length == 64 end |
#crashlytics_path_valid? ⇒ Boolean
33 34 35 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 33 def crashlytics_path_valid? !crashlytics_path.nil? && File.exist?(crashlytics_path) && File.exist?(File.join(crashlytics_path, 'submit')) end |
#emails_valid? ⇒ Boolean
37 38 39 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 37 def emails_valid? !emails.nil? && emails.any? { |email| !email.empty? } end |
#export_method_valid? ⇒ Boolean
49 50 51 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 49 def export_method_valid? !export_method.nil? && !export_method.empty? && EXPORT_METHODS.include?(export_method) end |
#groups_valid? ⇒ Boolean
41 42 43 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 41 def groups_valid? !groups.nil? && groups.any? { |groups| !groups.empty? } end |
#has_all_detectable_values? ⇒ Boolean
53 54 55 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 53 def has_all_detectable_values? api_key && build_secret && crashlytics_path && emails && schemes end |
#schemes_valid? ⇒ Boolean
45 46 47 |
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 45 def schemes_valid? !schemes.nil? && schemes.size == 1 && !schemes.first.empty? end |