Skip to content

Commit

Permalink
Merge pull request #333 from SuhasDissa/vibration
Browse files Browse the repository at this point in the history
feat: Preset vibration patterns for alarms
  • Loading branch information
SuhasDissa authored Apr 25, 2024
2 parents 2559350 + eb6be50 commit 38a2d78
Show file tree
Hide file tree
Showing 12 changed files with 1,163 additions and 9 deletions.
162 changes: 162 additions & 0 deletions app/schemas/com.bnyro.clock.data.database.AppDatabase/9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"formatVersion": 1,
"database": {
"version": 9,
"identityHash": "0f260fce2690af3eaa52a9467ce1e656",
"entities": [
{
"tableName": "timeZones",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `zoneId` TEXT NOT NULL, `offset` INTEGER NOT NULL, `zoneName` TEXT NOT NULL, `countryName` TEXT NOT NULL, PRIMARY KEY(`key`))",
"fields": [
{
"fieldPath": "key",
"columnName": "key",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "zoneId",
"columnName": "zoneId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "offset",
"columnName": "offset",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "zoneName",
"columnName": "zoneName",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "countryName",
"columnName": "countryName",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"key"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "alarms",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `time` INTEGER NOT NULL, `label` TEXT, `enabled` INTEGER NOT NULL, `days` TEXT NOT NULL, `vibrate` INTEGER NOT NULL, `soundName` TEXT, `soundUri` TEXT, `repeat` INTEGER NOT NULL DEFAULT 1, `snoozeEnabled` INTEGER NOT NULL DEFAULT 1, `snoozeMinutes` INTEGER NOT NULL DEFAULT 10, `soundEnabled` INTEGER NOT NULL DEFAULT 1, `vibrationPattern` TEXT NOT NULL DEFAULT '1000,1000,1000,1000,1000', `vibrationPatternName` TEXT NOT NULL DEFAULT 'Default')",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "time",
"columnName": "time",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "label",
"columnName": "label",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "enabled",
"columnName": "enabled",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "days",
"columnName": "days",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "vibrate",
"columnName": "vibrate",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "soundName",
"columnName": "soundName",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "soundUri",
"columnName": "soundUri",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "repeat",
"columnName": "repeat",
"affinity": "INTEGER",
"notNull": true,
"defaultValue": "1"
},
{
"fieldPath": "snoozeEnabled",
"columnName": "snoozeEnabled",
"affinity": "INTEGER",
"notNull": true,
"defaultValue": "1"
},
{
"fieldPath": "snoozeMinutes",
"columnName": "snoozeMinutes",
"affinity": "INTEGER",
"notNull": true,
"defaultValue": "10"
},
{
"fieldPath": "soundEnabled",
"columnName": "soundEnabled",
"affinity": "INTEGER",
"notNull": true,
"defaultValue": "1"
},
{
"fieldPath": "vibrationPattern",
"columnName": "vibrationPattern",
"affinity": "TEXT",
"notNull": true,
"defaultValue": "'1000,1000,1000,1000,1000'"
},
{
"fieldPath": "vibrationPatternName",
"columnName": "vibrationPatternName",
"affinity": "TEXT",
"notNull": true,
"defaultValue": "'Default'"
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
}
],
"views": [],
"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, '0f260fce2690af3eaa52a9467ce1e656')"
]
}
}
Loading

0 comments on commit 38a2d78

Please sign in to comment.