Skip to content

Commit 6a39209

Browse files
committed
⬆️ Upgrade native iOS SDK version to 8.0.1
1 parent 3e1d6fc commit 6a39209

File tree

68 files changed

+881
-462
lines changed

Some content is hidden

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

68 files changed

+881
-462
lines changed

ios/Instabug.framework/Headers/IBGBugReporting.h

Lines changed: 112 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,150 @@
88

99
#import <Foundation/Foundation.h>
1010
#import <InstabugCore/InstabugCore.h>
11-
#import "IBGReport.h"
11+
#import <InstabugCore/IBGTypes.h>
1212

13+
NS_SWIFT_NAME(BugReporting)
1314
@interface IBGBugReporting : NSObject
1415

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+
*/
1522
@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+
*/
1638
@property(class, atomic, strong) void(^didDismissHandler)(IBGDismissType dismissType, IBGReportType reportType);
17-
@property(class, atomic, strong) void(^willSendReportHandler)(IBGReport *report);
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+
*/
1848
@property(class, atomic, strong) void(^didSelectPromptOptionHandler)(IBGPromptOption promptOption);
1949

20-
@property(class, atomic, assign) BOOL introMessageEnabled;
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+
*/
2157
@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+
*/
2264
@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+
*/
2371
@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+
*/
2478
@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+
*/
2585
@property(class, atomic, assign) CGFloat floatingButtonTopOffset;
86+
87+
/**
88+
@brief Sets whether attachments in bug reporting and in-app messaging are enabled.
89+
*/
2690
@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+
*/
27100
@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+
*/
28112
@property(class, atomic, assign) IBGExtendedBugReportMode extendedBugReportMode;
29113

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+
30124
/**
31125
@brief Invokes the SDK manually with the default invocation mode.
32126
33127
@discussion Shows a view that asks the user whether they want to start a chat, report a problem or suggest an improvement.
34128
*/
35129
+ (void)invoke;
36130

37-
+ (void)invokeWithOptions:(IBGBugReportingInvocationOption)options;
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;
38140

39141
/**
40142
@brief Dismisses any Instabug views that are currently being shown.
41143
*/
42144
+ (void)dismiss;
43145

44146
/**
45-
@brief Present a view that educates the user on how to invoke the SDK with the currently set invocation event.
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.
46151
47-
@discussion Does nothing if invocation event is set to anything other than IBGInvocationEventShake or IBGInvocationEventScreenshot.
152+
@param welcomeMessageMode An enum to set the welcome message mode to live, beta or disabled.
48153
*/
49-
+ (void)showIntroMessage;
154+
+ (void)showWelcomeMessageWithMode:(IBGWelcomeMessageMode)welcomeMessageMode;
50155

51156

52157
@end

ios/Instabug.framework/Headers/IBGCrashReporting.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#import <Foundation/Foundation.h>
1010

11+
NS_SWIFT_NAME(CrashReporting)
1112
@interface IBGCrashReporting : NSObject
1213

1314
@property (class, atomic, assign) BOOL enabled;

ios/Instabug.framework/Headers/IBGFeatureRequests.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
#import <Foundation/Foundation.h>
1010
#import <InstabugCore/InstabugCore.h>
1111

12+
NS_SWIFT_NAME(FeatureRequests)
1213
@interface IBGFeatureRequests : NSObject
1314
/**
14-
@brief Sets whether users are required to enter an email address or not when doing a certain action `IBGActionType`.
15+
@brief Sets whether users are required to enter an email address or not when doing a certain action `IBGAction`.
1516
1617
@discussion Defaults to YES.
1718
1819
@param isEmailFieldRequired A boolean to indicate whether email field is required or not.
1920
@param actionType An enum that indicates which action types will have the isEmailFieldRequired.
2021
*/
21-
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired forAction:(IBGActionType)actionType;
22+
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired forAction:(IBGAction)actionType;
2223

2324
/**
2425
@brief Shows the UI for feature requests list

ios/Instabug.framework/Headers/IBGLog.h

Lines changed: 131 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,136 @@
1313

1414
@property (class, atomic, assign) BOOL printsToConsole;
1515

16-
+ (void)log;
17-
+ (void)logVerbose;
18-
+ (void)logError;
19-
+ (void)logInfo;
20-
+ (void)logWarn;
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);
21147

22148
@end
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// IBGSurvey.h
3+
// InstabugSurveys
4+
//
5+
// Created by Yousef Hamza on 5/25/18.
6+
// Copyright © 2018 Moataz. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
@interface IBGSurvey : NSObject
12+
13+
@property (nonatomic, readonly) NSString *title;
14+
15+
- (void)show;
16+
17+
@end

0 commit comments

Comments
 (0)