Skip to content

Commit 0881afd

Browse files
committed
add running instructions
1 parent 4679d65 commit 0881afd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Examples/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Examples
2+
3+
This directory contains example applications demonstrating the usage of Supabase Swift SDK.
4+
5+
## Running the Examples App
6+
7+
1. Open the `Examples.xcodeproj` file in Xcode
8+
2. Select your target device or simulator
9+
3. Build and run the project (⌘R)
10+
11+
## Authentication Setup
12+
13+
### Google Sign-In Setup
14+
15+
To enable Google Sign-In in the examples app:
16+
17+
1. Create a project in the [Google Cloud Console](https://console.cloud.google.com/)
18+
2. Enable the Google Sign-In API
19+
3. Create OAuth 2.0 credentials for iOS
20+
4. Update the `Info.plist` file with your credentials:
21+
- Replace `{{ YOUR_IOS_CLIENT_ID }}` with your iOS client ID
22+
- Replace `{{ YOUR_SERVER_CLIENT_ID }}` with your server client ID
23+
- Replace `{{ DOT_REVERSED_IOS_CLIENT_ID }}` with your reversed client ID
24+
25+
### Facebook Sign-In Setup
26+
27+
To enable Facebook Sign-In in the examples app:
28+
29+
1. Create an app in the [Facebook Developers Console](https://developers.facebook.com/)
30+
2. Add iOS platform to your Facebook app
31+
3. Update the `Info.plist` file with your Facebook credentials:
32+
- Replace `{{ FACEBOOK APP ID }}` with your Facebook App ID
33+
- Replace `{{ FACEBOOK CLIENT TOKEN }}` with your Facebook Client Token

0 commit comments

Comments
 (0)