This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add empty widget view * Add tuition widget * Add Cafeteria Widget * Cycle through menu items in cafeteria widget * Add allergenics label to cafeteria widget * Add study room widget * Add widget sizes, improve widget visibility * Improve design of tuition fee widget * Implement different size options for CafeteriaWidgetView, remove animations * Make tuition widget compatible with all sizes, improve its design * Make study room widget compatible with all sizes, improve its design * Beautify study room widget * Beautify tuition widget * Change study room widget color to white / dark gray * Change tuition fee widget color to white / dark gray * Add text widget view * Use text widget view in study room widget * Use widget color in widget loading view * Update project file * Beautify cafeteria widget * Remove Color extension * Fix count of available study rooms in large study room widget * Add grades widget * Add profile toolbar to widget screen * Add calendar widget * Fix preview * Add map background to study room widget * Improve study room widget design * Improve tuition widget design * Refactor TuitionWidgetInfoView * Improve cafeteria widget design * Improve grade widget design * Make calendar widget title size consistent with other widgets * Change symbol for widget screen * Improve widget frame previews * Add time based widget recommendations * Use protocols for widget recommender strategies * Add location strategy for widget recommendations * Add spatio-temporal strategy for widget recommendations * Add support for app usage data storage * Collect usage data for calendar, grades, cafeteria, study room, and tuition view
- Loading branch information
1 parent
b4746ec
commit 30abc9d
Showing
51 changed files
with
2,273 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="20086" systemVersion="21F79" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> | ||
<entity name="AppUsageData" representedClassName="AppUsageData" syncable="YES" codeGenerationType="class"> | ||
<attribute name="location" optional="YES" attributeType="String"/> | ||
<attribute name="time" optional="YES" attributeType="Date" usesScalarValueType="NO"/> | ||
<attribute name="view" optional="YES" attributeType="String"/> | ||
</entity> | ||
<elements> | ||
<element name="AppUsageData" positionX="-54" positionY="-9" width="128" height="74"/> | ||
</elements> | ||
</model> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// Analytics.swift | ||
// Campus-iOS | ||
// | ||
// Created by Robyn Kölle on 16.08.22. | ||
// | ||
|
||
import Foundation | ||
import MapKit | ||
|
||
struct AnalyticsController { | ||
|
||
static func visitedView(view: CampusAppView) { | ||
let time = Date() | ||
|
||
guard let location = CLLocationManager().location else { | ||
return | ||
} | ||
|
||
let data = AppUsageData(context: PersistenceController.shared.container.viewContext) | ||
data.latitude = location.coordinate.latitude | ||
data.longitude = location.coordinate.longitude | ||
data.time = time | ||
data.view = view.rawValue | ||
|
||
PersistenceController.shared.save() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Campus-iOS/Assets.xcassets/darkGray.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "display-p3", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.288", | ||
"green" : "0.280", | ||
"red" : "0.281" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
Campus-iOS/Assets.xcassets/widgetColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "1.000", | ||
"green" : "1.000", | ||
"red" : "1.000" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.200", | ||
"green" : "0.200", | ||
"red" : "0.200" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.