From 8a7d58367271d2e706e222703dcdbf4e9c155d9d Mon Sep 17 00:00:00 2001 From: Ryan Heise Date: Sun, 27 Sep 2020 19:04:27 +1000 Subject: [PATCH] Update main plugin to use hosted platform interface. --- just_audio/README.md | 13 +++++++++++++ just_audio/example/pubspec.lock | 8 ++++---- just_audio/pubspec.lock | 10 +++++----- just_audio/pubspec.yaml | 12 +++--------- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/just_audio/README.md b/just_audio/README.md index 6e413dc..37c2f7c 100644 --- a/just_audio/README.md +++ b/just_audio/README.md @@ -232,6 +232,19 @@ If you wish to connect to non-HTTPS URLS, add the following to your `Info.plist` ``` +### 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. diff --git a/just_audio/example/pubspec.lock b/just_audio/example/pubspec.lock index 71fdddb..50a2bc5 100644 --- a/just_audio/example/pubspec.lock +++ b/just_audio/example/pubspec.lock @@ -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: diff --git a/just_audio/pubspec.lock b/just_audio/pubspec.lock index c9e0050..f59c32e 100644 --- a/just_audio/pubspec.lock +++ b/just_audio/pubspec.lock @@ -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" @@ -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: diff --git a/just_audio/pubspec.yaml b/just_audio/pubspec.yaml index 040e760..8406030 100644 --- a/just_audio/pubspec.yaml +++ b/just_audio/pubspec.yaml @@ -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 @@ -18,8 +17,6 @@ dependencies: uuid: ^2.2.0 flutter: sdk: flutter - flutter_web_plugins: - sdk: flutter dev_dependencies: flutter_test: @@ -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