EPNW / opus_flutter

Repository for the federal organized opus_flutter plugin, which is needed to easily obtain a DynamicLibrary of opus for the use in opus_dart on flutter platforms.
https://pub.dev/packages/opus_flutter
10 stars 13 forks source link

Check if copying in Windows is really needed #12

Closed EP-u-NW closed 3 years ago

EP-u-NW commented 3 years ago

On Windows, we copy the dll from the root bundle to a temporary folder and open it there: https://github.com/EPNW/opus_flutter/blob/4ededbe2809124fd0ffa05ec08c79d0ddbeb74c4/opus_flutter_windows/lib/opus_flutter_windows.dart#L38

We could try if we can access the file directly from the root bundle (using a file object). If so, there woul be no need to copy it to a temporary location.

EP-u-NW commented 3 years ago

I checked it, we need copying