on_audio_query 2.9.0
on_audio_query: ^2.9.0 copied to clipboard
Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage.
2.8.1 #
2.8.0 #
2.7.0 [03.29.2023] #
Features #
- Added
[LogType]. - Added
[LogConfig]. - Added
[PermissionController](Native) - Added
[PluginProvider](Native) - Added
[setLogConfig]method. - Added
[checkAndRequest]method. - Added
[controller]to[QueryArtworkWidget]. - Added
[retryRequest]param to[checkAndRequest]and[permissionsRequest].
Fixes #
Android
- Fixed crash after request permission. - #68
- Fixed quality always being sent as
200using[queryArtwork].
Changes #
- Updated example.
- Renamed natives files/folders.
- Reduced the default
artworkresolution (from 100 to 50). - Updated
[QueryArtworkWidget]params. - Updated quality assert on
[QueryArtworkWidget].
⚠ Important Changes #
- Updated application permission check.
- If application doesn't have permission to access the library, will throw a PlatformException.
- Updated
qualityparam from[QueryArtworkWidget].- This param cannot be defined as null anymore and, by default, will be set to
50.
- This param cannot be defined as null anymore and, by default, will be set to
- Updated minimum supported Dart version.
- Increase minimum version from
2.12to2.17.
- Increase minimum version from
2.6.2 [03.03.2023] #
2.6.0 [02.01.2022] #
Features #
- Added
[scanMedia]method that will scan the given path and update the[Android]MediaStore.
Fixes #
- Fixed media showing when calling
[querySongs]even after deleting with[dart:io]. - #67
Changes #
- Updated some required packages.
Documentation #
- Updated
READMEdocumentation. - Updated
DEPRECATEDdocumentation. - Updated
PLATFORMSdocumentation. - Updated some
brokenlinks.
2.5.3 [11.10.2021] #
2.5.2 [10.25.2021] #
2.5.1 [10.19.2021] #
2.5.0 [10.15.2021] #
2.5.0-alpha.0 [10.15.2021] #
Features #
All platforms
- Added
artworkto genres. - #41 - Added
sortType,orderTypeandignoreCaseto[queryAudiosFrom].
Android
- Re-Added
pathparameter to[querySongs]. - #48
Web
- Added
pathparameter to[querySongs].
Fixes #
Android
- Fixed empty
Uint8Listwhen using[queryArtwork]on Android 7. - #47 - Fixed null
albumIdwhen using Android 9 or below. - #53
Documentation #
- Updated
READMEdocumentation. New[queryAudiosFrom]section. - Updated
DEPRECATEDdocumentation.
Changes #
- Downgraded
KotlinandGradleversion. - #51
⚠ Important Changes #
@Deprecated
[albumId]from[AlbumModel].- Use
[id]instead.
- Use
2.4.2 [10.01.2021] #
2.4.1 [09.29.2021] #
Fixes #
Dart
- Fixed wrong type of
numOfSongsfrom[SongModel]. - #39
IOS
- Fixed wrong filter configuration when using
[queryWithFilters]. - Fixed crash when using any
'query'method with a nullsortType. - #43 - Fixed error with wrong
[MPMediaQuery]filter. - #38
Documentation #
- Updated
READMEdocumentation.
2.4.0 [09.28.2021] #
Features #
Android
- Added a better 'search' method to
[queryWithFilters], now the query uses 'contains' when 'querying'. - #35
Fixes #
IOS
- Fixed error with wrong
[MPMediaQuery]type and wrong value from[jpegData]. - #37
Documentation
- Updated broken
READMElinks. - #36
Documentation #
- Updated
READMEdocumentation.
2.3.1 [09.27.2021] #
Features #
Android/Web
- Added
[ignoreCase]to:[querySongs].[queryAlbums].[queryArtists].[queryPlaylists].[queryGenres].
Fixes #
Android
- Fixed
errorwhen trying to build usingAndroid. - #32 & #33 - Fixed
errorrelated to android song projection. - #31 - Fixed
'bug'when usingSongSortType.TITLE. This is now a'feature'and can be controlled using[ignoreCase]. - #29
Documentation #
- Updated
READMEdocumentation.
Changes #
Android
- Updated
[Kotlin]and[Dependencies]versions. - Moved from
[JCenter]to[MavenCentral].
2.3.0 [09.25.2021] #
Features #
Android/IOS/Web
- Added
[numOfSongs]to[PlaylistModel]and[GenreModel]. - Added
PlaylistandArtisttoArtworkType.
Android/IOS
- Added
qualitytoqueryArtwork.
Android
- Added
[isAudioBook],[Genre]and[GenreId]to[SongModel]. - Re-Added to
[SongModel]:[isAlarm].[isMusic].[isNotification].[isPodcast].[isRingtone].
Fixes #
Android
- Fixed wrong value returning from
[id]when using[ArtistModel]. - Fixed wrong value returning from
[id]when using[GenreModel]. - Fixed no value returning from
[queryAudiosFrom]when usingARTIST_ID.
Documentation #
- Updated
READMEdocumentation. - Updated
OnAudioQueryandOnAudioQueryExampledocumentation to support new[Flutter 2.5].
Changes #
- [Changed] wrong name
DATA_ADDEDtoDATE_ADDEDfor both[SongSortType]and[PlaylistSortType]. - #27
⚠ Important Changes #
Dart
- The parameter
argsfrom[queryWithFilters]is no longer required.
@Deprecated
[DEFAULT]from[SongSortType].[DEFAULT]from[PlaylistSortType].[DEFAULT]from[ArtistSortType].[DEFAULT]from[AlbumSortType].[DEFAULT]from[GenreSortType].[ARTIST_KEY]from[ArtistSortType].[ARTIST_NAME]from[ArtistSortType].[ALBUM_NAME]from[AlbumSortType].[GENRE_NAME]from[GenreSortType].[DATA_ADDED]from[SongSortType].[DATA_ADDED]from[PlaylistSortType].
2.2.0 [08.25.2021] #
2.1.2 [08.24.2021] #
2.1.1 [08.23.2021] #
2.1.0 [08.23.2021] #
Features #
on_audio_query
- The plugin now supports
[Web]. - The plugin now utilize
[Platform interface]package.
Web
- Added:
[querySongs].[queryAlbums].[queryArtists].[queryGenres].[queryAudiosFrom].[queryWithFilters].[queryArtwork].[queryDeviceInfo].
Documentation #
- Updated
on_audio_querydocumentation. - Updated
READMEdocumentation. - Updated
PLATFORMSdocumentation. - Added documentation to
Webplatform.
2.0.0-beta.3 [08.17.2021] - [GitHub Only] #
2.0.0-beta.2 [08.15.2021] #
Features #
IOS
- Now ALL methods will only
"query"if has permission toLibrary. - Added
[addToPlaylist].
Dart
- Added
[author]and[desc]arguments to[createPlaylist]. (IOS only)
Fixes #
IOS
- Fixed crash when using
[queryArtwork]. - Fixed wrong
[id]value returning from[PlaylistModel].
Documentation #
- Updated
READMEdocumentation.
2.0.0-beta.1 [08.14.2021] #
Features #
IOS
- Added
[queryArtwork].
Fixes #
Android
- Fixed
errorwhen building to[Android].
IOS
- Fixed wrong
[duration],[dateAdded]and[bookmark]values returning from[SongModel].
Documentation #
- Updated
on_audio_querydocumentation. - Updated
READMEdocumentation. - Updated
DEPRECATEDdocumentation. - Added documentation to
IOSplatform.
⚠ Important Changes #
@Deprecated
[artwork]from[QueryArtworkWidget].[deviceSDK]from[QueryArtworkWidget].[requestPermission]from[QueryArtworkWidget].
2.0.0-beta.0 [08.13.2021] #
Features #
on_audio_query
- Added a
DART ANALYZERtoPULL_REQUESTandPUSH.
Documentation #
- Updated
on_audio_querydocumentation. - Updated
READMEdocumentation. - Updated
DEPRECATEDdocumentation. - Created
PLATFORMSfile.
⚠ Important Changes #
Dart
- Now ALL methods has
Named Optionalarguments. - Changed
[queryArtworks]to[queryArtwork].
@Deprecated
[requestPermission]argument from ALL methods.[queryAudios].[artwork]from[SongModel].[path]from[querySongs].
2.0.0-alpha.1 [08.08.2021] - [GitHub Only] #
Features #
Dart
- Added
[artwork]to[PlaylistModel]as[Uint8List] - Added
[numOfTracks]to[PlaylistModel] - Added
[playlistAuthor]and[playlistDesc]parameter to[createPlaylist](IOS only) - Added
[OnModelFormatter]extension.- Added
[toSongModel]. - Added
[toAlbumModel]. - Added
[toPlaylistModel]. - Added
[toArtistModel]. - Added
[toGenreModel].
- Added
IOS
- Added
[queryWithFilters]method. - Added
[createPlaylist]method. - Added
[queryPlaylists]method. - Added
[queryAudiosFrom]method.
⚠ Important Changes #
Dart
- Now
[dateAdded]from[PlaylistModel]return a[int]. - Now
[dateModified]from[PlaylistModel]return a[int].
@Deprecated
[queryAudiosOnly][AudiosOnlyType][queryAudiosBy][AudiosByType]
Dev Changes #
Dart
Added checker to all[int]from[PlaylistModel].- Temporary
2.0.0-dev.1 [08.05.2021] - [Internal] #
Features #
IOS
- Added
[queryArtists]and[queryGenres].
⚠ Important Changes #
@Deprecated
- Removed
[artwork]from[ArtistModel]. - Removed
[artwork]from[GenreModel].
Dev Changes #
Dart
Added a checker to all int items from[ArtistModel].- Temporary
Added a checker to all int items from[GenreModel].- Temporary
2.0.0-dev.0 [08.02.2021] - [Internal] #
Features #
on_audio_query
- The plugin now supports
[IOS]. (Not 100%)
IOS
- Added
[querySongs]and[queryAlbums].
Dart
- Added
[model]to[DeviceModel].
Changes #
Dart
- Now
[sdk]are[version]. - Now
[deviceType]are[type].
⚠ Important Changes #
Dart
- Now
[artwork]from[SongModel]return a[Uint8list]. Now all[int]from[SongModel]can be[null].- Now
[artwork]from[AlbumModel]return a[Uint8list].
@Deprecated
[numOfSongsArtists]from[AlbumModel].[maxyear]from[AlbumModel].[minyear]from[AlbumModel].[release]from[DeviceModel].[code]from[DeviceModel].[year]from[SongModel].[is_alarm]from[SongModel].[is_music]from[SongModel].[is_notification]from[SongModel].[is_ringtone]from[SongModel].[is_podcast]from[SongModel].[file_parent]from[SongModel].[firstYear]from[AlbumModel].[lastYear]from[AlbumModel].
Dev Changes #
Dart
- Now
[queryDeviceInfo]will return Map instead of List. Added a checker to all int items from[SongModel].- Temporary.
Added a checker to all int items from[AlbumModel].- Temporary.
1.2.0 [07.30.2021] #
1.1.3+1 [07.19.2021] #
1.1.3 [07.18.2021] #
1.1.2 [07.07.2021] #
1.1.1 [06.23.2021] #
Features #
Dart/Android
- Added
[uri]to[SongModel]. - Added #10
Fixes #
Android
- Fixed
java.lang.Integer cannot be cast to java.lang.Longfrom[queryArtworks]. - #11
Documentation #
- Updated
READMEdocumentation. - Created
DEPRECATEDfile/history.
Changes #
Dart
- Changed from
[deviceInfo]to[deviceSDK]on[QueryArtworkWidget].
⚠ Important Changes #
Dart
- Deprecated
[deviceInfo]from[QueryArtworkWidget].
1.1.0 [06.03.2021] #
Features #
Dart/Android
- Added
[queryDeviceInfo]. - Added
[dateModified]to[SongModel]. - Added
[querySongsBy]and[SongsByType].
Fixes #
Android
- Fixed incompatibility with
[permission_handler]. - #3 - Thanks @mvanbeusekom
Dart
- Fixed wrong name. From
[dataAdded]to[dateAdded].
Documentation #
- Updated
READMEdocumentation. - Updated
[OnAudioQueryExample]to add new[queryDeviceInfo]and[QueryArtworkWidget]methods.
Changes #
Android
- Updated some
[Kotlin]dependencies. - Changed some
[Kotlin]methods.
⚠ Important Changes #
Dart
- Now
[getDeviceSDK],[getDeviceRelease]and[getDeviceCode]are part of[queryDeviceInfo]. - Now
[QueryArtworkWidget]support Android above and below 29/Q/10. - Now
[size],[albumId],[artistId],[dataAdded],[dataModified],[duration],[track]and[year]from[SongModel]will return[int].
1.0.8 [05.19.2021] #
Features #
Dart
- Added
[artworkClipBehavior],[keepOldArtwork],[repeat]and[scale]to[QueryArtworkWidget]. - Added comments to
[QueryArtworkWidget].
Fixes #
Android
- Fixed Now
[queryArtworks]will return null. - #6
Documentation #
- Updated
READMEdocumentation.
⚠ Important Changes #
Dart
- Now
[queryArtworks]return[Uint8List?].
1.0.7 [05.18.2021] #
Features #
Dart/Android
- Added
[queryFromFolder]. - Added
[queryAllPath]. - Added
[_display_name_wo_ext]([displayName]without extension) to[SongModel]. - Added #5 - Added
[file_extension](Only file extension) to[SongModel]. - Added
[file_parent](All the path before file) to[SongModel]. - Added
[Genre]to[queryAudiosFrom]. - Added
[ALBUM_ID],[ARTIST_ID]and[PLAYLIST_ID]to[AudiosFromType]. - Added #2
Documentation #
- Updated
READMEdocumentation.
Changes #
Dart/Android
- Now
[queryAudiosFrom]supports[name]and[id]. - Now
[albumId]from[AlbumModel]return a[int].
Android
- Now all
[Kotlin]checks will throw a[Exception]if value don't exist. - Updated some
[Kotlin]dependencies.
⚠ Important Changes #
Dart/Android
- Changed
[ALBUM],[ARTIST]and[PLAYLIST]to[ALBUM_NAME],[ARTIST_NAME]and[PLAYLIST_NAME]in[AudiosFromType].
1.0.6 [04.08.2021] #
1.0.5 [03.31.2021] #
Features #
Dart/Android
- Added
[queryAudiosOnly]. - Added
[queryWithFilters]. - Added
[AudiosOnlyType]and[WithFiltersType]. - Added
[SongsArgs],[AlbumsArgs],[PlaylistsArgs],[ArtistsArgs],[GenresArgs]. - Added
[EXTERNAL]and[INTERNAL]parameters for some query methods.
Documentation #
- Updated
READMEdocumentation.
Changes #
Dart/Android
- Now
[querySongs],[queryAlbums],[queryArtists],[queryPlaylists]and[queryGenres]have[UriType]as parameter.
Android
- Updated some
[Kotlin]dependencies.
1.0.2 [03.27.2021] #
Fixes #
Dart
- Fixed flutter example.
Android
- Fixed
[audiosFromPlaylist][Now this method is part of queryAudiosFrom] - Fixed
"count(*)"error from[addToPlaylist]. [Permission bug on Android 10 still happening]
Documentation #
- Updated
READMEdocumentation.
Changes #
Dart
- Now
[Id]in models return[int]instead[String].
⚠ Important Changes #
Dart/Android
- Removed
[ALBUM_KEY],[ARTIST_KEY]from all query audio methods.
Android
- Moved
[audiosFromPlaylist]to[queryAudiosFrom].
0.5.0 [03.23.2021] #
Features #
Dart/Android
- Changed some methods structure.
- Added
[moveItemTo]method to Playlist. - Added
[Size]and[Format]parameters to[queryArtwork]. - Added
[getDeviceSDK],[getDeviceRelease]and[getDeviceCode]. - Added
[retryRequest]parameter to[permissionsRequest].
Dart
- Added
[QueryArtworkWidget].
Fixes #
- Added parameter
[AudioId]to[addToPlaylist]and[removeFromPlaylist].
Documentation #
- Updated
READMEdocumentation. - Added more comments to
[Kotlin]and[Dart]code.
Changes #
- Now Playlist methods parameters request
[id]instead Name. - Now
[renamePlaylist]add more information ->[Date_Modified]. - Now when
[requestPermission]parameter is set to true or[permissionsRequest]method is called, both[READ]and[WRITE]is requested.
0.4.0 [03.18.2021] #
Features #
Dart/Android
- Changed some methods structure.
- Added
[renamePlaylist]. - Added separate option for sortType order
[ASC_OR_SMALLER]and[DESC_OR_GREATER]. - Added
[permissionsStatus]and[permissionsRequest].
Documentation #
- Updated
READMEdocumentation. - Added some comments to
[Kotlin]and[Dart]code.
Changes #
- Now
[createPlaylist],[removePlaylist],[addToPlaylist]and[removeFromPlaylist]return bool.
0.3.0 [03.16.2021] #
0.2.5 [03.11.2021] #
0.2.0 [03.10.2021] #
Features #
Dart/Android
- Added
[queryArtists],[queryPlaylists]and[queryGenres]. - Added
[ArtistSortType],[PlaylistsSortType]and[GenreSortType].
Android
- Now all methods use
Kotlin Coroutinesfor query in background, adding a better performance.
Documentation #
- Updated
READMEdocumentation. - Updated
pubspec.yaml. - Created
READMEtranslation section. - Created
READMEtranslation forpt-BR[Portuguese].