Merge pull request #1 from wix/v3
V3 merge
Showing
.dockerignore
0 → 100755
.github/main.workflow
0 → 100644
.github/stale.yml
0 → 100644
.github/support.yml
0 → 100644
.grenrc.js
0 → 100644
CHANGELOG.gren.md
0 → 100644
CHANGELOG.md
0 → 100644
CODEOWNERS
0 → 100644
Dockerfile
0 → 100755
android/.gitignore
deleted
100644 → 0
android/build.gradle
deleted
100644 → 0
babel.config.js
0 → 100644
docker-compose.yml
0 → 100755
docs/advanced-ios.md
0 → 100644
docs/android-api.md
0 → 100755
docs/general-api.md
0 → 100755
docs/general-events.md
0 → 100755
docs/installation-android.md
0 → 100755
docs/installation-ios.md
0 → 100755
docs/ios-api.md
0 → 100755
docs/ios-events.md
0 → 100755
docs/notification-object.md
0 → 100755
docs/notifications-events.md
0 → 100644
docs_old/subscription.md
0 → 100644
e2e/Notifications.test.js
0 → 100644
e2e/Utils.js
0 → 100644
e2e/config.json
0 → 100644
e2e/init.js
0 → 100644
example/index.ios.js
deleted
100644 → 0
example/index.js
0 → 100644
example/package.json
deleted
100644 → 0
index.android.js
deleted
100644 → 0
index.ios.js
deleted
100644 → 0
index.js
0 → 100644
lib/android/.project
0 → 100644
lib/android/app/.gitignore
0 → 100644
File added
File added
File added
lib/android/app/build.gradle
0 → 100644
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
lib/android/build.gradle
0 → 100644
File added
lib/android/gradlew
0 → 100755
lib/android/gradlew.bat
0 → 100644
lib/android/settings.gradle
0 → 100644
lib/ios/OCMock/OCMArg.h
0 → 100644
lib/ios/OCMock/OCMLocation.h
0 → 100644
lib/ios/OCMock/OCMRecorder.h
0 → 100644
lib/ios/OCMock/OCMock.h
0 → 100644
lib/ios/RNBridgeModule.h
0 → 100644
lib/ios/RNBridgeModule.m
0 → 100644
lib/ios/RNCommandsHandler.h
0 → 100644
lib/ios/RNCommandsHandler.m
0 → 100644
lib/ios/RNEventEmitter.h
0 → 100644
lib/ios/RNEventEmitter.m
0 → 100644
lib/ios/RNNotifications.h
0 → 100644
lib/ios/RNNotifications.m
0 → 100644
File moved
lib/ios/RNPushKit.h
0 → 100644
lib/ios/RNPushKit.m
0 → 100644
lib/ios/libOCMock.a
0 → 100644
File added
lib/src/DTO/Notification.ts
0 → 100644
lib/src/Notifications.ts
0 → 100644
lib/src/NotificationsIOS.ts
0 → 100644
lib/src/commands/Commands.ts
0 → 100644
lib/src/index.ts
0 → 100644
metro.config.js
0 → 100644
notification.ios.js
deleted
100644 → 0
| { | { | ||
| "name": "react-native-notifications", | "name": "react-native-notifications", | ||
| "version": "1.1.23", | "version": "3.0.0-beta.1", | ||
| "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,31 +19,56 @@ | ... | @@ -19,31 +19,56 @@ |
| "actionable-notifications", | "actionable-notifications", | ||
| "interactive-notifications" | "interactive-notifications" | ||
| ], | ], | ||
| "nativePackage": true, | "main": "lib/dist/index.js", | ||
| "dependencies": { | "typings": "lib/dist/index.d.ts", | ||
| "core-js": "^1.0.0", | "scripts": { | ||
| "uuid": "^2.0.3" | "build": "rm -rf ./lib/dist && tsc", | ||
| "prestart": "npm run build", | |||
| "pretest-js": "npm run build", | |||
| "pretest-unit-ios": "npm run build", | |||
| "pretest-unit-android": "npm run build", | |||
| "test": "node scripts/test", | |||
| "start": "node ./scripts/start", | |||
| "pretest-e2e-ios-release": "npm run build", | |||
| "clean": "node ./scripts/clean", | |||
| "test-e2e-ios": "node ./scripts/test-e2e --ios", | |||
| "test-e2e-ios-release": "node ./scripts/test-e2e --ios --release", | |||
| "test-unit-ios": "node ./scripts/test-unit --ios", | |||
| "test-unit-android": "node ./scripts/test-unit --android", | |||
| "test-js": "node ./scripts/test-js", | |||
| "xcode": "open example/ios/NotificationsExampleApp.xcodeproj", | |||
| "androidStudio": "open -a /Applications/Android\\ Studio.app ./example/android", | |||
| "prerelease": "npm run build", | |||
| "release": "node ./scripts/release", | |||
| "generate-changelog": "gren changelog" | |||
| }, | }, | ||
| "nativePackage": true, | |||
| "peerDependencies": { | "peerDependencies": { | ||
| "react": ">=0.14.5", | "react": ">=0.14.5", | ||
| "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", | |||
| "@types/jest": "23.x.x", | |||
| "@types/lodash": "4.x.x", | |||
| "typescript": "3.2.2", | |||
| "babel-eslint": "9.0.0", | "babel-eslint": "9.0.0", | ||
| "babel-preset-react-native": "^1.9.0", | "tslint": "5.x.x", | ||
| "babel-register": "^6.7.2", | "ts-mockito": "^2.3.1", | ||
| "chai": "^3.5.0", | |||
| "chokidar-cli": "^1.2.0", | |||
| "eslint": "5.1.x", | |||
| "mocha": "^2.5.3", | "mocha": "^2.5.3", | ||
| "proxyquire": "^1.7.4", | "shell-utils": "1.x.x", | ||
| "sinon": "^1.17.3", | "react-native": "0.60.5", | ||
| "sinon-chai": "^2.8.0" | "react": "16.8.6", | ||
| }, | "detox": "14.x.x", | ||
| "scripts": { | "jsc-android": "236355.x.x", | ||
| "pretest": "./node_modules/.bin/eslint *.js test", | "jest": "24.8.0", | ||
| "test": "./node_modules/.bin/mocha --compilers js:babel-register --reporter spec \"test/*.spec.js\"", | "metro-react-native-babel-preset": "0.55.x", | ||
| "start": "npm run test --silent; ./node_modules/.bin/chokidar \"test/*.js\" \"*.js\" -c 'npm run test --silent' --silent" | "react-native-typescript-transformer": "1.2.12", | ||
| "github-release-notes": "0.17.0" | |||
| }, | }, | ||
| "publishConfig": { | "publishConfig": { | ||
| "registry": "https://registry.npmjs.org/" | "registry": "https://registry.npmjs.org/" | ||
| ... | @@ -56,9 +81,63 @@ | ... | @@ -56,9 +81,63 @@ |
| "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 11", | |||
| "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 11" | |||
| }, | |||
| "ios.sim.release": { | |||
| "binaryPath": "example/ios/DerivedData/NotificationsExampleApp/Build/Products/Release-iphonesimulator/NotificationsExampleApp.app", | |||
| "build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild build -scheme NotificationsExampleApp_release -project example/ios/NotificationsExampleApp.xcodeproj -sdk iphonesimulator -configuration Release -derivedDataPath example/ios/DerivedData/NotificationsExampleApp ONLY_ACTIVE_ARCH=YES -quiet -UseModernBuildSystem=NO", | |||
| "type": "ios.simulator", | |||
| "name": "iPhone 11" | |||
| } | |||
| } | |||
| }, | |||
| "jest": { | |||
| "preset": "react-native", | |||
| "transform": { | |||
| "^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js" | |||
| }, | |||
| "roots": [ | |||
| "<rootDir>/node_modules/", | |||
| "<rootDir>/lib/dist/" | |||
| ], | |||
| "collectCoverageFrom": [ | |||
| "lib/dist/**/*.js", | |||
| "lib/src/**/*.js", | |||
| "integration/**/*.js", | |||
| "!lib/dist/index.js", | |||
| "!lib/dist/Notifications.js", | |||
| "!lib/dist/NotificationsIOS.js", | |||
| "!lib/dist/NotificationsAndroid.js", | |||
| "!lib/dist/adapters/**/*", | |||
| "!lib/dist/interfaces/**/*", | |||
| "!lib/dist/**/*.test.*", | |||
| "!integration/**/*.test.*", | |||
| "!integration/*.test.*" | |||
| ], | |||
| "resetMocks": true, | |||
| "resetModules": true, | |||
| "coverageReporters": [ | |||
| "json", | |||
| "lcov", | |||
| "text", | |||
| "html" | |||
| ] | ] | ||
| } | } | ||
| } | } | ||
| \ No newline at end of file |
scripts/clean.js
0 → 100644
scripts/install.android.sh
0 → 100755
scripts/install.ios.sh
0 → 100755
scripts/install.sh
0 → 100755
scripts/release.js
0 → 100644
scripts/start.js
0 → 100644
scripts/test-e2e.js
0 → 100644
scripts/test-js.js
0 → 100644
scripts/test-unit.js
0 → 100644
scripts/test.js
0 → 100644
tsconfig-strict.json
0 → 100644
tsconfig.json
0 → 100644
wallaby.js
0 → 100644
website/README.md
0 → 100755
website/core/Footer.js
0 → 100755
website/i18n/en.json
0 → 100644
website/package.json
0 → 100644
website/pages/en/help.js
0 → 100755
website/pages/en/index_.js
0 → 100755
website/pages/en/users.js
0 → 100755
website/sidebars.json
0 → 100755
website/siteConfig.js
0 → 100644
766 Bytes
4.27 KB
website/static/index.html
0 → 100644