Skip to content

Commit b2ced57

Browse files
author
Distiller
committed
v8.0
1 parent af520d3 commit b2ced57

Some content is hidden

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

50 files changed

+2616
-1261
lines changed

919F90F2-4B53-3EC7-AC50-E89C676C9359.bcsymbolmap renamed to 6BAC9C2F-5503-32B1-BCB0-A1490F7EB32C.bcsymbolmap

Lines changed: 291 additions & 194 deletions
Large diffs are not rendered by default.

1AE52C9F-D7D1-378B-AD06-FBFB0DBBE444.bcsymbolmap renamed to 8882E4C9-059E-3BFD-918A-A68E34D80091.bcsymbolmap

Lines changed: 486 additions & 277 deletions
Large diffs are not rendered by default.

F3770B41-8EBA-3BE9-B932-ECA2D59AF797.bcsymbolmap renamed to 9BF80298-363D-383D-A1C1-30882A4427B6.bcsymbolmap

Lines changed: 486 additions & 277 deletions
Large diffs are not rendered by default.

6E2FD672-1CB2-3B61-ADA3-92C013768693.bcsymbolmap renamed to E33FC0BF-FB2B-3439-8573-EB0DDCBAE2B7.bcsymbolmap

Lines changed: 291 additions & 194 deletions
Large diffs are not rendered by default.

