UNPKG

1.11 kBPlain TextView Raw
1require 'json'
2
3# expect package.json in current dir
4package_json_filename = File.expand_path("./package.json", __dir__)
5
6# load the spec from package.json
7spec = JSON.load(File.read(package_json_filename))
8
9Pod::Spec.new do |s|
10 s.name = spec['name']
11 s.version = spec['version']
12 s.summary = spec['description']
13 s.requires_arc = true
14 s.authors = {
15 'rt2zz' => 'zack@root-two.com',
16 'Jimmy Dee' => 'jgvdthree@gmail.com'
17 }
18 s.license = spec['license']
19 s.homepage = spec['homepage']
20 s.platform = :ios, "9.0"
21 s.source = { spec['repository']['type'].to_sym => spec['repository']['url'].sub(/^[a-z]+\+/, '') }
22 s.source_files = [ "ios/*.h", "ios/*.m"]
23 s.compiler_flags = %[-DRNBRANCH_VERSION=@\\"#{s.version}\\"]
24 s.header_dir = 'RNBranch' # also sets generated module name
25 s.dependency 'Branch', '1.40.2'
26 s.dependency 'React-Core' # to ensure the correct build order
27
28 # Swift/Objective-C compatibility
29 s.pod_target_xcconfig = {
30 'DEFINES_MODULE' => 'YES'
31 }
32end