Skip to content

Commit cd32fef

Browse files
committed
新增cursor快速更新模版文档
1 parent 2584a65 commit cd32fef

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.npmignore

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

cursor.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
使用方法:修改需求里的内容,将需求和步骤内容作为指令让cursor进行执行。
3+
4+
5+
需求:
6+
1. 更新iOS JCore SDK 到 x.x.x 版本。JCore SDK 包的路径是:xxx
7+
2. 更新Android JCore SDK 到 x.x.x 版本, JCore 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/jcore-ios-x.x.x.xcframework 为需要更新的版本。
26+
2. 找到需要升级的Android JPush SDK,替换android/libs/jcore-android-x.x.x.jar 为需要更新的版本。
27+
3. 在插件中封装需求中需要封装的SDK方法,并在插件示例demo中提供示例调用代码,注意rn插件新增方法还需要再index.js和index.d.ts文件中声明哦。(如果没有需求中没有需要新增的方法,则跳过该步骤)
28+
4. 在package.json中更新插件版本号,在现有版本号上 + 0.0.1
29+
30+
31+

0 commit comments

Comments
 (0)