Skip to content

Commit

Permalink
remove windows from ci
Browse files Browse the repository at this point in the history
  • Loading branch information
frank06 committed Apr 30, 2024
1 parent 46ec3be commit 84c7ae7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
matrix:
platform:
- linux
- windows
- macos
- web
include:
Expand Down
2 changes: 0 additions & 2 deletions lib/flutter_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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';

Expand Down
13 changes: 0 additions & 13 deletions lib/src/storage/local_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ class LocalStorage {
await destroy();
}

if (Platform.isWindows) {
open.overrideFor(OperatingSystem.windows, _openOnWindows);
}

db = sqlite3.open(path, mutex: false);

if (inIsolate) {
Expand Down Expand Up @@ -113,12 +109,3 @@ enum LocalStorageClearStrategy {
final localStorageProvider = Provider<LocalStorage>(
(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);
}

0 comments on commit 84c7ae7

Please sign in to comment.