You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: Setup.md
+27-28Lines changed: 27 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This guide will walk through the setup process required in order to get the GitH
10
10
11
11
2. In terminal clone the repo using: `git clone https://github.com/<YourGithubName>/GitHawk.git`
12
12
13
-
## 2. Installing
13
+
## 2. Installing
14
14
15
15
```
16
16
cd GitHawk
@@ -19,7 +19,27 @@ bundle exec pod install
19
19
npm install
20
20
```
21
21
22
-
## 3. Setting up code-signing (With automatic code-signing)
22
+
## 3. Setting up OAuth for login
23
+
24
+
To be able to log in during development, you'll need a Client ID and Client Secret.
25
+
To get these, [register](https://github.com/settings/applications/new) a new OAuth application on GitHub.
26
+
27
+
### Registering
28
+
29
+
Here, you will need to fill in an Application name, Homepage URL and Authorization callback URL.
30
+
Make sure the Authorization callback URL is set to `freetime://`. The others can be filled in as you wish.
31
+
32
+
You'll be redirected to the application page where you can access your Client ID and Client Secret.
33
+
34
+
To add the Client ID and Client Secret to the App, follow these steps:
35
+
36
+
1. In Xcode, go to `Product` (in the Menu bar) > `Scheme` > `Manage Schemes...`
37
+
2. Select `Freetime-AppCenter` and click `Edit...`
38
+
3. Go to `Run` > `Arguments`
39
+
4. Add your Client ID (`GITHUB_CLIENT_ID` as key) and Client Secret (`GITHUB_CLIENT_SECRET`) to the Environment Variables.
40
+
41
+
42
+
## 4. Setting up code-signing (With automatic code-signing)
23
43
24
44
1. Open the Xcode workspace called: `Freetime.xcworkspace`
25
45
(`open Freetime.xcworkspace`)
@@ -28,7 +48,7 @@ npm install
28
48
**Setting up bundle and group ID’s**
29
49
- - - -
30
50
31
-
2. Open the projects settings .
51
+
2. Open the projects settings .
32
52
On the left there under Targets should be:
33
53
34
54
* Freetime
@@ -37,13 +57,13 @@ On the left there under Targets should be:
37
57
* FreetimeWatch Extension
38
58
39
59
3. Under each of these targets make sure your in the _General_ tab. **Change the team** to the team associated with your Apple Developer Account and switch the bundle ID’s like so:
0 commit comments