4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'fastlane/lib/fastlane/actions/pod_push.rb', line 4
def self.run(params)
command = []
command << "bundle exec" if params[:use_bundle_exec] && shell_out_should_use_bundle_exec?
if params[:repo]
repo = params[:repo]
command << "pod repo push #{repo}"
else
command << 'pod trunk push'
end
if params[:path]
command << "'#{params[:path]}'"
end
if params[:sources]
sources = params[:sources].join(",")
command << "--sources='#{sources}'"
end
if params[:swift_version]
swift_version = params[:swift_version]
command << "--swift-version=#{swift_version}"
end
if params[:allow_warnings]
command << "--allow-warnings"
end
if params[:use_libraries]
command << "--use-libraries"
end
if params[:skip_import_validation]
command << "--skip-import-validation"
end
if params[:skip_tests]
command << "--skip-tests"
end
if params[:use_json]
command << "--use-json"
end
if params[:verbose]
command << "--verbose"
end
if params[:use_modular_headers]
command << "--use-modular-headers"
end
if params[:synchronous]
command << "--synchronous"
end
if params[:no_overwrite]
command << "--no-overwrite"
end
if params[:local_only]
command << "--local-only"
end
result = Actions.sh(command.join(' '))
UI.success("Successfully pushed Podspec ⬆️ ")
return result
end
|