From 4ee19c9ad0693eebef7d21f1ee470a1c29f29006 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 15 May 2024 11:05:18 +0200 Subject: [PATCH 01/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/Podfile.lock | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 1a955dfd7..afc1d614b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 111 + versionCode 116 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 2e309ca70..cb92f1f7f 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1530,7 +1530,7 @@ SPEC CHECKSUMS: SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 sodium-react-native-direct: 102289e2a55688b5c6c489c88b2a7915d4e31ec1 SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef - Yoga: 2a16e58450c48e110211dae1159fb114bbcdcfc0 + Yoga: e5b887426cee15d2a326bdd34afc0282fc0486ad ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5 PODFILE CHECKSUM: a25ec9d4205c8710cfcf7ec52d853eaf4b026cc5 diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index 5e46f9f27..2325796fc 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 116; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 116; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index b89c136cd..85f2ff3f5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-beta.111", + "version": "1.0.0-beta.116", "scripts": { "start": "react-native start", "android": "react-native run-android", From c414e78d0880e821e59590b28a4b8a7a1cf7b8f2 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 24 May 2024 09:32:14 +0200 Subject: [PATCH 02/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index afc1d614b..62cfca7d9 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 116 + versionCode 118 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index 2325796fc..5f01e1374 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 116; + CURRENT_PROJECT_VERSION = 118; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 116; + CURRENT_PROJECT_VERSION = 118; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index 2b7731cb6..b92adc2e4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-beta.116", + "version": "1.0.0-beta.118", "scripts": { "start": "react-native start", "android": "react-native run-android", From 5dee7d29d2cc891d52d97475de4180e020278a01 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 28 May 2024 10:43:10 +0200 Subject: [PATCH 03/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 62cfca7d9..e5dce53fa 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 118 + versionCode 119 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index 5f01e1374..ea58fd539 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 118; + CURRENT_PROJECT_VERSION = 119; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 118; + CURRENT_PROJECT_VERSION = 119; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index b92adc2e4..7088cb28f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-beta.118", + "version": "1.0.0-beta.119", "scripts": { "start": "react-native start", "android": "react-native run-android", From 49d13595b3eceea7be18fc1f9042fb2c3f82952b Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 29 May 2024 16:34:20 +0200 Subject: [PATCH 04/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index e5dce53fa..d2cacc56e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 119 + versionCode 120 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index ea58fd539..b85103acc 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 119; + CURRENT_PROJECT_VERSION = 120; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 119; + CURRENT_PROJECT_VERSION = 120; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index 7088cb28f..6a570b4c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-beta.119", + "version": "1.0.0-beta.120", "scripts": { "start": "react-native start", "android": "react-native run-android", From ddeae38dfe769c075e61a0eb008f001a0e349fb4 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 4 Jun 2024 14:39:09 +0200 Subject: [PATCH 05/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index d2cacc56e..cf561cb4d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 120 + versionCode 121 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index b85103acc..1439757dd 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 120; + CURRENT_PROJECT_VERSION = 121; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 120; + CURRENT_PROJECT_VERSION = 121; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index 6a570b4c8..db42692ed 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-beta.120", + "version": "1.0.0-121", "scripts": { "start": "react-native start", "android": "react-native run-android", From 01b96914b84df3a2584c71bd9fb6ca5f143709e0 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 4 Jun 2024 15:00:50 +0200 Subject: [PATCH 06/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index cf561cb4d..79e1dd5b1 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 121 + versionCode 122 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index 1439757dd..3f4b7b831 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 121; + CURRENT_PROJECT_VERSION = 122; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 121; + CURRENT_PROJECT_VERSION = 122; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index db42692ed..c5c26dcfd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-121", + "version": "1.0.0-122", "scripts": { "start": "react-native start", "android": "react-native run-android", From ab62cb3e48bc6334b8fc31e6b5fc4de71b0683d9 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 5 Jun 2024 10:07:12 +0200 Subject: [PATCH 07/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 79e1dd5b1..2f8375a9e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 122 + versionCode 123 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index 3f4b7b831..1b0f75580 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 122; + CURRENT_PROJECT_VERSION = 123; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 122; + CURRENT_PROJECT_VERSION = 123; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index a58d73087..76cc447b0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-122", + "version": "1.0.0-123", "scripts": { "start": "react-native start", "android": "react-native run-android", From b297e90f08294ded44c3edfffaf2bdb64702daaa Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 7 Jun 2024 18:51:26 +0200 Subject: [PATCH 08/10] chore: build number bump --- android/app/build.gradle | 2 +- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 2f8375a9e..c99199afd 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 123 + versionCode 124 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index 1b0f75580..6a0cc54ac 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 123; + CURRENT_PROJECT_VERSION = 124; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 123; + CURRENT_PROJECT_VERSION = 124; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index cfe4fea7a..51aa31ef7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-123", + "version": "1.0.0-124", "scripts": { "start": "react-native start", "android": "react-native run-android", From 81cfadddefcbd5aca3a880d0926f12b14dd2e1a2 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 9 Jun 2024 16:01:37 +0200 Subject: [PATCH 09/10] chore: build number bump --- ios/bitkit.xcodeproj/project.pbxproj | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/bitkit.xcodeproj/project.pbxproj b/ios/bitkit.xcodeproj/project.pbxproj index 6a0cc54ac..205b83566 100644 --- a/ios/bitkit.xcodeproj/project.pbxproj +++ b/ios/bitkit.xcodeproj/project.pbxproj @@ -517,7 +517,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 124; + CURRENT_PROJECT_VERSION = 125; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; @@ -549,7 +549,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIconOrange; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 124; + CURRENT_PROJECT_VERSION = 125; DEVELOPMENT_TEAM = KYH47R284B; ENABLE_BITCODE = NO; INFOPLIST_FILE = bitkit/Info.plist; diff --git a/package.json b/package.json index 51aa31ef7..c9e7b8e62 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitkit", "author": "Synonym", - "version": "1.0.0-124", + "version": "1.0.0-125", "scripts": { "start": "react-native start", "android": "react-native run-android", From 06e5de6f5b94d4deacd2200369d6bfc1d6184472 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 11 Jun 2024 09:48:27 +0200 Subject: [PATCH 10/10] fix: removing dev settings --- android/app/build.gradle | 2 +- src/screens/Settings/index.tsx | 50 ++++++++++++++++++---------------- 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index c99199afd..b0d9d73d7 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -80,7 +80,7 @@ android { applicationId "to.bitkit" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 124 + versionCode 125 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' diff --git a/src/screens/Settings/index.tsx b/src/screens/Settings/index.tsx index 8b6eb08b0..07be17655 100644 --- a/src/screens/Settings/index.tsx +++ b/src/screens/Settings/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, ReactElement, useMemo, useState } from 'react'; +import React, { memo, ReactElement, useMemo } from 'react'; import { Image, StyleSheet, TouchableOpacity } from 'react-native'; import { useTranslation } from 'react-i18next'; @@ -6,9 +6,12 @@ import { View as ThemedView } from '../../styles/components'; import { EItemType, IListData, ItemData } from '../../components/List'; import SafeAreaInset from '../../components/SafeAreaInset'; import SettingsView from './SettingsView'; -import { useAppDispatch, useAppSelector } from '../../hooks/redux'; -import { updateSettings } from '../../store/slices/settings'; -import { showToast } from '../../utils/notifications'; +import { + // useAppDispatch, + useAppSelector, +} from '../../hooks/redux'; +// import { updateSettings } from '../../store/slices/settings'; +// import { showToast } from '../../utils/notifications'; import { SettingsScreenProps } from '../../navigation/types'; import { enableDevOptionsSelector } from '../../store/reselect/settings'; import { @@ -27,26 +30,26 @@ const MainSettings = ({ navigation, }: SettingsScreenProps<'MainSettings'>): ReactElement => { const { t } = useTranslation('settings'); - const dispatch = useAppDispatch(); + // const dispatch = useAppDispatch(); const enableDevOptions = useAppSelector(enableDevOptionsSelector); - const [enableDevOptionsCount, setEnableDevOptionsCount] = useState(0); + // const [enableDevOptionsCount, setEnableDevOptionsCount] = useState(0); - const updateDevOptions = (): void => { - const count = enableDevOptionsCount + 1; - setEnableDevOptionsCount(count); - if (count >= 5) { - const enabled = !enableDevOptions; - dispatch(updateSettings({ enableDevOptions: enabled })); - showToast({ - type: 'success', - title: t(enabled ? 'dev_enabled_title' : 'dev_disabled_title'), - description: t( - enabled ? 'dev_enabled_message' : 'dev_disabled_message', - ), - }); - setEnableDevOptionsCount(0); - } - }; + // const updateDevOptions = (): void => { + // const count = enableDevOptionsCount + 1; + // setEnableDevOptionsCount(count); + // if (count >= 5) { + // const enabled = !enableDevOptions; + // dispatch(updateSettings({ enableDevOptions: enabled })); + // showToast({ + // type: 'success', + // title: t(enabled ? 'dev_enabled_title' : 'dev_disabled_title'), + // description: t( + // enabled ? 'dev_enabled_message' : 'dev_disabled_message', + // ), + // }); + // setEnableDevOptionsCount(0); + // } + // }; const listData: IListData[] = useMemo(() => { const data: ItemData[] = [ @@ -116,7 +119,8 @@ const MainSettings = ({ style={styles.imageContainer} activeOpacity={1} testID="DevOptions" - onPress={updateDevOptions}> + // onPress={updateDevOptions} + >