Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #202

Merged
merged 162 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
0c1dea1
Merge pull request #144 from vicolo-dev/develop
AhsanSarwar45 Mar 27, 2024
6a68d4d
Create CONTRIBUTING.md
AhsanSarwar45 Mar 27, 2024
79a69af
Rename CONTRIBUTING.md to CONTRIBUTING
AhsanSarwar45 Mar 27, 2024
9509fe1
Rename CONTRIBUTING to CONTRIBUTING.md
AhsanSarwar45 Mar 27, 2024
a291408
Update README.md
AhsanSarwar45 Mar 27, 2024
e851077
Update README.md
AhsanSarwar45 Mar 27, 2024
0424552
Remove internet permission
Mar 27, 2024
850e2bd
Merge pull request #146 from vicolo-dev/fix-remove-internet
AhsanSarwar45 Mar 27, 2024
5620438
Bump pubspec version
Mar 27, 2024
c8bc95c
Merge pull request #147 from vicolo-dev/release/0.3.4
AhsanSarwar45 Mar 28, 2024
353bd77
Merge pull request #148 from vicolo-dev/master
AhsanSarwar45 Mar 28, 2024
611883d
Fix app appearing over lock screen
Mar 28, 2024
d3cfc2a
Remove extra print statements
Mar 28, 2024
733fe0b
Merge pull request #151 from vicolo-dev/fix-lock-screen
AhsanSarwar45 Mar 28, 2024
43f4525
Prevent random alarms from ringing
Mar 28, 2024
5264e78
Add alarm tracking
Mar 29, 2024
566c808
Fix various timer issues
Mar 30, 2024
808ac9a
Fix various issues
Mar 31, 2024
b0180ff
Add export and import to alarm logging
Mar 31, 2024
70050fb
Fix alarm tests
Mar 31, 2024
21ec0f6
Fix more alarm tests
Mar 31, 2024
48052ae
Fix all alarm tests
Mar 31, 2024
2f78d69
Remove print statements
Mar 31, 2024
4c2121d
Merge pull request #155 from vicolo-dev/fix-random-alarms
AhsanSarwar45 Mar 31, 2024
234880b
Fix random timer ringing
Mar 31, 2024
1ec4225
Fix timer not ringing
Mar 31, 2024
3361b89
Fix timer erroneous active alarm
Mar 31, 2024
30be97d
Makr alarm events not reorderable
Mar 31, 2024
f30aa89
Add max logs setting
Apr 1, 2024
049918e
Add select filters
Apr 1, 2024
5911134
Add better filtering system
Apr 2, 2024
030109c
Fix timers not updating after boot
Apr 2, 2024
e1adece
Make ringtone stop on dismiss notification
Apr 2, 2024
170043c
Fix select test
Apr 2, 2024
dffc85f
Fix volume not working
Apr 2, 2024
b80779f
Add option to add custom tags
Apr 2, 2024
dc22a4c
Improve multiselect filter UI
Apr 2, 2024
c19100b
Add swipable tabs
Apr 3, 2024
8a48c43
Add filters to alarm logs
Apr 3, 2024
e80599b
Change layout of city cards
Apr 3, 2024
6fb48c3
Improve select field actions padding
Apr 3, 2024
aa6373c
Fix tests
Apr 3, 2024
042ef04
Add guard for alarm notification screen
Apr 3, 2024
90e67e9
Change displayd date in alarm notification screen
Apr 3, 2024
6f156c8
Merge pull request #156 from vicolo-dev/fix-random-alarms
AhsanSarwar45 Apr 3, 2024
83d920d
Add stopwatch and upcoming alarm notifications
Apr 3, 2024
29670b9
Fix snooze notifications not working
Apr 3, 2024
c20e725
Add actions for reminder alarms
Apr 3, 2024
c9625ce
Initial work for timer notification
Apr 3, 2024
ec17ca8
Fix tests
Apr 3, 2024
610d589
Fix timer and stopwatch notifications
Apr 3, 2024
092f7a3
Add settings for timers
Apr 3, 2024
9aeacca
Fixed various notification issues
Apr 4, 2024
5548962
Fix list settings not getting saved
Apr 4, 2024
d321d9f
Initial work for low volume
Apr 4, 2024
13123b9
Remove print statements
Apr 4, 2024
4c26380
Merge pull request #160 from vicolo-dev/feature-notifications
AhsanSarwar45 Apr 4, 2024
e79fe30
Bump pubspec version
Apr 4, 2024
a89453e
Fix settings not persisting between isolates
Apr 4, 2024
6bdfbca
Fix timer notifications
Apr 4, 2024
202c0dd
Add compatibility for older versions
Apr 4, 2024
d999417
Improve colors
Apr 4, 2024
ba3b621
Fix upcoming notifications of disabled alarms
Apr 5, 2024
d19bba3
Fix alarm notifications
Apr 5, 2024
9084593
Fix timer and stopwatch notifications
Apr 5, 2024
a0c3a2b
Edit version
Apr 5, 2024
02b69cc
Add filter actions
Apr 6, 2024
78ea930
Add filter actions to timer screen
Apr 6, 2024
047d277
Initial work for sorting
Apr 6, 2024
3267d5e
Update flutter show on lock screen
Apr 6, 2024
5e9eef9
Update lock screen flags
Apr 6, 2024
d1cbaf5
Create clear-cache.yml
AhsanSarwar45 Apr 6, 2024
bce1612
Merge pull request #166 from vicolo-dev/master
AhsanSarwar45 Apr 6, 2024
35ee2c4
Fix filters and state
Apr 6, 2024
5fea9e7
Merge branch 'release/0.4.0-beta1' of github.com:vicolo-dev/chrono in…
Apr 6, 2024
61aec73
Fix more edge cases
Apr 6, 2024
9eec620
Fix performance issues
Apr 6, 2024
84a4f74
Add animation setting
Apr 7, 2024
29b45d2
Made stopwatch smoother
Apr 7, 2024
fb6d9f5
Make timer smoother
Apr 7, 2024
586fff1
Fix schedule tests
Apr 7, 2024
365670f
Improve filter action chip ui
Apr 7, 2024
807aa98
Add option for extra animations
Apr 7, 2024
6ed4a09
Add extra animation speed option
Apr 7, 2024
d1c5ff9
Change stopwatch notificatiom
Apr 7, 2024
5996cd0
Fix typo
Apr 7, 2024
f801162
Bump version
Apr 7, 2024
fa65bad
Fix animation speed not working on start
Apr 7, 2024
5650e12
Add more sort options
Apr 8, 2024
2bf7a55
Fix alarms not getting cancelled when mass deleting
Apr 8, 2024
9412d1d
Update kotlin version
Apr 8, 2024
ffc8099
Set gradle cache to false
Apr 8, 2024
0cbb956
Remove gradle cache
Apr 8, 2024
7144e5d
Add clean cache step
Apr 8, 2024
007ca07
Changed gradle version
Apr 8, 2024
a680f95
Update workflows
Apr 8, 2024
008e6ed
Reverted gradle version
Apr 8, 2024
4dbfc14
Change gradle and kotlin versions
Apr 8, 2024
2137515
Add option to hide sort
Apr 8, 2024
01e5566
Update version
Apr 8, 2024
4e399f3
Update flutter_boot_receiver
Apr 9, 2024
3277f9e
Bump version
Apr 9, 2024
e72fd0f
Merge pull request #164 from vicolo-dev/release/0.4.0-beta1
AhsanSarwar45 Apr 10, 2024
b8b9a38
Merge pull request #168 from vicolo-dev/master
AhsanSarwar45 Apr 10, 2024
1fbfba8
Add fdroid badge to readme
AhsanSarwar45 Apr 10, 2024
645baad
Fix landscape issues
Apr 12, 2024
1ccb9c2
Merge pull request #173 from vicolo-dev/fix-responsiveness
AhsanSarwar45 Apr 12, 2024
9fb88c4
Update README.md
AhsanSarwar45 Apr 13, 2024
50d86ac
Fix editing items while sorted buggy
Apr 16, 2024
205961b
Fix stopwatch screen
Apr 16, 2024
62092ac
Fix sort option not getting saved
Apr 16, 2024
653ab31
Bump version
Apr 16, 2024
81dec59
Add icon and name for dev flavor
Apr 16, 2024
02242e9
Optimize filter actions
Apr 16, 2024
c0ed3f0
Fix timers notification not updating correctly
Apr 17, 2024
f99931e
Fix timer notification not updating on finishing
Apr 17, 2024
defcd8e
Fix upcoming alarm notification not working
Apr 17, 2024
0d8e5f8
Update README.md
AhsanSarwar45 Apr 17, 2024
c90b487
Add rounded icon
AhsanSarwar45 Apr 17, 2024
26e7e5b
Fix dates schedule alarm broken
Apr 17, 2024
61b2bc1
Update changelogs
Apr 17, 2024
76c728a
Fix alarm not updating on editing
Apr 17, 2024
fddff43
Fixed dates schedule not updating after finishing
Apr 17, 2024
ab74138
Fix dates schedule not duplicating correctly when finished
Apr 17, 2024
48c6d56
Update changelog
Apr 17, 2024
cbed855
Add skip alarm filter action
Apr 18, 2024
9bfcd9c
Add more actions to timer popup
Apr 18, 2024
5591222
Update changelog
Apr 18, 2024
1905353
Remove finish alarm test
Apr 18, 2024
0e8ab17
Merge pull request #179 from vicolo-dev/release/0.4.1
AhsanSarwar45 Apr 18, 2024
a83c22d
Update timer card test
Apr 18, 2024
db5a26f
Merge pull request #182 from vicolo-dev/master
AhsanSarwar45 Apr 18, 2024
3ebbc06
Add cover image
AhsanSarwar45 Apr 18, 2024
2f407bf
Update README.md
AhsanSarwar45 Apr 18, 2024
efc5b0f
Change fastlane screenhots
Apr 18, 2024
60246b7
Merge branch 'master' of github.com:vicolo-dev/chrono
Apr 18, 2024
defd25a
Fix alarm one time alarm diabling (fixed thanks to azeem-io)
Apr 22, 2024
d6f36af
Update version
Apr 22, 2024
a30b881
Update changelog
Apr 23, 2024
794e402
Merge pull request #193 from vicolo-dev/develop
azeem-io Apr 23, 2024
7b83309
Add delete after ringing
Apr 24, 2024
e33daf0
Fix delete after finishing
Apr 24, 2024
6585839
Update changelog
Apr 24, 2024
35b36ea
Add count setting to math task
Apr 24, 2024
ecfe5ca
Add spinner time picker
Apr 24, 2024
53f9b91
Fix spinner timer
Apr 25, 2024
0f5a4e9
Cleanup code
Apr 25, 2024
dc03f88
Bump pubspec version
Apr 25, 2024
84f8bbc
Add credits to about page
Apr 25, 2024
2df015e
Update changelog
Apr 25, 2024
0521bb6
Fixed numbers appearing after melody name
Apr 25, 2024
da78f27
Cleaned code
Apr 25, 2024
3387db9
Fixed tasks
Apr 26, 2024
8019459
Change auto alarm delete behaviour
Apr 26, 2024
978ec95
Fix issue in FileItem loading
Apr 26, 2024
79cc5c7
Update changelong
Apr 26, 2024
4cc8188
Merge pull request #196 from vicolo-dev/release/v0.4.3
AhsanSarwar45 Apr 27, 2024
2b816b9
Update README.md
AhsanSarwar45 Apr 27, 2024
ef82811
Update README.md
AhsanSarwar45 Apr 27, 2024
75f3bc5
Update README.md
AhsanSarwar45 Apr 27, 2024
3360a26
Merge pull request #201 from vicolo-dev/master
AhsanSarwar45 Apr 28, 2024
57dee5f
Merge branch 'feature-i18n' into develop
AhsanSarwar45 Apr 28, 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
1 change: 1 addition & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- name: Pub Get Packages
run: flutter pub get


