jpush-react-native
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "jpush-react-native", | ||
"version": "0.0.2", | ||
"description": "jpush for react native", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/KenChoi1992/react-native-jpush-plugin.git" | ||
}, | ||
"keywords": [ | ||
"jpush", | ||
"react", | ||
"native" | ||
], | ||
"author": "KenChoi", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/KenChoi1992/react-native-jpush-plugin/issues" | ||
}, | ||
"homepage": "https://github.com/KenChoi1992/react-native-jpush-plugin#readme" | ||
"name": "jpush-react-native", | ||
"version": "0.0.3", | ||
"description": "a jpush plugin for react native application", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/KenChoi1992/react-native-jpush.git" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"native", | ||
"jpush" | ||
], | ||
"author": "KenChoi", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/KenChoi1992/react-native-jpush/issues" | ||
}, | ||
"homepage": "https://github.com/KenChoi1992/react-native-jpush#readme" | ||
} |
@@ -8,5 +8,5 @@ # react-native-jpush-plugin | ||
``` | ||
npm install jpush-for-react-native --save | ||
npm install jpush-react-native --save | ||
rnpm link jpush-for-react-native | ||
rnpm link jpush-react-native | ||
``` | ||
@@ -21,4 +21,4 @@ | ||
``` | ||
include ':app', ':jpush-for-react-native' | ||
project(':jpush-for-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jpush-for-react-native/android') | ||
include ':app', ':jpush-react-native' | ||
project(':jpush-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jpush-react-native/android') | ||
@@ -34,3 +34,3 @@ ``` | ||
compile fileTree(dir: "libs", include: ["*.jar"]) | ||
compile project(':jpush-for-react-native') | ||
compile project(':jpush-react-native') | ||
compile "com.facebook.react:react-native:+" // From node_modules | ||
@@ -40,9 +40,9 @@ } | ||
- 现在重新sync一下项目,应该能看到jpush-for-react-native作为一个android Library项目导进来了 | ||
- 现在重新sync一下项目,应该能看到jpush-react-native作为一个android Library项目导进来了 | ||
![](https://github.com/KenChoi1992/SomeArticles/blob/master/screenshots/plugin1.png) | ||
- 打开jpush-for-react-native的build.gradle文件,修改相关配置: | ||
- 打开jpush-react-native的build.gradle文件,修改相关配置: | ||
> jpush-for-react-native/android/build.gradle | ||
> jpush-react-native/android/build.gradle | ||
@@ -61,3 +61,3 @@ ![](https://github.com/KenChoi1992/SomeArticles/blob/master/screenshots/plugin2.png) | ||
``` | ||
import JPushModule from 'jpush-for-react-native'; | ||
import JPushModule from 'jpush-react-native'; | ||
@@ -81,3 +81,3 @@ ... | ||
关于JPushModule的具体方法可以参考jpush-for-react-native文件夹下的index.js文件,此处将方法罗列如下: | ||
关于JPushModule的具体方法可以参考jpush-react-native文件夹下的index.js文件,此处将方法罗列如下: | ||
@@ -84,0 +84,0 @@ - initPush() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12848418
6