mirror of
https://github.com/revanced/revanced-patches
synced 2024-09-04 05:26:14 +02:00
feat(Tumblr): Add Disable in-app update
patch (#3058)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
07ffd586fa
commit
5e8076b330
@ -0,0 +1,22 @@
|
|||||||
|
package app.revanced.patches.tumblr.annoyances.inappupdate
|
||||||
|
|
||||||
|
import app.revanced.patcher.data.BytecodeContext
|
||||||
|
import app.revanced.patcher.patch.BytecodePatch
|
||||||
|
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||||
|
import app.revanced.patcher.patch.annotation.Patch
|
||||||
|
import app.revanced.patches.tumblr.featureflags.OverrideFeatureFlagsPatch
|
||||||
|
|
||||||
|
@Patch(
|
||||||
|
name = "Disable in-app update",
|
||||||
|
description = "Disables the in-app update check and update prompt.",
|
||||||
|
dependencies = [OverrideFeatureFlagsPatch::class],
|
||||||
|
compatiblePackages = [CompatiblePackage("com.tumblr")]
|
||||||
|
)
|
||||||
|
@Suppress("unused")
|
||||||
|
object DisableInAppUpdatePatch : BytecodePatch() {
|
||||||
|
override fun execute(context: BytecodeContext) {
|
||||||
|
// Before checking for updates using Google Play core AppUpdateManager, the value of this feature flag is checked.
|
||||||
|
// If this flag is false or the last update check was today and no update check is performed.
|
||||||
|
OverrideFeatureFlagsPatch.addOverride("inAppUpdate", "false")
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user