pod-builder 1.9.2 → 2.0.0.beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +9 -0
  3. data/Example/PodBuilder/.gitignore +6 -0
  4. data/Example/PodBuilder/.pod_builder/pod_builder +0 -0
  5. data/Example/{Frameworks → PodBuilder}/PodBuilder.json +10 -4
  6. data/Example/PodBuilder/Podfile +23 -0
  7. data/Example/PodBuilder/Podfile.restore +40 -0
  8. data/Example/PodBuilderExample.xcodeproj/project.pbxproj +3 -8
  9. data/Example/{PodBuilderExample.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/xcschememanagement.plist → PodBuilderExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist} +2 -8
  10. data/Example/PodBuilderExample/AppDelegate.swift +4 -0
  11. data/Example/Podfile +42 -1
  12. data/Example/Podfile.lock +426 -7
  13. data/Example/Pods-acknowledgements.md +210 -0
  14. data/Example/Pods-acknowledgements.plist +206 -0
  15. data/README.md +50 -13
  16. data/exe/pod_builder +39 -28
  17. data/lib/pod_builder/analyze.rb +32 -7
  18. data/lib/pod_builder/analyzer.rb +16 -0
  19. data/lib/pod_builder/command/build.rb +44 -161
  20. data/lib/pod_builder/command/build_all.rb +2 -2
  21. data/lib/pod_builder/command/clean.rb +34 -55
  22. data/lib/pod_builder/command/clear_lldbinit.rb +7 -3
  23. data/lib/pod_builder/command/deintegrate.rb +29 -7
  24. data/lib/pod_builder/command/generate_lfs.rb +3 -3
  25. data/lib/pod_builder/command/generate_podspec.rb +3 -2
  26. data/lib/pod_builder/command/info.rb +1 -1
  27. data/lib/pod_builder/command/init.rb +37 -14
  28. data/lib/pod_builder/command/install_sources.rb +21 -14
  29. data/lib/pod_builder/command/none.rb +2 -2
  30. data/lib/pod_builder/command/restore_all.rb +4 -4
  31. data/lib/pod_builder/command/switch.rb +137 -95
  32. data/lib/pod_builder/command/sync_podfile.rb +5 -3
  33. data/lib/pod_builder/command/update.rb +5 -6
  34. data/lib/pod_builder/command/update_lldbinit.rb +11 -9
  35. data/lib/pod_builder/configuration.rb +88 -13
  36. data/lib/pod_builder/core.rb +93 -12
  37. data/lib/pod_builder/info.rb +32 -98
  38. data/lib/pod_builder/install.rb +255 -195
  39. data/lib/pod_builder/licenses.rb +4 -4
  40. data/lib/pod_builder/podfile.rb +287 -73
  41. data/lib/pod_builder/podfile/post_actions.rb +9 -15
  42. data/lib/pod_builder/podfile_cp.rb +93 -0
  43. data/lib/pod_builder/podfile_item.rb +181 -82
  44. data/lib/pod_builder/podspec.rb +144 -135
  45. data/lib/pod_builder/rome/post_install.rb +240 -0
  46. data/lib/pod_builder/rome/pre_install.rb +6 -0
  47. data/lib/pod_builder/templates/build_podfile.template +3 -3
  48. data/lib/pod_builder/version.rb +1 -1
  49. data/pod-builder.gemspec +4 -4
  50. metadata +34 -65
  51. data/Example/Pods/Alamofire/LICENSE +0 -19
  52. data/Example/Pods/Alamofire/README.md +0 -242
  53. data/Example/Pods/Alamofire/Source/AFError.swift +0 -460
  54. data/Example/Pods/Alamofire/Source/Alamofire.swift +0 -465
  55. data/Example/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift +0 -37
  56. data/Example/Pods/Alamofire/Source/MultipartFormData.swift +0 -580
  57. data/Example/Pods/Alamofire/Source/NetworkReachabilityManager.swift +0 -233
  58. data/Example/Pods/Alamofire/Source/Notifications.swift +0 -55
  59. data/Example/Pods/Alamofire/Source/ParameterEncoding.swift +0 -483
  60. data/Example/Pods/Alamofire/Source/Request.swift +0 -654
  61. data/Example/Pods/Alamofire/Source/Response.swift +0 -567
  62. data/Example/Pods/Alamofire/Source/ResponseSerialization.swift +0 -715
  63. data/Example/Pods/Alamofire/Source/Result.swift +0 -300
  64. data/Example/Pods/Alamofire/Source/ServerTrustPolicy.swift +0 -307
  65. data/Example/Pods/Alamofire/Source/SessionDelegate.swift +0 -725
  66. data/Example/Pods/Alamofire/Source/SessionManager.swift +0 -896
  67. data/Example/Pods/Alamofire/Source/TaskDelegate.swift +0 -466
  68. data/Example/Pods/Alamofire/Source/Timeline.swift +0 -136
  69. data/Example/Pods/Alamofire/Source/Validation.swift +0 -315
  70. data/Example/Pods/Manifest.lock +0 -16
  71. data/Example/Pods/Pods.xcodeproj/project.pbxproj +0 -673
  72. data/Example/Pods/Pods.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/Alamofire.xcscheme +0 -60
  73. data/Example/Pods/Pods.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/Pods-PodBuilderExample.xcscheme +0 -60
  74. data/Example/Pods/Pods.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/xcschememanagement.plist +0 -21
  75. data/Example/Pods/Target Support Files/Alamofire/Alamofire-dummy.m +0 -5
  76. data/Example/Pods/Target Support Files/Alamofire/Alamofire-prefix.pch +0 -12
  77. data/Example/Pods/Target Support Files/Alamofire/Alamofire-umbrella.h +0 -16
  78. data/Example/Pods/Target Support Files/Alamofire/Alamofire.modulemap +0 -6
  79. data/Example/Pods/Target Support Files/Alamofire/Alamofire.xcconfig +0 -9
  80. data/Example/Pods/Target Support Files/Alamofire/Info.plist +0 -26
  81. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Info.plist +0 -26
  82. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-acknowledgements.markdown +0 -26
  83. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-acknowledgements.plist +0 -58
  84. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-dummy.m +0 -5
  85. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-frameworks.sh +0 -153
  86. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-resources.sh +0 -118
  87. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-umbrella.h +0 -16
  88. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample.debug.xcconfig +0 -11
  89. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample.modulemap +0 -6
  90. data/Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample.release.xcconfig +0 -11
  91. data/lib/pod_builder/cocoapods/specification.rb +0 -27
