From 139d4dc033d9aaa1d6882bf0f53e96a3b1e87c95 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sun, 2 Oct 2022 11:37:18 +0600 Subject: [PATCH] fix(android): file_picker and permission_handler failure for sdk < 33 --- README.md | 1 - android/app/build.gradle | 2 +- pubspec.lock | 4 ++-- pubspec.yaml | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b18def4c3..40366d33f 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,6 @@ Bu why? You can learn about it [here](https://dev.to/krtirtho/choosing-open-sour - [spotify (dart)](https://github.com/rinukkusu/spotify-dart) - A dart library for interfacing with the Spotify API - [audioplayers](https://github.com/bluefireteam/audioplayers) - A Flutter plugin to play multiple audio files simultaneously (Android/iOS) - [youtube_explode_dart](https://github.com/Hexer10/youtube_explode_dart) - YoutubeExplode is a library that provides an interface to query metadata of YouTube videos, playlists and channels, as well as to resolve and download video streams and closed caption tracks -- [infinite_scroll_pagination](https://github.com/EdsonBueno/infinite_scroll_pagination) - Flutter package to help you lazily load and display pages of items as the user scrolls down your screen - [bitsdojo_window](https://github.com/bitsdojo/bitsdojo_window) - A Flutter package that makes it easy to customize and work with your Flutter desktop app window on Windows, macOS and Linux - [Inno Setup](https://jrsoftware.org/isinfo.php) - Inno Setup is a free installer for Windows programs by Jordan Russell and Martijn Laan - [collection](https://github.com/dart-lang/collection) - The collection package for Dart contains a number of separate libraries with utility functions and classes that makes working with collections easier diff --git a/android/app/build.gradle b/android/app/build.gradle index 111b89780..b767c01c7 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 31 + compileSdkVersion 33 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/pubspec.lock b/pubspec.lock index 20f9fbd1a..bdfe55565 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -934,14 +934,14 @@ packages: name: permission_handler url: "https://pub.dartlang.org" source: hosted - version: "9.2.0" + version: "10.0.2" permission_handler_android: dependency: transitive description: name: permission_handler_android url: "https://pub.dartlang.org" source: hosted - version: "9.0.2+1" + version: "10.1.0" permission_handler_apple: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index b6a99b475..61f672017 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,13 +29,12 @@ dependencies: go_router: ^3.0.4 palette_generator: ^0.3.3 logger: ^1.1.0 - permission_handler: ^9.2.0 + permission_handler: ^10.0.2 marquee: ^2.2.3 scroll_to_index: ^2.1.1 package_info_plus: ^1.4.3 version: ^3.0.2 audio_service: ^0.18.7 - hookified_infinite_scroll_pagination: ^0.1.0 skeleton_text: ^3.0.0 hive: ^2.2.3 hive_flutter: ^1.1.0