Skip to content

Commit 1e7ab2e

Browse files
committed
release 1.7.2
1 parent ef5dc1e commit 1e7ab2e

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ let package = Package(
8181
name: "YOUR_PROJECT_NAME",
8282
targets: [],
8383
dependencies: [
84-
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.7.1")
84+
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.7.2")
8585
]
8686
)
8787
</code></pre>
@@ -98,15 +98,15 @@ let package = Package(
9898
<h4>1. Use in Main App Only</h4>
9999
<p>If you only use <code>@Codable</code> in your main app (not inside other Pods), simply add to your Podfile:</p>
100100
<pre><code class="ruby language-ruby">
101-
pod 'ReerCodable', '1.7.1'
101+
pod 'ReerCodable', '1.7.2'
102102
</code></pre>
103103

104104
<h4>2. Use in a Pod Component</h4>
105105
<p>If your Pod needs to use <code>@Codable</code> and other ReerCodable macros, you <strong>must</strong> add <code>pod_target_xcconfig</code> to load the macro plugin binary, because CocoaPods does not propagate build settings from dependencies to dependent Pods:</p>
106106
<pre><code class="ruby language-ruby">
107107
Pod::Spec.new do |s|
108108
s.name = 'YourPod'
109-
s.dependency 'ReerCodable', '1.7.1'
109+
s.dependency 'ReerCodable', '1.7.2'
110110
# Required: load the ReerCodable macro plugin
111111
s.pod_target_xcconfig = {
112112
'OTHER_SWIFT_FLAGS' => '-Xfrontend -load-plugin-executable -Xfrontend ${PODS_BUILD_DIR}/ReerCodable/MacroPlugin/ReerCodableMacros#ReerCodableMacros'
@@ -814,7 +814,7 @@ If you prefer all types automatically support flexible type conversion without e
814814
// In your Package.swift
815815
.package(
816816
url: "https://github.com/reers/ReerCodable.git",
817-
from: "1.7.1",
817+
from: "1.7.2",
818818
traits: ["AutoFlexibleType"]
819819
)
820820
```

README_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ let package = Package(
7575
name: "YOUR_PROJECT_NAME",
7676
targets: [],
7777
dependencies: [
78-
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.7.1")
78+
.package(url: "https://github.com/reers/ReerCodable.git", from: "1.7.2")
7979
]
8080
)
8181
</code></pre>
@@ -92,15 +92,15 @@ let package = Package(
9292
<h4>1. 仅在主工程中使用</h4>
9393
<p>如果只在主 App 中使用 <code>@Codable</code>(不在其他 Pod 组件中使用),只需在 Podfile 中添加:</p>
9494
<pre><code class="ruby language-ruby">
95-
pod 'ReerCodable', '1.7.1'
95+
pod 'ReerCodable', '1.7.2'
9696
</code></pre>
9797

9898
<h4>2. 在 Pod 组件中使用</h4>
9999
<p>如果你的 Pod 需要使用 <code>@Codable</code> 等 ReerCodable 宏,<strong>必须</strong>在你的 podspec 中添加 <code>pod_target_xcconfig</code> 来加载宏插件二进制。这是因为 CocoaPods 不会将依赖 Pod 的构建配置自动传递给依赖方:</p>
100100
<pre><code class="ruby language-ruby">
101101
Pod::Spec.new do |s|
102102
s.name = 'YourPod'
103-
s.dependency 'ReerCodable', '1.7.1'
103+
s.dependency 'ReerCodable', '1.7.2'
104104
# 必须添加:加载 ReerCodable 宏插件
105105
s.pod_target_xcconfig = {
106106
'OTHER_SWIFT_FLAGS' => '-Xfrontend -load-plugin-executable -Xfrontend ${PODS_BUILD_DIR}/ReerCodable/MacroPlugin/ReerCodableMacros#ReerCodableMacros'
@@ -809,7 +809,7 @@ struct Settings {
809809
// 在你的 Package.swift 中
810810
.package(
811811
url: "https://github.com/reers/ReerCodable.git",
812-
from: "1.7.1",
812+
from: "1.7.2",
813813
traits: ["AutoFlexibleType"]
814814
)
815815
```

ReerCodable.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'ReerCodable'
11-
s.version = '1.7.1'
11+
s.version = '1.7.2'
1212
s.summary = 'Codable extensions using Swift Macro'
1313

1414
s.description = <<-DESC

0 commit comments

Comments
 (0)