From 2263796c2b44416071595a873969700bf9ae2974 Mon Sep 17 00:00:00 2001 From: Animesh Roy <35850688+animeshroydev@users.noreply.github.com> Date: Mon, 19 Nov 2018 07:29:30 +0530 Subject: [PATCH] Modified content of 'connect-to-firebase' (#22216) * Modified content of 'connect-to-firebase' * corrected many formatting issues --- .../firebase/connect-to-firebase/index.md | 42 ++++++++++--------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/guide/english/android-development/firebase/connect-to-firebase/index.md b/guide/english/android-development/firebase/connect-to-firebase/index.md index 569593d8ae..51be5a4492 100644 --- a/guide/english/android-development/firebase/connect-to-firebase/index.md +++ b/guide/english/android-development/firebase/connect-to-firebase/index.md @@ -2,40 +2,44 @@ title: connecting-to-firebase --- -# Prerequisites +## Prerequisites 1. The Latest Version of Android Studio +2. Device running Android 4.0 or newer -
-The easiest way to connect to Firebase is through the Firebase Assistant in Android Studio. +### Connect firebase using one of this two ways: +1. Connect using Firebase Assistant in Android Studio +2. Connect firebase [using the GUI](https://developer.android.com/studio/write/firebase). +3. Connect firebase manually + +The easiest way to connect to firebase is to use the firebase assistant. -# 1. Connecting using Firebase Assistant - -1. Create an account in the [Firebase Console](https://console.firebase.google.com). -Click _add project_ to add your Android Studio project to it. +#### Connecting using Firebase Assistant in Android Studio +1. Create an account in the [Firebase Console](https://console.firebase.google.com). + - Click add project to add your Android Studio project to it. 2. Install Google Repository -You can do this by adding the dependency into your project-level build.gradle file, as shown below: + - You can do this by adding the dependency into your project-level build.gradle file like this: ```java -allprojects{ +allprojects { repositories { - maven { - url "https://maven.google.com" // Google's Maven repository - } + maven { + url "https://maven.google.com" // Google's Maven repository } + } } ``` -Alternatively, you could do that [using the GUI](https://developer.android.com/studio/write/firebase). +#### Connect firebase [using the GUI](https://developer.android.com/studio/write/firebase). -3. Go to Tools > Firebase and select Connect to Firebase +1. Go to Tools > Firebase and select Connect to Firebase + +#### Connect to firebase [manually](https://firebase.google.com/docs/android/setup)) -If you wish to connect to Firebase manually, detailed instructions are available [here](https://firebase.google.com/docs/android/setup). -
Having connected your Android Studio project to Firebase, you can either -1. click on a product in the Firebase Assistant to get to the appropriate Google docs where you will be told how to proceed. -2. go to desired product in **Project Overview** in the Console and click on **Get Started**. -3. go to the [Firebase docs](https://www.firebase.com/docs/android/quickstart.html) to see how to setup individual products in your project. +1. Click on a product in the firebase assistant and get taken to the Google docs where you will be told how to proceed +2. Go to desired product in **Project Overview** in the Console and click on **Get Started** +3. Go to the [Firebase docs](https://www.firebase.com/docs/android/quickstart.html) to see how to setup individual products in your project Reading a combination of all three will enable you to setup the product, which includes adding suitable dependencies to your build.gradle file.