Skip to content

Commit

Permalink
fix: address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-arshad-dev committed Feb 12, 2024
1 parent 046fec0 commit 6189314
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 7 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
7 changes: 0 additions & 7 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,6 @@ dependencies {
//Play In-App Review
api "com.google.android.play:review-ktx:$in_app_review"

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

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/java/org/openedx/core/config/AnalyticsSource.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ import com.google.gson.annotations.SerializedName
enum class AnalyticsSource {
@SerializedName("segment")
SEGMENT,

@SerializedName("none")
NONE,
}
17 changes: 17 additions & 0 deletions default_config/dev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ PROGRAM:
PROGRAM_URL: ''
PROGRAM_DETAIL_URL_TEMPLATE: ''

FIREBASE:
ENABLED: false
ANALYTICS_SOURCE: '' # segment | none
CLOUD_MESSAGING_ENABLED: false
PROJECT_ID: ""
APPLICATION_ID: ""
API_KEY: ""
GCM_SENDER_ID: ""

SEGMENT_IO:
ENABLED: false
SEGMENT_IO_WRITE_KEY: ''

BRAZE:
ENABLED: false
PUSH_NOTIFICATIONS_ENABLED: false

GOOGLE:
ENABLED: false
CLIENT_ID: ''
Expand Down
17 changes: 17 additions & 0 deletions default_config/prod/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ PROGRAM:
PROGRAM_URL: ''
PROGRAM_DETAIL_URL_TEMPLATE: ''

FIREBASE:
ENABLED: false
ANALYTICS_SOURCE: '' # segment | none
CLOUD_MESSAGING_ENABLED: false
PROJECT_ID: ""
APPLICATION_ID: ""
API_KEY: ""
GCM_SENDER_ID: ""

SEGMENT_IO:
ENABLED: false
SEGMENT_IO_WRITE_KEY: ''

BRAZE:
ENABLED: false
PUSH_NOTIFICATIONS_ENABLED: false

GOOGLE:
ENABLED: false
CLIENT_ID: ''
Expand Down
17 changes: 17 additions & 0 deletions default_config/stage/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ PROGRAM:
PROGRAM_URL: ''
PROGRAM_DETAIL_URL_TEMPLATE: ''

FIREBASE:
ENABLED: false
ANALYTICS_SOURCE: '' # segment | none
CLOUD_MESSAGING_ENABLED: false
PROJECT_ID: ""
APPLICATION_ID: ""
API_KEY: ""
GCM_SENDER_ID: ""

SEGMENT_IO:
ENABLED: false
SEGMENT_IO_WRITE_KEY: ''

BRAZE:
ENABLED: false
PUSH_NOTIFICATIONS_ENABLED: false

GOOGLE:
ENABLED: false
CLIENT_ID: ''
Expand Down

0 comments on commit 6189314

Please sign in to comment.