Skip to content

Commit 5939cce

Browse files
committed
fixes
1 parent 3785412 commit 5939cce

File tree

1 file changed

+20
-20
lines changed
  • src/connections/destinations/catalog/firebase

1 file changed

+20
-20
lines changed

src/connections/destinations/catalog/firebase/index.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,39 +115,39 @@ If you use Segment's React Native source library, you must explicitly bundle the
115115
<!-- LR Mar 2021: We didn't use the react-dest include here because Firebase needs the extra build.gradle step.-->
116116

117117
## Setting up Firebase with Analytics-Kotlin
118-
If you're using the [Analytics Kotlin library](/docs/connections/sources/catalog/libraries/mobile/kotlin-android), follow these steps to set up Firebase with Analytics-Kotlin:
118+
If you're using the [Analytics-Kotlin library](/docs/connections/sources/catalog/libraries/mobile/kotlin-android), follow these steps to set up Firebase with Analytics-Kotlin:
119119
1. In your top-level `build.gradle` file add these lines:
120120
```kotlin
121-
buildscript {
121+
buildscript {
122+
...
123+
repositories {
124+
google()
125+
}
126+
dependencies {
122127
...
123-
repositories {
124-
google()
125-
}
126-
dependencies {
127-
...
128-
classpath 'com.google.gms:google-services:4.3.5'
129-
}
128+
classpath 'com.google.gms:google-services:4.3.5'
130129
}
130+
}
131131
```
132132
2. In your app-module `build.gradle` file add these lines:
133133
```kotlin
134-
...
135-
plugins {
136-
id 'com.google.gms.google-services'
137-
}
134+
...
135+
plugins {
136+
id 'com.google.gms.google-services'
137+
}
138138

139-
dependencies {
140-
...
141-
implementation platform('com.google.firebase:firebase-bom:28.2.1')
142-
implementation 'com.google.firebase:firebase-analytics-ktx'
143-
}
139+
dependencies {
140+
...
141+
implementation platform('com.google.firebase:firebase-bom:28.2.1')
142+
implementation 'com.google.firebase:firebase-analytics-ktx'
143+
}
144144
```
145145
3. Copy the [FirebaseDestination.kt](https://github.com/segmentio/analytics-kotlin/blob/main/samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins/FirebaseDestination.kt) file into your project's codebase.
146146
4. Copy your `google-service.json` file to your app-module.
147147
5. Go to your project's codebase and add these lines where you intialize the analytics client:
148148
```kotlin
149-
val Firebase = FirebaseDestination()
150-
analytics.add(Firebase)
149+
val Firebase = FirebaseDestination()
150+
analytics.add(Firebase)
151151
```
152152
153153
## Identify

0 commit comments

Comments
 (0)