Skip to content

Commit a799421

Browse files
committed
fix: ios build warnings
1 parent dfa40de commit a799421

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ios/ExpoSpeechRecognitionException.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ language-not-supported
2626
The user agent does not support the language specified in the value of lang attribute of the SpeechRecognition object. The set of supported languages is browser-dependent, and from frontend code there is no way to programmatically determine what languages a user's browser supports for speech recognition.
2727
*/
2828

29-
internal class NilRecognizerException: Exception {
29+
internal final class NilRecognizerException: Exception {
3030
override var code: String {
3131
"audio-capture"
3232
}
@@ -36,7 +36,7 @@ internal class NilRecognizerException: Exception {
3636
}
3737
}
3838

39-
internal class PermissionException: Exception {
39+
internal final class PermissionException: Exception {
4040
override var code: String {
4141
"not-allowed"
4242
}
@@ -45,7 +45,7 @@ internal class PermissionException: Exception {
4545
}
4646
}
4747

48-
internal class NotAuthorizedException: Exception {
48+
internal final class NotAuthorizedException: Exception {
4949
override var code: String {
5050
"not-allowed"
5151
}
@@ -55,7 +55,7 @@ internal class NotAuthorizedException: Exception {
5555
}
5656
}
5757

58-
internal class NotPermittedToRecordException: Exception {
58+
internal final class NotPermittedToRecordException: Exception {
5959
override var code: String {
6060
"not-allowed"
6161
}
@@ -64,7 +64,7 @@ internal class NotPermittedToRecordException: Exception {
6464
}
6565
}
6666

67-
internal class InvalidAudioModeException: GenericException<String> {
67+
internal final class InvalidAudioModeException: GenericException<String> {
6868
override var code: String {
6969
"audio-capture"
7070
}
@@ -73,7 +73,7 @@ internal class InvalidAudioModeException: GenericException<String> {
7373
}
7474
}
7575

76-
internal class RecognizerUnavilableException: Exception {
76+
internal final class RecognizerUnavilableException: Exception {
7777
override var code: String {
7878
"service-not-allowed"
7979
}

0 commit comments

Comments
 (0)