首页
开源
资讯
活动
开源许可证
软件工程云服务
软件代码质量检测云服务
持续集成与部署云服务
社区个性化内容推荐服务
贡献审阅人推荐服务
群体化学习服务
重睛鸟代码扫描工具
登录
注册
代码拉取完成,页面将自动刷新
Watch
21
Star
146
Fork
14
鸿蒙突击队
/
flutter
Fork 仓库
加载中
取消
确认
代码
Issues
31
Pull Requests
3
Wiki
0
统计
更新失败,请稍后重试!
Issues
/
详情
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
修改了包配置,flutter clean & flutter pub get 后oh_packages.json5不会自动清理旧的包配置
意向
#IB81JS
需求
xiaopindev
创建于
2024-11-30 11:00
【问题描述】 我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。 【我的环境】 MacOS 15.1 M2芯片 【最后解决】 需要手动的从oh_packages.json5文件中删除我在pubspec.yaml中注释的对应的包配置。 【诉求】 希望大佬们验证一下,flutter clean & flutter pub get 不能自动清理和自动配置问题,说明一下情况。 【我的pubspec.yaml文件】 由于配图违规,这里附上我的配置文件 ``` dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter cupertino_icons: ^1.0.6 # 鸿蒙已适配版本 path_provider: ^2.1.1 #沙盒存储 shared_preferences: ^2.2.2 #本地轻量数据存储 file_selector: ^1.0.1 #文件选择器 image_picker: ^1.0.4 #媒体文件选择器 animations: ^2.0.8 #动画 url_launcher: ^6.1.11 #打开网页、电话、短信、邮件 local_auth: ^2.1.6 #生物识别 webview_flutter: ^4.4.4 #网页加载 connectivity_plus: ^5.0.2 #网络检测 device_info_plus: ^9.1.2 #获取设备信息 network_info_plus: ^6.0.0 #网络信息 package_info_plus: ^4.2.0 #获取应用信息 share_plus: ^7.2.2 #获取应用信息 audioplayers: ^4.1.0 #声音播放 flutter_keyboard_visibility: ^6.0.0 #键盘显示隐藏 flutter_local_notifications: ^18.0.1 #本地通知 in_app_purchase: ^3.1.11 #订阅内购 sqflite: ^2.2.8+4 #db数据库 open_app_settings: ^2.0.1 # permission_handler: ^11.3.1 #权限处理 dependency_overrides: # 鸿蒙适配库 path_provider: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/path_provider/path_provider" shared_preferences: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/shared_preferences/shared_preferences" # image_picker: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/image_picker/image_picker" # file_selector: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/file_selector/file_selector" # animations: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/animations" url_launcher: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/url_launcher/url_launcher" # local_auth: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/local_auth/local_auth" in_app_purchase: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/in_app_purchase/in_app_purchase" webview_flutter: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/webview_flutter-v4.4.4/webview_flutter" connectivity_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/connectivity_plus/connectivity_plus" device_info_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/device_info_plus/device_info_plus" # network_info_plus: # git: # url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" # path: "packages/network_info_plus/network_info_plus" package_info_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/package_info_plus/package_info_plus" share_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/share_plus/share_plus" # battery_plus: # git: # url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" # path: "packages/battery_plus/battery_plus" audioplayers: git: url: "https://gitee.com/openharmony-sig/flutter_audioplayers.git" path: "packages/audioplayers" flutter_keyboard_visibility: git: url: "https://gitee.com/openharmony-sig/flutter_keyboard_visibility.git" path: "flutter_keyboard_visibility" # flutter_local_notifications: # git: # url: "https://gitee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git" # path: "flutter_local_notifications" sqflite: git: url: "https://gitee.com/openharmony-sig/flutter_sqflite.git" path: "sqflite" # permission_handler: # git: # url: "https://gitee.com/openharmony-sig/flutter_permission_handler.git" # path: "permission_handler" open_app_settings: git: url: "https://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git" path: "" ```
【问题描述】 我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。 【我的环境】 MacOS 15.1 M2芯片 【最后解决】 需要手动的从oh_packages.json5文件中删除我在pubspec.yaml中注释的对应的包配置。 【诉求】 希望大佬们验证一下,flutter clean & flutter pub get 不能自动清理和自动配置问题,说明一下情况。 【我的pubspec.yaml文件】 由于配图违规,这里附上我的配置文件 ``` dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter cupertino_icons: ^1.0.6 # 鸿蒙已适配版本 path_provider: ^2.1.1 #沙盒存储 shared_preferences: ^2.2.2 #本地轻量数据存储 file_selector: ^1.0.1 #文件选择器 image_picker: ^1.0.4 #媒体文件选择器 animations: ^2.0.8 #动画 url_launcher: ^6.1.11 #打开网页、电话、短信、邮件 local_auth: ^2.1.6 #生物识别 webview_flutter: ^4.4.4 #网页加载 connectivity_plus: ^5.0.2 #网络检测 device_info_plus: ^9.1.2 #获取设备信息 network_info_plus: ^6.0.0 #网络信息 package_info_plus: ^4.2.0 #获取应用信息 share_plus: ^7.2.2 #获取应用信息 audioplayers: ^4.1.0 #声音播放 flutter_keyboard_visibility: ^6.0.0 #键盘显示隐藏 flutter_local_notifications: ^18.0.1 #本地通知 in_app_purchase: ^3.1.11 #订阅内购 sqflite: ^2.2.8+4 #db数据库 open_app_settings: ^2.0.1 # permission_handler: ^11.3.1 #权限处理 dependency_overrides: # 鸿蒙适配库 path_provider: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/path_provider/path_provider" shared_preferences: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/shared_preferences/shared_preferences" # image_picker: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/image_picker/image_picker" # file_selector: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/file_selector/file_selector" # animations: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/animations" url_launcher: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/url_launcher/url_launcher" # local_auth: # git: # url: "https://gitee.com/openharmony-sig/flutter_packages.git" # path: "packages/local_auth/local_auth" in_app_purchase: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/in_app_purchase/in_app_purchase" webview_flutter: git: url: "https://gitee.com/openharmony-sig/flutter_packages.git" path: "packages/webview_flutter-v4.4.4/webview_flutter" connectivity_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/connectivity_plus/connectivity_plus" device_info_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/device_info_plus/device_info_plus" # network_info_plus: # git: # url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" # path: "packages/network_info_plus/network_info_plus" package_info_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/package_info_plus/package_info_plus" share_plus: git: url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" path: "packages/share_plus/share_plus" # battery_plus: # git: # url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" # path: "packages/battery_plus/battery_plus" audioplayers: git: url: "https://gitee.com/openharmony-sig/flutter_audioplayers.git" path: "packages/audioplayers" flutter_keyboard_visibility: git: url: "https://gitee.com/openharmony-sig/flutter_keyboard_visibility.git" path: "flutter_keyboard_visibility" # flutter_local_notifications: # git: # url: "https://gitee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git" # path: "flutter_local_notifications" sqflite: git: url: "https://gitee.com/openharmony-sig/flutter_sqflite.git" path: "sqflite" # permission_handler: # git: # url: "https://gitee.com/openharmony-sig/flutter_permission_handler.git" # path: "permission_handler" open_app_settings: git: url: "https://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git" path: "" ```
评论 (
0
)
xiaopindev
创建了
需求
xiaopindev
修改了
描述
原值
内容可能含有违规信息
新值
内容可能含有违规信息
xiaopindev
修改了
描述
原值
内容可能含有违规信息
新值
内容可能含有违规信息
xiaopindev
修改了
描述
原值
内容可能含有违规信息
新值
内容可能含有违规信息
xiaopindev
修改了
描述
原值
内容可能含有违规信息
新值
内容可能含有违规信息
xiaopindev
修改了
描述
原值
内容可能含有违规信息
新值
内容可能含有违规信息
xiaopindev
修改了
描述
原值
【问题描述】
我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。
【最后解决】
需要手动的从oh_packages.json5文件中删除我在pubspec.yaml中注释的对应的包配置。
【诉求】
希望大佬们验证一下,flutter clean & flutter pub get 不能自动清理和自动配置问题,说明一下情况。
【我的pubspec.yaml文件】
dependencies:
flutter:
s
d
k: flutter
flutter
_localizations:
sdk: flutter
cupertino_icons: ^1.0.6
# 鸿蒙已适配版本
path_provider: ^2.1.1 #沙盒存储
shared_preferences: ^2.2.2 #本地轻量数据存储
file
_
selecto
r: ^
1
.
0
.1 #
文件选择器
im
a
g
e
_picker: ^1.0.4 #媒体文件选择器
animations: ^2.0.8 #动画
url_laun
c
h
er: ^
6
.
1
.
11 #打开网页、电话、短信、邮件
local_auth
: ^2.
1
.
6
#
生物识别
webview_flutter: ^4.4.4 #
网页
加载
c
o
nnectivity_plus:
^5.0.2 #网络检测
d
e
vic
e
_info_plus: ^9.1.2 #获取设备信息
network_info
_plus: ^
6
.0.
0
#网络
信息
package_info_plus: ^4.2.0 #获取应用信息
share_plus: ^7.2.2
#获取应用信息
audioplayers: ^4.1.0 #声音播放
flutter_keyboard_visibility: ^6.0.0 #键盘显示隐藏
flutter_local_notifications: ^18.0.1 #本地通知
in_app_purchase: ^3.1.11 #订阅内购
sqflite: ^2.2.8+4 #db数据库
open_ap
p
_settings: ^2
.
0.1
# permission_handler: ^11.3.1 #权限处理
dependency
_
overrides:
#
鸿蒙适配库
p
ath_provid
er
:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/path_provider/path_provider"
shared_preferences:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/shared_preferences/shared_preferences"
#
image_picker:
#
gi
t
:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/image_picker/image_picker"
#
file_selector:
#
git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/file_selector/file_selector"
#
animations:
#
git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/animations"
url_la
u
ncher:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/url_launcher/url_launcher"
#
loca
l
_auth:
#
gi
t
:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/local_auth/local_auth"
in_app_purchase:
git:
url: "https
:
//gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/in_app_purchase/in_app_purchase"
webview_flu
tt
er
:
git:
url: "h
tt
ps
:
//gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/webview_flutter-v4.4.4/webview_flutter"
connectivity_
p
lus:
git:
url: "htt
p
s://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/connectivity_plus/connectivity_plus"
device_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/device_info_plus/device_info_plus"
#
network_info_plus:
#
gi
t
:
#
u
r
l: "htt
p
s://gitee.com/openharmony-sig/flutter_plus_plugins.git"
#
path: "packages/network_info_plus/network_info_plus"
package_info_plu
s:
git:
url: "htt
p
s://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/package_info_plus/package_info_plus"
share_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/share_plus/share_plus"
#
battery_plus:
#
gi
t
:
#
u
r
l: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
#
path: "packages/battery_plus/battery_plus"
audioplayers:
git:
ur
l
: "https://gitee.com/openharmony-sig/flutter_audioplayers.git"
path: "packages/audioplayers"
flutter_keyboard_visibility:
git:
url: "https://gitee.com/openharmony-sig/flutter_keyboard_visibility.git"
path: "flutter_keyboard_visibility"
#
fl
u
tter_local_not
i
fications:
#
gi
t
:
#
url: "https://g
i
tee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git"
#
path: "flutter_local_notifications"
sqflite:
git:
url
:
"https://gitee.com/openharmony-sig/flutter_sqflite.git"
path: "sqflite"
#
permission_handler:
#
gi
t
:
#
url: "https://gitee.com/openharmony-sig/flutter_permission_handler.git"
#
path: "permission_handler"
open_app_setting
s:
git:
url: "h
tt
ps://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git"
path: ""
新值
【问题描述】
我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。
【最后解决】
需要手动的从oh_packages.json5文件中删除我在pubspec.yaml中注释的对应的包配置。
【诉求】
希望大佬们验证一下,flutter clean & flutter pub get 不能自动清理和自动配置问题,说明一下情况。
【我的pubspec.yaml文件】
```
depen
d
encies:
flutter
:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.6
# 鸿蒙已适配版本
path
_
provide
r: ^
2
.
1
.1 #
沙盒存储
sh
a
r
e
d_preferences: ^2.2.2 #本地轻量数据存储
file_selector: ^1.0.1 #文件选择器
image_pi
c
k
er: ^
1
.
0
.
4 #媒体文件选择器
animations
: ^2.
0
.
8
#
动画
url_launcher: ^6.1.11 #打开
网页
、电话、短信、邮件
l
o
cal_auth: ^2.1.6
#生物识别
w
e
bvi
e
w_flutter: ^4.4.4 #网页加载
connectivity
_plus: ^
5
.0.
2
#网络
检测
device_info_plus: ^9.1.2 #获取设备信息
network_info_plus:
^6.0.0 #网络信息
package_info_plus: ^4.2.0 #获取应用信息
share_plus: ^7.2.2 #获取应用信息
audioplayers: ^4.1.0 #声音播放
flutter_keyboard_visibility: ^6.0.0 #键盘显示隐藏
flutter_local_notifications: ^18.0.1 #本地通知
in_app_
p
urchase: ^3.1
.
11 #订阅内购
sqflite: ^2.2.8+4 #db数据库
open_app
_
settings: ^2.0.1
#
permission_handler: ^11.3.1 #权限处理
de
p
endency_ov
er
rides:
#
鸿蒙适配库
path_provider:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/path_provider/path_provider"
shared_preferences:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
pa
t
h: "packages/shared_preferences/shared_preferences"
#
image_picker:
#
git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/image_picker/image_picker"
#
file_selector:
#
git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/file_selector/file_selector"
#
animations:
#
git:
#
u
rl: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/animations"
url_launcher:
git:
ur
l
: "https://gitee.com/openharmony-sig/flutter_packages.git"
pa
t
h: "packages/url_launcher/url_launcher"
#
local_auth:
#
git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/local_auth/local_auth"
in_app_purchase
:
git:
url: "h
tt
ps
:
//gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/in_app_purchase/in_app_purchase"
webview_flu
tt
er
:
git:
url: "htt
p
s://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/webview_flutter-v4.4.4/webview_flutter"
connectivity_
p
lus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/connectivity_plus/connectivity_plus"
device_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
pa
t
h: "packages/device_info_plus/device_info_plus"
#
netwo
r
k_info_
p
lus:
#
git:
# url: "http
s:
//gitee.com/openharmony-sig/flutter_plus_plugins.git"
#
path: "packages/network_info_plus/network_info_plus"
package_info_
p
lus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/package_info_plus/package_info_plus"
share_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
pa
t
h: "packages/share_plus/share_plus"
#
batte
r
y_plus:
#
git:
# url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
#
path: "packages/battery_plus/battery_plus"
audiop
l
ayers:
git:
url: "https://gitee.com/openharmony-sig/flutter_audioplayers.git"
path: "packages/audioplayers"
flutter_keyboard_visibility:
git:
u
rl: "https://g
i
tee.com/openharmony-sig/flutter_keyboard_visibility.git"
pa
t
h: "flutter_keyboard_visibility"
#
flutter_local_notif
i
cations:
#
git:
# url: "https://gitee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git"
#
path: "flutter_local_notifications"
sqflite
:
git:
url: "https://gitee.com/openharmony-sig/flutter_sqflite.git"
pa
t
h: "sqflite"
#
permission_handler:
#
git:
# url: "http
s:
//gitee.com/openharmony-sig/flutter_permission_handler.git"
#
path: "permission_handler"
open_app_se
tt
ings:
git:
url: "https://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git"
path: ""
```
xiaopindev
修改了
描述
原值
【问题描述】
我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。
【最后解决】
需要手动的从oh_packages.json5文件中删除我在pubspec.yaml中注释的对应的包配置。
【诉求】
希望大佬们验证一下,flutter clean & flutter pub get 不能自动清理和自动配置问题,说明一下情况。
【我的pubspec.yaml文件】
```
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.6
# 鸿蒙已适配版本
path_provider: ^2.1.1 #沙盒存储
shared_preferences: ^2.2.2 #本地轻量数据存储
file_selector: ^1.0.1 #文件选择器
image_picker: ^1.0.4 #媒体文件选择器
animations: ^2.0.8 #动画
url_launcher: ^6.1.11 #打开网页、电话、短信、邮件
local_auth: ^2.1.6 #生物识别
webview_flutter: ^4.4.4 #网页加载
connectivity_plus: ^5.0.2 #网络检测
device_info_plus: ^9.1.2 #获取设备信息
network_info_plus: ^6.0.0 #网络信息
package_info_plus: ^4.2.0 #获取应用信息
share_plus: ^7.2.2 #获取应用信息
audioplayers: ^4.1.0 #声音播放
flutter_keyboard_visibility: ^6.0.0 #键盘显示隐藏
flutter_local_notifications: ^18.0.1 #本地通知
in_app_purchase: ^3.1.11 #订阅内购
sqflite: ^2.2.8+4 #db数据库
open_app_settings: ^2.0.1
# permission_handler: ^11.3.1 #权限处理
dependency_overrides:
# 鸿蒙适配库
path_provider:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/path_provider/path_provider"
shared_preferences:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/shared_preferences/shared_preferences"
# image_picker:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/image_picker/image_picker"
# file_selector:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/file_selector/file_selector"
# animations:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/animations"
url_launcher:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/url_launcher/url_launcher"
# local_auth:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/local_auth/local_auth"
in_app_purchase:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/in_app_purchase/in_app_purchase"
webview_flutter:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/webview_flutter-v4.4.4/webview_flutter"
connectivity_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/connectivity_plus/connectivity_plus"
device_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/device_info_plus/device_info_plus"
# network_info_plus:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
# path: "packages/network_info_plus/network_info_plus"
package_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/package_info_plus/package_info_plus"
share_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/share_plus/share_plus"
# battery_plus:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
# path: "packages/battery_plus/battery_plus"
audioplayers:
git:
url: "https://gitee.com/openharmony-sig/flutter_audioplayers.git"
path: "packages/audioplayers"
flutter_keyboard_visibility:
git:
url: "https://gitee.com/openharmony-sig/flutter_keyboard_visibility.git"
path: "flutter_keyboard_visibility"
# flutter_local_notifications:
# git:
# url: "https://gitee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git"
# path: "flutter_local_notifications"
sqflite:
git:
url: "https://gitee.com/openharmony-sig/flutter_sqflite.git"
path: "sqflite"
# permission_handler:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_permission_handler.git"
# path: "permission_handler"
open_app_settings:
git:
url: "https://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git"
path: ""
```
新值
【问题描述】
我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。
【最后解决】
需要手动的从oh_packages.json5文件中删除我在pubspec.yaml中注释的对应的包配置。
【诉求】
希望大佬们验证一下,flutter clean & flutter pub get 不能自动清理和自动配置问题,说明一下情况。
【我的pubspec.yaml文件】
由于配图违规,这里附上我的配置文件
```
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.6
# 鸿蒙已适配版本
path_provider: ^2.1.1 #沙盒存储
shared_preferences: ^2.2.2 #本地轻量数据存储
file_selector: ^1.0.1 #文件选择器
image_picker: ^1.0.4 #媒体文件选择器
animations: ^2.0.8 #动画
url_launcher: ^6.1.11 #打开网页、电话、短信、邮件
local_auth: ^2.1.6 #生物识别
webview_flutter: ^4.4.4 #网页加载
connectivity_plus: ^5.0.2 #网络检测
device_info_plus: ^9.1.2 #获取设备信息
network_info_plus: ^6.0.0 #网络信息
package_info_plus: ^4.2.0 #获取应用信息
share_plus: ^7.2.2 #获取应用信息
audioplayers: ^4.1.0 #声音播放
flutter_keyboard_visibility: ^6.0.0 #键盘显示隐藏
flutter_local_notifications: ^18.0.1 #本地通知
in_app_purchase: ^3.1.11 #订阅内购
sqflite: ^2.2.8+4 #db数据库
open_app_settings: ^2.0.1
# permission_handler: ^11.3.1 #权限处理
dependency_overrides:
# 鸿蒙适配库
path_provider:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/path_provider/path_provider"
shared_preferences:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/shared_preferences/shared_preferences"
# image_picker:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/image_picker/image_picker"
# file_selector:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/file_selector/file_selector"
# animations:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/animations"
url_launcher:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/url_launcher/url_launcher"
# local_auth:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_packages.git"
# path: "packages/local_auth/local_auth"
in_app_purchase:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/in_app_purchase/in_app_purchase"
webview_flutter:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/webview_flutter-v4.4.4/webview_flutter"
connectivity_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/connectivity_plus/connectivity_plus"
device_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/device_info_plus/device_info_plus"
# network_info_plus:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
# path: "packages/network_info_plus/network_info_plus"
package_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/package_info_plus/package_info_plus"
share_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/share_plus/share_plus"
# battery_plus:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
# path: "packages/battery_plus/battery_plus"
audioplayers:
git:
url: "https://gitee.com/openharmony-sig/flutter_audioplayers.git"
path: "packages/audioplayers"
flutter_keyboard_visibility:
git:
url: "https://gitee.com/openharmony-sig/flutter_keyboard_visibility.git"
path: "flutter_keyboard_visibility"
# flutter_local_notifications:
# git:
# url: "https://gitee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git"
# path: "flutter_local_notifications"
sqflite:
git:
url: "https://gitee.com/openharmony-sig/flutter_sqflite.git"
path: "sqflite"
# permission_handler:
# git:
# url: "https://gitee.com/openharmony-sig/flutter_permission_handler.git"
# path: "permission_handler"
open_app_settings:
git:
url: "https://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git"
path: ""
```
xiaopindev
修改了
描述
原值
【问题描述】
我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。
【
最后解决
】
需要手动的从oh_packages.json5文件中删除我在pubspec.yaml中注释的对应的包配置。
【
诉求】
希望大佬们验证一下,flutt
e
r clean & flutter
p
ub get 不能自动清理和自动配置问题,说明一下情况。
【
我的pubspec.yaml文件】
由于配图违规,这里附上我的配置文件
```
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.6
#
鸿蒙已适配版本
path_provider: ^2.
1.
1 #沙盒存储
shared_preferences: ^2.2.2 #本地轻量数据存储
file_selector: ^1.0.1 #文件选择器
image_picker: ^1.0.4 #媒体文件选择器
animations: ^2.0.8
#动画
ur
l
_launcher: ^6.1.1
1 #
打开网页、电话、短信、邮件
local
_
auth: ^2.
1.
6 #生物识别
webview_flutter: ^4.4.4 #网页加载
connectivity_plus: ^5.0.2 #网络检测
device_info_plus: ^9.1.2 #获取设备信息
n
e
twork
_
info_plus: ^6
.
0.0 #网络信息
package_info
_plus: ^
4
.
2
.
0
#
获取应用信息
share_plus: ^7.2.2 #获取应用信息
audi
o
players: ^4.1.0 #声音播放
flutter
_
keyboard_visibility: ^6.0.0 #键盘显示隐藏
flutter_local_notifications: ^18.0.1 #本地通知
in_ap
p
_purchase: ^3.1.11 #订阅内购
sqflite: ^2.2.8+4 #db数据库
open_app_setti
n
gs: ^2.0.1
# permission_handler: ^
1
1.3.1 #权限处理
dependency_overrides:
# 鸿蒙适配库
path_prov
i
der:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/path_provider/path_provider"
shared_preferences:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/shared_preferences/shared_preferences"
#
image_picker:
#
git
:
#
url: "https:/
/
gite
e
.com/openharmony-sig/flutter_packages.git"
#
path: "packages/image_picker/image_picker"
#
file_selector:
#
git:
#
url: "https://gitee.com/op
e
nharmony-sig/flutter_packages.git"
#
path: "packages/file_selector/file_selector"
#
animations:
#
git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/animations"
url_launcher:
git:
url: "htt
p
s://
g
itee.com/openharmony-sig/flutter_packages.git"
p
a
th: "packages/url_launcher/url_launcher"
#
local_auth:
#
git
:
#
url: "https:/
/
gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/local_auth/local_auth"
in_app_purchase:
git:
url: "htt
p
s://
g
itee.
c
om/openharmony-sig/flutter_packages.git"
p
ath: "p
a
ckages/in_app_purchase/in_app_purchase"
webview_flutter:
git:
url: "https://gitee.com/openharmo
n
y-sig/flutter_packages.git"
path: "packages/webview_flutter-v4.4.4/webview_flutter"
connectivity_plus:
git:
url: "https://git
e
e.com/openha
r
mony-sig/flutter_plus_plugins.git"
pa
t
h: "packages/connectivity_plus/connectivity_plus"
dev
i
ce_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flut
t
er_plus_plugins.git"
path: "packages/device_info_plus/device_info_plus"
#
ne
t
work_info_plus:
#
git
:
#
url: "https:/
/
gitee.com/
o
penharmony-sig/
f
lutter_plus_plugins.git"
#
path: "packages/network_info_plus/network_info_plus"
package_info_plus:
git:
url: "htt
p
s://
g
itee.com/ope
n
harmony-sig/flutter_plus_plugins.git"
path: "packages/package_info_plus/package_info_plus"
share_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/share_plus/share_plus"
#
ba
t
tery_plus:
#
git
:
#
url: "https:/
/
gite
e
.com/openharmony-sig/flutter_plus_plugins.git"
#
path: "packages/battery_plus/battery_plus"
audioplayers:
git:
url: "htt
p
s://
g
itee.com/openharmony-sig/flutter_audioplayers.git"
path: "packages/audioplayers"
flut
t
er_keyboard_visibility:
git:
url: "https://gitee.com/openharmony-sig/flutter_keyboard_visibility.git"
path: "flutter_keyboard_visibility"
#
flutter_local_notifications:
#
git
:
#
url: "ht
t
ps://gitee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git"
#
path: "f
l
utter_local_
n
otifications"
sqflite
:
git:
url: "https://gitee.com/
o
penharmony-sig/flutter_sqflite.git"
path: "sqflite"
#
permission_handler:
#
git
:
#
url: "https://gitee.com/openharmony-sig/flutter_permission_handler.git"
#
path: "permission_handler"
open_app_settings:
git:
url: "htt
p
s://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git"
p
a
th: ""
```
新值
【问题描述】
我在pubspec.yaml 配置文件中,配置了鸿蒙的适配包,中间为了解决编译问题,注释了一些包,执行flutter clean & flutter pub get后,ohos项目中的oh_packages.json5不会自动的清理我注释的包,貌似只能增加不能减少。
【
我的环境
】
MacOS 15.1 M2芯片
【
最后解决】
需要手动的从oh_packag
e
s.json5文件中删除我在pubs
p
ec.yaml中注释的对应的包配置。
【
诉求】
希望大佬们验证一下,flutter clean & flutter pub get 不能自动清理和自动配置问题,说明一下情况。
【我的pubspec.yaml文件】
由于配图违规,这里附上我的配置文件
```
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^
1.
0.6
# 鸿蒙已适配版本
path_provider: ^2.1.1 #沙盒存储
shared_preferences:
^2.2.2 #本地轻量数据存储
fi
l
e_selector: ^1.0.
1 #
文件选择器
image
_
picker: ^
1.
0.4 #媒体文件选择器
animations: ^2.0.8 #动画
url_launcher: ^6.1.11 #打开网页、电话、短信、邮件
local_auth: ^2.1.6 #生物识别
w
e
bview
_
flutter: ^4.4
.
4 #网页加载
connectivity
_plus: ^
5
.
0
.
2
#
网络检测
device_info_plus: ^9.1.2 #获取设备信息
netw
o
rk_info_plus: ^6.0.0 #网络信息
package
_
info_plus: ^4.2.0 #获取应用信息
share_plus: ^7.2.2 #获取应用信息
audio
p
layers: ^4.1.0 #声音播放
flutter_keyboard_visibility: ^6.0.0 #键盘显示隐藏
flutter_local_
n
otifications: ^18.0.1 #本地通知
in_app_purchase: ^3.1.1
1
#订阅内购
sqflite: ^2.2.8+4 #db数据库
open_app_settings: ^2.0.1
# permiss
i
on_handler: ^11.3.1 #权限处理
dependency_overrides:
#
鸿蒙适配库
path_provider:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/path_provider/path_provider"
shared_preferences:
git:
url
:
"https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages
/
shar
e
d_preferences/shared_preferences"
#
image_picker:
#
git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/image_pick
e
r/image_picker"
#
file_selector:
#
git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "packages/file_selector/file_selector"
#
animations:
# git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "
p
acka
g
es/animations"
url_l
a
uncher:
git:
url
:
"https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages
/
url_launcher/url_launcher"
#
local_auth:
# git:
#
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
#
path: "
p
acka
g
es/lo
c
al_auth/local_auth"
in_a
p
p_purch
a
se:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/in_app_purchase/i
n
_app_purchase"
webview_flutter:
git:
url: "https://gitee.com/openharmony-sig/flutter_packages.git"
path: "packages/w
e
bview_flutte
r
-v4.4.4/webview_flutter"
connec
t
ivity_plus:
g
i
t:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/connectivity_plus/connectivi
t
y_plus"
device_info_plus:
gi
t
:
url
:
"https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages
/
device_inf
o
_plus/device_in
f
o_plus"
#
network_info_plus:
# git:
#
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
#
path: "
p
acka
g
es/network_i
n
fo_plus/network_info_plus"
package_info_plus:
git:
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages/package_info_plus/package_info_plus"
share_plus:
gi
t
:
url
:
"https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
path: "packages
/
shar
e
_plus/share_plus"
#
battery_plus:
# git:
#
url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git"
#
path: "
p
acka
g
es/battery_plus/battery_plus"
audioplayers:
gi
t
:
url: "https://gitee.com/openharmony-sig/flutter_audioplayers.git"
path: "packages/audioplayers"
flutter_keyboard_visibility:
git:
url
:
"https://gitee.com/openharmony-sig/flutter_keyboard_visibility.git"
path: "flu
t
ter_keyboard_visibility"
#
flutter_loca
l
_notificatio
n
s:
# git
:
#
url: "https://gitee.com/openharmony-sig/fluttertpc_flutter_local_notifications.git"
#
path: "flutter_local_n
o
tifications"
sqflite:
git:
url
:
"https://gitee.com/openharmony-sig/flutter_sqflite.git"
path: "sqflite"
#
permission_handler:
# git:
#
url: "https://gitee.com/openharmony-sig/flutter_permission_handler.git"
#
path: "
p
ermission_handler"
open_
a
pp_settings:
git:
url: "https://gitee.com/openharmony-sig/fluttertpc_open_app_settings.git"
path: ""
```
展开全部操作日志
折叠全部操作日志
登录
后才可以发表评论
状态
意向
意向
进行中
已完成
已拒绝
负责人
未设置
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (4)
标签 (2)
oh-3.22.0
oh-3.22.3
241119_enable_impeller
241113_pick_hvigor
3.22.0
3.22.0-ohos
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)