/
RNSyncStorage.podspec
48 lines (39 loc) · 1.35 KB
/
RNSyncStorage.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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
version = package["version"]
source = { :git => "https://github.com/x0s3/react-native-sync-storage.git" }
if version == "1000.0.0"
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
source[:commit] = `git rev-parse HEAD`.strip
else
source[:tag] = "v#{version}"
end
Pod::Spec.new do |s|
s.name = "RNSyncStorage"
s.version = version
s.license = package["license"]
s.homepage = package["homepage"]
s.authors = package["author"]
s.summary = package["description"]
s.description = package["description"]
s.source = source
s.source_files = "ios/*.{m,h}"
s.public_header_files = "ios/*.h"
s.preserve_paths = "README.md", "package.json", "*.js", "LICENSE", "TODO*"
s.platform = :ios, "9.0"
s.dependency "React"
s.dependency "MMKV", "1.0.24"
s.subspec "RCT" do |ss|
ss.source_files = "ios/RCT/**/*.{h,m}"
end
s.subspec "RN" do |ss|
ss.source_files = "ios/RN/**/*.{h,m}"
end
s.xcconfig = {
"HEADER_SEARCH_PATHS" => [
"$(inherited)",
"${SRCROOT}/../../React/**",
"${SRCROOT}/../../node_modules/react-native/**"
].join(" ")
}
end