Add nightly build type
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import java.time.LocalDateTime
|
||||
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
@@ -37,6 +39,12 @@ android {
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
nightly {
|
||||
initWith release
|
||||
applicationIdSuffix = '.nightly'
|
||||
defaultConfig.versionCode = LocalDateTime.now().format("yyMMdd").toInteger()
|
||||
defaultConfig.versionName = "N" + LocalDateTime.now().format("yyMMdd")
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
|
||||
Reference in New Issue
Block a user