We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196202b commit 6f6f07cCopy full SHA for 6f6f07c
library/build.gradle
@@ -2,7 +2,7 @@ import java.util.regex.Matcher
2
3
apply plugin: 'com.android.library'
4
5
-def versionNameFunc() {
+def versionName() {
6
String config = 'library/src/main/java/com/qiniu/android/common/Constants.java'
7
String fileContents = new File(config).text
8
Matcher myMatcher = fileContents =~ /VERSION = "(.+)";/
@@ -16,7 +16,7 @@ def versionNameToCode(String version) {
16
return v.toLong()
17
}
18
19
-String version = versionNameFunc()
+String version = versionName()
20
int code = versionNameToCode(version)
21
22
android {
0 commit comments