Skip to content

Commit da6235b

Browse files
committed
v6.4
1 parent 46cda0a commit da6235b

File tree

315 files changed

+3700
-43
lines changed

Some content is hidden

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

315 files changed

+3700
-43
lines changed

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Build generated
2+
build/
3+
DerivedData/
4+
5+
## Various settings
6+
*.pbxuser
7+
!default.pbxuser
8+
*.mode1v3
9+
!default.mode1v3
10+
*.mode2v3
11+
!default.mode2v3
12+
*.perspectivev3
13+
!default.perspectivev3
14+
xcuserdata/
15+
16+
## Other
17+
*.moved-aside
18+
*.xcuserstate

Instabug.framework/Headers/IBGTypes.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ extern NSString * const kIBGScreenRecordingStringName;
5353
extern NSString * const kIBGImageStringName;
5454
extern NSString * const kIBGReachedMaximimNumberOfAttachmentsTitleStringName;
5555
extern NSString * const kIBGReachedMaximimNumberOfAttachmentsMessageStringName;
56+
extern NSString * const kIBGSurveyEnterYourAnswerTextPlaceholder;
57+
extern NSString * const kIBGSurveyNoAnswerTitle;
58+
extern NSString * const kIBGSurveyNoAnswerMessage;
59+
extern NSString * const kIBGSurveySubmitTitle;
5660

