@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.
Files changed (81) hide show
  1. package/README.md +26 -98
  2. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  3. package/android/.gradle/{checksums → 7.4.2/checksums}/md5-checksums.bin +0 -0
  4. package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
  5. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  6. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  7. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/8.2.1/checksums/checksums.lock +0 -0
  9. package/android/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
  10. package/android/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
  11. package/android/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  12. package/android/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
  13. package/android/.gradle/8.2.1/gc.properties +0 -0
  14. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  15. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  16. package/ios/RnBugfender.mm +1 -1
  17. package/lib/commonjs/NativeRnBugfender.js +10 -0
  18. package/lib/commonjs/NativeRnBugfender.js.map +1 -0
  19. package/lib/commonjs/bugfender.js +25 -99
  20. package/lib/commonjs/bugfender.js.map +1 -1
  21. package/lib/commonjs/index.js +0 -4
  22. package/lib/commonjs/index.js.map +1 -1
  23. package/lib/commonjs/index.web.js +0 -3
  24. package/lib/commonjs/index.web.js.map +1 -1
  25. package/lib/commonjs/override-console-methods.js +2 -19
  26. package/lib/commonjs/override-console-methods.js.map +1 -1
  27. package/lib/commonjs/sdk-options.js +15 -22
  28. package/lib/commonjs/sdk-options.js.map +1 -1
  29. package/lib/commonjs/types/sdk-options.js +0 -16
  30. package/lib/commonjs/types/sdk-options.js.map +1 -1
  31. package/lib/commonjs/user-feedback.js +7 -18
  32. package/lib/commonjs/user-feedback.js.map +1 -1
  33. package/lib/module/NativeRnBugfender.js +3 -0
  34. package/lib/module/NativeRnBugfender.js.map +1 -0
  35. package/lib/module/bugfender.js +25 -94
  36. package/lib/module/bugfender.js.map +1 -1
  37. package/lib/module/index.js.map +1 -1
  38. package/lib/module/index.web.js.map +1 -1
  39. package/lib/module/override-console-methods.js +4 -11
  40. package/lib/module/override-console-methods.js.map +1 -1
  41. package/lib/module/sdk-options.js +16 -20
  42. package/lib/module/sdk-options.js.map +1 -1
  43. package/lib/module/types/sdk-options.js +0 -13
  44. package/lib/module/types/sdk-options.js.map +1 -1
  45. package/lib/module/user-feedback.js +7 -16
  46. package/lib/module/user-feedback.js.map +1 -1
  47. package/lib/typescript/NativeRnBugfender.d.ts +35 -0
  48. package/lib/typescript/NativeRnBugfender.d.ts.map +1 -0
  49. package/lib/typescript/bugfender.d.ts +6 -72
  50. package/lib/typescript/bugfender.d.ts.map +1 -1
  51. package/lib/typescript/override-console-methods.d.ts.map +1 -1
  52. package/lib/typescript/sdk-options.d.ts +2 -2
  53. package/lib/typescript/sdk-options.d.ts.map +1 -1
  54. package/lib/typescript/types/sdk-options.d.ts +1 -1
  55. package/lib/typescript/types/sdk-options.d.ts.map +1 -1
  56. package/lib/typescript/user-feedback.d.ts.map +1 -1
  57. package/package.json +26 -15
  58. package/src/NativeRnBugfender.ts +43 -0
  59. package/src/bugfender.ts +22 -84
  60. package/src/override-console-methods.ts +5 -9
  61. package/src/sdk-options.ts +2 -2
  62. package/src/types/sdk-options.ts +4 -2
  63. package/src/user-feedback.ts +3 -1
  64. package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  65. package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  66. package/android/.gradle/checksums/checksums.lock +0 -0
  67. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  68. package/android/.idea/codeStyles/Project.xml +0 -116
  69. package/android/.idea/gradle.xml +0 -19
  70. package/android/.idea/misc.xml +0 -9
  71. package/android/.idea/modules/android.iml +0 -18
  72. package/android/.idea/modules.xml +0 -8
  73. package/android/.idea/vcs.xml +0 -6
  74. package/android/.idea/workspace.xml +0 -47
  75. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  76. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  77. package/android/gradlew +0 -172
  78. package/android/gradlew.bat +0 -84
  79. package/android/local.properties +0 -8
  80. /package/android/.gradle/{6.1.1 → 8.2.1/dependencies-accessors}/gc.properties +0 -0
  81. /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
