Skip to content

Commit 555ec99

Browse files
cleanup secrets. Remove duplication.
1 parent 8dbe38d commit 555ec99

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

Demo/PowerSyncExample/_Secrets.swift

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,5 @@ protocol SecretsProvider {
88
static var supabaseStorageBucket: String? { get }
99
}
1010

11-
/// A default implementation of [SecretsProvider].
12-
/// This implementation ensures the app will compile even if no actual secrets are provided.
13-
/// Devs should specify the actual secrets in a Git ignored file.
14-
extension SecretsProvider {
15-
static var powerSyncEndpoint: String {
16-
return "https://todo.powersync.com"
17-
}
18-
19-
static var supabaseURL: URL {
20-
return URL(string: "https://todo.supabase.co")!
21-
}
22-
23-
static var supabaseAnonKey: String {
24-
return "TODO"
25-
}
26-
27-
static var supabaseStorageBucket: String? {
28-
return nil
29-
}
30-
}
31-
32-
3311
// Default conforming type
3412
enum Secrets: SecretsProvider {}

Demo/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ Follow this guide to:
2222
cp Secrets.template Secrets.swift
2323
```
2424

25-
Add the `Secrets.swift` file to the project in XCode. Right click on the `PowerSyncExample` tree item then select `Add files to PowerSyncExample`.
26-
2725
3. You will need to enable `CasePathMacros` for SwiftUI Navigation. You can do this in settings, or just build the app and a dialog will be shown to enable `CasePathMacros`.
2826

2927
### Troubleshooting

0 commit comments

Comments
 (0)