Skip to content

Commit 1eaf3b6

Browse files
authored
Prepare 4.3.0 (#470)
* Update CHANGELOG. * Match Alamofire default. * Update Gems. * Update version. * Update Jazzy docs.
1 parent 14cf4a0 commit 1eaf3b6

File tree

107 files changed

+1804
-1557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1804
-1557
lines changed

AlamofireImage.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AlamofireImage'
3-
s.version = '4.2.0'
3+
s.version = '4.3.0'
44
s.license = 'MIT'
55
s.summary = 'AlamofireImage is an image component library for Alamofire'
66
s.homepage = 'https://github.com/Alamofire/AlamofireImage'

AlamofireImage.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3335,7 +3335,7 @@
33353335
INFOPLIST_FILE = Source/Info.plist;
33363336
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
33373337
MACOSX_DEPLOYMENT_TARGET = 10.12;
3338-
MARKETING_VERSION = 4.2.0;
3338+
MARKETING_VERSION = 4.3.0;
33393339
ONLY_ACTIVE_ARCH = YES;
33403340
PRODUCT_BUNDLE_IDENTIFIER = org.alamofire.AlamofireImage;
33413341
PRODUCT_NAME = AlamofireImage;
@@ -3400,7 +3400,7 @@
34003400
INFOPLIST_FILE = Source/Info.plist;
34013401
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
34023402
MACOSX_DEPLOYMENT_TARGET = 10.12;
3403-
MARKETING_VERSION = 4.2.0;
3403+
MARKETING_VERSION = 4.3.0;
34043404
PRODUCT_BUNDLE_IDENTIFIER = org.alamofire.AlamofireImage;
34053405
PRODUCT_NAME = AlamofireImage;
34063406
SDKROOT = iphoneos;

CHANGELOG.md

Lines changed: 233 additions & 77 deletions
Large diffs are not rendered by default.

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GEM
33
specs:
44
CFPropertyList (3.0.6)
55
rexml
6-
activesupport (7.0.6)
6+
activesupport (7.0.8)
77
concurrent-ruby (~> 1.0, >= 1.0.2)
88
i18n (>= 1.6, < 2)
99
minitest (>= 5.1)
@@ -77,7 +77,7 @@ GEM
7777
json (2.6.3)
7878
liferaft (0.0.6)
7979
mini_portile2 (2.8.4)
80-
minitest (5.19.0)
80+
minitest (5.20.0)
8181
molinillo (0.8.0)
8282
mustache (1.1.1)
8383
nanaimo (0.3.0)
@@ -91,7 +91,7 @@ GEM
9191
ruby-macho (2.5.1)
9292
sassc (2.4.0)
9393
ffi (~> 1.9)
94-
sqlite3 (1.6.3)
94+
sqlite3 (1.6.6)
9595
mini_portile2 (~> 2.8.0)
9696
typhoeus (1.4.0)
9797
ethon (>= 0.9.0)

[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(name: "AlamofireImage",
3232
.watchOS(.v3)],
3333
products: [.library(name: "AlamofireImage", targets: ["AlamofireImage"])],
3434
dependencies: [.package(url: "https://github.com/Alamofire/Alamofire.git",
35-
from: "5.7.0")],
35+
from: "5.8.0")],
3636
targets: [.target(name: "AlamofireImage",
3737
dependencies: ["Alamofire"],
3838
path: "Source",

[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(name: "AlamofireImage",
3232
.watchOS(.v3)],
3333
products: [.library(name: "AlamofireImage", targets: ["AlamofireImage"])],
3434
dependencies: [.package(url: "https://github.com/Alamofire/Alamofire.git",
35-
from: "5.7.0")],
35+
from: "5.8.0")],
3636
targets: [.target(name: "AlamofireImage",
3737
dependencies: ["Alamofire"],
3838
path: "Source",

[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(name: "AlamofireImage",
3232
.watchOS(.v4)],
3333
products: [.library(name: "AlamofireImage", targets: ["AlamofireImage"])],
3434
dependencies: [.package(url: "https://github.com/Alamofire/Alamofire.git",
35-
from: "5.7.0")],
35+
from: "5.8.0")],
3636
targets: [.target(name: "AlamofireImage",
3737
dependencies: ["Alamofire"],
3838
path: "Source",

[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(name: "AlamofireImage",
3232
.watchOS(.v4)],
3333
products: [.library(name: "AlamofireImage", targets: ["AlamofireImage"])],
3434
dependencies: [.package(url: "https://github.com/Alamofire/Alamofire.git",
35-
from: "5.7.0")],
35+
from: "5.8.0")],
3636
targets: [.target(name: "AlamofireImage",
3737
dependencies: ["Alamofire"],
3838
path: "Source",

README.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ AlamofireImage is an image component library for Alamofire.
5454
[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate AlamofireImage into your Xcode project using CocoaPods, specify it in your `Podfile`:
5555

5656
```ruby
57-
pod 'AlamofireImage', '~> 4.1'
57+
pod 'AlamofireImage', '~> 4.3'
5858
```
5959

6060
### Carthage
6161

6262
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate AlamofireImage into your Xcode project using Carthage, specify it in your `Cartfile`:
6363

6464
```ogdl
65-
github "Alamofire/AlamofireImage" ~> 4.1
65+
github "Alamofire/AlamofireImage" ~> 4.3
6666
```
6767

6868
### Swift Package Manager
@@ -73,7 +73,7 @@ Once you have your Swift package set up, adding AlamofireImage as a dependency i
7373

7474
```swift
7575
dependencies: [
76-
.package(url: "https://github.com/Alamofire/AlamofireImage.git", .upToNextMajor(from: "4.2.0"))
76+
.package(url: "https://github.com/Alamofire/AlamofireImage.git", .upToNextMajor(from: "4.3.0"))
7777
]
7878
```
7979

@@ -126,33 +126,38 @@ import Alamofire
126126
import AlamofireImage
127127

128128
AF.request("https://httpbin.org/image/png").responseImage { response in
129-
debugPrint(response)
129+
debugPrint(response)
130130

131-
print(response.request)
132-
print(response.response)
133-
debugPrint(response.result)
131+
print(response.request)
132+
print(response.response)
133+
debugPrint(response.result)
134134

135-
if case .success(let image) = response.result {
136-
print("image downloaded: \(image)")
137-
}
135+
if case .success(let image) = response.result {
136+
print("image downloaded: \(image)")
137+
}
138138
}
139139
```
140140

141141
The AlamofireImage response image serializers support a wide range of image types including:
142142

143-
- `image/png`
144-
- `image/jpeg`
145-
- `image/tiff`
143+
- `application/octet-stream` - As a fallback for things like AWS which provide no real type.
144+
- `image/avif` - On 2022 OS versions and later, except watchOS.
145+
- `image/bmp`
146146
- `image/gif`
147+
- `image/heic`, `image/heif` - On 2017 OS versions and later.
147148
- `image/ico`
148-
- `image/x-icon`
149-
- `image/bmp`
149+
- `image/jp2`
150+
- `image/jpeg`
151+
- `image/jpg`
152+
- `image/jxl` - On 2023 OS versions and later.
153+
- `image/png`
154+
- `image/tiff`
155+
- `image/webp` - On 2020 OS versions and later, except tvOS and watchOS.
150156
- `image/x-bmp`
151-
- `image/x-xbitmap`
157+
- `image/x-icon`
152158
- `image/x-ms-bmp`
153159
- `image/x-win-bitmap`
154-
- `image/heic`
155-
- `application/octet-stream` (added for iOS 13 support)
160+
- `image/x-xbitmap`
156161

157162
> If the image you are attempting to download is an invalid MIME type not in the list, you can add custom acceptable content types using the `addAcceptableImageContentTypes` extension on the `DataRequest` type.
158163

Source/Request+AlamofireImage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ extension DataRequest {
273273

274274
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
275275
extension DataRequest {
276-
public func serializingImage(automaticallyCancelling shouldAutomaticallyCancel: Bool = false,
276+
public func serializingImage(automaticallyCancelling shouldAutomaticallyCancel: Bool = true,
277277
imageScale: CGFloat = DataRequest.imageScale,
278278
inflateResponseImage: Bool = true,
279279
emptyResponseCodes: Set<Int> = ImageResponseSerializer.defaultEmptyResponseCodes,

0 commit comments

Comments
 (0)