@@ -24,6 +24,7 @@ data class BetaOptions(
2424 val cameraGesturesEnabled : Boolean ,
2525 val invertedDragZoom : Boolean ,
2626 val canFlipTipCard : Boolean ,
27+ val galleryEnabled : Boolean ,
2728) {
2829 companion object {
2930 // Default states for various beta flags in app.
@@ -45,7 +46,8 @@ data class BetaOptions(
4546 tipCardOnHomeScreen = true ,
4647 cameraGesturesEnabled = true ,
4748 invertedDragZoom = false ,
48- canFlipTipCard = false
49+ canFlipTipCard = false ,
50+ galleryEnabled = true
4951 )
5052 }
5153}
@@ -85,7 +87,8 @@ class BetaFlagsRepository @Inject constructor(
8587 observeBetaFlag(PrefsBool .TIP_CARD_ON_HOMESCREEN , defaults.tipCardOnHomeScreen),
8688 observeBetaFlag(PrefsBool .CAMERA_GESTURES_ENABLED , defaults.cameraGesturesEnabled),
8789 observeBetaFlag(PrefsBool .CAMERA_DRAG_INVERTED , defaults.invertedDragZoom),
88- observeBetaFlag(PrefsBool .TIP_CARD_FLIPPABLE , defaults.canFlipTipCard)
90+ observeBetaFlag(PrefsBool .TIP_CARD_FLIPPABLE , defaults.canFlipTipCard),
91+ observeBetaFlag(PrefsBool .GALLERY_ENABLED , defaults.galleryEnabled),
8992 ) {
9093 BetaOptions (
9194 showNetworkDropOff = it[0 ],
@@ -106,6 +109,7 @@ class BetaFlagsRepository @Inject constructor(
106109 cameraGesturesEnabled = it[15 ],
107110 invertedDragZoom = it[16 ],
108111 canFlipTipCard = it[17 ],
112+ galleryEnabled = it[18 ],
109113 )
110114 }
111115 }
@@ -129,19 +133,34 @@ class BetaFlagsRepository @Inject constructor(
129133 PrefsBool .BALANCE_CURRENCY_SELECTION_ENABLED -> balanceCurrencySelectionEnabled
130134 PrefsBool .BUCKET_DEBUGGER_ENABLED -> canViewBuckets
131135 PrefsBool .BUY_MODULE_ENABLED -> buyModuleEnabled
136+ PrefsBool .CAMERA_GESTURES_ENABLED -> cameraGesturesEnabled
137+ PrefsBool .CAMERA_DRAG_INVERTED -> invertedDragZoom
132138 PrefsBool .CHAT_UNSUB_ENABLED -> chatUnsubEnabled
133139 PrefsBool .CONVERSATIONS_ENABLED -> conversationsEnabled
134140 PrefsBool .CONVERSATION_CASH_ENABLED -> conversationCashEnabled
135141 PrefsBool .DISPLAY_ERRORS -> displayErrors
142+ PrefsBool .GALLERY_ENABLED -> galleryEnabled
136143 PrefsBool .GIVE_REQUESTS_ENABLED -> giveRequestsEnabled
137144 PrefsBool .KADO_WEBVIEW_ENABLED -> kadoWebViewEnabled
138145 PrefsBool .LOG_SCAN_TIMES -> debugScanTimesEnabled
139146 PrefsBool .SHARE_TWEET_TO_TIP -> shareTweetToTip
140147 PrefsBool .SHOW_CONNECTIVITY_STATUS -> showNetworkDropOff
141148 PrefsBool .TIPS_ENABLED -> tipsEnabled
149+ PrefsBool .TIP_CARD_FLIPPABLE -> canFlipTipCard
142150 PrefsBool .TIP_CARD_ON_HOMESCREEN -> tipCardOnHomeScreen
143151 PrefsBool .VIBRATE_ON_SCAN -> tickOnScan
144- else -> false
152+ PrefsBool .BUY_MODULE_AVAILABLE -> false
153+ PrefsBool .CAMERA_START_BY_DEFAULT -> false
154+ PrefsBool .DISMISSED_TIP_CARD_BANNER -> false
155+ PrefsBool .ESTABLISH_CODE_RELATIONSHIP -> false
156+ PrefsBool .HAS_REMOVED_LOCAL_CURRENCY -> false
157+ PrefsBool .IS_DEBUG_ACTIVE -> false
158+ PrefsBool .IS_DEBUG_ALLOWED -> false
159+ PrefsBool .IS_ELIGIBLE_GET_FIRST_KIN_AIRDROP -> false
160+ PrefsBool .IS_ELIGIBLE_GIVE_FIRST_KIN_AIRDROP -> false
161+ PrefsBool .REQUIRE_BIOMETRICS -> false
162+ PrefsBool .SEEN_TIP_CARD -> false
163+ PrefsBool .STARTED_TIP_CONNECT -> false
145164 }
146165 }
147166 }
0 commit comments