Skip to content

Commit

Permalink
remove reactotron (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
BilligsterUser authored Nov 8, 2023
1 parent ec0141d commit 97ca41f
Show file tree
Hide file tree
Showing 12 changed files with 39,786 additions and 40,122 deletions.
1 change: 0 additions & 1 deletion config/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default (): JestConfigWithTsJest => ({
'!**/src/shim.ts',
// '!**/src/storage/store/AsyncStore.ts',
'!**/src/storage/store/SecureStore.ts',
'!**/src/logger/reactotron/**',
'!**/src/util/crashReporting.ts',
'!**/src/storage/db/fs.ts',
//'!**/src/logger/*'
Expand Down
79,355 changes: 39,619 additions & 39,736 deletions package-lock.json

Large diffs are not rendered by default.

331 changes: 165 additions & 166 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,168 +1,167 @@
{
"name": "enuts",
"description": "A Cashu wallet for Android and iOS",
"author": "Agron Kadriaj <[email protected]> (https://agron.dev)",
"scripts": {
"s:debug:full": "npx -y cross-env@latest DEBUG=full expo start -c",
"s:c:dev": "expo start -c --dev-client",
"s:c": "expo start -c --go",
"start": "expo start --go",
"start:d": "expo start",
"lint:eslint": "npx eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.json --fix",
"lint": "npm run lint:eslint && npx tsc && npm run fmtJson",
"ts:check": "npx tsc",
"dep:update": "npx -y npm-check-updates --pre -u -u && npm i && npm audit fix || true && npx expo install --fix && npm run lint",
"dep:check": "npx -y depcheck@latest",
"fmtJson": "npx prettier *.json assets/translations/*.json .github/workflows/*.yml --write --use-tabs --tab-width 4",
"expo:i:check": "npx expo install --check",
"expo:i:fix": "npx expo install --fix",
"expo:doc": "npx -y expo-doctor@latest",
"build:dev": "npx -y eas-cli@latest build -e development -p android -m devWithDevClient --no-wait",
"build:preview:android": "npx -y eas-cli@latest build -e preview -p android -m manualPreview --no-wait",
"build:preview:ios": "npx -y eas-cli@latest build -e preview -p ios -m manualPreview --no-wait",
"build:prod:android": "npx -y eas-cli@latest build -e production -p android -m manualProduction --no-wait",
"build:prod:ios": "npx -y eas-cli@latest build -e production -p ios -m manualProduction --no-wait",
"build:ci:preview:android": "npx -y eas-cli@latest build --non-interactive -e preview -p android -m ciPreview --no-wait",
"build:ci:preview:ios": "npx -y eas-cli@latest build --non-interactive -e preview -p ios -m ciPreview --no-wait",
"build:ci:prod:android": "npx -y eas-cli@latest build --non-interactive -e production -p android -m ciProduction --no-wait",
"build:ci:prod:ios": "npx -y eas-cli@latest build --non-interactive -e production -p ios -m ciProduction --no-wait",
"submit:ios": "npx -y eas-cli@latest submit -p ios",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "npx jest -c ./config/jest.config.ts --passWithNoTests ",
"test:coverage": "npm run test -- --collectCoverage",
"test:ts": "npm run test --testPathIgnorePatterns=tsx$",
"test:ts:coverage": "npm run test:ts -- --collectCoverageFrom=src/**/*.ts",
"test:tsx": "npm run test --testPathIgnorePatterns=ts$",
"test:tsx:coverage": "npm run test:tsx -- --collectCoverageFrom=components/**/*.tsx",
"test:dev": "npm run test -- --detectOpenHandles",
"cpd:ts": "npx -y jscpd -c config/cpd.config.ts.json src config",
"cpd:tsx": "npx -y jscpd -c config/cpd.config.tsx.json src",
"cpd": "npm run cpd:ts && npm run cpd:tsx",
"deps:c": "npx -y madge --circular --ts-config tsconfig.json --extensions ts,tsx .",
"eas-build-pre-install": "echo \"require('./src/AppEntry.ts')\" > index.js"
},
"dependencies": {
"@cashu/cashu-ts": "^0.8.1",
"@expo/config-plugins": "~7.2.5",
"@expo/metro-config": "^0.10.7",
"@react-native-async-storage/async-storage": "1.18.2",
"@react-native-community/netinfo": "9.3.10",
"@react-navigation/core": "^6.4.9",
"@react-navigation/native": "^6.1.7",
"@react-navigation/native-stack": "^6.9.13",
"@sentry/react-native": "5.5.0",
"@shopify/flash-list": "1.4.3",
"crypto-js": "4.2.0",
"expo": "^49.0.9",
"expo-application": "~5.3.0",
"expo-asset": "~8.10.1",
"expo-barcode-scanner": "~12.5.3",
"expo-camera": "~13.4.4",
"expo-clipboard": "~4.3.1",
"expo-constants": "~14.4.2",
"expo-crypto": "~12.4.1",
"expo-device": "~5.4.0",
"expo-file-system": "~15.4.4",
"expo-insights": "^0.2.0",
"expo-localization": "~14.3.0",
"expo-secure-store": "~12.3.1",
"expo-splash-screen": "~0.20.5",
"expo-sqlite": "~11.3.3",
"expo-status-bar": "~1.6.0",
"expo-updates": "~0.18.17",
"i18next": "^23.5.1",
"lottie-react-native": "5.1.6",
"nostr-tools": "^1.15.0",
"react": "^18.2.0",
"react-i18next": "^13.2.2",
"react-native": "0.72.6",
"react-native-onboarding-swiper": "^1.2.0",
"react-native-qrcode-svg": "^6.2.0",
"react-native-reanimated": "~3.3.0",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-svg": "13.9.0",
"react-native-url-polyfill": "^2.0.0",
"sentry-expo": "~7.0.1",
"text-encoding-polyfill": "^0.6.7"
},
"devDependencies": {
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@getify/eslint-plugin-proper-arrows": "^11.0.3",
"@testing-library/react-native": "^12.3.0",
"@types/babel__core": "^7.20.1",
"@types/crypto-js": "^4.1.2",
"@types/eslint": "^8.44.2",
"@types/jest": "^29.5.4",
"@types/node": "^20.6.0",
"@types/react": "~18.2.21",
"@types/react-native-onboarding-swiper": "^1.1.4",
"@types/sqlite3": "^3.1.8",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"dotenv": "^16.3.1",
"eslint": "^8.49.0",
"eslint-plugin-deprecate": "^0.8.2",
"eslint-plugin-es5": "^1.5.0",
"eslint-plugin-eslint-plugin": "^5.1.1",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsdoc": "^46.6.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-tsdoc": "^0.2.17",
"expo-dev-client": "~2.4.11",
"jest": "^29.6.4",
"jest-expo": "^49.0.0",
"metro-config": "^0.79.0",
"prettier": "^3.0.3",
"reactotron-react-native": "^5.0.3",
"ts-jest": "^29.1.1",
"ts-jest-resolver": "^2.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"websql": "^2.0.3"
},
"homepage": ".",
"contributors": [
{
"name": "BilligsterUser",
"email": "[email protected]",
"url": "https://github.com/BilligsterUser"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/cashubtc/eNuts"
},
"keywords": [
"cashu",
"ecash",
"micropayments",
"payments",
"android",
"ios",
"privacy",
"lightning",
"bitcoin",
"enuts",
"nuts",
"chaumian",
"cashubtc",
"secp256k1",
"blind-signatures",
"lightning-network"
],
"version": "0.0.5",
"license": "AGPL-3.0-only",
"bugs": {
"url": "https://github.com/cashubtc/eNuts/issues"
},
"main": "src/AppEntry.ts"
"name": "enuts",
"description": "A Cashu wallet for Android and iOS",
"author": "Agron Kadriaj <[email protected]> (https://agron.dev)",
"scripts": {
"s:debug:full": "npx -y cross-env@latest DEBUG=full expo start -c",
"s:c:dev": "expo start -c --dev-client",
"s:c": "expo start -c --go",
"start": "expo start --go",
"start:d": "expo start",
"lint:eslint": "npx eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.json --fix",
"lint": "npm run lint:eslint && npx tsc && npm run fmtJson",
"ts:check": "npx tsc",
"dep:update": "npx -y npm-check-updates --pre -u -u && npm i && npm audit fix || true && npx expo install --fix && npm run lint",
"dep:check": "npx -y depcheck@latest",
"fmtJson": "npx prettier *.json assets/translations/*.json .github/workflows/*.yml --write --use-tabs --tab-width 4",
"expo:i:check": "npx expo install --check",
"expo:i:fix": "npx expo install --fix",
"expo:doc": "npx -y expo-doctor@latest",
"build:dev": "npx -y eas-cli@latest build -e development -p android -m devWithDevClient --no-wait",
"build:preview:android": "npx -y eas-cli@latest build -e preview -p android -m manualPreview --no-wait",
"build:preview:ios": "npx -y eas-cli@latest build -e preview -p ios -m manualPreview --no-wait",
"build:prod:android": "npx -y eas-cli@latest build -e production -p android -m manualProduction --no-wait",
"build:prod:ios": "npx -y eas-cli@latest build -e production -p ios -m manualProduction --no-wait",
"build:ci:preview:android": "npx -y eas-cli@latest build --non-interactive -e preview -p android -m ciPreview --no-wait",
"build:ci:preview:ios": "npx -y eas-cli@latest build --non-interactive -e preview -p ios -m ciPreview --no-wait",
"build:ci:prod:android": "npx -y eas-cli@latest build --non-interactive -e production -p android -m ciProduction --no-wait",
"build:ci:prod:ios": "npx -y eas-cli@latest build --non-interactive -e production -p ios -m ciProduction --no-wait",
"submit:ios": "npx -y eas-cli@latest submit -p ios",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "npx jest -c ./config/jest.config.ts --passWithNoTests ",
"test:coverage": "npm run test -- --collectCoverage",
"test:ts": "npm run test --testPathIgnorePatterns=tsx$",
"test:ts:coverage": "npm run test:ts -- --collectCoverageFrom=src/**/*.ts",
"test:tsx": "npm run test --testPathIgnorePatterns=ts$",
"test:tsx:coverage": "npm run test:tsx -- --collectCoverageFrom=components/**/*.tsx",
"test:dev": "npm run test -- --detectOpenHandles",
"cpd:ts": "npx -y jscpd -c config/cpd.config.ts.json src config",
"cpd:tsx": "npx -y jscpd -c config/cpd.config.tsx.json src",
"cpd": "npm run cpd:ts && npm run cpd:tsx",
"deps:c": "npx -y madge --circular --ts-config tsconfig.json --extensions ts,tsx .",
"eas-build-pre-install": "echo \"require('./src/AppEntry.ts')\" > index.js"
},
"dependencies": {
"@cashu/cashu-ts": "^0.8.1",
"@expo/config-plugins": "~7.2.5",
"@expo/metro-config": "^0.10.7",
"@react-native-async-storage/async-storage": "1.18.2",
"@react-native-community/netinfo": "9.3.10",
"@react-navigation/core": "^6.4.9",
"@react-navigation/native": "^6.1.7",
"@react-navigation/native-stack": "^6.9.13",
"@sentry/react-native": "5.5.0",
"@shopify/flash-list": "1.4.3",
"crypto-js": "4.2.0",
"expo": "^49.0.9",
"expo-application": "~5.3.0",
"expo-asset": "~8.10.1",
"expo-barcode-scanner": "~12.5.3",
"expo-camera": "~13.4.4",
"expo-clipboard": "~4.3.1",
"expo-constants": "~14.4.2",
"expo-crypto": "~12.4.1",
"expo-device": "~5.4.0",
"expo-file-system": "~15.4.4",
"expo-insights": "^0.2.0",
"expo-localization": "~14.3.0",
"expo-secure-store": "~12.3.1",
"expo-splash-screen": "~0.20.5",
"expo-sqlite": "~11.3.3",
"expo-status-bar": "~1.6.0",
"expo-updates": "~0.18.17",
"i18next": "^23.5.1",
"lottie-react-native": "5.1.6",
"nostr-tools": "^1.15.0",
"react": "^18.2.0",
"react-i18next": "^13.2.2",
"react-native": "0.72.6",
"react-native-onboarding-swiper": "^1.2.0",
"react-native-qrcode-svg": "^6.2.0",
"react-native-reanimated": "~3.3.0",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-svg": "13.9.0",
"react-native-url-polyfill": "^2.0.0",
"sentry-expo": "~7.0.1",
"text-encoding-polyfill": "^0.6.7"
},
"devDependencies": {
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@getify/eslint-plugin-proper-arrows": "^11.0.3",
"@testing-library/react-native": "^12.3.0",
"@types/babel__core": "^7.20.1",
"@types/crypto-js": "^4.1.2",
"@types/eslint": "^8.44.2",
"@types/jest": "^29.5.4",
"@types/node": "^20.6.0",
"@types/react": "~18.2.21",
"@types/react-native-onboarding-swiper": "^1.1.4",
"@types/sqlite3": "^3.1.8",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"dotenv": "^16.3.1",
"eslint": "^8.49.0",
"eslint-plugin-deprecate": "^0.8.2",
"eslint-plugin-es5": "^1.5.0",
"eslint-plugin-eslint-plugin": "^5.1.1",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsdoc": "^46.6.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-tsdoc": "^0.2.17",
"expo-dev-client": "~2.4.11",
"jest": "^29.6.4",
"jest-expo": "^49.0.0",
"metro-config": "^0.79.0",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-jest-resolver": "^2.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"websql": "^2.0.3"
},
"homepage": ".",
"contributors": [
{
"name": "BilligsterUser",
"email": "[email protected]",
"url": "https://github.com/BilligsterUser"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/cashubtc/eNuts"
},
"keywords": [
"cashu",
"ecash",
"micropayments",
"payments",
"android",
"ios",
"privacy",
"lightning",
"bitcoin",
"enuts",
"nuts",
"chaumian",
"cashubtc",
"secp256k1",
"blind-signatures",
"lightning-network"
],
"version": "0.0.5",
"license": "AGPL-3.0-only",
"bugs": {
"url": "https://github.com/cashubtc/eNuts/issues"
},
"main": "src/AppEntry.ts"
}
20 changes: 0 additions & 20 deletions src/AppEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,12 @@ import './shim'
import './i18n'

import App from '@comps/App'
import { isReactNativeDevMode } from '@consts'
import { l } from '@log'
import { setupReactotron } from '@log/reactotron'
import { registerRootComponent } from 'expo'

import { initCrashReporting } from './util/crashReporting'

initCrashReporting()

// Set up Reactotron, which is a free desktop app for inspecting and debugging
// React Native apps. Learn more here: https://github.com/infinitered/reactotron
if (isReactNativeDevMode) {
setupReactotron({
// clear the Reactotron window when the app loads/reloads
clearOnLoad: true,
// generally going to be localhost
// host: hostname,
// Reactotron can monitor AsyncStorage for you
useAsyncStorage: false,
// log the initial restored state from AsyncStorage
logInitialState: true,
// log out any snapshots as they happen (this is useful for debugging but slow)
logSnapshots: false,
})
}

l('AppEntryPoint')

// eslint-disable-next-line new-cap
Expand Down
Loading

0 comments on commit 97ca41f

Please sign in to comment.