diff --git a/api/android/revanced-library.api b/api/android/revanced-library.api index 9233cad..728d350 100644 --- a/api/android/revanced-library.api +++ b/api/android/revanced-library.api @@ -102,7 +102,6 @@ public final class app/revanced/library/PatchUtils$Json { } public final class app/revanced/library/PatchUtils$Json$FullJsonPatch : app/revanced/library/PatchUtils$Json$JsonPatch { - public static final field Companion Lapp/revanced/library/PatchUtils$Json$FullJsonPatch$Companion; public final fun getCompatiblePackages ()Ljava/util/Set; public final fun getDescription ()Ljava/lang/String; public final fun getName ()Ljava/lang/String; @@ -110,12 +109,7 @@ public final class app/revanced/library/PatchUtils$Json$FullJsonPatch : app/reva public final fun getUse ()Z } -public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$Companion { - public final fun fromPatch (Lapp/revanced/patcher/patch/Patch;)Lapp/revanced/library/PatchUtils$Json$FullJsonPatch; -} - public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption { - public static final field Companion Lapp/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption$Companion; public final fun getDefault ()Ljava/lang/Object; public final fun getDescription ()Ljava/lang/String; public final fun getKey ()Ljava/lang/String; @@ -125,10 +119,6 @@ public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPa public final fun getValues ()Ljava/util/Map; } -public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption$Companion { - public final fun fromPatchOption (Lapp/revanced/patcher/patch/Option;)Lapp/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption; -} - public abstract interface class app/revanced/library/PatchUtils$Json$JsonPatch { } diff --git a/api/jvm/revanced-library.api b/api/jvm/revanced-library.api index 739e443..6587605 100644 --- a/api/jvm/revanced-library.api +++ b/api/jvm/revanced-library.api @@ -102,7 +102,6 @@ public final class app/revanced/library/PatchUtils$Json { } public final class app/revanced/library/PatchUtils$Json$FullJsonPatch : app/revanced/library/PatchUtils$Json$JsonPatch { - public static final field Companion Lapp/revanced/library/PatchUtils$Json$FullJsonPatch$Companion; public final fun getCompatiblePackages ()Ljava/util/Set; public final fun getDescription ()Ljava/lang/String; public final fun getName ()Ljava/lang/String; @@ -110,12 +109,7 @@ public final class app/revanced/library/PatchUtils$Json$FullJsonPatch : app/reva public final fun getUse ()Z } -public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$Companion { - public final fun fromPatch (Lapp/revanced/patcher/patch/Patch;)Lapp/revanced/library/PatchUtils$Json$FullJsonPatch; -} - public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption { - public static final field Companion Lapp/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption$Companion; public final fun getDefault ()Ljava/lang/Object; public final fun getDescription ()Ljava/lang/String; public final fun getKey ()Ljava/lang/String; @@ -125,10 +119,6 @@ public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPa public final fun getValues ()Ljava/util/Map; } -public final class app/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption$Companion { - public final fun fromPatchOption (Lapp/revanced/patcher/patch/Option;)Lapp/revanced/library/PatchUtils$Json$FullJsonPatch$FullJsonPatchOption; -} - public abstract interface class app/revanced/library/PatchUtils$Json$JsonPatch { } diff --git a/src/commonMain/kotlin/app/revanced/library/PatchUtils.kt b/src/commonMain/kotlin/app/revanced/library/PatchUtils.kt index 588620a..a8dc271 100644 --- a/src/commonMain/kotlin/app/revanced/library/PatchUtils.kt +++ b/src/commonMain/kotlin/app/revanced/library/PatchUtils.kt @@ -123,8 +123,8 @@ object PatchUtils { val use: Boolean, val options: Map>, ) : JsonPatch { - companion object { - fun fromPatch(patch: Patch<*>) = + internal companion object { + internal fun fromPatch(patch: Patch<*>) = FullJsonPatch( patch.name, patch.description, @@ -148,8 +148,8 @@ object PatchUtils { val required: Boolean, val type: KType, ) { - companion object { - fun fromPatchOption(option: Option<*>) = + internal companion object { + internal fun fromPatchOption(option: Option<*>) = FullJsonPatchOption( option.key, option.default,