Skip to content

Commit

Permalink
Add API version 1.5 to accepted values in MPP language settings
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tk3y authored and demiurg906 committed Feb 1, 2021
1 parent 63b35c7 commit f71f162
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,16 @@ internal fun applyLanguageSettingsToKotlinOptions(
}
}

private val apiVersionValues = ApiVersion.run { listOf(KOTLIN_1_0, KOTLIN_1_1, KOTLIN_1_2, KOTLIN_1_3, KOTLIN_1_4) }
private val apiVersionValues = ApiVersion.run {
listOf(
KOTLIN_1_0,
KOTLIN_1_1,
KOTLIN_1_2,
KOTLIN_1_3,
KOTLIN_1_4,
KOTLIN_1_5
)
}

internal fun parseLanguageVersionSetting(versionString: String) = LanguageVersion.fromVersionString(versionString)
internal fun parseApiVersionSettings(versionString: String) = apiVersionValues.find { it.versionString == versionString }
Expand Down

0 comments on commit f71f162

Please sign in to comment.