From 0c5a53aa9526a6389ae107b35e9efd74d56f0d14 Mon Sep 17 00:00:00 2001 From: Sanjarbek17 Date: Sun, 13 Oct 2024 13:27:31 +0500 Subject: [PATCH 1/6] anroid namespace added, version 1.8 --- packages/on_audio_query_android/android/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/on_audio_query_android/android/build.gradle b/packages/on_audio_query_android/android/build.gradle index a539751..d7ef158 100644 --- a/packages/on_audio_query_android/android/build.gradle +++ b/packages/on_audio_query_android/android/build.gradle @@ -27,12 +27,23 @@ apply plugin: 'kotlin-android' android { compileSdkVersion 33 + namespace 'com.lucasjosino.on_audio_query' + sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { minSdkVersion 16 } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_1_8 + } } dependencies { From 71203f8efe48d59f93f78bae6bd3948654e718a5 Mon Sep 17 00:00:00 2001 From: Sanjarbek17 Date: Sun, 13 Oct 2024 13:55:37 +0500 Subject: [PATCH 2/6] namespace added, jave 1.8 version --- packages/on_audio_query/pubspec.yaml | 2 +- packages/on_audio_query_android/CHANGELOG.md | 5 +++++ packages/on_audio_query_android/pubspec.yaml | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/on_audio_query/pubspec.yaml b/packages/on_audio_query/pubspec.yaml index 1bbe969..5d0542c 100644 --- a/packages/on_audio_query/pubspec.yaml +++ b/packages/on_audio_query/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: on_audio_query_platform_interface: ^1.7.0 on_audio_query_web: ^1.6.0 on_audio_query_ios: ^1.1.0 - on_audio_query_android: ^1.1.0 + on_audio_query_android_v1_8: ^1.1.1 # Flutter flutter: diff --git a/packages/on_audio_query_android/CHANGELOG.md b/packages/on_audio_query_android/CHANGELOG.md index 106912b..85a0cd5 100644 --- a/packages/on_audio_query_android/CHANGELOG.md +++ b/packages/on_audio_query_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 + +- Fixed some issues. Namespaces and java version. + ## 1.1.0 - See more [on_audio_query - CHANGELOG](https://github.com/LucJosin/on_audio_query/blob/main/on_audio_query/CHANGELOG.md). @@ -13,3 +17,4 @@ ## 1.0.0-prerelease.0 - [06.20.2022] - See more [on_audio_query - CHANGELOG](https://github.com/LucJosin/on_audio_query/blob/main/on_audio_query/CHANGELOG.md). + diff --git a/packages/on_audio_query_android/pubspec.yaml b/packages/on_audio_query_android/pubspec.yaml index 1b6d899..81162fd 100644 --- a/packages/on_audio_query_android/pubspec.yaml +++ b/packages/on_audio_query_android/pubspec.yaml @@ -3,13 +3,12 @@ # github: https://github.com/LucJosin # website: https://www.lucasjosino.com/ # ======== -name: on_audio_query_android +name: on_audio_query_android_v1_8 description: Android implementation of the on_audio_query plugin. -version: 1.1.0 -homepage: https://github.com/LucJosin/on_audio_query/tree/main/packages/on_audio_query_android +version: 1.1.1 +homepage: https://github.com/Sanjarbek17/on_audio_query/tree/main/packages/on_audio_query_android # pub.dev: https://pub.dev/packages/on_audio_query # pub.dev (Android): https://pub.dev/packages/on_audio_query_android - environment: sdk: ">=2.17.0 <4.0.0" flutter: ">=2.5.0" From 419c6728bf962da3b7e813589e2c4496a8ecf8c0 Mon Sep 17 00:00:00 2001 From: Sanjarbek17 Date: Sun, 13 Oct 2024 14:25:27 +0500 Subject: [PATCH 3/6] forked --- packages/on_audio_query/CHANGELOG.md | 6 ++++++ packages/on_audio_query/README.md | 4 +++- packages/on_audio_query/pubspec.yaml | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/on_audio_query/CHANGELOG.md b/packages/on_audio_query/CHANGELOG.md index dfe7d6a..8af695d 100644 --- a/packages/on_audio_query/CHANGELOG.md +++ b/packages/on_audio_query/CHANGELOG.md @@ -1,3 +1,9 @@ +## [[2.9.1]] + +## Fixes + +- **Fixed** namespace and java version. - [#154](https://github.com/LucJosin/on_audio_query/issues/154) + ## [[2.9.0](https://github.com/LucJosin/on_audio_query/releases/tag/2.9.0)] ### Features diff --git a/packages/on_audio_query/README.md b/packages/on_audio_query/README.md index 34045ab..245243a 100644 --- a/packages/on_audio_query/README.md +++ b/packages/on_audio_query/README.md @@ -1,10 +1,12 @@
-# on_audio_query +# on_audio_query_forked [![Pub.dev](https://img.shields.io/pub/v/on_audio_query?color=9cf&label=Pub.dev&style=flat-square)](https://pub.dev/packages/on_audio_query) [![Platforms](https://img.shields.io/badge/Platforms-Android%20%7C%20IOS%20%7C%20Web-9cf?&style=flat-square)]() [![Languages](https://img.shields.io/badge/Languages-Dart%20%7C%20Kotlin%20%7C%20Swift-9cf?&style=flat-square)]() +This is not an official plugin! This is a fork of the original plugin [flutter_audio_query](https://pub.dev/packages/flutter_audio_query) with some improvements and new features.
+ [Flutter](https://flutter.dev/) Plugin used to query audios/songs 🎶 infos [title, artist, album, etc..] from device storage.
**Any problem? [Issues](https://github.com/LucJosin/on_audio_query/issues)**
diff --git a/packages/on_audio_query/pubspec.yaml b/packages/on_audio_query/pubspec.yaml index 5d0542c..586a88b 100644 --- a/packages/on_audio_query/pubspec.yaml +++ b/packages/on_audio_query/pubspec.yaml @@ -3,10 +3,10 @@ # github: https://github.com/LucJosin # website: https://www.lucasjosino.com/ # ======== -name: on_audio_query -description: Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage. +name: on_audio_query_forked +description: Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage. This is not original plugin, this is a forked version. version: 2.9.0 -homepage: https://github.com/LucJosin/on_audio_query/tree/main/packages/on_audio_query +homepage: https://github.com/Sanjarbek17/on_audio_query/tree/main/packages/on_audio_query issue_tracker: https://github.com/LucJosin/on_audio_query/issues # pub.dev: https://pub.dev/packages/on_audio_query topics: From 65cf8aa6db086248e1d42431a466efd34e856897 Mon Sep 17 00:00:00 2001 From: Sanjarbek17 Date: Sun, 13 Oct 2024 14:26:21 +0500 Subject: [PATCH 4/6] minor fix --- packages/on_audio_query/pubspec.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/on_audio_query/pubspec.yaml b/packages/on_audio_query/pubspec.yaml index 586a88b..876d5dc 100644 --- a/packages/on_audio_query/pubspec.yaml +++ b/packages/on_audio_query/pubspec.yaml @@ -15,8 +15,6 @@ topics: - audioquery - on-audio-query - storage - - mediastore - - mpmediaquery environment: sdk: ">=2.17.0 <4.0.0" From 113111b22a0d1299a721fd489c86238a30b5135f Mon Sep 17 00:00:00 2001 From: Sanjarbek17 Date: Sun, 13 Oct 2024 14:39:19 +0500 Subject: [PATCH 5/6] name changed --- melos.yaml | 2 +- packages/on_audio_query/example/android/app/build.gradle | 2 +- packages/on_audio_query/example/android/build.gradle | 2 +- packages/on_audio_query/example/lib/main.dart | 2 +- packages/on_audio_query/example/pubspec.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/melos.yaml b/melos.yaml index 61640ab..dfe186a 100644 --- a/melos.yaml +++ b/melos.yaml @@ -1,5 +1,5 @@ name: on_audio_query -repository: https://github.com/LucJosin/on_audio_query +repository: https://github.com/Sanjarbek17/on_audio_query packages: - packages/* diff --git a/packages/on_audio_query/example/android/app/build.gradle b/packages/on_audio_query/example/android/app/build.gradle index 5339e76..8c67972 100644 --- a/packages/on_audio_query/example/android/app/build.gradle +++ b/packages/on_audio_query/example/android/app/build.gradle @@ -35,7 +35,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.lucasjosino.on_audio_query_example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/on_audio_query/example/android/build.gradle b/packages/on_audio_query/example/android/build.gradle index 319ffbb..aa294e0 100644 --- a/packages/on_audio_query/example/android/build.gradle +++ b/packages/on_audio_query/example/android/build.gradle @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/packages/on_audio_query/example/lib/main.dart b/packages/on_audio_query/example/lib/main.dart index 22247ae..11b5f69 100644 --- a/packages/on_audio_query/example/lib/main.dart +++ b/packages/on_audio_query/example/lib/main.dart @@ -13,7 +13,7 @@ Copyright: © 2021, Lucas Josino. All rights reserved. */ import 'package:flutter/material.dart'; -import 'package:on_audio_query/on_audio_query.dart'; +import 'package:on_audio_query_forked/on_audio_query.dart'; void main() { runApp( diff --git a/packages/on_audio_query/example/pubspec.yaml b/packages/on_audio_query/example/pubspec.yaml index 9576001..ac45d8d 100644 --- a/packages/on_audio_query/example/pubspec.yaml +++ b/packages/on_audio_query/example/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: flutter: sdk: flutter - on_audio_query: + on_audio_query_forked: # When depending on this package from a real application you should use: # on_audio_query: ^x.y.z # See https://dart.dev/tools/pub/dependencies#version-constraints From f5f6ceefc41f4ff16bb8b5493046d3cfd48a073c Mon Sep 17 00:00:00 2001 From: Sanjarbek17 Date: Sun, 13 Oct 2024 14:47:29 +0500 Subject: [PATCH 6/6] new version --- packages/on_audio_query/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/on_audio_query/pubspec.yaml b/packages/on_audio_query/pubspec.yaml index 876d5dc..6a8b4c9 100644 --- a/packages/on_audio_query/pubspec.yaml +++ b/packages/on_audio_query/pubspec.yaml @@ -5,7 +5,7 @@ # ======== name: on_audio_query_forked description: Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage. This is not original plugin, this is a forked version. -version: 2.9.0 +version: 2.9.1 homepage: https://github.com/Sanjarbek17/on_audio_query/tree/main/packages/on_audio_query issue_tracker: https://github.com/LucJosin/on_audio_query/issues # pub.dev: https://pub.dev/packages/on_audio_query