Skip to content

Commit d103997

Browse files
dsn5ftmelaniegoetz
authored andcommitted
[Docs] Added doc with instructions for how to use snapshot versions of the library
PiperOrigin-RevId: 316700593
1 parent 3ed776a commit d103997

7 files changed

+89
-35
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Bugs or feature requests should be submitted at our [GitHub Issues section](http
2727
- [All Components](https://github.com/material-components/material-components-android/tree/master/lib/)
2828
- [Getting Started](docs/getting-started.md)
2929
- [Contributing](docs/contributing.md)
30+
- [Using Snapshot Version](using-snapshot-version.md)
3031
- [Building From Source](docs/building-from-source.md)
3132
- [Catalog App](docs/catalog-app.md)
3233
- [Class

Diff for: docs/building-from-source.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ Note: Do not update Gradle beyond 4.10 as the
3838
dependency cannot be used for Gradle 5.x.
3939

4040
## Useful Links
41-
- [Getting Started](getting-started.md)
42-
- [Contributing](contributing.md)
43-
- [Catalog App](catalog-app.md)
44-
- [Class
45-
documentation](https://developer.android.com/reference/com/google/android/material/classes)
46-
- [MDC-Android on Stack
47-
Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)
48-
- [Android Developer’s
49-
Guide](https://developer.android.com/training/material/index.html)
50-
- [Material.io](https://www.material.io)
51-
- [Material Design Guidelines](https://material.google.com)
41+
42+
- [Getting Started](getting-started.md)
43+
- [Contributing](contributing.md)
44+
- [Catalog App](catalog-app.md)
45+
- [Using Snapshot Version](using-snapshot-version.md)
46+
- [Class documentation](https://developer.android.com/reference/com/google/android/material/classes)
47+
- [MDC-Android on Stack Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)
48+
- [Android Developer’s Guide](https://developer.android.com/training/material/index.html)
49+
- [Material.io](https://www.material.io)
50+
- [Material Design Guidelines](https://material.google.com)

Diff for: docs/catalog-app.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ Android Studio or run the following Gradle command:
2020
```
2121

2222
## Useful Links
23-
- [Getting Started](getting-started.md)
24-
- [Theming Guide](theming.md)
25-
- [Contributing](contributing.md)
26-
- [Building From Source](building-from-source.md)
27-
- [Class
28-
documentation](https://developer.android.com/reference/com/google/android/material/classes)
29-
- [MDC-Android on Stack
30-
Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)
31-
- [Android Developer’s
32-
Guide](https://developer.android.com/training/material/index.html)
33-
- [Material.io](https://www.material.io)
34-
- [Material Design Guidelines](https://material.google.com)
23+
24+
- [Getting Started](getting-started.md)
25+
- [Theming Guide](theming.md)
26+
- [Contributing](contributing.md)
27+
- [Using Snapshot Version](using-snapshot-version.md)
28+
- [Building From Source](building-from-source.md)
29+
- [Class documentation](https://developer.android.com/reference/com/google/android/material/classes)
30+
- [MDC-Android on Stack Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)
31+
- [Android Developer’s Guide](https://developer.android.com/training/material/index.html)
32+
- [Material.io](https://www.material.io)
33+
- [Material Design Guidelines](https://material.google.com)

Diff for: docs/contributing.md

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ We follow the
8585
## Useful Links
8686

8787
- [Getting Started](getting-started.md)
88+
- [Using Snapshot Version](using-snapshot-version.md)
8889
- [Building From Source](building-from-source.md)
8990
- [Catalog App](catalog-app.md)
9091
- [Class documentation](https://developer.android.com/reference/com/google/android/material/classes)

Diff for: docs/getting-started.md

+1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ out our [contributing guidelines](contributing.md) as well as an overview of the
249249

250250
- [Theming Guide](theming.md)
251251
- [Contributing](contributing.md)
252+
- [Using Snapshot Version](using-snapshot-version.md)
252253
- [Building From Source](building-from-source.md)
253254
- [Catalog App](catalog-app.md)
254255
- [Class documentation](https://developer.android.com/reference/com/google/android/material/classes)

Diff for: docs/theming.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ information on how to apply the
3030
to your app.
3131

3232
## Useful Links
33-
- [Getting Started](getting-started.md)
34-
- [Contributing](contributing.md)
35-
- [Building From Source](building-from-source.md)
36-
- [Catalog App](catalog-app.md)
37-
- [Class
38-
documentation](https://developer.android.com/reference/com/google/android/material/classes)
39-
- [MDC-Android on Stack
40-
Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)
41-
- [Android Developer’s
42-
Guide](https://developer.android.com/training/material/index.html)
43-
- [Material.io](https://www.material.io)
44-
- [Material Design Guidelines](https://material.google.com)
33+
34+
- [Getting Started](getting-started.md)
35+
- [Contributing](contributing.md)
36+
- [Using Snapshot Version](using-snapshot-version.md)
37+
- [Building From Source](building-from-source.md)
38+
- [Catalog App](catalog-app.md)
39+
- [Class documentation](https://developer.android.com/reference/com/google/android/material/classes)
40+
- [MDC-Android on Stack Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)
41+
- [Android Developer’s Guide](https://developer.android.com/training/material/index.html)
42+
- [Material.io](https://www.material.io)
43+
- [Material Design Guidelines](https://material.google.com)

Diff for: docs/using-snapshot-build.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!--docs:
2+
title: "Using Snapshot Version"
3+
layout: landing
4+
section: docs
5+
path: /docs/using-snapshot-version/
6+
-->
7+
8+
# Using a Snapshot Version of the Library
9+
10+
If you would like to depend on the cutting edge version of the MDC-Android
11+
library, you can use the
12+
[snapshot versions](https://github.com/material-components/material-components-android/packages/81484)
13+
that are published daily via
14+
[GitHub Packages](https://help.github.com/en/packages/publishing-and-managing-packages/about-github-packages).
15+
16+
To do so, you need to
17+
[create a GitHub access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line#creating-a-token),
18+
and add the following to your `build.gradle` Maven repositories:
19+
20+
```groovy
21+
maven {
22+
name = "MaterialSnapshots"
23+
url = uri("https://maven.pkg.github.com/material-components/material-components-android")
24+
credentials {
25+
username = <github_username>
26+
password = <github_access_token>
27+
}
28+
}
29+
```
30+
31+
Then you can use a snapshot version by adding a
32+
`com.google.android.material:material:1.3.0-dev-<date>` dependency as per usual,
33+
replacing `<date>` with the date of the version you are interested in (see all
34+
versions
35+
[here](https://github.com/material-components/material-components-android/packages/81484/versions)).
36+
See the offical doc on
37+
[Configuring Gradle for use with GitHub Packages](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages)
38+
for additional information.
39+
40+
Alternatively, you could use
41+
[JitPack](https://jitpack.io/#material-components/material-components-android)
42+
to generate library releases based on specific commits.
43+
44+
## Useful Links
45+
46+
- [Getting Started](getting-started.md)
47+
- [Contributing](contributing.md)
48+
- [Building From Source](building-from-source.md)
49+
- [Catalog App](catalog-app.md)
50+
- [Class documentation](https://developer.android.com/reference/com/google/android/material/classes)
51+
- [MDC-Android on Stack Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)
52+
- [Android Developer’s Guide](https://developer.android.com/training/material/index.html)
53+
- [Material.io](https://www.material.io)
54+
- [Material Design Guidelines](https://material.google.com)

0 commit comments

Comments
 (0)