Skip to content

Commit

Permalink
Update main plugin to use hosted platform interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Sep 27, 2020
1 parent 5fdf385 commit 8a7d583
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
13 changes: 13 additions & 0 deletions just_audio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,19 @@ If you wish to connect to non-HTTPS URLS, add the following to your `Info.plist`
</dict>
```

### Web

Add the package [just_audio_web](https://github.com/ryanheise/just_audio/tree/master/just_audio_web) to the `dependencies` of your `pubspec.yaml` in addition to just_audio:

```yaml
...
dependencies:
...
just_audio: ...
just_audio_web: ...
...
```

## Related plugins

* [audio_service](https://pub.dev/packages/audio_service): play any audio in the background and control playback from the lock screen, Android notifications, the iOS Control Center, and headset buttons.
Expand Down
8 changes: 4 additions & 4 deletions just_audio/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ packages:
just_audio_platform_interface:
dependency: transitive
description:
path: "../../just_audio_platform_interface"
relative: true
source: path
version: "0.0.1"
name: just_audio_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
just_audio_web:
dependency: "direct dev"
description:
Expand Down
10 changes: 5 additions & 5 deletions just_audio/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ packages:
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: "direct main"
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
Expand All @@ -103,10 +103,10 @@ packages:
just_audio_platform_interface:
dependency: "direct main"
description:
path: "../just_audio_platform_interface"
relative: true
source: path
version: "0.0.1"
name: just_audio_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
matcher:
dependency: transitive
description:
Expand Down
12 changes: 3 additions & 9 deletions just_audio/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ environment:
flutter: ">=1.12.13+hotfix.5"

dependencies:
just_audio_platform_interface:
path: ../just_audio_platform_interface
just_audio_platform_interface: ^1.0.0
audio_session: ^0.0.7
rxdart: ^0.24.1
path: ^1.6.4
Expand All @@ -18,8 +17,6 @@ dependencies:
uuid: ^2.2.0
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter

dev_dependencies:
flutter_test:
Expand All @@ -35,8 +32,5 @@ flutter:
pluginClass: JustAudioPlugin
macos:
pluginClass: JustAudioPlugin
# web:
# default_package: just_audio_web
# web:
# pluginClass: JustAudioPlugin
# fileName: just_audio_web.dart
web:
default_package: just_audio_web

0 comments on commit 8a7d583

Please sign in to comment.