appfunctions
| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release | 
|---|---|---|---|---|
| October 8, 2025 | - | - | - | 1.0.0-alpha05 | 
Declaring dependencies
To add a dependency on appfunctions, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for
your app or module:
Groovy
dependencies { implementation "androidx.appfunctions:appfunctions:1.0.0-alpha05" implementation "androidx.appfunctions:appfunctions-service:1.0.0-alpha05" // Use Kotlin Symbol Processing (KSP) for the appfunctions compiler plugin. // See KSP Quickstart to add KSP to your build ksp "androidx.appfunctions:appfunctions-compiler:1.0.0-alpha05" }
Kotlin
dependencies { implementation("androidx.appfunctions:appfunctions:1.0.0-alpha05") implementation("androidx.appfunctions:appfunctions-service:1.0.0-alpha05") // Use Kotlin Symbol Processing (KSP) for the appfunctions compiler plugin. // See KSP Quickstart to add KSP to your build ksp("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha05") }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
There are no release notes for this artifact.
Version 1.0
Version 1.0.0-alpha05
October 08, 2025
androidx.appfunctions:appfunctions-*:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
New Features
- Enforce required fields are provided when constructing AppFunctionData
- Validating AppFunctionDataagainst constraint values
API Changes
- Add AppFunctionServiceCompat API(s). (I2f1b1, b/445388953)
Bug Fixes
- Add required field AppFunctionsDatacheck. (I36b16, b/394553462)
- Fix the issue that parameter optional state was not respected when overriding an interface.
- Generate an empty XML file even when no AppFunctionsare present sinceAppSearchexpects the corresponding file specified in the App manifest.
Version 1.0.0-alpha04
September 10, 2025
androidx.appfunctions:appfunctions-*:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.
Bug Fixes
- Fix R8 issues for release builds.
Version 1.0.0-alpha03
August 13, 2025
androidx.appfunctions:appfunctions-*:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
New Features
- Use KDoc(s) as AppFunctiondescriptions
- Restrict values for Int and String types using AppFunctionIntValueConstraintandAppFunctionStringValueConstraintannotations, respectively.
- Specify a natural language description for large language models and a user visible description displayed within agent apps.
- Automatically grant permissions to URI(s) returned from an app function using AppFunctionUriGrantclass.
- Write Robolectric tests using AppFunctionTestRulefor testing your app function setup.
API Changes
- Add AppFunctionStringValueConstraint(I10e3f)
- Add AppFunctionIntValueConstraint(Ifda13)
- Refactor AppFunctionPrimitiveTypeMetadatato specific data type classes. (I1a3b2)
- Add description field in AppFunctionResponseMetadata(I2332b)
- Remove permission requirement from setAppFunctionEnabledAPI (I1b92a)
- Add description field in AppFunctionParameterMetadata(I40a67)
- Add AppFunctionUriGrant(I67ca9)
- Add resolveAppFunctionAppMetadataAPI. (I17408)
- Add isDescribedByKdocin@AppFunctionSerializableannotation (Ie14e7)
- Add description field in AppFunctionDataTypeMetadata(I1bcac)
- Return AppPackageMetadatafromobserveAppFunctionsAPI. (I68c7e)
- Add description field in AppFunctionMetadata(I060e2)
- Add AppFunctionTestRule(Id5ed0)
- Add isDescribedByKdocin@AppFunctionannotation (Ia84d2)
Bug Fixes
- AppFunctionManagerCompatonly supports U+ devices (Ifa8d0)
- Add property descriptions of shared serializable types in AppFunction's metadata xml (I2aab2)
- Add a description element in generated AppFunction's metadata xml (Ie5bf6)
Version 1.0.0-alpha02
June 4, 2025
androidx.appfunctions:appfunctions:1.0.0-alpha02, androidx.appfunctions:appfunctions-compiler:1.0.0-alpha02, and androidx.appfunctions:appfunctions-service:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.
New Features
- Support Android 16 API(s).
- Better support for parameterized AppFunctionSerializable(s)at compile time.
API Changes
- Introduced AppFunctionSchemaDefinitionAPI, enabling agents to define their own predefined function schemas.
Bug Fixes
- Error handling for missing runtime enabled state of AppFunctions.
- Minor bugfix in observeAppFunctionsAPI to observe changes inAppFunctionComponentMetadata.
- Additional error logs.
Version 1.0.0-alpha01
May 7, 2025
androidx.appfunctions:appfunctions:1.0.0-alpha01, androidx.appfunctions:appfunctions-compiler:1.0.0-alpha01, and androidx.appfunctions:appfunctions-service:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.
New Features
The AppFunctions Jetpack library is built on top of android.app.appfunctions platform APIs. This library simplifies exposing your app's functionality to the Assistant and allows the Assistant to interact with the app's exposed functions.
- androidx.appfunctions:appfunctions: Core client APIs for managing (enable/disable) and interacting with (search/execute)- AppFunctions.
- androidx.appfunctions:appfunctions-service: Service-side APIs to easily expose your app's functionalities as- AppFunctions.
- androidx.appfunctions:appfunctions-compiler: Required KSP compiler to generate necessary code for exposing- AppFunctions.
