From 356f1f155348347a8f318a2e024716ebf4fec99b Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:15:14 +0400 Subject: [PATCH 1/2] fix: Fix SMALI compilation on devices with RTL language (#242) --- .../src/main/kotlin/app/revanced/patcher/patch/Patch.kt | 2 +- .../src/main/kotlin/app/revanced/patcher/patch/PatchResult.kt | 1 - .../app/revanced/patcher/util/smali/InlineSmaliCompiler.kt | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/Patch.kt b/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/Patch.kt index c177704..2f56807 100644 --- a/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/Patch.kt +++ b/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/Patch.kt @@ -1,4 +1,4 @@ -@file:Suppress("MemberVisibilityCanBePrivate", "UNUSED_PARAMETER") +@file:Suppress("MemberVisibilityCanBePrivate") package app.revanced.patcher.patch diff --git a/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/PatchResult.kt b/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/PatchResult.kt index 71d40b7..cf25fbe 100644 --- a/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/PatchResult.kt +++ b/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/PatchResult.kt @@ -6,5 +6,4 @@ package app.revanced.patcher.patch * @param patch The [Patch] that was executed. * @param exception The [PatchException] thrown, if any. */ -@Suppress("MemberVisibilityCanBePrivate") class PatchResult internal constructor(val patch: Patch<*>, val exception: PatchException? = null) \ No newline at end of file diff --git a/revanced-patcher/src/main/kotlin/app/revanced/patcher/util/smali/InlineSmaliCompiler.kt b/revanced-patcher/src/main/kotlin/app/revanced/patcher/util/smali/InlineSmaliCompiler.kt index c1931c0..23cd1ec 100644 --- a/revanced-patcher/src/main/kotlin/app/revanced/patcher/util/smali/InlineSmaliCompiler.kt +++ b/revanced-patcher/src/main/kotlin/app/revanced/patcher/util/smali/InlineSmaliCompiler.kt @@ -13,6 +13,7 @@ import com.android.tools.smali.smali.smaliFlexLexer import com.android.tools.smali.smali.smaliParser import com.android.tools.smali.smali.smaliTreeWalker import java.io.InputStreamReader +import java.util.Locale private const val METHOD_TEMPLATE = """ .class LInlineCompiler; @@ -33,7 +34,7 @@ class InlineSmaliCompiler { fun compile( instructions: String, parameters: String, registers: Int, forStaticMethod: Boolean ): List { - val input = METHOD_TEMPLATE.format( + val input = METHOD_TEMPLATE.format(Locale.ENGLISH, if (forStaticMethod) { "static" } else { From b37906fa35f0824f5b9f1cf3fd85571ea1fc373d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 29 Sep 2023 13:18:47 +0000 Subject: [PATCH 2/2] chore(release): 15.0.3-dev.1 [skip ci] ## [15.0.3-dev.1](https://github.com/ReVanced/revanced-patcher/compare/v15.0.2...v15.0.3-dev.1) (2023-09-29) ### Bug Fixes * Fix SMALI compilation on devices with RTL language ([#242](https://github.com/ReVanced/revanced-patcher/issues/242)) ([356f1f1](https://github.com/ReVanced/revanced-patcher/commit/356f1f155348347a8f318a2e024716ebf4fec99b)) --- CHANGELOG.md | 7 +++++++ gradle.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34d9123..7d26480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [15.0.3-dev.1](https://github.com/ReVanced/revanced-patcher/compare/v15.0.2...v15.0.3-dev.1) (2023-09-29) + + +### Bug Fixes + +* Fix SMALI compilation on devices with RTL language ([#242](https://github.com/ReVanced/revanced-patcher/issues/242)) ([356f1f1](https://github.com/ReVanced/revanced-patcher/commit/356f1f155348347a8f318a2e024716ebf4fec99b)) + ## [15.0.2](https://github.com/ReVanced/revanced-patcher/compare/v15.0.1...v15.0.2) (2023-09-27) diff --git a/gradle.properties b/gradle.properties index 82a0ac5..39fe2ea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ org.gradle.parallel = true org.gradle.caching = true kotlin.code.style = official -version = 15.0.2 +version = 15.0.3-dev.1