forked from elliottkember/react-native-background-upload
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathreact-native-background-upload.podspec
More file actions
32 lines (27 loc) · 1.21 KB
/
Copy pathreact-native-background-upload.podspec
File metadata and controls
32 lines (27 loc) · 1.21 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
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.license = { type: "MIT" }
s.homepage = "https://github.com/openspacelabs/react-native-background-upload"
s.authors = package["author"]
s.summary = package["description"]
s.source = {
git: "https://github.com/openspacelabs/react-native-background-upload.git",
tag: "v#{s.version}"
}
s.source_files = "ios/**/*.{h,m,mm,swift}"
# RNFileUploader.h imports the codegen spec header, which is Obj-C++ only. Keep
# it out of the public umbrella so a consumer's plain Obj-C
# `@import react_native_background_upload;` still compiles — that import is how
# the AppDelegate reaches RNBackgroundUpload's background-session handler.
s.private_header_files = "ios/RNFileUploader.h"
# Foundation-only, and public so that the Swift half of the module can see it.
s.public_header_files = "ios/RNBGUCatchException.h"
s.platform = :ios, "15.1"
s.swift_version = "5.0"
s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }
# Pulls in React-Core plus the New Architecture / TurboModule dependencies.
install_modules_dependencies(s)
end