mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: PackageMetadata
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
193eae298a
commit
7399450139
2 changed files with 13 additions and 12 deletions
|
@ -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>
|
||||
)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue