Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions AndroidApp/.idea/deploymentTargetSelector.xml

This file was deleted.

4 changes: 4 additions & 0 deletions AndroidApp/data/repository/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ dependencies {
// room
api(libs.androidx.room.runtime)
ksp(libs.androidx.room.compiler)
}

ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "3689bb68d1aff45c3817ae25ca5527a2",
"entities": [
{
"tableName": "conditions",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`target_package_name` TEXT NOT NULL, `condition` TEXT NOT NULL, PRIMARY KEY(`target_package_name`))",
"fields": [
{
"fieldPath": "targetPackageName",
"columnName": "target_package_name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "condition",
"columnName": "condition",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"target_package_name"
]
}
},
{
"tableName": "targets",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`label` TEXT NOT NULL, `package_name` TEXT NOT NULL, PRIMARY KEY(`package_name`))",
"fields": [
{
"fieldPath": "label",
"columnName": "label",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "packageName",
"columnName": "package_name",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"package_name"
]
}
}
],
"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, '3689bb68d1aff45c3817ae25ca5527a2')"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import me.nya_n.notificationnotifier.model.InstalledApp
InstalledApp::class
],
version = 1,
exportSchema = false
exportSchema = true,
autoMigrations = []
)
abstract class DB : RoomDatabase() {

Expand Down