Add encrypted notification log storage foundation

This commit is contained in:
ajp_anton
2026-07-23 08:03:19 +00:00
parent 022fb5220f
commit 23af171c29
6 changed files with 271 additions and 0 deletions
@@ -0,0 +1,44 @@
package se.ajpanton.notificationlog.model
import java.util.UUID
/** A rendered-notification event, not the mutable notification itself. */
data class NotificationLogEntry(
val id: String = UUID.randomUUID().toString(),
val recordedAtEpochMillis: Long,
val packageName: String,
val appName: String,
val action: NotificationAction,
val contents: String?,
)
enum class NotificationAction {
APPEARED,
ALREADY_ACTIVE,
EDITED,
APP_CANCELLED,
APP_CANCELLED_ALL,
USER_DISMISSED,
USER_DISMISSED_ALL,
USER_CLICKED,
LISTENER_DISMISSED,
LISTENER_DISMISSED_ALL,
SNOOZED,
TIMED_OUT,
CHANNEL_BANNED,
CHANNEL_REMOVED,
PACKAGE_BANNED,
PACKAGE_CHANGED,
PACKAGE_SUSPENDED,
PROFILE_TURNED_OFF,
USER_STOPPED,
GROUP_SUMMARY_CANCELLED,
GROUP_OPTIMIZED,
UNAUTOBUNDLED,
BUNDLE_DISMISSED,
CLEAR_DATA,
ASSISTANT_CANCELLED,
LOCKDOWN,
SYSTEM_ERROR,
OTHER_REMOVAL,
}