diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b20eb4..2170654 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - name: Setup JDK uses: actions/setup-java@v3 with: - java-version: '17' + java-version: '11' distribution: 'zulu' cache: gradle - name: Setup Node.js diff --git a/CHANGELOG.md b/CHANGELOG.md index d997328..bc5ff3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [7.1.1-dev.1](https://github.com/revanced/revanced-patcher/compare/v7.1.0...v7.1.1-dev.1) (2023-05-07) + + +### Bug Fixes + +* remove `count` instead of `count + 1` instructions with `removeInstructions` ([#167](https://github.com/revanced/revanced-patcher/issues/167)) ([98f8eed](https://github.com/revanced/revanced-patcher/commit/98f8eedecd72b0afe6a0f099a3641a1cc6be2698)) + # [7.1.0](https://github.com/revanced/revanced-patcher/compare/v7.0.0...v7.1.0) (2023-05-05) diff --git a/README.md b/README.md index 438dce7..ed9ccf2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# Patcher -Patcher framework used in the ReVanced project. \ No newline at end of file +# 💉 ReVanced Patcher + +ReVanced Patcher used to patch Android applications. diff --git a/build.gradle.kts b/build.gradle.kts index 904423d..dfe7ee5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,6 +45,10 @@ java { withSourcesJar() } +kotlin { + jvmToolchain(11) +} + publishing { repositories { if (System.getenv("GITHUB_ACTOR") != null) diff --git a/gradle.properties b/gradle.properties index 0e362a5..28c283f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style = official -version = 7.1.0 +version = 7.1.1-dev.1 diff --git a/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt b/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt index 723c377..f828631 100644 --- a/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt +++ b/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt @@ -39,7 +39,7 @@ fun MutableMethodImplementation.replaceInstructions(index: Int, instructions: Li } fun MutableMethodImplementation.removeInstructions(index: Int, count: Int) { - for (i in count downTo 0) { + for (i in count - 1 downTo 0) { this.removeInstruction(index + i) } }