akofman / cordova-plugin-dbmeter

:microphone::mega: Cordova plugin to get decibels from the microphone
Apache License 2.0
35 stars 29 forks source link

Update DBMeter.swift #22

Open EYALIN opened 3 years ago

EYALIN commented 3 years ago

Swift support

JannikHv commented 3 years ago

@akofman Please merge this. Can't build for iOS currently.

EYALIN commented 3 years ago

@JannikHv in a meantime you can use the PR as your package. feel free to do so :-).

i can approve it's working. I'm using it.

JannikHv commented 3 years ago

@EYALIN I've actually tried but the app crashes with the following message:

⚡️  To Native ->  App addListener 111994681
To Native Cordova ->  DBMeter start DBMeter949412376 ["options": []]
CordovaPlugins/DBMeter.swift: 5: 22: Fatal error: Use of unimplemented initializer 'init()' for class 'CordovaPlugins.DBMeter'
2021-07-15 15:16:13.066107+0200 App[415:53873] CordovaPlugins/DBMeter.swift: 5: 22: Fatal error: Use of unimplemented initializer 'init()' for class 'CordovaPlugins.DBMeter'

I think #21 fixes that (currently building).