-
Notifications
You must be signed in to change notification settings - Fork 207
/
react-native-branch.podspec
32 lines (28 loc) · 1.08 KB
/
react-native-branch.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
require 'json'
# expect package.json in current dir
package_json_filename = File.expand_path("./package.json", __dir__)
# load the spec from package.json
spec = JSON.load(File.read(package_json_filename))
Pod::Spec.new do |s|
s.name = spec['name']
s.version = spec['version']
s.summary = spec['description']
s.requires_arc = true
s.authors = {
'rt2zz' => '[email protected]',
'Jimmy Dee' => '[email protected]'
}
s.license = spec['license']
s.homepage = spec['homepage']
s.platform = :ios, "12.0"
s.source = { spec['repository']['type'].to_sym => spec['repository']['url'].sub(/^[a-z]+\+/, '') }
s.source_files = [ "ios/*.h", "ios/*.m"]
s.compiler_flags = %[-DRNBRANCH_VERSION=@\\"#{s.version}\\"]
s.header_dir = 'RNBranch' # also sets generated module name
s.dependency 'BranchSDK', '3.6.5'
s.dependency 'React-Core' # to ensure the correct build order
# Swift/Objective-C compatibility
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES'
}
end