Skip to content

Commit

Permalink
Ignore Android SDK extension
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonlee committed Jun 8, 2023
1 parent 42e074a commit ef9f0ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class AndroidSdk {

fun findPlatform(): Int = File(location, "platforms").listFiles()?.filter {
it.name.startsWith("android-") && File(it, "android.jar").exists()
}?.map {
it.name.substringAfter("android-")
}?.mapNotNull {
it.name.substringAfter("android-").toIntOrNull()
}?.max()?.toInt() ?: throw RuntimeException("No platform found")

/**
Expand Down

0 comments on commit ef9f0ad

Please sign in to comment.