- ## Adding Bugfender to your project
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
- **Please note:** if you're using Expo for development, be sure to be using the ["bare workflow"](https://docs.expo.io/introduction/managed-vs-bare/#bare-workflow).
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 --save`
18
+ `$ npm install @bugfender/rn-bugfender @bugfender/sdk @bugfender/common`
14
19
 
15
- ### Android & React Native for the Web
16
- You are done!
20
+ After installing, close and relaunch your app with `npm run ios` or `npm run android`.
17
21
 
18
- ### iOS
19
- You can finish the installation manually or via CocoaPods (recommended)
22
+ ## Usage
20
23
 
21
- **CocoaPods (recommended)**
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
- If you have any problems compiling or executing, try our [Troubleshooting section](#cocoapods-troubleshooting) at the end of this document.
28
+ Please check the following URL for a complete API reference: https://js.bugfender.com.
41
29
 
42
- **Manual installation (alternative to CocoaPods)**
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
- Download the latest release from [Github](https://github.com/bugfender/BugfenderSDK-iOS/releases) and copy `BugfenderSDK.framework` to `YourAwesomeProjectDirectory/ios` (same directory as AwesomeProject.xcodeproj). Then, follow the instructions to setup your project manually:
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 did our best to create a installation process that worked for most of the users. However, the React Native configuration can be tricky sometimes.
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
- Most of the issues are related to the high number of dependencies and the compatibility between them. As every project is different and has different needs it's difficult to provide a magic receipt that can work out of the box, however we find out that the following Podfile compiles and run correctly most of the time. You can use it as a basis to experiment and find a configuration that works for you.
149
+ To reinstall the pods, you can do:
192
150
 
193
- ### Recommended Podfile
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
- If you are not able to get your project working you can still try to add RNBugfender with the Manual Installation or to open an issue in Github and maybe we can help you.
155
+ Or, for the New Architecture:
156
+ ```sh
157
+ RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
158
+ ```
231
159
 
232
- Happy debugging!
160
+ You can find more details here: https://reactnative.dev/docs/environment-setup
File without changes
@@ -1,2 +1,2 @@
1
- #Fri Nov 11 12:20:42 CET 2022
2
- gradle.version=6.1.1
1
+ #Wed Aug 09 14:58:41 CEST 2023
2
+ gradle.version=7.4.2
@@ -3,7 +3,7 @@
3
3
  #import <React/RCTUtils.h>
4
4
 
5
5
  #ifdef RCT_NEW_ARCH_ENABLED
6
- #import "RNRnBugfenderSpec.h"
6
+ #import <RnBugfenderSpec/RnBugfenderSpec.h>
7
7
  #endif
8
8
 
9
9
  @implementation RnBugfender
@@ -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
- constructor() {
32
- _defineProperty(this, "overrideConsoleMethods", new (require('./override-console-methods').OverrideConsoleMethods)(window));
33
-
34
- _defineProperty(this, "printToConsole", new _common.PrintToConsole(global.console));
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); // region before init
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
- } // endregion before init
56
- // region init
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
- RnBugfender.setMaximumLocalStorageSize(validatedOptions.maximumLocalStorageSize); // endregion after init
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 = { ...new _userFeedback.DefaultUserFeedbackOptions(),
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","require","OverrideConsoleMethods","window","PrintToConsole","global","console","SDKOptions","init","options","initialized","validatedOptions","sdkOptions","deviceName","overrideDeviceName","apiURL","setApiUrl","baseURL","setBaseUrl","OS","activateLogger","appKey","printToConsole","overrideConsoleMethods","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","parameters","message","format","debug","warn","warning","error","trace","info","fatal","removeDeviceKey","key","sendLog","printLog","line","method","file","level","LogLevel","Debug","tag","formatLogEntryText","text","sendIssue","sendCrash","sendUserFeedback","setDeviceKey","setDeviceBoolean","setDeviceString","Number","isInteger","setDeviceInteger","setDeviceFloat","forceSend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AgC;MAC9BpD,WAAW,CAACoF,gBAAZ,CAA6BhB,GAA7B,EAAkChB,KAAlC;IACD,CAFD,MAEO,IAAI,OAAOA,KAAP,KAAiB,QAArB,EAA+B;MACpCpD,WAAW,CAACqF,eAAZ,CAA4BjB,GAA5B,EAAiChB,KAAjC;IACD,CAFM,MAEA;MACL;MACA,IAAIkC,MAAM,CAACC,SAAP,CAAiBnC,KAAjB,CAAJ,EAA6B;QAC3BpD,WAAW,CAACwF,gBAAZ,CAA6BpB,GAA7B,EAAkChB,KAAlC;MACD,CAFD,MAEO;QACLpD,WAAW,CAACyF,cAAZ,CAA2BrB,GAA3B,EAAgChB,KAAhC;MACD;IACF;EACF;EAED;AACF;AACA;AACA;AACA;AACA;;;EACSsC,aAAa,GAAS;IAC3B,KAAK/D,cAAL,CAAoBsC,IAApB,CAA0B,iBAA1B;IACAjE,WAAW,CAAC0F,aAAZ;EACD;;EAEMC,eAAe,CAACC,OAAD,EAAyB;IAC7C,KAAKjE,cAAL,CAAoBsC,IAApB,CAA0B,4BAA2B2B,OAAQ,EAA7D;IACA5F,WAAW,CAAC2F,eAAZ,CAA4BC,OAA5B;EACD;;AA7U6C"}
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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;EACSI,YAAYA,CAACf,GAAW,EAAE/B,KAAqB,EAAQ;IAC5D,IAAI,CAAC1C,cAAc,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"}
@@ -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":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA,MAAMA,SAAS,GAAG,IAAIC,yBAAJ,EAAlB"}
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"}