2024-01-05 17:30:54 +08:00
|
|
|
import 'package:appflowy/plugins/database/calendar/calendar.dart';
|
|
|
|
import 'package:appflowy/plugins/database/board/board.dart';
|
|
|
|
import 'package:appflowy/plugins/database/grid/grid.dart';
|
2023-02-26 16:27:17 +08:00
|
|
|
import 'package:appflowy/startup/plugin/plugin.dart';
|
|
|
|
import 'package:appflowy/startup/startup.dart';
|
|
|
|
import 'package:appflowy/plugins/blank/blank.dart';
|
|
|
|
import 'package:appflowy/plugins/document/document.dart';
|
|
|
|
import 'package:appflowy/plugins/trash/trash.dart';
|
2022-02-28 22:38:53 +08:00
|
|
|
|
|
|
|
class PluginLoadTask extends LaunchTask {
|
2023-05-17 11:03:33 +08:00
|
|
|
const PluginLoadTask();
|
|
|
|
|
2022-02-28 22:38:53 +08:00
|
|
|
@override
|
|
|
|
LaunchTaskType get type => LaunchTaskType.dataProcessing;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> initialize(LaunchContext context) async {
|
2022-03-01 11:22:39 +08:00
|
|
|
registerPlugin(builder: BlankPluginBuilder(), config: BlankPluginConfig());
|
|
|
|
registerPlugin(builder: TrashPluginBuilder(), config: TrashPluginConfig());
|
2022-03-01 10:25:21 +08:00
|
|
|
registerPlugin(builder: DocumentPluginBuilder());
|
2022-03-04 08:22:49 +08:00
|
|
|
registerPlugin(builder: GridPluginBuilder(), config: GridPluginConfig());
|
2022-06-11 15:51:53 +08:00
|
|
|
registerPlugin(builder: BoardPluginBuilder(), config: BoardPluginConfig());
|
2023-01-08 20:51:19 +08:00
|
|
|
registerPlugin(
|
2023-04-10 15:10:42 +08:00
|
|
|
builder: CalendarPluginBuilder(),
|
|
|
|
config: CalendarPluginConfig(),
|
|
|
|
);
|
2022-02-28 22:38:53 +08:00
|
|
|
}
|
2023-10-24 23:13:51 +08:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> dispose() async {}
|
2022-02-28 22:38:53 +08:00
|
|
|
}
|