Skip to content

Commit a599413

Browse files
committed
Document JitPack dependency
1 parent 9363e54 commit a599413

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![twitter](https://img.shields.io/badge/twitter-sfyc23-blue.svg)](https://twitter.com/sfyc23)
22
[![微博](https://img.shields.io/badge/%E5%BE%AE%E5%8D%9A-sfyc23-blue.svg)](https://weibo.com/sfyc23)
33
[![API](https://img.shields.io/badge/API-%2B21-green.svg)](https://android-arsenal.com/api?level=21)
4-
[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.1.0-green.svg)]()
4+
[![](https://jitpack.io/v/sfyc23/CountTimeProgressView.svg)](https://jitpack.io/#sfyc23/CountTimeProgressView)
55
[![License](https://img.shields.io/badge/License-Apache%202.0-red.svg)]()
66
# CountTimeProgressView
77

@@ -19,11 +19,26 @@
1919

2020
### Step 1
2121

22-
Include the library as a local library project or add the dependency in your build.gradle.
22+
Include the library as a local library project or add the JitPack dependency.
23+
24+
Add JitPack to your repositories:
25+
26+
```groovy
27+
dependencyResolutionManagement {
28+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
29+
repositories {
30+
google()
31+
mavenCentral()
32+
maven { url 'https://jitpack.io' }
33+
}
34+
}
35+
```
36+
37+
Add the dependency in your app/module build.gradle:
2338

2439
```groovy
2540
dependencies {
26-
implementation 'com.sfyc.ctpv:counttimeprogressview:2.1.0'
41+
implementation 'com.github.sfyc23:CountTimeProgressView:2.1.0'
2742
}
2843
```
2944

0 commit comments

Comments
 (0)