Commit c340191d authored by Wilko Manger's avatar Wilko Manger

Revert "Merge branch 'moor-leak' into 'master'"

This reverts merge request !24
parent d1bbab06
......@@ -29,7 +29,6 @@ import 'package:path/path.dart' as path;
import 'chat_order/bloc.dart';
import 'auth/bloc.dart';
import 'models/chat.dart';
import 'util/store.dart';
class Matrix {
static MoorStore _store;
......
// Copyright (C) 2020 Mathieu Velten
//
// This file is part of Pattle.
//
// Pattle is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Pattle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with Pattle. If not, see <https://www.gnu.org/licenses/>.
import 'dart:io';
import 'package:matrix_sdk/matrix_sdk.dart';
import 'package:moor_ffi/moor_ffi.dart';
abstract class MoorStoreLocation extends StoreLocation<MoorStore> {
MoorStoreLocation();
factory MoorStoreLocation.file(File file) => MoorStoreFileLocation(file);
}
class MoorStoreFileLocation extends MoorStoreLocation {
final File file;
MoorStoreFileLocation(this.file);
@override
MoorStore create() => MoorStore(VmDatabase(file));
}
\ No newline at end of file
......@@ -357,12 +357,12 @@ packages:
source: hosted
version: "3.0.2"
moor_ffi:
dependency: "direct main"
dependency: transitive
description:
name: moor_ffi
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.0"
version: "0.6.0"
nested:
dependency: transitive
description:
......
......@@ -66,8 +66,6 @@ dependencies:
flutter_local_notifications: ^0.8.4
moor_ffi: 0.5.0
dev_dependencies:
flutter_launcher_icons: ^0.7.2+1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment