Skip to content

Commit 6092f37

Browse files
author
Fran Montiel
committed
Merge branch 'feature/remove_require_cycle'
# Conflicts: # src/bugfender.ts
2 parents 0586b00 + 6980e8d commit 6092f37

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/bugfender.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
import {NativeModules, Platform} from 'react-native';
2-
import type {ISDKOptions} from './types/sdk-options';
3-
import type {UserFeedbackOptions, UserFeedbackResult} from './user-feedback';
4-
import {DefaultUserFeedbackOptions} from './user-feedback';
5-
import type {DeviceKeyValue} from './types/device';
6-
import type {ILogEntry} from './types/log';
7-
import {StringFormatter} from './string-formatter';
8-
import {LogLevel} from "./types/log";
9-
import {OverrideConsoleMethods} from "./override-console-methods";
10-
import {PrintToConsole} from "./print-to-console";
11-
import {SDKOptions} from "./sdk-options";
1+
import { NativeModules, Platform } from 'react-native';
2+
import type { ISDKOptions } from './types/sdk-options';
3+
import type { UserFeedbackOptions, UserFeedbackResult } from './user-feedback';
4+
import { DefaultUserFeedbackOptions } from './user-feedback';
5+
import type { DeviceKeyValue } from './types/device';
6+
import type { ILogEntry } from './types/log';
7+
import { StringFormatter } from './string-formatter';
8+
import { LogLevel } from './types/log';
9+
import { PrintToConsole } from './print-to-console';
10+
import { SDKOptions } from './sdk-options';
1211

1312
const LINKING_ERROR =
1413
`The package '@bugfender/rn-bugfender' doesn't seem to be linked. Make sure: \n\n` +
15-
Platform.select({ios: "- You have run 'pod install'\n", default: ''}) +
14+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
1615
'- You rebuilt the app after installing the package\n' +
1716
'- You are not using Expo managed workflow\n';
1817

@@ -29,7 +28,8 @@ const RnBugfender = NativeModules.RnBugfender
2928

3029
class BugfenderClass {
3130
private stringFormatter = new StringFormatter();
32-
private overrideConsoleMethods = new OverrideConsoleMethods(window);
31+
private overrideConsoleMethods =
32+
new (require('./override-console-methods').OverrideConsoleMethods)(window);
3333
private printToConsole = new PrintToConsole(global.console);
3434
private sdkOptions: SDKOptions = new SDKOptions();
3535
private initialized = false;

0 commit comments

Comments
 (0)