material-components_materia.../docs/using-snapshot-version.md
marianomartin c6e8f02f76 [Release] Changed nightly build to use SNAPSHOTS
PiperOrigin-RevId: 317307618
2020-06-19 14:03:27 -04:00

2.5 KiB
Raw Blame History

Using a Snapshot Version of the Library

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:1.3.0-SNAPSHOT dependency as per usual, this will fetch the latest snapshot, your gradle build won't cache it. 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.

Alternatively add com.google.android.material:material:1.3.0-<date> replacing <date> with the date of the version you are interested in (see all versions here).

Alternatively, you could use JitPack to generate library releases based on specific commits.