Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

[feature/tca-4.1.1] Minor Version 4.1.1 #545

Merged
merged 24 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f208b83
Fix/widget and movie bugs (#511)
AW-tum Oct 31, 2022
8a0230a
Update Version Number
AW-tum Oct 31, 2022
a1d9cfc
Make Widgets only available on phone
AW-tum Oct 31, 2022
b1e72c6
Fix/token permissions UI (#512)
14slash12 Nov 7, 2022
b7dcfae
bugfix: fix tower image (#509)
twihno Nov 7, 2022
475c7e7
Design/login (#513)
AW-tum Nov 10, 2022
7cd2243
Open Widget View when logging in
AW-tum Nov 24, 2022
0dc1554
Generate personalized Widget Navigation Title
AW-tum Nov 24, 2022
6a6767b
Reorder Code Widget Screen
AW-tum Nov 24, 2022
54d2522
Adjust Profile "GET IN CONTACT" Btns to Webview setting
AW-tum Nov 24, 2022
bd4edf2
Move NavTitle loading into recommender loading
AW-tum Nov 24, 2022
eb9c6cc
remove request location always use
AW-tum Nov 24, 2022
ca813ed
A few Login - Token Design changes
AW-tum Nov 24, 2022
edcc7cc
Add compiler directive that disables Crashlytics for development (#520)
philippzagar Jan 17, 2023
76ffecc
Simple Crashlytics Service (#522)
Antonwy Jan 28, 2023
810b16c
MAIN -> DEV (#533)
philippzagar Mar 22, 2023
f07aab8
MAIN -> DEV (#535)
philippzagar Mar 22, 2023
d123f45
Fix Swift 5.8 compile errors (#538)
ge65cer Apr 4, 2023
2587c8e
Feature/navigatum-dev (#539)
Atharva-Mathapati Apr 5, 2023
f27f704
API Refactoring (#536)
14slash12 Apr 10, 2023
b197426
[fix/swift-5.8] Code adjustments for Swift 5.8 compiler (#542)
philippzagar May 16, 2023
700764f
Fix Crash: If links at the bottom of the profile view are clicked, th…
AW-tum May 24, 2023
6ebe362
Merge branch 'main' into feature/tca-4.1.1
philippzagar Jun 5, 2023
f6cc314
Fix Merge Conflicts Issues
philippzagar Jun 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
622 changes: 525 additions & 97 deletions Campus-iOS.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Campus-iOS/AnalyticsComponent/AnalyticsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct AnalyticsController {
print("Info: app usage data upload is disabled.")
return

/*
if !didOptIn {
return
}
Expand Down Expand Up @@ -89,5 +90,6 @@ struct AnalyticsController {
request.setValue(postToken, forHTTPHeaderField: "Authorization")

let (_, _) = try await URLSession.shared.data(for: request)
*/
}
}
81 changes: 0 additions & 81 deletions Campus-iOS/AnalyticsComüo/AnalyticsController.swift

This file was deleted.

12 changes: 0 additions & 12 deletions Campus-iOS/AnalyticsComüo/AnalyticsError.swift

This file was deleted.

125 changes: 0 additions & 125 deletions Campus-iOS/AnalyticsComüo/AppUsageData.swift

This file was deleted.

28 changes: 0 additions & 28 deletions Campus-iOS/AnalyticsComüo/AppUsageDataEntity.swift

This file was deleted.

20 changes: 0 additions & 20 deletions Campus-iOS/AnalyticsComüo/HashFunction.swift

This file was deleted.

12 changes: 0 additions & 12 deletions Campus-iOS/AnalyticsComüo/Secrets.xcconfig

This file was deleted.

19 changes: 18 additions & 1 deletion Campus-iOS/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import KVKCalendar
import Firebase

@main
@MainActor
struct CampusApp: App {
@StateObject var model: Model = Model()

Expand Down Expand Up @@ -46,13 +47,29 @@ struct CampusApp: App {
})
.environmentObject(model)
.environment(\.managedObjectContext, persistenceController.container.viewContext)
.task {
guard let credentials = model.loginController.credentials else {
model.isUserAuthenticated = false
model.isLoginSheetPresented = true
return
}

switch credentials {
case .noTumID:
model.isUserAuthenticated = false
model.isLoginSheetPresented = false
case .tumID(tumID: _, token: _), .tumIDAndKey(tumID: _, token: _, key: _):
model.isUserAuthenticated = true
model.isLoginSheetPresented = false
}
}
}
}

func tabViewComponent() -> some View {
TabView(selection: $selectedTab) {
NavigationView {
CalendarContentView(
CalendarScreen(
model: model,
refresh: $model.isUserAuthenticated
)
Expand Down
17 changes: 16 additions & 1 deletion Campus-iOS/Base/Enums/Enums.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,22 @@ enum Gender: Decodable, Hashable {
}
}

enum ContactInfo {
enum ContactInfo: Identifiable {
var id: String {
switch self {
case .phone(let phone):
return phone
case .mobilePhone(let mobile):
return mobile
case .fax(let fax):
return fax
case .additionalInfo(let info):
return info
case .homepage(let homepage):
return homepage
}
}

case phone(String)
case mobilePhone(String)
case fax(String)
Expand Down
37 changes: 37 additions & 0 deletions Campus-iOS/Base/Networking/APIErrors/EatAPIError.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// EatAPIError.swift
// Campus-iOS
//
// Created by David Lin on 10.02.23.
//

import Foundation

enum EatAPIError: APIError, LocalizedError {
case unknown(String)

enum CodingKeys: String, CodingKey {
case message
}

init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
let error = try container.decode(String.self, forKey: .message)

switch error {
default:
self = .unknown(error)
}
}

init(message: String) {
self = .unknown(message)
}

public var errorDescription: String? {
switch self {
case let .unknown(message):
return "\("Unkonw error".localized): \(message)"
}
}
}
Loading