Name module zips with version code

This commit is contained in:
topjohnwu 2019-08-11 22:46:39 -07:00
parent a797d5d396
commit 0d03833cff
2 changed files with 9 additions and 6 deletions

View File

@ -27,10 +27,9 @@ data class Repo(
val lastUpdate get() = Date(last_update)
val lastUpdateString: String get() =
DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format(lastUpdate)
val lastUpdateString: String get() = dateFormat.format(lastUpdate)
val downloadFilename: String get() = "$name-$version.zip".legalFilename()
val downloadFilename: String get() = "$name-$version($versionCode).zip".legalFilename()
val readme get() = stringRepo.getReadme(this)
@ -65,4 +64,8 @@ data class Repo(
}
class IllegalRepoException(message: String) : Exception(message)
}
companion object {
val dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)!!
}
}

View File

@ -15,7 +15,7 @@ buildscript {
maven { url 'https://kotlin.bintray.com/kotlinx' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0-rc02'
classpath 'com.android.tools.build:gradle:3.5.0-rc03'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41"
@ -44,7 +44,7 @@ subprojects {
getPlugins().hasPlugin('com.android.application')) {
android {
compileSdkVersion 29
buildToolsVersion '29.0.1'
buildToolsVersion '29.0.2'
defaultConfig {
if (minSdkVersion == null)