mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-29 06:01:03 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
070c09cf71 | ||
|
|
b738dcd7ea | ||
|
|
8efcf329bb | ||
|
|
0e87ef56c4 | ||
|
|
e3bf367ad6 |
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,3 +1,18 @@
|
|||||||
|
## [1.10.2](https://github.com/revanced/revanced-patcher/compare/v1.10.1...v1.10.2) (2022-06-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* dexlib must be propagated ([b738dcd](https://github.com/revanced/revanced-patcher/commit/b738dcd7ea04f5fe56e66af46fb11541fe54f6af))
|
||||||
|
|
||||||
|
## [1.10.1](https://github.com/revanced/revanced-patcher/compare/v1.10.0...v1.10.1) (2022-06-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* callback only when inteded ([e3bf367](https://github.com/revanced/revanced-patcher/commit/e3bf367ad6615b30b06027d65f906b2588567a7f))
|
||||||
|
* mutability of local variable `modified` ([0e87ef5](https://github.com/revanced/revanced-patcher/commit/0e87ef56c418d5c37d58abb9b27f85e25fd44f81))
|
||||||
|
|
||||||
# [1.10.0](https://github.com/revanced/revanced-patcher/compare/v1.9.0...v1.10.0) (2022-06-23)
|
# [1.10.0](https://github.com/revanced/revanced-patcher/compare/v1.9.0...v1.10.0) (2022-06-23)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,9 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
api("app.revanced:multidexlib2:2.5.2.r2")
|
||||||
|
|
||||||
implementation("xpp3:xpp3:1.1.4c")
|
implementation("xpp3:xpp3:1.1.4c")
|
||||||
implementation("app.revanced:multidexlib2:2.5.2.r2")
|
|
||||||
implementation("org.smali:smali:2.5.2")
|
implementation("org.smali:smali:2.5.2")
|
||||||
implementation("org.apktool:apktool-lib:2.6.5-SNAPSHOT")
|
implementation("org.apktool:apktool-lib:2.6.5-SNAPSHOT")
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 1.10.0
|
version = 1.10.2
|
||||||
|
|||||||
@@ -128,8 +128,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||||||
callback: (File) -> Unit
|
callback: (File) -> Unit
|
||||||
) {
|
) {
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
callback(file)
|
var modified = false
|
||||||
|
|
||||||
for (classDef in MultiDexIO.readDexFile(true, file, NAMER, null, null).classes) {
|
for (classDef in MultiDexIO.readDexFile(true, file, NAMER, null, null).classes) {
|
||||||
val type = classDef.type
|
val type = classDef.type
|
||||||
|
|
||||||
@@ -139,7 +138,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||||||
|
|
||||||
logger.trace("Merging $type")
|
logger.trace("Merging $type")
|
||||||
data.bytecodeData.classes.internalClasses.add(classDef)
|
data.bytecodeData.classes.internalClasses.add(classDef)
|
||||||
|
modified = true
|
||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -150,8 +149,9 @@ class Patcher(private val options: PatcherOptions) {
|
|||||||
|
|
||||||
val index = existingClass.second
|
val index = existingClass.second
|
||||||
data.bytecodeData.classes.internalClasses[index] = classDef
|
data.bytecodeData.classes.internalClasses[index] = classDef
|
||||||
|
modified = true
|
||||||
}
|
}
|
||||||
|
if (modified) callback(file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,4 +324,4 @@ private fun BuildOptions.setBuildOptions(options: PatcherOptions) {
|
|||||||
this.aaptPath = options.aaptPath
|
this.aaptPath = options.aaptPath
|
||||||
this.useAapt2 = true
|
this.useAapt2 = true
|
||||||
this.frameworkFolderLocation = options.frameworkFolderLocation
|
this.frameworkFolderLocation = options.frameworkFolderLocation
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user