Skip to content

Commit 9bfcfb0

Browse files
committed
add running instructions
1 parent 4679d65 commit 9bfcfb0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Examples/README.md

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

0 commit comments

Comments
 (0)