- Restructure as yarn workspace with packages/common, im, push, update
- @xuqm/rn-common: built-in URLs (no apiBaseUrl/imWsUrl in init), init({appId, debug})
- @xuqm/rn-im: login(userId) handles token internally, no token in public API
- @xuqm/rn-update: registerPlugin({moduleId,version}) for self-registration,
checkAppUpdate() auto-detects version via XuqmVersionModule native bridge,
checkRnUpdate(moduleId) uses registered version (no app-layer arg)
- Add XuqmVersionModule native stubs for Android/iOS
- Keep @xuqm/rn-sdk as convenience meta-package re-exporting all
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 行
567 B
JSON
22 行
567 B
JSON
{
|
|
"name": "@xuqm/rn-push",
|
|
"version": "0.2.0",
|
|
"description": "XuqmGroup RN SDK — Push module (device token registration)",
|
|
"main": "src/index.ts",
|
|
"react-native": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"private": false,
|
|
"publishConfig": {
|
|
"registry": "https://nexus.xuqinmin.com/repository/npm-hosted/"
|
|
},
|
|
"scripts": { "typecheck": "tsc --noEmit" },
|
|
"peerDependencies": {
|
|
"@xuqm/rn-common": ">=0.2.0",
|
|
"react-native": ">=0.76.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.9.3",
|
|
"@types/react-native": "^0.73.0"
|
|
}
|
|
}
|