From 1790f0d7060647ea219739b50204341dadf5df4f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 30 Jul 2023 02:49:08 +0200 Subject: [PATCH 1/6] ci: Change bumping commit scope --- .releaserc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.releaserc b/.releaserc index 5deb9dd..8a8bb30 100644 --- a/.releaserc +++ b/.releaserc @@ -10,7 +10,7 @@ [ "@semantic-release/commit-analyzer", { "releaseRules": [ - { "type": "build", "scope": "needs-bump", "release": "patch" } + { "type": "build", "scope": "Needs bump", "release": "patch" } ] } ], From fae4029cfccfad7aa3dd8f7fbef1c63ee26b85b3 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 2 Aug 2023 00:11:56 +0200 Subject: [PATCH 2/6] feat: add `MutableMethod.getInstructions` extension function --- .../revanced/patcher/extensions/InstructionExtensions.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt b/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt index 72d1410..c670bb6 100644 --- a/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt +++ b/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt @@ -323,4 +323,10 @@ object InstructionExtensions { */ @Suppress("UNCHECKED_CAST") fun MutableMethod.getInstruction(index: Int): T = implementation!!.getInstruction(index) + + /** + * Get the instructions of a method. + * @return The instructions. + */ + fun MutableMethod.getInstructions(): MutableList = implementation!!.instructions } \ No newline at end of file From 9755bab298ab446ef61dff0304000d804006be4f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 2 Aug 2023 00:12:24 +0200 Subject: [PATCH 3/6] refactor: remove unnecessary annotation --- .../app/revanced/patcher/extensions/InstructionExtensions.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt b/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt index c670bb6..b989544 100644 --- a/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt +++ b/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt @@ -321,7 +321,6 @@ object InstructionExtensions { * @param T The type of instruction to return. * @return The instruction. */ - @Suppress("UNCHECKED_CAST") fun MutableMethod.getInstruction(index: Int): T = implementation!!.getInstruction(index) /** From dc28d414dc4edd6d856d44b0385313df98d1f0ee Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 1 Aug 2023 22:14:09 +0000 Subject: [PATCH 4/6] chore(release): 12.1.0-dev.1 [skip ci] # [12.1.0-dev.1](https://github.com/ReVanced/revanced-patcher/compare/v12.0.0...v12.1.0-dev.1) (2023-08-01) ### Features * add `MutableMethod.getInstructions` extension function ([fae4029](https://github.com/ReVanced/revanced-patcher/commit/fae4029cfccfad7aa3dd8f7fbef1c63ee26b85b3)) --- CHANGELOG.md | 7 +++++++ gradle.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ff1a9d..82b2232 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [12.1.0-dev.1](https://github.com/ReVanced/revanced-patcher/compare/v12.0.0...v12.1.0-dev.1) (2023-08-01) + + +### Features + +* add `MutableMethod.getInstructions` extension function ([fae4029](https://github.com/ReVanced/revanced-patcher/commit/fae4029cfccfad7aa3dd8f7fbef1c63ee26b85b3)) + # [12.0.0](https://github.com/ReVanced/revanced-patcher/compare/v11.0.4...v12.0.0) (2023-07-30) diff --git a/gradle.properties b/gradle.properties index 3a18281..4c20828 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ org.gradle.parallel = true org.gradle.caching = true kotlin.code.style = official -version = 12.0.0 +version = 12.1.0-dev.1 From aedf4aea0894b8d9c2bbc0e9041e4f0ba8781939 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 3 Aug 2023 04:15:09 +0200 Subject: [PATCH 5/6] build(Needs bump): Update dependencies --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8d8561f..27d0712 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,9 +23,9 @@ dependencies { implementation("xpp3:xpp3:1.1.4c") implementation("app.revanced:smali:2.5.3-a3836654") implementation("app.revanced:multidexlib2:2.5.3-a3836654") - implementation("app.revanced:apktool-lib:2.8.2") + implementation("app.revanced:apktool-lib:2.8.3") - implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.20-RC") + implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.22") testImplementation("org.jetbrains.kotlin:kotlin-test:1.8.20-RC") } From d6945677c404619bb6b3ae7eb3a6789232f4167b Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 3 Aug 2023 02:16:55 +0000 Subject: [PATCH 6/6] chore(release): 12.1.0-dev.2 [skip ci] # [12.1.0-dev.2](https://github.com/ReVanced/revanced-patcher/compare/v12.1.0-dev.1...v12.1.0-dev.2) (2023-08-03) --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82b2232..76d5760 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# [12.1.0-dev.2](https://github.com/ReVanced/revanced-patcher/compare/v12.1.0-dev.1...v12.1.0-dev.2) (2023-08-03) + # [12.1.0-dev.1](https://github.com/ReVanced/revanced-patcher/compare/v12.0.0...v12.1.0-dev.1) (2023-08-01) diff --git a/gradle.properties b/gradle.properties index 4c20828..deb558b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ org.gradle.parallel = true org.gradle.caching = true kotlin.code.style = official -version = 12.1.0-dev.1 +version = 12.1.0-dev.2