-
Notifications
You must be signed in to change notification settings - Fork 134
/
ReactNativeExceptionHandler.podspec
29 lines (24 loc) · 1.25 KB
/
ReactNativeExceptionHandler.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
require 'json'
# Returns the version number for a package.json file
pkg_version = lambda do |dir_from_root = '', version = 'version'|
path = File.join(__dir__, dir_from_root, 'package.json')
JSON.parse(File.read(path))[version]
end
# Let the main package.json decide the version number for the pod
package_version = pkg_version.call
Pod::Spec.new do |s|
s.name = "ReactNativeExceptionHandler"
s.version = package_version
s.summary = "A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions"
s.description = <<-DESC
A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.
The module helps prevent abrupt crashing of RN Apps without a graceful message to the user.
DESC
s.homepage = "https://github.com/master-atul/react-native-exception-handler"
s.license = "MIT"
s.author = { "Atul R" => "[email protected]" }
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/master-atul/react-native-exception-handler.git", :tag => s.version.to_s }
s.source_files = "ios/*.{h,m}"
s.dependency "React-Core"
end