1 | require 'json'
|
2 |
|
3 |
|
4 | package_json_filename = File.expand_path("./package.json", __dir__)
|
5 |
|
6 |
|
7 | spec = JSON.load(File.read(package_json_filename))
|
8 |
|
9 | Pod::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'
|
25 | s.dependency 'Branch', '1.42.0'
|
26 | s.dependency 'React-Core'
|
27 |
|
28 |
|
29 | s.pod_target_xcconfig = {
|
30 | 'DEFINES_MODULE' => 'YES'
|
31 | }
|
32 | end
|