Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
961db158
Commit
961db158
authored
Oct 30, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Examples] Add Example of Alamofire
parent
9b6813f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
619 additions
and
0 deletions
+619
-0
Alamofire.podspec
examples/Alamofire Example/Alamofire.podspec
+16
-0
AppDelegate.swift
examples/Alamofire Example/Example/AppDelegate.swift
+54
-0
Main.storyboard
...ples/Alamofire Example/Example/Base.lproj/Main.storyboard
+0
-0
DetailViewController.swift
...ples/Alamofire Example/Example/DetailViewController.swift
+159
-0
HTTPBin.swift
examples/Alamofire Example/Example/HTTPBin.swift
+44
-0
Contents.json
.../Example/Images.xcassets/AppIcon.appiconset/Contents.json
+54
-0
Contents.json
...ple/Images.xcassets/LaunchImage.launchimage/Contents.json
+52
-0
Contents.json
...ample/Example/Images.xcassets/Logo.imageset/Contents.json
+19
-0
Logo.png
...re Example/Example/Images.xcassets/Logo.imageset/Logo.png
+0
-0
Logo@2x.png
...Example/Example/Images.xcassets/Logo.imageset/Logo@2x.png
+0
-0
Info.plist
examples/Alamofire Example/Example/Info.plist
+55
-0
MasterViewController.swift
...ples/Alamofire Example/Example/MasterViewController.swift
+75
-0
contents.xcworkspacedata
...ire Example/Examples.xcworkspace/contents.xcworkspacedata
+10
-0
LICENSE
examples/Alamofire Example/LICENSE
+19
-0
Podfile
examples/Alamofire Example/Podfile
+10
-0
Alamofire.h
examples/Alamofire Example/Source/Alamofire.h
+26
-0
Alamofire.swift
examples/Alamofire Example/Source/Alamofire.swift
+0
-0
Info.plist
examples/Alamofire Example/Source/Info.plist
+26
-0
project.pbxproj
...s/Alamofire Example/iOS Example.xcodeproj/project.pbxproj
+0
-0
No files found.
examples/Alamofire Example/Alamofire.podspec
0 → 100644
View file @
961db158
Pod
::
Spec
.
new
do
|
s
|
s
.
name
=
'Alamofire'
s
.
version
=
'0.0.1'
s
.
license
=
'MIT'
s
.
summary
=
'Elegant HTTP Networking in Swift'
s
.
homepage
=
'https://github.com/Alamofire/Alamofire'
s
.
social_media_url
=
'http://twitter.com/mattt'
s
.
authors
=
{
'Mattt Thompson'
=>
'm@mattt.me'
}
s
.
source
=
{
:git
=>
'https://github.com/Alamofire/Alamofire.git'
,
:branch
=>
'master'
}
s
.
requires_arc
=
true
s
.
ios
.
deployment_target
=
'8.0'
s
.
osx
.
deployment_target
=
'10.10'
s
.
source_files
=
'Source/*.swift'
end
examples/Alamofire Example/Example/AppDelegate.swift
0 → 100644
View file @
961db158
// AppDelegate.swift
//
// Copyright (c) 2014 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
import
UIKit
@UIApplicationMain
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
,
UISplitViewControllerDelegate
{
var
window
:
UIWindow
?
// MARK: - UIApplicationDelegate
func
application
(
application
:
UIApplication
!
,
didFinishLaunchingWithOptions
launchOptions
:
NSDictionary
!
)
->
Bool
{
let
splitViewController
=
self
.
window
!.
rootViewController
as
UISplitViewController
let
navigationController
=
splitViewController
.
viewControllers
.
last
as
UINavigationController
navigationController
.
topViewController
.
navigationItem
.
leftBarButtonItem
=
splitViewController
.
displayModeButtonItem
()
splitViewController
.
delegate
=
self
return
true
}
// MARK: - UISplitViewControllerDelegate
func
splitViewController
(
splitViewController
:
UISplitViewController
!
,
collapseSecondaryViewController
secondaryViewController
:
UIViewController
!
,
ontoPrimaryViewController
primaryViewController
:
UIViewController
!
)
->
Bool
{
if
let
secondaryAsNavController
=
secondaryViewController
as?
UINavigationController
{
if
let
topAsDetailController
=
secondaryAsNavController
.
topViewController
as?
DetailViewController
{
return
topAsDetailController
.
request
==
nil
}
}
return
false
}
}
examples/Alamofire Example/Example/Base.lproj/Main.storyboard
0 → 100644
View file @
961db158
This diff is collapsed.
Click to expand it.
examples/Alamofire Example/Example/DetailViewController.swift
0 → 100644
View file @
961db158
// DetailViewController.swift
//
// Copyright (c) 2014 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
import
UIKit
import
Alamofire
class
DetailViewController
:
UITableViewController
{
enum
Sections
:
Int
{
case
Headers
,
Body
}
var
request
:
Alamofire
.
Request
?
{
didSet
{
oldValue
?
.
cancel
()
self
.
title
=
self
.
request
?
.
description
self
.
refreshControl
?
.
endRefreshing
()
self
.
headers
.
removeAll
()
self
.
body
=
nil
self
.
elapsedTime
=
nil
}
}
var
headers
:
[
String
:
String
]
=
[:]
var
body
:
String
?
var
elapsedTime
:
NSTimeInterval
?
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
refreshControl
?
.
addTarget
(
self
,
action
:
"refresh"
,
forControlEvents
:
.
ValueChanged
)
}
// MARK: - UIViewController
override
func
viewDidAppear
(
animated
:
Bool
)
{
super
.
viewDidAppear
(
animated
)
self
.
refresh
()
}
// MARK: - IBAction
@IBAction
func
refresh
()
{
if
self
.
request
==
nil
{
return
}
self
.
refreshControl
?
.
beginRefreshing
()
let
start
=
CACurrentMediaTime
()
self
.
request
?
.
responseString
{
(
request
,
response
,
body
,
error
)
in
let
end
=
CACurrentMediaTime
()
self
.
elapsedTime
=
end
-
start
for
(
field
,
value
)
in
response
!.
allHeaderFields
{
self
.
headers
[
"
\(
field
)
"
]
=
"
\(
value
)
"
}
self
.
body
=
body
self
.
tableView
.
reloadData
()
self
.
refreshControl
?
.
endRefreshing
()
}
}
// MARK: UITableViewDataSource
override
func
tableView
(
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
switch
Sections
(
rawValue
:
section
)
!
{
case
.
Headers
:
return
self
.
headers
.
count
case
.
Body
:
return
self
.
body
==
nil
?
0
:
1
default
:
return
0
}
}
override
func
tableView
(
tableView
:
UITableView
,
cellForRowAtIndexPath
indexPath
:
NSIndexPath
)
->
UITableViewCell
{
switch
Sections
(
rawValue
:
indexPath
.
section
)
!
{
case
.
Headers
:
let
cell
=
self
.
tableView
.
dequeueReusableCellWithIdentifier
(
"Header"
)
as
UITableViewCell
let
field
=
self
.
headers
.
keys
.
array
.
sorted
(
<
)[
indexPath
.
row
]
let
value
=
self
.
headers
[
field
]
cell
.
textLabel
.
text
=
field
cell
.
detailTextLabel
!.
text
=
value
return
cell
case
.
Body
:
let
cell
=
self
.
tableView
.
dequeueReusableCellWithIdentifier
(
"Body"
)
as
UITableViewCell
cell
.
textLabel
.
text
=
self
.
body
return
cell
}
}
// MARK: UITableViewDelegate
override
func
numberOfSectionsInTableView
(
tableView
:
UITableView
)
->
Int
{
return
2
}
override
func
tableView
(
tableView
:
UITableView
,
titleForHeaderInSection
section
:
Int
)
->
String
{
if
self
.
tableView
(
tableView
,
numberOfRowsInSection
:
section
)
==
0
{
return
""
}
switch
Sections
(
rawValue
:
section
)
!
{
case
.
Headers
:
return
"Headers"
case
.
Body
:
return
"Body"
}
}
override
func
tableView
(
tableView
:
UITableView
,
heightForRowAtIndexPath
indexPath
:
NSIndexPath
)
->
CGFloat
{
switch
Sections
(
rawValue
:
indexPath
.
section
)
!
{
case
.
Body
:
return
300
default
:
return
tableView
.
rowHeight
}
}
override
func
tableView
(
tableView
:
UITableView
,
titleForFooterInSection
section
:
Int
)
->
String
{
if
Sections
(
rawValue
:
section
)
!
==
.
Body
&&
self
.
elapsedTime
!=
nil
{
let
numberFormatter
=
NSNumberFormatter
()
numberFormatter
.
numberStyle
=
.
DecimalStyle
return
"Elapsed Time:
\(
numberFormatter
.
stringFromNumber
(
self
.
elapsedTime
!
)
)
sec"
}
return
""
}
}
examples/Alamofire Example/Example/HTTPBin.swift
0 → 100644
View file @
961db158
// MasterViewController.swift
//
// Copyright (c) 2014 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
import
Foundation
import
Alamofire
enum
HTTPBinRoute
:
URLStringConvertible
{
case
Method
(
Alamofire
.
Method
)
case
BasicAuth
(
String
,
String
)
var
URLString
:
String
{
let
baseURLString
=
"http://httpbin.org/"
let
path
:
String
=
{
switch
self
{
case
.
Method
(
let
method
):
return
"/
\(
method
.
rawValue
.
lowercaseString
)
"
case
.
BasicAuth
(
let
user
,
let
password
):
return
"/basic-auth/
\(
user
)
/
\(
password
)
"
}
}()
return
NSURL
(
string
:
path
,
relativeToURL
:
NSURL
(
string
:
baseURLString
))
!.
absoluteString
!
}
}
examples/Alamofire Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
View file @
961db158
{
"images"
:
[
{
"idiom"
:
"iphone"
,
"size"
:
"29x29"
,
"scale"
:
"2x"
},
{
"idiom"
:
"iphone"
,
"size"
:
"40x40"
,
"scale"
:
"2x"
},
{
"idiom"
:
"iphone"
,
"size"
:
"60x60"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"29x29"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"29x29"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"40x40"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"40x40"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"76x76"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"76x76"
,
"scale"
:
"2x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
examples/Alamofire Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json
0 → 100644
View file @
961db158
{
"images"
:
[
{
"orientation"
:
"portrait"
,
"idiom"
:
"iphone"
,
"extent"
:
"full-screen"
,
"minimum-system-version"
:
"7.0"
,
"scale"
:
"2x"
},
{
"orientation"
:
"portrait"
,
"idiom"
:
"iphone"
,
"subtype"
:
"retina4"
,
"extent"
:
"full-screen"
,
"minimum-system-version"
:
"7.0"
,
"scale"
:
"2x"
},
{
"orientation"
:
"portrait"
,
"idiom"
:
"ipad"
,
"extent"
:
"full-screen"
,
"minimum-system-version"
:
"7.0"
,
"scale"
:
"1x"
},
{
"orientation"
:
"landscape"
,
"idiom"
:
"ipad"
,
"extent"
:
"full-screen"
,
"minimum-system-version"
:
"7.0"
,
"scale"
:
"1x"
},
{
"orientation"
:
"portrait"
,
"idiom"
:
"ipad"
,
"extent"
:
"full-screen"
,
"minimum-system-version"
:
"7.0"
,
"scale"
:
"2x"
},
{
"orientation"
:
"landscape"
,
"idiom"
:
"ipad"
,
"extent"
:
"full-screen"
,
"minimum-system-version"
:
"7.0"
,
"scale"
:
"2x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
examples/Alamofire Example/Example/Images.xcassets/Logo.imageset/Contents.json
0 → 100644
View file @
961db158
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
,
"filename"
:
"Logo.png"
},
{
"idiom"
:
"universal"
,
"scale"
:
"2x"
,
"filename"
:
"Logo@2x.png"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
examples/Alamofire Example/Example/Images.xcassets/Logo.imageset/Logo.png
0 → 100644
View file @
961db158
5.58 KB
examples/Alamofire Example/Example/Images.xcassets/Logo.imageset/Logo@2x.png
0 → 100644
View file @
961db158
14.2 KB
examples/Alamofire Example/Example/Info.plist
0 → 100644
View file @
961db158
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
en
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
(
EXECUTABLE_NAME
)<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.alamofire.$
(
PRODUCT_NAME:rfc1034identifier
)<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
Alamofire
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
UIMainStoryboardFile
<
/k
e
y
>
<
string
>
Main
<
/string
>
<
k
e
y
>
UIRequiredDeviceCapabilities
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
armv7
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIStatusBarTintParameters
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
UINavigationBar
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
Style
<
/k
e
y
>
<
string
>
UIBarStyleDefault
<
/string
>
<
k
e
y
>
Translucent
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
UISupportedInterfaceOrientations
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeLeft
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeRight
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UISupportedInterfaceOrientations
~
ipad
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationPortraitUpsideDown
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeLeft
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeRight
<
/string
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
examples/Alamofire Example/Example/MasterViewController.swift
0 → 100644
View file @
961db158
// MasterViewController.swift
//
// Copyright (c) 2014 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
import
UIKit
import
Alamofire
class
MasterViewController
:
UITableViewController
{
@IBOutlet
weak
var
titleImageView
:
UIImageView
!
var
detailViewController
:
DetailViewController
?
=
nil
var
objects
=
NSMutableArray
()
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
navigationItem
.
titleView
=
self
.
titleImageView
}
// MARK: - UIViewController
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
if
let
split
=
self
.
splitViewController
{
let
controllers
=
split
.
viewControllers
self
.
detailViewController
=
controllers
.
last
?
.
topViewController
as?
DetailViewController
}
}
// MARK: - UIStoryboardSegue
override
func
prepareForSegue
(
segue
:
UIStoryboardSegue
,
sender
:
AnyObject
?)
{
if
let
detailViewController
=
segue
.
destinationViewController
.
topViewController
as?
DetailViewController
{
func
requestForSegue
(
segue
:
UIStoryboardSegue
)
->
Request
?
{
switch
segue
.
identifier
as
String
!
{
case
"GET"
:
return
Alamofire
.
request
(
.
GET
,
"http://httpbin.org/get"
)
case
"POST"
:
return
Alamofire
.
request
(
.
POST
,
"http://httpbin.org/post"
)
case
"PUT"
:
return
Alamofire
.
request
(
.
PUT
,
"http://httpbin.org/put"
)
case
"DELETE"
:
return
Alamofire
.
request
(
.
DELETE
,
"http://httpbin.org/delete"
)
default
:
return
nil
}
}
if
let
request
=
requestForSegue
(
segue
)
{
detailViewController
.
request
=
request
}
}
}
}
examples/Alamofire Example/Examples.xcworkspace/contents.xcworkspacedata
0 → 100644
View file @
961db158
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version =
"1.0"
>
<FileRef
location =
"group:iOS Example.xcodeproj"
>
</FileRef>
<FileRef
location =
"group:Pods/Pods.xcodeproj"
>
</FileRef>
</Workspace>
examples/Alamofire Example/LICENSE
0 → 100644
View file @
961db158
Copyright (c) 2014 Alamofire (http://alamofire.org/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
examples/Alamofire Example/Podfile
0 → 100644
View file @
961db158
source
'https://github.com/CocoaPods/Specs.git'
workspace
'Examples.xcworkspace'
target
'iOS Example'
do
xcodeproj
'iOS Example.xcodeproj'
platform
:ios
,
'8.0'
pod
'Alamofire'
,
:path
=>
'.'
end
examples/Alamofire Example/Source/Alamofire.h
0 → 100644
View file @
961db158
// Alamofire.h
//
// Copyright (c) 2014 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT
double
AlamofireVersionNumber
;
FOUNDATION_EXPORT
const
unsigned
char
AlamofireVersionString
[];
examples/Alamofire Example/Source/Alamofire.swift
0 → 100644
View file @
961db158
This diff is collapsed.
Click to expand it.
examples/Alamofire Example/Source/Info.plist
0 → 100644
View file @
961db158
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
en
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
(
EXECUTABLE_NAME
)<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.alamofire.$
(
PRODUCT_NAME:rfc1034identifier
)<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
$
(
PRODUCT_NAME
)<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
$
(
CURRENT_PROJECT_VERSION
)<
/string
>
<
k
e
y
>
NSPrincipalClass
<
/k
e
y
>
<
string
><
/string
>
<
/
d
i
c
t
>
<
/plist
>
examples/Alamofire Example/iOS Example.xcodeproj/project.pbxproj
0 → 100644
View file @
961db158
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment