Skip to content

Commit

Permalink
Merge pull request #133 from vicolo-dev/release/0.3.2
Browse files Browse the repository at this point in the history
Release/0.3.2
  • Loading branch information
AhsanSarwar45 authored Mar 26, 2024
2 parents fd60840 + 3089642 commit 1c83ffc
Show file tree
Hide file tree
Showing 38 changed files with 706 additions and 327 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.3"
flutter-version: "3.19.3"
channel: 'stable'
cache: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.3"
flutter-version: "3.19.3"
channel: 'stable'
cache: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.3' # or, you can use 1.22
flutter-version: '3.19.3' # or, you can use 1.22
channel: 'stable'
cache: true
- run: flutter test --coverage
Expand Down
16 changes: 8 additions & 8 deletions lib/alarm/data/alarm_settings_schema.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,22 @@ SettingGroup alarmSettingsSchema = SettingGroup(
ToggleSettingOption("S", 7),
],
enableConditions: [
SettingEnableConditionParameter(["Type"], WeeklyAlarmSchedule)
ValueCondition(["Type"], (value)=>value==WeeklyAlarmSchedule)
],
),
DateTimeSetting(
"Dates",
[],
enableConditions: [
SettingEnableConditionParameter(["Type"], DatesAlarmSchedule)
ValueCondition(["Type"], (value)=>value==DatesAlarmSchedule)
],
),
DateTimeSetting(
"Date Range",
[],
rangeOnly: true,
enableConditions: [
SettingEnableConditionParameter(["Type"], RangeAlarmSchedule)
ValueCondition(["Type"], (value)=>value==RangeAlarmSchedule)
],
),
SelectSetting<RangeInterval>(
Expand All @@ -81,7 +81,7 @@ SettingGroup alarmSettingsSchema = SettingGroup(
SelectSettingOption("Weekly", RangeInterval.weekly),
],
enableConditions: [
SettingEnableConditionParameter(["Type"], RangeAlarmSchedule)
ValueCondition(["Type"], (value)=>value==RangeAlarmSchedule)
],
),
],
Expand Down Expand Up @@ -112,7 +112,7 @@ SettingGroup alarmSettingsSchema = SettingGroup(
DurationSetting(
"Time To Full Volume", const TimeDuration(minutes: 1),
enableConditions: [
SettingEnableConditionParameter(["Rising Volume"], true)
ValueCondition(["Rising Volume"], (value)=>value==true)
]),
],
),
Expand All @@ -129,21 +129,21 @@ SettingGroup alarmSettingsSchema = SettingGroup(
[
SwitchSetting("Enabled", true),
SliderSetting("Length", 1, 30, 5, unit: "minutes", enableConditions: [
SettingEnableConditionParameter(["Enabled"], true)
ValueCondition(["Enabled"], (value)=>value==true)
]),
SliderSetting("Max Snoozes", 1, 10, 3,
unit: "times",
snapLength: 1,
description:
"The maximum number of times the alarm can be snoozed before it is dismissed",
enableConditions: [
SettingEnableConditionParameter(["Enabled"], true)
ValueCondition(["Enabled"], (value)=>value==true)
]),
SettingGroup("While Snoozed", [
SwitchSetting("Prevent Disabling", false),
SwitchSetting("Prevent Deletion", false),
], enableConditions: [
SettingEnableConditionParameter(["Enabled"], true)
ValueCondition(["Enabled"], (value)=>value==true)
]),
],
icon: Icons.snooze_rounded,
Expand Down
Loading

0 comments on commit 1c83ffc

Please sign in to comment.