-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from 'release/v1.0.2'
Release v1.0.2
- Loading branch information
Showing
66 changed files
with
991 additions
and
363 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@drawable/ic_launcher_background"/> | ||
<foreground android:drawable="@drawable/ic_launcher_foreground"/> | ||
</adaptive-icon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -548,4 +548,4 @@ | |
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 97C146E61CF9000F007C117D /* Project object */; | ||
} | ||
} |
Binary file modified
BIN
-146 KB
(18%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-295 Bytes
(57%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.07 KB
(45%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.08 KB
(40%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-578 Bytes
(53%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.02 KB
(40%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.67 KB
(37%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.07 KB
(45%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.3 KB
(37%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.79 KB
(34%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.79 KB
(34%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 KB
(30%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.03 KB
(38%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-8.43 KB
(32%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-9.9 KB
(30%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'dart:convert'; | ||
import 'package:rtu_mirea_app/domain/entities/schedule_settings.dart'; | ||
|
||
class ScheduleSettingsModel extends ScheduleSettings { | ||
ScheduleSettingsModel({ | ||
required showEmptyLessons, | ||
required showLessonsNumbers, | ||
required calendarFormat, | ||
}) : super( | ||
showEmptyLessons: showEmptyLessons, | ||
showLessonsNumbers: showLessonsNumbers, | ||
calendarFormat: calendarFormat, | ||
); | ||
|
||
factory ScheduleSettingsModel.fromRawJson(String str) => | ||
ScheduleSettingsModel.fromJson(json.decode(str)); | ||
|
||
String toRawJson() => json.encode(toJson()); | ||
|
||
factory ScheduleSettingsModel.fromJson(Map<String, dynamic> json) => | ||
ScheduleSettingsModel( | ||
showEmptyLessons: json["show_empty_lessons"], | ||
showLessonsNumbers: json["show_lessons_numbers"], | ||
calendarFormat: json["calendar_format"], | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"show_empty_lessons": showEmptyLessons, | ||
"show_lessons_numbers": showLessonsNumbers, | ||
"calendar_format": calendarFormat, | ||
}; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:equatable/equatable.dart'; | ||
|
||
class ScheduleSettings extends Equatable { | ||
const ScheduleSettings({ | ||
required this.showEmptyLessons, | ||
required this.showLessonsNumbers, | ||
required this.calendarFormat, | ||
}); | ||
|
||
final bool showEmptyLessons; | ||
final bool showLessonsNumbers; | ||
final int calendarFormat; | ||
|
||
@override | ||
List<Object?> get props => [showEmptyLessons, showLessonsNumbers]; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import 'package:dartz/dartz.dart'; | ||
import 'package:rtu_mirea_app/common/errors/failures.dart'; | ||
import 'package:rtu_mirea_app/domain/entities/schedule.dart'; | ||
import 'package:rtu_mirea_app/domain/entities/schedule_settings.dart'; | ||
|
||
abstract class ScheduleRepository { | ||
Future<Either<Failure, Schedule>> getSchedule(String group); | ||
Future<Either<Failure, Schedule>> getSchedule(String group, bool fromRemote); | ||
Future<Either<Failure, List<Schedule>>> getDownloadedSchedules(); | ||
Future<Either<Failure, List<String>>> getAllGroups(); | ||
Future<Either<Failure, String>> getActiveGroup(); | ||
Future<void> setActiveGroup(String group); | ||
Future<void> deleteSchedule(String group); | ||
Future<void> setSettings(ScheduleSettings settings); | ||
Future<ScheduleSettings> getSettings(); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'package:rtu_mirea_app/domain/entities/schedule_settings.dart'; | ||
import 'package:rtu_mirea_app/domain/repositories/schedule_repository.dart'; | ||
import 'package:rtu_mirea_app/domain/usecases/usecase.dart'; | ||
|
||
class GetScheduleSettings extends UseCaseRight<ScheduleSettings, void> { | ||
final ScheduleRepository scheduleRepository; | ||
|
||
GetScheduleSettings(this.scheduleRepository); | ||
|
||
@override | ||
Future<ScheduleSettings> call([_]) async { | ||
return await scheduleRepository.getSettings(); | ||
} | ||
} |
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,26 @@ | ||
import 'package:dartz/dartz.dart'; | ||
import 'package:equatable/equatable.dart'; | ||
import 'package:rtu_mirea_app/common/errors/failures.dart'; | ||
import 'package:rtu_mirea_app/domain/entities/schedule_settings.dart'; | ||
import 'package:rtu_mirea_app/domain/repositories/schedule_repository.dart'; | ||
import 'package:rtu_mirea_app/domain/usecases/usecase.dart'; | ||
|
||
class SetScheduleSettings extends UseCase<void, SetScheduleSettingsParams> { | ||
final ScheduleRepository scheduleRepository; | ||
|
||
SetScheduleSettings(this.scheduleRepository); | ||
|
||
@override | ||
Future<Either<Failure, void>> call(SetScheduleSettingsParams params) async { | ||
return Right(scheduleRepository.setSettings(params.settings)); | ||
} | ||
} | ||
|
||
class SetScheduleSettingsParams extends Equatable { | ||
final ScheduleSettings settings; | ||
|
||
SetScheduleSettingsParams(this.settings); | ||
|
||
@override | ||
List<Object?> get props => [settings]; | ||
} |
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.