Skip to content

Commit e03b9a0

Browse files
committed
新增cursor快速更新模版文档
1 parent 11c4b92 commit e03b9a0

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
example/
2+
cursor.md

cursor.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
使用方法:修改需求里的内容,将需求和步骤内容作为指令让cursor进行执行。
3+
4+
5+
需求:
6+
1. 更新iOS JPush SDK 到 x.x.x 版本。JPush SDK 包的路径是:xxx
7+
2. 更新Android JPush SDK 到 x.x.x 版本, JPush SDK 包的路径是:xxx
8+
3. 将原生iOS、Android SDK 新增的方法,封装在插件中。
9+
原生SDK新增方法一:
10+
iOS :
11+
12+
```
13+
```
14+
15+
Android:
16+
17+
```
18+
```
19+
20+
统一封装为 方法名为 "" 的对外方法。
21+
22+
23+
请按照以下步骤完成:
24+
25+
1. 找到需要升级的iOS JPush SDK,替换ios/RCTJPushModule/jpush-ios-x.x.x.xcframework 为需要更新的版本。
26+
2. 找到需要升级的Android JPush SDK,替换android/libs/jpush-android-x.x.x.jar 为需要更新的版本。
27+
3. 在插件中封装需求中需要封装的SDK方法,并在插件示例demo中提供示例调用代码,注意rn插件新增方法还需要再index.js和index.d.ts文件中声明哦。(如果没有需求中没有需要新增的方法,则跳过该步骤)
28+
4. 在package.json中更新插件版本号,在现有版本号上 + 0.0.1
29+
5. 在example/package.json 中 修改示例 插件的集成版本号。 改为最新的插件版本号。涉及到更改的代码
30+
31+
```
32+
"dependencies": {
33+
...
34+
"jpush-react-native": "^x.x.x",
35+
...
36+
37+
```
38+
39+
40+

0 commit comments

Comments
 (0)