diff --git a/packages/uni_app/ios/Flutter/AppFrameworkInfo.plist b/packages/uni_app/ios/Flutter/AppFrameworkInfo.plist
index 9625e105d..7c5696400 100644
--- a/packages/uni_app/ios/Flutter/AppFrameworkInfo.plist
+++ b/packages/uni_app/ios/Flutter/AppFrameworkInfo.plist
@@ -21,6 +21,6 @@
CFBundleVersion
1.0
MinimumOSVersion
- 11.0
+ 12.0
diff --git a/packages/uni_app/ios/Podfile b/packages/uni_app/ios/Podfile
index 15c570493..d97f17e22 100644
--- a/packages/uni_app/ios/Podfile
+++ b/packages/uni_app/ios/Podfile
@@ -41,4 +41,4 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
-end
\ No newline at end of file
+end
diff --git a/packages/uni_app/ios/Runner.xcodeproj/project.pbxproj b/packages/uni_app/ios/Runner.xcodeproj/project.pbxproj
index 889daa0d4..f3ff7eddb 100644
--- a/packages/uni_app/ios/Runner.xcodeproj/project.pbxproj
+++ b/packages/uni_app/ios/Runner.xcodeproj/project.pbxproj
@@ -214,7 +214,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 1430;
+ LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
378A17102ACF02E100B89C1C = {
diff --git a/packages/uni_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/uni_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index 28bc2d73f..5b0c182f6 100644
--- a/packages/uni_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/packages/uni_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -1,6 +1,6 @@
> getLectures(Session session, Profile profile);
+ Future> getLectures(Session session);
List getWeeks(DateTime now) {
final week = Week(start: now);
diff --git a/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_api.dart b/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_api.dart
index 7efc35063..0c7da4f56 100644
--- a/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_api.dart
+++ b/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_api.dart
@@ -3,7 +3,6 @@ import 'package:uni/controller/fetchers/schedule_fetcher/schedule_fetcher.dart';
import 'package:uni/controller/networking/network_router.dart';
import 'package:uni/controller/parsers/schedule/api/parser.dart';
import 'package:uni/model/entities/lecture.dart';
-import 'package:uni/model/entities/profile.dart';
import 'package:uni/model/utils/time/week.dart';
import 'package:uni/session/flows/base/session.dart';
@@ -19,7 +18,7 @@ class ScheduleFetcherApi extends ScheduleFetcher {
/// Fetches the user's lectures from the faculties' API.
@override
- Future> getLectures(Session session, Profile profile) async {
+ Future> getLectures(Session session) async {
final dates = getDates();
final urls = getEndpoints(session);
diff --git a/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_new_api.dart b/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_new_api.dart
index e42f24e30..9ab5b041f 100644
--- a/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_new_api.dart
+++ b/packages/uni_app/lib/controller/fetchers/schedule_fetcher/schedule_fetcher_new_api.dart
@@ -2,7 +2,6 @@ import 'package:uni/controller/fetchers/schedule_fetcher/schedule_fetcher.dart';
import 'package:uni/controller/networking/network_router.dart';
import 'package:uni/controller/parsers/schedule/new_api/parser.dart';
import 'package:uni/model/entities/lecture.dart';
-import 'package:uni/model/entities/profile.dart';
import 'package:uni/session/flows/base/session.dart';
/// Class for fetching the user's lectures from the schedule's HTML page.
@@ -17,7 +16,7 @@ class ScheduleFetcherNewApi extends ScheduleFetcher {
/// Fetches the user's lectures from the schedule's HTML page.
@override
- Future> getLectures(Session session, Profile profile) async {
+ Future> getLectures(Session session) async {
final endpoints = getEndpoints(session);
final lectiveYear = getLectiveYear(DateTime.now());
diff --git a/packages/uni_app/lib/controller/local_storage/database/app_course_units_database.dart b/packages/uni_app/lib/controller/local_storage/database/app_course_units_database.dart
index 85d895df8..5418d240a 100644
--- a/packages/uni_app/lib/controller/local_storage/database/app_course_units_database.dart
+++ b/packages/uni_app/lib/controller/local_storage/database/app_course_units_database.dart
@@ -9,19 +9,21 @@ class AppCourseUnitsDatabase extends AppDatabase> {
: super(
'course_units.db',
[createScript],
+ onUpgrade: migrate,
+ version: 2,
);
static const String createScript =
'''CREATE TABLE course_units(ucurr_id INTEGER, ucurr_codigo TEXT, ucurr_sigla TEXT , '''
'''ucurr_nome TEXT, ano INTEGER, ocorr_id INTEGER, per_codigo TEXT, '''
'''per_nome TEXT, tipo TEXT, estado TEXT, resultado_melhor TEXT, resultado_ects TEXT, '''
- '''resultado_insc TEXT, creditos_ects REAL, schoolYear TEXT)''';
+ '''ectsGrade TEXT, resultado_insc TEXT, creditos_ects REAL, schoolYear TEXT)''';
Future> courseUnits() async {
final db = await getDatabase();
final List