chore(flutter): 放宽 device_info_plus 版本范围以提升兼容性 - #110
Open
bruce3x wants to merge 1 commit into
Open
Conversation
将 device_info_plus 从 ^11.3.0 调整为 >=9.0.0 <14.0.0, 兼容 Flutter 3.16 起步的更多环境(9.x 起仅需 Flutter >=3.3,8.x 及以下为 Dart 2 世代约束,Dart 3 无法解析)
|
|
||
| dependencies: | ||
| device_info_plus: ^11.3.0 | ||
| device_info_plus: ">=9.0.0 <14.0.0" |
There was a problem hiding this comment.
[P1] 将 device_info_plus 上限限制在 12.0.0 以下
该范围会让使用 Dart >=3.7 / Flutter >=3.29 的消费者解析到 device_info_plus 12.x,但 12.0.0 起原生插件明确要求 AGP >=8.12.1、Gradle >=8.13 和 Kotlin 2.2.0;这些要求没有编码进 pub 的 SDK 约束。仓库自带 example 目前仍是 AGP 8.7.0、Gradle 8.10.2、Kotlin 1.8.22,因此在这类受 qiniu_flutter_sdk 声明支持的 Flutter 环境中,pub get 会选中 12.4.0,随后 Android 构建因工具链过旧而失败。为了达到兼容 Flutter 3.16 的目标,应先将上限收紧为 <12.0.0,除非同时提升最低工具链并验证对应工程。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将 device_info_plus 从 ^11.3.0 调整为 >=9.0.0 <14.0.0