Skip to content

Commit db572d6

Browse files
committed
Update model.json to version 5 format and mark project as Swift 5 (because it is).
1 parent b3e8505 commit db572d6

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

Example/NotesExample.xcodeproj/project.pbxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225
TargetAttributes = {
226226
5039EC9C2181DA350095204F = {
227227
CreatedOnToolsVersion = 10.0;
228+
LastSwiftMigration = 1020;
228229
SystemCapabilities = {
229230
com.apple.Sandbox = {
230231
enabled = 0;
@@ -450,7 +451,7 @@
450451
PRODUCT_BUNDLE_IDENTIFIER = "io.objectbox.NotesExample-macOS";
451452
PRODUCT_NAME = "$(TARGET_NAME)";
452453
SDKROOT = macosx;
453-
SWIFT_VERSION = 4.2;
454+
SWIFT_VERSION = 5.0;
454455
};
455456
name = Debug;
456457
};
@@ -470,7 +471,7 @@
470471
PRODUCT_BUNDLE_IDENTIFIER = "io.objectbox.NotesExample-macOS";
471472
PRODUCT_NAME = "$(TARGET_NAME)";
472473
SDKROOT = macosx;
473-
SWIFT_VERSION = 4.2;
474+
SWIFT_VERSION = 5.0;
474475
};
475476
name = Release;
476477
};

Example/model.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
"name" : "Author",
1010
"properties" : [
1111
{
12+
"flags" : 1,
1213
"id" : "1:6336800942024279296",
13-
"name" : "id"
14+
"name" : "id",
15+
"type" : 6
1416
},
1517
{
1618
"id" : "2:5025387500910526208",
17-
"name" : "name"
19+
"name" : "name",
20+
"type" : 9
1821
}
1922
],
2023
"relations" : [
@@ -27,29 +30,38 @@
2730
"name" : "Note",
2831
"properties" : [
2932
{
33+
"flags" : 1,
3034
"id" : "1:7180411752564202752",
31-
"name" : "id"
35+
"name" : "id",
36+
"type" : 6
3237
},
3338
{
3439
"id" : "2:249105953415333376",
35-
"name" : "title"
40+
"name" : "title",
41+
"type" : 9
3642
},
3743
{
3844
"id" : "3:5661281725891017216",
39-
"name" : "text"
45+
"name" : "text",
46+
"type" : 9
4047
},
4148
{
4249
"id" : "4:8342334437465755392",
43-
"name" : "creationDate"
50+
"name" : "creationDate",
51+
"type" : 10
4452
},
4553
{
4654
"id" : "5:8881960381068888832",
47-
"name" : "modificationDate"
55+
"name" : "modificationDate",
56+
"type" : 10
4857
},
4958
{
59+
"flags" : 8,
5060
"id" : "6:6001769173142034944",
5161
"indexId" : "1:6069708401898380544",
52-
"name" : "author"
62+
"name" : "author",
63+
"relationTarget" : "Author",
64+
"type" : 11
5365
}
5466
],
5567
"relations" : [
@@ -61,8 +73,8 @@
6173
"lastIndexId" : "1:6069708401898380544",
6274
"lastRelationId" : "0:0",
6375
"lastSequenceId" : "0:0",
64-
"modelVersion" : 4,
65-
"modelVersionParserMinimum" : 4,
76+
"modelVersion" : 5,
77+
"modelVersionParserMinimum" : 5,
6678
"retiredEntityUids" : [
6779

6880
],

0 commit comments

Comments
 (0)