mirror of
https://github.com/topjohnwu/Magisk
synced 2024-11-11 17:38:25 +01:00
Name module zips with version code
This commit is contained in:
parent
a797d5d396
commit
0d03833cff
@ -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)!!
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user