Skip to content

Commit

Permalink
Merge pull request #69 from yosemiteyss/feat/update-1.3.1
Browse files Browse the repository at this point in the history
update version to 1.3.1
  • Loading branch information
yosemiteyss authored Nov 1, 2023
2 parents 2e341b7 + 7b6d4cd commit 6f837b5
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 11 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ on:
release:
types: [published]

env:
FLUTTER_CHANNEL: 'stable'
FLUTTER_VERSION: '3.13.4'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: ${{ env.FLUTTER_CHANNEL }}
flutter-version: ${{ env.FLUTTER_VERSION }}

- name: Install dependencies
run: dart pub get

- name: Run tests
run: dart test
run: flutter pub get

- name: Setup pub.dev credentials
run: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.3.1
* Update minimum dart sdk version to 2.19.0.
* Android: update `flutter_plugin_android_lifecycle` to 2.0.17.
* Android: fix gradle namespace issue with AGP 8.

## 1.3.0
* iOS: fix volume slider not shown when pressing physical buttons after `showSystemUI` is reset.
* Deprecated: `showSystemUI` setter is deprecated and migrated to `updateShowSystemUI`.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ void dispose() {

## Notes

#### Volume controls doesn't work on iOS simulator
- On iOS, volume control uses `MPVolumeView` internally which does not works on simulator. Please uses physical
device for testing.

#### Fine-grained volume control
- Due to platform and device difference, it's normal that volume level could not be controlled
precisely.
Expand Down
3 changes: 3 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
if (project.android.hasProperty("namespace")) {
namespace 'com.yosemiteyss.flutter_volume_controller'
}
compileSdkVersion 31

compileOptions {
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion example/lib/volume_slider_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class _VolumeSliderState extends State<VolumeSlider> {
value: _showSystemSlider,
onChanged: (value) {
final checked = value ?? true;
FlutterVolumeController.showSystemUI = checked;
FlutterVolumeController.updateShowSystemUI(checked);
setState(() {
_showSystemSlider = checked;
});
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: flutter_volume_controller
description: A Flutter plugin to control system volume and listen for volume changes on different platforms.
version: 1.3.0
version: 1.3.1
homepage: https://github.com/yosemiteyss/flutter_volume_controller

environment:
sdk: ">=2.17.6 <4.0.0"
sdk: ">=2.19.0 <4.0.0"
flutter: ">=2.5.0"

dependencies:
flutter:
sdk: flutter
flutter_plugin_android_lifecycle: ^2.0.9
flutter_plugin_android_lifecycle: ^2.0.17

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 6f837b5

Please sign in to comment.