mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-29 05:10:14 +02:00
fix: PackageMetadata
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
193eae298a
commit
7399450139
@ -31,6 +31,16 @@ data class PatchMetadata(
|
|||||||
val shortName: String,
|
val shortName: String,
|
||||||
val name: String,
|
val name: String,
|
||||||
val description: String,
|
val description: String,
|
||||||
val compatiblePackages: Iterable<String>,
|
val compatiblePackages: Iterable<PackageMetadata>,
|
||||||
val version: String,
|
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
|
package app.revanced.patcher.signature
|
||||||
|
|
||||||
import app.revanced.patcher.MethodNotFoundException
|
import app.revanced.patcher.MethodNotFoundException
|
||||||
|
import app.revanced.patcher.patch.PackageMetadata
|
||||||
import org.jf.dexlib2.Opcode
|
import org.jf.dexlib2.Opcode
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,16 +58,6 @@ data class MethodSignatureMetadata(
|
|||||||
val version: String
|
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].
|
* Metadata about the method for a [MethodSignature].
|
||||||
* @param definingClass The defining class name of the method.
|
* @param definingClass The defining class name of the method.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user