forked from bugsnag/bugsnag-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBugsnagReactNative.podspec
31 lines (25 loc) · 1.26 KB
/
BugsnagReactNative.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
require 'json'
Pod::Spec.new do |s|
# NPM package specification
package = JSON.parse(File.read(File.join(File.dirname(__FILE__), 'package.json')))
s.name = 'BugsnagReactNative'
s.version = package['version']
s.license = 'MIT'
s.summary = 'Bugsnag crash and error reporting for React Native apps'
s.author = { 'Delisa Mason' => '[email protected]' }
s.homepage = "https://docs.bugsnag.com/platforms/react-native"
s.source = { :git => 'https://github.com/bugsnag/bugsnag-react-native.git', :tag => "v#{s.version}"}
s.platform = :ios, '8.0'
s.preserve_paths = '*.js'
s.libraries = 'z', 'c++'
s.frameworks = 'MessageUI', 'SystemConfiguration'
s.dependency 'React'
s.source_files = 'cocoa/BugsnagReactNative.{h,m}',
'cocoa/vendor/bugsnag-cocoa/Source/**/*.{h,m,mm,cpp,c}',
s.public_header_files = 'cocoa/**/{Bugsnag,BugsnagReactNative,BugsnagMetaData,BugsnagConfiguration,BugsnagBreadcrumb,BugsnagCrashReport,BSG_KSCrashReportWriter}.h'
# If Bugsnag is previously installed via CocoaPods, use the Core subspec.
s.subspec 'Core' do |core|
core.source_files = 'cocoa/BugsnagReactNative.{h,m}'
core.public_header_files = ['cocoa/BugsnagReactNative.h']
end
end