mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-20 09:53:55 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89a27dfbe6 | ||
|
|
4ea030d0a0 |
@@ -1,3 +1,10 @@
|
|||||||
|
# [2.3.0](https://github.com/revanced/revanced-patcher/compare/v2.2.2...v2.3.0) (2022-07-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* nullability for `BytecodePatch` constructor ([#59](https://github.com/revanced/revanced-patcher/issues/59)) ([4ea030d](https://github.com/revanced/revanced-patcher/commit/4ea030d0a03f736bbecbd491317ba2167b18fe94))
|
||||||
|
|
||||||
## [2.2.2](https://github.com/revanced/revanced-patcher/compare/v2.2.1...v2.2.2) (2022-07-04)
|
## [2.2.2](https://github.com/revanced/revanced-patcher/compare/v2.2.1...v2.2.2) (2022-07-04)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 2.2.2
|
version = 2.3.0
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||||||
data.resourceData
|
data.resourceData
|
||||||
} else {
|
} else {
|
||||||
val bytecodeData = data.bytecodeData
|
val bytecodeData = data.bytecodeData
|
||||||
(patchInstance as BytecodePatch).fingerprints.resolve(bytecodeData, bytecodeData.classes.internalClasses)
|
(patchInstance as BytecodePatch).fingerprints?.resolve(bytecodeData, bytecodeData.classes.internalClasses)
|
||||||
bytecodeData
|
bytecodeData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ import app.revanced.patcher.patch.Patch
|
|||||||
* @param fingerprints A list of [MethodFingerprint] this patch relies on.
|
* @param fingerprints A list of [MethodFingerprint] this patch relies on.
|
||||||
*/
|
*/
|
||||||
abstract class BytecodePatch(
|
abstract class BytecodePatch(
|
||||||
internal val fingerprints: Iterable<MethodFingerprint>
|
internal val fingerprints: Iterable<MethodFingerprint>? = null
|
||||||
) : Patch<BytecodeData>()
|
) : Patch<BytecodeData>()
|
||||||
|
|||||||
Reference in New Issue
Block a user