mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-14 18:12:24 -06:00
fix: Enable logging in production
This commit is contained in:
@@ -7,5 +7,5 @@ enum NotificationResponseButtonAction {
|
||||
|
||||
@JsonEnum()
|
||||
enum NotificationResponseOpenAction {
|
||||
openDownloadedDocumentPath;
|
||||
openDirectory;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
enum NotificationChannel {
|
||||
task("task_channel", "Paperless tasks"),
|
||||
documentDownload("document_download_channel", "Document downloads");
|
||||
documentDownload("document_download_channel", "Document downloads"),
|
||||
fileDownload("file_download_channel", "File downloads");
|
||||
|
||||
final String id;
|
||||
final String name;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:paperless_mobile/features/notifications/models/notification_actions.dart';
|
||||
import 'package:paperless_mobile/features/notifications/models/notification_payloads/notification_tap/notification_tap_response_payload.dart';
|
||||
|
||||
part 'open_directory_notification_response_payload.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class OpenDirectoryNotificationResponsePayload
|
||||
extends NotificationTapResponsePayload {
|
||||
final String filePath;
|
||||
OpenDirectoryNotificationResponsePayload({
|
||||
required this.filePath,
|
||||
super.type = NotificationResponseOpenAction.openDirectory,
|
||||
});
|
||||
|
||||
factory OpenDirectoryNotificationResponsePayload.fromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$OpenDirectoryNotificationResponsePayloadFromJson(json);
|
||||
@override
|
||||
Map<String, dynamic> toJson() =>
|
||||
_$OpenDirectoryNotificationResponsePayloadToJson(this);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:paperless_mobile/features/notifications/models/notification_actions.dart';
|
||||
import 'package:paperless_mobile/features/notifications/models/notification_payloads/notification_tap/notification_tap_response_payload.dart';
|
||||
|
||||
part 'open_downloaded_document_payload.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class OpenDownloadedDocumentPayload extends NotificationTapResponsePayload {
|
||||
final String filePath;
|
||||
OpenDownloadedDocumentPayload({
|
||||
required this.filePath,
|
||||
super.type = NotificationResponseOpenAction.openDownloadedDocumentPath,
|
||||
});
|
||||
|
||||
factory OpenDownloadedDocumentPayload.fromJson(Map<String, dynamic> json) =>
|
||||
_$OpenDownloadedDocumentPayloadFromJson(json);
|
||||
@override
|
||||
Map<String, dynamic> toJson() => _$OpenDownloadedDocumentPayloadToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user