Skip to content

Commit dc98ddd

Browse files
2 parents 3ccbfdf + ec73c3f commit dc98ddd

File tree

5 files changed

+41
-33
lines changed

5 files changed

+41
-33
lines changed

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11

2-
# instabug-reactnative (Beta)
2+
# instabug-reactnative
3+
4+
## Dependencies
5+
6+
`react-native` version `>0.26`
37

48
## Installation
59

10+
#### iOS
11+
612
`$ npm install https://github.com/Instabug/instabug-reactnative --save`
713

814
`$ rnpm link instabug-reactnative`
915

10-
#### iOS
11-
1216
1. Open your app `.xcodeproj` file
13-
2. Add `instabug.framework` and `instabug.bundle` from 'instabug-reactnative/ios' to the app project directory.
14-
3. In XCode, in the project navigator, select your project. Add `instabug.framework` to your project's `Build Phases``Link Binary With Libraries`
15-
4. In XCode, in the project navigator, select your project. Add `CoreTelephony.framework` to your project's `Build Phases``Link Binary With Libraries`
16-
5. In XCode, in the project navigator, select your project. Add `CoreMotion.framework` to your project's `Build Phases``Link Binary With Libraries`
17-
6. In XCode, in the project navigator, select your project. Add `instabug.bundle` to your project's `Build Phases``Copy Bundle Resources`
18-
7. Run your project (`Cmd+R`)<
17+
2. Add the following line to your "Podfile": `pod 'Instabug', '~> 6.0.0'`
18+
3. run `pod install`
19+
4. Run your project (`Cmd+R`)<
1920

2021
#### Android (Pending)
2122

