Skip to content

Commit 79c36f0

Browse files
authored
🤝 Merge pull request #5 from Instabug/feature/1.11_release
Feature/1.11 release
2 parents 0ff8c96 + 74fc704 commit 79c36f0

Some content is hidden

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

57 files changed

+349
-149
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ android {
2121
}
2222

2323
dependencies {
24-
compile 'com.instabug.library:instabug:4.12.1'
24+
compile 'com.instabug.library:instabug:4.13.1'
2525
compile 'com.android.support:multidex:1.0.0'
2626
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-cordova",
3-
"version": "1.9.1",
3+
"version": "1.11.0",
44
"description": "The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interfacing with the SDK through JavaScript.",
55
"main": "index.js",
66
"repository": {

src/android/IBGPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public class IBGPlugin extends CordovaPlugin {
5656
"enablePushNotifications",
5757
"enableIntroDialog",
5858
"enableUserData",
59-
"colorTheme"
59+
"colorTheme",
60+
"enableSessionProfiler"
6061
};
6162

6263
// Generic error message

src/android/IBGPluginActivity.java

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void setShakingThreshold(String threshold) {
8383
* String representation of edge
8484
*/
8585
private void setFloatingButtonEdge(String edge) {
86-
86+
8787
}
8888

8989
/**
@@ -93,7 +93,7 @@ private void setFloatingButtonEdge(String edge) {
9393
* String representation of int offset
9494
*/
9595
private void setFloatingButtonOffset(String offset) {
96-
96+
9797
}
9898

9999
/**
@@ -119,7 +119,7 @@ private void setDebugEnabled(String enabled) {
119119
* String representation of boolean enabled
120120
*/
121121
private void setConsoleLogsEnabled(String enabled) {
122-
122+
123123
}
124124

125125
/**
@@ -131,7 +131,7 @@ private void setConsoleLogsEnabled(String enabled) {
131131
* String representation of boolean enabled
132132
*/
133133
private void setInstabugLogsEnabled(String enabled) {
134-
134+
135135
}
136136

137137
/**
@@ -143,7 +143,7 @@ private void setInstabugLogsEnabled(String enabled) {
143143
* String representation of boolean enabled
144144
*/
145145
private void setTrackingUserStepsEnabled(String enabled) {
146-
146+
147147
}
148148

149149
/**
@@ -155,7 +155,7 @@ private void setTrackingUserStepsEnabled(String enabled) {
155155
* String representation of boolean enabled
156156
*/
157157
private void setCrashReportingEnabled(String enabled) {
158-
158+
159159
}
160160

161161
/**
@@ -167,7 +167,7 @@ private void setCrashReportingEnabled(String enabled) {
167167
* String representation of boolean enabled
168168
*/
169169
private void setInAppMessagingEnabled(String enabled) {
170-
170+
171171
}
172172

173173
/**
@@ -193,7 +193,7 @@ private void setConversationSoundsEnabled(String enabled) {
193193
* String representation of boolean enabled
194194
*/
195195
private void setPushNotificationsEnabled(String enabled) {
196-
196+
197197
}
198198

199199
/**
@@ -218,7 +218,25 @@ private void setIntroDialogEnabled(String enabled) {
218218
* String representation of boolean enabled
219219
*/
220220
private void setUserDataEnabled(String enabled) {
221-
221+
222+
}
223+
224+
/**
225+
* Convenience method for parsing and setting
226+
* whether session profiler should be enabled or not.
227+
*
228+
* @param enabled
229+
* String representation of boolean enabled
230+
*/
231+
private void setSessionProfilerEnabled(String enabled) {
232+
if (enabled != null && enabled.length() > 0) {
233+
if(Boolean.parseBoolean(enabled)) {
234+
Instabug.setSessionProfilerState(Feature.State.ENABLED);
235+
} else {
236+
Instabug.setSessionProfilerState(Feature.State.DISABLED);
237+
}
238+
239+
}
222240
}
223241

224242
/**
@@ -260,5 +278,6 @@ private void setBuilderOptions(Bundle opts) {
260278
setIntroDialogEnabled(opts.getString("enableIntroDialog"));
261279
setUserDataEnabled(opts.getString("enableUserData"));
262280
setColorTheme(opts.getString("colorTheme"));
281+
setSessionProfilerEnabled(opts.getString("enableSessionProfiler"));
263282
}
264283
}

src/ios/IBGPlugin.m

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,20 @@ - (void) setIntroDialogEnabled:(NSString*)enabled
640640
}
641641
}
642642

643+
/**
644+
* Convenience method for setting whether to enable the
645+
* session profiler or not.
646+
*
647+
* @param {NSString*} enabled
648+
* NSString representation of boolean enabled
649+
*/
650+
- (void) setSessionProfilerEnabled:(NSString*)enabled
651+
{
652+
if ([enabled length] > 0) {
653+
[Instabug setSessionProfilerEnabled:[enabled boolValue]];
654+
}
655+
}
656+
643657
/**
644658
* Convenience method for setting the color theme of
645659
* the SDK invocation.
@@ -723,6 +737,7 @@ - (void) applyOptions:(NSDictionary*)options
723737
[self setTrackingUserStepsEnabled:[[options objectForKey:@"enableTrackingUserSteps"] stringValue]];
724738
[self setPushNotificationsEnabled:[[options objectForKey:@"enablePushNotifications"] stringValue]];
725739
[self setIntroDialogEnabled:[[options objectForKey:@"enableIntroDialog"] stringValue]];
740+
[self setSessionProfilerEnabled:[[options objectForKey:@"enableSessionProfiler"] stringValue]];
726741
[self setColorTheme:[options objectForKey:@"colorTheme"]];
727742
}
728743

src/ios/Instabug.framework/Headers/Instabug.h

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.11.2
8+
Version: 7.12.2
99
*/
1010

1111
#import <Foundation/Foundation.h>
@@ -161,6 +161,22 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
161161
*/
162162
+ (void)setUserStepsEnabled:(BOOL)isUserStepsEnabled;
163163

164+
/**
165+
@brief Sets whether the session profiler is enabled or disabled.
166+
167+
@discussion The session profiler is enabled by default and it attaches to the bug and crash reports the following information during the last 60 seconds before the report is sent.
168+
1. CPU load.
169+
2. Dispatch queues latency.
170+
3. Memory usage.
171+
4. Storage usage.
172+
5. Connectivity.
173+
6. Battery percentage and state.
174+
7. Orientation.
175+
176+
@param sessionProfilerEnabled A boolean parameter to enable or disable the feature.
177+
*/
178+
+ (void)setSessionProfilerEnabled:(BOOL)sessionProfilerEnabled;
179+
164180
/**
165181
@brief Sets whether the SDK is recording the screen or not.
166182
@@ -444,12 +460,14 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
444460

445461
/**
446462
@brief Sets whether users are required to enter an email address or not when sending reports.
463+
464+
@deprecated Use setEmailFieldRequired:forAction: instead.
447465
448466
@discussion Defaults to YES.
449467
450468
@param isEmailFieldRequired A boolean to indicate whether email field is required or not.
451469
*/
452-
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired;
470+
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired DEPRECATED_MSG_ATTRIBUTE("Use setEmailFieldRequired:forAction: instead");
453471

454472
/**
455473
@brief Sets whether users are required to enter a comment or not when sending reports.
@@ -769,6 +787,16 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
769787
*/
770788
+ (void)setViewHierarchyEnabled:(BOOL)viewHierarchyEnabled;
771789

790+
/**
791+
@brief Sets whether users are required to enter an email address or not when doing a certain action `IBGActionType`.
792+
793+
@discussion Defaults to YES.
794+
795+
@param isEmailFieldRequired A boolean to indicate whether email field is required or not.
796+
@param actionType An enum that indicates which action types will have the isEmailFieldRequired.
797+
*/
798+
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired forAction:(IBGActionType)actionType;
799+
772800
/// -------------------
773801
/// @name SDK Reporting
774802
/// -------------------
@@ -1237,6 +1265,18 @@ OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel l
12371265
*/
12381266
+ (void)setThresholdForReshowingSurveyAfterDismiss:(NSInteger)sessionCount daysCount:(NSInteger)daysCount;
12391267

1268+
#pragma mark - Feature Requests
1269+
/// ------------------------
1270+
/// @name Feature Requests
1271+
/// ------------------------
1272+
1273+
/**
1274+
@brief Shows the UI for feature requests list
1275+
*/
1276+
+ (void)showFeatureRequests;
1277+
1278+
#pragma mark - SDK Debugging
1279+
12401280
/// ------------------------
12411281
/// @name SDK Debugging
12421282
/// ------------------------

src/ios/Instabug.framework/Info.plist

0 Bytes
Binary file not shown.

src/ios/Instabug.framework/Instabug

6.25 MB
Binary file not shown.

src/ios/Instabug.framework/_CodeSignature/CodeResources

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<dict>
77
<key>Headers/Instabug.h</key>
88
<data>
9-
cPStZRHftpl8keEtrsFPAjs84QM=
9+
XDnWikGFRQ5xwAV0kCorplk1cM4=
1010
</data>
1111
<key>Info.plist</key>
1212
<data>
13-
1eXWHXKrrtqRe4qY2lZPamKmzio=
13+
PpETNUvcYiBew0OfmP2j/Ibj//Q=
1414
</data>
1515
<key>Modules/module.modulemap</key>
1616
<data>
@@ -23,11 +23,11 @@
2323
<dict>
2424
<key>hash</key>
2525
<data>
26-
cPStZRHftpl8keEtrsFPAjs84QM=
26+
XDnWikGFRQ5xwAV0kCorplk1cM4=
2727
</data>
2828
<key>hash2</key>
2929
<data>
30-
obPoSnbr/IMM9YSKOfz8g6c75Hc6ydOs9ruaSkspFxA=
30+
TKuVjgAmDsMC3GkVsXYlJZabb1cCne+zgcEdz+tgm7M=
3131
</data>
3232
</dict>
3333
<key>Modules/module.modulemap</key>

src/ios/InstabugCore.framework/Headers/IBGTypes.h

Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.11.2
8+
Version: 7.12.2
99
*/
1010

1111
#import <UIKit/UIKit.h>
@@ -70,6 +70,50 @@ extern NSString * const kIBGLowDiskStorageMessage;
7070
extern NSString * const kIBGInboundByLineMessage;
7171
extern NSString * const kIBGExtraFieldIsRequiredText;
7272
extern NSString * const kIBGExtraFieldMissingDataText;
73+
extern NSString * const kIBGFeatureRequestsTitle;
74+
extern NSString * const kIBGFeatureDetailsTitle;
75+
extern NSString * const kIBGStringFeatureRequestsRefreshText;
76+
extern NSString * const kIBGFeatureRequestErrorStateTitleLabel;
77+
extern NSString * const kIBGFeatureRequestErrorStateDescriptionLabel;
78+
extern NSString * const kIBGFeatureRequestSortingByRecentlyUpdatedText;
79+
extern NSString * const kIBGFeatureRequestSortingByTopVotesText;
80+
extern NSString * const kIBGStringFeatureRequestAllFeaturesText;
81+
extern NSString * const kIBGAddNewFeatureRequestText;
82+
extern NSString * const kIBGAddNewFeatureRequestToastText;
83+
extern NSString * const kIBGAddNewFeatureRequestErrorToastText;
84+
extern NSString * const kIBGAddNewFeatureRequestLoadingHUDTitle;
85+
extern NSString * const kIBGAddNewFeatureRequestSuccessHUDTitle;
86+
extern NSString * const kIBGAddNewFeatureRequestSuccessHUDMessage;
87+
extern NSString * const kIBGAddNewFeatureRequestTryAgainText;
88+
extern NSString * const kIBGAddNewFeatureRequestCancelPromptTitle;
89+
extern NSString * const kIBGAddNewFeatureRequestCancelPromptYesAction;
90+
extern NSString * const kIBGFeatureRequestInvalidEmailText;
91+
extern NSString * const kIBGFeatureRequestTimelineEmptyText;
92+
extern NSString * const kIBGFeatureRequestTimelineErrorDescriptionLabel;
93+
extern NSString * const kIBGFeatureRequestStatusChangeText;
94+
extern NSString * const kIBGFeatureRequestAddButtonText;
95+
extern NSString * const kIBGFeatureRequestVoteWithCountText;
96+
extern NSString * const kIBGFeatureRequestVoteText;
97+
extern NSString * const kIBGFeatureRequestPostButtonText;
98+
extern NSString * const kIBGFeatureRequestCommentsText;
99+
extern NSString * const kIBGFeatureRequestAuthorText;
100+
extern NSString * const kIBGFeatureRequestEmptyViewTitle;
101+
extern NSString * const kIBGFeatureRequestAddYourIdeaText;
102+
extern NSString * const kIBGFeatureRequestAnonymousText;
103+
extern NSString * const kIBGFeatureRequestStatusPosted;
104+
extern NSString * const kIBGFeatureRequestStatusPlanned;
105+
extern NSString * const kIBGFeatureRequestStatusStarted;
106+
extern NSString * const kIBGFeatureRequestStatusCompleted;
107+
extern NSString * const kIBGFeatureRequestStatusMaybeLater;
108+
extern NSString * const kIBGFeatureRequestStatusMoreText;
109+
extern NSString * const kIBGFeatureRequestStatusLessText;
110+
extern NSString * const kIBGFeatureRequestAddYourThoughtsText;
111+
extern NSString * const kIBGEmailRequiredText;
112+
extern NSString * const kIBGNameText;
113+
extern NSString * const kIBGEmailText;
114+
extern NSString * const kIBGTitleText;
115+
extern NSString * const kIBGDescriptionText;
116+
extern NSString * const kIBGStringFeatureRequestMyFeaturesText;
73117
extern NSString * const kIBGSurveyIntroTitleText;
74118
extern NSString * const kIBGSurveyIntroDescriptionText;
75119
extern NSString * const kIBGSurveyIntroTakeSurveyButtonText;
@@ -265,6 +309,50 @@ typedef NS_ENUM(NSInteger, IBGString) {
265309
IBGStringLowDiskStorageMessage,
266310
IBGStringExtraFieldIsRequiredText,
267311
IBGStringExtraFieldMissingDataText,
312+
IBGStringFeatureRequestsTitle,
313+
IBGStringFeatureDetailsTitle,
314+
IBGStringFeatureRequestsRefreshText,
315+
IBGStringFeatureRequestSortingByRecentlyUpdatedText,
316+
IBGStringFeatureRequestSortingByTopVotesText,
317+
IBGStringFeatureRequestErrorStateTitleText,
318+
IBGStringFeatureRequestErrorStateDescriptionText,
319+
IBGStringFeatureRequestAllFeaturesText,
320+
IBGStringFeatureRequestMyFeaturesText,
321+
IBGStringAddNewFeatureRequestText,
322+
IBGStringAddNewFeatureRequestToastText,
323+
IBGStringAddNewFeatureRequestErrorToastText,
324+
IBGStringAddNewFeatureRequestLoadingHUDTitle,
325+
IBGStringAddNewFeatureRequestSuccessHUDTitle,
326+
IBGStringAddNewFeatureRequestSuccessHUDMessage,
327+
IBGStringAddNewFeatureRequestTryAgainText,
328+
IBGStringAddNewFeatureRequestCancelPromptTitle,
329+
IBGStringAddNewFeatureRequestCancelPromptYesAction,
330+
IBGStringFeatureRequestInvalidEmailText,
331+
IBGStringFeatureRequestStatusChangeText,
332+
IBGStringFeatureRequestAddButtonText,
333+
IBGStringFeatureRequestVoteWithCountText,
334+
IBGStringFeatureRequestVoteText,
335+
IBGStringFeatureRequestPostButtonText,
336+
IBGStringFeatureRequestCommentsText,
337+
IBGStringFeatureRequestAuthorText,
338+
IBGStringFeatureRequestEmptyViewTitle,
339+
IBGStringFeatureRequestAddYourIdeaText,
340+
IBGStringFeatureRequestAnonymousText,
341+
IBGStringFeatureRequestStatusPosted,
342+
IBGStringFeatureRequestStatusPlanned,
343+
IBGStringFeatureRequestStatusStarted,
344+
IBGStringFeatureRequestStatusCompleted,
345+
IBGStringFeatureRequestStatusMaybeLater,
346+
IBGFeatureRequestTimelineEmptyCommentText,
347+
IBGFeatureRequestTimelineErrorDescriptionText,
348+
IBGStringFeatureRequestStatusMoreText,
349+
IBGStringFeatureRequestStatusLessText,
350+
IBGStringFeatureRequestAddYourThoughtsText,
351+
IBGStringEmailRequiredText,
352+
IBGStringNameText,
353+
IBGStringEmailText,
354+
IBGStringTitleText,
355+
IBGStringDescriptionText,
268356
IBGStringSurveyIntroTitleText,
269357
IBGStringSurveyIntroDescriptionText,
270358
IBGStringSurveyIntroTakeSurveyButtonText,
@@ -336,6 +424,13 @@ typedef NS_ENUM(NSInteger, IBGExtendedBugReportMode) {
336424
IBGExtendedBugReportModeDisabled
337425
};
338426

427+
typedef enum : NSUInteger {
428+
IBGActionAllActions = 1 << 0,
429+
IBGActionReportBug = 1 << 1,
430+
IBGActionRequestNewFeature = 1 << 2,
431+
IBGActionAddCommentToFeature = 1 << 3,
432+
} IBGActionType;
433+
339434
@interface UIView (Instabug)
340435

341436
/**

0 commit comments

Comments
 (0)