- name: Build APK
run: flutter build apk --release --split-per-abi --flavor dev

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
with:
distribution: 'adopt'
java-version: "17"
cache: 'gradle'
# cache: 'gradle'

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

- name: Create key.properties
run: |
Expand All @@ -44,6 +44,11 @@ jobs:
- name: Turn off analytics
run: flutter config --no-analytics

- name: Clear cache
run: |
flutter clean
rm -rf ~/.gradle/caches

- name: Pub Get Packages
run: flutter pub get

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/clear-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Clear cache

on:
workflow_dispatch:

permissions:
actions: write

jobs:
clear-cache:
runs-on: ubuntu-latest
steps:
- name: Clear cache
uses: actions/github-script@v6
with:
script: |
console.log("About to clear")
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
for (const cache of caches.data.actions_caches) {
console.log(cache)
github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
}
console.log("Clear completed")
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Contributing

All contributions are welcome, so feel free to create a pull request. When contributing to this repository, please first discuss the change you wish to make via an issue.

## Coding Standards
Please refer to [Effective Dart](https://dart.dev/effective-dart) as a guideline for the coding standards expected from pull requests.
53 changes: 38 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
<div align="center">

<image src="fastlane/metadata/android/en-US/images/icon.png" height="100"/>
<image src="icon.png" height="100"/>

# Chrono

### A modern and powerful clock, alarms, timer and stopwatch app for Android!
![alt text](cover.png)

![tests](https://github.com/vicolo-dev/chrono/actions/workflows/tests.yml/badge.svg)
[![codecov](https://codecov.io/gh/vicolo-dev/chrono/branch/master/graph/badge.svg?token=cKxMm8KVev)](https://codecov.io/gh/vicolo-dev/chrono)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7dc1e51c1616482baa5392bc0826c50a)](https://app.codacy.com/gh/vicolo-dev/chrono/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
<span class="badge-patreon"><a href="https://patreon.com/vicolo" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-orange.svg" alt="Patreon donate button" /></a></span>

[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/packages/com.vicolo.chrono)
[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" alt="Get it on IzzyOnDroid" height=80/>](https://apt.izzysoft.de/fdroid/index/apk/com.vicolo.chrono)
[<img src="https://i.ibb.co/q0mdc4Z/get-it-on-github.png" alt="Get it on Github" height=80/>](https://github.com/vicolo-dev/chrono/releases/latest)

</div>

Its usable, but still WIP, so you might encounter some bugs. So its not recommended to use to for critical alarms at the moment. Feel free to open an issue.
Its usable, but still WIP, so you might encounter some bugs. Make sure to test it out thorougly on your device before using it for critical alarms. Feel free to open an issue.



# Table of Content
- [Features](#features)
- [Platforms](#platforms)
- [Contribute](#contribute)
- [Development](#development)
- [Todo](#todo)
- [Screenshots](#screenshots)
Expand All @@ -28,31 +34,55 @@ Its usable, but still WIP, so you might encounter some bugs. So its not recommen
- Modern and easy to use interface
### Alarms
- Customizable schedules (Daily, Weekly, Specific week days, Specific dates, Date range)
- Configure Melody, rising volume and vibrations
- Configure Snooze length and max snoozes
- Configure melody/ringtone, rising volume and vibrations
- Configure Snooze length, max snoozes and other snooze behaviour
- Option to auto delete dismissed alarms and skip alarms
- Alarm tasks (Math problems, Retype text, Sequence, more to come)
- Filter alarms (all, today, tomorrow, snoozed, disabled, completed)
- Dial, spinner and text time pickers
- Filter and sort alarms
- Add tags
### Clock
- Customizable clock display
- World clocks with relative time difference
- Search and add cities
### Timer
- Configure Melody, rising volume and vibrations
- Support for multiple timers
- Configure melody/ringtone, rising volume and vibrations
- Timer presets
- Filter timers (all, running, paused, stopped)
- Option to fullscreen a timer
- Dial and spinner duration pickers
- Filter and sort timers
- Add tags
### Stopwatch
- Lap history with lap times and elapsed times
- Lap comparisons
- Lap comparisons (fastest, slowest, average, previous)
### Appearance
- Material You icons and themes
- Highly customizable color themes
- Highly customizable style themes
- Other options like animations, nav bar styles, time picker styles

## Platforms
Currently, the app is only available for android. I don't have an apple device to develop for iOS, but feel free
to contribute if you want iOS support. The alarm and timer features
use android-only code, so that will need to be ported. Everything else should mostly work fine.

## Contribute
All contributions are welcome, whether creating issues, pull requests or translations.
### Issues
Feel free to create issues regarding any issues you might be facing, any improvements or enhancements, or any feature-requests. Try to follow the templates and include as much information as possible in your issues.
### Pull Requests
Pull Requests are highly welcome. When contributing to this repository, please first discuss the change you wish to make via an issue. Also, please refer to [Effective Dart](https://dart.dev/effective-dart) as a guideline for the coding standards expected from pull requests.
### Translations
You can help translate the app into your preferred language using weblate at https://hosted.weblate.org/projects/chrono/.
### Spread the word!
If you found the app useful, you can help the project by sharing it with friends and family.
### Donate
The amount of time I can given to the app is bound by financial constraints. Donations will really help allow me in giving more and more time to the development of this app.

<span class="badge-patreon"><a href="https://patreon.com/vicolo" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-orange.svg" alt="Patreon donate button" /></a></span>


## Development

This app is built using flutter. To start developing:
Expand All @@ -67,7 +97,6 @@ Stuff I would like to do soon™. In no particular order:
- Alternative time picker interfaces
- Array alarms (alarm that will ring after set interval (10 minutes etc.)
- More tasks
- Custom ringtones
- Color schemes
- More prebuilt themes
- Filter
Expand All @@ -86,20 +115,14 @@ Stuff I would like to do soon™. In no particular order:
- Timers
- Stopwatch
- Customization
- Online?
- Sync?
- Community themes?

## Screenshots
<p float="left">
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/1.png" height="400"/>
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/2.png" height="400"/>
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/3.png" height="400"/>
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/6.png" height="400"/>
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/4.png" height="400"/>
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/5.png" height="400"/>
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/7.png" height="400"/>
<image src="fastlane/metadata/android/en-US/images/phoneScreenshots/8.png" height="400"/>
</p>


2 changes: 2 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if (keystorePropertiesFile.exists()) {
}

android {
// namespace "com.vicolo.chrono"

compileSdkVersion 34
ndkVersion flutter.ndkVersion

Expand Down
6 changes: 6 additions & 0 deletions android/app/src/dev/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
tools:replace="android:icon"
android:icon="@mipmap/ic_launcher" />
</manifest>
12 changes: 12 additions & 0 deletions android/app/src/dev/res/drawable-v21/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
Binary file added android/app/src/dev/res/drawable/alarm_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/dev/res/drawable/clock_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions android/app/src/dev/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/dev/res/drawable/timer_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions android/app/src/dev/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
<monochrome android:drawable="@mipmap/ic_launcher_monochrome" />
</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.
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.
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.
18 changes: 18 additions & 0 deletions android/app/src/dev/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/ic_launcher_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.

This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
18 changes: 18 additions & 0 deletions android/app/src/dev/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/ic_launcher_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.

This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
28 changes: 20 additions & 8 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission
android:name="android.permission.WAKE_LOCK" />
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> -->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /> -->
<uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
<uses-permission
android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<!-- <uses-permission -->
<!-- android:name="android.permission.SYSTEM_ALERT_WINDOW" /> -->
<uses-permission
android:name="android.permission.VIBRATE" />
<uses-permission
android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<!-- For Android 12 and higher -->
Expand All @@ -24,7 +22,7 @@
android:name="android.permission.USE_EXACT_ALARM" />

<application
android:label="Chrono"
android:label="@string/app_name"
tools:replace="android:label"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
Expand All @@ -36,9 +34,6 @@
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize"
android:showWhenLocked="true"
android:showOnLockScreen="true"
android:turnScreenOn="true"
android:directBootAware="true"
>
<!-- Specifies an Android theme to apply to this Activity as soon as
Expand All @@ -62,6 +57,15 @@
<action android:name="android.intent.action.SET_TIMER" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.DISMISS_ALARM" />
<action android:name="android.intent.action.DISMISS_TIMER" />

<data android:scheme="id" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
Expand All @@ -83,6 +87,7 @@
android:name="dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver"
android:enabled="false"
android:exported="true"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED"
android:directBootAware="true"
>
<intent-filter>
Expand All @@ -99,6 +104,13 @@
android:permission="android.permission.BIND_JOB_SERVICE"
android:directBootAware="true"
/>
<!-- <service android:name="me.carda.awesome_notifications.core.services.ForegroundService" -->
<!-- android:enabled="true" -->
<!-- android:exported="false" -->
<!-- android:stopWithTask="true" -->
<!-- android:foregroundServiceType="phoneCall" -->
<!-- tools:replace="android:foregroundServiceType" -->
<!-- ></service> -->
<receiver
android:enabled="true"
android:exported="true"
Expand Down
Binary file added android/app/src/main/res/drawable/alarm_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable/clock_icon.png
Binary file added android/app/src/main/res/drawable/timer_icon.png
14 changes: 14 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ allprojects {
google()
mavenCentral()
}

// subprojects {
// afterEvaluate { project ->
// if (project.hasProperty('android')) {
// project.android {
// if (namespace == null) {
// namespace project.group
// }
// }
// }
// }
// }
}

rootProject.buildDir = '../build'
Expand All @@ -13,6 +25,8 @@ subprojects {
project.evaluationDependsOn(':app')
}

ext.kotlin_version = "1.8.0"

tasks.register("clean", Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-all.zip
Loading
Loading