Skip to content

Commit 51068cf

Browse files
Surjit Kumar SahooSurjit Kumar Sahoo
authored andcommitted
fix: build issue
1 parent 5aad959 commit 51068cf

File tree

5 files changed

+399
-2
lines changed

5 files changed

+399
-2
lines changed

.github/workflows/build_app.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Change wrapper permissions
3737
run: chmod +x ./gradlew
3838

39+
- name: Create Schemas Directory
40+
run: mkdir -p app/schemas
41+
3942
# Run Build Project
4043
- name: Build gradle project
41-
run: ./gradlew build -Proom.schemaLocation=$GITHUB_WORKSPACE/app/schemas
44+
run: ./gradlew build

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
java-version: '21'
2424
cache: 'gradle'
2525

26+
- name: Create Schemas Directory
27+
run: mkdir -p app/schemas
28+
2629
- name: Decode Keystore
2730
run: |
2831
echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 --decode > app/kahani-release.jks

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ google-services.json
3434
*.hprof
3535

3636
# Schemas
37-
app/schemas
3837
.DS_Store
Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
{
2+
"formatVersion": 1,
3+
"database": {
4+
"version": 14,
5+
"identityHash": "c82cbd6cc4b5d043bc4c63ccd1323a2e",
6+
"entities": [
7+
{
8+
"tableName": "detailed_books",
9+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `subtitle` TEXT, `author` TEXT, `narrator` TEXT, `year` TEXT, `abstract` TEXT, `publisher` TEXT, `duration` INTEGER NOT NULL, `libraryId` TEXT, `seriesJson` TEXT, `seriesNames` TEXT, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
10+
"fields": [
11+
{
12+
"fieldPath": "id",
13+
"columnName": "id",
14+
"affinity": "TEXT",
15+
"notNull": true
16+
},
17+
{
18+
"fieldPath": "title",
19+
"columnName": "title",
20+
"affinity": "TEXT",
21+
"notNull": true
22+
},
23+
{
24+
"fieldPath": "subtitle",
25+
"columnName": "subtitle",
26+
"affinity": "TEXT"
27+
},
28+
{
29+
"fieldPath": "author",
30+
"columnName": "author",
31+
"affinity": "TEXT"
32+
},
33+
{
34+
"fieldPath": "narrator",
35+
"columnName": "narrator",
36+
"affinity": "TEXT"
37+
},
38+
{
39+
"fieldPath": "year",
40+
"columnName": "year",
41+
"affinity": "TEXT"
42+
},
43+
{
44+
"fieldPath": "abstract",
45+
"columnName": "abstract",
46+
"affinity": "TEXT"
47+
},
48+
{
49+
"fieldPath": "publisher",
50+
"columnName": "publisher",
51+
"affinity": "TEXT"
52+
},
53+
{
54+
"fieldPath": "duration",
55+
"columnName": "duration",
56+
"affinity": "INTEGER",
57+
"notNull": true
58+
},
59+
{
60+
"fieldPath": "libraryId",
61+
"columnName": "libraryId",
62+
"affinity": "TEXT"
63+
},
64+
{
65+
"fieldPath": "seriesJson",
66+
"columnName": "seriesJson",
67+
"affinity": "TEXT"
68+
},
69+
{
70+
"fieldPath": "seriesNames",
71+
"columnName": "seriesNames",
72+
"affinity": "TEXT"
73+
},
74+
{
75+
"fieldPath": "createdAt",
76+
"columnName": "createdAt",
77+
"affinity": "INTEGER",
78+
"notNull": true
79+
},
80+
{
81+
"fieldPath": "updatedAt",
82+
"columnName": "updatedAt",
83+
"affinity": "INTEGER",
84+
"notNull": true
85+
}
86+
],
87+
"primaryKey": {
88+
"autoGenerate": false,
89+
"columnNames": [
90+
"id"
91+
]
92+
}
93+
},
94+
{
95+
"tableName": "book_files",
96+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `bookFileId` TEXT NOT NULL, `name` TEXT NOT NULL, `duration` REAL NOT NULL, `mimeType` TEXT NOT NULL, `bookId` TEXT NOT NULL, FOREIGN KEY(`bookId`) REFERENCES `detailed_books`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
97+
"fields": [
98+
{
99+
"fieldPath": "id",
100+
"columnName": "id",
101+
"affinity": "INTEGER",
102+
"notNull": true
103+
},
104+
{
105+
"fieldPath": "bookFileId",
106+
"columnName": "bookFileId",
107+
"affinity": "TEXT",
108+
"notNull": true
109+
},
110+
{
111+
"fieldPath": "name",
112+
"columnName": "name",
113+
"affinity": "TEXT",
114+
"notNull": true
115+
},
116+
{
117+
"fieldPath": "duration",
118+
"columnName": "duration",
119+
"affinity": "REAL",
120+
"notNull": true
121+
},
122+
{
123+
"fieldPath": "mimeType",
124+
"columnName": "mimeType",
125+
"affinity": "TEXT",
126+
"notNull": true
127+
},
128+
{
129+
"fieldPath": "bookId",
130+
"columnName": "bookId",
131+
"affinity": "TEXT",
132+
"notNull": true
133+
}
134+
],
135+
"primaryKey": {
136+
"autoGenerate": true,
137+
"columnNames": [
138+
"id"
139+
]
140+
},
141+
"indices": [
142+
{
143+
"name": "index_book_files_bookId",
144+
"unique": false,
145+
"columnNames": [
146+
"bookId"
147+
],
148+
"orders": [],
149+
"createSql": "CREATE INDEX IF NOT EXISTS `index_book_files_bookId` ON `${TABLE_NAME}` (`bookId`)"
150+
}
151+
],
152+
"foreignKeys": [
153+
{
154+
"table": "detailed_books",
155+
"onDelete": "CASCADE",
156+
"onUpdate": "NO ACTION",
157+
"columns": [
158+
"bookId"
159+
],
160+
"referencedColumns": [
161+
"id"
162+
]
163+
}
164+
]
165+
},
166+
{
167+
"tableName": "book_chapters",
168+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `bookChapterId` TEXT NOT NULL, `duration` REAL NOT NULL, `start` REAL NOT NULL, `end` REAL NOT NULL, `title` TEXT NOT NULL, `bookId` TEXT NOT NULL, `isCached` INTEGER NOT NULL, FOREIGN KEY(`bookId`) REFERENCES `detailed_books`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
169+
"fields": [
170+
{
171+
"fieldPath": "id",
172+
"columnName": "id",
173+
"affinity": "INTEGER",
174+
"notNull": true
175+
},
176+
{
177+
"fieldPath": "bookChapterId",
178+
"columnName": "bookChapterId",
179+
"affinity": "TEXT",
180+
"notNull": true
181+
},
182+
{
183+
"fieldPath": "duration",
184+
"columnName": "duration",
185+
"affinity": "REAL",
186+
"notNull": true
187+
},
188+
{
189+
"fieldPath": "start",
190+
"columnName": "start",
191+
"affinity": "REAL",
192+
"notNull": true
193+
},
194+
{
195+
"fieldPath": "end",
196+
"columnName": "end",
197+
"affinity": "REAL",
198+
"notNull": true
199+
},
200+
{
201+
"fieldPath": "title",
202+
"columnName": "title",
203+
"affinity": "TEXT",
204+
"notNull": true
205+
},
206+
{
207+
"fieldPath": "bookId",
208+
"columnName": "bookId",
209+
"affinity": "TEXT",
210+
"notNull": true
211+
},
212+
{
213+
"fieldPath": "isCached",
214+
"columnName": "isCached",
215+
"affinity": "INTEGER",
216+
"notNull": true
217+
}
218+
],
219+
"primaryKey": {
220+
"autoGenerate": true,
221+
"columnNames": [
222+
"id"
223+
]
224+
},
225+
"indices": [
226+
{
227+
"name": "index_book_chapters_bookId",
228+
"unique": false,
229+
"columnNames": [
230+
"bookId"
231+
],
232+
"orders": [],
233+
"createSql": "CREATE INDEX IF NOT EXISTS `index_book_chapters_bookId` ON `${TABLE_NAME}` (`bookId`)"
234+
}
235+
],
236+
"foreignKeys": [
237+
{
238+
"table": "detailed_books",
239+
"onDelete": "CASCADE",
240+
"onUpdate": "NO ACTION",
241+
"columns": [
242+
"bookId"
243+
],
244+
"referencedColumns": [
245+
"id"
246+
]
247+
}
248+
]
249+
},
250+
{
251+
"tableName": "media_progress",
252+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookId` TEXT NOT NULL, `currentTime` REAL NOT NULL, `isFinished` INTEGER NOT NULL, `lastUpdate` INTEGER NOT NULL, PRIMARY KEY(`bookId`), FOREIGN KEY(`bookId`) REFERENCES `detailed_books`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
253+
"fields": [
254+
{
255+
"fieldPath": "bookId",
256+
"columnName": "bookId",
257+
"affinity": "TEXT",
258+
"notNull": true
259+
},
260+
{
261+
"fieldPath": "currentTime",
262+
"columnName": "currentTime",
263+
"affinity": "REAL",
264+
"notNull": true
265+
},
266+
{
267+
"fieldPath": "isFinished",
268+
"columnName": "isFinished",
269+
"affinity": "INTEGER",
270+
"notNull": true
271+
},
272+
{
273+
"fieldPath": "lastUpdate",
274+
"columnName": "lastUpdate",
275+
"affinity": "INTEGER",
276+
"notNull": true
277+
}
278+
],
279+
"primaryKey": {
280+
"autoGenerate": false,
281+
"columnNames": [
282+
"bookId"
283+
]
284+
},
285+
"indices": [
286+
{
287+
"name": "index_media_progress_bookId",
288+
"unique": false,
289+
"columnNames": [
290+
"bookId"
291+
],
292+
"orders": [],
293+
"createSql": "CREATE INDEX IF NOT EXISTS `index_media_progress_bookId` ON `${TABLE_NAME}` (`bookId`)"
294+
}
295+
],
296+
"foreignKeys": [
297+
{
298+
"table": "detailed_books",
299+
"onDelete": "CASCADE",
300+
"onUpdate": "NO ACTION",
301+
"columns": [
302+
"bookId"
303+
],
304+
"referencedColumns": [
305+
"id"
306+
]
307+
}
308+
]
309+
},
310+
{
311+
"tableName": "libraries",
312+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `type` TEXT NOT NULL, PRIMARY KEY(`id`))",
313+
"fields": [
314+
{
315+
"fieldPath": "id",
316+
"columnName": "id",
317+
"affinity": "TEXT",
318+
"notNull": true
319+
},
320+
{
321+
"fieldPath": "title",
322+
"columnName": "title",
323+
"affinity": "TEXT",
324+
"notNull": true
325+
},
326+
{
327+
"fieldPath": "type",
328+
"columnName": "type",
329+
"affinity": "TEXT",
330+
"notNull": true
331+
}
332+
],
333+
"primaryKey": {
334+
"autoGenerate": false,
335+
"columnNames": [
336+
"id"
337+
]
338+
}
339+
}
340+
],
341+
"setupQueries": [
342+
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
343+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c82cbd6cc4b5d043bc4c63ccd1323a2e')"
344+
]
345+
}
346+
}

0 commit comments

Comments
 (0)