Skip to content

Commit

Permalink
6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ApolloZhu committed Apr 8, 2021
1 parent 7b27bc5 commit 4a72d79
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 7 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Change Log

## [6.1.0](https://github.com/EFPrefix/EFQRCode/releases/tag/6.1.0) (2021-04-08)

## Add

- Supports chaining `EFQRCodeGenerator` configuration methods.
- `EFQRCodeGenerator` properties are now public.
- `EFQRCodeGenerator.clearCache` can be used to free up memories used for caching results.
- English documentation is now available through Xcode quick help.
- Swift: `EFWatermarkMode.rectForWatermark(ofSize:inCanvasOfSize:)` can be used to calculate the frame for watermark image in a canvas.
- Objective-C: New tests to ensure APIs are available in Objective-C.

## Change

- Renamed `EFQRCodeGenerator` configuration methods to be more consistent.
- Renamed `EFQRCode` and reordered convenience generate function arguments to be consistent with generator methods.
- `EFQRCodeGenerator` now caches more generated contents to improve performance.
- `EFQRCodeRecognizer` expects non-nil image and returns non-nil array of results. The returned array may still be empty.
- `EFIntSize` is now an immutable, final class.
- Renamed `CGColor` extensions `white` and `black` to omit first argument label.
- Objective-C: `EFQRCodeGenerator` and `EFQRCodeRecognizer` is now fully available to configure/use in Objective-C.

## Deprecate

- `EFQRCodeMode.none` is now deprecated. Use `nil` and `EFQRCodeMode?` instead.

## Remove

- `EFUIntPixel` is no longer a part of the public interface.
- GIF generation no longer takes `pathToSave` parameter.
- Objective-C: `EFQRCode` is no longer available in Objective-C. Use `EFQRCodeGenerator` and `EFQRCodeRecognizer` instead.

---

## [6.0.0](https://github.com/EFPrefix/EFQRCode/releases/tag/6.0.0) (2020-11-04)

#### Add
Expand Down
2 changes: 1 addition & 1 deletion EFQRCode.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'EFQRCode'
s.version = '6.0.0'
s.version = '6.1.0'
s.summary = 'A better way to operate quick response code in Swift.'

s.description = <<-DESC
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ EFQRCode is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'EFQRCode', '~> 6.0.0'
pod 'EFQRCode', '~> 6.1.0'
```

Then, run the following command:
Expand All @@ -129,7 +129,7 @@ $ brew install carthage
To integrate EFQRCode into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "EFPrefix/EFQRCode" ~> 6.0.0
github "EFPrefix/EFQRCode" ~> 6.1.0
```

Run `carthage update` to build the framework and drag the built `EFQRCode.framework` into your Xcode project.
Expand All @@ -142,7 +142,7 @@ Once you have your Swift package set up, adding EFQRCode as a dependency is as e

```swift
dependencies: [
.package(url: "https://github.com/EFPrefix/EFQRCode.git", .upToNextMinor(from: "6.0.0"))
.package(url: "https://github.com/EFPrefix/EFQRCode.git", .upToNextMinor(from: "6.1.0"))
]
```

Expand Down
6 changes: 3 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ git clone [email protected]:EFPrefix/EFQRCode.git; cd EFQRCode; sh Startup.sh; open
EFQRCode 可以通过 [CocoaPods](http://cocoapods.org) 进行获取。只需要在你的 Podfile 中添加如下代码就能实现引入:

```ruby
pod 'EFQRCode', '~> 6.0.0'
pod 'EFQRCode', '~> 6.1.0'
```

然后,执行如下命令即可:
Expand All @@ -133,7 +133,7 @@ $ brew install carthage
通过在你的 `Cartfile` 添加如下语句可以将 EFQRCode 引入你的项目:

```ogdl
github "EFPrefix/EFQRCode" ~> 6.0.0
github "EFPrefix/EFQRCode" ~> 6.1.0
```

接下来执行 `carthage update` 命令生成 Framework 并且将生成的 `EFQRCode.framework` 拖入工程即可。
Expand All @@ -146,7 +146,7 @@ github "EFPrefix/EFQRCode" ~> 6.0.0

```swift
dependencies: [
.package(url: "https://github.com/EFPrefix/EFQRCode.git", .upToNextMinor(from: "6.0.0"))
.package(url: "https://github.com/EFPrefix/EFQRCode.git", .upToNextMinor(from: "6.1.0"))
]
```

Expand Down

0 comments on commit 4a72d79

Please sign in to comment.