mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-09 16:52:09 +01:00
fix: Make constructor internal as supposed
This commit is contained in:
parent
d310246852
commit
7f44174d91
3 changed files with 2 additions and 4 deletions
|
@ -149,7 +149,6 @@ public final class app/revanced/patcher/patch/BytecodePatchBuilder : app/revance
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class app/revanced/patcher/patch/BytecodePatchBuilder$InvokedFingerprint {
|
public final class app/revanced/patcher/patch/BytecodePatchBuilder$InvokedFingerprint {
|
||||||
public fun <init> (Lapp/revanced/patcher/Fingerprint;)V
|
|
||||||
public final fun getValue (Ljava/lang/Void;Lkotlin/reflect/KProperty;)Lapp/revanced/patcher/Match;
|
public final fun getValue (Ljava/lang/Void;Lkotlin/reflect/KProperty;)Lapp/revanced/patcher/Match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
package app.revanced.patcher
|
package app.revanced.patcher
|
||||||
|
|
||||||
import app.revanced.patcher.extensions.InstructionExtensions.instructionsOrNull
|
import app.revanced.patcher.extensions.InstructionExtensions.instructionsOrNull
|
||||||
import app.revanced.patcher.patch.BytecodePatchBuilder
|
import app.revanced.patcher.patch.*
|
||||||
import app.revanced.patcher.patch.BytecodePatchContext
|
|
||||||
import app.revanced.patcher.patch.BytecodePatchContext.LookupMaps.Companion.appendParameters
|
import app.revanced.patcher.patch.BytecodePatchContext.LookupMaps.Companion.appendParameters
|
||||||
import app.revanced.patcher.patch.MethodClassPairs
|
import app.revanced.patcher.patch.MethodClassPairs
|
||||||
import app.revanced.patcher.util.proxy.ClassProxy
|
import app.revanced.patcher.util.proxy.ClassProxy
|
||||||
|
|
|
@ -396,7 +396,7 @@ class BytecodePatchBuilder internal constructor(
|
||||||
*/
|
*/
|
||||||
operator fun Fingerprint.invoke() = InvokedFingerprint(also { fingerprints.add(it) })
|
operator fun Fingerprint.invoke() = InvokedFingerprint(also { fingerprints.add(it) })
|
||||||
|
|
||||||
class InvokedFingerprint(private val fingerprint: Fingerprint) {
|
class InvokedFingerprint internal constructor(private val fingerprint: Fingerprint) {
|
||||||
// The reason getValue isn't extending the Fingerprint class is
|
// The reason getValue isn't extending the Fingerprint class is
|
||||||
// because delegating makes only sense if the fingerprint was previously added to the patch by invoking it.
|
// because delegating makes only sense if the fingerprint was previously added to the patch by invoking it.
|
||||||
// It may be likely to forget invoking it. By wrapping the fingerprint into this class,
|
// It may be likely to forget invoking it. By wrapping the fingerprint into this class,
|
||||||
|
|
Loading…
Reference in a new issue