Instabug.framework.dSYM/Contents/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<key>CFBundleSignature</key>
1414
<string>????</string>
1515
<key>CFBundleShortVersionString</key>
16-
<string>7.14.5</string>
16+
<string>8.0</string>
1717
<key>CFBundleVersion</key>
18-
<string>16564</string>
18+
<string>16733</string>
1919
</dict>
2020
</plist>
Binary file not shown.
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
//
2+
// IBGBugReporting.h
3+
// InstabugBugReporting
4+
//
5+
// Created by Yousef Hamza on 5/17/18.
6+
// Copyright © 2018 Moataz. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import <InstabugCore/InstabugCore.h>
11+
#import <InstabugCore/IBGTypes.h>
12+
13+
NS_SWIFT_NAME(BugReporting)
14+
@interface IBGBugReporting : NSObject
15+
16+
/**
17+
@brief Sets a block of code to be executed just before the SDK's UI is presented.
18+
19+
@discussion This block is executed on the UI thread. Could be used for performing any UI changes before the SDK's UI
20+
is shown.
21+
*/
22+
@property(class, atomic, strong) void(^willInvokeHandler)(void);
23+
24+
/**
25+
@brief Sets a block of code to be executed right after the SDK's UI is dismissed.
26+
27+
@discussion This block is executed on the UI thread. Could be used for performing any UI changes after the SDK's UI
28+
is dismissed.
29+
30+
The block has the following parameters:
31+
32+
- dismissType: How the SDK was dismissed.
33+
- reportType: Type of report that has been sent. Will be set to IBGReportTypeBug in case the SDK has been dismissed
34+
without selecting a report type, so you might need to check dismissType before reportType.
35+
36+
@see IBGReportType, IBGDismissType
37+
*/
38+
@property(class, atomic, strong) void(^didDismissHandler)(IBGDismissType dismissType, IBGReportType reportType);
39+
40+
/**
41+
@brief Sets a block of code to be executed when a prompt option is selected
42+
43+
@param didSelectPromptOptionHandler A block of code that gets executed when a prompt option is selected.
44+
45+
The block has the following parameters:
46+
- prompOption: The option selected in prompt.
47+
*/
48+
@property(class, atomic, strong) void(^didSelectPromptOptionHandler)(IBGPromptOption promptOption);
49+
50+
/**
51+
@brief Sets the events that invoke the feedback form.
52+
53+
@discussion Default is set by `startWithToken:invocationEvent:`.
54+
55+
@see IBGInvocationEvent
56+
*/
57+
@property(class, atomic, assign) IBGInvocationEvent invocationEvents;
58+
59+
/**
60+
@brief Sets the threshold value of the shake gesture for iPhone/iPod Touch
61+
62+
@discussion Default for iPhone is 2.5.
63+
*/
64+
@property(class, atomic, assign) CGFloat shakingThresholdForiPhone;
65+
66+
/**
67+
@brief Sets the threshold value of the shake gesture for iPad.
68+
69+
@discussion Default for iPad is 0.6.
70+
*/
71+
@property(class, atomic, assign) CGFloat shakingThresholdForiPad;
72+
73+
/**
74+
@brief Sets the default edge at which the floating button will be shown. Different orientations are already handled.
75+
76+
@discussion Default for `floatingButtonEdge` is `CGRectMaxXEdge`.
77+
*/
78+
@property(class, atomic, assign) CGRectEdge floatingButtonEdge;
79+
80+
/**
81+
@brief Sets the default offset from the top at which the floating button will be shown.
82+
83+
@discussion Default for `floatingButtonOffsetFromTop` is 50
84+
*/
85+
@property(class, atomic, assign) CGFloat floatingButtonTopOffset;
86+
87+
/**
88+
@brief Sets whether attachments in bug reporting and in-app messaging are enabled.
89+
*/
90+
@property(class, atomic, assign) IBGAttachmentType enabledAttachmentTypes;
91+
92+
/**
93+
@brief Enables/disables prompt options when SDK is invoked.
94+
95+
@discussion When only a single option is enabled, it become the default invocation mode.
96+
If all options are disabled, bug reporting becomes the default invocation mode.
97+
98+
By default, all three options are enabled.
99+
*/
100+
@property(class, atomic, assign) IBGPromptOption promptOptions;
101+
102+
/**
103+
@brief Sets whether the extended bug report mode should be disabled, enabled with required fields or enabled with optional fields.
104+
105+
@discussion This feature is disabled by default. When enabled, it adds more fields for your reporters to fill in. You can set whether the extra fields are required or optional.
106+
1. Expected Results.
107+
2. Actual Results.
108+
3. Steps to Reproduce.
109+
110+
An enum to disable the extended bug report mode, enable it with required or with optional fields.
111+
*/
112+
@property(class, atomic, assign) IBGExtendedBugReportMode extendedBugReportMode;
113+
114+
@property(class, atomic, assign) IBGBugReportingInvocationOption invocationOptions;
115+
116+
/**
117+
@brief Sets the welcome message mode to live, beta or disabled.
118+
119+
@discussion By default, the welcome message live mode is enabled. It appears automatically after 10 seconds from the user's first session. You can change it to the beta mode or disable it.
120+
The live mode consists of one step to inform the users how to report a bug or feedback. The beta mode consists of three steps to welcome your testers on board, inform them how to report a bug or feedback and to motivate them to always be on the latest app version. Please note, the into message appears only if the invocation event isn't set to none.
121+
*/
122+
@property (class, atomic, assign) IBGWelcomeMessageMode welcomeMessageMode;
123+
124+
/**
125+
@brief Invokes the SDK manually with the default invocation mode.
126+
127+
@discussion Shows a view that asks the user whether they want to start a chat, report a problem or suggest an improvement.
128+
*/
129+
+ (void)invoke;
130+
131+
/**
132+
@brief Invokes the SDK with a specific mode.
133+
134+
@discussion Invokes the SDK and show a specific view with specified options, instead of showing a prompt for users to choose from.
135+
136+
@see IBGInvocationMode
137+
@see IBGBugReportingInvocationOption
138+
*/
139+
+ (void)invokeWithMode:(IBGInvocationMode)invocationMode options:(IBGBugReportingInvocationOption)options;
140+
141+
/**
142+
@brief Dismisses any Instabug views that are currently being shown.
143+
*/
144+
+ (void)dismiss;
145+
146+
/**
147+
@brief Shows the welcome message in a specific mode.
148+
149+
@discussion By default, the welcome message live mode is enabled. It appears automatically after 10 seconds from the user's first session. You can show it manually in a specific mode through this API.
150+
The live mode consists of one step to inform the users how to report a bug or feedback. The beta mode consists of three steps to welcome your testers on board, inform them how to report a bug or feedback and to motivate them to always be on the latest app version. Please note, the into message appears only if the invocation event isn't set to none.
151+
152+
@param welcomeMessageMode An enum to set the welcome message mode to live, beta or disabled.
153+
*/
154+
+ (void)showWelcomeMessageWithMode:(IBGWelcomeMessageMode)welcomeMessageMode;
155+
156+
157+
@end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
//
2+
// IBGCrashReporting.h
3+
// InstabugCrashReporting
4+
//
5+
// Created by Yousef Hamza on 5/17/18.
6+
// Copyright © 2018 Moataz. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_SWIFT_NAME(CrashReporting)
12+
@interface IBGCrashReporting : NSObject
13+
14+
@property (class, atomic, assign) BOOL enabled;
15+
16+
/**
17+
@brief Report an exception manually.
18+
19+
@param exception Exception to be reported.
20+
*/
21+
+ (void)reportException:(NSException *)exception;
22+
23+
/**
24+
@brief Report an error manually.
25+
26+
@param error error to be reported.
27+
*/
28+
+ (void)reportError:(NSError *)error;
29+
30+
@end
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// IBGFeatureRequests.h
3+
// Instabug
4+
//
5+
// Created by Yousef Hamza on 5/17/18.
6+
// Copyright © 2018 Moataz. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import <InstabugCore/InstabugCore.h>
11+
12+
NS_SWIFT_NAME(FeatureRequests)
13+
@interface IBGFeatureRequests : NSObject
14+
/**
15+
@brief Sets whether users are required to enter an email address or not when doing a certain action `IBGAction`.
16+
17+
@discussion Defaults to YES.
18+
19+
@param isEmailFieldRequired A boolean to indicate whether email field is required or not.
20+
@param actionType An enum that indicates which action types will have the isEmailFieldRequired.
21+
*/
22+
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired forAction:(IBGAction)actionType;
23+
24+
/**
25+
@brief Shows the UI for feature requests list
26+
*/
27+
+ (void)show;
28+
29+
@end

