Skip to content

Commit

Permalink
feat: Segment SDK implementation and destinations (openedx#227)
Browse files Browse the repository at this point in the history
feat: Integration Segment Kotlin SDK

- Fetch segment required key from config.
- Create Analytics Manager for segment.
- Replace the bundle with the map for the analytics manager.
- Add Firebase destination to make a connection with the segment if Firebase config Analytics source is segment.
- Add Braze destination to make a connection with segment If firebase config Analytics source is `segment` and `Braze` is enabled.

docs: 
- https://segment.com/docs/connections/sources/catalog/libraries/mobile/kotlin-android/
- https://segment.com/docs/connections/sources/catalog/libraries/mobile/kotlin-android/destination-plugins/firebase-kotlin-android/
- https://github.com/braze-inc/braze-segment-kotlin

fixes: LEARNER-9827
  • Loading branch information
farhan-arshad-dev authored Feb 14, 2024
1 parent b771485 commit f4731df
Show file tree
Hide file tree
Showing 14 changed files with 326 additions and 223 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ dependencies {

implementation 'androidx.core:core-splashscreen:1.0.1'

// Segment Library
implementation "com.segment.analytics.kotlin:android:1.14.2"
// Segment's Firebase integration
implementation 'com.segment.analytics.kotlin.destinations:firebase:1.5.2'
// Braze SDK Integration
implementation "com.braze:braze-segment-kotlin:1.4.2"

androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
Expand Down
Loading

0 comments on commit f4731df

Please sign in to comment.