2026-08-17 15:29:55 +08:00
|
|
|
|
name: core_webview
|
|
|
|
|
|
description: H5 容器。域名白名单、JSBridge、WebView 会话管理。
|
|
|
|
|
|
publish_to: none
|
|
|
|
|
|
version: 0.1.0
|
|
|
|
|
|
resolution: workspace
|
|
|
|
|
|
|
|
|
|
|
|
# core_webview → core_auth 是 01 允许的三条 core 间依赖之一(bridge 要读会话上下文)。
|
|
|
|
|
|
# 「用 target 换真实 URL」的接口调用**不在本包**——那需要 core_network,不是允许的边。
|
|
|
|
|
|
# 换票由调用方(feature)完成后把 URL 传进来,本包只负责校验和承载。
|
|
|
|
|
|
environment:
|
2026-09-02 23:23:43 +08:00
|
|
|
|
sdk: ^3.11.0
|
2026-08-17 15:29:55 +08:00
|
|
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
|
|
core_auth: ^0.1.0
|
|
|
|
|
|
core_foundation: ^0.1.0
|
|
|
|
|
|
flutter:
|
|
|
|
|
|
sdk: flutter
|
2026-09-02 23:23:43 +08:00
|
|
|
|
flutter_riverpod: 3.2.1
|
2026-09-04 14:25:34 +08:00
|
|
|
|
# Pub.dev 的 webview_flutter 不声明 OHOS 实现。固定到 CPF-Flutter 的 OHOS
|
|
|
|
|
|
# 适配版本(同 core_storage 里 shared_preferences 的处理方式)。
|
|
|
|
|
|
webview_flutter:
|
|
|
|
|
|
git:
|
|
|
|
|
|
url: https://gitcode.com/CPF-Flutter/flutter_packages.git
|
|
|
|
|
|
# 固定 commit(webview_flutter-v4.13.1-ohos-1.0.2 标签),不用分支名。
|
|
|
|
|
|
ref: 89476bb7432938a54e5b09b449d1d031e85f0e5c
|
|
|
|
|
|
path: packages/webview_flutter/webview_flutter
|
2026-08-17 15:29:55 +08:00
|
|
|
|
|
|
|
|
|
|
dev_dependencies:
|
|
|
|
|
|
flutter_lints: ^6.0.0
|
|
|
|
|
|
flutter_test:
|
|
|
|
|
|
sdk: flutter
|