forked from heap/react-native-heap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-native-heap.podspec
More file actions
30 lines (25 loc) · 970 Bytes
/
react-native-heap.podspec
File metadata and controls
30 lines (25 loc) · 970 Bytes
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
require "json"
json = File.read(File.join(__dir__, "package.json"))
package = JSON.parse(json).deep_symbolize_keys
Pod::Spec.new do |s|
s.name = "react-native-heap"
s.version = package[:version]
s.summary = package[:description]
s.license = { type: "MIT" }
s.author = package[:author]
s.homepage = package[:homepage]
s.source = { git: package[:repository] }
s.source_files = "ios/**/*.{h,m}"
s.platform = :ios, "8.0"
s.preserve_paths = "ios/Vendor"
s.vendored_libraries = "ios/Vendor/libHeap.a"
s.dependency "React"
s.frameworks = "SystemConfiguration"
s.script_phase = {
name: 'Generate `HeapSettings.plist`',
script: '../../node_modules/@heap/react-native-heap/ios/HeapSettings.bundle/generate_settings.rb',
execution_position: :after_compile,
shell_path: '/bin/bash'
}
s.resource_bundles = {HeapSettings: ['ios/HeapSettings.bundle/HeapSettings.plist.template', 'ios/HeapSettings.bundle/HeapSettings.plist']}
end