Refactor, split code, upgrade react
Showing
RNNotifications/RNPushKit.h
0 → 100644
RNNotifications/RNPushKit.m
0 → 100644
RNNotifications/RNUtils.h
0 → 100644
RNNotifications/RNUtils.m
0 → 100644
babel.config.js
0 → 100644
e2e/BottomTabs.test.js
0 → 100644
e2e/config.json
0 → 100644
e2e/init.js
0 → 100644
index.js
0 → 100644
... | ... | @@ -19,10 +19,12 @@ |
"actionable-notifications", | ||
"interactive-notifications" | ||
], | ||
"main": "lib/src/index", | ||
"scripts": { | ||
"pretest": "./node_modules/.bin/eslint *.js test", | ||
"test": "./node_modules/.bin/mocha --compilers js:babel-register --reporter spec \"test/*.spec.js\"", | ||
"start": "node ./scripts/start" | ||
"start": "node ./scripts/start", | ||
"test-e2e-ios": "node ./scripts/test-e2e --ios" | ||
}, | ||
"nativePackage": true, | ||
"dependencies": { | ||
... | ... | @@ -34,9 +36,13 @@ |
"react-native": ">=0.25.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "16.x.x", | ||
"@types/react-native": "0.57.7", | ||
"@types/react-test-renderer": "16.x.x", | ||
"@babel/plugin-proposal-export-default-from": "7.2.0", | ||
"@babel/plugin-proposal-export-namespace-from": "7.2.0", | ||
"typescript": "3.2.2", | ||
"babel-eslint": "9.0.0", | ||
"babel-preset-react-native": "^1.9.0", | ||
"babel-register": "^6.7.2", | ||
"chai": "^3.5.0", | ||
"chokidar-cli": "^1.2.0", | ||
"eslint": "6.0.1", | ||
... | ... | @@ -45,8 +51,11 @@ |
"sinon": "^1.17.3", | ||
"sinon-chai": "^2.8.0", | ||
"shell-utils": "1.x.x", | ||
"react-native": "0.57.7", | ||
"react": "16.8.6" | ||
"react-native": "0.60.0", | ||
"react": "16.8.6", | ||
"detox": "12.x.x", | ||
"jest": "24.8.0", | ||
"metro-react-native-babel-preset": "0.55.x" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
... | ... | @@ -59,9 +68,59 @@ |
"bugs": { | ||
"url": "https://github.com/wix/react-native-notifications/issues" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"react-native" | ||
"detox": { | ||
"test-runner": "jest", | ||
"specs": "", | ||
"configurations": { | ||
"ios.none": { | ||
"binaryPath": "playground/ios/DerivedData/playground/Build/Products/Debug-iphonesimulator/playground.app", | ||
"type": "ios.none", | ||
"name": "iPhone X", | ||
"session": { | ||
"server": "ws://localhost:8099", | ||
"sessionId": "playground" | ||
} | ||
}, | ||
"ios.sim.debug": { | ||
"binaryPath": "example/ios/DerivedData/NotificationsExampleApp/Build/Products/Debug-iphonesimulator/NotificationsExampleApp.app", | ||
"build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild build -scheme NotificationsExampleApp -project example/ios/NotificationsExampleApp.xcodeproj -sdk iphonesimulator -configuration Debug -derivedDataPath example/ios/DerivedData/NotificationsExampleApp ONLY_ACTIVE_ARCH=YES -quiet -UseModernBuildSystem=NO", | ||
"type": "ios.simulator", | ||
"name": "iPhone X" | ||
}, | ||
"ios.sim.release": { | ||
"binaryPath": "playground/ios/DerivedData/playground/Build/Products/Release-iphonesimulator/playground.app", | ||
"build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild build -scheme playground_release -project playground/ios/playground.xcodeproj -sdk iphonesimulator -configuration Release -derivedDataPath playground/ios/DerivedData/playground ONLY_ACTIVE_ARCH=YES -quiet -UseModernBuildSystem=NO", | ||
"type": "ios.simulator", | ||
"name": "iPhone X" | ||
} | ||
} | ||
}, | ||
"jest": { | ||
"preset": "react-native", | ||
"transform": { | ||
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js" | ||
}, | ||
"roots": [ | ||
"<rootDir>/node_modules/" | ||
], | ||
"collectCoverageFrom": [ | ||
"lib/dist/**/*.js", | ||
"integration/**/*.js", | ||
"!lib/dist/index.js", | ||
"!lib/dist/Navigation.js", | ||
"!lib/dist/adapters/**/*", | ||
"!lib/dist/interfaces/**/*", | ||
"!lib/dist/**/*.test.*", | ||
"!integration/**/*.test.*", | ||
"!integration/*.test.*" | ||
], | ||
"resetMocks": true, | ||
"resetModules": true, | ||
"coverageReporters": [ | ||
"json", | ||
"lcov", | ||
"text", | ||
"html" | ||
] | ||
} | ||
} |
scripts/Utils.js
0 → 100644
scripts/test-e2e.js
0 → 100644
Please register or sign in to comment