This repository was archived by the owner on Nov 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +250
-42
lines changed Expand file tree Collapse file tree 5 files changed +250
-42
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ android {
8
8
defaultConfig {
9
9
minSdkVersion 16
10
10
targetSdkVersion 31
11
- versionCode 3
12
- versionName " 1.0.2 "
11
+ versionCode 6
12
+ versionName " 1.0.5 "
13
13
14
14
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
15
15
consumerProguardFiles " consumer-rules.pro"
@@ -26,6 +26,13 @@ android {
26
26
sourceCompatibility JavaVersion . VERSION_1_8
27
27
targetCompatibility JavaVersion . VERSION_1_8
28
28
}
29
+
30
+ libraryVariants. all { variant ->
31
+ variant. outputs. all {
32
+ outputFileName = " lrc_view_v" +
33
+ defaultConfig. versionName + " .aar"
34
+ }
35
+ }
29
36
}
30
37
31
38
dependencies {
@@ -35,14 +42,17 @@ dependencies {
35
42
36
43
afterEvaluate {
37
44
publishing {
45
+ repositories {
46
+ it. mavenLocal()
47
+ }
38
48
publications {
39
49
// Creates a Maven publication called "release".
40
50
release(MavenPublication ) {
41
51
artifact sourceJar
42
52
from components. release
43
53
groupId = ' com.github.AgoraIO-Community'
44
54
artifactId = ' LrcView-Android'
45
- version = ' 1.0.2 '
55
+ version = ' 1.0.5 '
46
56
}
47
57
}
48
58
}
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ private void init(AttributeSet attrs) {
125
125
mDefaultLabel = TextUtils .isEmpty (mDefaultLabel ) ? getContext ().getString (R .string .lrc_label ) : mDefaultLabel ;
126
126
int lrcTextGravity = ta .getInteger (R .styleable .LrcView_lrcTextGravity , 0 );
127
127
mTextGravity = io .agora .lrcview .LrcEntry .Gravity .parse (lrcTextGravity );
128
+ enableDrag = ta .getBoolean (R .styleable .LrcView_lrcEnableDrag ,true );
128
129
129
130
ta .recycle ();
130
131
You can’t perform that action at this time.
0 commit comments