Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit ca93113

Browse files
BrianLitwinrnystrom
authored andcommitted
reorder setup page (#2086)
1 parent 482ddf3 commit ca93113

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

Setup.md

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This guide will walk through the setup process required in order to get the GitH
1010

1111
2. In terminal clone the repo using: `git clone https://github.com/<YourGithubName>/GitHawk.git`
1212

13-
## 2. Installing
13+
## 2. Installing
1414

1515
```
1616
cd GitHawk
@@ -19,7 +19,27 @@ bundle exec pod install
1919
npm install
2020
```
2121

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)
2343

2444
1. Open the Xcode workspace called: `Freetime.xcworkspace`
2545
(`open Freetime.xcworkspace`)
@@ -28,7 +48,7 @@ npm install
2848
**Setting up bundle and group ID’s**
2949
- - - -
3050

31-
2. Open the projects settings ![](./Design/projectIcon.png).
51+
2. Open the projects settings ![](./Design/projectIcon.png).
3252
On the left there under Targets should be:
3353

3454
* Freetime
@@ -37,13 +57,13 @@ On the left there under Targets should be:
3757
* FreetimeWatch Extension
3858

3959
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:
40-
60+
4161
**Freetime**: *com.xxxx.freetime* ➡️
4262
*com.`<yourRegularBundleName>`.freetime*
43-
63+
4464
**FreetimeWatch**: *com.xxxx.freetime.watchkitapp* ➡️
4565
*com.`<yourRegularBundleName>`.freetime.watchkitapp*
46-
66+
4767
**FreetimeWatch Extension**: *com.xxxx.freetime.watchkitapp.watchkitextension* ➡️ *com.`<yourRegularBundleName>`.freetime.watchkitapp.watchkitextension*
4868

4969
4. Under the _Capabilities_ tab change the App Group ID’s like so (Does not apply to FreetimeTests):
@@ -52,7 +72,7 @@ On the left there under Targets should be:
5272
2. Create new group ID (Click plus in the bottom left) and name it *group.com.`<yourRegularBundleName>`.freetime*
5373

5474
> *Note: All group ID’s must be the same (This is what groups them!)*
55-
75+
5676
> Checkpoint: All errors should have disappeared (You should still not be able to build successfully though)
5777

5878

@@ -71,25 +91,4 @@ On the left there under Targets should be:
7191
> Checkpoint: At this point you should be able to successfully build the app (But not able to sign in)
7292
7393

74-
## 4. Setting up OAuth for login
75-
76-
To be able to log in during development, you'll need a Client ID and Client Secret.
77-
To get these, [register](https://github.com/settings/applications/new) a new OAuth application on GitHub.
78-
79-
### Registering
80-
81-
Here, you will need to fill in an Application name, Homepage URL and Authorization callback URL.
82-
Make sure the Authorization callback URL is set to `freetime://`. The others can be filled in as you wish.
83-
84-
You'll be redirected to the application page where you can access your Client ID and Client Secret.
85-
86-
To add the Client ID and Client Secret to the App, follow these steps:
87-
88-
1. In Xcode, go to `Product` (in the Menu bar) > `Scheme` > `Manage Schemes...`
89-
2. Select `Freetime-AppCenter` and click `Edit...`
90-
3. Go to `Run` > `Arguments`
91-
4. Add your Client ID (`GITHUB_CLIENT_ID` as key) and Client Secret (`GITHUB_CLIENT_SECRET`) to the Environment Variables.
92-
93-
9494
Build and Code away!
95-

0 commit comments

Comments
 (0)