From 84c7ae73c8979e8dd26a84f7be687838706356e1 Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 30 Apr 2024 11:54:57 -0300 Subject: [PATCH] remove windows from ci --- .github/workflows/test.yml | 1 - lib/flutter_data.dart | 2 -- lib/src/storage/local_storage.dart | 13 ------------- 3 files changed, 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 845af701..f483c2ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,6 @@ jobs: matrix: platform: - linux - - windows - macos - web include: diff --git a/lib/flutter_data.dart b/lib/flutter_data.dart index ef3e8688..5157e820 100644 --- a/lib/flutter_data.dart +++ b/lib/flutter_data.dart @@ -3,7 +3,6 @@ library flutter_data; // import external packages import 'dart:async'; import 'dart:convert'; -import 'dart:ffi'; import 'dart:io'; import 'dart:isolate'; import 'dart:math' show Random; @@ -16,7 +15,6 @@ import 'package:inflection3/inflection3.dart' as inflection; import 'package:meta/meta.dart'; import 'package:path/path.dart' as path_helper; import 'package:riverpod/riverpod.dart'; -import 'package:sqlite3/open.dart'; import 'package:sqlite3/sqlite3.dart'; import 'package:state_notifier/state_notifier.dart'; diff --git a/lib/src/storage/local_storage.dart b/lib/src/storage/local_storage.dart index b9aacdcc..841d10bd 100644 --- a/lib/src/storage/local_storage.dart +++ b/lib/src/storage/local_storage.dart @@ -29,10 +29,6 @@ class LocalStorage { await destroy(); } - if (Platform.isWindows) { - open.overrideFor(OperatingSystem.windows, _openOnWindows); - } - db = sqlite3.open(path, mutex: false); if (inIsolate) { @@ -113,12 +109,3 @@ enum LocalStorageClearStrategy { final localStorageProvider = Provider( (ref) => LocalStorage(baseDirFn: () => ''), ); - -// platforms - -DynamicLibrary _openOnWindows() { - final scriptDir = File(Platform.script.toFilePath()).parent; - final libraryNextToScript = - File(path_helper.join(scriptDir.path, 'sqlite3.dll')); - return DynamicLibrary.open(libraryNextToScript.path); -}