Skip to content

Commit aa10f3e

Browse files
authored
Merge pull request #375 from code-payments/feat/enable-buy-module
feat: enable buy module
2 parents e05cd3a + 14b3206 commit aa10f3e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

api/src/main/java/com/getcode/network/repository/BetaFlagsRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ data class BetaOptions(
2929
debugScanTimesEnabled = false,
3030
displayErrors = false,
3131
giveRequestsEnabled = false,
32-
buyModuleEnabled = false,
32+
buyModuleEnabled = true,
3333
establishCodeRelationship = false,
3434
chatUnsubEnabled = false,
3535
tipsEnabled = false,

app/src/main/java/com/getcode/view/main/account/BetaFlagsScreen.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.getcode.view.main.account
22

3-
import androidx.compose.foundation.ExperimentalFoundationApi
43
import androidx.compose.foundation.layout.Column
54
import androidx.compose.foundation.layout.Row
65
import androidx.compose.foundation.layout.padding
@@ -21,7 +20,6 @@ import com.getcode.theme.CodeTheme
2120
import com.getcode.ui.utils.rememberedClickable
2221
import com.getcode.ui.components.CodeSwitch
2322

24-
@OptIn(ExperimentalFoundationApi::class)
2523
@Composable
2624
fun BetaFlagsScreen(
2725
viewModel: BetaFlagsViewModel,
@@ -153,7 +151,7 @@ fun BetaFlagsScreen(
153151

154152
private fun BetaFlagsViewModel.State.canMutate(flag: PrefsBool): Boolean {
155153
return when (flag) {
156-
// PrefsBool.BUY_KIN_ENABLED -> false
154+
PrefsBool.BUY_MODULE_ENABLED -> false
157155
PrefsBool.TIPS_CHAT_ENABLED -> chatMessageV2Enabled && tipsEnabled
158156
else -> true
159157
}

0 commit comments

Comments
 (0)