From 77ea075c23417de4d8e6edaa234f35e871f79199 Mon Sep 17 00:00:00 2001 From: Sofiya Tepikin Date: Wed, 10 Aug 2022 15:59:27 +0200 Subject: [PATCH] Cleanup --- db/index.js | 1 - db/restart-app/index.android.js | 5 ----- db/restart-app/index.ios.js | 11 ----------- ios/drip.xcodeproj/project.pbxproj | 17 ----------------- package-lock.json | 10 ---------- package.json | 2 -- 6 files changed, 46 deletions(-) delete mode 100644 db/restart-app/index.android.js delete mode 100644 db/restart-app/index.ios.js diff --git a/db/index.js b/db/index.js index 6015439..3017fcc 100644 --- a/db/index.js +++ b/db/index.js @@ -2,7 +2,6 @@ import Realm from 'realm' import { LocalDate, ChronoUnit } from 'js-joda' import nodejs from 'nodejs-mobile-react-native' import fs from 'react-native-fs' -import { restartApp } from './restart-app' import schemas from './schemas' import cycleModule from '../lib/cycle' diff --git a/db/restart-app/index.android.js b/db/restart-app/index.android.js deleted file mode 100644 index 3a84dc2..0000000 --- a/db/restart-app/index.android.js +++ /dev/null @@ -1,5 +0,0 @@ -// Current version of react-native-restart doesn't work with our ios setup -// therefore we have a fork and use different libraries on the platforms -import restart from 'react-native-restart' - -export const restartApp = restart.Restart diff --git a/db/restart-app/index.ios.js b/db/restart-app/index.ios.js deleted file mode 100644 index 0f3db9b..0000000 --- a/db/restart-app/index.ios.js +++ /dev/null @@ -1,11 +0,0 @@ -// Current version of react-native-restart doesn't work with our ios setup -// therefore we have a fork and use different libraries on the platforms -import RNExitApp from 'react-native-exit-app-v2' -import { Alert } from 'react-native' - -export const restartApp = () => { - Alert.alert('Closing app', 'App is shutting down. Please restart.') - setTimeout(() => { - RNExitApp.exitApp() - }, 3000) -} diff --git a/ios/drip.xcodeproj/project.pbxproj b/ios/drip.xcodeproj/project.pbxproj index d4d8c34..d36e50d 100644 --- a/ios/drip.xcodeproj/project.pbxproj +++ b/ios/drip.xcodeproj/project.pbxproj @@ -57,19 +57,6 @@ }; /* End PBXContainerItemProxy section */ -/* Begin PBXCopyFilesBuildPhase section */ - 2B572382D4504B8FB4B9D251 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - /* Begin PBXFileReference section */ 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 00E356EE1AD99517003FC87E /* dripTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = dripTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -525,7 +512,6 @@ "${BUILT_PRODUCTS_DIR}/RCTTypeSafety/RCTTypeSafety.framework", "${BUILT_PRODUCTS_DIR}/RNCPushNotificationIOS/RNCPushNotificationIOS.framework", "${BUILT_PRODUCTS_DIR}/RNDateTimePicker/RNDateTimePicker.framework", - "${BUILT_PRODUCTS_DIR}/RNExitApp/RNExitApp.framework", "${BUILT_PRODUCTS_DIR}/RNFS/RNFS.framework", "${BUILT_PRODUCTS_DIR}/RNShare/RNShare.framework", "${BUILT_PRODUCTS_DIR}/RNVectorIcons/RNVectorIcons.framework", @@ -552,7 +538,6 @@ "${BUILT_PRODUCTS_DIR}/glog/glog.framework", "${PODS_ROOT}/../../node_modules/nodejs-mobile-react-native/ios/NodeMobile.framework", "${BUILT_PRODUCTS_DIR}/react-native-document-picker/react_native_document_picker.framework", - "${BUILT_PRODUCTS_DIR}/react-native-restart/react_native_restart.framework", "${BUILT_PRODUCTS_DIR}/react-native-simple-toast/react_native_simple_toast.framework", ); name = "[CP] Embed Pods Frameworks"; @@ -564,7 +549,6 @@ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTTypeSafety.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNCPushNotificationIOS.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNDateTimePicker.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNExitApp.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNFS.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNShare.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNVectorIcons.framework", @@ -591,7 +575,6 @@ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/glog.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/NodeMobile.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/react_native_document_picker.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/react_native_restart.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/react_native_simple_toast.framework", ); runOnlyForDeploymentPostprocessing = 0; diff --git a/package-lock.json b/package-lock.json index 8fdacfc..2523074 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8561,11 +8561,6 @@ "resolved": "https://registry.npmjs.org/react-native-document-picker/-/react-native-document-picker-4.3.0.tgz", "integrity": "sha512-ygcY0ijlVuhxzdWnhqd917yMUFT9FF0b4CM81LWoY4/bpQYz5PGUdRAdh25kS0VA+cEUYNL2iI7OpHXq00epPA==" }, - "react-native-exit-app-v2": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/react-native-exit-app-v2/-/react-native-exit-app-v2-1.2.2.tgz", - "integrity": "sha512-RWCfmus7h99M1aONqBnWG3g3TFRzKsmok6cLAuqN5NVQAxpcgzbJZgAryA/ADpmBrBP5EIJnCBFo64ApQGOZPw==" - }, "react-native-fs": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/react-native-fs/-/react-native-fs-2.19.0.tgz", @@ -8600,11 +8595,6 @@ "@react-native-community/push-notification-ios": "^1.0.1" } }, - "react-native-restart": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/react-native-restart/-/react-native-restart-0.0.18.tgz", - "integrity": "sha512-AoEINeKuvj0yJY9I4GEbY27ifiVTo/2KhW2MnGeFgtjInfAvA9hgbGXjQO8xT2wQA9ZIzTgUQyyWC6yFiQeREA==" - }, "react-native-share": { "version": "3.8.5", "resolved": "https://registry.npmjs.org/react-native-share/-/react-native-share-3.8.5.tgz", diff --git a/package.json b/package.json index de4d2d1..6a11f31 100644 --- a/package.json +++ b/package.json @@ -47,12 +47,10 @@ "react-native": "0.61.0", "react-native-calendars": "^1.19.3", "react-native-document-picker": "^4.2.0", - "react-native-exit-app-v2": "^1.2.2", "react-native-fs": "^2.19.0", "react-native-hyperlink": "0.0.19", "react-native-modal-datetime-picker": "8.0.0", "react-native-push-notification": "3.2.1", - "react-native-restart": "0.0.18", "react-native-share": "^3.0.0", "react-native-simple-toast": "^1.1.3", "react-native-size-matters": "^0.4.0",