forked from ReVanced/revanced-patcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
164 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package app.revanced.patcher | ||
|
||
import app.revanced.patcher.util.dex.DexFile | ||
|
||
/** | ||
* The result of a patcher. | ||
* @param dexFiles The patched dex files. | ||
* @param doNotCompress List of relative paths to files to exclude from compressing. | ||
*/ | ||
data class PatcherResult( | ||
val dexFiles: List<DexFile>, | ||
val doNotCompress: List<String>? = null | ||
) |
13 changes: 13 additions & 0 deletions
13
src/main/kotlin/app/revanced/patcher/data/PackageMetadata.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package app.revanced.patcher.data | ||
|
||
import brut.androlib.meta.MetaInfo | ||
|
||
/** | ||
* Metadata about a package. | ||
*/ | ||
class PackageMetadata { | ||
lateinit var packageName: String | ||
lateinit var packageVersion: String | ||
|
||
internal val metaInfo: MetaInfo = MetaInfo() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package app.revanced.patcher.util.dex | ||
|
||
import org.jf.dexlib2.writer.io.MemoryDataStore | ||
|
||
/** | ||
* Wrapper for dex files. | ||
* @param name The original name of the dex file | ||
* @param memoryDataStore The data store for the dex file. | ||
*/ | ||
data class DexFile(val name: String, val memoryDataStore: MemoryDataStore) |