Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit 9809bf8

Browse files
committed
[FEAT] Add source code.
1 parent dc1ea46 commit 9809bf8

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,4 @@ private LrcView mLrcView;
9393
| loadLrc(mainLrcText, secondLrcText) | 加载本地歌词文件。 支持加载 LRC 格式的双语歌词,mainLrcText 是中文歌词对象,secondLrcText 是英文歌词对象。对于非双语歌词, 将 mainLrcText 或 secondLrcText 设置为 null。|
9494
| onLoadLrcCompleted | 歌词文件加载完成回调。 |
9595
| updateTime | 根据当前歌曲播放进度更新歌词进度,单位为毫秒。 |
96-
| hasLrc | 获取歌词文件状态。 true:歌词有效 false:歌词无效,无法播放 reset 重置内部状态,清空已经加载的歌词。|
97-
98-
99-
100-
101-
102-
103-
104-
105-
106-
96+
| hasLrc | 获取歌词文件状态。 true:歌词有效 false:歌词无效,无法播放 reset 重置内部状态,清空已经加载的歌词。|

lrcview/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ afterEvaluate {
3838
publications {
3939
// Creates a Maven publication called "release".
4040
release(MavenPublication) {
41+
artifact sourceJar
4142
from components.release
4243
groupId = 'com.github.AgoraIO-Community'
4344
artifactId = 'lrcview'
4445
version = '1.0.0'
4546
}
4647
}
4748
}
49+
}
50+
51+
task sourceJar(type :Jar){
52+
from android.sourceSets.main.java.srcDirs
53+
archiveClassifier.set("sources")
4854
}

0 commit comments

Comments
 (0)