If you would like to depend on the cutting edge version of the MDC-Android library, you can use the snapshot versions that are published daily via GitHub Packages.
To do so, you need to
create a GitHub access token,
and add the following to your build.gradle
Maven repositories:
maven {
name = "MaterialSnapshots"
url = uri("https://maven.pkg.github.com/material-components/material-components-android")
credentials {
username = <github_username>
password = <github_access_token>
}
}
Then you can use a snapshot version by adding a
com.google.android.material:material:<version>-SNAPSHOT
dependency as per
usual (see latest release
here).
This will fetch the latest snapshot version, which your Gradle build won't
cache. If you build after a new version has been published, that version will be
used.
See the offical doc on Configuring Gradle for use with GitHub Packages for additional information.
If you prefer to depend on a specific snapshot version, you can add
com.google.android.material:material:<version>-<uniqueversion>
, where
<uniqueversion>
is a combination of the date, a timestamp, and a counter (see
all versions
here).
Alternatively, you could use JitPack to generate library releases based on specific commits.