Commit 0d03833c authored by topjohnwu's avatar topjohnwu

Name module zips with version code

parent a797d5d3
...@@ -27,10 +27,9 @@ data class Repo( ...@@ -27,10 +27,9 @@ data class Repo(
val lastUpdate get() = Date(last_update) val lastUpdate get() = Date(last_update)
val lastUpdateString: String get() = val lastUpdateString: String get() = dateFormat.format(lastUpdate)
DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).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) val readme get() = stringRepo.getReadme(this)
...@@ -65,4 +64,8 @@ data class Repo( ...@@ -65,4 +64,8 @@ data class Repo(
} }
class IllegalRepoException(message: String) : Exception(message) class IllegalRepoException(message: String) : Exception(message)
companion object {
val dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)!!
}
} }
...@@ -15,7 +15,7 @@ buildscript { ...@@ -15,7 +15,7 @@ buildscript {
maven { url 'https://kotlin.bintray.com/kotlinx' } maven { url 'https://kotlin.bintray.com/kotlinx' }
} }
dependencies { 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" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41"
...@@ -44,7 +44,7 @@ subprojects { ...@@ -44,7 +44,7 @@ subprojects {
getPlugins().hasPlugin('com.android.application')) { getPlugins().hasPlugin('com.android.application')) {
android { android {
compileSdkVersion 29 compileSdkVersion 29
buildToolsVersion '29.0.1' buildToolsVersion '29.0.2'
defaultConfig { defaultConfig {
if (minSdkVersion == null) if (minSdkVersion == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment