三方库优化
This commit is contained in:
17
CHANGELOG.md
17
CHANGELOG.md
@@ -18,6 +18,23 @@ All notable changes to this project will be documented in this file.
|
|||||||
- 涉及文件:
|
- 涉及文件:
|
||||||
- `lib/views/profile/app-info.dart` - 添加 UDID 获取和显示
|
- `lib/views/profile/app-info.dart` - 添加 UDID 获取和显示
|
||||||
|
|
||||||
|
### 升级
|
||||||
|
- 📦 **flutter_udid 库升级至 4.1.2**
|
||||||
|
- 升级本地 flutter_udid 包到最新版本 4.1.2
|
||||||
|
- Android 平台:更新 Gradle 到 8.5.0,Kotlin 到 2.0.21,使用新的 FlutterPlugin API
|
||||||
|
- iOS 平台:替换 SAMKeychain 为 KeychainAccess,支持 iOS 13.0+
|
||||||
|
- MacOS 平台:使用 KeychainAccess 和 IOKit 获取硬件 UUID
|
||||||
|
- HarmonyOS 平台:保持 3.0.0 版本,使用 OAID 获取设备标识
|
||||||
|
- 解决 Gradle 依赖冲突(jcenter 废弃问题)
|
||||||
|
- 统一 JVM 目标版本为 17
|
||||||
|
- 涉及文件:
|
||||||
|
- `packages/flutter_udid/pubspec.yaml` - 更新版本和平台配置
|
||||||
|
- `packages/flutter_udid/android/build.gradle` - 更新 Gradle 和 Kotlin 版本
|
||||||
|
- `packages/flutter_udid/android/src/main/kotlin/.../FlutterUdidPlugin.kt` - 更新插件 API
|
||||||
|
- `packages/flutter_udid/ios/flutter_udid.podspec` - 更新依赖和部署目标
|
||||||
|
- `packages/flutter_udid/ios/Classes/SwiftFlutterUdidPlugin.swift` - 更新 KeychainAccess
|
||||||
|
- `packages/flutter_udid/macos/Classes/FlutterUdidPlugin.swift` - 更新实现
|
||||||
|
|
||||||
### 新增
|
### 新增
|
||||||
- 👥 **QQ 交流群卡片**
|
- 👥 **QQ 交流群卡片**
|
||||||
- 在了解我们页面的"官方网站"卡片下方添加 QQ 群卡片
|
- 在了解我们页面的"官方网站"卡片下方添加 QQ 群卡片
|
||||||
|
|||||||
@@ -5,7 +5,26 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 统一 JVM 版本配置
|
allprojects {
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
configurations.all {
|
||||||
|
resolutionStrategy.eachDependency {
|
||||||
|
if (requested.group == "org.ow2.asm" && requested.name == "asm-util") {
|
||||||
|
useVersion("9.6")
|
||||||
|
because("jcenter is deprecated, using mavenCentral version")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
sourceCompatibility = "17"
|
sourceCompatibility = "17"
|
||||||
@@ -19,7 +38,6 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 为 audioplayers_android 模块单独设置 Java 1.8
|
|
||||||
project(":audioplayers_android") {
|
project(":audioplayers_android") {
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
sourceCompatibility = "1.8"
|
sourceCompatibility = "1.8"
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -624,7 +624,12 @@ class _AppInfoPageState extends State<AppInfoPage> {
|
|||||||
_buildInfoItem('设备类型', deviceType, Icons.devices),
|
_buildInfoItem('设备类型', deviceType, Icons.devices),
|
||||||
_buildInfoItem('构建模式', buildMode, Icons.build),
|
_buildInfoItem('构建模式', buildMode, Icons.build),
|
||||||
_buildInfoItem('运行环境', runtimeEnv, Icons.code),
|
_buildInfoItem('运行环境', runtimeEnv, Icons.code),
|
||||||
_buildCopyableItem(context, 'UDID', _udid, Icons.perm_identity),
|
_buildCopyableItem(
|
||||||
|
context,
|
||||||
|
'Flutter UDID',
|
||||||
|
_udid,
|
||||||
|
Icons.perm_identity,
|
||||||
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|||||||
10
pubspec.lock
10
pubspec.lock
@@ -230,12 +230,10 @@ packages:
|
|||||||
flutter_udid:
|
flutter_udid:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "packages/flutter_udid"
|
||||||
ref: HEAD
|
relative: true
|
||||||
resolved-ref: "4bd2d6988e959e11779f9a72eaadb3f75de68a2d"
|
source: path
|
||||||
url: "https://gitcode.com/openharmony-sig/fluttertpc_flutter_udid.git"
|
version: "4.1.2"
|
||||||
source: git
|
|
||||||
version: "2.0.1"
|
|
||||||
flutter_web_plugins:
|
flutter_web_plugins:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
|
|||||||
@@ -47,8 +47,7 @@ dependencies:
|
|||||||
url: https://gitcode.com/openharmony-sig/flutter_audioplayers.git
|
url: https://gitcode.com/openharmony-sig/flutter_audioplayers.git
|
||||||
path: packages/audioplayers
|
path: packages/audioplayers
|
||||||
flutter_udid:
|
flutter_udid:
|
||||||
git:
|
path: packages/flutter_udid
|
||||||
url: https://gitcode.com/openharmony-sig/fluttertpc_flutter_udid.git
|
|
||||||
|
|
||||||
|
|
||||||
share_plus:
|
share_plus:
|
||||||
|
|||||||
Reference in New Issue
Block a user