Skip to content

Commit f38c3cb

Browse files
authored
Merge pull request #23 from Richter3766/Feat/issue-#22
2 parents ec79687 + 3699e5f commit f38c3cb

File tree

49 files changed

+1374
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1374
-186
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ kover {
7676
"dagger",
7777
"hilt_aggregated_deps",
7878
"*.di",
79+
"*.presentation"
7980
))
8081
excludes.classes(listOf(
8182
"*_*Factory*",
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
{
2+
"formatVersion": 1,
3+
"database": {
4+
"version": 6,
5+
"identityHash": "276c8233ca0bab70a43013da7b6e75ca",
6+
"entities": [
7+
{
8+
"tableName": "notification",
9+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `appName` TEXT NOT NULL, `title` TEXT NOT NULL, `content` TEXT NOT NULL, `timestamp` INTEGER NOT NULL)",
10+
"fields": [
11+
{
12+
"fieldPath": "id",
13+
"columnName": "id",
14+
"affinity": "INTEGER",
15+
"notNull": true
16+
},
17+
{
18+
"fieldPath": "appName",
19+
"columnName": "appName",
20+
"affinity": "TEXT",
21+
"notNull": true
22+
},
23+
{
24+
"fieldPath": "title",
25+
"columnName": "title",
26+
"affinity": "TEXT",
27+
"notNull": true
28+
},
29+
{
30+
"fieldPath": "content",
31+
"columnName": "content",
32+
"affinity": "TEXT",
33+
"notNull": true
34+
},
35+
{
36+
"fieldPath": "timestamp",
37+
"columnName": "timestamp",
38+
"affinity": "INTEGER",
39+
"notNull": true
40+
}
41+
],
42+
"primaryKey": {
43+
"autoGenerate": true,
44+
"columnNames": [
45+
"id"
46+
]
47+
},
48+
"indices": [
49+
{
50+
"name": "index_notification_appName_title_timestamp",
51+
"unique": false,
52+
"columnNames": [
53+
"appName",
54+
"title",
55+
"timestamp"
56+
],
57+
"orders": [],
58+
"createSql": "CREATE INDEX IF NOT EXISTS `index_notification_appName_title_timestamp` ON `${TABLE_NAME}` (`appName`, `title`, `timestamp`)"
59+
}
60+
],
61+
"foreignKeys": []
62+
},
63+
{
64+
"tableName": "notification_meta",
65+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`notificationId` INTEGER NOT NULL, `intentActive` INTEGER NOT NULL, `intentArray` BLOB NOT NULL, PRIMARY KEY(`notificationId`), FOREIGN KEY(`notificationId`) REFERENCES `notification`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
66+
"fields": [
67+
{
68+
"fieldPath": "notificationId",
69+
"columnName": "notificationId",
70+
"affinity": "INTEGER",
71+
"notNull": true
72+
},
73+
{
74+
"fieldPath": "intentActive",
75+
"columnName": "intentActive",
76+
"affinity": "INTEGER",
77+
"notNull": true
78+
},
79+
{
80+
"fieldPath": "intentArray",
81+
"columnName": "intentArray",
82+
"affinity": "BLOB",
83+
"notNull": true
84+
}
85+
],
86+
"primaryKey": {
87+
"autoGenerate": false,
88+
"columnNames": [
89+
"notificationId"
90+
]
91+
},
92+
"indices": [],
93+
"foreignKeys": [
94+
{
95+
"table": "notification",
96+
"onDelete": "CASCADE",
97+
"onUpdate": "NO ACTION",
98+
"columns": [
99+
"notificationId"
100+
],
101+
"referencedColumns": [
102+
"id"
103+
]
104+
}
105+
]
106+
},
107+
{
108+
"tableName": "notification_icon",
109+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`notificationId` INTEGER NOT NULL, `iconBytes` BLOB NOT NULL, `priorityActive` INTEGER NOT NULL DEFAULT 0, `priority` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`notificationId`), FOREIGN KEY(`notificationId`) REFERENCES `notification`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
110+
"fields": [
111+
{
112+
"fieldPath": "notificationId",
113+
"columnName": "notificationId",
114+
"affinity": "INTEGER",
115+
"notNull": true
116+
},
117+
{
118+
"fieldPath": "iconBytes",
119+
"columnName": "iconBytes",
120+
"affinity": "BLOB",
121+
"notNull": true
122+
},
123+
{
124+
"fieldPath": "priorityActive",
125+
"columnName": "priorityActive",
126+
"affinity": "INTEGER",
127+
"notNull": true,
128+
"defaultValue": "0"
129+
},
130+
{
131+
"fieldPath": "priority",
132+
"columnName": "priority",
133+
"affinity": "INTEGER",
134+
"notNull": true,
135+
"defaultValue": "0"
136+
}
137+
],
138+
"primaryKey": {
139+
"autoGenerate": false,
140+
"columnNames": [
141+
"notificationId"
142+
]
143+
},
144+
"indices": [],
145+
"foreignKeys": [
146+
{
147+
"table": "notification",
148+
"onDelete": "CASCADE",
149+
"onUpdate": "NO ACTION",
150+
"columns": [
151+
"notificationId"
152+
],
153+
"referencedColumns": [
154+
"id"
155+
]
156+
}
157+
]
158+
},
159+
{
160+
"tableName": "app_icon",
161+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`notiAppName` TEXT NOT NULL, `iconBytes` BLOB NOT NULL, `priorityActive` INTEGER NOT NULL DEFAULT 0, `priority` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`notiAppName`))",
162+
"fields": [
163+
{
164+
"fieldPath": "notiAppName",
165+
"columnName": "notiAppName",
166+
"affinity": "TEXT",
167+
"notNull": true
168+
},
169+
{
170+
"fieldPath": "iconBytes",
171+
"columnName": "iconBytes",
172+
"affinity": "BLOB",
173+
"notNull": true
174+
},
175+
{
176+
"fieldPath": "priorityActive",
177+
"columnName": "priorityActive",
178+
"affinity": "INTEGER",
179+
"notNull": true,
180+
"defaultValue": "0"
181+
},
182+
{
183+
"fieldPath": "priority",
184+
"columnName": "priority",
185+
"affinity": "INTEGER",
186+
"notNull": true,
187+
"defaultValue": "0"
188+
}
189+
],
190+
"primaryKey": {
191+
"autoGenerate": false,
192+
"columnNames": [
193+
"notiAppName"
194+
]
195+
},
196+
"indices": [],
197+
"foreignKeys": []
198+
}
199+
],
200+
"views": [],
201+
"setupQueries": [
202+
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
203+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '276c8233ca0bab70a43013da7b6e75ca')"
204+
]
205+
}
206+
}

0 commit comments

Comments
 (0)