You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This repository contains all the code related to the Android native application
11
11
12
12
## How to build
13
13
14
-
-Android Studio 3.0+ comes with built in kotlin support, so install the latest version (3.0+) of Android Studio (recommended). For older versions, you need to manually install kotlin plugin. Go to `File > Settings > Plugins` and search for `kotlin` and install it. You'll need to restart the IDE in order to see the changes.
14
+
-You need to download the latest [Android Studio Preview](https://developer.android.com/studio/preview/) version since the stable IDE version does not support the [JetPack](https://developer.android.com/jetpack/) that is beeing used on this application.
15
15
- Make sure that you have the latest **gradle** and the **android plugin** versions installed. Go to `File > Project Structure > Project` and make sure that you have the latest versions installed. Refer [this](https://developer.android.com/studio/releases/gradle-plugin.html#updating-gradle) to see the compatible versions.
16
16
- Kotlin is already configured in the project. To check, go to `Tools > Kotlin > Configure Kotlin in project`. A message saying kotlin is already configured in the project pops up. You can update kotlin to the latest version by going to `Tools > Kotlin > Configure Kotlin updates` and download the latest version of kotlin.
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `username` TEXT, `name` TEXT, `status` TEXT NOT NULL, `utcOffset` REAL, PRIMARY KEY(`id`))",
10
+
"fields": [
11
+
{
12
+
"fieldPath": "id",
13
+
"columnName": "id",
14
+
"affinity": "TEXT",
15
+
"notNull": true
16
+
},
17
+
{
18
+
"fieldPath": "username",
19
+
"columnName": "username",
20
+
"affinity": "TEXT",
21
+
"notNull": false
22
+
},
23
+
{
24
+
"fieldPath": "name",
25
+
"columnName": "name",
26
+
"affinity": "TEXT",
27
+
"notNull": false
28
+
},
29
+
{
30
+
"fieldPath": "status",
31
+
"columnName": "status",
32
+
"affinity": "TEXT",
33
+
"notNull": true
34
+
},
35
+
{
36
+
"fieldPath": "utcOffset",
37
+
"columnName": "utcOffset",
38
+
"affinity": "REAL",
39
+
"notNull": false
40
+
}
41
+
],
42
+
"primaryKey": {
43
+
"columnNames": [
44
+
"id"
45
+
],
46
+
"autoGenerate": false
47
+
},
48
+
"indices": [
49
+
{
50
+
"name": "index_users_username",
51
+
"unique": false,
52
+
"columnNames": [
53
+
"username"
54
+
],
55
+
"createSql": "CREATE INDEX `index_users_username` ON `${TABLE_NAME}` (`username`)"
56
+
}
57
+
],
58
+
"foreignKeys": []
59
+
},
60
+
{
61
+
"tableName": "chatrooms",
62
+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `subscriptionId` TEXT NOT NULL, `type` TEXT NOT NULL, `name` TEXT NOT NULL, `fullname` TEXT, `userId` TEXT, `ownerId` TEXT, `readonly` INTEGER, `isDefault` INTEGER, `favorite` INTEGER, `open` INTEGER NOT NULL, `alert` INTEGER NOT NULL, `unread` INTEGER NOT NULL, `userMentions` INTEGER, `groupMentions` INTEGER, `updatedAt` INTEGER, `timestamp` INTEGER, `lastSeen` INTEGER, `lastMessageText` TEXT, `lastMessageUserId` TEXT, `lastMessageTimestamp` INTEGER, PRIMARY KEY(`id`), FOREIGN KEY(`ownerId`) REFERENCES `users`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`userId`) REFERENCES `users`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`lastMessageUserId`) REFERENCES `users`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
63
+
"fields": [
64
+
{
65
+
"fieldPath": "id",
66
+
"columnName": "id",
67
+
"affinity": "TEXT",
68
+
"notNull": true
69
+
},
70
+
{
71
+
"fieldPath": "subscriptionId",
72
+
"columnName": "subscriptionId",
73
+
"affinity": "TEXT",
74
+
"notNull": true
75
+
},
76
+
{
77
+
"fieldPath": "type",
78
+
"columnName": "type",
79
+
"affinity": "TEXT",
80
+
"notNull": true
81
+
},
82
+
{
83
+
"fieldPath": "name",
84
+
"columnName": "name",
85
+
"affinity": "TEXT",
86
+
"notNull": true
87
+
},
88
+
{
89
+
"fieldPath": "fullname",
90
+
"columnName": "fullname",
91
+
"affinity": "TEXT",
92
+
"notNull": false
93
+
},
94
+
{
95
+
"fieldPath": "userId",
96
+
"columnName": "userId",
97
+
"affinity": "TEXT",
98
+
"notNull": false
99
+
},
100
+
{
101
+
"fieldPath": "ownerId",
102
+
"columnName": "ownerId",
103
+
"affinity": "TEXT",
104
+
"notNull": false
105
+
},
106
+
{
107
+
"fieldPath": "readonly",
108
+
"columnName": "readonly",
109
+
"affinity": "INTEGER",
110
+
"notNull": false
111
+
},
112
+
{
113
+
"fieldPath": "isDefault",
114
+
"columnName": "isDefault",
115
+
"affinity": "INTEGER",
116
+
"notNull": false
117
+
},
118
+
{
119
+
"fieldPath": "favorite",
120
+
"columnName": "favorite",
121
+
"affinity": "INTEGER",
122
+
"notNull": false
123
+
},
124
+
{
125
+
"fieldPath": "open",
126
+
"columnName": "open",
127
+
"affinity": "INTEGER",
128
+
"notNull": true
129
+
},
130
+
{
131
+
"fieldPath": "alert",
132
+
"columnName": "alert",
133
+
"affinity": "INTEGER",
134
+
"notNull": true
135
+
},
136
+
{
137
+
"fieldPath": "unread",
138
+
"columnName": "unread",
139
+
"affinity": "INTEGER",
140
+
"notNull": true
141
+
},
142
+
{
143
+
"fieldPath": "userMentions",
144
+
"columnName": "userMentions",
145
+
"affinity": "INTEGER",
146
+
"notNull": false
147
+
},
148
+
{
149
+
"fieldPath": "groupMentions",
150
+
"columnName": "groupMentions",
151
+
"affinity": "INTEGER",
152
+
"notNull": false
153
+
},
154
+
{
155
+
"fieldPath": "updatedAt",
156
+
"columnName": "updatedAt",
157
+
"affinity": "INTEGER",
158
+
"notNull": false
159
+
},
160
+
{
161
+
"fieldPath": "timestamp",
162
+
"columnName": "timestamp",
163
+
"affinity": "INTEGER",
164
+
"notNull": false
165
+
},
166
+
{
167
+
"fieldPath": "lastSeen",
168
+
"columnName": "lastSeen",
169
+
"affinity": "INTEGER",
170
+
"notNull": false
171
+
},
172
+
{
173
+
"fieldPath": "lastMessageText",
174
+
"columnName": "lastMessageText",
175
+
"affinity": "TEXT",
176
+
"notNull": false
177
+
},
178
+
{
179
+
"fieldPath": "lastMessageUserId",
180
+
"columnName": "lastMessageUserId",
181
+
"affinity": "TEXT",
182
+
"notNull": false
183
+
},
184
+
{
185
+
"fieldPath": "lastMessageTimestamp",
186
+
"columnName": "lastMessageTimestamp",
187
+
"affinity": "INTEGER",
188
+
"notNull": false
189
+
}
190
+
],
191
+
"primaryKey": {
192
+
"columnNames": [
193
+
"id"
194
+
],
195
+
"autoGenerate": false
196
+
},
197
+
"indices": [
198
+
{
199
+
"name": "index_chatrooms_userId",
200
+
"unique": false,
201
+
"columnNames": [
202
+
"userId"
203
+
],
204
+
"createSql": "CREATE INDEX `index_chatrooms_userId` ON `${TABLE_NAME}` (`userId`)"
205
+
},
206
+
{
207
+
"name": "index_chatrooms_ownerId",
208
+
"unique": false,
209
+
"columnNames": [
210
+
"ownerId"
211
+
],
212
+
"createSql": "CREATE INDEX `index_chatrooms_ownerId` ON `${TABLE_NAME}` (`ownerId`)"
213
+
},
214
+
{
215
+
"name": "index_chatrooms_subscriptionId",
216
+
"unique": true,
217
+
"columnNames": [
218
+
"subscriptionId"
219
+
],
220
+
"createSql": "CREATE UNIQUE INDEX `index_chatrooms_subscriptionId` ON `${TABLE_NAME}` (`subscriptionId`)"
221
+
},
222
+
{
223
+
"name": "index_chatrooms_updatedAt",
224
+
"unique": false,
225
+
"columnNames": [
226
+
"updatedAt"
227
+
],
228
+
"createSql": "CREATE INDEX `index_chatrooms_updatedAt` ON `${TABLE_NAME}` (`updatedAt`)"
229
+
}
230
+
],
231
+
"foreignKeys": [
232
+
{
233
+
"table": "users",
234
+
"onDelete": "NO ACTION",
235
+
"onUpdate": "NO ACTION",
236
+
"columns": [
237
+
"ownerId"
238
+
],
239
+
"referencedColumns": [
240
+
"id"
241
+
]
242
+
},
243
+
{
244
+
"table": "users",
245
+
"onDelete": "NO ACTION",
246
+
"onUpdate": "NO ACTION",
247
+
"columns": [
248
+
"userId"
249
+
],
250
+
"referencedColumns": [
251
+
"id"
252
+
]
253
+
},
254
+
{
255
+
"table": "users",
256
+
"onDelete": "NO ACTION",
257
+
"onUpdate": "NO ACTION",
258
+
"columns": [
259
+
"lastMessageUserId"
260
+
],
261
+
"referencedColumns": [
262
+
"id"
263
+
]
264
+
}
265
+
]
266
+
}
267
+
],
268
+
"setupQueries": [
269
+
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
270
+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"06359a8c2943365dd094bc5dff210203\")"
0 commit comments