reactnative-plugin-appice 1.4.8 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/ios/AppICESDK/appICEBundle.bundle/APPChildViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfFooterNOTINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfHeaderINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/objects-11.0+.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/runtime.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/Info.plist +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/RatingViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/SurveyViewController.nib +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEHelper.h +18 -2
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEInboxMessage.h +3 -2
- package/ios/AppICESDK/include/iosAppiceSDK/appICE.h +7 -4
- package/ios/AppICESDK/include/iosAppiceSDK/appICEUserDetails.h +6 -5
- package/ios/AppICESDK/{libiosAppiceSDK_v1.7.37.a → libiosAppiceSDK_v1.7.46.a} +0 -0
- package/package.json +1 -1
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/BugfenderSDK +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Headers/BFUserFeedbackNavigationController.h +0 -51
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Headers/BFUserFeedbackViewController.h +0 -114
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Headers/BugfenderSDK.h +0 -388
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Modules/module.modulemap +0 -6
package/README.md
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
in app's build.gradle
|
|
5
5
|
implementation "com.google.firebase:firebase-messaging:23.0.6"
|
|
6
6
|
implementation "com.google.android.gms:play-services-location:21.0.1"
|
|
7
|
-
implementation 'com.gitlab.grp_appice.src_android_appice-sdk:sdk:2.5.
|
|
7
|
+
implementation 'com.gitlab.grp_appice.src_android_appice-sdk:sdk:2.5.47'
|
|
8
8
|
|
|
9
9
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
//
|
|
8
8
|
|
|
9
9
|
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
10
|
+
//#import "CallBack.h"
|
|
11
11
|
NS_ASSUME_NONNULL_BEGIN
|
|
12
12
|
|
|
13
13
|
@class appICEUserDetails;
|
|
14
14
|
|
|
15
15
|
@interface AppICEHelper : NSObject
|
|
16
16
|
|
|
17
|
+
|
|
17
18
|
+ (instancetype)sharedInstance;
|
|
18
19
|
//To start sdk
|
|
19
20
|
+(void)startContext;
|
|
@@ -62,7 +63,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
62
63
|
+ (void)pushNotificationClickedEvent:(NSString *)notificationData;
|
|
63
64
|
|
|
64
65
|
// for camp-received
|
|
65
|
-
|
|
66
|
+
- (void)handleAppICENotification:(NSString*)notificationData;
|
|
66
67
|
|
|
67
68
|
//## to check if push payload is for appice:
|
|
68
69
|
+(BOOL)isAppICENotification:(NSString *)userInfo;
|
|
@@ -72,6 +73,21 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
72
73
|
+(void) handleClickOnPush:(NSString *)data openDeepLink:(BOOL)openDeepLink;
|
|
73
74
|
|
|
74
75
|
+ (BOOL)isSilentPush:(NSString*) payload;
|
|
76
|
+
|
|
77
|
+
+(NSString*)getInboxMessages:(int)status userId:(NSArray*)userId key:(NSString*)key value:(NSString*)value;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
+(BOOL)updateInboxMessage:(int)status messageId:(NSString *)messageId userid:(NSString *)userId;
|
|
81
|
+
|
|
82
|
+
+(int)getMessageCount:(int)status userId:(NSArray*)userId key:(NSString*)key value:(NSString*)value;
|
|
83
|
+
|
|
84
|
+
+(NSString*)getInboxMessageForId :(NSString*)messageId userId:(NSArray *)userId;
|
|
85
|
+
|
|
86
|
+
//- (void)synchronizeInbox:(CallBack*)success timeoutinSec:(int)timeoutinSec;
|
|
87
|
+
//
|
|
88
|
+
//-(void)sendClickCallback:(CallBack*)callbackValue;
|
|
89
|
+
//+(void)invokeCallback:(NSDictionary*)userInfo;
|
|
90
|
+
- (void)pushNotificationReceived:(id _Nonnull)notificationData;
|
|
75
91
|
@end
|
|
76
92
|
|
|
77
93
|
NS_ASSUME_NONNULL_END
|
|
@@ -15,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
15
15
|
//extern const int ALL;
|
|
16
16
|
|
|
17
17
|
@property (strong, nonatomic) NSString *messageId;
|
|
18
|
+
@property (strong, nonatomic) NSString *messageMid;
|
|
18
19
|
@property (strong, nonatomic) NSString *messageImage;
|
|
19
20
|
@property (strong, nonatomic) NSString *messageBody;
|
|
20
21
|
@property (strong, nonatomic) NSString *messageTitle;
|
|
@@ -23,14 +24,14 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
23
24
|
@property (strong, nonatomic) NSString *messageCampid;
|
|
24
25
|
@property (strong, nonatomic) NSMutableDictionary *customData;
|
|
25
26
|
@property (nonatomic) double messageExpiryTime;
|
|
27
|
+
@property (strong, nonatomic) NSString *campType;
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
+(AppICEInboxMessage*)instanceFromDictionary:(NSDictionary *)aDictionary;
|
|
29
31
|
|
|
30
32
|
//- (void)setAttributesFromDictionary:(NSDictionary *)aDictionary;
|
|
31
33
|
- (void)setAttributesFromDictionary:(NSDictionary *)aDictionary :(AppICEInboxMessage*)instance;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
+(NSString*)toJson:(NSMutableArray*)inbox;
|
|
34
35
|
@end
|
|
35
36
|
|
|
36
37
|
|
|
@@ -59,12 +59,13 @@ typedef void (^AppICEInboxCallback)(AppICEInboxMessage *AppICEInboxMessage);
|
|
|
59
59
|
|
|
60
60
|
-(NSString*)getChildId:(NSString*) key;
|
|
61
61
|
|
|
62
|
-
// SET ALIAS FUNCTION
|
|
62
|
+
// SET ALIAS FUNCTION && will send to server only when baseUrl is not null through PutApp call
|
|
63
63
|
-(void) setAlias:(NSString*)value;
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
// SET CUSTOM VARIABLE
|
|
68
|
+
//will send to server only when baseUrl is not null through PutApp call
|
|
68
69
|
-(void) setCustomVariable:(NSString*) key withStringValue:(NSString*)value;
|
|
69
70
|
|
|
70
71
|
-(void) setCustomVariable:(NSString*) key withBoolValue:(BOOL)value;
|
|
@@ -77,7 +78,7 @@ typedef void (^AppICEInboxCallback)(AppICEInboxMessage *AppICEInboxMessage);
|
|
|
77
78
|
// GET CUSTOM VARIABLE
|
|
78
79
|
-(NSString*)getCustomVariable:(NSString*) key;
|
|
79
80
|
|
|
80
|
-
// REMOVE CUSTOM VARIABLE
|
|
81
|
+
// REMOVE CUSTOM VARIABLE && will send to server only when baseUrl is not null through PutApp call
|
|
81
82
|
-(void)removeCustomVariable:(NSString*) key;
|
|
82
83
|
|
|
83
84
|
// GET SDK VERSION
|
|
@@ -90,7 +91,7 @@ typedef void (^AppICEInboxCallback)(AppICEInboxMessage *AppICEInboxMessage);
|
|
|
90
91
|
// SET TIME OUT OF BACKGROUND TIMER
|
|
91
92
|
-(void) setSessionTimeout:(int) Timeout;
|
|
92
93
|
|
|
93
|
-
// Set User Detail
|
|
94
|
+
// Set User Detail && will send to server only when baseUrl is not null through PutApp call
|
|
94
95
|
-(void) setUserDetail:(appICEUserDetails*) userdetail;
|
|
95
96
|
|
|
96
97
|
//set multiple users id
|
|
@@ -144,7 +145,7 @@ typedef void (^AppICEInboxCallback)(AppICEInboxMessage *AppICEInboxMessage);
|
|
|
144
145
|
// Set device token
|
|
145
146
|
+(void) setTokenInPushNotification:(NSData*) appPushToken;
|
|
146
147
|
|
|
147
|
-
//get device Token and save it
|
|
148
|
+
//get device Token and save it and will send to server only when baseUrl is not null
|
|
148
149
|
+(void) deviceTokenForPushNotification:(NSString*) appPushTokenString;
|
|
149
150
|
|
|
150
151
|
//validating integration of sdk, returning bool value.
|
|
@@ -164,6 +165,8 @@ typedef void (^AppICEInboxCallback)(AppICEInboxMessage *AppICEInboxMessage);
|
|
|
164
165
|
- (NSString*)expandedPushURL:(NSDictionary*) payload;
|
|
165
166
|
- (NSString*)expandedPushData:(NSDictionary*) payload;
|
|
166
167
|
-(void)renderNotification:(NSNotification*)data;
|
|
168
|
+
|
|
169
|
+
// will send to server only when baseUrl is not null through PutApp call
|
|
167
170
|
-(void)setInitialise:(NSString*)urlString;
|
|
168
171
|
@end
|
|
169
172
|
|
|
@@ -25,20 +25,21 @@ extern NSString* const kCLYUserIsUserMarried;
|
|
|
25
25
|
extern NSString* const kCLYUserAge;
|
|
26
26
|
extern NSString* const kCLYUserPicture;
|
|
27
27
|
extern NSString* const kCLYUserPicturePath;
|
|
28
|
-
extern NSString* const kCLYUserBirthYear;
|
|
29
28
|
extern NSString* const kCLYUserCustom;
|
|
30
29
|
extern NSString* const kCLYAlias;
|
|
31
30
|
|
|
31
|
+
@property (nonatomic, assign) int age;
|
|
32
|
+
@property (nonatomic, assign) BOOL is_user_married;
|
|
33
|
+
@property (nonatomic, assign) BOOL is_user_employed;
|
|
34
|
+
@property (nonatomic, assign) long dob;
|
|
32
35
|
@property (strong, nonatomic) NSString *name;
|
|
33
36
|
@property (strong, nonatomic) NSString * email;
|
|
34
37
|
@property (strong, nonatomic) NSString * phone;
|
|
35
38
|
@property (strong, nonatomic) NSString * gender;
|
|
36
|
-
|
|
37
|
-
@property (strong, nonatomic) NSString * is_user_employed;
|
|
39
|
+
|
|
38
40
|
@property (strong, nonatomic) NSString * employment_type;
|
|
39
41
|
@property (strong, nonatomic) NSString * education_type;
|
|
40
|
-
|
|
41
|
-
@property (strong, nonatomic) NSString * age;
|
|
42
|
+
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
+(appICEUserDetails*)sharedUserDetails;
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// BFUserFeedbackViewController.h
|
|
3
|
-
// BugfenderSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Rubén Vázquez Otero on 15/10/2018.
|
|
6
|
-
// Copyright © 2018 Mobile Jazz. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
#import "BFUserFeedbackViewController.h"
|
|
11
|
-
|
|
12
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Navigation View Controller containing a BFUserFeedbackNavigationController as rootViewController
|
|
16
|
-
*/
|
|
17
|
-
@interface BFUserFeedbackNavigationController : UINavigationController
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Root View Controller containing a table with the textfields used to gather feedback
|
|
23
|
-
*/
|
|
24
|
-
@property (nonatomic, strong) BFUserFeedbackViewController *feedbackViewController;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
Provides a View Controller to gather the feedback of the users and sent it to Bugfender.
|
|
28
|
-
The returning BFUserFeedbackNavigationController has to be presented modally and it has it's own Send and Cancel buttons
|
|
29
|
-
|
|
30
|
-
Additionally, it is possible to customize the aspect of the screen accessing BFUserFeedbackNavigationController.feedbackViewController
|
|
31
|
-
|
|
32
|
-
@param title Title for the navigation bar
|
|
33
|
-
@param hint Short text at the beginning
|
|
34
|
-
@param subjectPlaceholder placeholder in the subject textfield
|
|
35
|
-
@param messagePlaceholder placeholder in the message textfield
|
|
36
|
-
@param sendButtonTitle title for the send button in the navigation bar
|
|
37
|
-
@param cancelButtonTitle title for the cancel button
|
|
38
|
-
@return BFUserFeedbackNavigationController containing a BFUserFeedbackViewController as root view controller
|
|
39
|
-
*/
|
|
40
|
-
+ (BFUserFeedbackNavigationController *)userFeedbackViewControllerWithTitle:(NSString *)title
|
|
41
|
-
hint:(NSString *)hint
|
|
42
|
-
subjectPlaceholder:(NSString *)subjectPlaceholder
|
|
43
|
-
messagePlaceholder:(NSString *)messagePlaceholder
|
|
44
|
-
sendButtonTitle:(NSString *)sendButtonTitle
|
|
45
|
-
cancelButtonTitle:(NSString *)cancelButtonTitle
|
|
46
|
-
completion:(void (^)(BOOL feedbackSent, NSURL * _Nullable url))completionBlock;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@end
|
|
50
|
-
|
|
51
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// BFUserFeedbackViewController.h
|
|
3
|
-
// BugfenderSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Rubén Vázquez Otero on 16/10/2018.
|
|
6
|
-
// Copyright © 2018 Mobile Jazz. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
|
|
11
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* BFUserFeedbackViewController provides a basic and configurable view controller to gather feedback from the users
|
|
15
|
-
*/
|
|
16
|
-
@interface BFUserFeedbackViewController : UITableViewController {
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
#pragma mark - Background colors
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
The background of the view controller
|
|
24
|
-
*/
|
|
25
|
-
@property (nonatomic, strong) UIColor *mainBackgroundColor;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
Background for textfields
|
|
29
|
-
*/
|
|
30
|
-
@property (nonatomic, strong) UIColor *secondaryBackgroundColor;
|
|
31
|
-
|
|
32
|
-
#pragma mark - Hint
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
The hint is the upper text in the view controller.
|
|
36
|
-
Use the hint give instructions to your users or just to thank them for providing feedback
|
|
37
|
-
*/
|
|
38
|
-
@property (nonatomic, strong) NSString *hint;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Font from the hint
|
|
42
|
-
*/
|
|
43
|
-
@property (nonatomic, strong) UIFont *hintFont;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Font color from the hint
|
|
47
|
-
*/
|
|
48
|
-
@property (nonatomic, strong) UIColor *hintFontColor;
|
|
49
|
-
|
|
50
|
-
#pragma mark - Subject
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
The subject of the feedback.
|
|
54
|
-
Remember to provide a placeholder
|
|
55
|
-
*/
|
|
56
|
-
@property (nonatomic, strong) UIFont *subjectFont;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Font color from the subject textfield
|
|
60
|
-
*/
|
|
61
|
-
@property (nonatomic, strong) UIColor *subjectFontColor;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Font color for the placeholder of the subject textfield
|
|
65
|
-
*/
|
|
66
|
-
@property (nonatomic, strong) UIColor *subjectPlaceholderFontColor;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Subject placeholder
|
|
70
|
-
*/
|
|
71
|
-
@property (nonatomic, strong) NSString *subjectPlaceholder;
|
|
72
|
-
|
|
73
|
-
#pragma mark - Message
|
|
74
|
-
/**
|
|
75
|
-
The message of the feedback
|
|
76
|
-
Remember to provide a placeholder
|
|
77
|
-
*/
|
|
78
|
-
@property (nonatomic, strong) UIFont *messageFont;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Message font color
|
|
82
|
-
*/
|
|
83
|
-
@property (nonatomic, strong) UIColor *messageFontColor;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Message placeholder font color
|
|
87
|
-
*/
|
|
88
|
-
@property (nonatomic, strong) UIColor *messagePlaceholderFontColor;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Message placeholder
|
|
92
|
-
*/
|
|
93
|
-
@property (nonatomic, strong) NSString *messagePlaceholder;
|
|
94
|
-
|
|
95
|
-
#pragma mark - Actions
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Hide view controller
|
|
99
|
-
*/
|
|
100
|
-
- (void)dismiss;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Send feedback to Bugfender
|
|
104
|
-
*/
|
|
105
|
-
- (void)sendFeedback;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
Pass a block if you want to be notified after feedback was sent (or not)
|
|
109
|
-
*/
|
|
110
|
-
@property (nonatomic, copy) void (^completionBlock)(BOOL feedbackSent, NSURL * _Nullable url);
|
|
111
|
-
|
|
112
|
-
@end
|
|
113
|
-
|
|
114
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// BugfenderSDK.h
|
|
3
|
-
// BugfenderSDK
|
|
4
|
-
// Copyright (c) 2014 Bugfender SL. All rights reserved.
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
#import <Foundation/Foundation.h>
|
|
8
|
-
#import "BFUserFeedbackNavigationController.h"
|
|
9
|
-
|
|
10
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
-
|
|
12
|
-
#define BFLibraryVersionNumber_0_1_0 0
|
|
13
|
-
#define BFLibraryVersionNumber_0_2_0 1
|
|
14
|
-
#define BFLibraryVersionNumber_0_2_1 2
|
|
15
|
-
#define BFLibraryVersionNumber_0_3_0 3
|
|
16
|
-
#define BFLibraryVersionNumber_0_3_1 4
|
|
17
|
-
#define BFLibraryVersionNumber_0_3_2 5
|
|
18
|
-
#define BFLibraryVersionNumber_0_3_3 6
|
|
19
|
-
#define BFLibraryVersionNumber_0_3_4 7
|
|
20
|
-
#define BFLibraryVersionNumber_0_3_5 8
|
|
21
|
-
#define BFLibraryVersionNumber_0_3_6 9
|
|
22
|
-
#define BFLibraryVersionNumber_0_3_7 10
|
|
23
|
-
#define BFLibraryVersionNumber_0_3_8 11
|
|
24
|
-
#define BFLibraryVersionNumber_0_3_9 12
|
|
25
|
-
#define BFLibraryVersionNumber_0_3_10 13
|
|
26
|
-
#define BFLibraryVersionNumber_0_3_11 14
|
|
27
|
-
#define BFLibraryVersionNumber_0_3_12 15
|
|
28
|
-
#define BFLibraryVersionNumber_0_3_13 16
|
|
29
|
-
#define BFLibraryVersionNumber_0_3_14 17
|
|
30
|
-
#define BFLibraryVersionNumber_0_3_15 18
|
|
31
|
-
#define BFLibraryVersionNumber_0_3_16 19
|
|
32
|
-
#define BFLibraryVersionNumber_0_3_17 20
|
|
33
|
-
#define BFLibraryVersionNumber_0_3_18 21
|
|
34
|
-
#define BFLibraryVersionNumber_0_3_19 22
|
|
35
|
-
#define BFLibraryVersionNumber_0_3_20 23
|
|
36
|
-
#define BFLibraryVersionNumber_0_3_21 24
|
|
37
|
-
#define BFLibraryVersionNumber_0_3_22 25
|
|
38
|
-
#define BFLibraryVersionNumber_0_3_23 26
|
|
39
|
-
#define BFLibraryVersionNumber_0_3_24 27
|
|
40
|
-
#define BFLibraryVersionNumber_0_3_25 28
|
|
41
|
-
#define BFLibraryVersionNumber_0_3_26 29
|
|
42
|
-
#define BFLibraryVersionNumber_0_3_27 30
|
|
43
|
-
#define BFLibraryVersionNumber_1_4_0 31
|
|
44
|
-
#define BFLibraryVersionNumber_1_4_1 32
|
|
45
|
-
#define BFLibraryVersionNumber_1_4_2 33
|
|
46
|
-
#define BFLibraryVersionNumber_1_4_3 34
|
|
47
|
-
#define BFLibraryVersionNumber_1_4_4 34 // Mistake: We released the version without incrementing the number.
|
|
48
|
-
#define BFLibraryVersionNumber_1_4_5 36
|
|
49
|
-
#define BFLibraryVersionNumber_1_4_6 37
|
|
50
|
-
#define BFLibraryVersionNumber_1_4_7 38
|
|
51
|
-
#define BFLibraryVersionNumber_1_4_8 39
|
|
52
|
-
#define BFLibraryVersionNumber_1_4_9 40
|
|
53
|
-
#define BFLibraryVersionNumber_1_4_10 41
|
|
54
|
-
#define BFLibraryVersionNumber_1_5_0 42
|
|
55
|
-
#define BFLibraryVersionNumber_1_5_1 43
|
|
56
|
-
#define BFLibraryVersionNumber_1_5_2 44
|
|
57
|
-
#define BFLibraryVersionNumber_1_5_3 45
|
|
58
|
-
#define BFLibraryVersionNumber_1_5_4 46
|
|
59
|
-
#define BFLibraryVersionNumber_1_5_5 47
|
|
60
|
-
#define BFLibraryVersionNumber_1_5_6 48
|
|
61
|
-
#define BFLibraryVersionNumber_1_6_0 49
|
|
62
|
-
#define BFLibraryVersionNumber_1_6_1 50
|
|
63
|
-
#define BFLibraryVersionNumber_1_6_2 51
|
|
64
|
-
#define BFLibraryVersionNumber_1_6_3 52
|
|
65
|
-
#define BFLibraryVersionNumber_1_6_4 53
|
|
66
|
-
#define BFLibraryVersionNumber_1_6_5 54
|
|
67
|
-
#define BFLibraryVersionNumber_1_6_6 55
|
|
68
|
-
#define BFLibraryVersionNumber_1_7_0 56
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Current Bugfender version number.
|
|
72
|
-
* @note This value can be compared with the defined macros BFLibraryVersionNumber_X_Y_Z.
|
|
73
|
-
**/
|
|
74
|
-
FOUNDATION_EXPORT double const BFLibraryVersionNumber;
|
|
75
|
-
|
|
76
|
-
/** Defines the level of a log */
|
|
77
|
-
typedef NS_ENUM(NSUInteger, BFLogLevel)
|
|
78
|
-
{
|
|
79
|
-
/** Default/info log level */
|
|
80
|
-
BFLogLevelDefault = 0,
|
|
81
|
-
/** Warning log level */
|
|
82
|
-
BFLogLevelWarning = 1,
|
|
83
|
-
/** Error log level */
|
|
84
|
-
BFLogLevelError = 2,
|
|
85
|
-
/** Trace log level */
|
|
86
|
-
BFLogLevelTrace = 3,
|
|
87
|
-
/** Info log level */
|
|
88
|
-
BFLogLevelInfo = 4,
|
|
89
|
-
/** Fatal log level */
|
|
90
|
-
BFLogLevelFatal = 5
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
#define BFLog(args, ...) BFLog2(BFLogLevelDefault, nil, args, ##__VA_ARGS__)
|
|
94
|
-
#define BFLogWarn(args, ...) BFLog2(BFLogLevelWarning, nil, args, ##__VA_ARGS__)
|
|
95
|
-
#define BFLogErr(args, ...) BFLog2(BFLogLevelError, nil, args, ##__VA_ARGS__)
|
|
96
|
-
#define BFLogTrace(args, ...) BFLog2(BFLogLevelTrace, nil, args, ##__VA_ARGS__)
|
|
97
|
-
#define BFLogInfo(args, ...) BFLog2(BFLogLevelInfo, nil, args, ##__VA_ARGS__)
|
|
98
|
-
#define BFLogFatal(args, ...) BFLog2(BFLogLevelFatal, nil, args, ##__VA_ARGS__)
|
|
99
|
-
|
|
100
|
-
#define BFLog2(logLevel, tagName, fmt, ...) \
|
|
101
|
-
[Bugfender logWithLineNumber:__LINE__ method:[NSString stringWithFormat:@"%s",__PRETTY_FUNCTION__] file:[[NSString stringWithFormat:@"%s",__FILE__] lastPathComponent] level:logLevel tag:tagName message:fmt == nil ? @"" : [NSString stringWithFormat:fmt, ##__VA_ARGS__]]
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Main Bugfender interface.
|
|
107
|
-
**/
|
|
108
|
-
@interface Bugfender : NSObject
|
|
109
|
-
|
|
110
|
-
/** ******************************************************************** **
|
|
111
|
-
* @name Configuration
|
|
112
|
-
** ******************************************************************** **/
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Sets the URL of the API
|
|
116
|
-
* @note Usage of this function is not necessary in the general use case. Please use exclusively when
|
|
117
|
-
* directed from technical support.
|
|
118
|
-
* @warning This method must be called before activateLogger.
|
|
119
|
-
* @param url URL of the API to use
|
|
120
|
-
*/
|
|
121
|
-
+ (void)setApiURL:(NSURL*)url;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Sets the URL of the Bugfender Dashboard
|
|
125
|
-
* @note Usage of this function is not necessary in the general use case. Please use exclusively when
|
|
126
|
-
* directed from technical support.
|
|
127
|
-
* @warning This method must be called before activateLogger.
|
|
128
|
-
* @param url base URL of the Bugfender's dashboard
|
|
129
|
-
*/
|
|
130
|
-
+ (void)setBaseURL:(NSURL*)url;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Activates the Bugfender logger for a specific app.
|
|
134
|
-
* @param appKey The app key of the Bugfender application, get it in bugfender.com
|
|
135
|
-
* @warning If Bugfender has already been initialized with a different app key `NSInvalidArgumentException` will be thrown.
|
|
136
|
-
* @note This method needs to be called before any `BFLog` call, otherwise they will be ignored.
|
|
137
|
-
**/
|
|
138
|
-
+ (void)activateLogger:(NSString*)appKey;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Returns the app key.
|
|
142
|
-
* @return The app key, or nil if Bugfender has not been initialized.
|
|
143
|
-
**/
|
|
144
|
-
+ (nullable NSString*)appKey;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Maximum space available to store local logs. This value is represented in bytes. Default value is 5242880 (1024*1024*5 = 5MB).
|
|
148
|
-
* @note If maximumLocalStorageSize is 0 (zero), then there is no limit and everything will be stored locally.
|
|
149
|
-
**/
|
|
150
|
-
+ (NSUInteger)maximumLocalStorageSize;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Set the maximum space available to store local logs. This value is represented in bytes. There's a limit of 50 MB.
|
|
154
|
-
* @param maximumLocalStorageSize Maximum space availalbe to store local logs, in bytes.
|
|
155
|
-
**/
|
|
156
|
-
+ (void)setMaximumLocalStorageSize:(NSUInteger)maximumLocalStorageSize;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Returns the device identifier used to identify the current device in the Bugfender website.
|
|
160
|
-
* The device identifier is constant while the application is installed in the device.
|
|
161
|
-
* @note This string can not be changed, but can be shown to the user or sent to your server, in order to
|
|
162
|
-
* keep a relationship between a Bugfender device and a user or some other important event in your application.
|
|
163
|
-
*
|
|
164
|
-
* @return A string identifying the device.
|
|
165
|
-
**/
|
|
166
|
-
+ (NSString*)deviceIdentifier __deprecated_msg("Use deviceIdentifierUrl instead.");
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Returns a URL linking to the current device in bugfender.
|
|
170
|
-
* The device identifier is constant while the application is installed in the device.
|
|
171
|
-
* @note This url can be sent to your server and used to create integrations with other services. Also can be stored to
|
|
172
|
-
* keep a relationship between a Bugfender device and a user or some other important event in your application.
|
|
173
|
-
*
|
|
174
|
-
* @return URL linking to the device in Bugfender
|
|
175
|
-
**/
|
|
176
|
-
+ (nullable NSURL *)deviceIdentifierUrl;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* The session identifier is constant while the application is running.
|
|
181
|
-
* @return A string identifying the current session.
|
|
182
|
-
*/
|
|
183
|
-
+ (nullable NSString *)sessionIdentifier __deprecated_msg("Use sessionIdentifierUrl instead.");
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
*
|
|
187
|
-
* The session identifier url is constant while the application is running.
|
|
188
|
-
* @note This url can be sent to your server and used to create integrations with other services.
|
|
189
|
-
* @return A URL linking to the current session in Bugfender.
|
|
190
|
-
*/
|
|
191
|
-
+ (nullable NSURL *)sessionIdentifierUrl;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Synchronizes all logs with the server all the time, regardless if this device is enabled or not.
|
|
195
|
-
* @note This method is useful when the logs should be sent to the server
|
|
196
|
-
* regardless if the device is enabled in the Bugfender Console.
|
|
197
|
-
*
|
|
198
|
-
* Logs are synchronized continuously while forceEnabled is active.
|
|
199
|
-
*
|
|
200
|
-
* This command can be called anytime, and will take effect the next time the device is online.
|
|
201
|
-
* @param enabled Whether logs should be sent regardless of the Bugfender Console settings.
|
|
202
|
-
*/
|
|
203
|
-
+(void) setForceEnabled:(BOOL)enabled;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Gets the status of forceEnabled.
|
|
207
|
-
* @see setForceEnabled
|
|
208
|
-
*/
|
|
209
|
-
+(BOOL) forceEnabled;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Prints messages to console for debugging purposes.
|
|
213
|
-
* @param enabled Whether printing to console is enabled or not. By default it is enabled.
|
|
214
|
-
*/
|
|
215
|
-
+(void) setPrintToConsole:(BOOL)enabled;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Gets the status of printToConsole. printToConsole prints messages to console. By default it is enabled.
|
|
219
|
-
*/
|
|
220
|
-
+(BOOL) printToConsole;
|
|
221
|
-
|
|
222
|
-
#if TARGET_OS_IOS
|
|
223
|
-
/**
|
|
224
|
-
* Logs all actions performed and screen changes in the application, such as button touches, swipes and gestures.
|
|
225
|
-
*/
|
|
226
|
-
+(void)enableUIEventLogging;
|
|
227
|
-
#endif
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Enable crash reporting tool functionality.
|
|
231
|
-
*/
|
|
232
|
-
+(void)enableCrashReporting;
|
|
233
|
-
|
|
234
|
-
/** ******************************************************************** **
|
|
235
|
-
* @name Device details
|
|
236
|
-
** ******************************************************************** **/
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Sets a device detail with boolean type.
|
|
240
|
-
* @note Similarly to an NSDictionary, where you can set key-value pairs
|
|
241
|
-
* related to a Bugfender device.
|
|
242
|
-
* @param b A boolean value.
|
|
243
|
-
* @param key Key.
|
|
244
|
-
*/
|
|
245
|
-
+(void)setDeviceBOOL:(BOOL)b forKey:(NSString*)key;
|
|
246
|
-
/**
|
|
247
|
-
* Sets a device detail with string type.
|
|
248
|
-
* @note Similarly to an NSDictionary, where you can set key-value pairs
|
|
249
|
-
* related to a Bugfender device.
|
|
250
|
-
* @param s A string value. The maximum length allowed is 192 bytes.
|
|
251
|
-
* @param key Key.
|
|
252
|
-
*/
|
|
253
|
-
+(void)setDeviceString:(NSString*)s forKey:(NSString*)key;
|
|
254
|
-
/**
|
|
255
|
-
* Sets a device detail with integer type.
|
|
256
|
-
* @note Similarly to an NSDictionary, where you can set key-value pairs
|
|
257
|
-
* related to a Bugfender device.
|
|
258
|
-
* @param i An UInt64 value.
|
|
259
|
-
* @param key Key.
|
|
260
|
-
*/
|
|
261
|
-
+(void)setDeviceInteger:(UInt64)i forKey:(NSString*)key;
|
|
262
|
-
/**
|
|
263
|
-
* Sets a device detail with double type.
|
|
264
|
-
* @note Similarly to an NSDictionary, where you can set key-value pairs
|
|
265
|
-
* related to a Bugfender device.
|
|
266
|
-
* @param d A double value.
|
|
267
|
-
* @param key Key.
|
|
268
|
-
*/
|
|
269
|
-
+(void)setDeviceDouble:(double)d forKey:(NSString*)key;
|
|
270
|
-
/**
|
|
271
|
-
* Removes a device detail.
|
|
272
|
-
* @note Similarly to an NSDictionary, where you can remove an existent key-value pair
|
|
273
|
-
* related to a Bugfender device by indicating its key.
|
|
274
|
-
* @param key Key.
|
|
275
|
-
*/
|
|
276
|
-
+(void)removeDeviceKey:(NSString*)key;
|
|
277
|
-
|
|
278
|
-
/** ******************************************************************** **
|
|
279
|
-
* @name Logging
|
|
280
|
-
** ******************************************************************** **/
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Bugfender extended interface for logging, which takes a simple string as log message.
|
|
284
|
-
* @note This command can be called anytime, and will take effect the next time the device is online.
|
|
285
|
-
* For efficiency, several log lines can be sent together to the server with some delay.
|
|
286
|
-
* @param lineNumber The line number of the log.
|
|
287
|
-
* @param method The method where the log has happened.
|
|
288
|
-
* @param file The file where the log has happened.
|
|
289
|
-
* @param level Log level.
|
|
290
|
-
* @param tag Tag to be applied to the log line.
|
|
291
|
-
* @param message Message to be logged. The message will be logged verbatim, no interpretation will be performed.
|
|
292
|
-
* @note In Swift, prefer to use bfprint() in order to get file name and line number filled in automatically. In Objective-C you can use the BFLog or BFLog2 macros.
|
|
293
|
-
**/
|
|
294
|
-
+ (void) logWithLineNumber:(NSInteger)lineNumber method:(NSString*)method file:(NSString*)file level:(BFLogLevel)level tag:(nullable NSString*)tag message:(NSString*)message NS_SWIFT_NAME(log(lineNumber:method:file:level:tag:message:));
|
|
295
|
-
|
|
296
|
-
/** ******************************************************************** **
|
|
297
|
-
* @name Commands
|
|
298
|
-
** ******************************************************************** **/
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Synchronizes all logs with the server once, regardless if this device is enabled or not.
|
|
302
|
-
* @note This method is useful when an error condition is detected and the logs should be sent to
|
|
303
|
-
* the server for analysis, regardless if the device is enabled in the Bugfender Console.
|
|
304
|
-
*
|
|
305
|
-
* Logs are synchronized only once. After that, the logs are again sent according to the enabled flag
|
|
306
|
-
* in the Bugfender Console.
|
|
307
|
-
*
|
|
308
|
-
* This command can be called anytime, and will take effect the next time the device is online.
|
|
309
|
-
*/
|
|
310
|
-
+ (void) forceSendOnce;
|
|
311
|
-
|
|
312
|
-
#pragma mark - Issues
|
|
313
|
-
/**
|
|
314
|
-
* Sends an issue
|
|
315
|
-
* @note Sending an issue forces the logs of the current session being sent
|
|
316
|
-
* to the server, and marks the session so that it is highlighted in the web console.
|
|
317
|
-
* @param title Short description of the issue.
|
|
318
|
-
* @param text Full details of the issue. Markdown format is accepted.
|
|
319
|
-
* @return the issue identifier
|
|
320
|
-
*/
|
|
321
|
-
+ (nullable NSString *)sendIssueWithTitle:(NSString *)title text:(NSString *)text __deprecated_msg("Use sendIssueReturningUrlWithTitle:text: instead.");
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Sends an issue
|
|
325
|
-
* @note Sending an issue forces the logs of the current session being sent
|
|
326
|
-
* to the server, and marks the session so that it is highlighted in the web console.
|
|
327
|
-
* @param title Short description of the issue.
|
|
328
|
-
* @param text Full details of the issue. Markdown format is accepted.
|
|
329
|
-
* @return an URL linking to the issue in Bugfender
|
|
330
|
-
*/
|
|
331
|
-
+ (nullable NSURL *)sendIssueReturningUrlWithTitle:(NSString *)title text:(NSString *)text;
|
|
332
|
-
|
|
333
|
-
#pragma mark - Crashes
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Sends a crash
|
|
337
|
-
* @note This method will send immediately a crash to the server
|
|
338
|
-
* it doesn't take into account if crash reporting is enabled or not
|
|
339
|
-
* @param title Short description of the crash.
|
|
340
|
-
* @param text Full details of the crarsh.
|
|
341
|
-
* @return an URL linking to the crash in Bugfender
|
|
342
|
-
*/
|
|
343
|
-
+ (nullable NSURL *)sendCrashWithTitle:(NSString *)title text:(NSString *)text;
|
|
344
|
-
|
|
345
|
-
#pragma mark - User Feedback
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
Provides a View Controller to gather the feedback of the users and sent it to Bugfender.
|
|
349
|
-
The returning BFUserFeedbackNavigationController has to be presented modally and it has it's own Send and Cancel buttons
|
|
350
|
-
|
|
351
|
-
Additionally, it is possible to customize the aspect of the screen accessing BFUserFeedbackNavigationController.feedbackViewController
|
|
352
|
-
|
|
353
|
-
@param title Title for the navigation bar
|
|
354
|
-
@param hint Short text at the beginning
|
|
355
|
-
@param subjectPlaceholder placeholder in the subject textfield
|
|
356
|
-
@param messagePlaceholder placeholder in the message textfield
|
|
357
|
-
@param sendButtonTitle title for the send button in the navigation bar
|
|
358
|
-
@param cancelButtonTitle title for the cancel button
|
|
359
|
-
@return BFUserFeedbackNavigationController containing a BFUserFeedbackViewController as root view controller
|
|
360
|
-
*/
|
|
361
|
-
+ (BFUserFeedbackNavigationController *)userFeedbackViewControllerWithTitle:(NSString *)title
|
|
362
|
-
hint:(NSString *)hint
|
|
363
|
-
subjectPlaceholder:(NSString *)subjectPlaceholder
|
|
364
|
-
messagePlaceholder:(NSString *)messagePlaceholder
|
|
365
|
-
sendButtonTitle:(NSString *)sendButtonTitle
|
|
366
|
-
cancelButtonTitle:(NSString *)cancelButtonTitle
|
|
367
|
-
completion:(void (^ _Nullable )(BOOL feedbackSent, NSURL * _Nullable url))completionBlock;
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
Allows to create custom UI to gather user feedback and send to Bugfender.
|
|
371
|
-
|
|
372
|
-
@param subject subject of the feedback
|
|
373
|
-
@param message message of the feedback
|
|
374
|
-
*/
|
|
375
|
-
+ (void)sendUserFeedbackWithSubject:(NSString *)subject message:(NSString *)message __deprecated_msg("Use sendUserFeedbackReturningUrlWithSubject:message: instead.");
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
Allows to create custom UI to gather user feedback and send to Bugfender.
|
|
379
|
-
|
|
380
|
-
@param subject subject of the feedback
|
|
381
|
-
@param message message of the feedback
|
|
382
|
-
@return URL linking to Bugfender
|
|
383
|
-
*/
|
|
384
|
-
+ (nullable NSURL *)sendUserFeedbackReturningUrlWithSubject:(NSString *)subject message:(NSString *)message;
|
|
385
|
-
|
|
386
|
-
@end
|
|
387
|
-
|
|
388
|
-
NS_ASSUME_NONNULL_END
|