Browse Source

load ddl for windows.

master
Herbert Poul 5 years ago
parent
commit
e1a605f727
  1. 4
      CHANGELOG.md
  2. 4
      lib/argon2_ffi_base.dart
  3. 2
      pubspec.yaml

4
CHANGELOG.md

@ -1,3 +1,7 @@
## [0.1.1]
* On windows load plugin dll
## [0.1.0+1]
* Fix loading of shared library.

4
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<NativeFunction<Int32 Function(Int32, Int32)>>('native_add')
.asFunction();

2
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:

Loading…
Cancel
Save