1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-1390 App | Enhanced object and space debugging (#70)

This commit is contained in:
Konstantin Ivanov 2023-06-14 17:57:24 +02:00 committed by uburoiubu
parent 1151585acd
commit 7c7b281b36
No known key found for this signature in database
GPG key ID: C8FB80E0A595FBB6
5 changed files with 5 additions and 16 deletions

View file

@ -25,9 +25,6 @@ class DefaultFeatureToggles @Inject constructor(
override val isLogEditorControlPanelMachine =
BuildConfig.LOG_EDITOR_CONTROL_PANEL && buildProvider.isDebug()
override val isTroubleshootingMode
get() = prefs.getBoolean(context.getString(R.string.trouble_mode), BuildConfig.DEBUG)
override val isNewOnBoardingEnabled: Boolean = false
override val isAutoUpdateEnabled: Boolean = false

View file

@ -79,7 +79,7 @@ class ProfileFragment : BaseBottomSheetComposeFragment() {
onSpaceDebugClicked = { throttle { vm.onSpaceDebugClicked() } },
isLogoutInProgress = vm.isLoggingOut.collectAsState().value,
isDebugSpaceReportInProgress = vm.isDebugSpaceReportInProgress.collectAsState().value,
isShowDebug = toggles.isTroubleshootingMode,
isShowDebug = true,
onNameChange = { vm.onNameChange(it) },
onProfileIconClick = { proceedWithIconClick() },
account = vm.profileData.collectAsStateWithLifecycle().value,

View file

@ -14,8 +14,6 @@ interface FeatureToggles {
val isLogEditorControlPanelMachine: Boolean
val isTroubleshootingMode: Boolean
val isNewOnBoardingEnabled: Boolean
}

View file

@ -61,14 +61,14 @@ class ObjectMenuOptionsProviderImpl(
hasIcon = hasIcon,
hasCover = hasCover,
hasLayout = hasLayout,
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
hasDiagnosticsVisibility = true
)
ObjectType.Layout.TODO -> Options(
hasIcon = false,
hasCover = hasCover,
hasLayout = hasLayout,
hasRelations = true,
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
hasDiagnosticsVisibility = true,
)
ObjectType.Layout.NOTE -> Options(
@ -76,7 +76,7 @@ class ObjectMenuOptionsProviderImpl(
hasCover = false,
hasLayout = hasLayout,
hasRelations = true,
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
hasDiagnosticsVisibility = true,
)
}
} else {
@ -85,7 +85,7 @@ class ObjectMenuOptionsProviderImpl(
hasIcon = hasIcon,
hasCover = hasCover,
hasLayout = hasLayout,
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
hasDiagnosticsVisibility = true,
)
}
return options

View file

@ -120,12 +120,6 @@ private fun Settings(
onClick = onAboutAppClicked
)
Divider(paddingStart = 60.dp)
Option(
image = R.drawable.ic_debug,
text = stringResource(R.string.debug),
onClick = onDebugClicked
)
Divider(paddingStart = 60.dp)
}
@Composable