|
| 1 | +import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; |
| 2 | +import {TurboModuleRegistry} from 'react-native'; |
| 3 | +import type {Float,Int32} from 'react-native/Libraries/Types/CodegenTypes'; |
| 4 | + |
| 5 | +export interface Spec extends TurboModule { |
| 6 | + activateLogger(key: string): void; |
| 7 | + setApiUrl(apiUrl: string): void; |
| 8 | + setBaseUrl(baseUrl: string): void; |
| 9 | + setForceEnabled(enabled: boolean): void; |
| 10 | + overrideDeviceName(deviceName: string): void; |
| 11 | + setMaximumLocalStorageSize(size: number): void; |
| 12 | + getDeviceUrl(): Promise<string>; |
| 13 | + getSessionUrl(): Promise<string>; |
| 14 | + removeDeviceKey(key: string): void; |
| 15 | + enableLogcatLogging(): void; |
| 16 | + enableCrashReporting(): void; |
| 17 | + enableUIEventLogging(): void; |
| 18 | + setDeviceBoolean(deviceKey: string, boolValue: boolean): void; |
| 19 | + setDeviceString(deviceKey: string, stringValue: string): void; |
| 20 | + setDeviceInteger(deviceKey: string, intValue: Int32): void; |
| 21 | + setDeviceFloat(deviceKey: string, floatValue: Float): void; |
| 22 | + info(tag: string, text: string): void; |
| 23 | + trace(tag: string, text: string): void; |
| 24 | + fatal(tag: string, text: string): void; |
| 25 | + debug(tag: string, text: string): void; |
| 26 | + warning(tag: string, text: string): void; |
| 27 | + error(tag: string, text: string): void; |
| 28 | + log(lineNumber: Int32, method: string, file: string, logLevel: Int32, tag: string, message: string): void; |
| 29 | + sendIssue(tag: string, text: string): Promise<string>; |
| 30 | + sendCrash(tag: string, text: string): Promise<string>; |
| 31 | + forceSendOnce(): void; |
| 32 | + sendUserFeedback(title: string, text: string): Promise<string>; |
| 33 | + showUserFeedback(title: string, text: string): Promise<string>; |
| 34 | +} |
| 35 | + |
| 36 | +export default TurboModuleRegistry.get<Spec>( |
| 37 | + 'RnBugfender', |
| 38 | +) as Spec | null; |
0 commit comments