diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 9b118269d..b2907d936 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -37,8 +37,6 @@ PODS: - lottie-react-native (3.1.1): - lottie-ios (~> 3.0.3) - React - - RCTSystemSetting (1.7.3): - - React - React (0.60.5): - React-Core (= 0.60.5) - React-DevSupport (= 0.60.5) @@ -178,7 +176,6 @@ DEPENDENCIES: - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) - lottie-react-native (from `../node_modules/lottie-react-native`) - - RCTSystemSetting (from `../node_modules/react-native-system-setting`) - React (from `../node_modules/react-native/`) - React-Core (from `../node_modules/react-native/React`) - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) @@ -249,8 +246,6 @@ EXTERNAL SOURCES: :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" lottie-react-native: :path: "../node_modules/lottie-react-native" - RCTSystemSetting: - :path: "../node_modules/react-native-system-setting" React: :path: "../node_modules/react-native/" React-Core: @@ -350,7 +345,6 @@ SPEC CHECKSUMS: glog: 1f3da668190260b06b429bb211bfbee5cd790c28 lottie-ios: c38c3178ae8c4a8f200661aa5f80b9f1ca7f56b3 lottie-react-native: d8caf2aa9ab8bb76312e44997c1c91804a23d44d - RCTSystemSetting: 2870be06565f2398a8786bfe8486ff6880a4326a React: 53c53c4d99097af47cf60594b8706b4e3321e722 React-Core: ba421f6b4f4cbe2fb17c0b6fc675f87622e78a64 React-cxxreact: 8384287780c4999351ad9b6e7a149d9ed10a2395 diff --git a/package-lock.json b/package-lock.json index a48196b1a..ced306908 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11347,10 +11347,6 @@ "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-9.5.1.tgz", "integrity": "sha512-cRGfomzG/5LEwuJ6ct3m5yccckeI9aj8BNYwDPVxOeJ84LuJuvk5OqcjlYNeEzOWmWiH+QrFXfpLH1ag04bUeQ==" }, - "react-native-system-setting": { - "version": "git+https://github.com/marcosrdz/react-native-system-setting.git#ca2f063452b9cc94e221e540ef5bc304e69b83c3", - "from": "git+https://github.com/marcosrdz/react-native-system-setting.git" - }, "react-native-tab-view": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/react-native-tab-view/-/react-native-tab-view-1.4.1.tgz", diff --git a/package.json b/package.json index f4cd5190a..e20f83a08 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ }, "setupFiles": [ "./tests/setup.js" - ] + ] }, "dependencies": { "@babel/preset-env": "7.5.0", @@ -113,7 +113,6 @@ "react-native-snap-carousel": "3.8.0", "react-native-sortable-list": "0.0.23", "react-native-svg": "9.5.1", - "react-native-system-setting": "git+https://github.com/marcosrdz/react-native-system-setting.git", "react-native-tcp": "git+https://github.com/aprock/react-native-tcp.git", "react-native-tooltip": "git+https://github.com/marcosrdz/react-native-tooltip.git", "react-native-vector-icons": "6.6.0", diff --git a/screen/lnd/lndViewAdditionalInvoiceInformation.js b/screen/lnd/lndViewAdditionalInvoiceInformation.js index 2653fc18e..2a6580e96 100644 --- a/screen/lnd/lndViewAdditionalInvoiceInformation.js +++ b/screen/lnd/lndViewAdditionalInvoiceInformation.js @@ -12,7 +12,6 @@ import { } from '../../BlueComponents'; import PropTypes from 'prop-types'; import QRCode from 'react-native-qrcode-svg'; -import SystemSetting from 'react-native-system-setting'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); const loc = require('../../loc'); @@ -34,12 +33,6 @@ export default class LNDViewAdditionalInvoiceInformation extends Component { return; } this.setState({ walletInfo: fromWallet.info_raw, addressText: fromWallet.info_raw.uris[0] }); - await SystemSetting.saveBrightness(); - await SystemSetting.setAppBrightness(1.0); - } - - async componentWillUnmount() { - await SystemSetting.restoreBrightness(); } render() { diff --git a/screen/lnd/lndViewInvoice.js b/screen/lnd/lndViewInvoice.js index a28f46039..7ef411d8c 100644 --- a/screen/lnd/lndViewInvoice.js +++ b/screen/lnd/lndViewInvoice.js @@ -14,7 +14,6 @@ import PropTypes from 'prop-types'; import ReactNativeHapticFeedback from 'react-native-haptic-feedback'; import { Icon } from 'react-native-elements'; import QRCode from 'react-native-qrcode-svg'; -import SystemSetting from 'react-native-system-setting'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); const loc = require('../../loc'); @@ -63,8 +62,6 @@ export default class LNDViewInvoice extends Component { if (typeof updatedUserInvoice !== 'undefined') { this.setState({ invoice: updatedUserInvoice, isLoading: false, addressText: updatedUserInvoice.payment_request }); - await SystemSetting.saveBrightness(); - await SystemSetting.setAppBrightness(1.0); if (updatedUserInvoice.ispaid) { // we fetched the invoice, and it is paid :-) this.setState({ isFetchingInvoices: false }); @@ -97,7 +94,6 @@ export default class LNDViewInvoice extends Component { clearInterval(this.fetchInvoiceInterval); this.fetchInvoiceInterval = undefined; BackHandler.removeEventListener('hardwareBackPress', this.handleBackButton); - await SystemSetting.restoreBrightness(); } handleBackButton = () => { diff --git a/screen/receive/details.js b/screen/receive/details.js index 1de227515..6fac6fbe9 100644 --- a/screen/receive/details.js +++ b/screen/receive/details.js @@ -15,7 +15,6 @@ import PropTypes from 'prop-types'; import Privacy from '../../Privacy'; import Share from 'react-native-share'; import { ScrollView } from 'react-native-gesture-handler'; -import SystemSetting from 'react-native-system-setting'; import { Chain } from '../../models/bitcoinUnits'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); @@ -97,16 +96,12 @@ export default class ReceiveDetails extends Component { InteractionManager.runAfterInteractions(async () => { const bip21encoded = bip21.encode(this.state.address); - this.setState({ bip21encoded }, async () => { - await SystemSetting.saveBrightness(); - await SystemSetting.setAppBrightness(1.0); - }); + this.setState({ bip21encoded }); }); } async componentWillUnmount() { Privacy.disableBlur(); - await SystemSetting.restoreBrightness(); } render() { diff --git a/screen/wallets/export.js b/screen/wallets/export.js index fcacfdc3f..5a2cd3d7e 100644 --- a/screen/wallets/export.js +++ b/screen/wallets/export.js @@ -4,7 +4,6 @@ import QRCode from 'react-native-qrcode-svg'; import { BlueSpacing20, SafeBlueArea, BlueNavigationStyle, BlueText } from '../../BlueComponents'; import PropTypes from 'prop-types'; import Privacy from '../../Privacy'; -import SystemSetting from 'react-native-system-setting'; import Biometric from '../../class/biometrics'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); @@ -40,9 +39,6 @@ export default class WalletExport extends Component { async componentDidMount() { Privacy.enableBlur(); - - await SystemSetting.saveBrightness(); - await SystemSetting.setAppBrightness(1.0); const isBiometricsEnabled = await Biometric.isBiometricUseCapableAndEnabled(); if (isBiometricsEnabled) { @@ -58,7 +54,6 @@ export default class WalletExport extends Component { async componentWillUnmount() { Privacy.disableBlur(); - await SystemSetting.restoreBrightness(); } onLayout = () => { diff --git a/screen/wallets/xpub.js b/screen/wallets/xpub.js index 8624efa9a..4af7f358e 100644 --- a/screen/wallets/xpub.js +++ b/screen/wallets/xpub.js @@ -4,7 +4,6 @@ import QRCode from 'react-native-qrcode-svg'; import { BlueSpacing20, SafeBlueArea, BlueText, BlueNavigationStyle, BlueCopyTextToClipboard } from '../../BlueComponents'; import PropTypes from 'prop-types'; import Privacy from '../../Privacy'; -import SystemSetting from 'react-native-system-setting'; import Biometric from '../../class/biometrics'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); @@ -42,9 +41,6 @@ export default class WalletXpub extends Component { async componentDidMount() { Privacy.enableBlur(); - await SystemSetting.saveBrightness(); - await SystemSetting.setAppBrightness(1.0); - const isBiometricsEnabled = await Biometric.isBiometricUseCapableAndEnabled(); if (isBiometricsEnabled) { @@ -59,7 +55,6 @@ export default class WalletXpub extends Component { } async componentWillUnmount() { - await SystemSetting.restoreBrightness(); Privacy.disableBlur(); }