Skip to content

Commit d34da32

Browse files
committed
Merge branches 'master' and 'master' of https://github.com/Instabug/instabug-reactnative
2 parents 2ba9f15 + e0bed1f commit d34da32

File tree

143 files changed

+365
-1689
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+365
-1689
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ android {
2121

2222
dependencies {
2323
compile 'com.facebook.react:react-native:0.20.+'
24-
compile 'com.instabug.library:instabug:4.3.3'
24+
compile 'com.instabug.library:instabug:4.5.0'
2525

2626
}

index.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,19 @@ module.exports = {
801801
}
802802
},
803803

804+
/**
805+
* Sets the default position at which the Instabug screen recording button will be shown. Different orientations are already handled.
806+
*
807+
* (Default for `position` is `bottomRight`)
808+
*
809+
* @param position is of type IBGPosition `topLeft` to show on the top left of screen , or `bottomRight` to show on the bottom right of scrren.
810+
*/
811+
setVideoRecordingFloatingButtonPosition: function(position) {
812+
if(Platform.OS === 'ios') {
813+
Instabug.setVideoRecordingFloatingButtonPosition(position);
814+
}
815+
},
816+
804817
/**
805818
* The event used to invoke the feedback form
806819
* @readonly
@@ -892,6 +905,18 @@ module.exports = {
892905
right: Instabug.rectMaxXEdge,
893906
},
894907

908+
/**
909+
* Instabug floating buttons positions.
910+
* @readonly
911+
* @enum {number}
912+
*/
913+
IBGPosition: {
914+
bottomRight: Instabug.bottomRight,
915+
topRight: Instabug.topRight,
916+
bottomLeft: Instabug.bottomLeft,
917+
topLeft: Instabug.topLeft
918+
},
919+
895920
/**
896921
* Instabug strings
897922
* @readonly

ios/Instabug.framework/Headers/Instabug.h

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#import <Foundation/Foundation.h>
1212
#import <UIKit/UIKit.h>
13-
#import "IBGTypes.h"
13+
#import <InstabugCore/IBGTypes.h>
1414

1515
/**
1616
This is the API for using Instabug's SDK. For more details about the SDK integration,
@@ -118,6 +118,7 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
118118
*/
119119
+ (void)addFileAttachmentWithURL:(NSURL *)fileURL;
120120

121+
121122
/**
122123
@brief Add a set of data as a file attachment to be sent with each report.
123124
@@ -129,7 +130,6 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
129130
*/
130131
+(void)addFileAttachmentWithData:(NSData *)data;
131132

132-
133133
/**
134134
@brief Clear list of files to be attached with each report.
135135
@@ -451,6 +451,15 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
451451
*/
452452
+ (void)setFloatingButtonEdge:(CGRectEdge)floatingButtonEdge withTopOffset:(double)floatingButtonOffsetFromTop;
453453

454+
/**
455+
@brief Sets the default position at which the Instabug screen recording button will be shown. Different orientations are already handled.
456+
457+
@discussion Default for `position` is `bottomRight`.
458+
459+
@param position `topLeft` to show on the top left of screen , or `bottomRight` to show on the bottom right of scrren.
460+
*/
461+
+ (void)setVideoRecordingFloatingButtonPosition:(IBGPosition)position;
462+
454463
/**
455464
@brief Sets the SDK's locale.
456465
@@ -630,7 +639,7 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
630639
631640
@discussion When only a single option is enabled, it become the default invocation mode.
632641
If all options are disabled, bug reporting becomes the default invocation mode.
633-
642+
634643
By default, all three options are enabled.
635644
636645
@param bugReportEnabled A boolean to indicate whether bug reports are enabled or disabled.
@@ -667,7 +676,7 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
667676
@brief Remove all extra fields.
668677
669678
@discussion Use this method to remove all added extra fields.
670-
*/
679+
*/
671680
+ (void)removeExtraReportFields;
672681

673682
/**
@@ -865,7 +874,7 @@ OBJC_EXTERN void IBGLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
865874
/**
866875
@brief Used to reroute all your NSLogs to Instabug to be able to automatically include them with reports.
867876
868-
@discussion For details on how to reroute your NSLogs to Instabug, see https://docs.instabug.com/docs/ios-logging
877+
@discussion For details on how to reroute your NSLogs to Instabug, see http://docs.instabug.com/docs/logging
869878
870879
@param format Format string.
871880
@param args Arguments list.
@@ -1095,7 +1104,7 @@ OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel l
10951104
10961105
To manually display any available surveys, call `+ [Instabug showSurveyIfAvailable]`.
10971106
1098-
Defaults to NO.
1107+
Defaults to YES.
10991108
11001109
@param autoShowingSurveysEnabled A boolean to indicate whether the surveys auto showing are enabled or not.
11011110
*/
@@ -1148,10 +1157,14 @@ OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel l
11481157

11491158
/**
11501159
@brief Sets the verbosity level of logs used to debug the Instabug SDK itself.
1160+
1161+
@discussion This API sets the verbosity level of logs used to debug The SDK. The defualt value in debug mode is IBGSDKDebugLogsLevelVerbose and in production is IBGSDKDebugLogsLevelError.
11511162
11521163
@param level Logs verbosity level.
11531164
*/
11541165
+ (void)setSDKDebugLogsLevel:(IBGSDKDebugLogsLevel)level;
11551166

11561167
@end
1168+
1169+
11571170
NS_ASSUME_NONNULL_END

ios/Instabug.framework/Info.plist

41 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

-13.4 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-678 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug.bundle/Inject_DSYM_Project-Archive.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ios/Instabug.framework/Instabug.bundle/_CodeSignature/CodeSignature

Whitespace-only changes.
Binary file not shown.

ios/Instabug.framework/Instabug.bundle/archived-expanded-entitlements.xcent

Lines changed: 0 additions & 12 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)