-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from phanatagama/development
Merge branch developemnt
- Loading branch information
Showing
109 changed files
with
11,741 additions
and
1,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
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.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.