5761
/// -----------
5862
/// @name Enums
@@ -150,6 +154,7 @@ typedef NS_ENUM(NSInteger, IBGLocale) {
150154
IBGLocaleChineseTraditional,
151155
IBGLocaleCzech,
152156
IBGLocaleDanish,
157+
IBGLocaleDutch,
153158
IBGLocaleEnglish,
154159
IBGLocaleFrench,
155160
IBGLocaleGerman,
@@ -206,5 +211,9 @@ typedef NS_ENUM(NSInteger, IBGString) {
206211
IBGStringThankYouAlertText,
207212
IBGStringAudio,
208213
IBGStringScreenRecording,
209-
IBGStringImage
214+
IBGStringImage,
215+
IBGStringSurveyEnterYourAnswerPlaceholder,
216+
kIBGStringSurveyNoAnswerTitle,
217+
kIBGStringSurveyNoAnswerMessage,
218+
kIBGStringSurveySubmitTitle
210219
};

Instabug.framework/Headers/Instabug.h

Lines changed: 83 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2017 by Instabug, Inc., all rights reserved.
77
8-
Version: 6.3.1
8+
Version: 6.4
99
*/
1010

1111
#import <Foundation/Foundation.h>
@@ -83,7 +83,7 @@ NS_ASSUME_NONNULL_BEGIN
8383
8484
@param fileLocation Path to a file that's going to be attached to each report.
8585
*/
86-
+ (void)setFileAttachment:(NSString *)fileLocation DEPRECATED_MSG_ATTRIBUTE("Starting from v6.3, use setFileAttachmentWithURL: instead.");;
86+
+ (void)setFileAttachment:(NSString *)fileLocation DEPRECATED_MSG_ATTRIBUTE("Starting from v6.3, use setFileAttachmentWithURL: instead.");
8787

8888
/**
8989
@brief Attaches a file to each report being sent.
@@ -121,38 +121,6 @@ NS_ASSUME_NONNULL_BEGIN
121121
*/
122122
+ (void)setUserStepsEnabled:(BOOL)isUserStepsEnabled;
123123

124-
/**
125-
@brief Sets whether to log network requests or not.
126-
127-
@discussion When enabled, Instabug will automtically log all network requests and responses. Logs are attached to
128-
each report being sent and are available on your Instabug dashboard.
129-
130-
Networking logging is enabled by default if it's available in your current plan.
131-
132-
@param isNetworkLoggingEnabled A boolean to set network logging to be enabled to disabled.
133-
*/
134-
+ (void)setNetworkLoggingEnabled:(BOOL)isNetworkLoggingEnabled;
135-
136-
/**
137-
@brief Specify an NSPredicate to be used to omit certain requests from being logged.
138-
139-
@discussion Predicate will be matched against an `NSURLRequest`. This can be used to filter out requests to a specific
140-
domain for example.
141-
142-
@param filterPredicate An NSPredicate to match against an NSURLRequest. Matching requests will be omitted.
143-
*/
144-
+ (void)setNetworkLoggingFilterPredicate:(NSPredicate *)filterPredicate;
145-
146-
/**
147-
@brief Enable logging for network requests and responses on a custom NSURLSessionConfiguration.
148-
149-
@discussion Logging for network requests and responses may not work if you're using a custom `NSURLSession` object.
150-
If this is the case, call this method passing in your custom NSURLSessions's configuration to enable logging for it.
151-
152-
@param URLSessionConfiguration The NSURLSessionConfiguration of your custom NSURLSession.
153-
*/
154-
+ (void)enableLoggingForURLSessionConfiguration:(NSURLSessionConfiguration *)URLSessionConfiguration;
155-
156124
/**
157125
@brief Sets whether to track and report crashes or not.
158126
@@ -704,9 +672,7 @@ NS_ASSUME_NONNULL_BEGIN
704672
*/
705673
+ (void)didReceiveRemoteNotification:(NSDictionary *)userInfo;
706674

707-
/// -------------
708-
/// @name Logging
709-
/// -------------
675+
#pragma mark - IBGLog
710676

711677
/**
712678
@brief Adds custom logs that will be sent with each report.
@@ -811,5 +777,85 @@ OBJC_EXTERN void IBGLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
811777
*/
812778
+ (void)logError:(NSString *)log;
813779

780+
#pragma mark - Network Logging
781+
782+
/**
783+
@brief Sets whether to log network requests or not.
784+
785+
@discussion When enabled, Instabug will automtically log all network requests and responses. Logs are attached to
786+
each report being sent and are available on your Instabug dashboard.
787+
788+
Networking logging is enabled by default if it's available in your current plan.
789+
790+
@param isNetworkLoggingEnabled A boolean to set network logging to be enabled to disabled.
791+
*/
792+
+ (void)setNetworkLoggingEnabled:(BOOL)isNetworkLoggingEnabled;
793+
794+
/**
795+
@brief Specify an NSPredicate to be used to omit certain requests from being logged.
796+
797+
@deprecated Use `setNetworkLoggingRequestFilterPredicate:responseFilterPredicate:` instead.
798+
799+
@discussion Predicate will be matched against an `NSURLRequest`. This can be used to filter out requests to a specific
800+
domain for example.
801+
802+
@param filterPredicate An NSPredicate to match against an NSURLRequest. Matching requests will be omitted.
803+
*/
804+
+ (void)setNetworkLoggingFilterPredicate:(NSPredicate *)filterPredicate DEPRECATED_MSG_ATTRIBUTE("Use setNetworkLoggingRequestFilterPredicate:responseFilterPredicate: instead.");
805+
806+
/**
807+
@brief Specify NSPredicates to be used to omit certain network requests from being logged based on their request or
808+
response objects.
809+
810+
@discussion `requestFilterPredicate` will be matched against an `NSURLRequest`. It can be used to filter out requests
811+
to a specific domain for example.
812+
813+
`responseFilterPredicate` will be matched against an `NSHTTPURLResponse`. It can be used to filter out responses that
814+
match specific status codes.
815+
816+
If both predicates are specified, `requestFilterPredicate` is evaluated first, if it matches, the request is omitted
817+
from logging without evaluating `responseFilterPredicate`.
818+
819+
@param requestFilterPredicate An NSPredicate to match against an NSURLRequest. Matching requests will be omitted.
820+
@param responseFilterPredicate An NSPredicate to match against an NSHTTPURLResponse. Matching responses will be omitted.
821+
*/
822+
+ (void)setNetworkLoggingRequestFilterPredicate:(nullable NSPredicate *)requestFilterPredicate responseFilterPredicate:(nullable NSPredicate *)responseFilterPredicate;
823+
824+
/**
825+
@brief Enable logging for network requests and responses on a custom NSURLSessionConfiguration.
826+
827+
@discussion Logging for network requests and responses may not work if you're using a custom `NSURLSession` object.
828+
If this is the case, call this method passing in your custom NSURLSessions's configuration to enable logging for it.
829+
830+
@param URLSessionConfiguration The NSURLSessionConfiguration of your custom NSURLSession.
831+
*/
832+
+ (void)enableLoggingForURLSessionConfiguration:(NSURLSessionConfiguration *)URLSessionConfiguration;
833+
834+
/**
835+
@brief Set HTTP body of a POST request to be included in network logs.
836+
837+
@discussion Due to a bug in Foundation, it's not possible to retrieve the body of POST requests automatically. Use
838+
this method to include the body of your POST requests in network logs.
839+
840+
If you'd like to exclude or obfuscate user sensitive data in the request body, this is also the place to do it.
841+
842+
@param body Body data of a POST request.
843+
@param request The POST request that is being sent.
844+
*/
845+
+ (void)logHTTPBody:(NSData *)body forRequest:(NSMutableURLRequest *)request;
846+
847+
/**
848+
@brief Use to obfuscate a URL that's going to be included in network logs.
849+
850+
@discussion Use this method if you make requests that include user sensitive data in the URL (like authentication tokens
851+
for example), and you'd like to hide those from your network logs.
852+
853+
The provided block will be called for every request. You should do whatever processing you need to do on the URL inside
854+
that block, then return a URL to be included in network logs.
855+
856+
@param obfuscationHandler A block that obfuscates the passed URL and returns it.
857+
*/
858+
+ (void)setNetworkLoggingURLObfuscationHandler:(nonnull NSURL * (^)(NSURL * _Nonnull url))obfuscationHandler;
859+
814860
@end
815861
NS_ASSUME_NONNULL_END

Instabug.framework/Info.plist

266 Bytes
Binary file not shown.

Instabug.framework/Instabug

7.41 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.

0 commit comments

Comments
 (0)