Skip to content

Commit

Permalink
fix exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Apr 14, 2024
1 parent cf970dd commit 3e87e73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
lib = "2.0.0-alpha-03"
lib = "2.0.0-alpha-04"
android = "8.1.2"
auto-service = "1.1.1"
kotlin = "1.9.23"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object DeobfuscatorGenerator {
val varargListOf = listOfFunction.firstNotNullOf { function ->
val params = function.owner.valueParameters
if (params.isNotEmpty()) {
if (params.single().isVararg) {
if (params.first().isVararg) {
function
} else {
null
Expand All @@ -76,7 +76,7 @@ object DeobfuscatorGenerator {
}

val props = irClass?.properties?.toList() ?: emptyList()
valuesField = props.first {
valuesField = props.firstOrNull {
it.name == Name.identifier("values")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ open class SekretPlugin : Plugin<Project> {
}

companion object {
private const val VERSION = "2.0.0-alpha-03"
private const val VERSION = "2.0.0-alpha-04"

internal fun getVersion(): String {
return runCatching {
Expand Down

0 comments on commit 3e87e73

Please sign in to comment.