Skip to content

Commit 7142851

Browse files
authored
Address two CoreData warnings (#396)
* Address two CoreData warnings * Linux compile fix * Better way to resolve errors; purely through model Just remove `customClassName` if we have a transformer for those
1 parent 5317714 commit 7142851

File tree

1 file changed

+10
-24
lines changed
  • Sources/TripKit/Resources/TripKitModel.xcdatamodeld/7-CleanUp.xcdatamodel

1 file changed

+10
-24
lines changed

Sources/TripKit/Resources/TripKitModel.xcdatamodeld/7-CleanUp.xcdatamodel/contents

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="19461" systemVersion="21A559" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="TripKit">
2+
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23788" systemVersion="24E263" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="TripKit">
33
<entity name="Alert" representedClassName="Alert" syncable="YES">
44
<attribute name="action" optional="YES" attributeType="Transformable" valueTransformerName="NSSecureUnarchiveFromData" customClassName="NSDictionary"/>
55
<attribute name="endTime" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
66
<attribute name="hashCode" attributeType="Integer 32" usesScalarValueType="YES"/>
77
<attribute name="idService" optional="YES" attributeType="String"/>
88
<attribute name="idStopCode" optional="YES" attributeType="String"/>
9-
<attribute name="location" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer" customClassName="TKNamedCoordinate"/>
9+
<attribute name="location" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer"/>
1010
<attribute name="remoteIcon" optional="YES" attributeType="String"/>
1111
<attribute name="severity" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
1212
<attribute name="startTime" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
@@ -52,7 +52,7 @@
5252
<attribute name="bearing" optional="YES" attributeType="Integer 16" usesScalarValueType="NO"/>
5353
<attribute name="data" optional="YES" attributeType="Binary"/>
5454
<attribute name="durationWithoutTraffic" optional="YES" attributeType="Integer 32" usesScalarValueType="NO"/>
55-
<attribute name="endLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer" customClassName="TKNamedCoordinate"/>
55+
<attribute name="endLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer"/>
5656
<attribute name="flags" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="NO"/>
5757
<attribute name="hashCode" attributeType="Integer 32" usesScalarValueType="NO"/>
5858
<attribute name="metres" optional="YES" attributeType="Integer 32" usesScalarValueType="NO"/>
@@ -66,7 +66,7 @@
6666
<attribute name="segmentType" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="NO"/>
6767
<attribute name="smsMessage" optional="YES" attributeType="String"/>
6868
<attribute name="smsNumber" optional="YES" attributeType="String"/>
69-
<attribute name="startLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer" customClassName="TKNamedCoordinate"/>
69+
<attribute name="startLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer"/>
7070
<attribute name="visibility" attributeType="Integer 16" defaultValueString="1" usesScalarValueType="NO"/>
7171
<relationship name="references" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="SegmentReference" inverseName="segmentTemplate" inverseEntity="SegmentReference"/>
7272
<relationship name="shapes" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Shape" inverseName="template" inverseEntity="Shape"/>
@@ -77,10 +77,10 @@
7777
<entity name="Service" representedClassName="Service" syncable="YES">
7878
<attribute name="alertHashCodes" optional="YES" attributeType="Transformable" valueTransformerName="NSSecureUnarchiveFromData" customClassName="NSArray"/>
7979
<attribute name="code" attributeType="String" defaultValueString="NO_CODE"/>
80-
<attribute name="color" optional="YES" attributeType="Transformable" valueTransformerName="TKColorValueTransformer" customClassName="TKColor"/>
80+
<attribute name="color" optional="YES" attributeType="Transformable" valueTransformerName="TKColorValueTransformer"/>
8181
<attribute name="flags" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
8282
<attribute name="frequency" optional="YES" attributeType="Integer 16" usesScalarValueType="NO"/>
83-
<attribute name="modeInfo" optional="YES" attributeType="Transformable" valueTransformerName="TKModeInfoValueTransformer" customClassName="TKModeInfo"/>
83+
<attribute name="modeInfo" optional="YES" attributeType="Transformable" valueTransformerName="TKModeInfoValueTransformer"/>
8484
<attribute name="name" optional="YES" attributeType="String"/>
8585
<attribute name="number" optional="YES" attributeType="String"/>
8686
<attribute name="operatorID" optional="YES" attributeType="String"/>
@@ -121,13 +121,13 @@
121121
<entity name="StopLocation" representedClassName="StopLocation" syncable="YES">
122122
<attribute name="alertHashCodes" optional="YES" attributeType="Transformable" valueTransformerName="NSSecureUnarchiveFromData" customClassName="NSArray"/>
123123
<attribute name="filter" optional="YES" attributeType="String"/>
124-
<attribute name="location" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer" customClassName="TKNamedCoordinate"/>
124+
<attribute name="location" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer"/>
125125
<attribute name="name" optional="YES" attributeType="String"/>
126126
<attribute name="regionName" optional="YES" attributeType="String"/>
127127
<attribute name="shortName" optional="YES" attributeType="String"/>
128128
<attribute name="sortScore" optional="YES" attributeType="Integer 32" usesScalarValueType="NO"/>
129129
<attribute name="stopCode" attributeType="String"/>
130-
<attribute name="stopModeInfo" optional="YES" attributeType="Transformable" valueTransformerName="TKModeInfoValueTransformer" customClassName="TKModeInfo"/>
130+
<attribute name="stopModeInfo" optional="YES" attributeType="Transformable" valueTransformerName="TKModeInfoValueTransformer"/>
131131
<attribute name="wheelchairAccessible" optional="YES" attributeType="Boolean" usesScalarValueType="NO"/>
132132
<attribute name="zoneID" optional="YES" attributeType="String"/>
133133
<relationship name="children" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="StopLocation" inverseName="parent" inverseEntity="StopLocation"/>
@@ -224,11 +224,11 @@
224224
<attribute name="departureTime" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
225225
<attribute name="excludedStops" optional="YES" attributeType="Transformable" valueTransformerName="NSSecureUnarchiveFromData" customClassName="NSArray"/>
226226
<attribute name="expandForFavorite" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
227-
<attribute name="fromLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer" customClassName="TKNamedCoordinate"/>
227+
<attribute name="fromLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer"/>
228228
<attribute name="purpose" optional="YES" attributeType="String"/>
229229
<attribute name="timeCreated" attributeType="Date" usesScalarValueType="NO"/>
230230
<attribute name="timeType" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
231-
<attribute name="toLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer" customClassName="TKNamedCoordinate"/>
231+
<attribute name="toLocation" optional="YES" attributeType="Transformable" valueTransformerName="TKNamedCoordinateValueTransformer"/>
232232
<relationship name="preferredGroup" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="TripGroup" inverseName="preferredFor" inverseEntity="TripGroup"/>
233233
<relationship name="tripGroups" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="TripGroup" inverseName="request" inverseEntity="TripGroup"/>
234234
<fetchIndex name="byTripGroupsIndex">
@@ -252,18 +252,4 @@
252252
<fetchIndexElement property="identifier" type="Binary" order="ascending"/>
253253
</fetchIndex>
254254
</entity>
255-
<elements>
256-
<element name="Alert" positionX="952" positionY="324" width="128" height="209"/>
257-
<element name="DLSEntry" positionX="124" positionY="539" width="128" height="89"/>
258-
<element name="SegmentReference" positionX="511" positionY="-117" width="128" height="224"/>
259-
<element name="SegmentTemplate" positionX="952" positionY="-234" width="128" height="28"/>
260-
<element name="Service" positionX="317.046875" positionY="215.6796875" width="128" height="28"/>
261-
<element name="Shape" positionX="637" positionY="531" width="128" height="194"/>
262-
<element name="StopLocation" positionX="-117.2578125" positionY="330.36328125" width="128" height="28"/>
263-
<element name="StopVisits" positionX="124" positionY="243" width="128" height="239"/>
264-
<element name="Trip" positionX="315" positionY="-252" width="128" height="418"/>
265-
<element name="TripGroup" positionX="99" positionY="-186" width="128" height="164"/>
266-
<element name="TripRequest" positionX="-153" positionY="-234" width="128" height="194"/>
267-
<element name="Vehicle" positionX="700" positionY="165" width="128" height="209"/>
268-
</elements>
269255
</model>

0 commit comments

Comments
 (0)