Skip to content

Commit

Permalink
Merge pull request #1 from phanatagama/development
Browse files Browse the repository at this point in the history
Merge branch developemnt
  • Loading branch information
phanatagama authored Sep 14, 2023
2 parents d4b1508 + 6488de3 commit 58c363a
Show file tree
Hide file tree
Showing 109 changed files with 11,741 additions and 1,847 deletions.
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/codecov-action@v2.1.0
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

0 comments on commit 58c363a

Please sign in to comment.