Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Commit 8300657

Browse files
committed
Bump version to 0.4.0, add CHANGELOG.md
1 parent 6f92e02 commit 8300657

File tree

3 files changed

+62
-21
lines changed

3 files changed

+62
-21
lines changed

Diff for: ApolloAlamofire.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'ApolloAlamofire'
11-
s.version = '0.3.0'
11+
s.version = '0.4.0'
1212
s.summary = 'Alamofire transport for Apollo iOS GraphQL library'
1313

1414
# This description is used to generate tags and improve search results.
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
1717
# * Write the description between the DESC delimiters below.
1818
# * Finally, don't worry about the indent, CocoaPods strips it!
1919

20-
s.swift_version = '4.1'
20+
s.swift_version = '4.2'
2121
s.description = <<-DESC
2222
This package bundles a `NetworkTransport` implementation that wraps Alamofire
2323
and solves known limitations of Apollo iOS library.

Diff for: CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Change Log
2+
3+
## [0.4.0](https://github.com/graphql-community/ApolloAlamofire/tree/0.3.0) (2019-04-07)
4+
5+
This update fixes compatibility with Xcode 10.2 and Swift 5.0. This release
6+
also supports Swift 4.2 and Xcode 10.0 and 10.1, but unfortunately maintaining
7+
a suite of tests and Xcode project settings that support Swift 4.0 and Xcode 9
8+
as well does not seem feasible (PRs that fix this are welcome!).
9+
10+
No other changes were made and ApolloAlamofire 0.3.0 is recommended if you need
11+
Xcode 9 support.
12+
13+
**Closed issues:**
14+
15+
- Xcode 10.2 & Swift 5.0 compatibility [\#2](https://github.com/graphql-community/ApolloAlamofire/issues/2)
16+
- Error in compilation [\#1](https://github.com/graphql-community/ApolloAlamofire/issues/1)
17+
18+
**Merged pull requests:**
19+
20+
- Add and apply SwiftFormat [\#4](https://github.com/graphql-community/ApolloAlamofire/pull/4) ([MaxDesiatov](https://github.com/MaxDesiatov))
21+
- Add Xcode 10.2 to .travis.yml [\#3](https://github.com/graphql-community/ApolloAlamofire/pull/3) ([MaxDesiatov](https://github.com/MaxDesiatov))
22+
23+
## [0.3.0](https://github.com/graphql-community/ApolloAlamofire/tree/0.3.0) (2018-09-13)
24+
25+
- Updated project for Swift 4.2 and Apollo 0.9.
26+
27+
## [0.2.1](https://github.com/graphql-community/ApolloAlamofire/tree/0.2.1) (2018-05-03)
28+
29+
- Added documentation for headers and logging properties.
30+
- Improved README.md, added simple example code.
31+
32+
## [0.2.0](https://github.com/graphql-community/ApolloAlamofire/tree/0.2.0) (2018-05-03)
33+
34+
- Public props in AlamofireTransport
35+
- Added simple test, updated example dependencies

Diff for: README.md

+25-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ApolloAlamofire
22

3-
### Alamofire transport implementation for Apollo GraphQL iOS library.
3+
### Alamofire transport implementation for Apollo GraphQL iOS library.
44

55
[![CI Status](https://img.shields.io/travis/graphql-community/ApolloAlamofire/master.svg?style=flat)](https://travis-ci.org/MaxDesiatov/ApolloAlamofire)
66
[![Version](https://img.shields.io/cocoapods/v/ApolloAlamofire.svg?style=flat)](https://cocoapods.org/pods/ApolloAlamofire)
@@ -9,18 +9,18 @@
99

1010
## What's This For?
1111

12-
If you've used [Apollo iOS](https://github.com/apollographql/apollo-ios) library,
12+
If you used [Apollo iOS](https://github.com/apollographql/apollo-ios) library,
1313
you may have stumbled upon a few limitations of a standard `HTTPNetworkTransport`
1414
provided with the library:
1515

16-
* [Can't swap request headers without creating a new `ApolloClient` instance](https://github.com/apollographql/apollo-ios/issues/37)
17-
* [Can't send requests when the app is in background](https://stackoverflow.com/questions/50089546/how-to-correctly-use-apollo-graphql-on-ios-with-background-session-configuration)
18-
* [Can't log request/response data](https://github.com/apollographql/apollo-ios/pull/257)
16+
- [Can't swap request headers without creating a new `ApolloClient` instance](https://github.com/apollographql/apollo-ios/issues/37)
17+
- [Can't send requests when the app is in background](https://stackoverflow.com/questions/50089546/how-to-correctly-use-apollo-graphql-on-ios-with-background-session-configuration)
18+
- [Can't log request/response data](https://github.com/apollographql/apollo-ios/pull/257)
1919

20-
Fortunately, Apollo iOS provides a public `NetworkTransport` protocol that allows
20+
Fortunately, Apollo iOS provides a public `NetworkTransport` protocol that allows
2121
us to override behaviour that's limited. Looks like [Alamofire](https://github.com/Alamofire/Alamofire)
22-
is the most popular iOS networking library and all of the mentioned limitations can be solved
23-
with it. You also probably use Alamofire anyway to acquire authentication tokens for your
22+
is the most popular iOS networking library and all of the mentioned limitations can be solved
23+
with it. You also probably use Alamofire anyway to acquire authentication tokens for your
2424
GraphQL API, so it makes sense to integrate both Alamofire and Apollo iOS.
2525

2626
This package bundles a `NetworkTransport` implementation that wraps Alamofire
@@ -29,11 +29,14 @@ and solves these limitations.
2929
## Example
3030

3131
When initialising a new `ApolloClient` instance instead of
32+
3233
```swift
3334
let u = URL(string: "http://localhost:8080/graphql")!
3435
let client = ApolloClient(url: u)
3536
```
37+
3638
or instead of
39+
3740
```swift
3841
let u = URL(string: "http://localhost:8080/graphql")!
3942
let client = ApolloClient(networkTransport: HTTPNetworkTransport(url: u))
@@ -49,7 +52,7 @@ let u = URL(string: "http://localhost:8080/graphql")!
4952
let client = ApolloClient(networkTransport: AlamofireTransport(url: u))
5053
```
5154

52-
There are additional parameters available for `AlamofireTransport` initialiser, e.g. for
55+
There are additional parameters available for `AlamofireTransport` initialiser, e.g. for
5356
a background session you can use it like this:
5457

5558
```swift
@@ -62,7 +65,6 @@ let client = ApolloClient(networkTransport: t)
6265

6366
like this for auth headers:
6467

65-
6668
```swift
6769
let token = "blah"
6870
let u = URL(string: "http://localhost:8080/graphql")!
@@ -81,11 +83,11 @@ let client = ApolloClient(networkTransport: t)
8183

8284
Both `headers` and `loggingEnabled` are also variable properties of `AlamofireTransport`.
8385
This allows you to change headers without instantiating a new transport, e.g. when a user
84-
logs out and a different user logs in you can swap authentication headers. If you switch
85-
logging dynamically, `loggingEnabled` property can be controlled in the same way
86+
logs out and a different user logs in you can swap authentication headers. If you switch
87+
logging dynamically, `loggingEnabled` property can be controlled in the same way
8688
without creating a new `AlamofireTransport` instance.
8789

88-
Nice feature of Alamofire is that request logging prints a ready for use
90+
Nice feature of Alamofire is that request logging prints a ready for use
8991
[curl command](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#curl-command-output), which you can directly copy and paste in terminal to test a request.
9092

9193
All of the initialiser parameters except `url` have sensible default values and can be used
@@ -95,20 +97,24 @@ To run the example project, clone the repo, and open `Example/ApolloAlamofire.xc
9597

9698
## Requirements
9799

98-
* Xcode 10.0 or later
99-
* Swift 4.2 or later
100+
- Xcode 10.0 or later
101+
- Swift 4.2 or later
102+
- iOS 9.0 deployment target or later.
103+
104+
If you integrate the library with CocoaPods, Alamofire and Apollo iOS
105+
dependencies are pulled automatically. Currently tested compatible versions are
106+
Alamofire 4.x and Apollo iOS 0.10.x.
100107

101-
If you integrate the library with CocoaPods, Alamofire and Apollo iOS dependencies are
102-
pulled automatically. Currently tested versions that should be compatible are Alamofire 4.x
103-
and Apollo iOS 0.10.x.
108+
If you need Xcode 9 and Swift 4.0 support in your project you can use earlier
109+
version of ApolloAlamofire: [0.3.0](https://github.com/graphql-community/ApolloAlamofire/tree/0.3.0).
104110

105111
## Installation
106112

107113
ApolloAlamofire is available through [CocoaPods](https://cocoapods.org). To install
108114
it, simply add the following line to your target configuration in your Podfile:
109115

110116
```ruby
111-
pod 'ApolloAlamofire'
117+
pod 'ApolloAlamofire', '~> 0.4.0'
112118
```
113119

114120
## Maintainer

0 commit comments

Comments
 (0)