forked from itinance/react-native-fs
-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathReactNativeFs.podspec
More file actions
31 lines (24 loc) · 1.18 KB
/
ReactNativeFs.podspec
File metadata and controls
31 lines (24 loc) · 1.18 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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "ReactNativeFs"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => min_ios_version_supported, :osx => "10.13" }
s.source = { :git => "https://github.com/birdofpreyru/react-native-fs.git", :tag => "#{s.version}" }
s.resource_bundles = { 'RNFS_PrivacyInfo' => 'ios/PrivacyInfo.xcprivacy' }
s.frameworks = "AVFoundation", "Photos"
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
# Necessary for background downloads to work,
# see: https://github.com/birdofpreyru/react-native-fs/issues/114
# NOTE: Not sure if we can keep the private_header_files value (it comes
# from the library scaffolding generated by create-react-native-library tool),
# for now it is commented out, as that is what is proven to work in the issue
# referenced above).
# s.private_header_files = "ios/**/*.h"
s.public_header_files = "ios/RNFSBackgroundDownloads.h"
install_modules_dependencies(s)
end