ソースを参照

Add gitignore and xcconfig scaffolding for local OpenAI secrets.

Keep Secrets.xcconfig out of git while committing the shared build config and example template.

Co-authored-by: Cursor <cursoragent@cursor.com>
faiz ali 18 時間 前
親
コミット
568efd0295
3 ファイル変更、35 行追加、0 行削除
  1. 24 0
      .gitignore
  2. 6 0
      Config/Secrets.xcconfig.example
  3. 5 0
      Config/Shared.xcconfig

+ 24 - 0
.gitignore

@@ -0,0 +1,24 @@
+# Local secrets — never commit API keys
+Config/Secrets.xcconfig
+
+# macOS / Xcode
+.DS_Store
+xcuserdata/
+*.xcuserstate
+DerivedData/
+build/
+
+# Swift Package Manager
+.swiftpm/
+Package.resolved
+
+# Local overrides
+*.moved-aside
+*.pbxuser
+!default.pbxuser
+*.mode1v3
+!default.mode1v3
+*.mode2v3
+!default.mode2v3
+*.perspectivev3
+!default.perspectivev3

+ 6 - 0
Config/Secrets.xcconfig.example

@@ -0,0 +1,6 @@
+// Copy to Secrets.xcconfig (gitignored) and fill in values.
+// Prefer OPENAI_API_KEY_OBFUSCATED (base64 XOR with salt IndeedAIJobsPhase3).
+// See Services/OpenAI/SecretsProvider.swift for encode helper notes.
+
+OPENAI_API_KEY_OBFUSCATED =
+FEATURE_AI_INTERPRETATION_ENABLED = YES

+ 5 - 0
Config/Shared.xcconfig

@@ -0,0 +1,5 @@
+// Defaults — overridden by local Secrets.xcconfig when present.
+OPENAI_API_KEY_OBFUSCATED =
+FEATURE_AI_INTERPRETATION_ENABLED = YES
+
+#include? "Secrets.xcconfig"