appfunctions

  
TODO
最近更新时间 稳定版 候选版 Beta 版 Alpha 版
2025 年 6 月 4 日 - - - 1.0.0-alpha02

声明依赖项

如需添加 appfunctions 的依赖项,您必须将 Google Maven 制品库添加到项目中。如需了解详情,请参阅 Google 的 Maven 代码库

在应用或模块的 build.gradle 文件中添加所需工件的依赖项:

Groovy

dependencies {
    implementation "androidx.appfunctions:appfunctions:1.0.0-alpha02"
    implementation "androidx.appfunctions:appfunctions-service:1.0.0-alpha02"
    implementation "androidx.appfunctions:appfunctions-compiler:1.0.0-alpha02"
}

Kotlin

dependencies {
    implementation("androidx.appfunctions:appfunctions:1.0.0-alpha02")
    implementation("androidx.appfunctions:appfunctions-service:1.0.0-alpha02")
    implementation("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha02")
}

如需详细了解依赖项,请参阅添加 build 依赖项

反馈

您的反馈将帮助我们改进 Jetpack。如果您发现了新问题,或对此库有任何改进建议,请告诉我们。创建新问题前,请先查看此库中的现有问题。您可以点击星标按钮,为现有问题投票。

创建新问题

如需了解详情,请参阅问题跟踪器文档

此工件没有版本说明。

版本 1.0

版本 1.0.0-alpha02

2025 年 6 月 4 日

发布了 androidx.appfunctions:appfunctions:1.0.0-alpha02androidx.appfunctions:appfunctions-compiler:1.0.0-alpha02androidx.appfunctions:appfunctions-service:1.0.0-alpha02。版本 1.0.0-alpha02 包含这些提交内容

新功能

  • 支持 Android 16 API。
  • 更好地支持编译时参数化 AppFunctionSerializable(s)

API 变更

  • 引入了 AppFunctionSchemaDefinition API,使代理能够定义自己的预定义函数架构。

bug 修复

  • 针对 AppFunctions 缺少运行时启用状态的错误处理。
  • 修复了 observeAppFunctions API 中的次要 bug,以便观察 AppFunctionComponentMetadata 中的更改。
  • 其他错误日志。

版本 1.0.0-alpha01

2025 年 5 月 7 日

发布了 androidx.appfunctions:appfunctions:1.0.0-alpha01androidx.appfunctions:appfunctions-compiler:1.0.0-alpha01androidx.appfunctions:appfunctions-service:1.0.0-alpha01。版本 1.0.0-alpha01 包含这些提交内容

新功能

AppFunctions Jetpack 库基于 android.app.appfunctions 平台 API 构建而成。此库可简化向 Google 助理公开应用功能的操作,并允许 Google 助理与应用公开的函数进行交互。

  • androidx.appfunctions:appfunctions:用于管理(启用/停用)和与 AppFunctions 交互(搜索/执行)的核心客户端 API。
  • androidx.appfunctions:appfunctions-service:服务端 API,可轻松将应用的功能公开为 AppFunctions
  • androidx.appfunctions:appfunctions-compiler:必需的 KSP 编译器,用于生成用于公开 AppFunctions 的必要代码。