Skip to content

Commit 1783ebd

Browse files
committed
✨ support installation with cocoapods
1 parent 0593ef8 commit 1783ebd

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

instabug-reactnative.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'json'
2+
package = JSON.parse(File.read('package.json'))
3+
version = JSON.parse(File.read('package.json'))["version"]
4+
5+
Pod::Spec.new do |s|
6+
s.name = package["name"]
7+
s.version = version
8+
s.summary = package["description"]
9+
s.author = package["author"]
10+
s.license = package["license"]
11+
s.homepage = package["homepage"]
12+
s.source = { :git => "https://github.com/Instabug/instabug-reactnative.git", :tag => 'v' + version }
13+
s.source_files = 'ios/RNInstabug/*'
14+
s.platform = :ios, "9.0"
15+
s.static_framework = true
16+
s.ios.vendored_frameworks = 'ios/Instabug.framework'
17+
s.dependency 'React'
18+
end

ios/RNInstabug/RCTConvert+InstabugEnums.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
// Copyright © 2016 Facebook. All rights reserved.
77
//
88

9-
#import <React/RCTConvert.h>
9+
#if __has_include("RCTConvert.h")
10+
#import "RCTConvert.h"
11+
#else
12+
#import <React/RCTConvert.h>
13+
#endif
1014

1115
@interface RCTConvert (InstabugEnums)
1216

0 commit comments

Comments
 (0)