[skip ci] docs auth install

This commit is contained in:
ehesp
2019-05-01 13:34:07 +01:00
parent 1cdd784062
commit eab324734b
2 changed files with 52 additions and 4 deletions

View File

@@ -8,4 +8,36 @@ description: Manually integrate Authentication into your Android application.
> The following steps are only required if your environment does not have access to React Native
auto-linking.
## TODO
#### Add Authentication to Gradle Settings
**`android/settings.gradle`**:
```groovy
include ':@react-native-firebase_auth'
project(':@react-native-firebase_auth').projectDir = new File(rootProject.projectDir, './../node_modules/@react-native-firebase/auth/android')
```
#### Add Authentication to App Gradle Dependencies
**`android/app/build.gradle`**:
```groovy{4}
// ..
dependencies {
// ..
implementation project(path: ":@react-native-firebase_auth")
}
```
#### Add Authentication to Main Android Application:
**`android/app/src/main/java/**/MainApplication.java`**:
```java{2,8}
// ..
import io.invertase.firebase.auth.ReactNativeFirebaseAuthPackage;
// ..
protected List<ReactPackage> getPackages() {
return Arrays.asList(
new MainReactPackage(),
new ReactNativeFirebaseAuthPackage(),
// ..
```

View File

@@ -5,7 +5,23 @@ description: Manually integrate Authentication into your iOS application.
# iOS Setup
> The following steps are only required if your environment does not have access to React Native
auto-linking.
## Manual iOS Integration via CocoaPods
> The following steps are only required if your environment does not have access to React Native
auto-linking.
#### Add Analytics Pod
**`ios/Podfile`**:
```ruby{4}
// ..
target 'app' do
// ..
pod 'RNFBAuth', :path => '../node_modules/@react-native-firebase/auth/ios'
end
```
## Manual iOS Integration via Frameworks
*TODO*
## TODO