5
5
6
6
Copyright: (c) 2013-2016 by Instabug, Inc., all rights reserved.
7
7
8
- Version: 6.2.1
8
+ Version: 6.3
9
9
*/
10
10
11
11
#import < Foundation/Foundation.h>
@@ -72,13 +72,32 @@ NS_ASSUME_NONNULL_BEGIN
72
72
/* *
73
73
@brief Attaches a file to each report being sent.
74
74
75
- @discussion A new copy of the file at fileLocation will be attached with each bug report being sent.
76
- Each call to this method overrides the file to be attached.
77
- The file has to be available locally at the provided path.
75
+ @deprecated Starting from v6.3, use `setFileAttachmentWithURL:` instead.
76
+
77
+ @discussion A new copy of the file at fileURL will be attached with each bug report being sent. The file is only copied
78
+ at the time of sending the report, so you could safely call this API whenever the file is available on disk, and the copy
79
+ attached to your bug reports will always contain that latest changes at the time of sending the report.
80
+
81
+ Each call to this method overrides the file to be attached, and the file has to be available locally at the provided
82
+ path when the report is being sent.
78
83
79
84
@param fileLocation Path to a file that's going to be attached to each report.
80
85
*/
81
- + (void )setFileAttachment : (NSString *)fileLocation ;
86
+ + (void )setFileAttachment : (NSString *)fileLocation DEPRECATED_MSG_ATTRIBUTE(" Starting from v6.3, use setFileAttachmentWithURL: instead." );;
87
+
88
+ /* *
89
+ @brief Attaches a file to each report being sent.
90
+
91
+ @discussion A new copy of the file at fileURL will be attached with each bug report being sent. The file is only copied
92
+ at the time of sending the report, so you could safely call this API whenever the file is available on disk, and the copy
93
+ attached to your bug reports will always contain that latest changes at the time of sending the report.
94
+
95
+ Each call to this method overrides the file to be attached, and the file has to be available locally at the provided
96
+ path when the report is being sent.
97
+
98
+ @param fileURL Path to a file that's going to be attached to each report.
99
+ */
100
+ + (void )setFileAttachmentWithURL : (NSURL *)fileURL ;
82
101
83
102
/* *
84
103
@brief Attaches user data to each report being sent.
@@ -102,6 +121,38 @@ NS_ASSUME_NONNULL_BEGIN
102
121
*/
103
122
+ (void )setUserStepsEnabled : (BOOL )isUserStepsEnabled ;
104
123
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
+
105
156
/* *
106
157
@brief Sets whether to track and report crashes or not.
107
158
0 commit comments