Skip to content

Commit 6f6f07c

Browse files
author
YangSen-qn
committed
change gradle
1 parent 196202b commit 6f6f07c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import java.util.regex.Matcher
22

33
apply plugin: 'com.android.library'
44

5-
def versionNameFunc() {
5+
def versionName() {
66
String config = 'library/src/main/java/com/qiniu/android/common/Constants.java'
77
String fileContents = new File(config).text
88
Matcher myMatcher = fileContents =~ /VERSION = "(.+)";/
@@ -16,7 +16,7 @@ def versionNameToCode(String version) {
1616
return v.toLong()
1717
}
1818

19-
String version = versionNameFunc()
19+
String version = versionName()
2020
int code = versionNameToCode(version)
2121

2222
android {

0 commit comments

Comments
 (0)