-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #900 from StepicOrg/release/1.195
Release/1.195
- Loading branch information
Showing
51 changed files
with
1,275 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/stepic/droid/configuration/analytic/AdaptiveBackendUrlUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class AdaptiveBackendUrlUserProperty(adaptiveBackendUrl: String) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.ADAPTIVE_BACKEND_URL | ||
|
||
override val value: String = | ||
adaptiveBackendUrl | ||
} |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/stepic/droid/configuration/analytic/AdaptiveCoursesUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class AdaptiveCoursesUserProperty(adaptiveCourses: String) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.ADAPTIVE_COURSES | ||
|
||
override val value: String = | ||
adaptiveCourses | ||
} |
12 changes: 12 additions & 0 deletions
12
...c/main/java/org/stepic/droid/configuration/analytic/CourseRevenueAvailableUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class CourseRevenueAvailableUserProperty(isCourseRevenueAvailable: Boolean) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.IS_COURSE_REVENUE_AVAILABLE_ANDROID | ||
|
||
override val value: Boolean = | ||
isCourseRevenueAvailable | ||
} |
12 changes: 12 additions & 0 deletions
12
.../main/java/org/stepic/droid/configuration/analytic/LocalSubmissionsEnabledUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class LocalSubmissionsEnabledUserProperty(isLocalSubmissionsEnabled: Boolean) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.IS_LOCAL_SUBMISSIONS_ENABLED | ||
|
||
override val value: Boolean = | ||
isLocalSubmissionsEnabled | ||
} |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/stepic/droid/configuration/analytic/MinDelayRateDialogUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class MinDelayRateDialogUserProperty(delay: Long) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.MIN_DELAY_RATE_DIALOG_SEC | ||
|
||
override val value: Long = | ||
delay | ||
} |
12 changes: 12 additions & 0 deletions
12
...src/main/java/org/stepic/droid/configuration/analytic/NewHomeScreenEnabledUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class NewHomeScreenEnabledUserProperty(isNewHomeScreenEnabled: Boolean) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.IS_NEW_HOME_SCREEN_ENABLED | ||
|
||
override val value: Boolean = | ||
isNewHomeScreenEnabled | ||
} |
14 changes: 14 additions & 0 deletions
14
.../org/stepic/droid/configuration/analytic/PersonalizedOnboardingCourseListsUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class PersonalizedOnboardingCourseListsUserProperty( | ||
personalizedOnboardingCourseLists: String | ||
) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.PERSONALIZED_ONBOARDING_COURSE_LISTS | ||
|
||
override val value: String = | ||
personalizedOnboardingCourseLists | ||
} |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/stepic/droid/configuration/analytic/SearchQueryParamsUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class SearchQueryParamsUserProperty(searchQueryParams: String) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.SEARCH_QUERY_PARAMS_ANDROID | ||
|
||
override val value: String = | ||
searchQueryParams | ||
} |
12 changes: 12 additions & 0 deletions
12
...in/java/org/stepic/droid/configuration/analytic/ShowStreakDialogAfterLoginUserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.stepic.droid.configuration.analytic | ||
|
||
import org.stepic.droid.configuration.RemoteConfig | ||
import org.stepik.android.domain.base.analytic.UserProperty | ||
|
||
class ShowStreakDialogAfterLoginUserProperty(showStreak: Boolean) : UserProperty { | ||
override val name: String = | ||
RemoteConfig.PREFIX + RemoteConfig.SHOW_STREAK_DIALOG_AFTER_LOGIN | ||
|
||
override val value: Boolean = | ||
showStreak | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/java/org/stepik/android/domain/base/analytic/UserProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.stepik.android.domain.base.analytic | ||
|
||
import java.util.EnumSet | ||
|
||
interface UserProperty { | ||
val name: String | ||
val value: Any | ||
|
||
val sources: EnumSet<UserPropertySource> | ||
get() = EnumSet.allOf(UserPropertySource::class.java) | ||
} |
5 changes: 5 additions & 0 deletions
5
app/src/main/java/org/stepik/android/domain/base/analytic/UserPropertySource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.stepik.android.domain.base.analytic | ||
|
||
enum class UserPropertySource { | ||
AMPLITUDE, YANDEX, FIREBASE | ||
} |
Oops, something went wrong.