Skip to content

Commit 5b03584

Browse files
committed
拆分 pod sdk
1 parent 4bb0f29 commit 5b03584

File tree

9 files changed

+278
-102
lines changed

9 files changed

+278
-102
lines changed

.github/workflows/deploypod.yml

Lines changed: 130 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,139 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414

15-
- name: Deploy to CocoapodsPre
15+
- name: Get Pod Version
16+
run: |
17+
rtt=$(git describe --tags `git rev-list --tags --max-count=1`)
18+
echo "curr_tag=$rtt" >> $GITHUB_ENV
19+
20+
#faac-v2.2.2
21+
#ijkplayer-v2.2.2
22+
#tpns-v2.2.2
23+
#wechat-v2.2.2
24+
#xp2p-v2.2.2
25+
#xp2p-v2.2.2-beta.1
26+
27+
- name: Deploy faac SDK
28+
if: ${{contains(env.curr_tag, 'faac')}}
1629
run: |
1730
set -eo pipefail
1831
19-
VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
20-
echo $VERSION
21-
export LIB_VERSION=$VERSION
32+
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
33+
vtaglist=(${temptag//-/ })
34+
beta=${vtaglist[2]}
35+
version=${vtaglist[1]}
36+
if [ ${#beta} -gt 0 ]
37+
then
38+
version=${vtaglist[1]}-$beta
39+
fi
40+
version=${version#*v}
41+
echo $version
42+
43+
export LIB_VERSION=$version
44+
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => \"$temptag\" }#g" TIoTLinkKit_Faac.podspec
45+
46+
pod lib lint TIoTLinkKit_Faac.podspec --verbose --allow-warnings --use-libraries
47+
pod trunk push TIoTLinkKit_Faac.podspec --verbose --allow-warnings --use-libraries
48+
env:
49+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
50+
51+
52+
53+
- name: Deploy ijkplayer SDK
54+
if: ${{contains(env.curr_tag, 'ijkplayer')}}
55+
run: |
56+
set -eo pipefail
57+
58+
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
59+
vtaglist=(${temptag//-/ })
60+
beta=${vtaglist[2]}
61+
version=${vtaglist[1]}
62+
if [ ${#beta} -gt 0 ]
63+
then
64+
version=${vtaglist[1]}-$beta
65+
fi
66+
version=${version#*v}
67+
echo $version
68+
69+
export LIB_VERSION=$version
70+
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => => \"$temptag\" }#g" TIoTLinkKit_IJKPlayer.podspec
71+
72+
pod lib lint TIoTLinkKit_IJKPlayer.podspec --verbose --allow-warnings --use-libraries
73+
pod trunk push TIoTLinkKit_IJKPlayer.podspec --verbose --allow-warnings --use-libraries
74+
env:
75+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
76+
77+
78+
- name: Deploy tpns SDK
79+
if: ${{contains(env.curr_tag, 'tpns')}}
80+
run: |
81+
set -eo pipefail
82+
83+
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
84+
vtaglist=(${temptag//-/ })
85+
beta=${vtaglist[2]}
86+
version=${vtaglist[1]}
87+
if [ ${#beta} -gt 0 ]
88+
then
89+
version=${vtaglist[1]}-$beta
90+
fi
91+
version=${version#*v}
92+
echo $version
93+
94+
export LIB_VERSION=$version
95+
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => \"$temptag\" }#g" TIoTLinkKit_TPNS.podspec
96+
97+
pod lib lint TIoTLinkKit_TPNS.podspec --verbose --allow-warnings --use-libraries
98+
pod trunk push TIoTLinkKit_TPNS.podspec --verbose --allow-warnings --use-libraries
99+
env:
100+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
101+
102+
103+
- name: Deploy wechat SDK
104+
if: ${{contains(env.curr_tag, 'wechat')}}
105+
run: |
106+
set -eo pipefail
107+
108+
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
109+
vtaglist=(${temptag//-/ })
110+
beta=${vtaglist[2]}
111+
version=${vtaglist[1]}
112+
if [ ${#beta} -gt 0 ]
113+
then
114+
version=${vtaglist[1]}-$beta
115+
fi
116+
version=${version#*v}
117+
echo $version
118+
119+
export LIB_VERSION=$version
120+
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => \"$temptag\" }#g" TIoTLinkKit_WechatOpenSDK.podspec
121+
122+
pod lib lint TIoTLinkKit_WechatOpenSDK.podspec --verbose --allow-warnings --use-libraries
123+
pod trunk push TIoTLinkKit_WechatOpenSDK.podspec --verbose --allow-warnings --use-libraries
124+
env:
125+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
126+
127+
128+
- name: Deploy xp2p SDK
129+
if: ${{contains(env.curr_tag, 'xp2p')}}
130+
run: |
131+
set -eo pipefail
132+
133+
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
134+
vtaglist=(${temptag//-/ })
135+
beta=${vtaglist[2]}
136+
version=${vtaglist[1]}
137+
if [ ${#beta} -gt 0 ]
138+
then
139+
version=${vtaglist[1]}-$beta
140+
fi
141+
version=${version#*v}
142+
echo $version
143+
144+
export LIB_VERSION=$version
145+
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => \"$temptag\" }#g" TIoTLinkKit_XP2P.podspec
22146
23-
pod lib lint --verbose --allow-warnings --use-libraries
24-
pod trunk push --verbose --allow-warnings --use-libraries
147+
pod lib lint TIoTLinkKit_XP2P.podspec --verbose --allow-warnings --use-libraries
148+
pod trunk push TIoTLinkKit_XP2P.podspec --verbose --allow-warnings --use-libraries
25149
env:
26150
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}

README.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
# TIoTLinkThirdPartyKit
22

3-
[![CI Status](https://img.shields.io/travis/[email protected]/TIoTThridSDK.svg?style=flat)](https://travis-ci.org/[email protected]/TIoTLinkThirdPartyKit)
4-
[![Version](https://img.shields.io/cocoapods/v/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit)
5-
[![License](https://img.shields.io/cocoapods/l/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit)
6-
[![Platform](https://img.shields.io/cocoapods/p/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit)
73

8-
## Example
9-
10-
To run the example project, clone the repo, and run `pod install` from the Example directory first.
11-
12-
## Requirements
13-
14-
## Installation
4+
## 安装
155

166
TIoTThridSDK is available through [CocoaPods](https://cocoapods.org). To install
177
it, simply add the following line to your Podfile:
188

199
```ruby
20-
pod 'TIoTLinkThirdPartyKit'
21-
pod 'TIoTLinkThirdPartyKit/TPNS-iOS'
22-
pod 'TIoTLinkThirdPartyKit/WechatOpenSDK_NoPay'
23-
pod 'TIoTLinkThirdPartyKit/IJKPlayer-iOS'
24-
pod 'TIoTLinkThirdPartyKit/XP2P-iOS'
25-
pod 'TIoTLinkThirdPartyKit/Faac-iOS'
10+
pod 'TIoTLinkKit_Faac'
11+
pod 'TIoTLinkKit_IJKPlayer'
12+
pod 'TIoTLinkKit_TPNS'
13+
pod 'TIoTLinkKit_WechatOpenSDK'
14+
pod 'TIoTLinkKit_XP2P'
2615
```
2716

28-
## Author
29-
30-
17+
产品线打包方式
3118

19+
```ruby
20+
#faac-v2.2.2
21+
#ijkplayer-v2.2.2
22+
#tpns-v2.2.2
23+
#wechat-v2.2.2
24+
#xp2p-v2.2.2
25+
#xp2p-v2.2.2-beta.1
3226
## License
27+
```
3328

34-
TIoTThridSDK is available under the MIT license. See the LICENSE file for more info.
3529

30+
产品线发布
3631

32+
```ruby
3733
pod lib lint --verbose --allow-warnings --use-libraries
3834

39-
pod trunk push --verbose --allow-warnings --use-libraries
35+
pod trunk push --verbose --allow-warnings --use-libraries
36+
```

Source/TIoTLinkThirdpartyKit.h

Lines changed: 0 additions & 6 deletions
This file was deleted.

TIoTLinkKit_Faac.podspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'TIoTLinkKit_Faac'
3+
s.version = ENV['LIB_VERSION'] || '1.0.0'
4+
s.summary = '该仓库为方便个人仓库构建使用,如有其他需求还请从官网下载原SDK'
5+
6+
s.description = <<-DESC
7+
在CI构建中,有些SDK没有提供供方便pod集成使用,在此仓库提供个聚合SDK以便更好的支持CI。
8+
DESC
9+
10+
s.homepage = 'https://github.com/tencentyun/iot-thirdparty-ios'
11+
s.license = { :type => 'MIT', :file => 'LICENSE' }
12+
s.author = { '[email protected]' => '[email protected]' }
13+
s.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => s.version.to_s }
14+
15+
s.ios.deployment_target = '9.0'
16+
# s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }
17+
# s.static_framework = true
18+
19+
s.source_files = 'Source/Faac-iOS/Classes/**/*'
20+
s.vendored_libraries = 'Source/Faac-iOS/*.a'
21+
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
22+
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
23+
24+
end

TIoTLinkKit_IJKPlayer.podspec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'TIoTLinkKit_IJKPlayer'
3+
s.version = ENV['LIB_VERSION'] || '1.0.0'
4+
s.summary = '该仓库为方便个人仓库构建使用,如有其他需求还请从官网下载原SDK'
5+
6+
s.description = <<-DESC
7+
在CI构建中,有些SDK没有提供供方便pod集成使用,在此仓库提供个聚合SDK以便更好的支持CI。
8+
DESC
9+
10+
s.homepage = 'https://github.com/tencentyun/iot-thirdparty-ios'
11+
s.license = { :type => 'MIT', :file => 'LICENSE' }
12+
s.author = { '[email protected]' => '[email protected]' }
13+
s.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => s.version.to_s }
14+
15+
s.ios.deployment_target = '9.0'
16+
# s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }
17+
# s.static_framework = true
18+
19+
s.vendored_libraries = 'Source/IJKPlayer-iOS/libcrypto.a', 'Source/IJKPlayer-iOS/libssl.a'
20+
s.vendored_frameworks = 'Source/IJKPlayer-iOS/IJKMediaFramework.framework'
21+
s.frameworks = "AudioToolbox", "AVFoundation", "CoreGraphics", "CoreMedia", "CoreVideo", "MobileCoreServices", "OpenGLES", "QuartzCore", "VideoToolbox", "Foundation", "UIKit", "MediaPlayer"
22+
s.libraries = "bz2", "z", "stdc++"
23+
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
24+
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
25+
26+
end

TIoTLinkKit_TPNS.podspec

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'TIoTLinkKit_TPNS'
3+
s.version = ENV['LIB_VERSION'] || '1.0.0'
4+
s.summary = '该仓库为方便个人仓库构建使用,如有其他需求还请从官网下载原SDK'
5+
6+
s.description = <<-DESC
7+
在CI构建中,有些SDK没有提供供方便pod集成使用,在此仓库提供个聚合SDK以便更好的支持CI。
8+
DESC
9+
10+
s.homepage = 'https://github.com/tencentyun/iot-thirdparty-ios'
11+
s.license = { :type => 'MIT', :file => 'LICENSE' }
12+
s.author = { '[email protected]' => '[email protected]' }
13+
s.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => s.version.to_s }
14+
15+
s.ios.deployment_target = '9.0'
16+
# s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }
17+
# s.static_framework = true
18+
19+
s.source_files = 'Source/TPNS-iOS/Classes/**/*'
20+
s.vendored_libraries = 'Source/TPNS-iOS/libXG-SDK-Cloud.a', 'Source/TPNS-iOS/libxgidfa.a', 'Source/TPNS-iOS/libXGExtension.a'
21+
s.vendored_frameworks = 'Source/TPNS-iOS/XGMTACloud.framework'
22+
s.frameworks = "CFNetwork", "SystemConfiguration", "CoreTelephony", "CoreGraphics", "Foundation", "UserNotifications", "CoreData"
23+
s.libraries = "z", "sqlite3"
24+
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
25+
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
26+
27+
end

TIoTLinkKit_WechatOpenSDK.podspec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'TIoTLinkKit_WechatOpenSDK'
3+
s.version = ENV['LIB_VERSION'] || '1.0.0'
4+
s.summary = '该仓库为方便个人仓库构建使用,如有其他需求还请从官网下载原SDK'
5+
6+
s.description = <<-DESC
7+
在CI构建中,有些SDK没有提供供方便pod集成使用,在此仓库提供个聚合SDK以便更好的支持CI。
8+
DESC
9+
10+
s.homepage = 'https://github.com/tencentyun/iot-thirdparty-ios'
11+
s.license = { :type => 'MIT', :file => 'LICENSE' }
12+
s.author = { '[email protected]' => '[email protected]' }
13+
s.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => s.version.to_s }
14+
15+
s.ios.deployment_target = '9.0'
16+
# s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }
17+
# s.static_framework = true
18+
19+
s.source_files = 'Source/WechatOpenSDK_NoPay/Classes/**/*'
20+
s.vendored_libraries = 'Source/WechatOpenSDK_NoPay/libWeChatSDK.a'
21+
s.frameworks = "Security", "CoreGraphics", "WebKit", "SystemConfiguration", "CoreTelephony", "Foundation", "UIKit"
22+
s.libraries = 'c++', 'sqlite3', 'z'
23+
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
24+
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
25+
26+
end

TIoTLinkKit_XP2P.podspec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'TIoTLinkKit_XP2P'
3+
s.version = ENV['LIB_VERSION'] || '1.0.0'
4+
s.summary = '该仓库为方便个人仓库构建使用,如有其他需求还请从官网下载原SDK'
5+
6+
s.description = <<-DESC
7+
在CI构建中,有些SDK没有提供供方便pod集成使用,在此仓库提供个聚合SDK以便更好的支持CI。
8+
DESC
9+
10+
s.homepage = 'https://github.com/tencentyun/iot-thirdparty-ios'
11+
s.license = { :type => 'MIT', :file => 'LICENSE' }
12+
s.author = { '[email protected]' => '[email protected]' }
13+
s.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => s.version.to_s }
14+
15+
s.ios.deployment_target = '9.0'
16+
# s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }
17+
# s.static_framework = true
18+
19+
s.source_files = 'Source/XP2P-iOS/Classes/**/*'
20+
s.vendored_libraries = 'Source/XP2P-iOS/*.a'
21+
s.frameworks = "NetworkExtension", "CoreGraphics", "SystemConfiguration", "Foundation", "UIKit"
22+
s.libraries = 'c++', 'sqlite3', 'z'
23+
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
24+
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
25+
26+
end

0 commit comments

Comments
 (0)