diff --git a/android/app/build.gradle b/android/app/build.gradle index 4159bf4..e5c55c7 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -47,7 +47,7 @@ android { applicationId "com.stonegate.tsacdop" minSdkVersion 19 targetSdkVersion 28 - versionCode 2 + versionCode 3 versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/lib/class/audiostate.dart b/lib/class/audiostate.dart index 72b4309..126740f 100644 --- a/lib/class/audiostate.dart +++ b/lib/class/audiostate.dart @@ -173,7 +173,7 @@ class AudioPlayerNotifier extends ChangeNotifier { super.addListener(listener); _queueUpdate = false; await AudioService.connect(); - bool running = await AudioService.running; + bool running = AudioService.running; if (running) {} } diff --git a/lib/episodes/episodedownload.dart b/lib/episodes/episodedownload.dart index ccd8efc..a19ea03 100644 --- a/lib/episodes/episodedownload.dart +++ b/lib/episodes/episodedownload.dart @@ -91,13 +91,11 @@ class _DownloadButtonState extends State { } Future _checkPermmison() async { - PermissionStatus permission = await PermissionHandler() - .checkPermissionStatus(PermissionGroup.storage); + PermissionStatus permission = await Permission.storage.status; if (permission != PermissionStatus.granted) { - Map permissions = - await PermissionHandler() - .requestPermissions([PermissionGroup.storage]); - if (permissions[PermissionGroup.storage] == PermissionStatus.granted) { + Map permissions = + await [Permission.storage].request(); + if (permissions[Permission.storage] == PermissionStatus.granted) { return true; } else { return false; diff --git a/lib/home/appbar/about.dart b/lib/home/appbar/about.dart index 16c8bf2..53412c8 100644 --- a/lib/home/appbar/about.dart +++ b/lib/home/appbar/about.dart @@ -72,7 +72,7 @@ class AboutApp extends StatelessWidget { image: AssetImage('assets/logo.png'), height: 80, ), - Text('Version: 0.1.7'), + Text('Version: 0.1.8'), ], ), ), diff --git a/lib/home/audioplayer.dart b/lib/home/audioplayer.dart index c159ed8..218bd4d 100644 --- a/lib/home/audioplayer.dart +++ b/lib/home/audioplayer.dart @@ -17,7 +17,6 @@ import 'package:tsacdop/home/audiopanel.dart'; import 'package:tsacdop/util/pageroute.dart'; import 'package:tsacdop/util/colorize.dart'; import 'package:tsacdop/util/context_extension.dart'; -import 'package:tsacdop/util/day_night_switch.dart'; import 'package:tsacdop/util/custompaint.dart'; class MyRectangularTrackShape extends RectangularSliderTrackShape { diff --git a/lib/settings/history.dart b/lib/settings/history.dart index 4ce12f0..162257d 100644 --- a/lib/settings/history.dart +++ b/lib/settings/history.dart @@ -421,7 +421,7 @@ class HistoryChart extends StatelessWidget { dotData: FlDotData( show: true, dotSize: 5, - dotColor: Theme.of(context).accentColor, + // getDotColor: Theme.of(context).accentColor, ), ), ], diff --git a/pubspec.yaml b/pubspec.yaml index 01230f2..d14b87c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: An easy-use podacasts player. # 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: 0.1.7 +version: 0.1.8 environment: sdk: ">=2.6.0 <3.0.0" @@ -32,18 +32,18 @@ dev_dependencies: flutter_html: ^0.11.1 path_provider: ^1.6.1 color_thief_flutter: ^1.0.2 - provider: ^4.0.4 - google_fonts: ^0.3.10 + provider: ^4.0.5 + google_fonts: ^0.4.0 dio: ^3.0.9 - file_picker: ^1.5.0+2 + file_picker: ^1.6.2 xml: ^3.5.0 marquee: ^1.3.1 - flutter_downloader: ^1.4.1 - permission_handler: ^4.4.0+hotfix.2 - fluttertoast: ^4.0.0 + flutter_downloader: ^1.4.3 + permission_handler: ^5.0.0+hotfix.3 + fluttertoast: ^4.0.1 intl: ^0.16.1 url_launcher: ^5.4.2 - image: ^2.1.4 + image: ^2.1.12 shared_preferences: ^0.5.6+1 uuid: ^2.0.4 tuple: ^1.0.3 @@ -51,8 +51,8 @@ dev_dependencies: workmanager: ^0.2.2 flutter_colorpicker: ^0.3.2 app_settings: ^3.0.1 - fl_chart: ^0.8.7 - audio_service: ^0.6.2 + fl_chart: ^0.9.0 + audio_service: ^0.7.1 just_audio: git: url: https://github.com/stonega/just_audio.git