Class: Fastlane::CrashlyticsBetaInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

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_secretObject

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_pathObject

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

#emailsObject

Returns the value of attribute emails.



8
9
10
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 8

def emails
  @emails
end

#export_methodObject

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

#groupsObject

Returns the value of attribute groups.



9
10
11
# File 'lib/fastlane/setup/crashlytics_beta_info.rb', line 9

def groups
  @groups
end

#schemesObject

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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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