Skip to content

Commit

Permalink
update ijk download script
Browse files Browse the repository at this point in the history
  • Loading branch information
sync2gitee committed Mar 18, 2024
1 parent 4f4852d commit d07217f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/modify_podfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def modfiy(path):
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"
line = '\t'+"pod 'ijkplayer', :path => 'ijkplayer.podspec'" + "\n"
elif 'sh .download_script' in line:
line = line.replace('#', '').replace('false', 'true')
contents.append(line)
Expand Down
13 changes: 3 additions & 10 deletions iOS/APIExample/.download_ijkplayer.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
#!/bin/bash

if [ -d "ijkplayer/IJKMediaFramework.framework" ]; then
if [ -d "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

unzip ijkplayer/IJKMediaFramework.framework.zip

rm -rf ijkplayer
34 changes: 34 additions & 0 deletions iOS/APIExample/ijkplayer.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Pod::Spec.new do |s|
s.name = "ijkplayer"
s.version = "1.1.3"
s.summary = "ijkplayer framework."

s.description = <<-DESC
bilibili/ijkplayer k0.8.8 IJKMediaFramework 上传到 cococapods
DESC

s.homepage = "https://github.com/iOSDevLog/ijkplayer"

s.license = { :type => "GNU Lesser General Public License v2.1", :text => <<-LICENSE
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
https://github.com/iOSDevLog/ijkplayer/raw/master/LICENSE
LICENSE
}

s.author = { "iosdevlog" => "[email protected]" }
s.social_media_url = "http://weibo.com/iOSDevLog"

s.platform = :ios, "7.0"

s.source = { :http => "" }
# s.source = { :http => "https://github.com/iOSDevLog/ijkplayer/releases/download/#{s.version}/IJKMediaFramework.framework.zip" }

s.vendored_frameworks = 'IJKMediaFramework.framework'

s.frameworks = "AudioToolbox", "AVFoundation", "CoreGraphics", "CoreMedia", "CoreVideo", "MobileCoreServices", "OpenGLES", "QuartzCore", "VideoToolbox", "Foundation", "UIKit", "MediaPlayer"
s.libraries = "bz2", "z", "stdc++"

s.requires_arc = true

end

0 comments on commit d07217f

Please sign in to comment.