-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathffmpeg-kit-react-native.podspec
More file actions
45 lines (37 loc) · 1.84 KB
/
ffmpeg-kit-react-native.podspec
File metadata and controls
45 lines (37 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "ffmpeg-kit-react-native"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platform = :ios
s.requires_arc = true
s.static_framework = true
s.source = { :git => "https://github.com/concept7/ffmpeg-kit-react-native.git", :tag => "#{s.version}" }
s.dependency "React-Core"
# iOS uses ffmpeg-kit 6.0 (full-gpl) xcframeworks from concept7/ffmpeg-kit-ios.
# Android uses ffmpeg-kit 6.1.1 (full-gpl, 16KB page size compatible) — see android/build.gradle.
s.prepare_command = <<-CMD
rm -rf ios/Frameworks
git clone --depth 1 --branch 6.0 https://github.com/concept7/ffmpeg-kit-ios.git ios/Frameworks
CMD
s.default_subspec = 'full-gpl'
s.subspec 'full-gpl' do |ss|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
'**/FFmpegKitReactNativeModule.h'
ss.ios.deployment_target = '13.4'
ss.vendored_frameworks = 'ios/Frameworks/ffmpegkit.xcframework',
'ios/Frameworks/libavcodec.xcframework',
'ios/Frameworks/libavdevice.xcframework',
'ios/Frameworks/libavfilter.xcframework',
'ios/Frameworks/libavformat.xcframework',
'ios/Frameworks/libavutil.xcframework',
'ios/Frameworks/libswresample.xcframework',
'ios/Frameworks/libswscale.xcframework'
ss.frameworks = 'AudioToolbox', 'AVFoundation', 'CoreFoundation', 'CoreMedia', 'CoreVideo', 'VideoToolbox'
ss.libraries = 'iconv', 'bz2', 'z'
end
end