Documentfile
查看文件文档。
最新更新 | 稳定版 | 候选发布版 | Beta 版 | Alpha 版 |
---|---|---|---|---|
2025 年 5 月 7 日 | 1.1.0 | - | - | - |
声明依赖项
要添加 DocumentFile 的依赖项,您必须将 Google Maven 代码库添加到您的项目。如需了解更多信息,请阅读Google 的 Maven 代码库。
在您的应用或模块的 build.gradle
文件中添加所需工件的依赖项
Groovy
dependencies { implementation "androidx.documentfile:documentfile:1.1.0" }
Kotlin
dependencies { implementation("androidx.documentfile:documentfile:1.1.0") }
反馈
您的反馈有助于改进 Jetpack。如果您发现新问题或有改进此库的建议,请告知我们。在创建新问题之前,请先查看此库中的现有问题。您可以通过点击星形按钮为您已发现的问题投票。
如需了解更多信息,请参阅问题跟踪器文档。
版本 1.1.0
版本 1.1.0
2025 年 5 月 7 日
androidx.documentfile:documentfile:1.1.0
已发布。版本 1.1.0 包含这些提交。
版本 1.1.0-rc01
2025 年 4 月 23 日
androidx.documentfile:documentfile:1.1.0-rc01
已发布。版本 1.1.0-rc01 包含这些提交。
API 变更
- 使用 Kotlin 2.0 发布的项目需要 KGP 2.0.0 或更高版本才能使用。(Idb6b5)
版本 1.1.0-beta01
2025 年 4 月 9 日
androidx.documentfile:documentfile:1.1.0-beta01
已发布。版本 1.1.0-beta01 包含这些提交。
bug 修复
- 此库现在使用JSpecify 空值注解,它们是类型使用的。Kotlin 开发者应使用以下编译器参数来强制执行正确用法:
-Xjspecify-annotations=strict
(从 Kotlin 编译器 2.1.0 版开始,这是默认设置)。b/326456246 - 修复 documentfile 中的文档问题 b/337250687
版本 1.1.0-alpha01
2021 年 8 月 18 日
androidx.documentfile:documentfile:1.1.0-alpha01
已发布。版本 1.1.0-alpha01 包含这些提交。
bug 修复
- 修复
DocumentFile
的 ClassVerificationFailures。(b/188452767)
版本 1.0.1
版本 1.0.1
2019 年 2 月 25 日
androidx.documentfile:documentfile 1.0.1
已发布。
bug 修复
- 修复了
Document.fromUri
截断深层树 URI 的 bug。(b/37081745)