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

Commit 7b6e891

Browse files
authored
Merge pull request #2 from AgoraIO-Community/dev-lq
Dev lq
2 parents 1b6a28b + d27448e commit 7b6e891

File tree

5 files changed

+250
-42
lines changed

5 files changed

+250
-42
lines changed

lrcview/build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
defaultConfig {
99
minSdkVersion 16
1010
targetSdkVersion 31
11-
versionCode 3
12-
versionName "1.0.2"
11+
versionCode 6
12+
versionName "1.0.5"
1313

1414
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1515
consumerProguardFiles "consumer-rules.pro"
@@ -26,6 +26,13 @@ android {
2626
sourceCompatibility JavaVersion.VERSION_1_8
2727
targetCompatibility JavaVersion.VERSION_1_8
2828
}
29+
30+
libraryVariants.all { variant ->
31+
variant.outputs.all {
32+
outputFileName = "lrc_view_v" +
33+
defaultConfig.versionName + ".aar"
34+
}
35+
}
2936
}
3037

3138
dependencies {
@@ -35,14 +42,17 @@ dependencies {
3542

3643
afterEvaluate {
3744
publishing {
45+
repositories {
46+
it.mavenLocal()
47+
}
3848
publications {
3949
// Creates a Maven publication called "release".
4050
release(MavenPublication) {
4151
artifact sourceJar
4252
from components.release
4353
groupId = 'com.github.AgoraIO-Community'
4454
artifactId = 'LrcView-Android'
45-
version = '1.0.2'
55+
version = '1.0.5'
4656
}
4757
}
4858
}

lrcview/src/main/java/io/agora/lrcview/LrcView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private void init(AttributeSet attrs) {
125125
mDefaultLabel = TextUtils.isEmpty(mDefaultLabel) ? getContext().getString(R.string.lrc_label) : mDefaultLabel;
126126
int lrcTextGravity = ta.getInteger(R.styleable.LrcView_lrcTextGravity, 0);
127127
mTextGravity = io.agora.lrcview.LrcEntry.Gravity.parse(lrcTextGravity);
128+
enableDrag = ta.getBoolean(R.styleable.LrcView_lrcEnableDrag,true);
128129

129130
ta.recycle();
130131

0 commit comments

Comments
 (0)