Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
0d03833c
Commit
0d03833c
authored
Aug 12, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Name module zips with version code
parent
a797d5d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
Repo.kt
...ain/java/com/topjohnwu/magisk/model/entity/module/Repo.kt
+7
-4
build.gradle
build.gradle
+2
-2
No files found.
app/src/main/java/com/topjohnwu/magisk/model/entity/module/Repo.kt
View file @
0d03833c
...
@@ -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
)
}
\ No newline at end of file
companion
object
{
val
dateFormat
=
DateFormat
.
getDateTimeInstance
(
DateFormat
.
MEDIUM
,
DateFormat
.
MEDIUM
)
!!
}
}
build.gradle
View file @
0d03833c
...
@@ -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-rc0
2
'
classpath
'com.android.tools.build:gradle:3.5.0-rc0
3
'
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment