-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333 from SuhasDissa/vibration
feat: Preset vibration patterns for alarms
- Loading branch information
Showing
12 changed files
with
1,163 additions
and
9 deletions.
There are no files selected for viewing
162 changes: 162 additions & 0 deletions
162
app/schemas/com.bnyro.clock.data.database.AppDatabase/9.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')" | ||
] | ||
} | ||
} |
Oops, something went wrong.