Skip to content

Commit c3d29df

Browse files
build(lite): 更新构建配置并修改版本号
- 注释掉 getBuildDate() 方法和相关配置 - 将版本号从1.1.8 修改为1.1.6.1- 更新 dependencies 中的版本引用
1 parent 83bf830 commit c3d29df

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lite/build.gradle

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import java.text.SimpleDateFormat
1+
//import java.text.SimpleDateFormat
22

33
plugins {
44
id('com.android.library')
55
id('org.jetbrains.kotlin.android')
66
}
77

8-
static def getBuildDate() {
9-
def date = new Date()
10-
def dateFormat = new SimpleDateFormat("yyyyMMdd", Locale.getDefault())
11-
return dateFormat.format(date)
12-
}
8+
//static def getBuildDate() {
9+
// def date = new Date()
10+
// def dateFormat = new SimpleDateFormat("yyyyMMdd", Locale.getDefault())
11+
// return dateFormat.format(date)
12+
//}
1313

1414
android {
1515
namespace 'com.pengxh.kt.lite'
1616
compileSdk 35
1717

1818
defaultConfig {
1919
minSdk 26
20-
versionName '1.1.8'
20+
versionName '1.1.6.1'
2121

2222
consumerProguardFiles('consumer-rules.pro')
2323
}
@@ -43,11 +43,11 @@ android {
4343
viewBinding true
4444
}
4545

46-
libraryVariants.configureEach {
47-
outputs.configureEach {
48-
outputFileName = "lite-lib-ktx_${getBuildDate()}_${defaultConfig.versionName}.aar"
49-
}
50-
}
46+
// libraryVariants.configureEach {
47+
// outputs.configureEach {
48+
// outputFileName = "lite-lib-ktx_${getBuildDate()}_${defaultConfig.versionName}.aar"
49+
// }
50+
// }
5151
}
5252

5353
dependencies {

0 commit comments

Comments
 (0)