From 3569f4b550f52db3a3ae769138028bc1cf22e93f Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Thu, 27 Jun 2024 20:41:40 +0300
Subject: [PATCH] chore: attempt to fix crowdin push
---
.github/workflows/pull_strings.yml | 1 +
.github/workflows/push_strings.yml | 11 +++++++----
.../tiktok/interaction/speed/PlaybackSpeedPatch.kt | 1 -
src/main/resources/addresources/values/strings.xml | 3 +++
4 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pull_strings.yml b/.github/workflows/pull_strings.yml
index 9c8832dd..1eae85fd 100644
--- a/.github/workflows/pull_strings.yml
+++ b/.github/workflows/pull_strings.yml
@@ -14,6 +14,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
+ ref: dev
- name: Pull strings
uses: crowdin/github-action@v1
diff --git a/.github/workflows/push_strings.yml b/.github/workflows/push_strings.yml
index ca238da1..cbf1ad90 100644
--- a/.github/workflows/push_strings.yml
+++ b/.github/workflows/push_strings.yml
@@ -1,10 +1,12 @@
name: Push strings
on:
- workflow_dispatch:
- push:
- paths:
- - /src/main/resources/addresources/values/strings.xml
+ workflow_dispatch:
+ push:
+ branches:
+ - dev
+ paths:
+ - /src/main/resources/addresources/values/strings.xml
jobs:
push:
@@ -15,6 +17,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
+ ref: dev
- name: Push strings
uses: crowdin/github-action@v1
diff --git a/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt
index ac56f8c8..de3e5cb5 100644
--- a/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt
@@ -13,7 +13,6 @@ import app.revanced.patches.tiktok.interaction.speed.fingerprints.OnRenderFirstF
import app.revanced.patches.tiktok.interaction.speed.fingerprints.SetSpeedFingerprint
import app.revanced.util.exception
import app.revanced.util.getReference
-import app.revanced.util.indexOfFirstInstruction
import app.revanced.util.indexOfFirstInstructionOrThrow
import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction11x
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 7b59bf8b..34f578ca 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -241,7 +241,9 @@
Keywords and phrases to hide, separated by new lines\n\nWords with uppercase letters in the middle must be entered with the casing (ie: iPhone, TikTok, LeBlanc)
About keyword filtering
Home/Subscription/Search results are filtered to hide content that matches keyword phrases\n\nLimitations\n• Some Shorts may not be hidden\n• Some UI components may not be hidden\n• Searching for a keyword may show no results
+
Invalid keyword. Cannot use: \'%s\' as a filter
+
Invalid keyword. \'%1$s\' is less than %2$d characters
Keyword \'$s\' will hide all videos
@@ -277,6 +279,7 @@
Hide merchandise banners
Merchandise banners are hidden
Merchandise banners are shown
+
Hide fullscreen ads only works with older devices