@bugfender/rn-bugfender 2.1.2 → 2.2.1
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 +26 -98
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/{checksums → 7.4.2/checksums}/md5-checksums.bin +0 -0
- package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.2.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.2.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/ios/RnBugfender.mm +1 -1
- package/lib/commonjs/NativeRnBugfender.js +10 -0
- package/lib/commonjs/NativeRnBugfender.js.map +1 -0
- package/lib/commonjs/bugfender.js +25 -99
- package/lib/commonjs/bugfender.js.map +1 -1
- package/lib/commonjs/index.js +0 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +0 -3
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/override-console-methods.js +2 -19
- package/lib/commonjs/override-console-methods.js.map +1 -1
- package/lib/commonjs/sdk-options.js +15 -22
- package/lib/commonjs/sdk-options.js.map +1 -1
- package/lib/commonjs/types/sdk-options.js +0 -16
- package/lib/commonjs/types/sdk-options.js.map +1 -1
- package/lib/commonjs/user-feedback.js +7 -18
- package/lib/commonjs/user-feedback.js.map +1 -1
- package/lib/module/NativeRnBugfender.js +3 -0
- package/lib/module/NativeRnBugfender.js.map +1 -0
- package/lib/module/bugfender.js +25 -94
- package/lib/module/bugfender.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/override-console-methods.js +4 -11
- package/lib/module/override-console-methods.js.map +1 -1
- package/lib/module/sdk-options.js +16 -20
- package/lib/module/sdk-options.js.map +1 -1
- package/lib/module/types/sdk-options.js +0 -13
- package/lib/module/types/sdk-options.js.map +1 -1
- package/lib/module/user-feedback.js +7 -16
- package/lib/module/user-feedback.js.map +1 -1
- package/lib/typescript/NativeRnBugfender.d.ts +35 -0
- package/lib/typescript/NativeRnBugfender.d.ts.map +1 -0
- package/lib/typescript/bugfender.d.ts +6 -72
- package/lib/typescript/bugfender.d.ts.map +1 -1
- package/lib/typescript/override-console-methods.d.ts.map +1 -1
- package/lib/typescript/sdk-options.d.ts +2 -2
- package/lib/typescript/sdk-options.d.ts.map +1 -1
- package/lib/typescript/types/sdk-options.d.ts +1 -1
- package/lib/typescript/types/sdk-options.d.ts.map +1 -1
- package/lib/typescript/user-feedback.d.ts.map +1 -1
- package/package.json +26 -15
- package/src/NativeRnBugfender.ts +43 -0
- package/src/bugfender.ts +22 -84
- package/src/override-console-methods.ts +5 -9
- package/src/sdk-options.ts +2 -2
- package/src/types/sdk-options.ts +4 -2
- package/src/user-feedback.ts +3 -1
- package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/codeStyles/Project.xml +0 -116
- package/android/.idea/gradle.xml +0 -19
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/modules/android.iml +0 -18
- package/android/.idea/modules.xml +0 -8
- package/android/.idea/vcs.xml +0 -6
- package/android/.idea/workspace.xml +0 -47
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/android/gradlew +0 -172
- package/android/gradlew.bat +0 -84
- package/android/local.properties +0 -8
- /package/android/.gradle/{6.1.1 → 8.2.1/dependencies-accessors}/gc.properties +0 -0
- /package/android/.gradle/{6.1.1 → 8.2.1}/fileChanges/last-build.bin +0 -0
package/README.md
CHANGED
|
@@ -2,66 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Bugfender module for React Native and React Native for the Web. It depends on the iOS, Android and Javascript Bugfender SDKs.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This version has been tested in React Native with both the Old and New Architecture.
|
|
6
|
+
The New Architecture is still experimental, and therefore subject to break in new React Native versions.
|
|
7
|
+
|
|
8
|
+
## Expo compatibility
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
Bugfender works with Expo in the ["bare workflow"](https://docs.expo.io/introduction/managed-vs-bare/#bare-workflow). The Expo Go application (used in the managed workflow) can not run the Bugfender SDK because it contains native code.
|
|
11
|
+
|
|
12
|
+
## Adding Bugfender to your project
|
|
8
13
|
|
|
9
14
|
`$ cd path_to_your_project`
|
|
10
15
|
|
|
11
16
|
Add the bugfender plugin from npm
|
|
12
17
|
|
|
13
|
-
`$ npm install @bugfender/rn-bugfender
|
|
18
|
+
`$ npm install @bugfender/rn-bugfender @bugfender/sdk @bugfender/common`
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
You are done!
|
|
20
|
+
After installing, close and relaunch your app with `npm run ios` or `npm run android`.
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
You can finish the installation manually or via CocoaPods (recommended)
|
|
22
|
+
## Usage
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
1. Ensure your iOS project contains a Podfile, otherwise you need to add it now:
|
|
24
|
-
```
|
|
25
|
-
$ cd path_to_your_project/ios
|
|
26
|
-
$ pod init
|
|
24
|
+
```typescript
|
|
25
|
+
import { Bugfender, LogLevel } from '@bugfender/rn-bugfender';
|
|
27
26
|
```
|
|
28
|
-
Make sure you're targeting at least iOS platform version 10 (specify `platform :ios, '10.0'`).
|
|
29
|
-
|
|
30
|
-
2. After configuring the podfile you can now go to the console and run
|
|
31
|
-
|
|
32
|
-
`$ pod install`
|
|
33
|
-
|
|
34
|
-
When the installation has finished you should be able to run your project in iOS and Android.
|
|
35
|
-
|
|
36
|
-
**Remember that you should be using the Xcode workspace instead of the xcodeproj file from now on.**
|
|
37
|
-
|
|
38
|
-
*At the end of this document you can find a **[recommended podfile](#recommended-podfile)**. You can use it as an example*.
|
|
39
27
|
|
|
40
|
-
|
|
28
|
+
Please check the following URL for a complete API reference: https://js.bugfender.com.
|
|
41
29
|
|
|
42
|
-
|
|
30
|
+
Note: always import @bugfender/rn-bugfender instead of @bugfender/sdk. This will enable the native features of the SDK that you wouldn't get otherwise.
|
|
43
31
|
|
|
44
|
-
|
|
32
|
+
### Example
|
|
45
33
|
|
|
46
|
-
* Go to your **Project** > **Your Target** > **General** > **Linked Frameworks and Libraries** and drag `BugfenderSDK.framework` there (uncheck the "Copy items if needed" checkbox).
|
|
47
|
-
|
|
48
|
-
* Make sure you have linked `SystemConfiguration.framework`, `Security.framework`, `MobileCoreServices.framework` and `libc++.tbd` as well.
|
|
49
|
-
|
|
50
|
-
## Upgrading from version 1.x
|
|
51
|
-
After updating to version 2.x from version 1.x you should perform the following extra steps:
|
|
52
|
-
### Android
|
|
53
|
-
Open `MainApplication` class inside `android/app/src/main/java/com.<your_app>/` folder and remove any references to `com.bugfender.react.RNBugfenderPackage`
|
|
54
|
-
### iOS
|
|
55
|
-
Open `Podfile` inside `ios` folder and remove the following line:
|
|
56
|
-
```
|
|
57
|
-
pod 'RNBugfender', :path => '../node_modules/@bugfender/rn-bugfender'
|
|
58
|
-
```
|
|
59
|
-
and then execute the following command under `ios` folder:
|
|
60
|
-
```
|
|
61
|
-
pod deintegrate && pod install
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## RNBugfender Usage
|
|
65
34
|
```typescript
|
|
66
35
|
import { Bugfender, LogLevel } from '@bugfender/rn-bugfender';
|
|
67
36
|
|
|
@@ -82,19 +51,6 @@ Bugfender.init({
|
|
|
82
51
|
// version: '1.0', // Web sprecific
|
|
83
52
|
});
|
|
84
53
|
|
|
85
|
-
// Alternatively, SDKOptionsBuilder can be used to make it apparent what options are specific of certain platforms
|
|
86
|
-
Bugfender.init(
|
|
87
|
-
new SDKOptionsBuilder({
|
|
88
|
-
appKey: '<YOUR APP KEY>',
|
|
89
|
-
}).native({
|
|
90
|
-
enableLogcatLogging: false,
|
|
91
|
-
}).web({
|
|
92
|
-
logBrowserEvents: true,
|
|
93
|
-
build: '42',
|
|
94
|
-
version: '1.0',
|
|
95
|
-
}).build()
|
|
96
|
-
);
|
|
97
|
-
|
|
98
54
|
// Send logs with different levels
|
|
99
55
|
Bugfender.log('This is a debug log in Bugfender from React Native');
|
|
100
56
|
Bugfender.warn('This is a warn log in Bugfender from React Native');
|
|
@@ -161,6 +117,7 @@ Bugfender.getSessionURL().then((url) => console.log('Session url: %s', url));
|
|
|
161
117
|
// Synchronizes all logs and issues with the server once
|
|
162
118
|
Bugfender.forceSendOnce();
|
|
163
119
|
```
|
|
120
|
+
|
|
164
121
|
## Changelog
|
|
165
122
|
The changelog of the Bugfender Web SDK can be found in ReleaseNotes under the [react-native](https://bugfender.releasenotes.io/tag/react-native) tag. For all the Bugfender product changes please visit the general release notes.
|
|
166
123
|
|
|
@@ -186,47 +143,18 @@ The React Native SDK API has changed in order be unified with [Bugfender Web SDK
|
|
|
186
143
|
* `setDeviceKey` method replaces `setDeviceBoolean`, `setDeviceString`, `setDeviceInteger` & `setDeviceFloat`
|
|
187
144
|
|
|
188
145
|
## Cocoapods Troubleshooting
|
|
189
|
-
We
|
|
146
|
+
We often get questions about CocoaPods install failing. Whilst this has nothing to do with Bugfender, you may
|
|
147
|
+
encounter this problem while installing the pod.
|
|
190
148
|
|
|
191
|
-
|
|
149
|
+
To reinstall the pods, you can do:
|
|
192
150
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
platform :ios, '10.0'
|
|
196
|
-
|
|
197
|
-
target 'SampleProject' do
|
|
198
|
-
# Comment the next line if you don't want to use dynamic frameworks
|
|
199
|
-
use_frameworks!
|
|
200
|
-
|
|
201
|
-
# Pods for SampleProject
|
|
202
|
-
pod 'AFNetworking'
|
|
203
|
-
|
|
204
|
-
# Add new pods below this line
|
|
205
|
-
pod 'RnBugfender', :path => '../node_modules/@bugfender/rn-bugfender'
|
|
206
|
-
|
|
207
|
-
rn_path = '../node_modules/react-native'
|
|
208
|
-
|
|
209
|
-
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga"
|
|
210
|
-
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
|
|
211
|
-
pod 'React', path: rn_path, subspecs: [
|
|
212
|
-
'Core',
|
|
213
|
-
'CxxBridge',
|
|
214
|
-
'DevSupport',
|
|
215
|
-
'RCTActionSheet',
|
|
216
|
-
'RCTAnimation',
|
|
217
|
-
'RCTGeolocation',
|
|
218
|
-
'RCTImage',
|
|
219
|
-
'RCTLinkingIOS',
|
|
220
|
-
'RCTNetwork',
|
|
221
|
-
'RCTSettings',
|
|
222
|
-
'RCTText',
|
|
223
|
-
'RCTVibration',
|
|
224
|
-
'RCTWebSocket',
|
|
225
|
-
]
|
|
226
|
-
|
|
227
|
-
end
|
|
151
|
+
```sh
|
|
152
|
+
bundle exec pod install
|
|
228
153
|
```
|
|
229
154
|
|
|
230
|
-
|
|
155
|
+
Or, for the New Architecture:
|
|
156
|
+
```sh
|
|
157
|
+
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
|
|
158
|
+
```
|
|
231
159
|
|
|
232
|
-
|
|
160
|
+
You can find more details here: https://reactnative.dev/docs/environment-setup
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
gradle.version=
|
|
1
|
+
#Wed Aug 09 14:58:41 CEST 2023
|
|
2
|
+
gradle.version=7.4.2
|
package/ios/RnBugfender.mm
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _default = _reactNative.TurboModuleRegistry.get('RnBugfender');
|
|
9
|
+
exports.default = _default;
|
|
10
|
+
//# sourceMappingURL=NativeRnBugfender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","TurboModuleRegistry","get","exports","default"],"sourceRoot":"../../src","sources":["NativeRnBugfender.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAyCpCC,gCAAmB,CAACC,GAAG,CAAO,aAAa,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAJ,QAAA"}
|
|
@@ -4,17 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.RnBugfender = exports.BugfenderClass = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _common = require("@bugfender/common");
|
|
11
|
-
|
|
12
9
|
var _userFeedback = require("./user-feedback");
|
|
13
|
-
|
|
14
10
|
var _sdkOptions = require("./sdk-options");
|
|
15
|
-
|
|
16
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
|
|
18
11
|
const LINKING_ERROR = `The package '@bugfender/rn-bugfender' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
19
12
|
ios: "- You have run 'pod install'\n",
|
|
20
13
|
default: ''
|
|
@@ -23,81 +16,68 @@ const RnBugfender = _reactNative.NativeModules.RnBugfender ? _reactNative.Native
|
|
|
23
16
|
get() {
|
|
24
17
|
throw new Error(LINKING_ERROR);
|
|
25
18
|
}
|
|
26
|
-
|
|
27
19
|
});
|
|
28
20
|
exports.RnBugfender = RnBugfender;
|
|
29
|
-
|
|
30
21
|
class BugfenderClass {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
_defineProperty(this, "sdkOptions", new _sdkOptions.SDKOptions());
|
|
37
|
-
|
|
38
|
-
_defineProperty(this, "initialized", false);
|
|
39
|
-
}
|
|
40
|
-
|
|
22
|
+
overrideConsoleMethods = new (require('./override-console-methods').OverrideConsoleMethods)(window);
|
|
23
|
+
printToConsole = new _common.PrintToConsole(global.console);
|
|
24
|
+
sdkOptions = new _sdkOptions.SDKOptions();
|
|
25
|
+
initialized = false;
|
|
41
26
|
async init(options) {
|
|
42
27
|
if (!this.initialized) {
|
|
43
|
-
const validatedOptions = this.sdkOptions.init(options);
|
|
28
|
+
const validatedOptions = this.sdkOptions.init(options);
|
|
44
29
|
|
|
30
|
+
// region before init
|
|
45
31
|
if (typeof options.deviceName !== 'undefined') {
|
|
46
32
|
RnBugfender.overrideDeviceName(options.deviceName);
|
|
47
33
|
}
|
|
48
|
-
|
|
49
34
|
if (typeof validatedOptions.apiURL !== 'undefined') {
|
|
50
35
|
RnBugfender.setApiUrl(validatedOptions.apiURL);
|
|
51
36
|
}
|
|
52
|
-
|
|
53
37
|
if (typeof validatedOptions.baseURL !== 'undefined') {
|
|
54
38
|
RnBugfender.setBaseUrl(validatedOptions.baseURL);
|
|
55
|
-
}
|
|
56
|
-
//
|
|
57
|
-
|
|
39
|
+
}
|
|
40
|
+
// endregion before init
|
|
58
41
|
|
|
42
|
+
// region init
|
|
59
43
|
_reactNative.Platform.OS === 'ios' ? RnBugfender.activateLogger(validatedOptions.appKey) : RnBugfender.init(validatedOptions.appKey, validatedOptions.printToConsole ?? false);
|
|
60
|
-
|
|
61
44
|
if (validatedOptions.overrideConsoleMethods) {
|
|
62
45
|
this.overrideConsoleMethods.init();
|
|
63
46
|
}
|
|
47
|
+
this.printToConsole.init(validatedOptions.printToConsole ?? true);
|
|
48
|
+
// endregion init
|
|
64
49
|
|
|
65
|
-
this.printToConsole.init(validatedOptions.printToConsole ?? true); // endregion init
|
|
66
50
|
// region after init
|
|
67
|
-
|
|
68
51
|
if (validatedOptions.enableLogcatLogging) {
|
|
69
52
|
RnBugfender.enableLogcatLogging();
|
|
70
53
|
}
|
|
71
|
-
|
|
72
54
|
if (validatedOptions.logUIEvents) {
|
|
73
55
|
RnBugfender.enableUIEventLogging();
|
|
74
56
|
}
|
|
75
|
-
|
|
76
57
|
if (validatedOptions.registerErrorHandler) {
|
|
77
58
|
RnBugfender.enableCrashReporting();
|
|
78
59
|
}
|
|
79
|
-
|
|
80
|
-
|
|
60
|
+
RnBugfender.setMaximumLocalStorageSize(validatedOptions.maximumLocalStorageSize);
|
|
61
|
+
// endregion after init
|
|
81
62
|
|
|
82
63
|
this.initialized = true;
|
|
83
64
|
}
|
|
84
65
|
}
|
|
66
|
+
|
|
85
67
|
/**
|
|
86
68
|
* @returns Bugfender dashboard URL for the device
|
|
87
69
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
90
70
|
getDeviceURL() {
|
|
91
71
|
return RnBugfender.getDeviceUrl();
|
|
92
72
|
}
|
|
73
|
+
|
|
93
74
|
/**
|
|
94
75
|
* @returns Bugfender dashboard URL for the current session
|
|
95
76
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
77
|
getSessionURL() {
|
|
99
78
|
return RnBugfender.getSessionUrl();
|
|
100
79
|
}
|
|
80
|
+
|
|
101
81
|
/**
|
|
102
82
|
* Show a modal which asks for feedback. Once the user closes the modal or sends the feedback
|
|
103
83
|
* the returned promise resolves with the result.
|
|
@@ -116,11 +96,10 @@ class BugfenderClass {
|
|
|
116
96
|
* @param options Options object to configure modal strings
|
|
117
97
|
* @returns Promise which resolves once the user closes the modal or sends the feedback
|
|
118
98
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
99
|
async getUserFeedback(options) {
|
|
122
100
|
return new Promise(resolve => {
|
|
123
|
-
options = {
|
|
101
|
+
options = {
|
|
102
|
+
...new _userFeedback.DefaultUserFeedbackOptions(),
|
|
124
103
|
...(options ?? {})
|
|
125
104
|
};
|
|
126
105
|
return RnBugfender.showUserFeedback(options.title, options.hint, options.subjectPlaceholder, options.feedbackPlaceholder, options.submitLabel, options.closeLabel).then(value => {
|
|
@@ -135,118 +114,75 @@ class BugfenderClass {
|
|
|
135
114
|
});
|
|
136
115
|
});
|
|
137
116
|
}
|
|
138
|
-
/**
|
|
139
|
-
* @param obj A JavaScript value to output
|
|
140
|
-
* @param objs List of optional JavaScript values to output
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
|
|
144
117
|
log() {
|
|
145
118
|
for (var _len = arguments.length, parameters = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
146
119
|
parameters[_key] = arguments[_key];
|
|
147
120
|
}
|
|
148
|
-
|
|
149
121
|
this.printToConsole.log(...parameters);
|
|
150
122
|
let message = (0, _common.format)([...parameters]);
|
|
151
123
|
RnBugfender.debug('', message);
|
|
152
124
|
}
|
|
153
|
-
/**
|
|
154
|
-
* @param obj A JavaScript value to output
|
|
155
|
-
* @param objs List of optional JavaScript values to output
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
|
|
159
125
|
warn() {
|
|
160
126
|
for (var _len2 = arguments.length, parameters = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
161
127
|
parameters[_key2] = arguments[_key2];
|
|
162
128
|
}
|
|
163
|
-
|
|
164
129
|
this.printToConsole.warn(...parameters);
|
|
165
130
|
let message = (0, _common.format)([...parameters]);
|
|
166
131
|
RnBugfender.warning('', message);
|
|
167
132
|
}
|
|
168
|
-
/**
|
|
169
|
-
* @param obj A JavaScript value to output
|
|
170
|
-
* @param objs List of optional JavaScript values to output
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
|
|
174
133
|
error() {
|
|
175
134
|
for (var _len3 = arguments.length, parameters = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
176
135
|
parameters[_key3] = arguments[_key3];
|
|
177
136
|
}
|
|
178
|
-
|
|
179
137
|
this.printToConsole.error(...parameters);
|
|
180
138
|
let message = (0, _common.format)([...parameters]);
|
|
181
139
|
RnBugfender.error('', message);
|
|
182
140
|
}
|
|
183
|
-
/**
|
|
184
|
-
* @param obj A JavaScript value to output
|
|
185
|
-
* @param objs List of optional JavaScript values to output
|
|
186
|
-
*/
|
|
187
|
-
|
|
188
|
-
|
|
189
141
|
trace() {
|
|
190
142
|
for (var _len4 = arguments.length, parameters = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
191
143
|
parameters[_key4] = arguments[_key4];
|
|
192
144
|
}
|
|
193
|
-
|
|
194
145
|
this.printToConsole.trace(...parameters);
|
|
195
146
|
let message = (0, _common.format)([...parameters]);
|
|
196
147
|
RnBugfender.trace('', message);
|
|
197
148
|
}
|
|
198
|
-
/**
|
|
199
|
-
* @param obj A JavaScript value to output
|
|
200
|
-
* @param objs List of optional JavaScript values to output
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
|
|
204
149
|
info() {
|
|
205
150
|
for (var _len5 = arguments.length, parameters = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
206
151
|
parameters[_key5] = arguments[_key5];
|
|
207
152
|
}
|
|
208
|
-
|
|
209
153
|
this.printToConsole.info(...parameters);
|
|
210
154
|
let message = (0, _common.format)([...parameters]);
|
|
211
155
|
RnBugfender.info('', message);
|
|
212
156
|
}
|
|
213
|
-
/**
|
|
214
|
-
* @param obj A JavaScript value to output
|
|
215
|
-
* @param objs List of optional JavaScript values to output
|
|
216
|
-
*/
|
|
217
|
-
|
|
218
|
-
|
|
219
157
|
fatal() {
|
|
220
158
|
for (var _len6 = arguments.length, parameters = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
221
159
|
parameters[_key6] = arguments[_key6];
|
|
222
160
|
}
|
|
223
|
-
|
|
224
161
|
this.printToConsole.error(...parameters);
|
|
225
162
|
let message = (0, _common.format)([...parameters]);
|
|
226
163
|
RnBugfender.fatal('', message);
|
|
227
164
|
}
|
|
165
|
+
|
|
228
166
|
/**
|
|
229
167
|
* Remove a device associated key-value pair. [Learn more](https://bugfender.com/blog/associated-device-information/).
|
|
230
168
|
*
|
|
231
169
|
* @param key Key identifier
|
|
232
170
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
235
171
|
removeDeviceKey(key) {
|
|
236
172
|
RnBugfender.removeDeviceKey(key);
|
|
237
173
|
this.printToConsole.info(`Device key "${key}" removed`);
|
|
238
174
|
}
|
|
175
|
+
|
|
239
176
|
/**
|
|
240
177
|
* Use this method if you need more control over the data sent while logging. See `ILogEntry` interface reference to see all the accepted properties.
|
|
241
178
|
*
|
|
242
179
|
* @param log Log object that complies with `ILogEntry` interface.
|
|
243
180
|
*/
|
|
244
|
-
|
|
245
|
-
|
|
246
181
|
sendLog(log) {
|
|
247
182
|
this.printToConsole.printLog(log);
|
|
248
183
|
RnBugfender.log(log.line ?? 0, log.method ?? '', log.file ?? '', log.level ?? _common.LogLevel.Debug, log.tag ?? '', (0, _common.formatLogEntryText)(log.text ?? ''));
|
|
249
184
|
}
|
|
185
|
+
|
|
250
186
|
/**
|
|
251
187
|
* Send an issue.
|
|
252
188
|
*
|
|
@@ -254,12 +190,11 @@ class BugfenderClass {
|
|
|
254
190
|
* @param text - Text content
|
|
255
191
|
* @returns Bugfender dashboard URL for the issue.
|
|
256
192
|
*/
|
|
257
|
-
|
|
258
|
-
|
|
259
193
|
sendIssue(title, text) {
|
|
260
194
|
this.printToConsole.warn(`Issue: ${title}.\n${text}`);
|
|
261
195
|
return RnBugfender.sendIssue(title, text);
|
|
262
196
|
}
|
|
197
|
+
|
|
263
198
|
/**
|
|
264
199
|
* Send a crash report.
|
|
265
200
|
*
|
|
@@ -267,12 +202,11 @@ class BugfenderClass {
|
|
|
267
202
|
* @param text - Text content
|
|
268
203
|
* @returns Bugfender dashboard URL for the crash.
|
|
269
204
|
*/
|
|
270
|
-
|
|
271
|
-
|
|
272
205
|
sendCrash(title, text) {
|
|
273
206
|
this.printToConsole.error(`Crash: ${title}.\n${text}`);
|
|
274
207
|
return RnBugfender.sendCrash(title, text);
|
|
275
208
|
}
|
|
209
|
+
|
|
276
210
|
/**
|
|
277
211
|
* Send an user feedback.
|
|
278
212
|
*
|
|
@@ -280,23 +214,19 @@ class BugfenderClass {
|
|
|
280
214
|
* @param text - Feedback text
|
|
281
215
|
* @returns Bugfender dashboard URL for the feedback.
|
|
282
216
|
*/
|
|
283
|
-
|
|
284
|
-
|
|
285
217
|
sendUserFeedback(title, text) {
|
|
286
218
|
this.printToConsole.info(`User Feedback: ${title}.\n${text}`);
|
|
287
219
|
return RnBugfender.sendUserFeedback(title, text);
|
|
288
220
|
}
|
|
221
|
+
|
|
289
222
|
/**
|
|
290
223
|
* Set a device associated key-value pair. [Learn more](https://bugfender.com/blog/associated-device-information/).
|
|
291
224
|
*
|
|
292
225
|
* @param key Key identifier.
|
|
293
226
|
* @param value Value.
|
|
294
227
|
*/
|
|
295
|
-
|
|
296
|
-
|
|
297
228
|
setDeviceKey(key, value) {
|
|
298
229
|
this.printToConsole.info(`Device key "${key}" set to "${value}"`);
|
|
299
|
-
|
|
300
230
|
if (typeof value === 'boolean') {
|
|
301
231
|
RnBugfender.setDeviceBoolean(key, value);
|
|
302
232
|
} else if (typeof value === 'string') {
|
|
@@ -310,25 +240,21 @@ class BugfenderClass {
|
|
|
310
240
|
}
|
|
311
241
|
}
|
|
312
242
|
}
|
|
243
|
+
|
|
313
244
|
/**
|
|
314
245
|
* Synchronizes all logs and issues with the server once, regardless if this device is enabled or not.
|
|
315
246
|
*
|
|
316
247
|
* Logs and issues are synchronized only once. After that, the logs are again sent according to the enabled flag
|
|
317
248
|
* in the Bugfender Console.
|
|
318
249
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
250
|
forceSendOnce() {
|
|
322
251
|
this.printToConsole.info(`Force send once`);
|
|
323
252
|
RnBugfender.forceSendOnce();
|
|
324
253
|
}
|
|
325
|
-
|
|
326
254
|
setForceEnabled(enabled) {
|
|
327
255
|
this.printToConsole.info(`Set force enabled set to ${enabled}`);
|
|
328
256
|
RnBugfender.setForceEnabled(enabled);
|
|
329
257
|
}
|
|
330
|
-
|
|
331
258
|
}
|
|
332
|
-
|
|
333
259
|
exports.BugfenderClass = BugfenderClass;
|
|
334
260
|
//# sourceMappingURL=bugfender.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LINKING_ERROR","Platform","select","ios","default","RnBugfender","NativeModules","Proxy","get","Error","BugfenderClass","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_common","_userFeedback","_sdkOptions","LINKING_ERROR","Platform","select","ios","default","RnBugfender","NativeModules","Proxy","get","Error","exports","BugfenderClass","overrideConsoleMethods","OverrideConsoleMethods","window","printToConsole","PrintToConsole","global","console","sdkOptions","SDKOptions","initialized","init","options","validatedOptions","deviceName","overrideDeviceName","apiURL","setApiUrl","baseURL","setBaseUrl","OS","activateLogger","appKey","enableLogcatLogging","logUIEvents","enableUIEventLogging","registerErrorHandler","enableCrashReporting","setMaximumLocalStorageSize","maximumLocalStorageSize","getDeviceURL","getDeviceUrl","getSessionURL","getSessionUrl","getUserFeedback","Promise","resolve","DefaultUserFeedbackOptions","showUserFeedback","title","hint","subjectPlaceholder","feedbackPlaceholder","submitLabel","closeLabel","then","value","isSent","feedbackURL","_","log","_len","arguments","length","parameters","Array","_key","message","format","debug","warn","_len2","_key2","warning","error","_len3","_key3","trace","_len4","_key4","info","_len5","_key5","fatal","_len6","_key6","removeDeviceKey","key","sendLog","printLog","line","method","file","level","LogLevel","Debug","tag","formatLogEntryText","text","sendIssue","sendCrash","sendUserFeedback","setDeviceKey","setDeviceBoolean","setDeviceString","Number","isInteger","setDeviceInteger","setDeviceFloat","forceSendOnce","setForceEnabled","enabled"],"sourceRoot":"../../src","sources":["bugfender.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAYA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAEA,MAAMI,aAAa,GAChB,kFAAiF,GAClFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;AAE/C,MAAMC,WAAW,GAAGC,0BAAa,CAACD,WAAW,GACzCC,0BAAa,CAACD,WAAW,GACzB,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAACU,OAAA,CAAAL,WAAA,GAAAA,WAAA;AAEN,MAAMM,cAAc,CAA4B;EACtCC,sBAAsB,GAC5B,KAAKhB,OAAO,CAAC,4BAA4B,CAAC,CAACiB,sBAAsB,EAAEC,MAAM,CAAC;EACpEC,cAAc,GAAG,IAAIC,sBAAc,CAACC,MAAM,CAACC,OAAO,CAAC;EACnDC,UAAU,GAAe,IAAIC,sBAAU,CAAC,CAAC;EACzCC,WAAW,GAAG,KAAK;EAE3B,MAAaC,IAAIA,CAACC,OAAoB,EAAiB;IACrD,IAAI,CAAC,IAAI,CAACF,WAAW,EAAE;MACrB,MAAMG,gBAAgB,GAAG,IAAI,CAACL,UAAU,CAACG,IAAI,CAACC,OAAO,CAAC;;MAEtD;MACA,IAAI,OAAOA,OAAO,CAACE,UAAU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c,CAACkE,IAAI,CAAE,eAAcO,GAAI,aAAY/B,KAAM,GAAE,CAAC;IAEjE,IAAI,OAAOA,KAAK,KAAK,SAAS,EAAE;MAC9BpD,WAAW,CAACmG,gBAAgB,CAAChB,GAAG,EAAE/B,KAAK,CAAC;IAC1C,CAAC,MAAM,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MACpCpD,WAAW,CAACoG,eAAe,CAACjB,GAAG,EAAE/B,KAAK,CAAC;IACzC,CAAC,MAAM;MACL;MACA,IAAIiD,MAAM,CAACC,SAAS,CAAClD,KAAK,CAAC,EAAE;QAC3BpD,WAAW,CAACuG,gBAAgB,CAACpB,GAAG,EAAE/B,KAAK,CAAC;MAC1C,CAAC,MAAM;QACLpD,WAAW,CAACwG,cAAc,CAACrB,GAAG,EAAE/B,KAAK,CAAC;MACxC;IACF;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSqD,aAAaA,CAAA,EAAS;IAC3B,IAAI,CAAC/F,cAAc,CAACkE,IAAI,CAAE,iBAAgB,CAAC;IAC3C5E,WAAW,CAACyG,aAAa,CAAC,CAAC;EAC7B;EAEOC,eAAeA,CAACC,OAAgB,EAAQ;IAC7C,IAAI,CAACjG,cAAc,CAACkE,IAAI,CAAE,4BAA2B+B,OAAQ,EAAC,CAAC;IAC/D3G,WAAW,CAAC0G,eAAe,CAACC,OAAO,CAAC;EACtC;AACF;AAACtG,OAAA,CAAAC,cAAA,GAAAA,cAAA"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -16,13 +16,9 @@ Object.defineProperty(exports, "SDKOptionsBuilder", {
|
|
|
16
16
|
return _sdkOptions.SDKOptionsBuilder;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
|
|
20
19
|
var _common = require("@bugfender/common");
|
|
21
|
-
|
|
22
20
|
var _sdkOptions = require("./types/sdk-options");
|
|
23
|
-
|
|
24
21
|
var _bugfender = require("./bugfender");
|
|
25
|
-
|
|
26
22
|
const Bugfender = new _bugfender.BugfenderClass();
|
|
27
23
|
exports.Bugfender = Bugfender;
|
|
28
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Bugfender","BugfenderClass"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_common","require","_sdkOptions","_bugfender","Bugfender","BugfenderClass","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,MAAMG,SAAS,GAAG,IAAIC,yBAAc,CAAC,CAAC;AAACC,OAAA,CAAAF,SAAA,GAAAA,SAAA"}
|