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 May 27, 2023
1 parent d70d53b commit ae09abf
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()
}?.maxOrNull()?.toInt() ?: throw RuntimeException("No platform found")

/**
Expand Down

0 comments on commit ae09abf

Please sign in to comment.