Skip to content

Commit 7e6999b

Browse files
committed
添加soundtouch
1 parent 95960f5 commit 7e6999b

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

.github/workflows/deploypod.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
2020
#faac-v2.2.2
2121
#ijkplayer-v2.2.2
22+
#soundtouch-v0.0.1
2223
#tpns-v2.2.2
2324
#wechat-v2.2.2
2425
#xp2p-v2.2.2
@@ -175,3 +176,26 @@ jobs:
175176
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
176177

177178

179+
- name: Deploy soundtouch SDK
180+
if: ${{contains(env.curr_tag, 'soundtouch')}}
181+
run: |
182+
set -eo pipefail
183+
184+
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
185+
vtaglist=(${temptag//-/ })
186+
beta=${vtaglist[2]}
187+
version=${vtaglist[1]}
188+
if [ ${#beta} -gt 0 ]
189+
then
190+
version=${vtaglist[1]}-$beta
191+
fi
192+
version=${version#*v}
193+
echo $version
194+
195+
export LIB_VERSION=$version
196+
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => \"$temptag\" }#g" TIoTLinkKit_SoundTouch.podspec
197+
198+
pod lib lint TIoTLinkKit_SoundTouch.podspec --verbose --allow-warnings --use-libraries
199+
pod trunk push TIoTLinkKit_SoundTouch.podspec --verbose --allow-warnings --use-libraries
200+
env:
201+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2017 Bilibili
3+
* copyright (c) 2017 Raymond Zheng <raymondzheng1412@gmail.com>
4+
*
5+
* This file is part of ijkPlayer.
6+
*
7+
* ijkPlayer is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU Lesser General Public
9+
* License as published by the Free Software Foundation; either
10+
* version 2.1 of the License, or (at your option) any later version.
11+
*
12+
* ijkPlayer is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
* Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public
18+
* License along with ijkPlayer; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20+
*/
21+
22+
#ifndef IJKSOUNDTOUCHWRAP_H
23+
#define IJKSOUNDTOUCHWRAP_H
24+
25+
#include <stdint.h>
26+
27+
void* ijk_soundtouch_create();
28+
int ijk_soundtouch_translate(void *handle, short* data, float speed, float pitch, int len, int bytes_per_sample, int n_channel, int n_sampleRate);
29+
void ijk_soundtouch_destroy(void *handle);
30+
31+
#endif /* IJKSOUNDTOUCHWRAP_H */
350 KB
Binary file not shown.

TIoTLinkKit_SoundTouch.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_SoundTouch'
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 = { 'tonychanchen@gmail.com' => 'tonychanchen@gmail.com' }
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/SoundTouch-iOS/Classes/**/*'
20+
s.vendored_libraries = 'Source/SoundTouch-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)