feat: [IMAGES] persist headers to fetch images (#396)

Co-authored-by: Florent Champigny <florent@bere.al>
This commit is contained in:
Florent CHAMPIGNY 2025-11-18 23:59:05 +01:00 committed by GitHub
parent e644d1cce8
commit 9b6ff72ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 1803 additions and 45 deletions

View file

@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 70,
"identityHash": "3c2a9d28f0bbcf44fd34823e76f4477b",
"identityHash": "3977ab4681020f5d331fc22db26c02c5",
"entities": [
{
"tableName": "FloconNetworkCallEntity",
@ -745,7 +745,7 @@
},
{
"tableName": "DeviceImageEntity",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `packageName` TEXT NOT NULL, `url` TEXT NOT NULL, `time` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `packageName`, `url`, `time`), FOREIGN KEY(`deviceId`, `packageName`) REFERENCES `DeviceAppEntity`(`deviceId`, `packageName`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `packageName` TEXT NOT NULL, `url` TEXT NOT NULL, `time` INTEGER NOT NULL, `headersJsonEncoded` TEXT NOT NULL, PRIMARY KEY(`deviceId`, `packageName`, `url`, `time`), FOREIGN KEY(`deviceId`, `packageName`) REFERENCES `DeviceAppEntity`(`deviceId`, `packageName`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "deviceId",
@ -770,6 +770,12 @@
"columnName": "time",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "headersJsonEncoded",
"columnName": "headersJsonEncoded",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
@ -1648,7 +1654,7 @@
],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '3c2a9d28f0bbcf44fd34823e76f4477b')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '3977ab4681020f5d331fc22db26c02c5')"
]
}
}