Skip to content

Commit

Permalink
update download ijk and swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
sync2gitee committed Mar 18, 2024
1 parent c2056f0 commit 4f4852d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/modify_podfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def modfiy(path):
line = '\t'+"pod 'AGEVideoLayout', :git => 'https://gitee.com/shengwang-dependencies/AGEVideoLayout.git'" + "\n"
elif "pod 'CocoaAsyncSocket" in line:
line = '\t'+"pod 'CocoaAsyncSocket', :git => 'https://gitee.com/shengwang-dependencies/CocoaAsyncSocket.git'" + "\n"
elif "pod 'SwiftLint" in line:
line = '\t'+"pod 'SwiftLint', :git => 'https://gitee.com/shengwang-dependencies/SwiftLint', :commit => '1067113303c134ef472a71b30d21e5350de7889d'" + "\n"
elif "pod 'ijkplayer" in line:
line = '\t'+"pod 'ijkplayer', :path => 'ijkplayer/ijkplayer.podspec'" + "\n"
elif 'sh .download_script' in line:
line = line.replace('#', '').replace('false', 'true')
contents.append(line)
Expand Down
19 changes: 19 additions & 0 deletions iOS/APIExample/.download_ijkplayer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

if [ -d "ijkplayer/IJKMediaFramework.framework" ]; then
echo "Folder exists"
exit;
fi

rm -rf ijkplayer

git clone https://gitee.com/shengwang-dependencies/ijkplayer.git

rm -rf ijkplayer/IJKMediaFramework.framework
unzip ijkplayer/IJKMediaFramework.framework.zip -d ijkplayer/
rm -rf ijkplayer/ijkplayer
rm -rf ijkplayer/ijkplayer-Swift
rm -rf ijkplayer/*.zip
rm -rf ijkplayer/screenshot


5 changes: 4 additions & 1 deletion iOS/APIExample/.download_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ url="https://download.agora.io/sdk/release/Agora_Native_SDK_for_iOS_v${version}_
# https://download.agora.io/sdk/release/Agora_Native_SDK_for_iOS_v4.3.0_VOICE.zip
zip_filename=$(basename "$url")

./.download_ijkplayer.sh

if [ -d "libs" ] && [ "$2" = "false" ]; then
echo "Folder exists"
exit;
Expand All @@ -23,4 +25,5 @@ mv "${folder_name}libs" .
rm -rf $zip_filename
rm -rf $folder_name

echo "download sdk finished!"
echo "download sdk finished!"

0 comments on commit 4f4852d

Please sign in to comment.