mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-03 14:14:26 +02:00
add: PackageMetadata
for signatures
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
4e56652429
commit
193eae298a
@ -44,7 +44,7 @@ class MethodSignature(
|
|||||||
* @param methodMetadata Metadata about the method for the [MethodSignature].
|
* @param methodMetadata Metadata about the method for the [MethodSignature].
|
||||||
* @param patternScanMethod The pattern scanning method the pattern scanner should rely on.
|
* @param patternScanMethod The pattern scanning method the pattern scanner should rely on.
|
||||||
* Can either be [PatternScanMethod.Fuzzy] or [PatternScanMethod.Direct].
|
* Can either be [PatternScanMethod.Fuzzy] or [PatternScanMethod.Direct].
|
||||||
* @param description An optional description of the [MethodSignature].
|
* @param description An optional description for the [MethodSignature].
|
||||||
* @param compatiblePackages The list of packages the [MethodSignature] is compatible with.
|
* @param compatiblePackages The list of packages the [MethodSignature] is compatible with.
|
||||||
* @param version The version of this signature.
|
* @param version The version of this signature.
|
||||||
*/
|
*/
|
||||||
@ -52,11 +52,21 @@ data class MethodSignatureMetadata(
|
|||||||
val name: String,
|
val name: String,
|
||||||
val methodMetadata: MethodMetadata?,
|
val methodMetadata: MethodMetadata?,
|
||||||
val patternScanMethod: PatternScanMethod,
|
val patternScanMethod: PatternScanMethod,
|
||||||
val compatiblePackages: Iterable<String>,
|
val compatiblePackages: Iterable<PackageMetadata>,
|
||||||
val description: String?,
|
val description: String?,
|
||||||
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