fix: PackageMetadata

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-04-18 18:41:46 +02:00
parent 33f9211f98
commit 305a81793a
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
2 changed files with 13 additions and 12 deletions

View file

@ -31,6 +31,16 @@ data class PatchMetadata(
val shortName: String,
val name: String,
val description: String,
val compatiblePackages: Iterable<String>,
val compatiblePackages: Iterable<PackageMetadata>,
val version: String,
)
)
/**
* Metadata about a package.
* @param name The package name.
* @param versions Compatible versions of the package.
*/
data class PackageMetadata(
val name: String,
val versions: Iterable<String>
)

View file

@ -1,6 +1,7 @@
package app.revanced.patcher.signature
import app.revanced.patcher.MethodNotFoundException
import app.revanced.patcher.patch.PackageMetadata
import org.jf.dexlib2.Opcode
/**
@ -57,16 +58,6 @@ data class MethodSignatureMetadata(
val version: String
)
/**
* Metadata about a package.
* @param name The package name.
* @param version The version of the package.
*/
data class PackageMetadata(
val name: String,
val version: String
)
/**
* Metadata about the method for a [MethodSignature].
* @param definingClass The defining class name of the method.