Skip to content

Commit ab11daa

Browse files
committed
Upgrade legacy ObjectBox to support 16kb page size
1 parent 9f79c87 commit ab11daa

File tree

3 files changed

+102
-10
lines changed

3 files changed

+102
-10
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ dependencies {
106106
}
107107

108108
// ObjectBox - legacy
109-
debugImplementation("io.objectbox:objectbox-android-objectbrowser:2.9.1")
110-
releaseImplementation("io.objectbox:objectbox-android:2.9.1")
111-
implementation("io.objectbox:objectbox-kotlin:2.9.1")
112-
kapt("io.objectbox:objectbox-processor:2.9.1")
109+
debugImplementation("io.objectbox:objectbox-android-objectbrowser:4.3.0")
110+
releaseImplementation("io.objectbox:objectbox-android:4.3.0")
111+
implementation("io.objectbox:objectbox-kotlin:4.3.0")
112+
kapt("io.objectbox:objectbox-processor:4.3.0")
113113
}

app/objectbox-models/default.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@
4242
{
4343
"id": "7:6917895597816988041",
4444
"name": "digits",
45-
"type": 5,
46-
"flags": 4
45+
"type": 5
4746
},
4847
{
4948
"id": "8:3408923528481436171",
5049
"name": "period",
51-
"type": 5,
52-
"flags": 4
50+
"type": 5
5351
},
5452
{
5553
"id": "9:8134303276707809817",
@@ -64,8 +62,7 @@
6462
{
6563
"id": "11:7868799030333415835",
6664
"name": "mobileSecretId",
67-
"type": 5,
68-
"flags": 2
65+
"type": 5
6966
},
7067
{
7168
"id": "12:2667695365778258436",
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"_note1": "KEEP THIS FILE! Check it into a version control system (VCS) like git.",
3+
"_note2": "ObjectBox manages crucial IDs for your object model. See docs for details.",
4+
"_note3": "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.",
5+
"entities": [
6+
{
7+
"id": "1:7380064744774871579",
8+
"lastPropertyId": "13:6982909237079014099",
9+
"name": "Service",
10+
"properties": [
11+
{
12+
"id": "1:8439883918718538972",
13+
"name": "id",
14+
"type": 6,
15+
"flags": 1
16+
},
17+
{
18+
"id": "2:7880706655904965868",
19+
"name": "name",
20+
"type": 9
21+
},
22+
{
23+
"id": "3:2113648782936735835",
24+
"name": "label",
25+
"type": 9
26+
},
27+
{
28+
"id": "4:456290009778048586",
29+
"name": "account",
30+
"type": 9
31+
},
32+
{
33+
"id": "5:1504921888445632560",
34+
"name": "secret",
35+
"type": 9
36+
},
37+
{
38+
"id": "6:7343401312917594418",
39+
"name": "issuer",
40+
"type": 9
41+
},
42+
{
43+
"id": "7:6917895597816988041",
44+
"name": "digits",
45+
"type": 5,
46+
"flags": 4
47+
},
48+
{
49+
"id": "8:3408923528481436171",
50+
"name": "period",
51+
"type": 5,
52+
"flags": 4
53+
},
54+
{
55+
"id": "9:8134303276707809817",
56+
"name": "algorithm",
57+
"type": 9
58+
},
59+
{
60+
"id": "10:2694114095945752339",
61+
"name": "mobileSecret",
62+
"type": 9
63+
},
64+
{
65+
"id": "11:7868799030333415835",
66+
"name": "mobileSecretId",
67+
"type": 5,
68+
"flags": 2
69+
},
70+
{
71+
"id": "12:2667695365778258436",
72+
"name": "syncStatus",
73+
"type": 9
74+
},
75+
{
76+
"id": "13:6982909237079014099",
77+
"name": "type",
78+
"type": 9
79+
}
80+
],
81+
"relations": []
82+
}
83+
],
84+
"lastEntityId": "1:7380064744774871579",
85+
"lastIndexId": "0:0",
86+
"lastRelationId": "0:0",
87+
"lastSequenceId": "0:0",
88+
"modelVersion": 5,
89+
"modelVersionParserMinimum": 5,
90+
"retiredEntityUids": [],
91+
"retiredIndexUids": [],
92+
"retiredPropertyUids": [],
93+
"retiredRelationUids": [],
94+
"version": 1
95+
}

0 commit comments

Comments
 (0)