forked from tanersener/react-native-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreact-native-ffmpeg.podspec
78 lines (66 loc) · 2.28 KB
/
react-native-ffmpeg.podspec
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
70
71
72
73
74
75
76
77
78
Pod::Spec.new do |s|
s.name = 'react-native-ffmpeg'
s.version = '2.0.0'
s.summary = 'FFmpeg for React Native'
s.description = 'React Native FFmpeg based on mobile-ffmpeg'
s.homepage = 'https://github.com/beedeez/react-native-ffmpeg'
s.author = { 'Taner Sener' => '[email protected]' }
s.license = { :type => 'LGPL-3.0' }
s.platform = :ios
s.requires_arc = true
s.static_framework = true
s.source = { :git => 'https://github.com/beedeez/react-native-ffmpeg.git', :tag => 'v6.0.0'}
s.default_subspec = 'video'
s.dependency 'React'
s.subspec 'video' do |ss|
ss.source_files = 'ios/RNFFmpegModule.m',
'ios/RNFFmpegModule.h',
'ios/RNExecuteDelegate.h',
'ios/RNExecuteDelegate.m'
ss.vendored_frameworks = 'ios/Frameworks/*.framework'
ss.ios.deployment_target = '11.0'
end
s.subspec 'video-lts' do |ss|
ss.source_files = 'ios/RNFFmpegModule.m',
'ios/RNFFmpegModule.h',
'ios/RNExecuteDelegate.h',
'ios/RNExecuteDelegate.m'
ss.vendored_frameworks = 'ios/Frameworks/*.framework'
ss.ios.deployment_target = '9.3'
end
s.frameworks = [
'VideoToolbox',
'AudioToolbox',
'CoreMedia',
'CoreAudio',
'AVFoundation',
'Security',
'CoreVideo',
'CoreImage',
'CoreGraphics',
'Foundation'
]
s.libraries = [
'bz2',
'c++',
'z'
]
s.pod_target_xcconfig = {
'FRAMEWORK_SEARCH_PATHS' => [
'$(PODS_TARGET_SRCROOT)/ios/Frameworks',
'$(PLATFORM_DIR)/Developer/Library/Frameworks'
],
'OTHER_LDFLAGS' => '-lbz2 -lc++ -lz',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
'CLANG_CXX_LIBRARY' => 'libc++',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
'VALID_ARCHS' => 'arm64 x86_64',
'ENABLE_BITCODE' => 'NO'
}
s.user_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.xcconfig = {
'FRAMEWORK_SEARCH_PATHS' => '$(SDKROOT)/System/Library/Frameworks'
}
end