Skip to content

Commit 743c677

Browse files
committed
⬆️ Upgrade iOS frameworks for public APIs
1 parent 0962271 commit 743c677

26 files changed

+324
-49
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 "IBGReport.h"
12+
13+
@interface IBGBugReporting : NSObject
14+
15+
@property(class, atomic, strong) void(^willInvokeHandler)(void);
16+
@property(class, atomic, strong) void(^didDismissHandler)(IBGDismissType dismissType, IBGReportType reportType);
17+
@property(class, atomic, strong) void(^willSendReportHandler)(IBGReport *report);
18+
@property(class, atomic, strong) void(^didSelectPromptOptionHandler)(IBGPromptOption promptOption);
19+
20+
@property(class, atomic, assign) BOOL introMessageEnabled;
21+
@property(class, atomic, assign) IBGInvocationEvent invocationEvents;
22+
@property(class, atomic, assign) CGFloat shakingThresholdForiPhone;
23+
@property(class, atomic, assign) CGFloat shakingThresholdForiPad;
24+
@property(class, atomic, assign) CGRectEdge floatingButtonEdge;
25+
@property(class, atomic, assign) CGFloat floatingButtonTopOffset;
26+
@property(class, atomic, assign) IBGAttachmentType enabledAttachmentTypes;
27+
@property(class, atomic, assign) IBGPromptOption promptOptions;
28+
@property(class, atomic, assign) IBGExtendedBugReportMode extendedBugReportMode;
29+
30+
/**
31+
@brief Invokes the SDK manually with the default invocation mode.
32+
33+
@discussion Shows a view that asks the user whether they want to start a chat, report a problem or suggest an improvement.
34+
*/
35+
+ (void)invoke;
36+
37+
+ (void)invokeWithOptions:(IBGBugReportingInvocationOption)options;
38+
39+
/**
40+
@brief Dismisses any Instabug views that are currently being shown.
41+
*/
42+
+ (void)dismiss;
43+
44+
/**
45+
@brief Present a view that educates the user on how to invoke the SDK with the currently set invocation event.
46+
47+
@discussion Does nothing if invocation event is set to anything other than IBGInvocationEventShake or IBGInvocationEventScreenshot.
48+
*/
49+
+ (void)showIntroMessage;
50+
51+
52+
@end
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
@interface IBGCrashReporting : NSObject
12+
13+
@property (class, atomic, assign) BOOL enabled;
14+
15+
/**
16+
@brief Report an exception manually.
17+
18+
@param exception Exception to be reported.
19+
*/
20+
+ (void)reportException:(NSException *)exception;
21+
22+
/**
23+
@brief Report an error manually.
24+
25+
@param error error to be reported.
26+
*/
27+
+ (void)reportError:(NSError *)error;
28+
29+
@end
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
@interface IBGFeatureRequests : NSObject
13+
/**
14+
@brief Sets whether users are required to enter an email address or not when doing a certain action `IBGActionType`.
15+
16+
@discussion Defaults to YES.
17+
18+
@param isEmailFieldRequired A boolean to indicate whether email field is required or not.
19+
@param actionType An enum that indicates which action types will have the isEmailFieldRequired.
20+
*/
21+
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired forAction:(IBGActionType)actionType;
22+
23+
/**
24+
@brief Shows the UI for feature requests list
25+
*/
26+
+ (void)show;
27+
28+
@end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
+ (void)log;
17+
+ (void)logVerbose;
18+
+ (void)logError;
19+
+ (void)logInfo;
20+
+ (void)logWarn;
21+
22+
@end
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
//
2+
// IBGSurveys.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+
11+
@class IBGSurvey;
12+
13+
@interface IBGSurveys : NSObject
14+
15+
@property (class, atomic, assign) BOOL enabled;
16+
@property (class, atomic, assign) BOOL autoShowingEnabled;
17+
@property (class, atomic, readonly, strong) NSArray<IBGSurvey *> *availableSurveys;
18+
@property (class, atomic, strong) void(^willShowSurveyHandler)(void);
19+
@property (class, atomic, strong) void(^didDismissSurveyHandler)(void);
20+
21+
/**
22+
@brief Shows one of the surveys that were not shown before, that also have conditions that match the current device/user.
23+
24+
@discussion Does nothing if there are no available surveys.
25+
*/
26+
+ (void)showSurveyIfAvailable;
27+
28+
/**
29+
@brief Shows Survey with a specific token.
30+
31+
@discussion Does nothing if there are no available surveys with that specific token. Answered and canceled surveys won't show up again.
32+
33+
@param surveyToken A String with a survey token.
34+
*/
35+
+ (void)showSurveyWithToken:(NSString *)surveyToken;
36+
37+
38+
/**
39+
@brief Sets a threshold for numbers of sessions and another for number of days required before a survey, that has been dismissed once, would show again.
40+
41+
@discussion When a survey that has been shown to the user gets dismissed once, it will not reappear to the user unless a certain number of sessions have started AND a certain number of days have passed since the user first dismissed the survey. Note that if a survey is dismissed for a second time, it will not show again, in other words, it will be set to `canceled`. This applies to both surveys with and without tokens.
42+
43+
@param sessionCount : Number of sessions required to be initialized before a dismissed survey can be shown again.
44+
@param daysCount : Number of days required to pass before a dismissed survey can be shown again.
45+
*/
46+
+ (void)setThresholdForReshowingSurveyAfterDismiss:(NSInteger)sessionCount daysCount:(NSInteger)daysCount;
47+
48+
/**
49+
@brief Returns true if the survey with a specific token was answered before .
50+
51+
@discussion Will return false if the token does not exist or if the survey was not answered before.
52+
53+
@param surveyToken A String with a survey token.
54+
*/
55+
+ (BOOL)hasRespondedToSurveyWithToken:(NSString *)surveyToken;
56+
57+
58+
@end

