ysak-y / flutter_audio_capture

Package to capture audio stream buffer for flutter
MIT License
21 stars 26 forks source link

dependency were found, but they required a higher minimum deployment target #15

Open blacknight9 opened 1 year ago

blacknight9 commented 1 year ago

minimum deployment target is set to = 12.0. and still getting this message !

ysak-y commented 1 year ago

Hi, @blacknight9 !! Thank you for your feedback!! Could you please detail of the message? When did you get it? If it mentions about iOS, I wonder why target is 12.0 because this pod set it to 12.4.

https://github.com/ysak-y/flutter_audio_capture/blob/ec90734931acb187f2004508c41cdcc610f89b73/ios/flutter_audio_capture.podspec#L18

blacknight9 commented 1 year ago

in pub.dev it says : Capture the audio stream buffer through microphone for iOS/Android. Required OS version is iOS 12+ or Android 23+

ysak-y commented 1 year ago

Hi, I updated ios deployment version to 13+, could you please version 1.1.2 of this library? https://github.com/ysak-y/flutter_audio_capture/commit/17093fb90950bd4d22222900b5b83396ff06ab16

iatndiag commented 6 months ago

Gradle says: The plugin flutter_audio_capture requires a │ │ higher Android SDK version. │ │ Fix this issue by adding the following to the │ │ file │ │ C:\My_GitHub_Repository_3_for_tests\project \android\app\build.gradle: │ │ android { │ │ defaultConfig { │ │ minSdkVersion 21 │ │ } │ │ }

I have added these lines. Nothing changed. What's next? I can't install.

ysak-y commented 6 months ago

Thanks fod reporting. I'll update package later.

iatndiag commented 6 months ago

I think that the problem is not that with each version the minimum deployment target is reduced (which is good), but the reason is that I cannot install it. On the contrary, I have an API of 31,33,34. I just don’t know how to install a package when such errors occur. More precisely, the error appears when assembling the program. I don't have a commercial project. I'm writing a program for myself. Every time I encounter similar errors.

ysak-y commented 6 months ago

Ah, sorry. I realized what you are struggling with. But sorry, I'm not good at gradle. Actually I don't know how to solve it. My opinion is trying to set some kind of versions to minSdk will solve problem though...

iatndiag commented 6 months ago

I can't handle it. Then I'll have to go to the "Record" or "Flutter_sound" packages. But the sample I have works with a “buffer”. In those packages, I don’t know what to change to get the same format or Type. Nevertheless thank you.

iatndiag commented 6 months ago

I updated android studio from 2021 to 2023, use Graddle builder instead of IntelliJ, and everything worked with lines in android\app\build.graddle: defaultConfig { minSdkVersion 21 targetSdkVersion 31 ... except one (the app crashes):

java.lang.UnsupportedOperationException: Cannot create AudioRecord at android.media.AudioRecord$Builder.build(AudioRecord.java:982) e.t.c.

Is it a Permission Handler? I do not use it yet.

iatndiag commented 6 months ago

Great!!! It was a Permission Handler !!! Now the question is how to get the frequency in the status. And change the musical instrument from 6 string to 21/22 string?

iatndiag commented 6 months ago

Can you implement it under Windows? Or is it difficult? I'm just making a music application, it would be interesting to make this function for all systems (Linux, MacOS, Windows). It turned out that the tuner doesn’t care how many strings the instrument has. He sets everything up anyway. My application can already work under Windows, Android and MacOS. I checked. Everything is done in Flutter