Autofill

Declaring dependencies

To add a dependency on Autofill, 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:

dependencies {
    def autofill_version = "1.0.0-beta01"

    implementation "androidx.autofill:autofill:$autofill_version"
}

For more information about dependencies, see Add build dependencies.

Version 1.0.0-beta01

September 18, 2019

androidx.autofill:autofill:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.

New features

  • Added support for annotating One Time Password (OTP) fields which can be filled by reading the code from an SMS.
  • Generator function added to get hint constants for single character OTP fields.

Version 1.0.0-alpha02

August 7, 2019

androidx.autofill:autofill:1.0.0-alpha02 is released. The commits included in this version can be found here.

New features

  • New hint constants added to support annotation of SMS One Time Password (OTP) codes.

Version 1.0.0-alpha01

July 2, 2019

This is the first release of androidx.autofill:autofill:1.0.0-alpha01. The commits included in this initial version can be found here.

New features

This is the initial release of autofill AndroidX module. It provides new autofill hint constants added to allow more granular annotation of form fields.