mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-21 22:57:17 +01:00
* feat(mobile): create react-native-usb library * feat(transport): add react-native-usb layer * chore: align package.json scripts with rest of repo * chore: align formatting with rest of monorepo * chore: refactor types * chore: add xml values for Trezor devices filter * chore: implement new transport in mobile app * fix: fix write error - data type error * fix: dedupe deps * fix(mobile): rework permission request logic * chore: remove old transport-native * chore: move tranport-native to dynamically loaded package * chore: remove unused files * chore: cleanup + pr comments * chore: update refs * fix tsconfig.json * fix types * fix: fix protobuf typo
19 lines
571 B
TypeScript
19 lines
571 B
TypeScript
import { OnConnectEvent } from './ReactNativeUsb.types';
|
|
|
|
// We don't support USB on iOS :(
|
|
export class WebUSB {
|
|
public getDevices = () => [];
|
|
|
|
set onconnect(_listener: (event: OnConnectEvent) => void) {
|
|
// do nothing
|
|
}
|
|
set ondisconnect(_listener: (event: OnConnectEvent) => void) {
|
|
// do nothing
|
|
}
|
|
|
|
requestDevice = async (..._params: any[]): Promise<any> => {};
|
|
addEventListener = (..._params: any[]): any => {};
|
|
removeEventListener = (..._params: any[]): any => {};
|
|
dispatchEvent = (..._params: any[]): any => {};
|
|
}
|