@@ -0,0 +1,6 @@
1
+ Pod::HooksManager.register('podbuilder-rome', :pre_install) do |installer_context|
2
+ podfile = installer_context.podfile
3
+
4
+ podfile.install!('cocoapods',
5
+ podfile.installation_method.last.merge(:integrate_targets => false))
6
+ end
@@ -1,10 +1,10 @@
1
- require 'CFPropertyList'
1
+ require 'cfpropertylist'
2
2
 
3
3
  %%%sources%%%
4
4
 
5
- use_frameworks!
5
+ %%%use_frameworks%%%
6
6
 
7
- plugin 'cocoapods-rome', { dsym: true, configuration: '%%%build_configuration%%%', pre_compile: Proc.new { |installer|
7
+ plugin 'podbuilder-rome', { dsym: true, configuration: '%%%build_configuration%%%', pre_compile: Proc.new { |installer|
8
8
 
9
9
  def set_build_settings(target_name, build_configurations, installer)
10
10
  installer.pods_project.targets.each do |target|
@@ -1,4 +1,4 @@
1
1
  module PodBuilder
2
- VERSION = "1.9.2"
2
+ VERSION = "2.0.0.beta.21"
3
3
  end
4
4
 
@@ -22,15 +22,15 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 2.0"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "ruby-debug-ide"
27
- spec.add_development_dependency "debase"
25
+ spec.add_development_dependency "rake", ">= 12.3.3"
26
+ spec.add_development_dependency "ruby-debug-ide", '0.6.1'
27
+ spec.add_development_dependency "debase", '0.2.2'
28
28
 
29
29
  spec.add_runtime_dependency 'xcodeproj'
30
30
  spec.add_runtime_dependency 'colored'
31
31
  spec.add_runtime_dependency 'highline'
32
32
  spec.add_runtime_dependency 'cocoapods', '~> 1.6'
33
33
  spec.add_runtime_dependency 'cocoapods-core', '~> 1.6'
34
- spec.add_runtime_dependency 'cocoapods-rome', '~> 1.0'
35
34
  spec.add_runtime_dependency 'CFPropertyList'
35
+ spec.add_runtime_dependency 'json'
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 2.0.0.beta.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-16 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,44 +28,44 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-debug-ide
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.6.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.6.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: debase
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.2.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.2.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: xcodeproj
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -137,21 +137,21 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '1.6'
139
139
  - !ruby/object:Gem::Dependency
140
- name: cocoapods-rome
140
+ name: CFPropertyList
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '1.0'
145
+ version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: '1.0'
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: CFPropertyList
154
+ name: json
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -173,13 +173,17 @@ extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
175
  - ".gitignore"
176
- - Example/Frameworks/PodBuilder.json
176
+ - Example/PodBuilder/.gitignore
177
+ - Example/PodBuilder/.pod_builder/pod_builder
178
+ - Example/PodBuilder/PodBuilder.json
179
+ - Example/PodBuilder/Podfile
180
+ - Example/PodBuilder/Podfile.restore
177
181
  - Example/PodBuilderExample.xcodeproj/project.pbxproj
178
182
  - Example/PodBuilderExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
179
183
  - Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
180
184
  - Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcuserdata/tomas.xcuserdatad/UserInterfaceState.xcuserstate
181
- - Example/PodBuilderExample.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/xcschememanagement.plist
182
185
  - Example/PodBuilderExample.xcworkspace/contents.xcworkspacedata
186
+ - Example/PodBuilderExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
183
187
  - Example/PodBuilderExample/AppDelegate.swift
184
188
  - Example/PodBuilderExample/Assets.xcassets/AppIcon.appiconset/Contents.json
185
189
  - Example/PodBuilderExample/Assets.xcassets/Contents.json
@@ -189,46 +193,8 @@ files:
189
193
  - Example/PodBuilderExample/ViewController.swift
190
194
  - Example/Podfile
191
195
  - Example/Podfile.lock
192
- - Example/Pods/Alamofire/LICENSE
193
- - Example/Pods/Alamofire/README.md
194
- - Example/Pods/Alamofire/Source/AFError.swift
195
- - Example/Pods/Alamofire/Source/Alamofire.swift
196
- - Example/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift
197
- - Example/Pods/Alamofire/Source/MultipartFormData.swift
198
- - Example/Pods/Alamofire/Source/NetworkReachabilityManager.swift
199
- - Example/Pods/Alamofire/Source/Notifications.swift
200
- - Example/Pods/Alamofire/Source/ParameterEncoding.swift
201
- - Example/Pods/Alamofire/Source/Request.swift
202
- - Example/Pods/Alamofire/Source/Response.swift
203
- - Example/Pods/Alamofire/Source/ResponseSerialization.swift
204
- - Example/Pods/Alamofire/Source/Result.swift
205
- - Example/Pods/Alamofire/Source/ServerTrustPolicy.swift
206
- - Example/Pods/Alamofire/Source/SessionDelegate.swift
207
- - Example/Pods/Alamofire/Source/SessionManager.swift
208
- - Example/Pods/Alamofire/Source/TaskDelegate.swift
209
- - Example/Pods/Alamofire/Source/Timeline.swift
210
- - Example/Pods/Alamofire/Source/Validation.swift
211
- - Example/Pods/Manifest.lock
212
- - Example/Pods/Pods.xcodeproj/project.pbxproj
213
- - Example/Pods/Pods.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/Alamofire.xcscheme
214
- - Example/Pods/Pods.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/Pods-PodBuilderExample.xcscheme
215
- - Example/Pods/Pods.xcodeproj/xcuserdata/tomas.xcuserdatad/xcschemes/xcschememanagement.plist
216
- - Example/Pods/Target Support Files/Alamofire/Alamofire-dummy.m
217
- - Example/Pods/Target Support Files/Alamofire/Alamofire-prefix.pch
218
- - Example/Pods/Target Support Files/Alamofire/Alamofire-umbrella.h
219
- - Example/Pods/Target Support Files/Alamofire/Alamofire.modulemap
220
- - Example/Pods/Target Support Files/Alamofire/Alamofire.xcconfig
221
- - Example/Pods/Target Support Files/Alamofire/Info.plist
222
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Info.plist
223
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-acknowledgements.markdown
224
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-acknowledgements.plist
225
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-dummy.m
226
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-frameworks.sh
227
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-resources.sh
228
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample-umbrella.h
229
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample.debug.xcconfig
230
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample.modulemap
231
- - Example/Pods/Target Support Files/Pods-PodBuilderExample/Pods-PodBuilderExample.release.xcconfig
196
+ - Example/Pods-acknowledgements.md
197
+ - Example/Pods-acknowledgements.plist
232
198
  - Gemfile
233
199
  - LICENSE.txt
234
200
  - README.md
@@ -238,7 +204,7 @@ files:
238
204
  - exe/pod_builder
239
205
  - lib/core_ext/string.rb
240
206
  - lib/pod_builder/analyze.rb
241
- - lib/pod_builder/cocoapods/specification.rb
207
+ - lib/pod_builder/analyzer.rb
242
208
  - lib/pod_builder/command.rb
243
209
  - lib/pod_builder/command/build.rb
244
210
  - lib/pod_builder/command/build_all.rb
@@ -263,8 +229,11 @@ files:
263
229
  - lib/pod_builder/licenses.rb
264
230
  - lib/pod_builder/podfile.rb
265
231
  - lib/pod_builder/podfile/post_actions.rb
232
+ - lib/pod_builder/podfile_cp.rb
266
233
  - lib/pod_builder/podfile_item.rb
267
234
  - lib/pod_builder/podspec.rb
235
+ - lib/pod_builder/rome/post_install.rb
236
+ - lib/pod_builder/rome/pre_install.rb
268
237
  - lib/pod_builder/templates/build_podfile.template
269
238
  - lib/pod_builder/templates/build_podspec.template
270
239
  - lib/pod_builder/version.rb
@@ -284,9 +253,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
284
253
  version: '0'
285
254
  required_rubygems_version: !ruby/object:Gem::Requirement
286
255
  requirements:
287
- - - ">="
256
+ - - ">"
288
257
  - !ruby/object:Gem::Version
289
- version: '0'
258
+ version: 1.3.1
290
259
  requirements: []
291
260
  rubygems_version: 3.1.2
292
261
  signing_key:
@@ -1,19 +0,0 @@
1
- Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
@@ -1,242 +0,0 @@
1
- ![Alamofire: Elegant Networking in Swift](https://raw.githubusercontent.com/Alamofire/Alamofire/master/alamofire.png)
2
-
3
- [![Build Status](https://travis-ci.org/Alamofire/Alamofire.svg?branch=master)](https://travis-ci.org/Alamofire/Alamofire)
4
- [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Alamofire.svg)](https://img.shields.io/cocoapods/v/Alamofire.svg)
5
- [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
6
- [![Platform](https://img.shields.io/cocoapods/p/Alamofire.svg?style=flat)](https://alamofire.github.io/Alamofire)
7
- [![Twitter](https://img.shields.io/badge/twitter-@AlamofireSF-blue.svg?style=flat)](https://twitter.com/AlamofireSF)
8
- [![Gitter](https://badges.gitter.im/Alamofire/Alamofire.svg)](https://gitter.im/Alamofire/Alamofire?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
9
-
10
- Alamofire is an HTTP networking library written in Swift.
11
-
12
- - [Features](#features)
13
- - [Component Libraries](#component-libraries)
14
- - [Requirements](#requirements)
15
- - [Migration Guides](#migration-guides)
16
- - [Communication](#communication)
17
- - [Installation](#installation)
18
- - [Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md)
19
- - **Intro -** [Making a Request](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#making-a-request), [Response Handling](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-handling), [Response Validation](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-validation), [Response Caching](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-caching)
20
- - **HTTP -** [HTTP Methods](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-methods), [Parameter Encoding](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#parameter-encoding), [HTTP Headers](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-headers), [Authentication](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#authentication)
21
- - **Large Data -** [Downloading Data to a File](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#downloading-data-to-a-file), [Uploading Data to a Server](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#uploading-data-to-a-server)
22
- - **Tools -** [Statistical Metrics](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#statistical-metrics), [cURL Command Output](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#curl-command-output)
23
- - [Advanced Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md)
24
- - **URL Session -** [Session Manager](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#session-manager), [Session Delegate](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#session-delegate), [Request](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#request)
25
- - **Routing -** [Routing Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#routing-requests), [Adapting and Retrying Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#adapting-and-retrying-requests)
26
- - **Model Objects -** [Custom Response Serialization](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#custom-response-serialization)
27
- - **Connection -** [Security](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#security), [Network Reachability](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#network-reachability)
28
- - [Open Radars](#open-radars)
29
- - [FAQ](#faq)
30
- - [Credits](#credits)
31
- - [Donations](#donations)
32
- - [License](#license)
33
-
34
- ## Features
35
-
36
- - [x] Chainable Request / Response Methods
37
- - [x] URL / JSON / plist Parameter Encoding
38
- - [x] Upload File / Data / Stream / MultipartFormData
39
- - [x] Download File using Request or Resume Data
40
- - [x] Authentication with URLCredential
41
- - [x] HTTP Response Validation
42
- - [x] Upload and Download Progress Closures with Progress
43
- - [x] cURL Command Output
44
- - [x] Dynamically Adapt and Retry Requests
45
- - [x] TLS Certificate and Public Key Pinning
46
- - [x] Network Reachability
47
- - [x] Comprehensive Unit and Integration Test Coverage
48
- - [x] [Complete Documentation](https://alamofire.github.io/Alamofire)
49
-
50
- ## Component Libraries
51
-
52
- In order to keep Alamofire focused specifically on core networking implementations, additional component libraries have been created by the [Alamofire Software Foundation](https://github.com/Alamofire/Foundation) to bring additional functionality to the Alamofire ecosystem.
53
-
54
- - [AlamofireImage](https://github.com/Alamofire/AlamofireImage) - An image library including image response serializers, `UIImage` and `UIImageView` extensions, custom image filters, an auto-purging in-memory cache and a priority-based image downloading system.
55
- - [AlamofireNetworkActivityIndicator](https://github.com/Alamofire/AlamofireNetworkActivityIndicator) - Controls the visibility of the network activity indicator on iOS using Alamofire. It contains configurable delay timers to help mitigate flicker and can support `URLSession` instances not managed by Alamofire.
56
-
57
- ## Requirements
58
-
59
- - iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
60
- - Xcode 8.3+
61
- - Swift 3.1+
62
-
63
- ## Migration Guides
64
-
65
- - [Alamofire 4.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md)
66
- - [Alamofire 3.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%203.0%20Migration%20Guide.md)
67
- - [Alamofire 2.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%202.0%20Migration%20Guide.md)
68
-
69
- ## Communication
70
-
71
- - If you **need help**, use [Stack Overflow](https://stackoverflow.com/questions/tagged/alamofire). (Tag 'alamofire')
72
- - If you'd like to **ask a general question**, use [Stack Overflow](https://stackoverflow.com/questions/tagged/alamofire).
73
- - If you **found a bug**, open an issue.
74
- - If you **have a feature request**, open an issue.
75
- - If you **want to contribute**, submit a pull request.
76
-
77
- ## Installation
78
-
79
- ### CocoaPods
80
-
81
- [CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
82
-
83
- ```bash
84
- $ gem install cocoapods
85
- ```
86
-
87
- > CocoaPods 1.1+ is required to build Alamofire 4.0+.
88
-
89
- To integrate Alamofire into your Xcode project using CocoaPods, specify it in your `Podfile`:
90
-
91
- ```ruby
92
- source 'https://github.com/CocoaPods/Specs.git'
93
- platform :ios, '10.0'
94
- use_frameworks!
95
-
96
- target '<Your Target Name>' do
97
- pod 'Alamofire', '~> 4.7'
98
- end
99
- ```
100
-
101
- Then, run the following command:
102
-
103
- ```bash
104
- $ pod install
105
- ```
106
-
107
- ### Carthage
108
-
109
- [Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
110
-
111
- You can install Carthage with [Homebrew](https://brew.sh/) using the following command:
112
-
113
- ```bash
114
- $ brew update
115
- $ brew install carthage
116
- ```
117
-
118
- To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`:
119
-
120
- ```ogdl
121
- github "Alamofire/Alamofire" ~> 4.7
122
- ```
123
-
124
- Run `carthage update` to build the framework and drag the built `Alamofire.framework` into your Xcode project.
125
-
126
- ### Swift Package Manager
127
-
128
- The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but Alamofire does support its use on supported platforms.
129
-
130
- Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
131
-
132
- #### Swift 3
133
-
134
- ```swift
135
- dependencies: [
136
- .Package(url: "https://github.com/Alamofire/Alamofire.git", majorVersion: 4)
137
- ]
138
- ```
139
-
140
- #### Swift 4
141
-
142
- ```swift
143
- dependencies: [
144
- .package(url: "https://github.com/Alamofire/Alamofire.git", from: "4.0.0")
145
- ]
146
- ```
147
-
148
- ### Manually
149
-
150
- If you prefer not to use any of the aforementioned dependency managers, you can integrate Alamofire into your project manually.
151
-
152
- #### Embedded Framework
153
-
154
- - Open up Terminal, `cd` into your top-level project directory, and run the following command "if" your project is not initialized as a git repository:
155
-
156
- ```bash
157
- $ git init
158
- ```
159
-
160
- - Add Alamofire as a git [submodule](https://git-scm.com/docs/git-submodule) by running the following command:
161
-
162
- ```bash
163
- $ git submodule add https://github.com/Alamofire/Alamofire.git
164
- ```
165
-
166
- - Open the new `Alamofire` folder, and drag the `Alamofire.xcodeproj` into the Project Navigator of your application's Xcode project.
167
-
168
- > It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.
169
-
170
- - Select the `Alamofire.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target.
171
- - Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.
172
- - In the tab bar at the top of that window, open the "General" panel.
173
- - Click on the `+` button under the "Embedded Binaries" section.
174
- - You will see two different `Alamofire.xcodeproj` folders each with two different versions of the `Alamofire.framework` nested inside a `Products` folder.
175
-
176
- > It does not matter which `Products` folder you choose from, but it does matter whether you choose the top or bottom `Alamofire.framework`.
177
-
178
- - Select the top `Alamofire.framework` for iOS and the bottom one for OS X.
179
-
180
- > You can verify which one you selected by inspecting the build log for your project. The build target for `Alamofire` will be listed as either `Alamofire iOS`, `Alamofire macOS`, `Alamofire tvOS` or `Alamofire watchOS`.
181
-
182
- - And that's it!
183
-
184
- > The `Alamofire.framework` is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.
185
-
186
- ## Open Radars
187
-
188
- The following radars have some effect on the current implementation of Alamofire.
189
-
190
- - [`rdar://21349340`](http://www.openradar.me/radar?id=5517037090635776) - Compiler throwing warning due to toll-free bridging issue in test case
191
- - `rdar://26870455` - Background URL Session Configurations do not work in the simulator
192
- - `rdar://26849668` - Some URLProtocol APIs do not properly handle `URLRequest`
193
- - [`rdar://36082113`](http://openradar.appspot.com/radar?id=4942308441063424) - `URLSessionTaskMetrics` failing to link on watchOS 3.0+
194
-
195
- ## Resolved Radars
196
-
197
- The following radars have been resolved over time after being filed against the Alamofire project.
198
-
199
- - [`rdar://26761490`](http://www.openradar.me/radar?id=5010235949318144) - Swift string interpolation causing memory leak with common usage (Resolved on 9/1/17 in Xcode 9 beta 6).
200
-
201
- ## FAQ
202
-
203
- ### What's the origin of the name Alamofire?
204
-
205
- Alamofire is named after the [Alamo Fire flower](https://aggie-horticulture.tamu.edu/wildseed/alamofire.html), a hybrid variant of the Bluebonnet, the official state flower of Texas.
206
-
207
- ### What logic belongs in a Router vs. a Request Adapter?
208
-
209
- Simple, static data such as paths, parameters and common headers belong in the `Router`. Dynamic data such as an `Authorization` header whose value can changed based on an authentication system belongs in a `RequestAdapter`.
210
-
211
- The reason the dynamic data MUST be placed into the `RequestAdapter` is to support retry operations. When a `Request` is retried, the original request is not rebuilt meaning the `Router` will not be called again. The `RequestAdapter` is called again allowing the dynamic data to be updated on the original request before retrying the `Request`.
212
-
213
- ## Credits
214
-
215
- Alamofire is owned and maintained by the [Alamofire Software Foundation](http://alamofire.org). You can follow them on Twitter at [@AlamofireSF](https://twitter.com/AlamofireSF) for project updates and releases.
216
-
217
- ### Security Disclosure
218
-
219
- If you believe you have identified a security vulnerability with Alamofire, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker.
220
-
221
- ## Donations
222
-
223
- The [ASF](https://github.com/Alamofire/Foundation#members) is looking to raise money to officially stay registered as a federal non-profit organization.
224
- Registering will allow us members to gain some legal protections and also allow us to put donations to use, tax free.
225
- Donating to the ASF will enable us to:
226
-
227
- - Pay our yearly legal fees to keep the non-profit in good status
228
- - Pay for our mail servers to help us stay on top of all questions and security issues
229
- - Potentially fund test servers to make it easier for us to test the edge cases
230
- - Potentially fund developers to work on one of our projects full-time
231
-
232
- The community adoption of the ASF libraries has been amazing.
233
- We are greatly humbled by your enthusiasm around the projects, and want to continue to do everything we can to move the needle forward.
234
- With your continued support, the ASF will be able to improve its reach and also provide better legal safety for the core members.
235
- If you use any of our libraries for work, see if your employers would be interested in donating.
236
- Any amount you can donate today to help us reach our goal would be greatly appreciated.
237
-
238
- [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W34WPEE74APJQ)
239
-
240
- ## License
241
-
242
- Alamofire is released under the MIT license. [See LICENSE](https://github.com/Alamofire/Alamofire/blob/master/LICENSE) for details.