@@ -23,9 +23,7 @@ final class RemoteConfig {
2323 Key . showStreaksNotificationTrigger. rawValue: NSString ( string: Self . defaultShowStreaksNotificationTrigger. rawValue) ,
2424 Key . adaptiveBackendUrl. rawValue: NSString ( string: StepikApplicationsInfo . adaptiveRatingURL) ,
2525 Key . supportedInAdaptiveModeCourses. rawValue: NSArray ( array: StepikApplicationsInfo . adaptiveSupportedCourses) ,
26- Key . darkModeAvailable. rawValue: NSNumber ( value: true ) ,
2726 Key . arQuickLookAvailable. rawValue: NSNumber ( value: false ) ,
28- Key . isDisabledStepsSupported. rawValue: NSNumber ( value: false ) ,
2927 Key . searchResultsQueryParams. rawValue: NSDictionary ( dictionary: [ " is_popular " : " true " , " is_public " : " true " ] ) ,
3028 Key . isCoursePricesEnabled. rawValue: NSNumber ( value: false ) ,
3129 Key . isCourseRevenueAvailable. rawValue: NSNumber ( value: false )
@@ -81,31 +79,13 @@ final class RemoteConfig {
8179 return supportedCourses. compactMap { Int ( $0) }
8280 }
8381
84- var isDarkModeAvailable : Bool {
85- if DeviceInfo . current. OSVersion. major < 13 {
86- return false
87- }
88-
89- return FirebaseRemoteConfig . RemoteConfig
90- . remoteConfig ( )
91- . configValue ( forKey: Key . darkModeAvailable. rawValue)
92- . boolValue
93- }
94-
9582 var isARQuickLookAvailable : Bool {
9683 FirebaseRemoteConfig . RemoteConfig
9784 . remoteConfig ( )
9885 . configValue ( forKey: Key . arQuickLookAvailable. rawValue)
9986 . boolValue
10087 }
10188
102- var isDisabledStepsSupported : Bool {
103- FirebaseRemoteConfig . RemoteConfig
104- . remoteConfig ( )
105- . configValue ( forKey: Key . isDisabledStepsSupported. rawValue)
106- . boolValue
107- }
108-
10989 var searchResultsQueryParams : JSONDictionary {
11090 guard let configValue = FirebaseRemoteConfig . RemoteConfig. remoteConfig ( ) . configValue (
11191 forKey: Key . searchResultsQueryParams. rawValue
@@ -194,9 +174,7 @@ final class RemoteConfig {
194174 case showStreaksNotificationTrigger = " show_streaks_notification_trigger "
195175 case adaptiveBackendUrl = " adaptive_backend_url "
196176 case supportedInAdaptiveModeCourses = " supported_adaptive_courses_ios "
197- case darkModeAvailable = " is_dark_mode_available_ios "
198177 case arQuickLookAvailable = " is_ar_quick_look_available_ios "
199- case isDisabledStepsSupported = " is_disabled_steps_supported "
200178 case searchResultsQueryParams = " search_query_params_ios "
201179 case isCoursePricesEnabled = " is_course_prices_enabled_ios "
202180 case isCourseRevenueAvailable = " is_course_revenue_available_ios "
0 commit comments