fix: hoist MLRN peer dependency in particle package
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
This commit is contained in:
@@ -5,3 +5,4 @@
|
||||
- 基于 MapLibre Native 13.4.1 的 Android OpenGL Particle 发行线。
|
||||
- 包含 WeatherColor、RasterParticle、HostField binary file ingress、Timeline / Playback 与 React Native WeatherRuntime。
|
||||
- Native/RN binary ingress 已在 STEP-061 验证;GSI + 真实 WeatherV2 + Particle Android 综合验证已在 STEP-062 完成。
|
||||
- 发布前 Consumer 验证修正 MLRN 依赖为 peer dependency,避免嵌套 native module 与 Windows codegen 长路径。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# @navsea/maplibre-particle-rn
|
||||
|
||||
`13.4.1-particle.1` 是 NavSea 维护的 MapLibre Particle React Native 入口。Consumer 只直接安装本包;它以唯一 `@maplibre/maplibre-react-native` native module 提供 `Map`、`Camera` 等 MapLibre RN API,并以 `WeatherRuntime` 提供既有 HostField/Timeline 低频控制。
|
||||
`13.4.1-particle.1` 是 NavSea 维护的 MapLibre Particle React Native 入口。Consumer 只直接安装本包;本包将 `@maplibre/maplibre-react-native@11.3.6` 声明为 peer dependency,使 npm 将唯一 MLRN 放在 App 根依赖层,并由其提供 `Map`、`Camera` 等 MapLibre RN API,并以 `WeatherRuntime` 提供既有 HostField/Timeline 低频控制。
|
||||
|
||||
Android 使用 `cc.navsea.maplibre:android-sdk-particle-opengl:13.4.1-particle.1`。Expo Consumer 应在 app config 加入 `@navsea/maplibre-particle-rn/app.plugin`;plugin 将 MLRN 对 OpenGL SDK 的请求替换为该唯一 NavSea artifact,避免官方与 Particle AAR 同时进入 APK。正式 Android Maven 仓库为 `https://pbf.jpcn.ccwu.cc/maven`;plugin 会自动加入该仓库。npm registry 尚未决定时,可先安装本包的 `.tgz` 做发布包验证。
|
||||
|
||||
|
||||
@@ -15,22 +15,36 @@
|
||||
"CHANGELOG.md",
|
||||
"LICENSE.md"
|
||||
],
|
||||
"keywords": ["navsea", "maplibre", "particle", "react-native", "weather"],
|
||||
"repository": { "type": "git", "url": "https://git.eyaku.jp/tei/MapLibreParticleLab" },
|
||||
"dependencies": {
|
||||
"@maplibre/maplibre-react-native": "11.3.6"
|
||||
"keywords": [
|
||||
"navsea",
|
||||
"maplibre",
|
||||
"particle",
|
||||
"react-native",
|
||||
"weather"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.eyaku.jp/tei/MapLibreParticleLab"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@maplibre/maplibre-react-native": "11.3.6",
|
||||
"react": ">=19.1.0",
|
||||
"react-native": ">=0.80.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"expo": { "optional": true }
|
||||
"expo": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"codegenConfig": {
|
||||
"name": "WeatherRuntimeBridgeSpec",
|
||||
"type": "modules",
|
||||
"jsSrcsDir": "src",
|
||||
"android": { "javaPackageName": "org.navsea.maplibre.particle.weather" }
|
||||
"android": {
|
||||
"javaPackageName": "org.navsea.maplibre.particle.weather"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@maplibre/maplibre-react-native": "11.3.6"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user