Skip to content

Commit 4db379f

Browse files
committed
mergingCocoaPods support
thx @a594508257
1 parent d169f5a commit 4db379f

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
xcuserdata/
22
*.xcuserdata
33
.DS_Store
4+
.build/

CodableWrapper.podspec

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Be sure to run `pod lib lint CodableWrapper.podspec' to ensure this is a
3+
# valid spec before submitting.
4+
#
5+
# Any lines starting with a # are optional, but their use is encouraged
6+
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
7+
#
8+
9+
Pod::Spec.new do |s|
10+
s.name = 'CodableWrapper'
11+
s.version = '1.1.0'
12+
s.summary = 'A short description of CodableWrapper.'
13+
14+
s.description = <<-DESC
15+
CodableWrapper Pod
16+
DESC
17+
18+
s.homepage = 'https://github.com/winddpan/CodableWrapper'
19+
s.author = { 'winddpan' => 'https://github.com/winddpan' }
20+
s.source = { :git => 'git@github.com:winddpan/CodableWrapper.git', :tag => s.version.to_s }
21+
22+
s.ios.deployment_target = '13.0'
23+
24+
s.source_files = 'Sources/CodableWrapper/*{.swift}'
25+
s.preserve_paths = ["Package.swift", "Sources/CodableWrapperMacros", "Tests", "Bin"]
26+
27+
s.pod_target_xcconfig = {
28+
"OTHER_SWIFT_FLAGS" => "-Xfrontend -load-plugin-executable -Xfrontend $(PODS_BUILD_DIR)/CodableWrapper/release/CodableWrapperMacros#CodableWrapperMacros"
29+
}
30+
31+
s.user_target_xcconfig = {
32+
"OTHER_SWIFT_FLAGS" => "-Xfrontend -load-plugin-executable -Xfrontend $(PODS_BUILD_DIR)/CodableWrapper/release/CodableWrapperMacros#CodableWrapperMacros"
33+
}
34+
35+
script = <<-SCRIPT
36+
env -i PATH="$PATH" "$SHELL" -l -c "swift build -c release --package-path \\"$PODS_TARGET_SRCROOT\\" --build-path \\"${PODS_BUILD_DIR}/CodableWrapper\\""
37+
SCRIPT
38+
39+
s.script_phase = {
40+
:name => 'Build CodableWrapper macro plugin',
41+
:script => script,
42+
:execution_position => :before_compile
43+
}
44+
end

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Xcode | Minimun Deployments | Version |
44
| --------- | ------------------- | -------------------------------------------------------------- |
5-
| Xcode15 | >= iOS13 / macOS11 | 1.0 |
5+
| Xcode15 | >= iOS13 / macOS11 | 1.0+ |
66
| < Xcode15 | < iOS13 / macOS11 | [0.3.3](https://github.com/winddpan/CodableWrapper/tree/0.3.3) |
77

88
# About
@@ -21,8 +21,8 @@ The project objective is to enhance the usage experience of the Codable protocol
2121

2222
## Installation
2323

24-
#### Cocoapods [Beta test](https://github.com/winddpan/CodableWrapper/tree/1.1.0)
25-
``` pod 'CodableWrapper', :git => 'https://github.com/winddpan/CodableWrapper.git', :branch => '1.1.0' ```
24+
#### Cocoapods
25+
``` pod 'CodableWrapper' ```
2626

2727
#### Swift Package Manager
2828
``` https://github.com/winddpan/CodableWrapper ```

0 commit comments

Comments
 (0)