Merge pull request #342 from wix/newAPIChangesIOS
Migrate to new iOS api's, remove unnecessary api functions
Showing
This diff is collapsed.
This diff is collapsed.
RNNotifications/RNPushKit.h
0 → 100644
RNNotifications/RNPushKit.m
0 → 100644
babel.config.js
0 → 100644
e2e/Notifications.test.js
0 → 100644
e2e/Utils.js
0 → 100644
e2e/config.json
0 → 100644
e2e/init.js
0 → 100644
This diff is collapsed.
example/package.json
deleted
100644 → 0
index.js
0 → 100644
metro.config.js
0 → 100644
{ | { | ||
"name": "react-native-notifications", | "name": "react-native-notifications", | ||
"version": "1.5.0", | "version": "2.0.0", | ||
"description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", | "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", | ||
"author": "Lidan Hifi <lidan.hifi@gmail.com>", | "author": "Lidan Hifi <lidan.hifi@gmail.com>", | ||
"license": "MIT", | "license": "MIT", | ||
... | @@ -19,6 +19,13 @@ | ... | @@ -19,6 +19,13 @@ |
"actionable-notifications", | "actionable-notifications", | ||
"interactive-notifications" | "interactive-notifications" | ||
], | ], | ||
"main": "lib/src/index", | |||
"scripts": { | |||
"pretest": "./node_modules/.bin/eslint *.js test", | |||
"test": "jest", | |||
"start": "node ./scripts/start", | |||
"test-e2e-ios": "node ./scripts/test-e2e --ios" | |||
}, | |||
"nativePackage": true, | "nativePackage": true, | ||
"dependencies": { | "dependencies": { | ||
"core-js": "^1.0.0", | "core-js": "^1.0.0", | ||
... | @@ -29,21 +36,27 @@ | ... | @@ -29,21 +36,27 @@ |
"react-native": ">=0.25.1" | "react-native": ">=0.25.1" | ||
}, | }, | ||
"devDependencies": { | "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-eslint": "9.0.0", | ||
"babel-preset-react-native": "^1.9.0", | |||
"babel-register": "^6.7.2", | |||
"chai": "^3.5.0", | "chai": "^3.5.0", | ||
"chokidar-cli": "^1.2.0", | "chokidar-cli": "^1.2.0", | ||
"eslint": "5.1.x", | "eslint": "6.0.1", | ||
"mocha": "^2.5.3", | "mocha": "^2.5.3", | ||
"proxyquire": "^1.7.4", | "proxyquire": "^1.7.4", | ||
"sinon": "^1.17.3", | "sinon": "^1.17.3", | ||
"sinon-chai": "^2.8.0" | "sinon-chai": "^2.8.0", | ||
}, | "shell-utils": "1.x.x", | ||
"scripts": { | "react-native": "0.60.0", | ||
"pretest": "./node_modules/.bin/eslint *.js test", | "react": "16.8.6", | ||
"test": "./node_modules/.bin/mocha --compilers js:babel-register --reporter spec \"test/*.spec.js\"", | "detox": "13.x.x", | ||
"start": "npm run test --silent; ./node_modules/.bin/chokidar \"test/*.js\" \"*.js\" -c 'npm run test --silent' --silent" | "jest": "24.8.0", | ||
"metro-react-native-babel-preset": "0.55.x", | |||
"@babel/register": "7.4.4" | |||
}, | }, | ||
"publishConfig": { | "publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | "registry": "https://registry.npmjs.org/" | ||
... | @@ -56,9 +69,60 @@ | ... | @@ -56,9 +69,60 @@ |
"bugs": { | "bugs": { | ||
"url": "https://github.com/wix/react-native-notifications/issues" | "url": "https://github.com/wix/react-native-notifications/issues" | ||
}, | }, | ||
"babel": { | "detox": { | ||
"presets": [ | "test-runner": "jest", | ||
"react-native" | "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/", | |||
"<rootDir>/test/" | |||
], | |||
"collectCoverageFrom": [ | |||
"lib/src/**/*.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/start.js
0 → 100644
scripts/test-e2e.js
0 → 100644
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
wallaby.js
0 → 100644
Please register or sign in to comment