Skip to content

Commit

Permalink
Update macOS interop APIs
Browse files Browse the repository at this point in the history
Signed-off-by: wangkun <[email protected]>
  • Loading branch information
wangkun committed Feb 7, 2022
1 parent 46d455a commit 236112f
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 171 deletions.
2 changes: 1 addition & 1 deletion example/listDeviceProducts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:ffi';
import 'dart:io';

import 'package:ffi/ffi.dart' show UnsignedChar, calloc;
import 'package:libusb/libusb_windows.dart';
import 'package:libusb/libusb_macos.dart';

final DynamicLibrary Function() loadLibrary = () {
if (Platform.isWindows) {
Expand Down
2 changes: 1 addition & 1 deletion example/listdevs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:io';

import 'package:ffi/ffi.dart' show calloc;
import 'package:convert/convert.dart';
import 'package:libusb/libusb_windows.dart';
import 'package:libusb/libusb_macos.dart';

final DynamicLibrary Function() loadLibrary = () {
if (Platform.isWindows) {
Expand Down
Loading

0 comments on commit 236112f

Please sign in to comment.