Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b390311827 | |||
| f3a414b097 | |||
| cf7cec6be3 | |||
| 6808f099f4 | |||
| 38624a8d50 | |||
| b34af6af66 |
Vendored
+2
-1
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"cmake.ignoreCMakeListsMissing": true
|
||||
"cmake.ignoreCMakeListsMissing": true,
|
||||
"gitlens.codeLens.enabled": false
|
||||
}
|
||||
@@ -27,8 +27,9 @@
|
||||
| 1.5.0 | 功率计算优化 | ✅ 已发布 |
|
||||
| 1.5.2 | 部分场景字体替换 | ✅ 已发布 |
|
||||
| 1.6.0 | 更新日志独立页面 | 📋近期开发 |
|
||||
| 1.7.0 | 适配夜间模式 | 📋近期开发 |
|
||||
| 2.0.0 | 数据看板扩展等系列更新 | 📋 远景 |
|
||||
|
||||
| 3.0.0 | 搭配PC上位机记录充电信息等 | 📋 远景 |
|
||||
---
|
||||
|
||||
## 环境要求
|
||||
@@ -40,9 +41,9 @@
|
||||
|
||||
## 机型匹配情况
|
||||
目前据群友反馈已知:
|
||||
- 魅族22无mbattery_charger目录生成,无法实时计算相应百分比
|
||||
- 魅族22无mbattery_charger目录生成,无法实时计算相应百分比,因此已在最近版本去除相关匹配信息
|
||||
- 魅族18在后续的版本中关闭了mbattery_log生成,疑似无效,老版本可能支持
|
||||
- 最完美的支持版本至少可覆盖魅族20/21系机型(20inf需后续确认)
|
||||
- 最完美的支持版本至少可覆盖魅族20/21系机型(20inf已确认,机型匹配ID已更新)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
description: This file stores settings for Dart & Flutter DevTools.
|
||||
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
|
||||
extensions:
|
||||
@@ -2,11 +2,10 @@
|
||||
class DeviceMatching {
|
||||
/// 根据机型返回设计容量(mAh)
|
||||
static int getDesignCapacity(String model) {
|
||||
if (model.contains('22')) return 5510;
|
||||
if (model.contains('21 Pro')) return 5050;
|
||||
if (model.contains('21')) return 4800;
|
||||
if (model.contains('20 Pro')) return 5000;
|
||||
if (model.contains('20 INFINITY')) return 4800;
|
||||
if (model.contains('20 Inf')) return 4800;
|
||||
if (model.contains('20')) return 4700;
|
||||
if (model.contains('18s Pro')) return 4500;
|
||||
if (model.contains('18s')) return 4000;
|
||||
@@ -29,11 +28,10 @@ class DeviceMatching {
|
||||
|
||||
/// 根据机型返回显示名称
|
||||
static String getModelName(String model) {
|
||||
if (model.contains('22')) return '魅族22';
|
||||
if (model.contains('21 Pro')) return '魅族21 Pro';
|
||||
if (model.contains('21')) return '魅族21';
|
||||
if (model.contains('20 Pro')) return '魅族20 Pro';
|
||||
if (model.contains('20 INFINITY')) return '魅族20 INFINITY';
|
||||
if (model.contains('20 Inf')) return '魅族20 Infinity';
|
||||
if (model.contains('20')) return '魅族20';
|
||||
if (model.contains('18s Pro')) return '魅族18s Pro';
|
||||
if (model.contains('18s')) return '魅族18s';
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.5.2
|
||||
version: 1.5.3
|
||||
|
||||
environment:
|
||||
sdk: ^3.9.2
|
||||
|
||||
Reference in New Issue
Block a user