From e1a605f727ae5feb18523bafcb882de35e1945e1 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Mon, 13 Jul 2020 12:54:30 +0000 Subject: [PATCH] load ddl for windows. --- CHANGELOG.md | 4 ++++ lib/argon2_ffi_base.dart | 4 +++- pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97c80fa..ecb4816 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.1.1] + +* On windows load plugin dll + ## [0.1.0+1] * Fix loading of shared library. diff --git a/lib/argon2_ffi_base.dart b/lib/argon2_ffi_base.dart index c45a440..4f9dd6d 100644 --- a/lib/argon2_ffi_base.dart +++ b/lib/argon2_ffi_base.dart @@ -43,7 +43,9 @@ class Argon2FfiFlutter extends Argon2Base { ? DynamicLibrary.open('libargon2_ffi.so') : Platform.isLinux ? DynamicLibrary.open('libargon2_ffi_plugin.so') - : DynamicLibrary.executable(); + : Platform.isWindows + ? DynamicLibrary.open('argon2_ffi_plugin.dll') + : DynamicLibrary.executable(); _nativeAdd = argon2lib .lookup>('native_add') .asFunction(); diff --git a/pubspec.yaml b/pubspec.yaml index de9b404..c0014d9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: argon2_ffi_base description: Base package defining the interface for an Argon2 implementation. -version: 0.1.0+1 +version: 0.1.1 homepage: https://github.com/authpass/argon2_ffi_base environment: