Skip to content

Commit

Permalink
fix: PackageMetadata
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 193eae2 commit 7399450
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
14 changes: 12 additions & 2 deletions src/main/kotlin/app/revanced/patcher/patch/Patch.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
Original file line number Diff line number Diff line change
@@ -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

/**
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7399450

Please sign in to comment.