Skip to content

Commit

Permalink
release: 1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Asura19 committed Feb 10, 2025
1 parent 5a8b7c2 commit a117cfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Main features include:
- Support encoding/decoding lifecycle through `ReerCodableDelegate`, like `didDecode`, `willEncode`
- Provide extensions to support using JSON String, `Dictionary`, `Array` directly as parameters for encoding/decoding
- Support conversion between basic data types like `Bool`, `String`, `Double`, `Int`, `CGFloat`
- Support BitInt `Int128`, `UInt128` on macOS 15+, iOS 13+
- Support encoding/decoding of `Any` through `AnyCodable`, like `var dict = [String: AnyCodable]`
- Auto-generate default instances:
Use `@DefaultInstance` to automatically create a default instance of your type,
Expand Down Expand Up @@ -73,7 +74,7 @@ let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.1.6")
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.1.7")
]
)
</code></pre>
Expand All @@ -89,7 +90,7 @@ let package = Package(
<pre><code class="ruby language-ruby">
Pod::Spec.new do |s|
s.name = 'YourPod'
s.dependency 'ReerCodable', '1.1.6'
s.dependency 'ReerCodable', '1.1.7'
# Copy the following config to your pod
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-Xfrontend -load-plugin-executable -Xfrontend ${PODS_ROOT}/ReerCodable/Sources/Resources/ReerCodableMacros#ReerCodableMacros'
Expand Down
5 changes: 3 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ ReerCodable 框架提供了一系列自定义宏,用于生成动态的 Codable
- 支持通过 `ReerCodableDelegate` 来编解码生命周期, 如 `didDecode`, `willEncode`
- 提供扩展, 支持使用 JSON String, `Dictionary`, `Array` 直接作为参数进行编解码
- 支持 `Bool`, `String`, `Double`, `Int`, `CGFloat` 等基本数据类型互相转换
- 支持 BitInt `Int128`, `UInt128` (限 macOS 15+, iOS 13+)
- 支持通过 `AnyCodable` 来实现对 `Any` 的编解码, 如 `var dict = [String: AnyCodable]`
- 支持通过 `@DefaultInstance` 生成一个 `static let default: Model` 实例, `Model.default`
- 支持通过 `@Copyable` 生成 `copy()` 方法, 并且支持部分属性值的 update
Expand All @@ -69,7 +70,7 @@ let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.1.6")
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.1.7")
]
)
</code></pre>
Expand All @@ -85,7 +86,7 @@ let package = Package(
<pre><code class="ruby language-ruby">
Pod::Spec.new do |s|
s.name = 'YourPod'
s.dependency 'ReerCodable', '1.1.6'
s.dependency 'ReerCodable', '1.1.7'
# 复制以下 config 到你的 pod
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-Xfrontend -load-plugin-executable -Xfrontend ${PODS_ROOT}/ReerCodable/Sources/Resources/ReerCodableMacros#ReerCodableMacros'
Expand Down
2 changes: 1 addition & 1 deletion ReerCodable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'ReerCodable'
s.version = '1.1.6'
s.version = '1.1.7'
s.summary = 'Codable extensions using Swift Macro'

s.description = <<-DESC
Expand Down

0 comments on commit a117cfd

Please sign in to comment.