Skip to content

Commit

Permalink
add: PackageMetadata for signatures
Browse files Browse the repository at this point in the history
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
oSumAtrIX committed Jun 5, 2022
1 parent 4e56652 commit 193eae2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/main/kotlin/app/revanced/patcher/signature/MethodSignature.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,29 @@ class MethodSignature(
* @param methodMetadata Metadata about the method for the [MethodSignature].
* @param patternScanMethod The pattern scanning method the pattern scanner should rely on.
* 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 version The version of this signature.
*/
data class MethodSignatureMetadata(
val name: String,
val methodMetadata: MethodMetadata?,
val patternScanMethod: PatternScanMethod,
val compatiblePackages: Iterable<String>,
val compatiblePackages: Iterable<PackageMetadata>,
val description: 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].
* @param definingClass The defining class name of the method.
Expand Down

0 comments on commit 193eae2

Please sign in to comment.