Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
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
liuqiang
skiko
Commits
f34519d8
Unverified
Commit
f34519d8
authored
Aug 12, 2024
by
Niclas
Committed by
GitHub
Aug 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #973 -- NumberFormatException in JvmTaskConfiguration (#977)
See
https://github.com/JetBrains/skiko/issues/973
parent
d04654c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
JvmTasksConfiguration.kt
.../main/kotlin/tasks/configuration/JvmTasksConfiguration.kt
+1
-1
No files found.
skiko/buildSrc/src/main/kotlin/tasks/configuration/JvmTasksConfiguration.kt
View file @
f34519d8
...
...
@@ -543,7 +543,7 @@ fun Project.androidJar(askedVersion: String = ""): Provider<File> =
val
platformsDir
=
androidHome
.
resolve
(
"platforms"
)
val
versions
=
platformsDir
.
list
().
orEmpty
()
versions
.
maxByOrNull
{
name
->
// possible name: "android-32", "android-33-ext4"
name
.
split
(
"-"
).
getOrNull
(
1
)
?.
toInt
()
?:
0
name
.
split
(
"-"
).
getOrNull
(
1
)
?.
toInt
OrNull
()
?:
0
}
?:
error
(
buildString
{
appendLine
(
"'$platformsDir' does not contain any directories matching expected 'android-NUMBER' format: ${versions}"
)
...
...
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