Instabug.framework/Headers/IBGLog.h

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
//
2+
// IBGLog.h
3+
// InstabugI
4+
//
5+
// Created by Yousef Hamza on 5/17/18.
6+
// Copyright © 2018 Moataz. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import <InstabugCore/InstabugCore.h>
11+
12+
@interface IBGLog : NSObject
13+
14+
@property (class, atomic, assign) BOOL printsToConsole;
15+
16+
/**
17+
@brief Adds custom logs that will be sent with each report. Logs are added with the debug log level.
18+
19+
@param log Message to be logged.
20+
*/
21+
+ (void)log:(NSString *)log;
22+
23+
/**
24+
@brief Adds custom logs with the verbose log level. Logs will be sent with each report.
25+
26+
@param log Message to be logged.
27+
*/
28+
+ (void)logVerbose:(NSString *)log;
29+
30+
/**
31+
@brief Adds custom logs with the debug log level. Logs will be sent with each report.
32+
33+
@param log Message to be logged.
34+
*/
35+
+ (void)logDebug:(NSString *)log;
36+
37+
/**
38+
@brief Adds custom logs with the info log level. Logs will be sent with each report.
39+
40+
@param log Message to be logged.
41+
*/
42+
+ (void)logInfo:(NSString *)log;
43+
44+
/**
45+
@brief Adds custom logs with the warn log level. Logs will be sent with each report.
46+
47+
@param log Message to be logged.
48+
*/
49+
+ (void)logWarn:(NSString *)log;
50+
51+
/**
52+
@brief Adds custom logs with the error log level. Logs will be sent with each report.
53+
54+
@param log Message to be logged.
55+
*/
56+
+ (void)logError:(NSString *)log;
57+
58+
/**
59+
@brief Clear all Logs.
60+
61+
@discussion Clear all Instabug logs, console logs, network logs and user steps.
62+
63+
*/
64+
+ (void)clearAllLogs;
65+
66+
/**
67+
@brief Adds custom logs that will be sent with each report.
68+
69+
@discussion Can be used in a similar fashion to NSLog. Logs are added with the debug log level.
70+
For usage in Swift, see `Instabug.ibgLog()`.
71+
72+
@param format Format string.
73+
@param ... Optional varargs arguments.
74+
*/
75+
OBJC_EXTERN void InstabugLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
76+
77+
/**
78+
@brief Adds custom logs with the verbose log level. Logs will be sent with each report.
79+
80+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logVerbose()`.
81+
82+
@param format Format string.
83+
@param ... Optional varargs arguments.
84+
*/
85+
OBJC_EXTERN void IBGLogVerbose(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
86+
87+
/**
88+
@brief Adds custom logs with the debug log level. Logs will be sent with each report.
89+
90+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logDebug()`.
91+
92+
@param format Format string.
93+
@param ... Optional varargs arguments.
94+
*/
95+
OBJC_EXTERN void IBGLogDebug(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
96+
97+
/**
98+
@brief Adds custom logs with the info log level. Logs will be sent with each report.
99+
100+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logInfo()`.
101+
102+
@param format Format string.
103+
@param ... Optional varargs arguments.
104+
*/
105+
OBJC_EXTERN void IBGLogInfo(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
106+
107+
/**
108+
@brief Adds custom logs with the warn log level. Logs will be sent with each report.
109+
110+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logWarn()`.
111+
112+
@param format Format string.
113+
@param ... Optional varargs arguments.
114+
*/
115+
OBJC_EXTERN void IBGLogWarn(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
116+
117+
/**
118+
@brief Adds custom logs with the error log level. Logs will be sent with each report.
119+
120+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logError()`.
121+
122+
@param format Format string.
123+
@param ... Optional varargs arguments.
124+
*/
125+
OBJC_EXTERN void IBGLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2) ;
126+
127+
/**
128+
@brief Used to reroute all your NSLogs to Instabug to be able to automatically include them with reports.
129+
130+
@discussion For details on how to reroute your NSLogs to Instabug, see http://docs.instabug.com/docs/logging
131+
132+
@param format Format string.
133+
@param args Arguments list.
134+
*/
135+
OBJC_EXTERN void IBGNSLog(NSString *format, va_list args);
136+
137+
/**
138+
@brief Used to reroute all your NSLogs to Instabug with their log level to be able to automatically include them with reports.
139+
140+
@discussion For details on how to reroute your NSLogs to Instabug, see https://docs.instabug.com/docs/ios-logging
141+
142+
@param format Format string.
143+
@param args Arguments list.
144+
@param logLevel log level.
145+
*/
146+
OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel logLevel);
147+
148+
@end

0 commit comments

Comments
 (0)