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

Merge btanch developemnt #1

Merged
merged 52 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
34d4c1b
feat(asset): add new assets resource
phanatagama Sep 14, 2023
c701a0c
chore: isar config file
phanatagama Sep 14, 2023
09e9ace
feat(data): create model raw response
phanatagama Sep 14, 2023
c2fe7d6
feat(data): create database helper with IsarDB
phanatagama Sep 14, 2023
deef5b8
feat(data): create shalat local datasource
phanatagama Sep 14, 2023
474a536
feat(data): create shalat remote datasource
phanatagama Sep 14, 2023
bca5d25
feat(data): create surah local datasource
phanatagama Sep 14, 2023
772f832
feat(data): create surah remote datasource
phanatagama Sep 14, 2023
8b68006
feat(data): create shalat repository impl
phanatagama Sep 14, 2023
44ec8c0
feat(data): create surah repository impl
phanatagama Sep 14, 2023
9834268
feat(service): create background service
phanatagama Sep 14, 2023
a57cd5f
feat(service): create location service
phanatagama Sep 14, 2023
57f65e7
feat(service): create notification service
phanatagama Sep 14, 2023
be6e1bf
feat(domain): create asmaul husna entities
phanatagama Sep 14, 2023
ce59216
feat(domain): create daily pray entities
phanatagama Sep 14, 2023
b936045
feat(domain): create surah detail(ayah) entities
phanatagama Sep 14, 2023
072be99
feat(domain): create shalat repository
phanatagama Sep 14, 2023
f58e1f3
feat(domain): create surah repository
phanatagama Sep 14, 2023
cde72a0
feat(usecase): create get all surah usecase
phanatagama Sep 14, 2023
6c07baa
feat(usecase): create get asmaul husna usecase
phanatagama Sep 14, 2023
a5216ee
feat(usecase): create get daily pray usecase
phanatagama Sep 14, 2023
140be58
feat(usecase): create get ayah by surah number usecase
phanatagama Sep 14, 2023
2f23fe5
feat(usecase): create get shalat time usecase
phanatagama Sep 14, 2023
ceac81a
feat(usecase): create get surah by query usecase
phanatagama Sep 14, 2023
e12eca6
feat(ui): create asmaul husna view
phanatagama Sep 14, 2023
7a5d996
feat(ui): create home(surah) view
phanatagama Sep 14, 2023
ef85c6e
feat(ui): create menu view
phanatagama Sep 14, 2023
1c9918c
feat(ui): create search view
phanatagama Sep 14, 2023
5177510
feat(ui): create shalat view
phanatagama Sep 14, 2023
864a9da
feat(ui): create tasbih digital view
phanatagama Sep 14, 2023
d20daa4
feat(ui): create surah detail(ayah) view
phanatagama Sep 14, 2023
f70fa0f
feat(controller): create notification controller
phanatagama Sep 14, 2023
d88efb1
feat(controller): create audio controller
phanatagama Sep 14, 2023
d7e5139
feat(core): create core value,constant, utils
phanatagama Sep 14, 2023
50f6194
feat: add app_pages
phanatagama Sep 14, 2023
58dc322
feat(ui): custom snackbar
phanatagama Sep 14, 2023
7e6a9cc
feat(test): create shalat local data source test
phanatagama Sep 14, 2023
aea7d12
feat(test): create shalat repository impl test
phanatagama Sep 14, 2023
73b44e3
feat(test): create surah local data source test
phanatagama Sep 14, 2023
3c00486
feat(test): create surah repository impl test
phanatagama Sep 14, 2023
23447f4
feat(test): create test helper and mock
phanatagama Sep 14, 2023
2628d5e
feat(test): create json reader
phanatagama Sep 14, 2023
b9bb9c7
feat(test): create get all surah usecase test
phanatagama Sep 14, 2023
611fc84
feat(test): create get asmaul husna usecase test
phanatagama Sep 14, 2023
64d5ddb
feat(test): create get ayah by surahnumber usecase test
phanatagama Sep 14, 2023
e806f41
feat(test): create get daily pray usecase test
phanatagama Sep 14, 2023
58ceff2
feat(test): create get shalat time usecase test
phanatagama Sep 14, 2023
857566e
feat(test): create get surah by query usecase test
phanatagama Sep 14, 2023
d40d50a
feat(data): rename provider to datasources
phanatagama Sep 14, 2023
3feec47
ci: create test and build script
phanatagama Sep 14, 2023
17b5894
docs: add code coverage badge
phanatagama Sep 14, 2023
6488de3
chore: dart format .
phanatagama Sep 14, 2023
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
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: phanatagama # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
ko_fi: phanatagama # Replace with a single Ko-fi username
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Builds
on:
push:
branches:
- main
pull_request:

