Skip to content

Commit

Permalink
Update to support new timetable
Browse files Browse the repository at this point in the history
  • Loading branch information
frannyfx committed Oct 1, 2019
1 parent 4ad8cc0 commit 2ba830d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kingsapp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>1.1.2</string>
<key>CFBundleVersion</key>
<string>34</string>
<string>35</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
Expand Down
4 changes: 2 additions & 2 deletions kingsapp/KingsAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
class KingsAPI {
let BASE_URL = "https://campusm.kcl.ac.uk//kcl_live/services/CampusMUniversityService/retrieveCalendar"
let BASE_URL = "https://campusm.kcl.ac.uk//kclNewTimetable/services/CampusMUniversityService/retrieveCalendar"
let NAMESPACE = "http://campusm.gw.com/campusm"
let APP_TOKEN = "YXBwbGljYXRpb25fc2VjX3VzZXI6ZjJnaDUzNDg="

Expand Down Expand Up @@ -57,7 +57,7 @@ class KingsAPI {
func parseCalendarResponse (data: Data) -> KCLCalendarResponse? {
let decoder = XMLDecoder()
decoder.dateDecodingStrategy = .formatted(formatter)
let response: KCLCalendarResponse?
var response: KCLCalendarResponse?

do {
response = try decoder.decode(KCLCalendarResponse.self, from: data)
Expand Down

0 comments on commit 2ba830d

Please sign in to comment.