Skip to content

Commit

Permalink
feat: Релиз новых плагинов (#7)
Browse files Browse the repository at this point in the history
* feat(packages): add video_player_aurora, vibration_aurora, url_launcher_aurora and mobile_scanner packages
  • Loading branch information
mozerrr authored Jul 25, 2024
1 parent 44bf4a9 commit 1d383dc
Show file tree
Hide file tree
Showing 473 changed files with 60,509 additions and 918 deletions.
75 changes: 71 additions & 4 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with package:mono_repo v6.6.0
# Created with package:mono_repo v6.6.1
name: Dart CI
on:
push:
Expand All @@ -17,7 +17,7 @@ permissions: read-all

jobs:
job_001:
name: "unit_test; `flutter test`"
name: "unit_test; PKG: packages/aurora_push_service; `flutter test`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand Down Expand Up @@ -47,7 +47,37 @@ jobs:
if: "always() && steps.packages_aurora_push_service_pub_upgrade.conclusion == 'success'"
working-directory: packages/aurora_push_service
job_002:
name: "cron; `flutter test`"
name: "unit_test; PKG: packages/location_aurora; `flutter test`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/location_aurora;commands:test"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/location_aurora
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Flutter SDK
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- id: packages_location_aurora_pub_upgrade
name: packages/location_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/location_aurora
- name: packages/location_aurora; flutter test
run: flutter test
if: "always() && steps.packages_location_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/location_aurora
job_003:
name: "cron; PKG: packages/aurora_push_service; `flutter test`"
runs-on: ubuntu-latest
if: "github.event_name == 'schedule'"
steps:
Expand Down Expand Up @@ -79,7 +109,42 @@ jobs:
working-directory: packages/aurora_push_service
needs:
- job_001
job_003:
- job_002
job_004:
name: "cron; PKG: packages/location_aurora; `flutter test`"
runs-on: ubuntu-latest
if: "github.event_name == 'schedule'"
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/location_aurora;commands:test"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/location_aurora
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Flutter SDK
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- id: packages_location_aurora_pub_upgrade
name: packages/location_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/location_aurora
- name: packages/location_aurora; flutter test
run: flutter test
if: "always() && steps.packages_location_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/location_aurora
needs:
- job_001
- job_002
job_005:
name: Notify failure
runs-on: ubuntu-latest
if: failure()
Expand All @@ -93,3 +158,5 @@ jobs:
needs:
- job_001
- job_002
- job_003
- job_004
108 changes: 99 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with package:mono_repo v6.6.0
# Created with package:mono_repo v6.6.1
name: Dart Lint CI
on:
push:
Expand Down Expand Up @@ -29,27 +29,27 @@ jobs:
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: mono_repo self validate
run: dart pub global activate mono_repo 6.6.0
run: dart pub global activate mono_repo 6.6.1
- name: mono_repo self validate
run: dart pub global run mono_repo generate --validate
job_002:
name: "analyze; `dart format --output=none --set-exit-if-changed .`"
name: "analyze; PKGS: packages/aurora_push_service, packages/location_aurora, packages/mobile_scanner, packages/url_launcher_aurora, packages/vibration_aurora, packages/video_player_aurora; `dart format --output=none --set-exit-if-changed .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service;commands:format"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora;commands:format"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
Expand All @@ -69,17 +69,62 @@ jobs:
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_aurora_push_service_pub_upgrade.conclusion == 'success'"
working-directory: packages/aurora_push_service
- id: packages_location_aurora_pub_upgrade
name: packages/location_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/location_aurora
- name: "packages/location_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_location_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/location_aurora
- id: packages_mobile_scanner_pub_upgrade
name: packages/mobile_scanner; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/mobile_scanner
- name: "packages/mobile_scanner; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_mobile_scanner_pub_upgrade.conclusion == 'success'"
working-directory: packages/mobile_scanner
- id: packages_url_launcher_aurora_pub_upgrade
name: packages/url_launcher_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- name: "packages/url_launcher_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_url_launcher_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- id: packages_vibration_aurora_pub_upgrade
name: packages/vibration_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/vibration_aurora
- name: "packages/vibration_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_vibration_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/vibration_aurora
- id: packages_video_player_aurora_pub_upgrade
name: packages/video_player_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/video_player_aurora
- name: "packages/video_player_aurora; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.packages_video_player_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/video_player_aurora
job_003:
name: "analyze; `flutter analyze`"
name: "analyze; PKGS: packages/aurora_push_service, packages/location_aurora, packages/mobile_scanner, packages/url_launcher_aurora, packages/vibration_aurora, packages/video_player_aurora; `flutter analyze`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service;commands:analyze"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora;commands:analyze"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/aurora_push_service-packages/location_aurora-packages/mobile_scanner-packages/url_launcher_aurora-packages/vibration_aurora-packages/video_player_aurora
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
Expand All @@ -99,6 +144,51 @@ jobs:
run: flutter analyze
if: "always() && steps.packages_aurora_push_service_pub_upgrade.conclusion == 'success'"
working-directory: packages/aurora_push_service
- id: packages_location_aurora_pub_upgrade
name: packages/location_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/location_aurora
- name: packages/location_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_location_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/location_aurora
- id: packages_mobile_scanner_pub_upgrade
name: packages/mobile_scanner; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/mobile_scanner
- name: packages/mobile_scanner; flutter analyze
run: flutter analyze
if: "always() && steps.packages_mobile_scanner_pub_upgrade.conclusion == 'success'"
working-directory: packages/mobile_scanner
- id: packages_url_launcher_aurora_pub_upgrade
name: packages/url_launcher_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- name: packages/url_launcher_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_url_launcher_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/url_launcher_aurora
- id: packages_vibration_aurora_pub_upgrade
name: packages/vibration_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/vibration_aurora
- name: packages/vibration_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_vibration_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/vibration_aurora
- id: packages_video_player_aurora_pub_upgrade
name: packages/video_player_aurora; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/video_player_aurora
- name: packages/video_player_aurora; flutter analyze
run: flutter analyze
if: "always() && steps.packages_video_player_aurora_pub_upgrade.conclusion == 'success'"
working-directory: packages/video_player_aurora
job_004:
name: Notify failure
runs-on: ubuntu-latest
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@

Также плагины доступны в [Aurora pub](https://pub-aurora.friflex.com/packages).

| Плагин | Описание |
|------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [aurora_push_service](packages/aurora_push_service/) | A new Flutter plugin project for Aurora OS to get Push Messages. |
| [location_aurora](packages/location_aurora/) | The Aurora OS implementation of location_aurora. |
| [mobile_scanner](packages/mobile_scanner/) | A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS. |
| [url_launcher_aurora](packages/url_launcher_aurora/) | Aurora OS implementation of the url_launcher plugin. |
| [vibration_aurora](packages/vibration_aurora/) | A plugin for handling Vibration API on Aurora OS |
| [video_player_aurora](packages/video_player_aurora/) | Aurora video player flutter plugin |

## Проблемы

Если у вас нашли проблемы, баги или у вас есть предложение по новому функционалу,
Expand Down
84 changes: 3 additions & 81 deletions mono_repo.yaml
Original file line number Diff line number Diff line change
@@ -1,83 +1,5 @@
# Enabled GitHub actions - https://docs.github.com/actions
# If you have no configuration, you can set the value to `true` or just leave it
# empty.
self_validate: analyze_format
github:
# Specify the `on` key to configure triggering events.
# See https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#on
# The default values is
# on:
# push:
# branches:
# - main
# - master
# pull_request:

# Setting just `cron` is a shortcut to keep the defaults for `push` and
# `pull_request` while adding a single `schedule` entry.
# `on` and `cron` cannot both be set.
cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.”

# Specify additional environment variables accessible to all jobs
# env:
# FOO: BAR

# You can group stages into individual workflows
#
# Any stages that are omitted here are put in a default workflow
# named `dart.yml`.
workflows:
# The key here is the name of the file - .github/workflows/lint.yml
lint:
# This populates `name` in the workflow
name: Dart Lint CI
# These are the stages that are populated in the workflow file
stages:
- analyze

# You can add custom github actions configurations to run after completion
# of all other jobs here. This accepts normal github job config except that
# the `needs` config is filled in for you, and you aren't allowed to pass it.
on_completion:
# Example job that pings a web hook url stored in a github secret with a
# json payload linking to the failed run.
- name: "Notify failure"
runs-on: ubuntu-latest
# By default this job will only run if all dependent jobs are successful,
# but we want to run in the failure case for this purpose.
if: failure()
steps:
- run: >
curl -H "Content-Type: application/json" -X POST -d \
"{'text':'Build failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
"${CHAT_WEBHOOK_URL}"
env:
CHAT_WEBHOOK_URL: ${{ secrets.CHAT_WEBHOOK_URL }}
# You can customize stage ordering as well as make certain stages be
# conditional here, this is supported for all CI providers. The `if`
# condition should use the appropriate syntax for the provider it is being
# configured for.
stages:
- name: cron
# Only run this stage for scheduled cron jobs
if: github.event_name == 'schedule'

# Adds a job that runs `mono_repo generate --validate` to check that everything
# is up to date. You can specify the value as just `true` or give a `stage`
# you'd like this job to run in.
self_validate: analyze

# Use this key to merge stages across packages to create fewer jobs
cron: '0 0 * * 0'
merge_stages:
- analyze

# When using `test_with_coverage`, this setting configures the service that
# results are uploaded to.
# Note: you can configure both options, but this would be unusual.
# Note: you can configure this key with no values, to just generate the files
# locally. This may be to enable other, custom processing.
coverage_service:
# https://coveralls.io/ - the default
- coveralls
# https://codecov.io/ – the other option
- codecov
- analyze_format
3 changes: 3 additions & 0 deletions packages/aurora_push_service/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.2.0+2
* Добавили в README информацию о том, что данный плагин находится в замороженном состоянии.

## 0.2.0+1

* Fix README broken code, add info about qt-сompatibility and permission.
Expand Down
4 changes: 4 additions & 0 deletions packages/aurora_push_service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Сервис для получения пуш уведомлений от Aurora OS.

## Ограничения
Данный плагин поддерживается только на ОС Аврора 4. На данный момент он находится в "замороженном" состоянии.
Подробнее можно узнать в этом [issue](https://github.com/smmarty/aurora_flutter/issues/5#issuecomment-2220103449).

## Getting Started
Для начала необходимо добавить QT-совместимость в main.cpp вашего приложения.

Expand Down
Loading

0 comments on commit 1d383dc

Please sign in to comment.