diff --git a/README.md b/README.md index 0ba6d75..d770d66 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,12 @@ # instabug-reactnative -## Getting started +## Installation `$ npm install https://github.com/Instabug/instabug-reactnative --save` -### Mostly automatic installation - `$ rnpm link instabug-reactnative` -### Manual installation - - #### iOS 1. Open your app `.xcodeproj` file @@ -20,7 +15,7 @@ 4. 3. In XCode, in the project navigator, select your project. Add `instabug.bundle` to your project's `Build Phases` ➜ `Copy Bundle Resources` 5. Run your project (`Cmd+R`)< -#### Android +#### Android (Pending) 1. Open up `android/app/src/main/java/[...]/MainActivity.java` - Add `import com.instabug.reactlibrary.RNInstabugReactnativePackage;` to the imports at the top of the file diff --git a/index.ios.js b/index.ios.js index 84ef99e..c28b914 100644 --- a/index.ios.js +++ b/index.ios.js @@ -59,7 +59,6 @@ module.exports = { * @param {string} fileLocation Path to a file that's going to be attached * to each report. */ - // Not yet testsed setFileAttachment: function(fileLocation) { Instabug.setFileAttachment(fileLocation); }, @@ -79,7 +78,6 @@ module.exports = { * Adds custom logs that will be sent with each report. * @param {string} log Message to be logged. */ - // Needs renaming IBGLog: function(log) { Instabug.IBGLog(log); }, @@ -167,7 +165,6 @@ module.exports = { * shown or not. Passing YES will show screenshot view for both feedback and * bug reporting, while passing NO will disable it for both. */ - // Doesn't work on existing SDK setWillSkipScreenshotAnnotation: function(willSkipeScreenshotAnnotation) { Instabug.setWillSkipScreenshotAnnotation(willSkipeScreenshotAnnotation); }, @@ -200,7 +197,6 @@ module.exports = { * @param {boolean} isPushNotificationEnabled A boolean to indicate whether push * notifications are enabled or disabled. */ - // Not tested setPushNotificationsEnabled: function(isPushNotificationEnabled) { Instabug.setPushNotificationsEnabled(isPushNotificationEnabled); }, @@ -354,7 +350,6 @@ module.exports = { * @param {boolean} isChatNotificationEnabled A boolean to set whether * notifications are enabled or disabled. */ - // Not tested setChatNotificationEnabled: function(isChatNotificationEnabled) { Instabug.setChatNotificationEnabled(isChatNotificationEnabled); }, @@ -374,7 +369,6 @@ module.exports = { * @param {boolean} chatEnabled A boolean to indicate whether chat is enabled * or disabled. */ -// TODO: investigate doing it in more like JS pattern setPromptOptions: function(isBugReportingEnabled, isFeedbackReportingEnabled, isChatEnabled) { Instabug.setPromptOptions(isBugReportingEnabled, isFeedbackReportingEnabled, isChatEnabled); }, diff --git a/ios/RNInstabug.xcodeproj/project.xcworkspace/xcuserdata/yousefhamza.xcuserdatad/UserInterfaceState.xcuserstate b/ios/RNInstabug.xcodeproj/project.xcworkspace/xcuserdata/yousefhamza.xcuserdatad/UserInterfaceState.xcuserstate index 62f7c41..0594eed 100644 Binary files a/ios/RNInstabug.xcodeproj/project.xcworkspace/xcuserdata/yousefhamza.xcuserdatad/UserInterfaceState.xcuserstate and b/ios/RNInstabug.xcodeproj/project.xcworkspace/xcuserdata/yousefhamza.xcuserdatad/UserInterfaceState.xcuserstate differ