From 3307c6df8d9867a22e5cce77184811af6fc6597f Mon Sep 17 00:00:00 2001 From: Andriy S'omak Date: Thu, 15 Jul 2021 20:53:04 +0300 Subject: [PATCH] Updted libraries --- android/app/build.gradle | 2 +- ios/fastlane/metadata/en-US/release_notes.txt | 2 +- .../zx_control/zx_volume_control_service.dart | 7 +- .../tape_player/models/progress_model.dart | 2 +- lib/utils/definitions.dart | 2 - pubspec.lock | 129 +++++++++--------- pubspec.yaml | 20 +-- 7 files changed, 82 insertions(+), 82 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 60d2224..b5e7e4d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -33,7 +33,7 @@ if (keystorePropertiesFile.exists()) { android { - compileSdkVersion 29 + compileSdkVersion 30 sourceSets { main.java.srcDirs += 'src/main/kotlin' diff --git a/ios/fastlane/metadata/en-US/release_notes.txt b/ios/fastlane/metadata/en-US/release_notes.txt index 8b13789..a6c81d1 100644 --- a/ios/fastlane/metadata/en-US/release_notes.txt +++ b/ios/fastlane/metadata/en-US/release_notes.txt @@ -1 +1 @@ - +Updated libraries diff --git a/lib/services/zx_control/zx_volume_control_service.dart b/lib/services/zx_control/zx_volume_control_service.dart index cf070ab..5937fac 100644 --- a/lib/services/zx_control/zx_volume_control_service.dart +++ b/lib/services/zx_control/zx_volume_control_service.dart @@ -1,8 +1,5 @@ -import 'dart:io'; - import 'package:volume_controller/volume_controller.dart'; import 'package:zx_tape_player/services/volume_control_service.dart'; -import 'package:zx_tape_player/utils/definitions.dart'; class ZxVolumeControlService extends VolumeControlService { var _hasSet = true; @@ -10,9 +7,7 @@ class ZxVolumeControlService extends VolumeControlService { @override Future setOptimalVolume() async { if (_hasSet) return; - var value = Definitions.optimalVolumeAndroid; - if (Platform.isIOS) value = Definitions.optimalVolumeIOS; - VolumeController.setVolume(value); + VolumeController().maxVolume(showSystemUI: false); _hasSet = true; } } diff --git a/lib/ui/widgets/tape_player/models/progress_model.dart b/lib/ui/widgets/tape_player/models/progress_model.dart index b4eddd1..d5313e3 100644 --- a/lib/ui/widgets/tape_player/models/progress_model.dart +++ b/lib/ui/widgets/tape_player/models/progress_model.dart @@ -1,5 +1,5 @@ class LoadingProgressData { - final double percent; + final int percent; final String filePath; LoadingProgressData(this.filePath, this.percent); diff --git a/lib/utils/definitions.dart b/lib/utils/definitions.dart index 871aa64..c80c30b 100644 --- a/lib/utils/definitions.dart +++ b/lib/utils/definitions.dart @@ -9,6 +9,4 @@ class Definitions { static const wafFilePath = '%s/%s.wav'; static const wavFrequency = 44100; static const wavCacheLimitMb = 100; - static const optimalVolumeIOS = 1.00; - static const optimalVolumeAndroid = 0.75; } diff --git a/pubspec.lock b/pubspec.lock index e19e0b3..ed19612 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,14 +7,14 @@ packages: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted - version: "20.0.0" + version: "22.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "1.4.0" + version: "1.7.1" app_center_bundle_sdk: dependency: "direct main" description: @@ -35,7 +35,7 @@ packages: name: args url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.1.1" async: dependency: transitive description: @@ -49,7 +49,7 @@ packages: name: audio_session url: "https://pub.dartlang.org" source: hosted - version: "0.1.0" + version: "0.1.5" avatar_abc: dependency: "direct main" description: @@ -70,56 +70,56 @@ packages: name: build url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.3" build_config: dependency: transitive description: name: build_config url: "https://pub.dartlang.org" source: hosted - version: "0.4.7" + version: "1.0.0" build_daemon: dependency: transitive description: name: build_daemon url: "https://pub.dartlang.org" source: hosted - version: "2.1.10" + version: "3.0.0" build_resolvers: dependency: transitive description: name: build_resolvers url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.4" build_runner: dependency: "direct dev" description: name: build_runner url: "https://pub.dartlang.org" source: hosted - version: "1.12.2" + version: "2.0.6" build_runner_core: dependency: transitive description: name: build_runner_core url: "https://pub.dartlang.org" source: hosted - version: "6.1.12" + version: "7.0.1" built_collection: dependency: transitive description: name: built_collection url: "https://pub.dartlang.org" source: hosted - version: "5.0.0" + version: "5.1.0" built_value: dependency: transitive description: name: built_value url: "https://pub.dartlang.org" source: hosted - version: "8.0.4" + version: "8.1.1" cached_network_image: dependency: "direct main" description: @@ -133,7 +133,7 @@ packages: name: carousel_slider url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "4.0.0" characters: dependency: transitive description: @@ -161,7 +161,7 @@ packages: name: cli_util url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.3.3" clock: dependency: transitive description: @@ -175,7 +175,7 @@ packages: name: code_builder url: "https://pub.dartlang.org" source: hosted - version: "3.7.0" + version: "4.0.0" collection: dependency: transitive description: @@ -189,7 +189,7 @@ packages: name: convert url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "3.0.1" crypto: dependency: "direct main" description: @@ -203,7 +203,7 @@ packages: name: dart_style url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.2" easy_localization: dependency: "direct main" description: @@ -238,21 +238,21 @@ packages: name: ffi url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.1.2" file: dependency: transitive description: name: file url: "https://pub.dartlang.org" source: hosted - version: "6.1.0" + version: "6.1.2" file_picker: dependency: "direct main" description: name: file_picker url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.0.3" fixnum: dependency: transitive description: @@ -278,14 +278,14 @@ packages: name: flutter_cache_manager url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.1.2" flutter_keyboard_visibility: dependency: transitive description: name: flutter_keyboard_visibility url: "https://pub.dartlang.org" source: hosted - version: "5.0.0" + version: "5.0.2" flutter_keyboard_visibility_platform_interface: dependency: transitive description: @@ -311,21 +311,21 @@ packages: name: flutter_mute url: "https://pub.dartlang.org" source: hosted - version: "0.0.1" + version: "0.0.3" flutter_native_splash: dependency: "direct dev" description: name: flutter_native_splash url: "https://pub.dartlang.org" source: hosted - version: "1.1.7+1" + version: "1.2.0" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.2" flutter_spinkit: dependency: "direct main" description: @@ -351,19 +351,26 @@ packages: name: flutter_typeahead url: "https://pub.dartlang.org" source: hosted - version: "3.1.1" + version: "3.2.0" flutter_web_plugins: dependency: transitive description: flutter source: sdk version: "0.0.0" + frontend_server_client: + dependency: transitive + description: + name: frontend_server_client + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" get_it: dependency: "direct main" description: name: get_it url: "https://pub.dartlang.org" source: hosted - version: "6.0.0" + version: "7.1.3" glob: dependency: transitive description: @@ -377,21 +384,21 @@ packages: name: graphs url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "2.0.0" http: dependency: "direct main" description: name: http url: "https://pub.dartlang.org" source: hosted - version: "0.13.1" + version: "0.13.3" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "3.0.1" http_parser: dependency: transitive description: @@ -412,7 +419,7 @@ packages: name: in_app_review url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.2" in_app_review_platform_interface: dependency: transitive description: @@ -426,7 +433,7 @@ packages: name: internet_connection_checker url: "https://pub.dartlang.org" source: hosted - version: "0.0.1" + version: "0.0.1+1" intl: dependency: transitive description: @@ -440,7 +447,7 @@ packages: name: io url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.0.3" js: dependency: transitive description: @@ -461,21 +468,21 @@ packages: name: just_audio url: "https://pub.dartlang.org" source: hosted - version: "0.7.3" + version: "0.8.0" just_audio_platform_interface: dependency: transitive description: name: just_audio_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "3.1.0" just_audio_web: dependency: transitive description: name: just_audio_web url: "https://pub.dartlang.org" source: hosted - version: "0.3.1" + version: "0.3.2" logging: dependency: transitive description: @@ -489,7 +496,7 @@ packages: name: marquee_widget url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.2.0" matcher: dependency: transitive description: @@ -531,7 +538,7 @@ packages: name: package_info url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.2" path: dependency: "direct main" description: @@ -545,7 +552,7 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.2" path_provider_linux: dependency: transitive description: @@ -573,28 +580,28 @@ packages: name: path_provider_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.1" pedantic: dependency: transitive description: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.11.0" + version: "1.11.1" permission_handler: dependency: "direct main" description: name: permission_handler url: "https://pub.dartlang.org" source: hosted - version: "6.1.1" + version: "8.1.2" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "3.1.1" + version: "3.6.0" petitparser: dependency: transitive description: @@ -615,7 +622,7 @@ packages: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.1" pool: dependency: transitive description: @@ -650,28 +657,28 @@ packages: name: pull_to_refresh url: "https://pub.dartlang.org" source: hosted - version: "1.6.4" + version: "2.0.0" rxdart: dependency: "direct main" description: name: rxdart url: "https://pub.dartlang.org" source: hosted - version: "0.26.0" + version: "0.27.1" share: dependency: "direct main" description: name: share url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.4" shared_preferences: dependency: "direct main" description: name: shared_preferences url: "https://pub.dartlang.org" source: hosted - version: "2.0.5" + version: "2.0.6" shared_preferences_linux: dependency: transitive description: @@ -713,7 +720,7 @@ packages: name: shelf url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" shelf_web_socket: dependency: transitive description: @@ -830,7 +837,7 @@ packages: name: url_launcher url: "https://pub.dartlang.org" source: hosted - version: "6.0.3" + version: "6.0.9" url_launcher_linux: dependency: transitive description: @@ -851,14 +858,14 @@ packages: name: url_launcher_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.4" url_launcher_web: dependency: transitive description: name: url_launcher_web url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.1" url_launcher_windows: dependency: transitive description: @@ -886,35 +893,35 @@ packages: name: volume_controller url: "https://pub.dartlang.org" source: hosted - version: "1.0.1+1" + version: "2.0.2" wakelock: dependency: "direct main" description: name: wakelock url: "https://pub.dartlang.org" source: hosted - version: "0.5.0+2" + version: "0.5.2" wakelock_macos: dependency: transitive description: name: wakelock_macos url: "https://pub.dartlang.org" source: hosted - version: "0.1.0" + version: "0.1.0+1" wakelock_platform_interface: dependency: transitive description: name: wakelock_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "0.2.1+1" wakelock_web: dependency: transitive description: name: wakelock_web url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "0.2.0+1" wakelock_windows: dependency: transitive description: @@ -935,7 +942,7 @@ packages: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.1.0" win32: dependency: transitive description: @@ -956,7 +963,7 @@ packages: name: xml url: "https://pub.dartlang.org" source: hosted - version: "5.1.0" + version: "5.1.2" yaml: dependency: transitive description: @@ -970,7 +977,7 @@ packages: name: zx_tape_to_wav url: "https://pub.dartlang.org" source: hosted - version: "3.1.0+13" + version: "3.1.0+14" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=2.12.2 <3.0.0" flutter: ">=2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 175f933..61d5274 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.4+114 +version: 1.0.5+115 environment: sdk: ">=2.7.0 <4.0.0" @@ -34,13 +34,13 @@ dependencies: app_center_bundle_sdk: ^0.0.2 avatar_abc: ^1.0.6 cached_network_image: ^3.0.0-nullsafety - pull_to_refresh: ^1.6.4 - carousel_slider: ^3.0.0 - just_audio: ^0.7.2 + pull_to_refresh: ^2.0.0 + carousel_slider: ^4.0.0 + just_audio: ^0.8.0 flutter_spinkit: ^5.0.0 - rxdart: ^0.26.0 + rxdart: ^0.27.1 crypto: ^3.0.0 - get_it: ^6.0.0 + get_it: ^7.1.3 url_launcher: ^6.0.3 marquee_widget: ^1.0.0 zx_tape_to_wav: ^3.1.0+12 @@ -49,9 +49,9 @@ dependencies: flutter_statusbarcolor_ns: ^0.3.0-nullsafety internet_connection_checker: ^0.0.1 wakelock: ^0.5.0+2 - volume_controller: 1.0.1+1 - share: 2.0.1 - permission_handler: ^6.1.1 + volume_controller: ^2.0.0 + share: ^2.0.4 + permission_handler: ^8.1.2 ext_storage: ^1.0.3 in_app_review: ^2.0.1 @@ -65,7 +65,7 @@ dev_dependencies: #flutter_launcher_icons: ^0.9.0 #flutter_automation: ^1.4.0 flutter_native_splash: ^1.1.2 - build_runner: ^1.12.2 + build_runner: ^2.0.5 # Run command to update icons: flutter pub pub run flutter_launcher_icons:main flutter_icons: