From 33391ca3edb595ca66ca56355cec9e320b27ec3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=B7=A5?= Date: Fri, 23 Apr 2021 14:38:03 +0800 Subject: [PATCH] readme --- README.md | 11 ++++++++++- build.gradle | 4 ++-- lrcview/build.gradle | 2 -- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3d1896f..b2999bd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # lrcview -[![Download](https://api.bintray.com/packages/chanwong21/maven/lrcview/images/download.svg)](https://bintray.com/chanwong21/maven/lrcview/_latestVersion) +[![](https://jitpack.io/v/wangchenyan/lrcview.svg)](https://jitpack.io/#wangchenyan/lrcview) ## 系列文章 - [Android开源在线音乐播放器——波尼音乐](https://juejin.im/post/5c373a32e51d4551cc6df6db) @@ -53,6 +53,15 @@ Android歌词控件,支持上下拖动歌词,歌词自动换行,自定义 ## 使用 **Gradle** ``` +// root project build.gradle +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} + +// module build.gradle // "latestVersion"改为文首徽章后对应的数值 implementation 'me.wcy:lrcview:latestVersion' ``` diff --git a/build.gradle b/build.gradle index 65e7207..55ca7f4 100644 --- a/build.gradle +++ b/build.gradle @@ -2,9 +2,9 @@ buildscript { repositories { + mavenCentral() jcenter() google() - mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.0.2' @@ -13,9 +13,9 @@ buildscript { allprojects { repositories { + mavenCentral() jcenter() google() - mavenCentral() } } diff --git a/lrcview/build.gradle b/lrcview/build.gradle index de0ee32..105facd 100644 --- a/lrcview/build.gradle +++ b/lrcview/build.gradle @@ -9,8 +9,6 @@ buildscript { } } -group = 'me.wcy' - android { compileSdkVersion Integer.parseInt(COMPILE_SDK_VERSION) buildToolsVersion BUILD_TOOLS_VERSION