Skip to content

Commit 49dd185

Browse files
committed
Moved Androidsetup below iOS linking
1 parent f41fa8b commit 49dd185

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

README.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -102,27 +102,6 @@ When working on iOS 10, we'll need to enable _Keychain Sharing Entitlement_ in _
102102

103103
![](./resources/capabilities.png)
104104

105-
### Android setup
106-
107-
We need to handle two steps in the installation process:
108-
109-
* link `react-native-oauth` to our project (`react-native link react-native-oauth`)
110-
* Add the `maven { url "https://jitpack.io" }` to our `android/build.gradle` file under `allProjects`. For example:
111-
112-
```java
113-
allprojects {
114-
repositories {
115-
mavenLocal()
116-
jcenter()
117-
maven { url "https://jitpack.io" }
118-
maven {
119-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
120-
url "$rootDir/../node_modules/react-native/android"
121-
}
122-
}
123-
}
124-
```
125-
126105
## Handle deep linking loading
127106

128107
**Required step**
@@ -169,12 +148,6 @@ In addition, we'll need to set up the handlers within the iOS app. Add the follo
169148

170149
When our app loads up with a request that is coming back from OAuthManager _and_ matches the url pattern, OAuthManager will take over and handle the rest and storing the credentials for later use.
171150

172-
### Android setup
173-
174-
After we link `react-native-oauth` to our application, we're ready to go. Android integration is much simpler, thanks to the in-app browser ability for our apps. `react-native-oauth` handles this for you.
175-
176-
One note, *all* of the callback urls follow the scheme: `http://localhost/[provider_name]`. Make sure this is set as a configuration for each provider below (documented in the provider setup sections).
177-
178151
### Adding URL schemes
179152

180153
In order for our app to load through these callbacks, we need to tell our iOS app that we want to load them. In order to do that, we'll have to create some URL schemes to register our app. Some providers require specific schemes (mentioned later).
@@ -187,6 +160,12 @@ Let's add the appropriate one for our provider. For instance, to set up twitter,
187160

188161
![](./resources/url-schemes.png)
189162

163+
### Android setup
164+
165+
After we link `react-native-oauth` to our application, we're ready to go. Android integration is much simpler, thanks to the in-app browser ability for our apps. `react-native-oauth` handles this for you.
166+
167+
One note, *all* of the callback urls follow the scheme: `http://localhost/[provider_name]`. Make sure this is set as a configuration for each provider below (documented in the provider setup sections).
168+
190169
## Creating the manager
191170

192171
In our JS, we can create the manager by instantiating a new instance of it using the `new` method and passing it the name of our app:

0 commit comments

Comments
 (0)