Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PR Pipeline

on:
pull_request:
branches:
- main

jobs:
validate:
name: Validate package
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Install dependencies
run: flutter pub get

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .

- name: Analyze
run: flutter analyze

# - name: Run tests
# run: flutter test

- name: Pub publish dry run
run: dart pub publish --dry-run
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to pub.dev

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: read

jobs:
verify-tag-on-main:
name: Verify tag commit is on main
runs-on: ubuntu-latest

steps:
- name: Checkout full history
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Verify tagged commit belongs to main
run: |
git fetch origin main
git merge-base --is-ancestor "$GITHUB_SHA" "origin/main" || {
echo "Tag is not on main. Publishing is blocked."
exit 1
}

publish:
needs: verify-tag-on-main
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
## 0.2.0-beta.1 - 2026-02-13
## 0.2.0-beta.2 - 2026-02-13

Reclassified `mt_audio` as a beta release while testing is ongoing.

### Changed

- Updated package version to `0.2.0-beta.1`.
- Updated package version to `0.2.0-beta.2`.
- Updated README wording from production-ready to beta.
- Updated GitHub workflow branch references from `master` to `main`.

### Breaking changes

Expand Down
3 changes: 2 additions & 1 deletion example/lib/providers/player_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class PlayerProvider extends InheritedWidget {

/// Gets the player from the widget tree.
static MtAudioPlayer of(BuildContext context) {
final provider = context.dependOnInheritedWidgetOfExactType<PlayerProvider>();
final provider = context
.dependOnInheritedWidgetOfExactType<PlayerProvider>();
assert(provider != null, 'No PlayerProvider found in context');
return provider!.player;
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mt_audio
version: 0.2.0-beta.1
version: 0.2.0-beta.2
description: A beta, streams-based Flutter audio package with background playback, queue management, Android Auto, and Apple CarPlay support.
homepage: https://github.com/mobitouchOS/mt_audio
repository: https://github.com/mobitouchOS/mt_audio
Expand Down