Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions dargon2/lib/src/native/dart_lib_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import 'dart:io';
import 'dart:isolate';

import 'package:dargon2_core/dargon2_core.dart';
// ignore: deprecated_member_use
import 'dart:cli';

/// The Dylib Loader for any Dart native apps, regardless of platform. Loads the dylib
/// from the given path, based off a conditional import on dart:ui
Expand All @@ -31,7 +29,7 @@ class DartLibLoader implements LibLoader {
String getPath() {
final rootLibrary = 'package:dargon2/dargon2.dart';
// ignore: deprecated_member_use
var rootPath = waitFor(Isolate.resolvePackageUri(Uri.parse(rootLibrary)))!
var rootPath = Isolate.resolvePackageUriSync(Uri.parse(rootLibrary))!
.resolve('src/blobs/')
.toFilePath(windows: Platform.isWindows);
if (Platform.isMacOS) return '${rootPath}libargon2-darwin.dylib';
Expand Down
2 changes: 1 addition & 1 deletion dargon2/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/tmthecoder/dargon2/blob/main/dargon2
repository: https://github.com/tmthecoder/dargon2

environment:
sdk: '>=2.15.0 <3.0.0'
sdk: '>=3.2.0 <4.0.0'

dependencies:
dargon2_core: '^2.1.0'
Expand Down