You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/firebase/index.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,39 +115,39 @@ If you use Segment's React Native source library, you must explicitly bundle the
115
115
<!-- LR Mar 2021: We didn't use the react-dest include here because Firebase needs the extra build.gradle step.-->
116
116
117
117
## Setting up Firebase with Analytics-Kotlin
118
-
If you're using the [AnalyticsKotlin 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:
119
119
1. In your top-level `build.gradle` file add these lines:
120
120
```kotlin
121
-
buildscript {
121
+
buildscript {
122
+
...
123
+
repositories {
124
+
google()
125
+
}
126
+
dependencies {
122
127
...
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'
130
129
}
130
+
}
131
131
```
132
132
2. In your app-module `build.gradle` file add these lines:
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.
146
146
4. Copy your `google-service.json` file to your app-module.
147
147
5. Go to your project's codebase and add these lines where you intialize the analytics client:
0 commit comments