From 78f36d0df2be36b512f6eec180f6264de8e9abe5 Mon Sep 17 00:00:00 2001 From: Jakub Date: Wed, 29 Dec 2021 11:49:58 +0100 Subject: [PATCH] Feature/december 2021 changes (#854) * Updated dependencies * Fix bug where a render error can occur if the width of the player is less than 240 pixels. (#810) * Updated changelog * Switch from jcenter to mavenCentral (#798) * Updated changelog * Fixed badState error (#796) * Add dependencies on GCDWebServer and PINCache (#787) Trying to fix part of https://github.com/jhomlala/betterplayer/issues/714 * Updated changelog * Lint & format changes * Updated installation documentation page * Updated installation documentation page * Updated installation documentation page Co-authored-by: Alan Co-authored-by: Peter Majchrak Co-authored-by: masoudk2000 <52602761+masoudk2000@users.noreply.github.com> Co-authored-by: David Eriksson --- CHANGELOG.md | 9 + android/build.gradle | 6 +- docs/install.md | 15 +- example/android/build.gradle | 4 +- ios/better_player.podspec | 2 + .../better_player_configuration.dart | 4 - .../better_player_controls_configuration.dart | 2 - .../better_player_controls_state.dart | 3 - .../better_player_cupertino_progress_bar.dart | 3 +- .../better_player_material_controls.dart | 6 +- .../better_player_material_progress_bar.dart | 4 +- lib/src/core/better_player.dart | 3 - lib/src/core/better_player_controller.dart | 12 - lib/src/core/better_player_with_controls.dart | 2 - .../list/better_player_list_video_player.dart | 3 - lib/src/playlist/better_player_playlist.dart | 4 - .../better_player_playlist_controller.dart | 3 - .../better_player_subtitles_drawer.dart | 2 - .../better_player_subtitles_factory.dart | 2 - .../method_channel_video_player.dart | 1 - lib/src/video_player/video_player.dart | 3 - .../video_player_platform_interface.dart | 5 - pubspec.lock | 238 +++--------------- pubspec.yaml | 15 +- 24 files changed, 73 insertions(+), 278 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88a700a93..34902e655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## 0.0.80 +* Removed pedantic dependency. +* Updated dependencies. +* Fixed controls render issue for small player (by https://github.com/admarwick) +* Fixed deprecated jCenter. Replaced jCenter with mavenCentral (by https://github.com/petoknm) +* Fixed iOS GCDWebServer and PINCache import issue (by https://github.com/twogood) +* Added is mounted check in player controls (by https://github.com/masoudk2000) +* Updated installation documentation page. + ## 0.0.79 * Fixed kotlin version issue. diff --git a/android/build.gradle b/android/build.gradle index ef2bf4a35..dddb0a3be 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -13,7 +13,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -24,7 +24,7 @@ buildscript { rootProject.allprojects { repositories { google() - jcenter() + mavenCentral() } } @@ -69,5 +69,3 @@ dependencies { repositories { mavenCentral() } - - diff --git a/docs/install.md b/docs/install.md index 298e4d0db..ce6e955e9 100644 --- a/docs/install.md +++ b/docs/install.md @@ -4,7 +4,7 @@ ```yaml dependencies: - better_player: ^0.0.79 + better_player: ^0.0.80 ``` 2. Install it @@ -19,11 +19,18 @@ $ flutter pub get import 'package:better_player/better_player.dart'; ``` -4. (Required) iOS configuration +4. (Required) iOS configuration + You need to change these settings in order to run Better Player on iOS: +* Set deployment info of your project to **min. iOS 11.0 version**. +* Set Swift 5 version. -Set deployment info of your project to **min. iOS 11.0 version**. This can be done in XCode in Runner -> General configuration screen. +5. (Required) Android configuration. + You need to change these settings in order to run Better Player on Android: +* Set compileSdkVersion to *31*. +* Set kotlin version to *1.5.31*. +* Enable multidex. -5. (Optional) Additional iOS configuration +6. (Optional) Additional iOS configuration Add this into your `info.plist` file to support full screen rotation (Better Player will rotate screen to horizontal position when full screen is enabled): diff --git a/example/android/build.gradle b/example/android/build.gradle index ca7d37f31..ab194ad56 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -4,7 +4,7 @@ buildscript { ext.multidexVersion = "2.0.1" repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/ios/better_player.podspec b/ios/better_player.podspec index fb9dd7744..99210ca87 100644 --- a/ios/better_player.podspec +++ b/ios/better_player.podspec @@ -16,7 +16,9 @@ A new flutter plugin project. s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' s.dependency 'Cache', '~> 6.0.0' + s.dependency 'GCDWebServer' s.dependency 'HLSCachingReverseProxyServer' + s.dependency 'PINCache' s.platform = :ios, '11.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } diff --git a/lib/src/configuration/better_player_configuration.dart b/lib/src/configuration/better_player_configuration.dart index 5eaf5c157..fa9ec564e 100644 --- a/lib/src/configuration/better_player_configuration.dart +++ b/lib/src/configuration/better_player_configuration.dart @@ -1,11 +1,7 @@ import 'package:better_player/better_player.dart'; -import 'package:better_player/src/configuration/better_player_translations.dart'; -import 'package:better_player/src/subtitles/better_player_subtitles_configuration.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'better_player_event.dart'; - ///Configuration of Better Player. Allows to setup general behavior of player. ///Master configuration which contains children that configure specific part ///of player. diff --git a/lib/src/configuration/better_player_controls_configuration.dart b/lib/src/configuration/better_player_controls_configuration.dart index 8d0bf8026..d40bcf5e5 100644 --- a/lib/src/configuration/better_player_controls_configuration.dart +++ b/lib/src/configuration/better_player_controls_configuration.dart @@ -1,6 +1,4 @@ -import 'dart:ui'; import 'package:better_player/better_player.dart'; -import 'package:better_player/src/controls/better_player_overflow_menu_item.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/controls/better_player_controls_state.dart b/lib/src/controls/better_player_controls_state.dart index dcd490fe8..a6086b68a 100644 --- a/lib/src/controls/better_player_controls_state.dart +++ b/lib/src/controls/better_player_controls_state.dart @@ -1,11 +1,8 @@ import 'dart:io'; import 'dart:math'; import 'package:better_player/better_player.dart'; -import 'package:better_player/src/asms/better_player_asms_audio_track.dart'; -import 'package:better_player/src/asms/better_player_asms_track.dart'; import 'package:better_player/src/controls/better_player_clickable_widget.dart'; import 'package:better_player/src/core/better_player_utils.dart'; -import 'package:better_player/src/video_player/video_player.dart'; import 'package:collection/collection.dart' show IterableExtension; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/controls/better_player_cupertino_progress_bar.dart b/lib/src/controls/better_player_cupertino_progress_bar.dart index 000f44e22..b0a9107b1 100644 --- a/lib/src/controls/better_player_cupertino_progress_bar.dart +++ b/lib/src/controls/better_player_cupertino_progress_bar.dart @@ -4,7 +4,6 @@ import 'package:better_player/src/core/better_player_controller.dart'; import 'package:better_player/src/video_player/video_player.dart'; import 'package:better_player/src/video_player/video_player_platform_interface.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; class BetterPlayerCupertinoVideoProgressBar extends StatefulWidget { BetterPlayerCupertinoVideoProgressBar( @@ -37,7 +36,7 @@ class _VideoProgressBarState extends State { _VideoProgressBarState() { listener = () { - setState(() {}); + if (mounted) setState(() {}); }; } diff --git a/lib/src/controls/better_player_material_controls.dart b/lib/src/controls/better_player_material_controls.dart index ded2121f6..90bc945ad 100644 --- a/lib/src/controls/better_player_material_controls.dart +++ b/lib/src/controls/better_player_material_controls.dart @@ -382,12 +382,12 @@ class _BetterPlayerMaterialControlsState mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ if (_controlsConfiguration.enableSkips) - _buildSkipButton() + Expanded(child: _buildSkipButton()) else const SizedBox(), - _buildReplayButton(_controller!), + Expanded(child: _buildReplayButton(_controller!)), if (_controlsConfiguration.enableSkips) - _buildForwardButton() + Expanded(child: _buildForwardButton()) else const SizedBox(), ], diff --git a/lib/src/controls/better_player_material_progress_bar.dart b/lib/src/controls/better_player_material_progress_bar.dart index bf261c8a7..4d5d07acc 100644 --- a/lib/src/controls/better_player_material_progress_bar.dart +++ b/lib/src/controls/better_player_material_progress_bar.dart @@ -1,10 +1,8 @@ import 'dart:async'; import 'package:better_player/better_player.dart'; -import 'package:better_player/src/controls/better_player_progress_colors.dart'; import 'package:better_player/src/video_player/video_player.dart'; import 'package:better_player/src/video_player/video_player_platform_interface.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; class BetterPlayerMaterialVideoProgressBar extends StatefulWidget { BetterPlayerMaterialVideoProgressBar( @@ -37,7 +35,7 @@ class _VideoProgressBarState extends State { _VideoProgressBarState() { listener = () { - setState(() {}); + if (mounted) setState(() {}); }; } diff --git a/lib/src/core/better_player.dart b/lib/src/core/better_player.dart index 3f6b081e0..0e0e57d74 100644 --- a/lib/src/core/better_player.dart +++ b/lib/src/core/better_player.dart @@ -5,12 +5,9 @@ import 'package:better_player/src/core/better_player_utils.dart'; import 'package:better_player/src/core/better_player_with_controls.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter/widgets.dart'; import 'package:visibility_detector/visibility_detector.dart'; import 'package:wakelock/wakelock.dart'; -import 'better_player_controller_provider.dart'; - ///Widget which uses provided controller to render video player. class BetterPlayer extends StatefulWidget { const BetterPlayer({Key? key, required this.controller}) : super(key: key); diff --git a/lib/src/core/better_player_controller.dart b/lib/src/core/better_player_controller.dart index cd259522e..50b72f64a 100644 --- a/lib/src/core/better_player_controller.dart +++ b/lib/src/core/better_player_controller.dart @@ -1,19 +1,7 @@ import 'dart:async'; import 'dart:io'; import 'package:better_player/better_player.dart'; -import 'package:better_player/src/asms/better_player_asms_audio_track.dart'; -import 'package:better_player/src/asms/better_player_asms_data_holder.dart'; -import 'package:better_player/src/asms/better_player_asms_subtitle.dart'; -import 'package:better_player/src/asms/better_player_asms_track.dart'; -import 'package:better_player/src/asms/better_player_asms_utils.dart'; -import 'package:better_player/src/configuration/better_player_configuration.dart'; import 'package:better_player/src/configuration/better_player_controller_event.dart'; -import 'package:better_player/src/configuration/better_player_drm_type.dart'; -import 'package:better_player/src/configuration/better_player_event.dart'; -import 'package:better_player/src/configuration/better_player_event_type.dart'; -import 'package:better_player/src/configuration/better_player_translations.dart'; -import 'package:better_player/src/configuration/better_player_video_format.dart'; -import 'package:better_player/src/core/better_player_controller_provider.dart'; import 'package:better_player/src/core/better_player_utils.dart'; import 'package:better_player/src/subtitles/better_player_subtitle.dart'; import 'package:better_player/src/subtitles/better_player_subtitles_factory.dart'; diff --git a/lib/src/core/better_player_with_controls.dart b/lib/src/core/better_player_with_controls.dart index 36ce76b09..abeb328b0 100644 --- a/lib/src/core/better_player_with_controls.dart +++ b/lib/src/core/better_player_with_controls.dart @@ -5,9 +5,7 @@ import 'package:better_player/better_player.dart'; import 'package:better_player/src/configuration/better_player_controller_event.dart'; import 'package:better_player/src/controls/better_player_cupertino_controls.dart'; import 'package:better_player/src/controls/better_player_material_controls.dart'; -import 'package:better_player/src/core/better_player_controller.dart'; import 'package:better_player/src/core/better_player_utils.dart'; -import 'package:better_player/src/subtitles/better_player_subtitles_configuration.dart'; import 'package:better_player/src/subtitles/better_player_subtitles_drawer.dart'; import 'package:better_player/src/video_player/video_player.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/list/better_player_list_video_player.dart b/lib/src/list/better_player_list_video_player.dart index 590ca4697..79683ddf4 100644 --- a/lib/src/list/better_player_list_video_player.dart +++ b/lib/src/list/better_player_list_video_player.dart @@ -1,8 +1,5 @@ import 'package:better_player/better_player.dart'; -import 'package:better_player/src/configuration/better_player_configuration.dart'; -import 'package:better_player/src/configuration/better_player_data_source.dart'; import 'package:better_player/src/core/better_player_utils.dart'; -import 'package:better_player/src/list/better_player_list_video_player_controller.dart'; import 'package:flutter/material.dart'; ///Special version of Better Player which is used to play video in list view. diff --git a/lib/src/playlist/better_player_playlist.dart b/lib/src/playlist/better_player_playlist.dart index 4a2671ea8..574d32fa1 100644 --- a/lib/src/playlist/better_player_playlist.dart +++ b/lib/src/playlist/better_player_playlist.dart @@ -1,9 +1,5 @@ import 'package:better_player/better_player.dart'; -import 'package:better_player/src/configuration/better_player_configuration.dart'; -import 'package:better_player/src/configuration/better_player_data_source.dart'; import 'package:better_player/src/core/better_player_utils.dart'; -import 'package:better_player/src/playlist/better_player_playlist_configuration.dart'; -import 'package:better_player/src/playlist/better_player_playlist_controller.dart'; // Flutter imports: import 'package:flutter/material.dart'; diff --git a/lib/src/playlist/better_player_playlist_controller.dart b/lib/src/playlist/better_player_playlist_controller.dart index 99a0200cc..5ed7d2c78 100644 --- a/lib/src/playlist/better_player_playlist_controller.dart +++ b/lib/src/playlist/better_player_playlist_controller.dart @@ -1,8 +1,5 @@ import 'dart:async'; - import 'package:better_player/better_player.dart'; -import 'package:better_player/src/configuration/better_player_data_source.dart'; -import 'package:better_player/src/core/better_player_controller.dart'; ///Controller used to manage playlist player. class BetterPlayerPlaylistController { diff --git a/lib/src/subtitles/better_player_subtitles_drawer.dart b/lib/src/subtitles/better_player_subtitles_drawer.dart index 66226ede4..b6c084b0a 100644 --- a/lib/src/subtitles/better_player_subtitles_drawer.dart +++ b/lib/src/subtitles/better_player_subtitles_drawer.dart @@ -1,8 +1,6 @@ import 'dart:async'; import 'package:better_player/better_player.dart'; import 'package:better_player/src/subtitles/better_player_subtitle.dart'; -import 'package:better_player/src/subtitles/better_player_subtitles_configuration.dart'; -import 'package:better_player/src/video_player/video_player.dart'; import 'package:flutter/material.dart'; import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart'; diff --git a/lib/src/subtitles/better_player_subtitles_factory.dart b/lib/src/subtitles/better_player_subtitles_factory.dart index 868df68c1..e21a91d69 100644 --- a/lib/src/subtitles/better_player_subtitles_factory.dart +++ b/lib/src/subtitles/better_player_subtitles_factory.dart @@ -2,9 +2,7 @@ import 'dart:convert'; import 'dart:io'; import 'package:better_player/better_player.dart'; import 'package:better_player/src/core/better_player_utils.dart'; -import 'package:better_player/src/subtitles/better_player_subtitles_source.dart'; import 'better_player_subtitle.dart'; -import 'better_player_subtitles_source_type.dart'; class BetterPlayerSubtitlesFactory { static Future> parseSubtitles( diff --git a/lib/src/video_player/method_channel_video_player.dart b/lib/src/video_player/method_channel_video_player.dart index 0f70fc21a..a4066d5f0 100644 --- a/lib/src/video_player/method_channel_video_player.dart +++ b/lib/src/video_player/method_channel_video_player.dart @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; -import 'dart:ui'; import 'package:better_player/src/configuration/better_player_buffering_configuration.dart'; import 'package:better_player/src/core/better_player_utils.dart'; import 'package:flutter/foundation.dart'; diff --git a/lib/src/video_player/video_player.dart b/lib/src/video_player/video_player.dart index ee161c315..7a8453f13 100644 --- a/lib/src/video_player/video_player.dart +++ b/lib/src/video_player/video_player.dart @@ -7,11 +7,8 @@ import 'dart:async'; import 'dart:io'; import 'package:better_player/src/configuration/better_player_buffering_configuration.dart'; import 'package:better_player/src/video_player/video_player_platform_interface.dart'; -import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:meta/meta.dart'; -import 'package:pedantic/pedantic.dart'; final VideoPlayerPlatform _videoPlayerPlatform = VideoPlayerPlatform.instance // This will clear all open videos on the platform when a full restart is diff --git a/lib/src/video_player/video_player_platform_interface.dart b/lib/src/video_player/video_player_platform_interface.dart index 7e3a07b5a..336f54b04 100644 --- a/lib/src/video_player/video_player_platform_interface.dart +++ b/lib/src/video_player/video_player_platform_interface.dart @@ -4,16 +4,11 @@ // Dart imports: import 'dart:async'; -import 'dart:ui'; // Flutter imports: import 'package:better_player/src/configuration/better_player_buffering_configuration.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; - -// Package imports: -import 'package:meta/meta.dart' show visibleForTesting; - import 'method_channel_video_player.dart'; /// The interface that implementations of video_player must implement. diff --git a/pubspec.lock b/pubspec.lock index cc929f2da..05d2839a1 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.8.1" + version: "2.8.2" boolean_selector: dependency: transitive description: @@ -15,34 +15,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.0" - cached_network_image: - dependency: transitive - description: - name: cached_network_image - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - cached_network_image_platform_interface: - dependency: transitive - description: - name: cached_network_image_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - cached_network_image_web: - dependency: transitive - description: - name: cached_network_image_web - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" characters: dependency: transitive description: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: @@ -64,13 +43,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" csslib: dependency: transitive description: @@ -84,7 +56,7 @@ packages: name: cupertino_icons url: "https://pub.dartlang.org" source: hosted - version: "1.0.3" + version: "1.0.4" fake_async: dependency: transitive description: @@ -111,20 +83,6 @@ packages: description: flutter source: sdk version: "0.0.0" - flutter_blurhash: - dependency: transitive - description: - name: flutter_blurhash - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.0" - flutter_cache_manager: - dependency: transitive - description: - name: flutter_cache_manager - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.2" flutter_localizations: dependency: "direct dev" description: flutter @@ -146,35 +104,21 @@ packages: name: flutter_widget_from_html_core url: "https://pub.dartlang.org" source: hosted - version: "0.7.0" - html: - dependency: transitive - description: - name: html - url: "https://pub.dartlang.org" - source: hosted - version: "0.15.0" - html_unescape: + version: "0.8.4" + fwfh_text_style: dependency: transitive description: - name: html_unescape + name: fwfh_text_style url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.3" - http_parser: + version: "2.7.2" + html: dependency: transitive description: - name: http_parser + name: html url: "https://pub.dartlang.org" source: hosted - version: "4.0.0" + version: "0.15.0" intl: dependency: transitive description: @@ -195,14 +139,14 @@ packages: name: lint url: "https://pub.dartlang.org" source: hosted - version: "1.5.3" + version: "1.8.1" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" meta: dependency: "direct main" description: @@ -210,13 +154,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.7.0" - octo_image: - dependency: transitive - description: - name: octo_image - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0+1" path: dependency: transitive description: @@ -230,14 +167,28 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "2.0.5" + version: "2.0.8" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.11" + path_provider_ios: + dependency: transitive + description: + name: path_provider_ios + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.7" path_provider_linux: dependency: transitive description: name: path_provider_linux url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.1.2" path_provider_macos: dependency: transitive description: @@ -258,14 +209,7 @@ packages: name: path_provider_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" - pedantic: - dependency: "direct main" - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.11.1" + version: "2.0.4" petitparser: dependency: transitive description: @@ -273,13 +217,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "4.3.0" - photo_view: - dependency: transitive - description: - name: photo_view - url: "https://pub.dartlang.org" - source: hosted - version: "0.11.1" platform: dependency: transitive description: @@ -301,13 +238,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "4.1.0" - rxdart: - dependency: transitive - description: - name: rxdart - url: "https://pub.dartlang.org" - source: hosted - version: "0.27.2" sky_engine: dependency: transitive description: flutter @@ -320,20 +250,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.8.1" - sqflite: - dependency: transitive - description: - name: sqflite - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0+4" - sqflite_common: - dependency: transitive - description: - name: sqflite_common - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1+1" stack_trace: dependency: transitive description: @@ -355,13 +271,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.0" - synchronized: - dependency: transitive - description: - name: synchronized - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.0" term_glyph: dependency: transitive description: @@ -375,14 +284,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.2" - tweet_ui: - dependency: "direct main" - description: - name: tweet_ui - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.0" + version: "0.4.3" typed_data: dependency: transitive description: @@ -390,90 +292,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.3.0" - url_launcher: - dependency: transitive - description: - name: url_launcher - url: "https://pub.dartlang.org" - source: hosted - version: "6.0.12" - url_launcher_linux: - dependency: transitive - description: - name: url_launcher_linux - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - url_launcher_macos: - dependency: transitive - description: - name: url_launcher_macos - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - url_launcher_platform_interface: - dependency: transitive - description: - name: url_launcher_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.4" - url_launcher_web: - dependency: transitive - description: - name: url_launcher_web - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.4" - url_launcher_windows: - dependency: transitive - description: - name: url_launcher_windows - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - uuid: - dependency: transitive - description: - name: uuid - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.4" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" - video_player: - dependency: transitive - description: - name: video_player - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.5" - video_player_platform_interface: - dependency: transitive - description: - name: video_player_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "4.2.0" - video_player_web: - dependency: transitive - description: - name: video_player_web - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.4" + version: "2.1.1" visibility_detector: dependency: "direct main" description: name: visibility_detector url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "0.2.2" wakelock: dependency: "direct main" description: @@ -529,7 +361,7 @@ packages: name: xml url: "https://pub.dartlang.org" source: hosted - version: "5.3.0" + version: "5.3.1" sdks: - dart: ">=2.14.0 <3.0.0" - flutter: ">=2.5.0" + dart: ">=2.15.0-7.0.dev <3.0.0" + flutter: ">=2.6.0-0" diff --git a/pubspec.yaml b/pubspec.yaml index 7e8310f8e..2d7798222 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: better_player description: Advanced video player based on video_player and Chewie. It's solves many typical use cases and it's easy to run. -version: 0.0.79 +version: 0.0.80 # Disabled because of warning from analyzer # authors: # - Jakub Homlala @@ -14,20 +14,19 @@ environment: dependencies: flutter: sdk: flutter - cupertino_icons: ^1.0.3 + cupertino_icons: ^1.0.4 wakelock: ^0.5.6 - pedantic: ^1.11.1 meta: ^1.7.0 - flutter_widget_from_html_core: ^0.7.0 - visibility_detector: ^0.2.0 - path_provider: ^2.0.5 + flutter_widget_from_html_core: ^0.8.4 + visibility_detector: ^0.2.2 + path_provider: ^2.0.8 collection: ^1.15.0 - xml: ^5.3.0 + xml: ^5.3.1 dev_dependencies: + lint: ^1.8.1 flutter_test: sdk: flutter - lint: ^1.5.3 flutter_localizations: sdk: flutter