rescomputer / res-ios

Res is real computer speech, talk with an AI that listens and can hold a conversation with you.
https://res.computer
38 stars 1 forks source link

🔑 Moving the API Key to xcconfig, .gitignoring, and open sourcing. #21

Open ricburton opened 5 months ago

ricburton commented 5 months ago

I got this wrong at the start. Need some help doing this correctly. May have to squash all previous work and make it in a fresh place.

`ric@Richards-MacBook-Pro her % cd her ric@Richards-MacBook-Pro her % ls Assets.xcassets HerAnimation.mp4 LaunchScreen.storyboard Utilities Components HerApp.swift MainView.swift Views Config.xcconfig Info.plist Managers whisp.png ric@Richards-MacBook-Pro her % open .gitignore The file /Users/ric/Desktop/Her/Her/.gitignore does not exist. ric@Richards-MacBook-Pro her % cd .. ric@Richards-MacBook-Pro her % cat .gitignore Config.xcconfig .DS_Store xcuserdata/% ric@Richards-MacBook-Pro her % cd her ric@Richards-MacBook-Pro her % ls Assets.xcassets HerAnimation.mp4 LaunchScreen.storyboard Utilities Components HerApp.swift MainView.swift Views Config.xcconfig Info.plist Managers whisp.png ric@Richards-MacBook-Pro her % cat Config.xcconfig // // Config.xcconfig // Her // // Created by Richard Burton on 05/03/2024. //

// Configuration settings file format documentation can be found at: // https://help.apple.com/xcode/#/dev745c5c974 ric@Richards-MacBook-Pro her %`

mikejonas commented 5 months ago

This is definitely a good idea. I don't know the best patterns for key management in a swift project, but can look into it if nobody else with more swift experience can take this task.

If you're primarily worried about your vapi api key, you might be able to reach out to vapi and have them reset your key. In more mature applications, they'll have a way for you to regenerate it in the dashboard ui, but they don't have that yet.