Skip to content

Commit

Permalink
Hide the developer mode from Tchap
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire1817 authored Jan 21, 2022
1 parent 1b2e050 commit be7e1a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/359.improvements
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hide the developer mode from Tchap
4 changes: 4 additions & 0 deletions vector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ android {
buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false"
// Set to true if you want to enable strict mode in debug
buildConfigField "boolean", "ENABLE_STRICT_MODE_LOGS", "false"
// Tchap: Show developer mode only in debug
resValue "bool", "developer_mode_visible", "true"

signingConfig signingConfigs.debug
}
Expand All @@ -243,6 +245,8 @@ android {
resValue "bool", "debug_mode", "false"
buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false"
buildConfigField "boolean", "ENABLE_STRICT_MODE_LOGS", "false"
// Tchap: Show developer mode only in debug
resValue "bool", "developer_mode_visible", "false"

postprocessing {
removeUnusedCode true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<im.vector.app.core.preference.VectorPreferenceCategory android:title="@string/settings_developer_mode">
<im.vector.app.core.preference.VectorPreferenceCategory
android:title="@string/settings_developer_mode"
app:isPreferenceVisible="@bool/developer_mode_visible">

<im.vector.app.core.preference.VectorSwitchPreference
android:defaultValue="false"
Expand Down

0 comments on commit be7e1a4

Please sign in to comment.