# Declare default permissions as read only.
permissions: read-all

jobs:
build:
name: Build ${{ matrix.target }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target: ["apk --debug", "appbundle --debug", "ios --no-codesign", macos]
steps:
- name: Set up JDK 11
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: 11
distribution: temurin
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: master
- run: flutter doctor -v

# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: flutter pub get

- run: flutter build ${{ matrix.target }}

# Upload generated apk to the artifacts.
- uses: actions/upload-artifact@v2
with:
name: debug-apk
path: build/app/outputs/apk/debug/app-debug.apk
86 changes: 86 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Tests
on:
push:
branches:
- main
pull_request:

# Declare default permissions as read only.
permissions: read-all

jobs:
unit-test:
name: Unit tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: master
- run: flutter doctor -v

# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: flutter pub get

# Analyze, check formatting, and run unit tests.
- run: flutter analyze
- name: Ensure the Dart code is formatted correctly
run: dart format --set-exit-if-changed .
- name: Run Flutter unit tests
run: flutter test --coverage

# Upload coverage to codecov
- name: Upload coverage to codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage/lcov.info

benchmark-test:
name: Benchmark tests
runs-on: ubuntu-latest
steps:
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: master
- run: flutter doctor -v

# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: flutter pub get

- run: flutter test test_benchmarks

golden-test:
name: Golden tests
runs-on: macos-latest
steps:
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: master
- run: flutter doctor -v

# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: flutter pub get

# Run the golden tests and upload failed test artifacts.
- run: flutter test test_goldens
- name: Upload goldens if tests fail
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
if: failure()
with:
name: goldens
path: test_goldens/failures/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

![Suji](https://socialify.git.ci/phanatagama/suji/image?description=1&font=Rokkitt&forks=1&issues=1&language=1&name=1&pulls=1&stargazers=1&theme=Auto)
[![codecov](https://codecov.io/gh/phanatagama/suji/branch/main/graph/badge.svg?token=F777RVVH55)](https://codecov.io/gh/phanatagama/suji)
<p align="center">
<img src="https://img.shields.io/badge/dart-%230175C2.svg?style=for-the-badge&logo=dart&logoColor=white" />
<img src="https://img.shields.io/badge/Flutter-%2302569B.svg?style=for-the-badge&logo=Flutter&logoColor=white" />
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.VIBRATE" />
<!-- For apps with targetSDK=31 (Android 12) -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<application
Expand Down
Binary file added android/app/src/main/res/raw/adzan_subuh.mp3
Binary file not shown.
3 changes: 3 additions & 0 deletions android/app/src/main/res/raw/keep.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:keep="@drawable/*,@raw/mecca_56_22,@raw/adzan_subuh" />
Binary file added android/app/src/main/res/raw/mecca_56_22.mp3
Binary file not shown.
Binary file added assets/Home.gif
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 assets/Prayer Time.gif
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 assets/Search.gif
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 assets/Surah.gif
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 assets/images/icon-prayer-time.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 assets/images/icon-quran.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 assets/images/icon-shalat.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 assets/images/icon-tasbih.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 assets/images/masjid.jfif
Binary file not shown.
Binary file added assets/images/tasbih (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading