2021-03-27 02:11:45 +02:00
|
|
|
require "json"
|
|
|
|
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
|
|
|
|
|
|
Pod::Spec.new do |s|
|
|
|
|
s.name = package["name"]
|
|
|
|
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
|
|
|
|
|
2022-09-27 23:14:51 +03:00
|
|
|
s.source = { :git => "https://github.com/arthenica/ffmpeg-kit.git", :tag => "react.native.v#{s.version}" }
|
2021-03-27 02:11:45 +02:00
|
|
|
|
|
|
|
s.default_subspec = 'https'
|
|
|
|
|
|
|
|
s.dependency "React-Core"
|
|
|
|
|
|
|
|
s.subspec 'min' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-min', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'min-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-min', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'min-gpl' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-min-gpl', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'min-gpl-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-min-gpl', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'https' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-https', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'https-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-https', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'https-gpl' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-https-gpl', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'https-gpl-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-https-gpl', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'audio' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-audio', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'audio-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-audio', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'video' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-video', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'video-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-video', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'full' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-full', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'full-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-full', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'full-gpl' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-full-gpl', "5.1"
|
2021-03-27 02:11:45 +02:00
|
|
|
ss.ios.deployment_target = '12.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'full-gpl-lts' do |ss|
|
|
|
|
ss.source_files = '**/FFmpegKitReactNativeModule.m',
|
|
|
|
'**/FFmpegKitReactNativeModule.h'
|
2022-10-02 22:45:51 +03:00
|
|
|
ss.dependency 'ffmpeg-kit-ios-full-gpl', "5.1.LTS"
|
2021-12-31 14:25:38 +02:00
|
|
|
ss.ios.deployment_target = '10'
|
2021-03-27 02:11:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|