Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit f6336e6

Browse files
authored
Update 2.8.0 (#114)
1 parent e8d881b commit f6336e6

File tree

116 files changed

+529
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+529
-197
lines changed

.github/workflows/dart-analyzer.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,36 @@ jobs:
1515
analyze:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 5
18+
env:
19+
melos-version: 3.0.1
1820
steps:
21+
# Setup
1922
- uses: actions/checkout@v2
20-
- uses: dart-lang/setup-dart@v1
23+
24+
# Setup flutter
25+
- uses: subosito/flutter-action@v2
2126
with:
22-
sdk: "2.18.0"
23-
- name: Install dependencies
24-
run: dart pub get
25-
- name: "Install flutter"
26-
run: ./.github/workflows/scripts/install-flutter.sh
27+
channel: "stable"
28+
29+
# Install dependencies
30+
- name: "Install dependencies"
31+
run: flutter pub get
32+
33+
# Install tools
2734
- name: "Install tools"
28-
run: ./.github/workflows/scripts/install-tools.sh
35+
run: |
36+
flutter config --no-analytics
37+
flutter pub global activate melos ${{env.melos-version}}
38+
39+
# Melos bootstrap
2940
- name: "Bootstrap workspace (Melos)"
3041
run: melos bootstrap
42+
43+
# Run dart format to ensure formatting is valid
44+
- name: "Run dart format"
45+
run: melos exec dart format . --fix
46+
47+
# Run dart analyzer
3148
- name: "Run Dart Analyze"
3249
uses: invertase/github-action-dart-analyzer@v1
3350
with:

.github/workflows/scripts/install-flutter.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/scripts/install-tools.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# on_audio_query
22
on_audio_query/example/assets/
33

4+
.fuse*
5+
46
.DS_Store
57
.dart_tool/
68

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages/on_audio_query/LICENSE

melos.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ repository: https://github.com/LucJosin/on_audio_query
33

44
packages:
55
- packages/*
6+
- packages/*/example
67

78
command:
89
bootstrap:
@@ -15,9 +16,11 @@ scripts:
1516
reset:
1617
run: melos clean && melos bootstrap
1718
description: Useful to give your workspace a 'fresh start'
19+
1820
analyze:
1921
exec: flutter analyze --no-fatal-infos
2022
description: Analyze code
23+
2124
format:
2225
run: melos exec dart format . --fix
2326
description: Run `dart format` for all packages.

packages/on_audio_query/CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
## [[2.7.0](https://github.com/LucJosin/on_audio_query/releases/tag/2.7.0)] - [29.03.2023]
1+
## [[2.8.0](https://github.com/LucJosin/on_audio_query/releases/tag/2.8.0)]
2+
3+
### Features
4+
5+
- **Added** `showDetailedLog`.
6+
7+
### Changes
8+
9+
- **Moved** `android` and `ios` into separated folders.
10+
- **Replaced** `/details` with `/src`.
11+
12+
### ⚠ Important Changes
13+
14+
#### Android
15+
16+
- **Updated** kotlin version from `1.4.32` to `1.6.10`. - [#110](https://github.com/LucJosin/on_audio_query/issues/110)
17+
- **Updated** kotlin coroutines version from `1.5.2-native-mt` to `1.6.4`.
18+
19+
## [[2.7.0](https://github.com/LucJosin/on_audio_query/releases/tag/2.7.0)] - [03.29.2023]
220

321
### Features
422

packages/on_audio_query/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
| `removeFromPlaylist` | `✔️` | `` | `` | <br>
4141
| `renamePlaylist` | `✔️` | `` | `` | <br>
4242
| `moveItemTo` | `✔️` | `` | `` | <br>
43+
| `checkAndRequest` | `✔️` | `✔️` | `` | <br>
4344
| `permissionsRequest` | `✔️` | `✔️` | `` | <br>
4445
| `permissionsStatus` | `✔️` | `✔️` | `` | <br>
4546
| `queryDeviceInfo` | `✔️` | `✔️` | `✔️` | <br>
@@ -55,7 +56,7 @@
5556
Add the following code to your `pubspec.yaml`:
5657
```yaml
5758
dependencies:
58-
on_audio_query: ^2.7.0
59+
on_audio_query: ^2.8.0
5960
```
6061
6162
### Request Permission:
@@ -81,12 +82,10 @@ To use this plugin add the following code to your [AndroidManifest.xml](https://
8182
To use this plugin add the following code to your [Info.plist](https://github.com/LucJosin/on_audio_query/blob/main/on_audio_query/example/ios/Runner/Info.plist)
8283
```plist
8384
<dict>
84-
...
8585
8686
<key>NSAppleMusicUsageDescription</key>
8787
<string>$(PROJECT_NAME) requires access to media library</string>
8888
89-
...
9089
</dict>
9190
```
9291

packages/on_audio_query/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

packages/on_audio_query/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 51 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
0EB3A8CE8DFAA141583B59EA /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34D03D2FF2E46D4B78A3FA34 /* Pods_Runner.framework */; };
10+
0454AA9BC1C6A74D29F0DC05 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 89EDBAA686FD6A0F3044D3BE /* Pods_Runner.framework */; };
1111
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1212
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1313
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
@@ -30,31 +30,31 @@
3030
/* End PBXCopyFilesBuildPhase section */
3131

3232
/* Begin PBXFileReference section */
33+
0E792F2A41600ECBFBB0ACDA /* 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>"; };
3334
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3435
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
35-
1E39639443800D34003F062F /* 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>"; };
36-
34D03D2FF2E46D4B78A3FA34 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3736
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
37+
3B7A1BC6F17ED8BDB08A32DE /* 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>"; };
3838
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
3939
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
40+
76E158E1888B20842AFB70C7 /* 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>"; };
4041
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
41-
7E98D618FE6E913AADBBD204 /* 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>"; };
42+
89EDBAA686FD6A0F3044D3BE /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4243
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
4344
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
4445
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
4546
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
4647
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4748
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4849
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
49-
B9350E61AF8354398C8217DB /* 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>"; };
5050
/* End PBXFileReference section */
5151

5252
/* Begin PBXFrameworksBuildPhase section */
5353
97C146EB1CF9000F007C117D /* Frameworks */ = {
5454
isa = PBXFrameworksBuildPhase;
5555
buildActionMask = 2147483647;
5656
files = (
57-
0EB3A8CE8DFAA141583B59EA /* Pods_Runner.framework in Frameworks */,
57+
0454AA9BC1C6A74D29F0DC05 /* Pods_Runner.framework in Frameworks */,
5858
);
5959
runOnlyForDeploymentPostprocessing = 0;
6060
};
@@ -64,21 +64,13 @@
6464
47B71ED6578BEB388DFE7ED6 /* Pods */ = {
6565
isa = PBXGroup;
6666
children = (
67-
1E39639443800D34003F062F /* Pods-Runner.debug.xcconfig */,
68-
B9350E61AF8354398C8217DB /* Pods-Runner.release.xcconfig */,
69-
7E98D618FE6E913AADBBD204 /* Pods-Runner.profile.xcconfig */,
67+
0E792F2A41600ECBFBB0ACDA /* Pods-Runner.debug.xcconfig */,
68+
3B7A1BC6F17ED8BDB08A32DE /* Pods-Runner.release.xcconfig */,
69+
76E158E1888B20842AFB70C7 /* Pods-Runner.profile.xcconfig */,
7070
);
7171
path = Pods;
7272
sourceTree = "<group>";
7373
};
74-
56D33CC56AEBAD90F426E722 /* Frameworks */ = {
75-
isa = PBXGroup;
76-
children = (
77-
34D03D2FF2E46D4B78A3FA34 /* Pods_Runner.framework */,
78-
);
79-
name = Frameworks;
80-
sourceTree = "<group>";
81-
};
8274
9740EEB11CF90186004384FC /* Flutter */ = {
8375
isa = PBXGroup;
8476
children = (
@@ -97,7 +89,7 @@
9789
97C146F01CF9000F007C117D /* Runner */,
9890
97C146EF1CF9000F007C117D /* Products */,
9991
47B71ED6578BEB388DFE7ED6 /* Pods */,
100-
56D33CC56AEBAD90F426E722 /* Frameworks */,
92+
F3BDBD7B8197D374D9E11050 /* Frameworks */,
10193
);
10294
sourceTree = "<group>";
10395
};
@@ -124,21 +116,29 @@
124116
path = Runner;
125117
sourceTree = "<group>";
126118
};
119+
F3BDBD7B8197D374D9E11050 /* Frameworks */ = {
120+
isa = PBXGroup;
121+
children = (
122+
89EDBAA686FD6A0F3044D3BE /* Pods_Runner.framework */,
123+
);
124+
name = Frameworks;
125+
sourceTree = "<group>";
126+
};
127127
/* End PBXGroup section */
128128

129129
/* Begin PBXNativeTarget section */
130130
97C146ED1CF9000F007C117D /* Runner */ = {
131131
isa = PBXNativeTarget;
132132
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
133133
buildPhases = (
134-
86C1852AF066C3D12FA40736 /* [CP] Check Pods Manifest.lock */,
134+
9801508057E29DB85D6FE897 /* [CP] Check Pods Manifest.lock */,
135135
9740EEB61CF901F6004384FC /* Run Script */,
136136
97C146EA1CF9000F007C117D /* Sources */,
137137
97C146EB1CF9000F007C117D /* Frameworks */,
138138
97C146EC1CF9000F007C117D /* Resources */,
139139
9705A1C41CF9048500538489 /* Embed Frameworks */,
140140
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
141-
9099D3364DFEDF1A637FD9DD /* [CP] Embed Pods Frameworks */,
141+
25DEC95C3A6807E8090BAA98 /* [CP] Embed Pods Frameworks */,
142142
);
143143
buildRules = (
144144
);
@@ -155,7 +155,7 @@
155155
97C146E61CF9000F007C117D /* Project object */ = {
156156
isa = PBXProject;
157157
attributes = {
158-
LastUpgradeCheck = 1020;
158+
LastUpgradeCheck = 1300;
159159
ORGANIZATIONNAME = "";
160160
TargetAttributes = {
161161
97C146ED1CF9000F007C117D = {
@@ -197,72 +197,74 @@
197197
/* End PBXResourcesBuildPhase section */
198198

199199
/* Begin PBXShellScriptBuildPhase section */
200-
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
200+
25DEC95C3A6807E8090BAA98 /* [CP] Embed Pods Frameworks */ = {
201201
isa = PBXShellScriptBuildPhase;
202202
buildActionMask = 2147483647;
203203
files = (
204204
);
205-
inputPaths = (
205+
inputFileListPaths = (
206+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
206207
);
207-
name = "Thin Binary";
208-
outputPaths = (
208+
name = "[CP] Embed Pods Frameworks";
209+
outputFileListPaths = (
210+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
209211
);
210212
runOnlyForDeploymentPostprocessing = 0;
211213
shellPath = /bin/sh;
212-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
214+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
215+
showEnvVarsInLog = 0;
213216
};
214-
86C1852AF066C3D12FA40736 /* [CP] Check Pods Manifest.lock */ = {
217+
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
215218
isa = PBXShellScriptBuildPhase;
219+
alwaysOutOfDate = 1;
216220
buildActionMask = 2147483647;
217221
files = (
218222
);
219-
inputFileListPaths = (
220-
);
221223
inputPaths = (
222-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
223-
"${PODS_ROOT}/Manifest.lock",
224-
);
225-
name = "[CP] Check Pods Manifest.lock";
226-
outputFileListPaths = (
227224
);
225+
name = "Thin Binary";
228226
outputPaths = (
229-
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
230227
);
231228
runOnlyForDeploymentPostprocessing = 0;
232229
shellPath = /bin/sh;
233-
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";
234-
showEnvVarsInLog = 0;
230+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
235231
};
236-
9099D3364DFEDF1A637FD9DD /* [CP] Embed Pods Frameworks */ = {
232+
9740EEB61CF901F6004384FC /* Run Script */ = {
237233
isa = PBXShellScriptBuildPhase;
234+
alwaysOutOfDate = 1;
238235
buildActionMask = 2147483647;
239236
files = (
240237
);
241-
inputFileListPaths = (
242-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
238+
inputPaths = (
243239
);
244-
name = "[CP] Embed Pods Frameworks";
245-
outputFileListPaths = (
246-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
240+
name = "Run Script";
241+
outputPaths = (
247242
);
248243
runOnlyForDeploymentPostprocessing = 0;
249244
shellPath = /bin/sh;
250-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
251-
showEnvVarsInLog = 0;
245+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
252246
};
253-
9740EEB61CF901F6004384FC /* Run Script */ = {
247+
9801508057E29DB85D6FE897 /* [CP] Check Pods Manifest.lock */ = {
254248
isa = PBXShellScriptBuildPhase;
255249
buildActionMask = 2147483647;
256250
files = (
257251
);
252+
inputFileListPaths = (
253+
);
258254
inputPaths = (
255+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
256+
"${PODS_ROOT}/Manifest.lock",
257+
);
258+
name = "[CP] Check Pods Manifest.lock";
259+
outputFileListPaths = (
259260
);
260-
name = "Run Script";
261261
outputPaths = (
262+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
262263
);
263264
runOnlyForDeploymentPostprocessing = 0;
264265
shellPath = /bin/sh;
265-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
266+
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";
267+
showEnvVarsInLog = 0;
266268
};
267269
/* End PBXShellScriptBuildPhase section */
268270

0 commit comments

Comments
 (0)