From b7c108ee201c84df31b079f3fecb6cc2f5eaf9f1 Mon Sep 17 00:00:00 2001
From: oSumAtrIX <johan.melkonyan1@web.de>
Date: Mon, 22 Apr 2024 19:04:06 +0200
Subject: [PATCH] fix: Publicize abstract property

---
 api/revanced-patches.api                                        | 2 ++
 .../kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/api/revanced-patches.api b/api/revanced-patches.api
index 6ee21cc7..692c3038 100644
--- a/api/revanced-patches.api
+++ b/api/revanced-patches.api
@@ -30,6 +30,7 @@ public final class app/revanced/patches/all/misc/debugging/EnableAndroidDebuggin
 
 public final class app/revanced/patches/all/misc/hex/HexPatch : app/revanced/patches/shared/misc/hex/BaseHexPatch {
 	public fun <init> ()V
+	public fun getReplacements ()Ljava/util/List;
 }
 
 public final class app/revanced/patches/all/misc/network/OverrideCertificatePinningPatch : app/revanced/patcher/patch/ResourcePatch {
@@ -677,6 +678,7 @@ public abstract class app/revanced/patches/shared/misc/hex/BaseHexPatch : app/re
 	public fun <init> ()V
 	public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
 	public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
+	public abstract fun getReplacements ()Ljava/util/List;
 }
 
 public final class app/revanced/patches/shared/misc/hex/BaseHexPatch$Replacement {
diff --git a/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt b/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt
index 781444d6..9758483c 100644
--- a/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt
@@ -6,7 +6,7 @@ import app.revanced.patcher.patch.RawResourcePatch
 import kotlin.math.max
 
 abstract class BaseHexPatch : RawResourcePatch() {
-    internal abstract val replacements: List<Replacement>
+    abstract val replacements: List<Replacement>
 
     override fun execute(context: ResourceContext) {
         replacements.groupBy { it.targetFilePath }.forEach { (targetFilePath, replacements) ->