Skip to content

Commit bfed5f4

Browse files
committed
Initial commit: Focus Forge Timer App
0 parents  commit bfed5f4

159 files changed

Lines changed: 8226 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Symbolication related
35+
app.*.symbols
36+
37+
# Obfuscation related
38+
app.*.map.json
39+
40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release
44+
45+
# Flutter/Dart specific
46+
.dart_tool/
47+
.flutter-plugins
48+
.flutter-plugins-dependencies
49+
.packages
50+
.pub-cache/
51+
.pub/
52+
build/
53+
*.iml
54+
55+
# IDE specific
56+
.idea/
57+
.vscode/
58+
*.iws
59+
*.ipr
60+
61+
# Windows specific
62+
*.exe
63+
*.dll
64+
*.pdb
65+
installer/
66+
67+
# Temporary files
68+
*.log
69+
*.tmp
70+
71+
# Android
72+
**/android/**/gradle-wrapper.jar
73+
**/android/.gradle
74+
**/android/captures/
75+
**/android/gradlew
76+
**/android/gradlew.bat
77+
**/android/local.properties
78+
**/android/**/GeneratedPluginRegistrant.*
79+
80+
# iOS/XCode
81+
**/ios/**/*.mode1v3
82+
**/ios/**/*.mode2v3
83+
**/ios/**/*.moved-aside
84+
**/ios/**/*.pbxuser
85+
**/ios/**/*.perspectivev3
86+
**/ios/**/*sync/
87+
**/ios/**/.sconsign.dblite
88+
**/ios/**/.tags*
89+
**/ios/**/.vagrant/
90+
**/ios/**/DerivedData/
91+
**/ios/**/Icon?
92+
**/ios/**/Pods/
93+
**/ios/**/.symlinks/
94+
**/ios/**/profile
95+
**/ios/**/xcuserdata
96+
**/ios/.generated/
97+
**/ios/Flutter/.last_build_id
98+
**/ios/Flutter/App.framework
99+
**/ios/Flutter/Flutter.framework
100+
**/ios/Flutter/Flutter.podspec
101+
**/ios/Flutter/Generated.xcconfig
102+
**/ios/Flutter/ephemeral
103+
**/ios/Flutter/app.flx
104+
**/ios/Flutter/app.zip
105+
**/ios/Flutter/flutter_assets/
106+
**/ios/Flutter/flutter_export_environment.sh
107+
**/ios/ServiceDefinitions.json
108+
**/ios/Runner/GeneratedPluginRegistrant.*

.metadata

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "603104015dd692ea3403755b55d07813d5cf8965"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
17+
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
18+
- platform: android
19+
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
20+
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
21+
- platform: ios
22+
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
23+
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
24+
- platform: linux
25+
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
26+
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
27+
- platform: macos
28+
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
29+
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
30+
- platform: web
31+
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
32+
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
33+
- platform: windows
34+
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
35+
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Focus Forge
2+
3+
A minimalist focus timer application built with Flutter that helps you stay productive using the Pomodoro Technique.
4+
5+
## Features
6+
7+
- Clean, distraction-free interface
8+
- Customizable work and break intervals
9+
- Session statistics tracking
10+
- Desktop notifications
11+
- Cross-platform support (Windows, macOS, Linux)
12+
13+
## Installation
14+
15+
### Windows
16+
1. Download the latest installer from the releases page
17+
2. Run the installer
18+
3. Follow the installation wizard
19+
20+
Note: You might see a Windows SmartScreen warning because the app is not signed with a certificate. This is expected for open-source software distributed outside the Microsoft Store.
21+
22+
### Building from Source
23+
1. Install Flutter SDK
24+
2. Clone this repository
25+
3. Run `flutter pub get`
26+
4. Run `flutter build windows`
27+
28+
## Development
29+
30+
### Prerequisites
31+
- Flutter SDK
32+
- Windows SDK (for Windows build)
33+
- Visual Studio Build Tools
34+
- Git
35+
36+
### Setup

analysis_options.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/to/reference-keystore
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

android/app/build.gradle

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id "dev.flutter.flutter-gradle-plugin"
6+
}
7+
8+
android {
9+
namespace = "com.example.focusforge"
10+
compileSdk = flutter.compileSdkVersion
11+
ndkVersion = flutter.ndkVersion
12+
13+
compileOptions {
14+
sourceCompatibility = JavaVersion.VERSION_1_8
15+
targetCompatibility = JavaVersion.VERSION_1_8
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_1_8
20+
}
21+
22+
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "com.example.focusforge"
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
28+
targetSdk = flutter.targetSdkVersion
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
31+
}
32+
33+
buildTypes {
34+
release {
35+
// TODO: Add your own signing config for the release build.
36+
// Signing with the debug keys for now, so `flutter run --release` works.
37+
signingConfig = signingConfigs.debug
38+
}
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
3+
<uses-permission android:name="android.permission.VIBRATE" />
4+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
5+
6+
<application
7+
android:label="focusforge"
8+
android:name="${applicationName}"
9+
android:icon="@mipmap/ic_launcher">
10+
<activity
11+
android:name=".MainActivity"
12+
android:exported="true"
13+
android:launchMode="singleTop"
14+
android:taskAffinity=""
15+
android:theme="@style/LaunchTheme"
16+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
17+
android:hardwareAccelerated="true"
18+
android:windowSoftInputMode="adjustResize">
19+
<!-- Specifies an Android theme to apply to this Activity as soon as
20+
the Android process has started. This theme is visible to the user
21+
while the Flutter UI initializes. After that, this theme continues
22+
to determine the Window background behind the Flutter UI. -->
23+
<meta-data
24+
android:name="io.flutter.embedding.android.NormalTheme"
25+
android:resource="@style/NormalTheme"
26+
/>
27+
<intent-filter>
28+
<action android:name="android.intent.action.MAIN"/>
29+
<category android:name="android.intent.category.LAUNCHER"/>
30+
</intent-filter>
31+
</activity>
32+
<!-- Don't delete the meta-data below.
33+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
34+
<meta-data
35+
android:name="flutterEmbedding"
36+
android:value="2" />
37+
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
38+
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
39+
<intent-filter>
40+
<action android:name="android.intent.action.BOOT_COMPLETED"/>
41+
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
42+
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
43+
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
44+
</intent-filter>
45+
</receiver>
46+
</application>
47+
<!-- Required to query activities that can process text, see:
48+
https://developer.android.com/training/package-visibility and
49+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
50+
51+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
52+
<queries>
53+
<intent>
54+
<action android:name="android.intent.action.PROCESS_TEXT"/>
55+
<data android:mimeType="text/plain"/>
56+
</intent>
57+
</queries>
58+
</manifest>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.example.focusforge
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity()
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="?android:colorBackground" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>

0 commit comments

Comments
 (0)