Skip to content

Commit

Permalink
Merge develop branch to master branch (jama5262#212)
Browse files Browse the repository at this point in the history
Co-authored-by: Baris Ceviz <[email protected]>
Co-authored-by: János Dobszai <[email protected]>
Co-authored-by: Kimman <[email protected]>
  • Loading branch information
4 people authored Mar 8, 2023
1 parent 55665c2 commit 2795028
Show file tree
Hide file tree
Showing 90 changed files with 12,894 additions and 3,432 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://www.buymeacoffee.com/jama"]
32 changes: 9 additions & 23 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**How to reproduce the bug**

A clear and concise description of steps to reproduce the behavior

**What is the expected behavior**

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional information**

**Additional context**
Add any other context about the problem here.
Add any additional information that you think may be relevant about the problem here.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**

A clear and concise description of what you want to happen.

**Describe alternatives you've considered**

A clear and concise description of any alternative solutions or features you've considered.

**Additional context**

Add any other context or screenshots about the feature request here.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "pub"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "jama5262"
labels:
- "pub"
- "dependencies"
19 changes: 16 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
**What does this PR do?**

A clear and concise description of what this PR solves.
A clear and concise description of what this PR solves

**Issue Reference**

<!-- If applicable, list any related GitHub issues that this PR addresses or fixes. E.g. Fixes #123 -->

Fixes #<issue-number>

**Types of changes**
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply. Ex. `[x]` -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Maintenance change (non-breaking change such as upgrading a dependency, refactoring, or making a lint fix)
- [ ] Documentation update
- [ ] Breaking change (a fix or feature that would cause existing functionality to change)

**Screenshots**
Expand All @@ -15,7 +24,11 @@ If applicable, add screenshots to help explain your problem.
**Checklist**

<!--- Go over all the following points, and put an `x` in all the boxes that apply. Ex. `[x]` -->
- [ ] Directed the PR to `develop` branch and not the `master` branch

- [ ] Wrote additional tests, if needed
- [ ] All tests have passed
- [ ] I have updated the documentation accordingly, if needed.
- [ ] I have updated the documentation accordingly, if needed.

**Additional Information**

<!-- Add any additional information that you think may be relevant to the review of your PR, such as performance considerations, design decisions, or trade-offs that were made. -->
45 changes: 20 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
name: CI
name: Continuous Integration

on: [push]
on: [push, workflow_call]

jobs:
test:
run-tests:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'

- name: Install dependencies
run: flutter pub get

- name: Verify formatting
run: flutter format --set-exit-if-changed lib test

- name: Analyze project source
run: flutter analyze lib test

- name: Run tests and generate coverage
run: flutter test --coverage

- name: Send to Codecov
uses: codecov/codecov-action@v1
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- name: Install dart dependencies
run: dart pub get
- name: Analyze package
run: dart analyze lib test example
- name: Verify package formatting
run: dart format --set-exit-if-changed lib test example
- name: Run tests and generate coverage reports
run: |
dart test --reporter=github --coverage=./coverage/reports
dart pub global activate coverage
dart pub global run coverage:format_coverage --report-on=./lib --lcov --in=./coverage/reports --out=coverage/lcov.info
- name: Report to Codecov
uses: codecov/codecov-action@v3
with:
file: coverage/lcov.info


fail_ci_if_error: true
51 changes: 7 additions & 44 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,18 @@
name: Release
name: Release to pub.dev

on:
release:
types:
- created
- published

jobs:
test:
name: Test Package
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'

- name: Install dependencies
run: flutter pub get

- name: Verify formatting
run: flutter format --set-exit-if-changed lib test

- name: Analyze project source
run: flutter analyze lib test

- name: Run tests and generate coverage
run: flutter test --coverage
run-tests:
uses: ./.github/workflows/ci.yml
publish:
needs: run-tests
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

- name: Send to Codecov
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info

publish:
needs: test
name: Publish to Pub Dev
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Publishing to Pub Dev
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
skipTests: true



Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
.*
# except
!.gitignore
!.pubignore
!.github

*.iml
# IntelliJ related
*.ipr
*.iws
.idea

# Remove the following pattern if you wish to check in your lock file
pubspec.lock
Expand Down
2 changes: 0 additions & 2 deletions .idea/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions .idea/libraries/Dart_SDK.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

3 changes: 3 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin
doc
test
Loading

0 comments on commit 2795028

Please sign in to comment.