Skip to content

Commit aeee4fa

Browse files
authored
Update README.md
1 parent 564fb18 commit aeee4fa

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,33 @@ After we link `react-native-oauth` to our application, we're ready to go. Androi
166166

167167
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).
168168

169+
Make sure you add the following to your `android/build.gradle` file:
170+
171+
```
172+
maven { url "https://jitpack.io" }
173+
```
174+
175+
For instance, an example `android/build.gradle` file would look like this:
176+
177+
```
178+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
179+
180+
buildscript {
181+
// ...
182+
}
183+
184+
allprojects {
185+
repositories {
186+
mavenLocal()
187+
jcenter()
188+
maven { url "https://jitpack.io" } // <~ ADD THIS LINE
189+
maven {
190+
url "$rootDir/../node_modules/react-native/android"
191+
}
192+
}
193+
}
194+
```
195+
169196
## Creating the manager
170197

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