Skip to content

Commit

Permalink
(donwloader) Fix #18
Browse files Browse the repository at this point in the history
This error occured by libviolet double initialization
  • Loading branch information
violet-dev committed Aug 5, 2020
1 parent 28606a3 commit 1e99672
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 0 deletions.
Binary file modified assets/libviolet/arm64-v8a/libviolet.so
Binary file not shown.
Binary file modified assets/libviolet/armeabi-v7a/libviolet.so
Binary file not shown.
Binary file modified assets/libviolet/x86/libviolet.so
Binary file not shown.
Binary file modified assets/libviolet/x86_64/libviolet.so
Binary file not shown.
1 change: 1 addition & 0 deletions lib/downloader/native_downloader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class NativeDownloader {
return null;
}
final libFile = File(dir.path + "/libviolet.so");
if (await libFile.exists()) return libFile.path;
if (Platform.isAndroid) {
final devicePlugin = DeviceInfoPlugin();
final deviceInfo = await devicePlugin.androidInfo;
Expand Down

0 comments on commit 1e99672

Please sign in to comment.