Skip to content

Commit 555f2de

Browse files
chore: Bump actions/checkout from 3 to 4 in the github_actions group (#220)
* Bump actions/checkout from 3 to 4 in the github_actions group Bumps the github_actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 3 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github_actions ... Signed-off-by: dependabot[bot] <[email protected]> * fix analyze issues --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tobias Busch <[email protected]>
1 parent a6cac31 commit 555f2de

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
build:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- uses: actions/checkout@v4
99
- uses: subosito/flutter-action@v2
1010
with:
1111
channel: 'stable'
@@ -25,7 +25,7 @@ jobs:
2525
pana:
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
- uses: subosito/flutter-action@v2
3030

3131
- name: Install Dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
pana:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- uses: subosito/flutter-action@v2
1313

1414
- name: Install Dependencies

example/lib/main.dart

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class HomeState extends State<Home> {
3939
lineLength: 120, // width of the output
4040
colors: true, // Colorful log messages
4141
printEmojis: true, // Print an emoji for each log message
42-
printTime: true,
4342
),
4443
);
4544

@@ -767,21 +766,25 @@ class HomeState extends State<Home> {
767766

768767
Future<void> checkIfAppIsActive(BuildContext context) async {
769768
try {
770-
await SpotifySdk.isSpotifyAppActive.then((isActive) {
771-
final snackBar = SnackBar(
772-
content: Text(isActive
773-
? 'Spotify app connection is active (currently playing)'
774-
: 'Spotify app connection is not active (currently not playing)'));
775-
776-
ScaffoldMessenger.of(context).showSnackBar(snackBar);
777-
});
769+
final isActive = await SpotifySdk.isSpotifyAppActive;
770+
_showSnackBar(isActive);
778771
} on PlatformException catch (e) {
779772
setStatus(e.code, message: e.message);
780773
} on MissingPluginException {
781774
setStatus('not implemented');
782775
}
783776
}
784777

778+
void _showSnackBar(bool isActive) {
779+
final snackBar = SnackBar(
780+
content: Text(isActive
781+
? 'Spotify app connection is active (currently playing)'
782+
: 'Spotify app connection is not active (currently not playing)'),
783+
);
784+
785+
ScaffoldMessenger.of(context).showSnackBar(snackBar);
786+
}
787+
785788
void setStatus(String code, {String? message}) {
786789
var text = message ?? '';
787790
_logger.i('$code$text');

lib/spotify_sdk_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@JS()
2-
library spotify_sdk_web;
2+
library;
33

44
import 'dart:async';
55
import 'dart:convert';

0 commit comments

Comments
 (0)