Repository navigation
Expand file tree
/
Copy pathreact-native-alpha-video-ffmpegkit.podspec
More file actions
69 lines (58 loc) · 1.86 KB
/
Copy pathreact-native-alpha-video-ffmpegkit.podspec
File metadata and controls
69 lines (58 loc) · 1.86 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = "react-native-alpha-video-ffmpegkit"
s.version = package['version']
s.summary = package['description']
s.homepage = package['homepage']
s.authors = package['author']
s.license = {
:type => package['license'],
:file => 'LICENSE'
}
s.platforms = { :ios => "13.0" }
s.source = {
:git => package['repository']['url'],
:tag => "v#{s.version}"
}
# The iOS library (ios/Sources/AlphaVideoFFmpegKit, also the Swift package) and the React
# Native views, which subclass its views
s.source_files = [
"ios/Sources/AlphaVideoFFmpegKit/**/*.swift",
"react-native/ios/**/*.{h,m,mm,swift}"
]
s.public_header_files = "react-native/ios/RNFFmpegKitAlpha-Bridging-Header.h"
s.swift_version = "5.0"
s.static_framework = true
s.frameworks = [
"Foundation",
"UIKit",
"AVFoundation",
"CoreMedia",
"CoreVideo",
"VideoToolbox",
"AudioToolbox"
]
s.libraries = [
"z",
"bz2",
"iconv",
"c++"
]
# FFmpegKit with a VP9-only FFmpeg (github.com/MediaCacheDev/ffmpegkit-vp9). Dynamic frameworks
# (LGPL: users can replace them), embedded in the app. 6.0.0 is the last version on CocoaPods
# trunk, which is read-only from 2 December 2026.
s.dependency "ffmpegkit-vp9", "6.0.0"
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 armv7 armv7s'
}
# React Native's helper: the Fabric and codegen dependencies, and RCT_NEW_ARCH_ENABLED on the
# new architecture. It reads pod_target_xcconfig, so it comes after it.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
end
end