Skip to content

Commit

Permalink
💎 Bump version to 8.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
salmamali committed Nov 27, 2018
2 parents 3dde3a7 + dd85dad commit 71b090b
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 5 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,32 @@ gem install xcodeproj
```bash
react-native link instabug-reactnative
```
### Installing using Cocoapods
Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for managing dependencies. After following the first step from the installation steps above, add the following to your `Podfile`:

```ruby
pod 'instabug-reactnative', :path => '../node_modules/instabug-reactnative'
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport'
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
```
And add the following post install script at the end of your `Podfile`:

```ruby
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
```

## Using Instabug
1. To start using Instabug, import it into your `index.ios.js` and `index.android.js` file.
Expand Down
10 changes: 7 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@

apply plugin: 'com.android.library'

def DEFAULT_COMPILE_SDK_VERSION = 26
def DEFAULT_BUILD_TOOLS_VERSION = "26.0.2"
def DEFAULT_TARGET_SDK_VERSION = 26

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

defaultConfig {
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
versionCode 1
versionName "1.0"
ndk {
Expand Down
18 changes: 18 additions & 0 deletions instabug-reactnative.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'json'
package = JSON.parse(File.read('package.json'))
version = JSON.parse(File.read('package.json'))["version"]

Pod::Spec.new do |s|
s.name = package["name"]
s.version = version
s.summary = package["description"]
s.author = package["author"]
s.license = package["license"]
s.homepage = package["homepage"]
s.source = { :git => "https://github.com/Instabug/instabug-reactnative.git", :tag => 'v' + version }
s.source_files = 'ios/RNInstabug/*'
s.platform = :ios, "9.0"
s.static_framework = true
s.ios.vendored_frameworks = 'ios/Instabug.framework'
s.dependency 'React'
end
6 changes: 5 additions & 1 deletion ios/RNInstabug/RCTConvert+InstabugEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
// Copyright © 2016 Facebook. All rights reserved.
//

#import <React/RCTConvert.h>
#if __has_include("RCTConvert.h")
#import "RCTConvert.h"
#else
#import <React/RCTConvert.h>
#endif

@interface RCTConvert (InstabugEnums)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "instabug-reactnative",
"version": "8.0.18",
"version": "8.0.19",
"description": "React Native plugin for integrating the Instabug SDK",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 71b090b

Please sign in to comment.