Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit f398679

Browse files
committed
2.0.1-rc1
2 parents 030ae73 + a103158 commit f398679

39 files changed

Lines changed: 539 additions & 83 deletions

HIAPI/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0</string>
18+
<string>2.0.1</string>
1919
<key>CFBundleVersion</key>
20-
<string>8</string>
20+
<string>4</string>
2121
</dict>
2222
</plist>

HIAPI/Models/User.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public struct Roles: OptionSet, Codable {
3636
public static let sponsor = Roles(rawValue: 1 << 4)
3737
public static let staff = Roles(rawValue: 1 << 5)
3838
public static let admin = Roles(rawValue: 1 << 6)
39+
public static let allRoles = ["User", "Applicant", "Attendee", "Mentor", "Sponsor", "Staff", "Admin"]
3940

4041
public init(rawValue: Int) {
4142
self.rawValue = rawValue

HIAPI/Services/AnnouncementService.swift

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,14 @@ public final class AnnouncementService: BaseService {
2929
return APIRequest<SimpleRequest>(service: self, endpoint: "update/", method: .POST)
3030
}
3131

32-
// public static func create(title: String, description: String) -> APIRequest<AnnouncementContainer> {
33-
// var announcementDict = HTTPBody()
34-
// announcementDict["title"] = title
35-
// announcementDict["description"] = description
36-
// return APIRequest<AnnouncementContainer>(service: self, endpoint: "", body: announcementDict, method: .POST)
37-
// }
38-
39-
// public static func update(announcement: Announcement) -> APIRequest<AnnouncementContainer> {
40-
// var announcementDict = HTTPBody()
41-
// announcementDict["title"] = announcement.title
42-
// announcementDict["description"] = announcement.info
43-
// return APIRequest<AnnouncementContainer>(service: self, endpoint: "", body: announcementDict, method: .PUT)
44-
// }
32+
public static func create(title: String, description: String, topic: String) -> APIRequest<SimpleRequest> {
33+
var announcementDict = HTTPBody()
34+
announcementDict["title"] = title
35+
announcementDict["body"] = description
36+
return APIRequest<SimpleRequest>(service: self, endpoint: "\(topic)/", body: announcementDict, method: .POST)
37+
}
4538

4639
public static func getAllAnnouncements() -> APIRequest<AnnouncementContainer> {
4740
return APIRequest<AnnouncementContainer>(service: self, endpoint: "all/", method: .GET)
4841
}
49-
50-
// public static func delete(announcement: Announcement) -> APIRequest<AnnouncementContainer> {
51-
// let params = HTTPParameters()
52-
// return APIRequest<AnnouncementContainer>(service: self, endpoint: "\(announcement.topic.rawValue)/", params: params, method: .DELETE)
53-
// }
5442
}

HackIllinois.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
9544799C200C39870005408B /* HIUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9544799B200C39870005408B /* HIUser.swift */; };
4141
954EE1D31FD0F1680078F39E /* HILoginSelectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954EE1D21FD0F1680078F39E /* HILoginSelectionViewController.swift */; };
4242
9552D92821758E4C00A8C869 /* UIView+AutoLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9552D92721758E4C00A8C869 /* UIView+AutoLayout.swift */; };
43+
9564E02F2218CE6F003A8EEB /* HIMapsDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9564E02E2218CE6F003A8EEB /* HIMapsDataSource.swift */; };
4344
956F41E11FC7577500557DC7 /* HIAnnouncementsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956F41E01FC7577500557DC7 /* HIAnnouncementsViewController.swift */; };
4445
956F41E31FC76C8E00557DC7 /* HIMenuController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956F41E21FC76C8E00557DC7 /* HIMenuController.swift */; };
4546
957A4D7D21FDA71F007FDE0E /* MixTypeComparable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 957A4D7C21FDA71F007FDE0E /* MixTypeComparable.swift */; };
@@ -92,6 +93,7 @@
9293
95E3147421FAF1740092C22E /* SimpleRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95E3146621FAF1740092C22E /* SimpleRequest.swift */; };
9394
95E3147521FAF1740092C22E /* User.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95E3146721FAF1740092C22E /* User.swift */; };
9495
95E3147621FAF1740092C22E /* Announcement.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95E3146821FAF1740092C22E /* Announcement.swift */; };
96+
95F5B4A0220BCFFF00C59992 /* HIIndoorMapsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95F5B49F220BCFFF00C59992 /* HIIndoorMapsViewController.swift */; };
9597
95FC1D1E1FCBD20E00F8AD60 /* HIUserDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95FC1D1D1FCBD20E00F8AD60 /* HIUserDetailViewController.swift */; };
9698
95FC79BE21E0199600715036 /* HIAppearance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95FC79BD21E0199600715036 /* HIAppearance.swift */; };
9799
95FC79C121E0243D00715036 /* Operators.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95FC79C021E0243D00715036 /* Operators.swift */; };
@@ -181,6 +183,7 @@
181183
9544799D200C3CE40005408B /* Tests.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Tests.playground; sourceTree = "<group>"; };
182184
954EE1D21FD0F1680078F39E /* HILoginSelectionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HILoginSelectionViewController.swift; sourceTree = "<group>"; };
183185
9552D92721758E4C00A8C869 /* UIView+AutoLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+AutoLayout.swift"; sourceTree = "<group>"; };
186+
9564E02E2218CE6F003A8EEB /* HIMapsDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HIMapsDataSource.swift; sourceTree = "<group>"; };
184187
956F41E01FC7577500557DC7 /* HIAnnouncementsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HIAnnouncementsViewController.swift; sourceTree = "<group>"; };
185188
956F41E21FC76C8E00557DC7 /* HIMenuController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HIMenuController.swift; sourceTree = "<group>"; };
186189
957A4D7C21FDA71F007FDE0E /* MixTypeComparable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MixTypeComparable.swift; sourceTree = "<group>"; };
@@ -233,6 +236,7 @@
233236
95E3146621FAF1740092C22E /* SimpleRequest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SimpleRequest.swift; sourceTree = "<group>"; };
234237
95E3146721FAF1740092C22E /* User.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = User.swift; sourceTree = "<group>"; };
235238
95E3146821FAF1740092C22E /* Announcement.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Announcement.swift; sourceTree = "<group>"; };
239+
95F5B49F220BCFFF00C59992 /* HIIndoorMapsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HIIndoorMapsViewController.swift; sourceTree = "<group>"; };
236240
95FC1D1D1FCBD20E00F8AD60 /* HIUserDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HIUserDetailViewController.swift; sourceTree = "<group>"; };
237241
95FC79BD21E0199600715036 /* HIAppearance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HIAppearance.swift; sourceTree = "<group>"; };
238242
95FC79C021E0243D00715036 /* Operators.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Operators.swift; sourceTree = "<group>"; };
@@ -398,6 +402,7 @@
398402
children = (
399403
9521A6A720191590009059C6 /* HIEventDataSource.swift */,
400404
9521A6A920191737009059C6 /* HIAnnouncementDataSource.swift */,
405+
9564E02E2218CE6F003A8EEB /* HIMapsDataSource.swift */,
401406
);
402407
path = DataSources;
403408
sourceTree = "<group>";
@@ -447,6 +452,7 @@
447452
95C18DC920096539004784B5 /* HIEventListViewController.swift */,
448453
9515E43622093E1300BCAF92 /* HIEventScannerViewController.swift */,
449454
95C18DC42009618C004784B5 /* HIHomeViewController.swift */,
455+
95F5B49F220BCFFF00C59992 /* HIIndoorMapsViewController.swift */,
450456
954EE1D21FD0F1680078F39E /* HILoginSelectionViewController.swift */,
451457
95CCEA1E203D6B3600E3E28C /* HINavigationController.swift */,
452458
95C18DC820096539004784B5 /* HIScheduleViewController.swift */,
@@ -877,13 +883,15 @@
877883
9544799C200C39870005408B /* HIUser.swift in Sources */,
878884
95A7D28B203D4F54005EAEAF /* HISegmentedControl.swift in Sources */,
879885
957A4D7D21FDA71F007FDE0E /* MixTypeComparable.swift in Sources */,
886+
95F5B4A0220BCFFF00C59992 /* HIIndoorMapsViewController.swift in Sources */,
880887
95A7D28C203D4F54005EAEAF /* HITextField.swift in Sources */,
881888
95C18DCA20096539004784B5 /* HIEventDetailViewController.swift in Sources */,
882889
9523A2902218BA2600341EBD /* HIImageView.swift in Sources */,
883890
95C18DC52009618C004784B5 /* HIHomeViewController.swift in Sources */,
884891
35240BD1201408DB00E0C0D8 /* HICountdownViewController.swift in Sources */,
885892
9510F6A11FCB7D6E007D19DB /* Event+CoreDataClass.swift in Sources */,
886893
951827A81EA35DB800049F79 /* AppDelegate.swift in Sources */,
894+
9564E02F2218CE6F003A8EEB /* HIMapsDataSource.swift in Sources */,
887895
953199C91FC25CA0009F2AA1 /* HICoreDataController.swift in Sources */,
888896
95A7D28D203D4F54005EAEAF /* Identifiable.swift in Sources */,
889897
9521A6A820191590009059C6 /* HIEventDataSource.swift in Sources */,

HackIllinois/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
6969

7070
func applicationWillEnterForeground(_ application: UIApplication) {
7171
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
72+
UIApplication.shared.registerForRemoteNotifications()
7273
}
7374

7475
func applicationDidBecomeActive(_ application: UIApplication) {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "IndoorMapDCL.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"version" : 1,
19+
"author" : "xcode"
20+
}
21+
}
44.2 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "IndoorMapECEB1.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"version" : 1,
19+
"author" : "xcode"
20+
}
21+
}
72.2 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "IndoorMapECEB2.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"version" : 1,
19+
"author" : "xcode"
20+
}
21+
}

0 commit comments

Comments
 (0)