Skip to content
Open
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
c62da8f
style: applaying some guides for formatter
PaoloProdossimoLopes Sep 10, 2023
85d4619
feat: implement phase duration
PaoloProdossimoLopes Sep 10, 2023
efba6ef
feat: trigger the pomodoro
PaoloProdossimoLopes Sep 10, 2023
3915c20
refactor: move code to production and applying clean code with BDD
PaoloProdossimoLopes Sep 10, 2023
ba9592f
refactor: renaming pomodoro cycle object output
PaoloProdossimoLopes Sep 10, 2023
eb3f872
feature: creating the pomodoro use case
PaoloProdossimoLopes Sep 11, 2023
82269c5
refactor: extract process into small methods
PaoloProdossimoLopes Sep 11, 2023
a9dcce4
feat: implanting `Pomodorable` in Pomodoro
PaoloProdossimoLopes Sep 11, 2023
a9f860d
feat: creating the presentation logic for pomodoro start timer
PaoloProdossimoLopes Sep 11, 2023
395c990
build: adding snapshoting dependency
PaoloProdossimoLopes Sep 11, 2023
c5d0571
refactor: renaming initial controller to `PomodoroViewContorller`
PaoloProdossimoLopes Sep 11, 2023
d5a87db
feat: adding components in pomodoro view controller
PaoloProdossimoLopes Sep 11, 2023
b222cfa
feat: focus inactive progress
PaoloProdossimoLopes Sep 11, 2023
5c88f07
fix: updating swift format to sonoma
PaoloProdossimoLopes Jan 27, 2024
dd174a1
test: ensure the snapshot
PaoloProdossimoLopes Jan 31, 2024
b298160
feat: add short break phase theme in pomodoro view controller
PaoloProdossimoLopes Jan 31, 2024
ee57a89
feat: add long break phase theme in pomodoro view controller
PaoloProdossimoLopes Jan 31, 2024
3ed06d6
refactor: use extracted property to handle with color to remove dupli…
PaoloProdossimoLopes Jan 31, 2024
6896658
feat: create timer of pomodoro
PaoloProdossimoLopes Feb 17, 2024
4c770ad
test: ensure the pomodor phase notification
PaoloProdossimoLopes Feb 18, 2024
d232875
feat: setup initial state for viewModel
PaoloProdossimoLopes Feb 19, 2024
4e5f4c2
feat: make the controller implements the view model delegates and add…
PaoloProdossimoLopes Feb 19, 2024
5f9eab2
chore: compose components and fix buggs
PaoloProdossimoLopes Feb 19, 2024
a358abe
feat: add skip phase
PaoloProdossimoLopes Feb 19, 2024
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
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions .swift-format.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
},
"indentConditionalCompilationBlocks" : true,
"lineBreakBeforeControlFlowKeywords" : false,
"lineBreakBeforeEachArgument" : false,
"lineBreakBeforeEachArgument" : true,
"lineLength" : 90,
"maximumBlankLines" : 1,
"respectsExistingLineBreaks" : false,
"respectsExistingLineBreaks" : true,
"rules" : {
"AllPublicDeclarationsHaveDocumentation" : true,
"AlwaysUseLowerCamelCase" : true,
Expand All @@ -30,7 +30,7 @@
"NoAccessLevelOnExtensionDeclaration" : true,
"NoBlockComments" : true,
"NoCasesWithOnlyFallthrough" : true,
"NoEmptyTrailingClosureParentheses" : true,
"NoEmptyTrailingClosureParentheses" : false,
"NoAssignmentInExpressions": true,
"NoLabelsInCasePatterns" : true,
"NoLeadingUnderscores" : true,
Expand Down
177 changes: 168 additions & 9 deletions Pom.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions Pom.xcodeproj/xcshareddata/xcschemes/Pom.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "DF4A26D9-BA9F-4C2C-9EBA-D6723D54FEEF"
type = "1"
version = "2.0">
</Bucket>
10 changes: 9 additions & 1 deletion Pom.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@
}
],
"defaultOptions" : {
"codeCoverage" : false,
"codeCoverage" : {
"targets" : [
{
"containerPath" : "container:Pom.xcodeproj",
"identifier" : "B14A1EAC2AA4C234004EC140",
"name" : "Pom"
}
]
},
"targetForVariableExpansion" : {
"containerPath" : "container:Pom.xcodeproj",
"identifier" : "B14A1EAC2AA4C234004EC140",
Expand Down
3 changes: 2 additions & 1 deletion Pom/AppIconHandlerSceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ final class AppIconHandlerSceneDelegate: NSObject, UIWindowSceneDelegate {
guard
let icon = chooseIcon(
deviceMode: delegate.interfaceStyle,
currentIcon: delegate.getAlternateIcon())
currentIcon: delegate.getAlternateIcon()
)
else { return }

delegate.setAlternateIcon(iconName: icon.rawValue)
Expand Down
6 changes: 6 additions & 0 deletions Pom/Assets.xcassets/Colors/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
20 changes: 20 additions & 0 deletions Pom/Assets.xcassets/Colors/FocusColor.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.235",
"green" : "0.298",
"red" : "0.902"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
20 changes: 20 additions & 0 deletions Pom/Assets.xcassets/Colors/LongBreakColor.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "0.498",
"red" : "0.169"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
23 changes: 23 additions & 0 deletions Pom/Assets.xcassets/Colors/ShortBreakColor.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.455",
"green" : "0.529",
"red" : "0.000"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"localizable" : true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xF9",
"green" : "0xF8",
"red" : "0xF6"
"blue" : "0.976",
"green" : "0.973",
"red" : "0.965"
}
},
"idiom" : "universal"
Expand All @@ -23,9 +23,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x2D",
"green" : "0x24",
"red" : "0x1D"
"blue" : "0.176",
"green" : "0.141",
"red" : "0.114"
}
},
"idiom" : "universal"
Expand Down
19 changes: 19 additions & 0 deletions Pom/Helpers/UIColor+Extensions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import UIKit

extension UIColor {
static var focus: UIColor {
UIColor(named: "FocusColor")!
}

static var shortBreak: UIColor {
UIColor(named: "ShortBreakColor")!
}

static var longBreak: UIColor {
UIColor(named: "LongBreakColor")!
}

static var background: UIColor {
UIColor(named: "background")!
}
}
7 changes: 7 additions & 0 deletions Pom/Helpers/UIStackView+Extensions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import UIKit

extension UIStackView {
func append(_ views: UIView...) {
views.forEach(addArrangedSubview)
}
}
Loading