Module: Pod::Podfile::DSL

Defined in:
lib/cocoapods-pod-sign/podfile_dsl.rb

Instance Method Summary collapse

Instance Method Details

#config_pod_bundle_id_and_team_id(configurations) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/cocoapods-pod-sign/podfile_dsl.rb', line 9

def config_pod_bundle_id_and_team_id(configurations)
  unless configurations.instance_of?(Hash)
    UI.info 'config_pod_bundle_id_and_team_id parameters not hash'.red
    return
  end
  configurations.each do |name, configuration|
    unless configuration.instance_of?(Hash)
      UI.info 'config_pod_bundle_id_and_team_id parameters not hash'.red
      return
    end
    unless configuration[:bundle_id] && configuration[:team_id]
      UI.info 'config_pod_bundle_id_and_team_id parameters parameters error'.red
      return
    end
  end
  UI.info 'config_pod_bundle_id_and_team_id parameters setup success'
  storage = PodSignStorage.instance
  storage.configurations = configurations
end

#skip_pod_bundle_signObject



29
30
31
32
# File 'lib/cocoapods-pod-sign/podfile_dsl.rb', line 29

def skip_pod_bundle_sign
  storage = PodSignStorage.instance
  storage.skip_sign = true
end