Files
jpush-phonegap-plugin/cursor.md
2025-10-21 16:29:27 +08:00

33 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
使用方法修改需求里的内容将需求和步骤内容作为指令让cursor进行执行。
需求:
1. 更新iOS JPush SDK 到 x.x.x 版本, JPush SDK 包的路径是xxx
2. 更新Android JPush SDK 到 x.x.x 版本, JPush SDK 包的路径是xxx
3. 将原生iOS、Android SDK 新增的方法,封装在插件中。
原生SDK新增方法一
iOS:
```
```
Android:
```
```
统一封装为 方法名为 "" 的对外方法。
请按照以下步骤完成:
1. 找到需要升级的iOS JPush SDK替换src/ios/jpush-ios-x.x.x.xcframework 为需要更新的版本。
2. 将plugin.xml中关于jpush-ios-x.x.x.xcframework相关的引用替换为需要更新的版本。
3. 找到需要升级的Android JPush SDK替换src/android/jpush-android-x.x.x.jar 为需要更新的版本。
4. 将plugin.xml中关于jpush-android-x.x.x.jar相关的引用替换为需要更新的版本。
5. 封装新增的方法。(如果没有新增的方法就不用执行这一步)
6. 在plugin.xml中更新插件版本号使用安卓SDK包的版本号。
7. 在package.json中更新插件版本号使用安卓SDK包的版本号。