Skip to content

Commit

Permalink
Name module zips with version code
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Aug 12, 2019
1 parent a797d5d commit 0d03833
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -65,4 +64,8 @@ data class Repo(
}

class IllegalRepoException(message: String) : Exception(message)
}

companion object {
val dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)!!
}
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0d03833

Please sign in to comment.