Skip to content

Commit f891215

Browse files
author
Distiller
committed
v8.1
1 parent 2a78a72 commit f891215

File tree

58 files changed

+2477
-2362
lines changed

Some content is hidden

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

58 files changed

+2477
-2362
lines changed

5CC7750C-8ECC-3A83-A832-DFBCC0726565.bcsymbolmap renamed to FCAC9B8E-96AB-358C-B071-07EE5BF55805.bcsymbolmap

Lines changed: 1038 additions & 939 deletions
Large diffs are not rendered by default.

A2C5A148-6AE8-32DA-AD75-DC39231004CC.bcsymbolmap renamed to FD9DCBC7-3495-38BD-896B-9B811F15756C.bcsymbolmap

Lines changed: 1036 additions & 944 deletions
Large diffs are not rendered by default.

Instabug.framework.dSYM/Contents/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleSignature</key>
1414
<string>????</string>
1515
<key>CFBundleShortVersionString</key>
16-
<string>8.0.20</string>
16+
<string>8.1</string>
1717
<key>CFBundleVersion</key>
1818
<string>1</string>
1919
</dict>
Binary file not shown.

Instabug.framework/Headers/IBGBugReporting.h

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
NS_SWIFT_NAME(BugReporting)
1313
@interface IBGBugReporting : NSObject
1414

15+
/**
16+
@brief Acts as master switch for the Bug Reporting.
17+
18+
@discussion It's enabled by default. When disabled, both "Report a problem" and "Suggest an improvement" will be removed from Instabug Prompt Options. In addition, when disabled +showWithReportType:options: won’t have an effect.
19+
*/
20+
@property (class, atomic, assign) BOOL enabled;
21+
1522
/**
1623
@brief Sets a block of code to be executed just before the SDK's UI is presented.
1724
@@ -91,14 +98,11 @@ NS_SWIFT_NAME(BugReporting)
9198
@property(class, atomic, assign) IBGAttachmentType enabledAttachmentTypes;
9299

93100
/**
94-
@brief Enables/disables prompt options when SDK is invoked.
95-
96-
@discussion When only a single option is enabled, it become the default invocation mode.
97-
If all options are disabled, bug reporting becomes the default invocation mode.
101+
@brief Controls if Instabug Prompt Options should contain "Report a problem” and/or "Suggest an improvement" or not.
98102
99-
By default, all three options are enabled.
103+
@discussion By default, both options are enabled.
100104
*/
101-
@property(class, atomic, assign) IBGPromptOption promptOptions;
105+
@property(class, atomic, assign) IBGBugReportingReportType promptOptionsEnabledReportTypes;
102106

103107
/**
104108
@brief Sets whether the extended bug report mode should be disabled, enabled with required fields or enabled with optional fields.
@@ -114,11 +118,10 @@ NS_SWIFT_NAME(BugReporting)
114118

115119
/**
116120
@brief Use to specify different options that would affect how Instabug is shown and other aspects about the reporting experience.
117-
121+
118122
@discussion See IBGInvocationOptions.
119123
*/
120-
@property(class, atomic, assign) IBGBugReportingInvocationOption invocationOptions;
121-
124+
@property(class, atomic, assign) IBGBugReportingOption bugReportingOptions;
122125

123126
/**
124127
@brief Sets the default position at which the Instabug screen recording button will be shown. Different orientations are already handled.
@@ -128,26 +131,43 @@ NS_SWIFT_NAME(BugReporting)
128131
@property(class, atomic, assign) IBGPosition videoRecordingFloatingButtonPosition;
129132

130133
/**
131-
@brief Invokes the SDK manually with the default invocation mode.
134+
@method +showWithReportType:options:
135+
@brief Shows the compose view of a bug report or a feedback.
132136
133-
@discussion Shows a view that asks the user whether they want to start a chat, report a problem or suggest an improvement.
134-
*/
135-
+ (void)invoke;
136-
137-
/**
138-
@brief Invokes the SDK with a specific mode.
139-
140-
@discussion Invokes the SDK and show a specific view with specified options, instead of showing a prompt for users to choose from.
141-
142-
@see IBGInvocationMode
143-
@see IBGBugReportingInvocationOption
144-
*/
145-
+ (void)invokeWithMode:(IBGInvocationMode)invocationMode options:(IBGBugReportingInvocationOption)options;
137+
@see IBGBugReportingReportType
138+
@see IBGBugReportingOption
139+
*/
140+
+ (void)showWithReportType:(IBGBugReportingReportType)reportType
141+
options:(IBGBugReportingOption)options;
146142

147143
/**
148144
@brief Dismisses any Instabug views that are currently being shown.
149145
*/
150146
+ (void)dismiss;
151147

148+
/*
149+
+------------------------------------------------------------------------+
150+
| Deprecated APIs |
151+
+------------------------------------------------------------------------+
152+
| The following section includes all deprecated APIs. |
153+
| |
154+
| We've made a few changes to our APIs starting from version 8.0 to make |
155+
| them more intuitive and easily reachable. |
156+
| |
157+
| While the APIs below still function, they will be completely removed |
158+
| in a future release. |
159+
| |
160+
| To adopt the new changes, please refer to our migration guide at: |
161+
| https://docs.instabug.com/docs/ios-sdk-8-1-migration-guide |
162+
+------------------------------------------------------------------------+
163+
*/
164+
165+
+ (void)invoke DEPRECATED_MSG_ATTRIBUTE("See https://docs.instabug.com/docs/ios-sdk-8-1-migration-guide#section-invoke for instructions on migrating to SDK v8.1 APIs.");
166+
167+
+ (void)invokeWithMode:(IBGInvocationMode)invocationMode options:(IBGBugReportingInvocationOption)options DEPRECATED_MSG_ATTRIBUTE("See https://docs.instabug.com/docs/ios-sdk-8-1-migration-guide#section-invokewithmode for instructions on migrating to SDK v8.1 APIs.");
168+
169+
@property(class, atomic, assign) IBGPromptOption promptOptions DEPRECATED_MSG_ATTRIBUTE("See https://docs.instabug.com/docs/ios-sdk-8-1-migration-guide#section-promptoptions for instructions on migrating to SDK v8.1 APIs.");
170+
171+
@property(class, atomic, assign) IBGBugReportingInvocationOption invocationOptions DEPRECATED_MSG_ATTRIBUTE("See https://docs.instabug.com/docs/ios-sdk-8-1-migration-guide#section-invocationoptions for instructions on migrating to SDK v8.1 APIs.");
152172

153173
@end

Instabug.framework/Headers/IBGChats.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// IBGChats.h
3+
// InstabugChats
4+
//
5+
// Created by Hassaan El-Garem on 11/25/18.
6+
// Copyright © 2018 Moataz. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_SWIFT_NAME(Chats)
12+
@interface IBGChats : NSObject
13+
14+
/**
15+
@brief Acts as master switch for the In-app Chats.
16+
17+
@discussion It's enabled by default. When disabled, the user can't start a new chat from the SDK, the “Ask a question” option is removed from Instabug Prompt Options, and the compose button is removed from the chats list. In addition, when disabled +showWithChatsList: won’t have an effect.
18+
*/
19+
@property (class, atomic, assign) BOOL enabled;
20+
21+
/**
22+
@method +show:
23+
@brief Shows the compose new chat view.
24+
25+
@discussion In order to show the chats list, [IBGReplies show] should be used.
26+
*/
27+
+ (void)show;
28+
29+
@end

Instabug.framework/Headers/IBGFeatureRequests.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111

