Skip to content

Commit bc53c44

Browse files
Return purchase flow to production flag
1 parent 7bafaf3 commit bc53c44

7 files changed

Lines changed: 19 additions & 6 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.stepic.droid.configuration.analytic
2+
3+
import org.stepic.droid.configuration.RemoteConfig
4+
import org.stepik.android.domain.base.analytic.UserProperty
5+
6+
class CoursePurchaseFlowProperty(purchaseFlow: String) : UserProperty {
7+
override val name: String =
8+
RemoteConfig.PREFIX + RemoteConfig.PURCHASE_FLOW_ANDROID
9+
10+
override val value: String =
11+
purchaseFlow
12+
}

app/src/main/java/org/stepic/droid/core/presenters/SplashPresenter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ constructor(
194194
analytic.reportUserProperty(NewHomeScreenEnabledUserProperty(firebaseRemoteConfig[RemoteConfig.IS_NEW_HOME_SCREEN_ENABLED].asBoolean()))
195195
analytic.reportUserProperty(PersonalizedOnboardingCourseListsUserProperty(firebaseRemoteConfig[RemoteConfig.PERSONALIZED_ONBOARDING_COURSE_LISTS].asString()))
196196
analytic.reportUserProperty(CourseRevenueAvailableUserProperty(firebaseRemoteConfig[RemoteConfig.IS_COURSE_REVENUE_AVAILABLE_ANDROID].asBoolean()))
197+
analytic.reportUserProperty(CoursePurchaseFlowProperty(firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID].asString()))
197198
}
198199

199200
private fun countNumberOfLaunches() {

app/src/main/java/org/stepik/android/domain/course/interactor/CourseInteractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ constructor(
5757

5858
private fun obtainCourseHeaderData(course: Course, promo: String? = null): Maybe<CourseHeaderData> {
5959
val currentFlow = CoursePurchaseFlow.valueOfWithFallback(
60-
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID_TEST]
60+
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID]
6161
.asString()
6262
.uppercase()
6363
)

app/src/main/java/org/stepik/android/domain/course/interactor/CourseStatsInteractor.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ constructor(
4848

4949
fun checkDeeplinkPromoCodeValidity(courseId: Long, promo: String): Single<Pair<DeeplinkPromoCode, PromoCodeSku>> {
5050
val currentFlow = CoursePurchaseFlow.valueOfWithFallback(
51-
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID_TEST]
51+
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID]
5252
.asString()
5353
.uppercase()
5454
)
@@ -232,7 +232,7 @@ constructor(
232232
private fun resolvePaidEnrollmentState(standardLightSku: LightSku?, promoLightSku: LightSku?): EnrollmentState =
233233
if (standardLightSku == null) {
234234
val currentFlow = CoursePurchaseFlow.valueOfWithFallback(
235-
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID_TEST]
235+
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID]
236236
.asString()
237237
.uppercase()
238238
)

app/src/main/java/org/stepik/android/domain/course_list/interactor/CourseListInteractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ constructor(
6868
sourceTypeComposition: SourceTypeComposition
6969
): Single<PagedList<CourseListItem.Data>> {
7070
val currentFlow = CoursePurchaseFlow.valueOfWithFallback(
71-
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID_TEST]
71+
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID]
7272
.asString()
7373
.uppercase()
7474
)

app/src/main/java/org/stepik/android/domain/lesson_demo/interactor/LessonDemoInteractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ constructor(
2828
) {
2929
fun getLessonDemoData(course: Course): Single<LessonDemoData> {
3030
val currentFlow = CoursePurchaseFlow.valueOfWithFallback(
31-
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID_TEST]
31+
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID]
3232
.asString()
3333
.uppercase()
3434
)

app/src/main/java/org/stepik/android/view/lesson_demo/ui/dialog/LessonDemoCompleteBottomSheetDialogFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class LessonDemoCompleteBottomSheetDialogFragment :
114114
override fun onAction(action: LessonDemoFeature.Action.ViewAction) {
115115
if (action is LessonDemoFeature.Action.ViewAction.BuyAction) {
116116
val currentFlow = CoursePurchaseFlow.valueOfWithFallback(
117-
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID_TEST]
117+
firebaseRemoteConfig[RemoteConfig.PURCHASE_FLOW_ANDROID]
118118
.asString()
119119
.uppercase()
120120
)

0 commit comments

Comments
 (0)