From 52855a1e01e65cc27c4ae8a07bfb16d61fc3ce40 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Tue, 20 Jul 2021 19:59:33 -0400 Subject: [PATCH] Add a missing privacy message to the plist. Map new line to carriage return for the GS. --- ListenerApp/ContentView.swift | 2 +- ListenerApp/Info.plist | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ListenerApp/ContentView.swift b/ListenerApp/ContentView.swift index f5fd945..ab4cbbe 100644 --- a/ListenerApp/ContentView.swift +++ b/ListenerApp/ContentView.swift @@ -164,7 +164,7 @@ struct ContentView: View { if (commonChars < self.textHeard.count) { stringToSend = String(repeating: "\u{7f}", count: self.textHeard.count - commonChars) } - stringToSend.append(contentsOf: latestText.suffix(latestText.count - commonChars)) + stringToSend.append(contentsOf: latestText.suffix(latestText.count - commonChars).replacingOccurrences(of: "\n", with: "\r")) if (stringToSend.count > 0) { // TODO - Handle strings to send that are longer than 64K (doubt that would happen though) diff --git a/ListenerApp/Info.plist b/ListenerApp/Info.plist index f27fb3d..76bd8c4 100644 --- a/ListenerApp/Info.plist +++ b/ListenerApp/Info.plist @@ -17,9 +17,11 @@ CFBundleShortVersionString 1.0 CFBundleVersion - 87 + 93 LSRequiresIPhoneOS + NSMicrophoneUsageDescription + This app uses the microphone in order to do speech recognition NSSpeechRecognitionUsageDescription The app uses speech recognition to dictate text to your Apple IIgs UIApplicationSceneManifest