Skip to content

Commit 8dbe38d

Browse files
update readme
1 parent 98cb1d6 commit 8dbe38d

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

Demo/PowerSyncExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
B6B3698A2C64F4B30033C307 /* Navigation.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B369892C64F4B30033C307 /* Navigation.swift */; };
4242
B6FFD5322D06DA8000EEE60F /* PowerSync in Frameworks */ = {isa = PBXBuildFile; productRef = B6FFD5312D06DA8000EEE60F /* PowerSync */; };
4343
BE2F26EC2DA54B2F0080F1AE /* SupabaseRemoteStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE2F26EB2DA54B2A0080F1AE /* SupabaseRemoteStorage.swift */; };
44+
BEE4708B2E3BBB2500140D11 /* Secrets.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEE4708A2E3BBB2500140D11 /* Secrets.swift */; };
4445
/* End PBXBuildFile section */
4546

4647
/* Begin PBXCopyFilesBuildPhase section */
@@ -108,6 +109,7 @@
108109
B6F4213D2BC42F5B0005D0D0 /* sqlite3.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = sqlite3.c; path = "../powersync-kotlin/core/build/interop/sqlite/sqlite3.c"; sourceTree = "<group>"; };
109110
B6F421402BC430B60005D0D0 /* sqlite3.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = sqlite3.h; path = "../powersync-kotlin/core/build/interop/sqlite/sqlite3.h"; sourceTree = "<group>"; };
110111
BE2F26EB2DA54B2A0080F1AE /* SupabaseRemoteStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SupabaseRemoteStorage.swift; sourceTree = "<group>"; };
112+
BEE4708A2E3BBB2500140D11 /* Secrets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Secrets.swift; sourceTree = "<group>"; };
111113
/* End PBXFileReference section */
112114

113115
/* Begin PBXFrameworksBuildPhase section */
@@ -151,6 +153,7 @@
151153
6A7315862B9854220004CB17 /* PowerSyncExample */ = {
152154
isa = PBXGroup;
153155
children = (
156+
BEE4708A2E3BBB2500140D11 /* Secrets.swift */,
154157
B65C4D6F2C60D58500176007 /* PowerSync */,
155158
B65C4D6E2C60D52E00176007 /* Components */,
156159
B65C4D6B2C60D36700176007 /* Screens */,
@@ -564,6 +567,7 @@
564567
6ABD78672B9F2B4800558A41 /* RootView.swift in Sources */,
565568
B66658612C62179E00159A81 /* ListView.swift in Sources */,
566569
6ABD78782B9F2D2800558A41 /* Schema.swift in Sources */,
570+
BEE4708B2E3BBB2500140D11 /* Secrets.swift in Sources */,
567571
B65C4D6D2C60D38B00176007 /* HomeScreen.swift in Sources */,
568572
6A7315882B9854220004CB17 /* PowerSyncExampleApp.swift in Sources */,
569573
B666585F2C62115300159A81 /* ListRow.swift in Sources */,
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Foundation
2+
3+
extension Secrets {
4+
static var powerSyncEndpoint: String {
5+
return "https://todo.powersync.com"
6+
}
7+
8+
static var supabaseURL: URL {
9+
return URL(string: "https://todo.supabase.co")!
10+
}
11+
12+
static var supabaseAnonKey: String {
13+
return "TODO"
14+
}
15+
16+
static var supabaseStorageBucket: String? {
17+
return nil
18+
}
19+
}

Demo/PowerSyncExample/_Secrets.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ protocol SecretsProvider {
1313
/// Devs should specify the actual secrets in a Git ignored file.
1414
extension SecretsProvider {
1515
static var powerSyncEndpoint: String {
16-
return "TODO"
16+
return "https://todo.powersync.com"
1717
}
1818

1919
static var supabaseURL: URL {
20-
return URL(string: "TODO")!
20+
return URL(string: "https://todo.supabase.co")!
2121
}
2222

2323
static var supabaseAnonKey: String {

Demo/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ 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+
2527
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`.
2628

2729
### Troubleshooting

0 commit comments

Comments
 (0)