Fix fingerprints

This commit is contained in:
Nuckyz 2025-05-06 08:27:28 -03:00 committed by GitHub
parent bf33b4dae1
commit 1b7114dcc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,18 +75,22 @@ internal val homeSectionFingerprint = fingerprint {
internal val homeStructureGetSectionsFingerprint = fingerprint {
custom { method, classDef ->
classDef.endsWith("homeapi/proto/HomeStructure;") && method.indexOfFirstInstruction {
opcode == Opcode.IGET_OBJECT && getReference<FieldReference>()?.name == "sections_"
} >= 0
classDef.endsWith("homeapi/proto/HomeStructure;") &&
method.implementation != null &&
method.indexOfFirstInstruction {
opcode == Opcode.IGET_OBJECT && getReference<FieldReference>()?.name == "sections_"
} >= 0
}
}
internal fun reactivexFunctionApplyWithClassInitFingerprint(className: String) = fingerprint {
returns("Ljava/lang/Object;")
parameters("Ljava/lang/Object;")
custom { method, _ -> method.name == "apply" && method.indexOfFirstInstruction {
opcode == Opcode.NEW_INSTANCE && getReference<TypeReference>()?.type?.endsWith(className) == true
} >= 0
custom { method, _ -> method.name == "apply" &&
method.implementation != null &&
method.indexOfFirstInstruction {
opcode == Opcode.NEW_INSTANCE && getReference<TypeReference>()?.type?.endsWith(className) == true
} >= 0
}
}