Skip to content

Commit 8ab96c7

Browse files
Merge pull request #198 from cuappdev/matt/place-refactor
Place Model Refactoring (#196, #197)
2 parents eccee01 + 52192a7 commit 8ab96c7

27 files changed

Lines changed: 879 additions & 976 deletions

Siri/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>1.2.2</string>
2121
<key>CFBundleVersion</key>
22-
<string>68</string>
22+
<string>70</string>
2323
<key>NSExtension</key>
2424
<dict>
2525
<key>NSExtensionAttributes</key>

TCAT.xcodeproj/project.pbxproj

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
449A7C831D80D0E80019300C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 449A7C811D80D0E80019300C /* LaunchScreen.storyboard */; };
2222
449A7C8E1D80D0E80019300C /* TCATTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 449A7C8D1D80D0E80019300C /* TCATTests.swift */; };
2323
449A7C991D80D0E80019300C /* TCATUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 449A7C981D80D0E80019300C /* TCATUITests.swift */; };
24-
5006F7B81EBFC7DE005ACAF2 /* CornellDestinationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5006F7B71EBFC7DE005ACAF2 /* CornellDestinationCell.swift */; };
2524
5006F7BA1EC0F59A005ACAF2 /* SearchTableViewHelpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5006F7B91EC0F59A005ACAF2 /* SearchTableViewHelpers.swift */; };
2625
502D8F5F1E55161D005280F1 /* SearchBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 502D8F5E1E55161D005280F1 /* SearchBarView.swift */; };
27-
503EC37B1E969ACD00B3D4D4 /* BusStopCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 503EC37A1E969ACD00B3D4D4 /* BusStopCell.swift */; };
28-
503EC37D1E969ADF00B3D4D4 /* SearchResultsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 503EC37C1E969ADF00B3D4D4 /* SearchResultsCell.swift */; };
26+
503EC37D1E969ADF00B3D4D4 /* PlaceTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 503EC37C1E969ADF00B3D4D4 /* PlaceTableViewCell.swift */; };
2927
503EC37F1E969B2100B3D4D4 /* SearchResultsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 503EC37E1E969B2100B3D4D4 /* SearchResultsTableViewController.swift */; };
3028
50A19BAE1E4C214000AD6768 /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50A19BAD1E4C214000AD6768 /* HomeViewController.swift */; };
3129
7E14AEDD2177E884006A344D /* IntentHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E14AEDC2177E884006A344D /* IntentHandler.swift */; };
@@ -34,6 +32,7 @@
3432
9CAD63CB367551D7A8B32C6E /* Pods_TCAT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E69224A160B2B078827D28A1 /* Pods_TCAT.framework */; };
3533
BF0002221FB37D0A00773109 /* LoadingIndicator.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF0002211FB37D0A00773109 /* LoadingIndicator.swift */; };
3634
BF1209FB1F7759C200A7C930 /* BusLocationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF1209FA1F7759C200A7C930 /* BusLocationView.swift */; };
35+
BF164D5F221DFCDE0069953E /* LegacyModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF164D5E221DFCDE0069953E /* LegacyModels.swift */; };
3736
BF18AE102083B7F6000C3D82 /* StoreReviewHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF18AE0F2083B7F6000C3D82 /* StoreReviewHelper.swift */; };
3837
BF18AE122083B9B8000C3D82 /* Phrases.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF18AE112083B9B8000C3D82 /* Phrases.swift */; };
3938
BF316CB02096352B005A14EF /* PhraseLabelFooterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF316CAF2096352B005A14EF /* PhraseLabelFooterView.swift */; };
@@ -74,8 +73,6 @@
7473
DD16B8E71E7046390089B7B2 /* BusIcon.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD16B8E41E7046390089B7B2 /* BusIcon.swift */; };
7574
DD2F989B1E50F99A0005F6BC /* Route.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD2F989A1E50F99A0005F6BC /* Route.swift */; };
7675
DD2F98A31E5150990005F6BC /* RouteOptionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD2F98A21E5150990005F6BC /* RouteOptionsViewController.swift */; };
77-
DD36A6FF1F66378C00E4789E /* BusStop.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD36A6FD1F66378B00E4789E /* BusStop.swift */; };
78-
DD36A7001F66378C00E4789E /* PlaceResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD36A6FE1F66378C00E4789E /* PlaceResult.swift */; };
7976
DD36A7021F6637CA00E4789E /* Direction.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD36A7011F6637C900E4789E /* Direction.swift */; };
8077
DD3D9C211F94297100B164D4 /* Reachability.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD3D9C201F94297100B164D4 /* Reachability.swift */; };
8178
DD3D9C341F942CF000B164D4 /* CoordinateVisitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD3D9C331F942CF000B164D4 /* CoordinateVisitor.swift */; };
@@ -161,11 +158,9 @@
161158
449A7C941D80D0E80019300C /* TCATUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TCATUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
162159
449A7C981D80D0E80019300C /* TCATUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TCATUITests.swift; sourceTree = "<group>"; };
163160
449A7C9A1D80D0E80019300C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
164-
5006F7B71EBFC7DE005ACAF2 /* CornellDestinationCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CornellDestinationCell.swift; path = Cells/CornellDestinationCell.swift; sourceTree = "<group>"; };
165161
5006F7B91EC0F59A005ACAF2 /* SearchTableViewHelpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; name = SearchTableViewHelpers.swift; path = Utilities/SearchTableViewHelpers.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
166162
502D8F5E1E55161D005280F1 /* SearchBarView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SearchBarView.swift; path = Views/SearchBarView.swift; sourceTree = "<group>"; };
167-
503EC37A1E969ACD00B3D4D4 /* BusStopCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BusStopCell.swift; path = Cells/BusStopCell.swift; sourceTree = "<group>"; };
168-
503EC37C1E969ADF00B3D4D4 /* SearchResultsCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SearchResultsCell.swift; path = Cells/SearchResultsCell.swift; sourceTree = "<group>"; };
163+
503EC37C1E969ADF00B3D4D4 /* PlaceTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PlaceTableViewCell.swift; path = Cells/PlaceTableViewCell.swift; sourceTree = "<group>"; };
169164
503EC37E1E969B2100B3D4D4 /* SearchResultsTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; name = SearchResultsTableViewController.swift; path = Controllers/SearchResultsTableViewController.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
170165
50A19BAD1E4C214000AD6768 /* HomeViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; name = HomeViewController.swift; path = Controllers/HomeViewController.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
171166
7E14AEB12177E661006A344D /* TCAT.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = TCAT.entitlements; sourceTree = "<group>"; };
@@ -178,6 +173,7 @@
178173
97F81CAA39621F2304CFA763 /* Pods-TCATUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TCATUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-TCATUITests/Pods-TCATUITests.release.xcconfig"; sourceTree = "<group>"; };
179174
BF0002211FB37D0A00773109 /* LoadingIndicator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LoadingIndicator.swift; path = Views/LoadingIndicator.swift; sourceTree = "<group>"; };
180175
BF1209FA1F7759C200A7C930 /* BusLocationView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BusLocationView.swift; path = Views/BusLocationView.swift; sourceTree = "<group>"; };
176+
BF164D5E221DFCDE0069953E /* LegacyModels.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LegacyModels.swift; path = Model/LegacyModels.swift; sourceTree = "<group>"; };
181177
BF18AE0F2083B7F6000C3D82 /* StoreReviewHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = StoreReviewHelper.swift; path = Utilities/StoreReviewHelper.swift; sourceTree = "<group>"; };
182178
BF18AE112083B9B8000C3D82 /* Phrases.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Phrases.swift; path = Utilities/Phrases.swift; sourceTree = "<group>"; };
183179
BF316CAF2096352B005A14EF /* PhraseLabelFooterView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PhraseLabelFooterView.swift; path = Views/PhraseLabelFooterView.swift; sourceTree = "<group>"; };
@@ -219,8 +215,6 @@
219215
DD16B8E41E7046390089B7B2 /* BusIcon.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BusIcon.swift; path = Views/BusIcon.swift; sourceTree = "<group>"; };
220216
DD2F989A1E50F99A0005F6BC /* Route.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Route.swift; path = Model/Route.swift; sourceTree = "<group>"; };
221217
DD2F98A21E5150990005F6BC /* RouteOptionsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RouteOptionsViewController.swift; path = Controllers/RouteOptionsViewController.swift; sourceTree = "<group>"; };
222-
DD36A6FD1F66378B00E4789E /* BusStop.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BusStop.swift; path = Model/BusStop.swift; sourceTree = "<group>"; };
223-
DD36A6FE1F66378C00E4789E /* PlaceResult.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PlaceResult.swift; path = Model/PlaceResult.swift; sourceTree = "<group>"; };
224218
DD36A7011F6637C900E4789E /* Direction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Direction.swift; path = Model/Direction.swift; sourceTree = "<group>"; };
225219
DD3D9C201F94297100B164D4 /* Reachability.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Reachability.swift; path = Utilities/Reachability.swift; sourceTree = "<group>"; };
226220
DD3D9C331F942CF000B164D4 /* CoordinateVisitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = CoordinateVisitor.swift; path = Utilities/CoordinateVisitor.swift; sourceTree = "<group>"; };
@@ -434,12 +428,10 @@
434428
DD2F988F1E50D89C0005F6BC /* Cells */ = {
435429
isa = PBXGroup;
436430
children = (
437-
503EC37A1E969ACD00B3D4D4 /* BusStopCell.swift */,
438431
DDB49C971E8857E000A99C35 /* BusStopTableViewCell.swift */,
439-
5006F7B71EBFC7DE005ACAF2 /* CornellDestinationCell.swift */,
440432
DDB49C951E8857E000A99C35 /* LargeDetailTableViewCell.swift */,
441433
DDC83CA41E52B0D400D4EDDF /* RouteTableViewCell.swift */,
442-
503EC37C1E969ADF00B3D4D4 /* SearchResultsCell.swift */,
434+
503EC37C1E969ADF00B3D4D4 /* PlaceTableViewCell.swift */,
443435
DDB49C961E8857E000A99C35 /* SmallDetailTableViewCell.swift */,
444436
);
445437
name = Cells;
@@ -450,11 +442,10 @@
450442
children = (
451443
BF456E0220489990005C611D /* BusLocation.swift */,
452444
DDB49C9B1E8857FC00A99C35 /* BusPath.swift */,
453-
DD36A6FD1F66378B00E4789E /* BusStop.swift */,
454445
DD36A7011F6637C900E4789E /* Direction.swift */,
446+
BF164D5E221DFCDE0069953E /* LegacyModels.swift */,
455447
BF73F0F21F60B0BD003B479D /* LocationObject.swift */,
456448
DDE3BC221F5863D50014D2BB /* Place.swift */,
457-
DD36A6FE1F66378C00E4789E /* PlaceResult.swift */,
458449
DD2F989A1E50F99A0005F6BC /* Route.swift */,
459450
BFD5B4E31FAADFAE00955C37 /* WalkPath.swift */,
460451
DDB49C9C1E8857FC00A99C35 /* Waypoint.swift */,
@@ -870,16 +861,14 @@
870861
isa = PBXSourcesBuildPhase;
871862
buildActionMask = 2147483647;
872863
files = (
873-
503EC37D1E969ADF00B3D4D4 /* SearchResultsCell.swift in Sources */,
864+
503EC37D1E969ADF00B3D4D4 /* PlaceTableViewCell.swift in Sources */,
874865
DDBCD5E71E989E5800014641 /* Circle.swift in Sources */,
875866
502D8F5F1E55161D005280F1 /* SearchBarView.swift in Sources */,
876867
5006F7BA1EC0F59A005ACAF2 /* SearchTableViewHelpers.swift in Sources */,
877868
BFCA712D206AC69000E4CCE5 /* Keys.swift in Sources */,
878-
5006F7B81EBFC7DE005ACAF2 /* CornellDestinationCell.swift in Sources */,
879869
2292486921B891A30004279C /* Endpoints.swift in Sources */,
880870
DDB49C9D1E8857FC00A99C35 /* BusPath.swift in Sources */,
881871
DD659C8A20508E1B00506BAC /* WalkWithDistanceIcon.swift in Sources */,
882-
DD36A7001F66378C00E4789E /* PlaceResult.swift in Sources */,
883872
BF8AF5F32206BBF60091AB8C /* Utilities.swift in Sources */,
884873
BF73F0F31F60B0BD003B479D /* LocationObject.swift in Sources */,
885874
BFF41EB2204365E800E0696B /* SummaryView.swift in Sources */,
@@ -890,7 +879,6 @@
890879
BFA53FEE1FD45D7000E770DF /* RouteDetailViewController.swift in Sources */,
891880
DD16B8E71E7046390089B7B2 /* BusIcon.swift in Sources */,
892881
E337970D1FC1606D00BCB28F /* InformationViewController.swift in Sources */,
893-
503EC37B1E969ACD00B3D4D4 /* BusStopCell.swift in Sources */,
894882
BF18AE122083B9B8000C3D82 /* Phrases.swift in Sources */,
895883
DDB49C9A1E8857E000A99C35 /* BusStopTableViewCell.swift in Sources */,
896884
DC2E96461FC21B29009955C6 /* HeaderView.swift in Sources */,
@@ -914,7 +902,6 @@
914902
DDB49C991E8857E000A99C35 /* SmallDetailTableViewCell.swift in Sources */,
915903
BF5C52A4207B96F0003C93B9 /* LiveIndicator.swift in Sources */,
916904
DDBFEAA01E787008002BBD96 /* DatePickerView.swift in Sources */,
917-
DD36A6FF1F66378C00E4789E /* BusStop.swift in Sources */,
918905
DDC83CA51E52B0D400D4EDDF /* RouteTableViewCell.swift in Sources */,
919906
DD5D233C1E6367A100F8DECE /* Time.swift in Sources */,
920907
DDE0A9311F096A3E005CD01C /* RouteDiagram.swift in Sources */,
@@ -935,6 +922,7 @@
935922
BFD5B4E41FAADFAE00955C37 /* WalkPath.swift in Sources */,
936923
BF1209FB1F7759C200A7C930 /* BusLocationView.swift in Sources */,
937924
2292486C21B8ECB90004279C /* ServiceAlertsViewController.swift in Sources */,
925+
BF164D5F221DFCDE0069953E /* LegacyModels.swift in Sources */,
938926
DD3D9C361F945F2A00B164D4 /* RPCircularProgress.swift in Sources */,
939927
BFC367F321B66E9A00ABD9AC /* Intents.intentdefinition in Sources */,
940928
DD2F98A31E5150990005F6BC /* RouteOptionsViewController.swift in Sources */,

0 commit comments

Comments
 (0)