ios/Instabug.framework/Info.plist

0 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

149 KB
Binary file not shown.

ios/Instabug.framework/_CodeSignature/CodeResources

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,33 @@
44
<dict>
55
<key>files</key>
66
<dict>
7+
<key>Headers/IBGBugReporting.h</key>
8+
<data>
9+
2926sVAfW+2MERpX9ircCil4hys=
10+
</data>
11+
<key>Headers/IBGCrashReporting.h</key>
12+
<data>
13+
7Km6B5Ur0hFDq5p5w5fReL7uyAo=
14+
</data>
15+
<key>Headers/IBGFeatureRequests.h</key>
16+
<data>
17+
cWSecdpjbXkNEs++zHkqddpVEjs=
18+
</data>
19+
<key>Headers/IBGLog.h</key>
20+
<data>
21+
Kc1f+SU7t7+HYYk7+Emo3VL+Yuo=
22+
</data>
23+
<key>Headers/IBGSurveys.h</key>
24+
<data>
25+
AHqWnjL/N1PqP8lRqOZmw3E/PuM=
26+
</data>
727
<key>Headers/Instabug.h</key>
828
<data>
929
LHkO7JX4Jl8NY9ARKTJkWW8uFcY=
1030
</data>
1131
<key>Info.plist</key>
1232
<data>
13-
xP32eQS6UDAG+qlWM0PaXUkv7mQ=
33+
1kF1qM3o6ccJMHvGZeARJas6WJ8=
1434
</data>
1535
<key>Modules/module.modulemap</key>
1636
<data>
@@ -19,6 +39,61 @@
1939
</dict>
2040
<key>files2</key>
2141
<dict>
42+
<key>Headers/IBGBugReporting.h</key>
43+
<dict>
44+
<key>hash</key>
45+
<data>
46+
2926sVAfW+2MERpX9ircCil4hys=
47+
</data>
48+
<key>hash2</key>
49+
<data>
50+
U8K9qedPo6RgqABXvwOok7fRkXI3/nz6ZxnqB4kTvTE=
51+
</data>
52+
</dict>
53+
<key>Headers/IBGCrashReporting.h</key>
54+
<dict>
55+
<key>hash</key>
56+
<data>
57+
7Km6B5Ur0hFDq5p5w5fReL7uyAo=
58+
</data>
59+
<key>hash2</key>
60+
<data>
61+
ZzaTAjp+7DZeFVXr05GZU/ZEFmABCKBL2KZxnBKeJQE=
62+
</data>
63+
</dict>
64+
<key>Headers/IBGFeatureRequests.h</key>
65+
<dict>
66+
<key>hash</key>
67+
<data>
68+
cWSecdpjbXkNEs++zHkqddpVEjs=
69+
</data>
70+
<key>hash2</key>
71+
<data>
72+
5CA1vYiwpAacH8mBddNaVNWG4/J83QDmQvWY+bWIxqo=
73+
</data>
74+
</dict>
75+
<key>Headers/IBGLog.h</key>
76+
<dict>
77+
<key>hash</key>
78+
<data>
79+
Kc1f+SU7t7+HYYk7+Emo3VL+Yuo=
80+
</data>
81+
<key>hash2</key>
82+
<data>
83+
Mg4Avvwt8lVVV9XgaGpygRqHaWf+Yw/81yecyzTZHLw=
84+
</data>
85+
</dict>
86+
<key>Headers/IBGSurveys.h</key>
87+
<dict>
88+
<key>hash</key>
89+
<data>
90+
AHqWnjL/N1PqP8lRqOZmw3E/PuM=
91+
</data>
92+
<key>hash2</key>
93+
<data>
94+
VbucOg90Fk5t94u1Y2/19SAiQ/42VXLby/Nn01GOiLw=
95+
</data>
96+
</dict>
2297
<key>Headers/Instabug.h</key>
2398
<dict>
2499
<key>hash</key>

ios/InstabugCore.framework/Headers/IBGTypes.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,17 @@ typedef NS_ENUM(NSInteger, IBGInvocationMode) {
174174
IBGInvocationModeChatsList
175175
};
176176

177+
typedef NS_OPTIONS(NSInteger, IBGBugReportingInvocationOption) {
178+
IBGBugReportingInvocationOptionNewBug,
179+
IBGBugReportingInvocationOptionNewFeedback,
180+
IBGBugReportingInvocationOptionNewChat,
181+
IBGBugReportingInvocationOptionChatsList,
182+
IBGBugReportingInvocationOptionEmailFieldHidden,
183+
IBGBugReportingInvocationOptionEmailFieldOptional,
184+
IBGBugReportingInvocationOptionCommentFieldRequired,
185+
IBGBugReportingInvocationOptionDisablePostSendingDialog,
186+
};
187+
177188
/**
178189
Type of report to be submitted.
179190
*/
Binary file not shown.

0 commit comments

Comments
 (0)