diff --git a/lib/player/states/video_player.dart b/lib/player/states/video_player.dart index 6c367cb8..d08f8f8c 100644 --- a/lib/player/states/video_player.dart +++ b/lib/player/states/video_player.dart @@ -9,11 +9,11 @@ import 'package:invidious/player/models/media_event.dart'; import 'package:invidious/settings/states/settings.dart'; import 'package:invidious/videos/models/base_video.dart'; import 'package:logging/logging.dart'; -import 'package:pretty_bytes/pretty_bytes.dart'; -import 'package:wakelock/wakelock.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; import '../../globals.dart'; import '../../main.dart'; +import '../../utils/pretty_bytes.dart'; import '../../videos/models/video.dart'; import '../views/components/player_controls.dart'; import '../views/tv/components/player_controls.dart'; @@ -44,7 +44,7 @@ class VideoPlayerCubit extends MediaPlayerCubit { @override disposeControllers() { - Wakelock.disable(); + WakelockPlus.disable(); log.fine("Disposing video controller"); var state = this.state.copyWith(); videoController?.exitFullScreen(); @@ -309,7 +309,7 @@ class VideoPlayerCubit extends MediaPlayerCubit { ); } - Wakelock.enable(); + WakelockPlus.enable(); bool fillVideo = settings.state.fillFullscreen; diff --git a/lib/utils/pretty_bytes.dart b/lib/utils/pretty_bytes.dart new file mode 100644 index 00000000..b6ab0ac1 --- /dev/null +++ b/lib/utils/pretty_bytes.dart @@ -0,0 +1,164 @@ +import 'dart:math'; + +import 'package:intl/intl.dart'; + +const BYTE_UNITS = [ + 'B', + 'KB', + 'MB', + 'GB', + 'TB', + 'PB', + 'EB', + 'ZB', + 'YB', +]; + +const BIBYTE_UNITS = [ + 'B', + 'KiB', + 'MiB', + 'GiB', + 'TiB', + 'PiB', + 'EiB', + 'ZiB', + 'YiB', +]; + +const BIT_UNITS = [ + 'b', + 'Kbit', + 'Mbit', + 'Gbit', + 'Tbit', + 'Pbit', + 'Ebit', + 'Zbit', + 'Ybit', +]; + +const BIBIT_UNITS = [ + 'b', + 'Kibit', + 'Mibit', + 'Gibit', + 'Tibit', + 'Pibit', + 'Eibit', + 'Zibit', + 'Yibit', +]; + +double log10(num x) => log(x) / ln10; + +var removeTrailingZerosRegex = RegExp(r'([.]*0)(?!.*\d)'); + +String toLocaleString(double number, String? locale, int? minimumFractionDigits, + int? maximumFractionDigits) { + if (locale == null) { + return number.toString().replaceAll(removeTrailingZerosRegex, ''); + } + final formatter = NumberFormat(null, locale); + if (maximumFractionDigits != null) { + formatter.minimumFractionDigits = minimumFractionDigits!; + } + if (minimumFractionDigits != null) { + formatter.maximumFractionDigits = maximumFractionDigits!; + } + return formatter.format(number); +} + +String prettyBytes( + double number, { + /// Include plus sign for positive numbers. If the difference is exactly zero a space character will be prepended instead for better alignment. + /// Default: false. + bool? signed, + + /// - If `null`: Output won't be localized. + /// - If `string`: Expects a [BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …) + /// @default null + String? locale, + + /// Format the number as [bits](https://en.wikipedia.org/wiki/Bit) instead of [bytes](https://en.wikipedia.org/wiki/Byte). This can be useful when, for example, referring to [bit rate](https://en.wikipedia.org/wiki/Bit_rate). + /// Default: false. + /// @example + /// ``` + /// prettyBytes(1337, bits: true); + /// //=> '1.34 kbit' + /// ``` + bool? bits, + + /// Format the number using the [Binary Prefix](https://en.wikipedia.org/wiki/Binary_prefix) instead of the [SI Prefix](https://en.wikipedia.org/wiki/SI_prefix). This can be useful for presenting memory amounts. However, this should not be used for presenting file sizes. + /// Default: false. + /// @example + /// ``` + /// prettyBytes(1000, binary: true); + /// //=> '1000 bit' + /// prettyBytes(1024, binary: true); + /// //=> '1 kiB' + /// ``` + bool? binary, + + /// The minimum number of fraction digits to display. + /// If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits. + /// @default null + /// ``` + /// // Show the number with at least 3 fractional digits + /// prettyBytes(1900, {minimumFractionDigits: 3}); + /// //=> '1.900 kB' + /// prettyBytes(1900); + /// //=> '1.9 kB' + /// ``` + int? minimumFractionDigits, + + /// The maximum number of fraction digits to display. + /// If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits. + /// @default null + /// ``` + /// // Show the number with at most 1 fractional digit + /// prettyBytes(1920, {maximumFractionDigits: 1}); + /// //=> '1.9 kB' + /// prettyBytes(1920); + /// //=> '1.92 kB' + /// ``` + int? maximumFractionDigits, +}) { + final UNITS = (bits == true) + ? (binary == true ? BIBIT_UNITS : BIT_UNITS) + : (binary == true ? BIBYTE_UNITS : BYTE_UNITS); + + if (signed == true && number == 0) { + return ' 0 ${UNITS[0]}'; + } + + final isNegative = number < 0; + final prefix = isNegative ? '-' : (signed == true ? '+' : ''); + + if (isNegative) { + number = -number; + } + + if (number < 1) { + final numberStr = toLocaleString( + number, locale, minimumFractionDigits, maximumFractionDigits); + return prefix + numberStr + ' ' + UNITS[0]; + } + + final exponent = min( + (binary != null ? log(number) / log(1024) : log10(number) / 3) + .floorToDouble(), + (UNITS.length - 1).toDouble()) + .toInt(); + number /= pow(binary != null ? 1024 : 1000, exponent); + if (minimumFractionDigits == null && maximumFractionDigits == null) { + number = double.parse(number.toStringAsPrecision(3)); + } + + final numberStr = toLocaleString( + number, locale, minimumFractionDigits, maximumFractionDigits); + + final unit = UNITS[exponent]; + + return '$prefix$numberStr $unit'; +} diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index d0b8d6d7..bb7eba4d 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -18,7 +18,7 @@ import path_provider_foundation import share_plus import sqflite import url_launcher_macos -import wakelock_macos +import wakelock_plus func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AudioServicePlugin.register(with: registry.registrar(forPlugin: "AudioServicePlugin")) @@ -34,5 +34,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) - WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin")) + WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin")) } diff --git a/pubspec.lock b/pubspec.lock index cc38624e..0551a18b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" url: "https://pub.dev" source: hosted - version: "64.0.0" + version: "65.0.0" after_layout: dependency: "direct main" description: @@ -21,10 +21,10 @@ packages: dependency: transitive description: name: analyzer - sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.3.0" ansicolor: dependency: transitive description: @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: archive - sha256: "7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b" + sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d" url: "https://pub.dev" source: hosted - version: "3.4.9" + version: "3.4.10" args: dependency: transitive description: @@ -109,10 +109,10 @@ packages: dependency: "direct main" description: name: awesome_notifications - sha256: "65f730f9c0e73a346039ef746384bcff1773f9f03821b859705a7ab8db977b23" + sha256: "2074e320d37633196b8485085cd5c9f506c0c930134d1e9decf0a0de754a41bf" url: "https://pub.dev" source: hosted - version: "0.8.2" + version: "0.9.1" back_button_interceptor: dependency: "direct main" description: @@ -126,7 +126,7 @@ packages: description: path: "." ref: master - resolved-ref: "3426a0dca12e03881279028befa368ccdd5cfc12" + resolved-ref: "58e2280ca3a2808e8327dd1593d6b2159ce8b68e" url: "https://github.com/lamarios/betterplayer.git" source: git version: "0.0.83" @@ -174,18 +174,18 @@ packages: dependency: transitive description: name: build_resolvers - sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8" + sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "67d591d602906ef9201caf93452495ad1812bea2074f04e25dbd7c133785821b" + sha256: "581bacf68f89ec8792f5e5a0b2c4decd1c948e97ce659dc783688c8a88fbec21" url: "https://pub.dev" source: hosted - version: "2.4.7" + version: "2.4.8" build_runner_core: dependency: transitive description: @@ -214,26 +214,26 @@ packages: dependency: "direct main" description: name: cached_network_image - sha256: f98972704692ba679db144261172a8e20feb145636c617af0eb4022132a6797f + sha256: "28ea9690a8207179c319965c13cd8df184d5ee721ae2ce60f398ced1219cea1f" url: "https://pub.dev" source: hosted - version: "3.3.0" + version: "3.3.1" cached_network_image_platform_interface: dependency: transitive description: name: cached_network_image_platform_interface - sha256: "56aa42a7a01e3c9db8456d9f3f999931f1e05535b5a424271e9a38cabf066613" + sha256: "9e90e78ae72caa874a323d78fa6301b3fb8fa7ea76a8f96dc5b5bf79f283bf2f" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "4.0.0" cached_network_image_web: dependency: transitive description: name: cached_network_image_web - sha256: "759b9a9f8f6ccbb66c185df805fac107f05730b1dab9c64626d1008cca532257" + sha256: "42a835caa27c220d1294311ac409a43361088625a4f23c820b006dd9bffb3316" url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" carousel_slider: dependency: "direct main" description: @@ -262,10 +262,10 @@ packages: dependency: transitive description: name: cli_util - sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 + sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 url: "https://pub.dev" source: hosted - version: "0.4.0" + version: "0.4.1" clock: dependency: transitive description: @@ -278,10 +278,10 @@ packages: dependency: transitive description: name: code_builder - sha256: b2151ce26a06171005b379ecff6e08d34c470180ffe16b8e14b6d52be292b55f + sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 url: "https://pub.dev" source: hosted - version: "4.8.0" + version: "4.10.0" collection: dependency: transitive description: @@ -350,10 +350,10 @@ packages: dependency: transitive description: name: csslib - sha256: "831883fb353c8bdc1d71979e5b342c7d88acfbc643113c14ae51e2442ea0f20f" + sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" url: "https://pub.dev" source: hosted - version: "0.17.3" + version: "1.0.0" cupertino_icons: dependency: "direct overridden" description: @@ -370,6 +370,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.4" + dbus: + dependency: transitive + description: + name: dbus + sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac" + url: "https://pub.dev" + source: hosted + version: "0.7.10" device_info_plus: dependency: "direct main" description: @@ -459,10 +467,10 @@ packages: dependency: "direct main" description: name: flutter_animate - sha256: "1dbc1aabfb8ec1e9d9feed2b675c21fb6b0a11f99be53ec3bc0f1901af6a8eb7" + sha256: "2f3535790fff1ad21bca4f16b7435fa4af6a3c4b43e88e273a8683ed4ec26b26" url: "https://pub.dev" source: hosted - version: "4.3.0" + version: "4.4.0" flutter_bloc: dependency: "direct main" description: @@ -533,10 +541,10 @@ packages: dependency: "direct main" description: name: flutter_native_splash - sha256: "141b20f15a2c4fe6e33c49257ca1bc114fc5c500b04fcbc8d75016bb86af672f" + sha256: "9cdb5d9665dab5d098dc50feab74301c2c228cd02ca25c9b546ab572cebcd6af" url: "https://pub.dev" source: hosted - version: "2.3.8" + version: "2.3.9" flutter_svg: dependency: "direct main" description: @@ -575,10 +583,10 @@ packages: dependency: transitive description: name: flutter_widget_from_html_core - sha256: e8f4f8b461a140ffb7c71f938bc76efc758893e7468843d9dbf70cb0b9e900cb + sha256: "028f4989b9ff4907466af233d50146d807772600d98a3e895662fbdb09c39225" url: "https://pub.dev" source: hosted - version: "0.8.5+3" + version: "0.14.11" freezed: dependency: "direct dev" description: @@ -608,14 +616,6 @@ packages: description: flutter source: sdk version: "0.0.0" - fwfh_text_style: - dependency: transitive - description: - name: fwfh_text_style - sha256: "5f8b587fd223a6bf14aad3d3da5e7ced0628becbd0768f8e7ae25ff6b9f3d2ec" - url: "https://pub.dev" - source: hosted - version: "2.23.8" glob: dependency: transitive description: @@ -676,10 +676,10 @@ packages: dependency: "direct main" description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.18.1" + version: "0.19.0" io: dependency: transitive description: @@ -786,13 +786,13 @@ packages: source: hosted version: "0.5.0" meta: - dependency: transitive + dependency: "direct overridden" description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" mime: dependency: transitive description: @@ -901,26 +901,26 @@ packages: dependency: "direct main" description: name: path_provider - sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa + sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72 + sha256: "477184d672607c0a3bf68fbbf601805f92ef79c82b64b4d6eb318cbca4c48668" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.2" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d" + sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" path_provider_linux: dependency: transitive description: @@ -933,10 +933,10 @@ packages: dependency: transitive description: name: path_provider_platform_interface - sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c" + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" path_provider_windows: dependency: transitive description: @@ -965,10 +965,10 @@ packages: dependency: transitive description: name: plugin_platform_interface - sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8 + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.7" + version: "2.1.8" pointycastle: dependency: transitive description: @@ -985,14 +985,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" - pretty_bytes: - dependency: "direct main" - description: - name: pretty_bytes - sha256: "7631053feb43bef3cf700244758c021bf74a906fae6fa459684a142f9c2bbcd4" - url: "https://pub.dev" - source: hosted - version: "6.1.0" process: dependency: transitive description: @@ -1114,10 +1106,10 @@ packages: dependency: transitive description: name: source_gen - sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16 + sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.5.0" source_helper: dependency: transitive description: @@ -1218,10 +1210,10 @@ packages: dependency: transitive description: name: synchronized - sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60" + sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.0+1" term_glyph: dependency: transitive description: @@ -1282,26 +1274,26 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: e9aa5ea75c84cf46b3db4eea212523591211c3cf2e13099ee4ec147f54201c86 + sha256: d25bb0ca00432a5e1ee40e69c36c85863addf7cc45e433769d61bed3fe81fd96 url: "https://pub.dev" source: hosted - version: "6.2.2" + version: "6.2.3" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def" + sha256: "507dc655b1d9cb5ebc756032eb785f114e415f91557b73bf60b7e201dfedeb2f" url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.2.2" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: bba3373219b7abb6b5e0d071b0fe66dfbe005d07517a68e38d4fc3638f35c6d3 + sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" url: "https://pub.dev" source: hosted - version: "6.2.1" + version: "6.2.4" url_launcher_linux: dependency: transitive description: @@ -1322,58 +1314,58 @@ packages: dependency: transitive description: name: url_launcher_platform_interface - sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50" + sha256: a932c3a8082e118f80a475ce692fde89dc20fddb24c57360b96bc56f7035de1f url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.3.1" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: "7286aec002c8feecc338cc33269e96b73955ab227456e9fb2a91f7fab8a358e9" + sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.3" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc" + sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7 url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.1" uuid: dependency: "direct main" description: name: uuid - sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" + sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 url: "https://pub.dev" source: hosted - version: "4.2.2" + version: "4.3.3" vector_graphics: dependency: transitive description: name: vector_graphics - sha256: "0f0c746dd2d6254a0057218ff980fc7f5670fd0fcf5e4db38a490d31eed4ad43" + sha256: "18f6690295af52d081f6808f2f7c69f0eed6d7e23a71539d75f4aeb8f0062172" url: "https://pub.dev" source: hosted - version: "1.1.9+1" + version: "1.1.9+2" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: "0edf6d630d1bfd5589114138ed8fada3234deacc37966bec033d3047c29248b7" + sha256: "531d20465c10dfac7f5cd90b60bbe4dd9921f1ec4ca54c83ebb176dbacb7bb2d" url: "https://pub.dev" source: hosted - version: "1.1.9+1" + version: "1.1.9+2" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: d24333727332d9bd20990f1483af4e09abdb9b1fc7c3db940b56ab5c42790c26 + sha256: "03012b0a33775c5530576b70240308080e1d5050f0faf000118c20e6463bc0ad" url: "https://pub.dev" source: hosted - version: "1.1.9+1" + version: "1.1.9+2" vector_math: dependency: transitive description: @@ -1386,10 +1378,10 @@ packages: dependency: transitive description: name: visibility_detector - sha256: "15c54a459ec2c17b4705450483f3d5a2858e733aee893dcee9d75fd04814940d" + sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420 url: "https://pub.dev" source: hosted - version: "0.3.3" + version: "0.4.0+2" vm_service: dependency: transitive description: @@ -1398,47 +1390,22 @@ packages: url: "https://pub.dev" source: hosted version: "11.10.0" - wakelock: + wakelock_plus: dependency: "direct main" description: - name: wakelock - sha256: "769ecf42eb2d07128407b50cb93d7c10bd2ee48f0276ef0119db1d25cc2f87db" - url: "https://pub.dev" - source: hosted - version: "0.6.2" - wakelock_macos: - dependency: transitive - description: - name: wakelock_macos - sha256: "047c6be2f88cb6b76d02553bca5a3a3b95323b15d30867eca53a19a0a319d4cd" + name: wakelock_plus + sha256: f268ca2116db22e57577fb99d52515a24bdc1d570f12ac18bb762361d43b043d url: "https://pub.dev" source: hosted - version: "0.4.0" - wakelock_platform_interface: - dependency: transitive - description: - name: wakelock_platform_interface - sha256: "1f4aeb81fb592b863da83d2d0f7b8196067451e4df91046c26b54a403f9de621" - url: "https://pub.dev" - source: hosted - version: "0.3.0" - wakelock_web: + version: "1.1.4" + wakelock_plus_platform_interface: dependency: transitive description: - name: wakelock_web - sha256: "1b256b811ee3f0834888efddfe03da8d18d0819317f20f6193e2922b41a501b5" + name: wakelock_plus_platform_interface + sha256: "40fabed5da06caff0796dc638e1f07ee395fb18801fbff3255a2372db2d80385" url: "https://pub.dev" source: hosted - version: "0.4.0" - wakelock_windows: - dependency: "direct overridden" - description: - path: wakelock_windows - ref: main - resolved-ref: f3610d6c246098fee74463de09434ed81fc2a7c8 - url: "https://github.com/chandrabezzo/wakelock.git" - source: git - version: "0.2.2" + version: "1.1.0" watcher: dependency: transitive description: @@ -1483,10 +1450,10 @@ packages: dependency: transitive description: name: win32 - sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574 + sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" url: "https://pub.dev" source: hosted - version: "5.1.1" + version: "5.2.0" win32_registry: dependency: transitive description: @@ -1507,10 +1474,10 @@ packages: dependency: transitive description: name: xdg_directories - sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2" + sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" xml: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index b09ab8eb..2c6c4ff1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -47,56 +47,49 @@ dependencies: settings_ui: 2.0.2 objectbox: 2.4.0 objectbox_flutter_libs: 2.4.0 - path_provider: 2.1.1 + path_provider: 2.1.2 path: any flutter_web_auth: 0.5.0 - cached_network_image: 3.3.0 + cached_network_image: 3.3.1 share_plus: 7.2.1 package_info_plus: 5.0.1 receive_sharing_intent: 1.4.5 logging: 1.2.0 flutter_svg: 2.0.9 - flutter_native_splash: 2.3.8 + flutter_native_splash: 2.3.9 flutter_linkify: 6.0.0 - url_launcher: 6.2.2 + url_launcher: 6.2.3 back_button_interceptor: 7.0.0 flutter_swipe_action_cell: 3.1.3 device_info_plus: 9.1.1 - wakelock: 0.6.2 + wakelock_plus: 1.1.4 locale_names: git: url: https://github.com/lamarios/locale_names.git ref: master -# uuid: 4.3.1 dio: 5.4.0 just_audio: 0.9.36 audio_service: 0.18.12 carousel_slider: 4.2.1 - flutter_animate: 4.3.0 + flutter_animate: 4.4.0 bloc: 8.1.2 flutter_bloc: 8.1.3 copy_with_extension: 5.0.4 - pretty_bytes: 6.1.0 simple_pip_mode: 0.8.0 - awesome_notifications: 0.8.2 + awesome_notifications: 0.9.1 auto_route: 7.8.4 workmanager: 0.5.2 flutter_displaymode: 0.6.0 freezed_annotation: 2.4.1 audio_session: 0.1.18 - uuid: 4.2.2 + uuid: 4.3.3 dependency_overrides: + intl: 0.19.0 + meta: 1.11.0 # wakelock_windows: # git: # see https://github.com/creativecreatorormaybenot/wakelock/pull/203 for updates # url: https://github.com/timsneath/wakelock # ref: win32-v5 - wakelock_windows: - git: - url: https://github.com/chandrabezzo/wakelock.git # repository - ref: main # branch - path: wakelock_windows/ # folder - - # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons.