Skip to content

Commit

Permalink
Release of 2.4.1
Browse files Browse the repository at this point in the history
Fix wrong filter configuration when using `[queryWithFilters]`. (✔️)
Fix crash when using any `'query'` method with a null `sortType`. (✔️)
Fix wrong type of `numOfSongs` from `SongModel`. (✔️)
Fix `variable 'filter' used before being initialized` on `queryArtwork` (IOS). (✔️)
  • Loading branch information
LucJosin authored Sep 29, 2021
2 parents 8d560c4 + 0081609 commit e944991
Show file tree
Hide file tree
Showing 16 changed files with 81 additions and 66 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ NOTE: Feel free to help with readme translations
Add the following code to your `pubspec.yaml`:
```yaml
dependencies:
on_audio_query: ^2.3.1
on_audio_query: ^2.4.1
```
### Request Permission:
Expand Down
11 changes: 11 additions & 0 deletions on_audio_query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## [2.4.1] - [09.29.2021]
### Features
#### Dart
- **[Fixed]** wrong type of `numOfSongs` from `[SongModel]`. - [#39](https://github.com/LucasPJS/on_audio_query/issues/39)

### Fixes
#### IOS
- **[Fixed]** wrong filter configuration when using `[queryWithFilters]`.
- **[Fixed]** crash when using any `'query'` method with a null `sortType`. - [#43](https://github.com/LucasPJS/on_audio_query/issues/43)
- **[Fixed]** error with wrong `[MPMediaQuery]` filter. - [#38](https://github.com/LucasPJS/on_audio_query/issues/38)

## [2.4.0] - [09.28.2021]
### Features
#### Android
Expand Down
2 changes: 1 addition & 1 deletion on_audio_query/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ NOTE: Feel free to help with readme translations
Add the following code to your `pubspec.yaml`:
```yaml
dependencies:
on_audio_query: ^2.4.0
on_audio_query: ^2.4.1
```
### Request Permission:
Expand Down
2 changes: 1 addition & 1 deletion on_audio_query/README.pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ NOTE: Fique à vontade para ajudar nas traduções
Adicione o seguinte codigo para seu `pubspec.yaml`:
```yaml
dependencies:
on_audio_query: ^2.4.0
on_audio_query: ^2.4.1
```
#### Solicitar Permissões:
Expand Down
72 changes: 36 additions & 36 deletions on_audio_query/example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
596440AA5BA1F459D16E0596 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E88132D9499152AE0A0E5881 /* Pods_Runner.framework */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
989493D315B74F2AFE424774 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4607F5DB04D70223DDC7D055 /* Pods_Runner.framework */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -32,51 +32,51 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
14FEC34F283A7E0471A6B61A /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
2B12422879D9373EEE4718D3 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
5C9104DAB09F3D4679BB0B50 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
4607F5DB04D70223DDC7D055 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
81E9912A37232974795C6EC7 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E88132D9499152AE0A0E5881 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
BCC952A35FE829899F5F090C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
CD570501E150441F1BC7DC52 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
596440AA5BA1F459D16E0596 /* Pods_Runner.framework in Frameworks */,
989493D315B74F2AFE424774 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
2444B539E9B5E3776F4BF328 /* Frameworks */ = {
47B71ED6578BEB388DFE7ED6 /* Pods */ = {
isa = PBXGroup;
children = (
E88132D9499152AE0A0E5881 /* Pods_Runner.framework */,
CD570501E150441F1BC7DC52 /* Pods-Runner.debug.xcconfig */,
2B12422879D9373EEE4718D3 /* Pods-Runner.release.xcconfig */,
BCC952A35FE829899F5F090C /* Pods-Runner.profile.xcconfig */,
);
name = Frameworks;
path = Pods;
sourceTree = "<group>";
};
47B71ED6578BEB388DFE7ED6 /* Pods */ = {
8EEFE4E77484BB231F595483 /* Frameworks */ = {
isa = PBXGroup;
children = (
14FEC34F283A7E0471A6B61A /* Pods-Runner.debug.xcconfig */,
5C9104DAB09F3D4679BB0B50 /* Pods-Runner.release.xcconfig */,
81E9912A37232974795C6EC7 /* Pods-Runner.profile.xcconfig */,
4607F5DB04D70223DDC7D055 /* Pods_Runner.framework */,
);
path = Pods;
name = Frameworks;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
Expand All @@ -97,7 +97,7 @@
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
47B71ED6578BEB388DFE7ED6 /* Pods */,
2444B539E9B5E3776F4BF328 /* Frameworks */,
8EEFE4E77484BB231F595483 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -131,14 +131,14 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
0EEFB15AA1E948E858091C4F /* [CP] Check Pods Manifest.lock */,
517FEBA87C695F5021A7921E /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
9143F8F49D7A52C695CB8ED5 /* [CP] Embed Pods Frameworks */,
D407E0D4695FF494C001B1D3 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -197,7 +197,21 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
0EEFB15AA1E948E858091C4F /* [CP] Check Pods Manifest.lock */ = {
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Thin Binary";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
517FEBA87C695F5021A7921E /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -219,21 +233,21 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Thin Binary";
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
9143F8F49D7A52C695CB8ED5 /* [CP] Embed Pods Frameworks */ = {
D407E0D4695FF494C001B1D3 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -250,20 +264,6 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down
2 changes: 1 addition & 1 deletion on_audio_query/ios/Classes/query/OnAlbumsQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OnAlbumsQuery {

func queryAlbums() {
// The sortType, this method will never be will.
let sortType = args["sortType"] as! Int
let sortType = args["sortType"] as? Int ?? 0

// Choose the type(To match android side, let's call "cursor").
let cursor = MPMediaQuery.albums()
Expand Down
16 changes: 7 additions & 9 deletions on_audio_query/ios/Classes/query/OnArtworkQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ class OnArtworkQuery {

// (To match android side, let's call "cursor").
var cursor: MPMediaQuery?
var filter: MPMediaPropertyPredicate
// TODO: Add option to [Playlist] artwork.
var filter: MPMediaPropertyPredicate?
// If [uri] is 0: artwork from [Song]
// If [uri] is 1: artwork from [Album]
// If [uri] is 2: artwork from [Playlist]
// If [uri] is 3: artwork from [Genre]
// If [uri] is 3: artwork from [Artist]
switch uri {
case 0:
filter = MPMediaPropertyPredicate.init(value: id, forProperty: MPMediaItemPropertyPersistentID)
Expand All @@ -50,20 +49,20 @@ class OnArtworkQuery {
filter = MPMediaPropertyPredicate.init(value: id, forProperty: MPMediaItemPropertyAlbumPersistentID)
cursor = MPMediaQuery.albums()
case 2:
// TODO
filter = MPMediaPropertyPredicate.init(value: id, forProperty: MPMediaPlaylistPropertyPersistentID)
cursor = MPMediaQuery.playlists()
case 3:
filter = MPMediaPropertyPredicate.init(value: id, forProperty: MPMediaItemPropertyArtistPersistentID)
cursor = MPMediaQuery.artists()
default:
break
filter = nil
cursor = nil
}

// If [cursor] is "nil" or has no permission, just return to dart.
let hasPermission = SwiftOnAudioQueryPlugin().checkPermission()
if cursor != nil && hasPermission {
cursor?.addFilterPredicate(filter)
if cursor != nil && filter != nil && hasPermission {
cursor?.addFilterPredicate(filter!)

// This filter will avoid audios/songs outside phone library(cloud).
let cloudFilter = MPMediaPropertyPredicate.init(
Expand Down Expand Up @@ -97,9 +96,8 @@ class OnArtworkQuery {
}

// If [format] is 0: will be [JPEG]
// If [format] is 0: will be [PNG]
// If [format] is 1: will be [PNG]
if format == 0 {
// TODO: Add option to choose the [compressionQuality]
tempArtwork = tempItem?.artwork?.image(at: CGSize(width: size, height: size))?.jpegData(compressionQuality: fixedQuality)
} else {
// [PNG] format will return a high image quality.
Expand Down
2 changes: 1 addition & 1 deletion on_audio_query/ios/Classes/query/OnAudioQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OnAudioQuery {

func querySongs() {
// The sortType, this method will never be will.
let sortType = args["sortType"] as! Int
let sortType = args["sortType"] as? Int ?? 0

// Choose the type(To match android side, let's call "cursor").
let cursor = MPMediaQuery.songs()
Expand Down
16 changes: 8 additions & 8 deletions on_audio_query/ios/Classes/types/WithFiltersType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ func checkSongsArgs(args: Int, argsVal: String) -> MPMediaPropertyPredicate {
case 0:
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyTitle, comparisonType: .contains)
case 1:
print("[on_audio_warning] - IOS don't support [DISPLAY_NAME] type, will be used as [TITLE]")
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyTitle)
print("[on_audio_warning] - IOS don't support [DISPLAY_NAME] type. Will be used the [TITLE]")
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyTitle, comparisonType: .contains)
case 2:
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyAlbumTitle)
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyAlbumTitle, comparisonType: .contains)
case 3:
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyArtist)
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyArtist, comparisonType: .contains)
default:
break
}
Expand All @@ -22,9 +22,9 @@ func checkAlbumsArgs(args: Int, argsVal: String) -> MPMediaPropertyPredicate {
var filter: MPMediaPropertyPredicate? = nil
switch args {
case 0:
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyAlbumTitle)
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyAlbumTitle, comparisonType: .contains)
case 1:
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyAlbumArtist)
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyAlbumArtist, comparisonType: .contains)
default:
break
}
Expand All @@ -37,7 +37,7 @@ func checkArtistsArgs(args: Int, argsVal: String) -> MPMediaPropertyPredicate {
var filter: MPMediaPropertyPredicate? = nil
switch args {
case 0:
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyArtist)
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyArtist, comparisonType: .contains)
default:
break
}
Expand All @@ -48,7 +48,7 @@ func checkGenresArgs(args: Int, argsVal: String) -> MPMediaPropertyPredicate {
var filter: MPMediaPropertyPredicate? = nil
switch args {
case 0:
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyGenre)
filter = MPMediaPropertyPredicate.init(value: argsVal, forProperty: MPMediaItemPropertyGenre, comparisonType: .contains)
default:
break
}
Expand Down
2 changes: 1 addition & 1 deletion on_audio_query/ios/on_audio_query.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'on_audio_query'
s.version = '2.0.0'
s.version = '2.4.1'
s.summary = 'Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage.'
s.description = <<-DESC
A new flutter plugin project.
Expand Down
6 changes: 3 additions & 3 deletions on_audio_query/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: on_audio_query
description: Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage.
version: 2.4.0
version: 2.4.1
homepage: https://github.com/LucasPJS/on_audio_query/tree/main/on_audio_query
# pub.dev: https://pub.dev/packages/on_audio_query
# ========
Expand All @@ -14,8 +14,8 @@ environment:

dependencies:
# on_audio_query
on_audio_query_platform_interface: ^1.2.0
on_audio_query_web: ^1.2.0
on_audio_query_platform_interface: ^1.2.1
on_audio_query_web: ^1.2.1

# Flutter
flutter:
Expand Down
3 changes: 3 additions & 0 deletions on_audio_query_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.2.1 - [09.29.2021]
- See more [on_audio_query - CHANGELOG](https://github.com/LucasPJS/on_audio_query/blob/main/on_audio_query/CHANGELOG.md).

## 1.2.0 - [09.27.2021]
- See more [on_audio_query - CHANGELOG](https://github.com/LucasPJS/on_audio_query/blob/main/on_audio_query/CHANGELOG.md).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GenreModel {
String get genre => _info["name"];

///Return genre [numOfSongs]
String get numOfSongs => _info["num_of_songs"];
int get numOfSongs => _info["num_of_songs"];

/// Return a map with all [keys] and [values] from specific genre.
Map get getMap => _info;
Expand Down
2 changes: 1 addition & 1 deletion on_audio_query_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A common platform interface for the [on_audio_query] plugin.
homepage: https://github.com/LucasPJS/on_audio_query/tree/master/on_audio_query_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 1.2.0
version: 1.2.1

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
Loading

0 comments on commit e944991

Please sign in to comment.