23+
`$ npm install https://github.com/Instabug/instabug-reactnative --save`
24+
25+
`$ rnpm link instabug-reactnative`
26+
2227
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
2328
- Add `import com.instabug.reactlibrary.RNInstabugReactnativePackage;` to the imports at the top of the file
2429
- Add `new RNInstabugReactnativePackage()` to the list returned by the `getPackages()` method
@@ -44,6 +49,13 @@ class testApp extends Component {
4449
...
4550
}
4651
```
52+
53+
### iOS
54+
55+
If your app doesn't already access the microphone or photo library, you'll need to add the following 2 keys to your app's info.plist file:
56+
57+
NSMicrophoneUsageDescription
58+
NSPhotoLibraryUsageDescription
4759

4860
## License
4961

ios/RNInstabug.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256
FRAMEWORK_SEARCH_PATHS = (
257257
"$(inherited)",
258258
"$(PROJECT_DIR)/../../../ios/Frameworks",
259+
"$(PROJECT_DIR)/../../../ios/Pods/Instabug",
259260
);
260261
HEADER_SEARCH_PATHS = (
261262
"$(SRCROOT)/../node_modules/react-native/React/**",
@@ -277,6 +278,7 @@
277278
FRAMEWORK_SEARCH_PATHS = (
278279
"$(inherited)",
279280
"$(PROJECT_DIR)/../../../ios/Frameworks",
281+
"$(PROJECT_DIR)/../../../ios/Pods/Instabug",
280282
);
281283
HEADER_SEARCH_PATHS = (
282284
"$(SRCROOT)/../node_modules/react-native/React/**",

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -268,29 +268,26 @@ - (NSDictionary *)constantsToExport
268268
@"emailFieldHint": @(IBGStringEmailFieldHint),
269269
@"commentFieldHintForBugReport": @(IBGStringCommentFieldHintForBugReport),
270270
@"commentFieldHintForFeedback": @(IBGStringCommentFieldHintForFeedback),
271-
@"addVideoMessage": @(IBGStringAddVideoMessage),
271+
@"addScreenRecordingMessage": @(IBGStringAddScreenRecordingMessage),
272272
@"addVoiceMessage": @(IBGStringAddVoiceMessage),
273273
@"addImageFromGallery": @(IBGStringAddImageFromGallery),
274274
@"addExtraScreenshot": @(IBGStringAddExtraScreenshot),
275275
@"audioRecordingPermissionDeniedTitle": @(IBGStringAudioRecordingPermissionDeniedTitle),
276276
@"audioRecordingPermissionDeniedMessage": @(IBGStringAudioRecordingPermissionDeniedMessage),
277-
@"microphonePermissionAlertSettingsButtonText": @(IBGStringMicrophonePermissionAlertSettingsButtonTitle),
277+
@"microphonePermissionAlertSettingsButtonTitle": @(IBGStringMicrophonePermissionAlertSettingsButtonTitle),
278+
@"chatsHeaderTitle": @(IBGStringChatsHeaderTitle),
279+
@"team": @(IBGStringTeam),
278280
@"recordingMessageToHoldText": @(IBGStringRecordingMessageToHoldText),
279281
@"recordingMessageToReleaseText": @(IBGStringRecordingMessageToReleaseText),
280-
@"conversationsHeaderTitle": @(IBGStringChatsNoConversationsHeadlineText),
282+
@"messagesNotification": @(IBGStringMessagesNotification),
283+
@"messagesNotificationAndOthers": @(IBGStringMessagesNotificationAndOthers),
281284
@"screenshotHeaderTitle": @(IBGStringScreenshotHeaderTitle),
282-
@"chatsNoConversationsHeadlineText": @(IBGStringChatsNoConversationsHeadlineText),
283-
@"doneButtonText": @(IBGStringDoneButtonTitle),
284-
@"okButtonText": @(IBGStringOkButtonTitle),
285-
@"cancelButtonText": @(IBGStringCancelButtonTitle),
285+
@"okButtonTitle": @(IBGStringOkButtonTitle),
286+
@"cancelButtonTitle": @(IBGStringCancelButtonTitle),
286287
@"thankYouText": @(IBGStringThankYouText),
287288
@"audio": @(IBGStringAudio),
288-
@"video": @(IBGStringVideo),
289+
@"screenRecording": @(IBGStringScreenRecording),
289290
@"image": @(IBGStringImage),
290-
@"chatsHeaderTitle": @(IBGStringChatsHeaderTitle),
291-
@"team": @(IBGStringTeam),
292-
@"messageNotification": @(IBGStringMessagesNotification),
293-
@"messagesNotifiactionAndOthers": @(IBGStringMessagesNotificationAndOthers)
294291
};
295292
};
296293

ios/RNInstabug/RCTConvert+InstabugEnums.m

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,25 @@ @implementation RCTConvert (InstabugEnums)
8787
@"emailFieldHint": @(IBGStringEmailFieldHint),
8888
@"commentFieldHintForBugReport": @(IBGStringCommentFieldHintForBugReport),
8989
@"commentFieldHintForFeedback": @(IBGStringCommentFieldHintForFeedback),
90-
@"addVideoMessage": @(IBGStringAddVideoMessage),
90+
@"addScreenRecordingMessage": @(IBGStringAddScreenRecordingMessage),
9191
@"addVoiceMessage": @(IBGStringAddVoiceMessage),
9292
@"addImageFromGallery": @(IBGStringAddImageFromGallery),
9393
@"addExtraScreenshot": @(IBGStringAddExtraScreenshot),
9494
@"audioRecordingPermissionDeniedTitle": @(IBGStringAudioRecordingPermissionDeniedTitle),
9595
@"audioRecordingPermissionDeniedMessage": @(IBGStringAudioRecordingPermissionDeniedMessage),
96-
@"microphonePermissionAlertSettingsButtonText": @(IBGStringMicrophonePermissionAlertSettingsButtonTitle),
96+
@"microphonePermissionAlertSettingsButtonTitle": @(IBGStringMicrophonePermissionAlertSettingsButtonTitle),
97+
@"chatsHeaderTitle": @(IBGStringChatsHeaderTitle),
98+
@"team": @(IBGStringTeam),
9799
@"recordingMessageToHoldText": @(IBGStringRecordingMessageToHoldText),
98100
@"recordingMessageToReleaseText": @(IBGStringRecordingMessageToReleaseText),
99-
@"conversationsHeaderTitle": @(IBGStringChatsNoConversationsHeadlineText),
101+
@"messagesNotification": @(IBGStringMessagesNotification),
102+
@"messagesNotificationAndOthers": @(IBGStringMessagesNotificationAndOthers),
100103
@"screenshotHeaderTitle": @(IBGStringScreenshotHeaderTitle),
101-
@"chatsNoConversationsHeadlineText": @(IBGStringChatsNoConversationsHeadlineText),
102-
@"doneButtonText": @(IBGStringDoneButtonTitle),
103-
@"okButtonText": @(IBGStringOkButtonTitle),
104-
@"cancelButtonText": @(IBGStringCancelButtonTitle),
104+
@"okButtonTitle": @(IBGStringOkButtonTitle),
105+
@"cancelButtonTitle": @(IBGStringCancelButtonTitle),
105106
@"thankYouText": @(IBGStringThankYouText),
106107
@"audio": @(IBGStringAudio),
107-
@"video": @(IBGStringVideo),
108+
@"screenRecording": @(IBGStringScreenRecording),
108109
@"image": @(IBGStringImage),
109-
@"chatsHeaderTitle": @(IBGStringChatsHeaderTitle),
110-
@"team": @(IBGStringTeam),
111-
@"messageNotification": @(IBGStringMessagesNotification),
112-
@"messagesNotifiactionAndOthers": @(IBGStringMessagesNotificationAndOthers)
113110
}), IBGStringShakeHint, integerValue);
114111
@end

0 commit comments

Comments
 (0)