1212
NS_SWIFT_NAME(FeatureRequests)
1313
@interface IBGFeatureRequests : NSObject
14+
15+
/**
16+
@brief Acts as a master switch for the Feature Requests.
17+
18+
@discussion It's enabled by default. When disabled, all the functionalities related to the Feature Requests is disabled.
19+
*/
20+
@property (class, atomic, assign) BOOL enabled;
21+
1422
/**
1523
@brief Sets whether users are required to enter an email address or not when doing a certain action `IBGAction`.
1624
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
//
2+
// IBGReplies.h
3+
// InstabugChats
4+
//
5+
// Created by Hassaan El-Garem on 11/25/18.
6+
// Copyright © 2018 Moataz. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_SWIFT_NAME(Replies)
12+
@interface IBGReplies : NSObject
13+
14+
/**
15+
@brief Acts as a master switch for the In-app Replies.
16+
17+
@discussion It's enabled by default. When disabled, the user can’t reach the chats history from the SDK. The chats list button is removed from Instabug Prompt Options. In addition, when disabled the in-app notification as well as the push notifications are disabled. And, +show won’t have an effect.
18+
*/
19+
@property (class, atomic, assign) BOOL enabled;
20+
21+
/**
22+
@brief Sets a block of code that gets executed when a new message is received.
23+
*/
24+
@property (class, atomic, strong) void (^didReceiveReplyHandler)(void);
25+
26+
/**
27+
@brief Enables/disables showing in-app notifications when the user receives a new message.
28+
*/
29+
@property (class, atomic, assign) BOOL inAppNotificationsEnabled;
30+
31+
/**
32+
@brief Enables/disables the use of push notifications in the SDK.
33+
34+
@discussion In order to enable push notifications, implement
35+
`-[UIApplicationDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:]` and either
36+
`-[UIApplicationDelegate application:didReceiveRemoteNotification]` or
37+
`-[UIApplicationDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:]`.
38+
39+
Defaults to YES.
40+
*/
41+
@property (class, atomic, assign) BOOL pushNotificationsEnabled;
42+
43+
/**
44+
@brief Returns the number of unread messages the user currently has.
45+
46+
@discussion Use this method to get the number of unread messages the user has, then possibly notify them about it with
47+
your own UI.
48+
49+
@return Notifications count, or -1 incase the SDK has not been initialized.
50+
*/
51+
@property (class, atomic, assign, readonly) NSInteger unreadRepliesCount;
52+
53+
/**
54+
@method +show
55+
@brief Shows the chats list.
56+
57+
@discussion It shows the chats list only if the user has a chats history. Use +hasChats to know if a user has chats history or not. */
58+
+ (void)show;
59+
60+
/**
61+
@method +hasChats
62+
@brief To know if a user already has a chats history or not.
63+
64+
@discussion Use it before calling show.
65+
*/
66+
+ (BOOL)hasChats;
67+
68+
/**
69+
@brief Call this method and pass the notification's userInfo dictionary to allow Instabug to handle its remote notifications.
70+
71+
@discussion Instabug will check if notification is from Instabug's servers and only handle it if it is.
72+
You should call this method in -[UIApplicationDelegate application:didReceiveRemoteNotification:] and pass received userInfo
73+
dictionary, or `-[UIApplicationDelegate application:didFinishLaunchingWithOptions:]` and pass
74+
`[launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]`.
75+
76+
@param userInfo userInfo dictionary from `-[UIApplicationDelegate application:didReceiveRemoteNotification:]` or
77+
`[launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]` from
78+
`-[UIApplicationDelegate application:didFinishLaunchingWithOptions:]`.
79+
*/
80+
+ (BOOL)didReceiveRemoteNotification:(NSDictionary *)userInfo;
81+
82+
/**
83+
@brief Use this method to set Apple Push Notification token to enable receiving Instabug push notifications.
84+
85+
@discussion You should call this method after receiving token in
86+
`-[UIApplicationDelegate didRegisterForRemoteNotificationsWithDeviceToken:]` and pass received token.
87+
88+
@param deviceToken Device token received in `-[UIApplicationDelegate didRegisterForRemoteNotificationsWithDeviceToken:]`
89+
*/
90+
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
91+
92+
93+
@end

0 commit comments

Comments
 (0)