forked from khipu/react-native-khenshin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRNKhenshin.podspec
executable file
·37 lines (34 loc) · 1.53 KB
/
RNKhenshin.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
require "json"
package = JSON.parse(File.read(File.join(__dir__, ".", ".", "package.json")))
version = package['version']
source = { :git => "https://github.com/khipu/react-native-khenshin-tricard.git", :tag => "master" }
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] = "#{version}"
end
Pod::Spec.new do |s|
s.name = "RNKhenshin"
s.version = version
s.summary = package["description"]
s.homepage = package["homepage"]
s.documentation_url = package['documentation']
s.license = package["license"]
s.author = package["author"]
s.authors = package["author"]
s.platforms = { :ios => "9.0" }
s.compiler_flags = '-Wno-nullability-completeness'
s.source = source
s.source_files = "ios/**/*.{h,m}"
s.resources = "ios/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,ttf}"
s.preserve_paths = "package.json", "ios", "index.js"
s.header_dir = "RNKhenshin"
s.pod_target_xcconfig = {
"USE_HEADERMAP" => "YES",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RNKhenshin\""
}
s.dependency "khenshin"
s.dependency "React-Core"
end