audio_recorder icon indicating copy to clipboard operation
audio_recorder copied to clipboard

Feature/null safety

Open iuriegutu95 opened this issue 4 years ago • 6 comments

Add null safety + Wav support & v2 embedding.

iuriegutu95 avatar May 19 '21 05:05 iuriegutu95

Thanks for your contribution, i will take time to review it

ZaraclaJ avatar Jun 11 '21 11:06 ZaraclaJ

Any progress?

WiRight avatar Oct 01 '21 06:10 WiRight

@iuriegutu95 I tried your PR and got the build error:

/Applications/flutter/.pub-cache/git/audio_recorder-79ff1153d7e8047e3f764c6c6f8d16742ca58866/ios/Classes/SwiftAudioRecorderPlugin.swift:39:53: error: 'setCategory(_:with:)' has been renamed to 'setCategory(_:options:)'
                    try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayAndRecord, with: AVAudioSessionCategoryOptions.defaultToSpeaker)
                                                        ^~~~~~~~~~~                                      ~~~~
                                                        setCategory                                      options
    AVFAudio.AVAudioSession:13:15: note: 'setCategory(_:with:)' was obsoleted in Swift 4.2
        open func setCategory(_ category: AVAudioSession.Category, with options: AVAudioSession.CategoryOptions = []) throws

...
Could not build the application for the simulator.
Error launching application on iPhone 8.

tuanbs avatar Oct 20 '21 07:10 tuanbs

@iuriegutu95 I've just committed your new changes and see it works now. Thanks a lot. @ZaraclaJ Can you please merge his PR when you have chance? Thanks in advance.

tuanbs avatar Nov 12 '21 13:11 tuanbs

https://pub.dev/packages/audio_recorder_nullsafety

GauravCalidig avatar Jan 14 '22 06:01 GauravCalidig

https://pub.dev/packages/audio_recorder_nullsafety

I got some exceptions with the start and stop methods using this one.

tuanbs avatar Jan 15 '22 01:01 tuanbs