mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-12 04:13:57 +01:00
Compare commits
7 Commits
v3.0.0-dev
...
v3.0.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
693d8a0f56 | ||
|
|
6a03c1f8c3 | ||
|
|
e820724111 | ||
|
|
ba58edbd7f | ||
|
|
a6d7c633f5 | ||
|
|
17f44ca780 | ||
|
|
3bd66406cc |
26
CHANGELOG.md
26
CHANGELOG.md
@@ -1,3 +1,29 @@
|
|||||||
|
# [3.0.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v3.0.0-dev.6...v3.0.0-dev.7) (2023-12-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **Twitter - Dynamic Color:** Remove blue icon and update app name ([#3384](https://github.com/ReVanced/revanced-patches/issues/3384)) ([3db6615](https://github.com/ReVanced/revanced-patches/commit/3db6615568e399aa13dac093868df3d0e1ebc4c3))
|
||||||
|
|
||||||
|
# [3.0.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v3.0.0-dev.5...v3.0.0-dev.6) (2023-12-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **Twitch - Settings:** Support version `16.1.0` and `15.4.1` ([#3377](https://github.com/ReVanced/revanced-patches/issues/3377)) ([062310d](https://github.com/ReVanced/revanced-patches/commit/062310dcc3923568c96171420c7fb9c0c2144233))
|
||||||
|
|
||||||
|
# [3.0.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v3.0.0-dev.4...v3.0.0-dev.5) (2023-12-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Use correct class loader to load resources ([1d5f1f8](https://github.com/ReVanced/revanced-patches/commit/1d5f1f83be1f4eb78381887cd59f1649f1ed6d71))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **Photomath:** Constrain patches to last working version ([f9a5dc6](https://github.com/ReVanced/revanced-patches/commit/f9a5dc6c91f37e9d7018e631739ca61511940d29))
|
||||||
|
|
||||||
# [3.0.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v3.0.0-dev.3...v3.0.0-dev.4) (2023-12-04)
|
# [3.0.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v3.0.0-dev.3...v3.0.0-dev.4) (2023-12-04)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 3.0.0-dev.4
|
version = 3.0.0-dev.7
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -14,7 +14,7 @@ import kotlin.random.Random
|
|||||||
name = "Spoof device ID",
|
name = "Spoof device ID",
|
||||||
description = "Spoofs device ID to mitigate manual bans by developers.",
|
description = "Spoofs device ID to mitigate manual bans by developers.",
|
||||||
dependencies = [SignatureDetectionPatch::class],
|
dependencies = [SignatureDetectionPatch::class],
|
||||||
compatiblePackages = [CompatiblePackage("com.microblink.photomath")]
|
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.32.0"])]
|
||||||
)
|
)
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object SpoofDeviceIdPatch : BytecodePatch(
|
object SpoofDeviceIdPatch : BytecodePatch(
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import app.revanced.patches.photomath.misc.unlockplus.fingerprints.IsPlusUnlocke
|
|||||||
@Patch(
|
@Patch(
|
||||||
name = "Unlock plus",
|
name = "Unlock plus",
|
||||||
dependencies = [SignatureDetectionPatch::class, EnableBookpointPatch::class],
|
dependencies = [SignatureDetectionPatch::class, EnableBookpointPatch::class],
|
||||||
compatiblePackages = [CompatiblePackage("com.microblink.photomath")]
|
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.32.0"])]
|
||||||
)
|
)
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object UnlockPlusPatch : BytecodePatch(
|
object UnlockPlusPatch : BytecodePatch(
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import java.io.Closeable
|
|||||||
description = "Adds settings menu to Twitch.",
|
description = "Adds settings menu to Twitch.",
|
||||||
dependencies = [IntegrationsPatch::class, SettingsResourcePatch::class],
|
dependencies = [IntegrationsPatch::class, SettingsResourcePatch::class],
|
||||||
compatiblePackages = [
|
compatiblePackages = [
|
||||||
CompatiblePackage("tv.twitch.android.app", ["16.9.1"])
|
CompatiblePackage("tv.twitch.android.app", ["15.4.1", "16.1.0", "16.9.1"])
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
object SettingsPatch : BytecodePatch(
|
object SettingsPatch : BytecodePatch(
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import java.nio.file.Files
|
|||||||
|
|
||||||
@Patch(
|
@Patch(
|
||||||
name = "Dynamic color",
|
name = "Dynamic color",
|
||||||
description = "Replaces the default Twitter Blue with the user's Material You palette.",
|
description = "Replaces the default X (Formerly Twitter) Blue with the user's Material You palette.",
|
||||||
compatiblePackages = [CompatiblePackage("com.twitter.android")]
|
compatiblePackages = [CompatiblePackage("com.twitter.android")]
|
||||||
)
|
)
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@@ -46,8 +46,7 @@ object DynamicColorPatch : ResourcePatch() {
|
|||||||
"twitter_blue_opacity_30" to "@android:color/system_accent1_100",
|
"twitter_blue_opacity_30" to "@android:color/system_accent1_100",
|
||||||
"twitter_blue_opacity_50" to "@android:color/system_accent1_200",
|
"twitter_blue_opacity_50" to "@android:color/system_accent1_200",
|
||||||
"twitter_blue_opacity_58" to "@android:color/system_accent1_300",
|
"twitter_blue_opacity_58" to "@android:color/system_accent1_300",
|
||||||
"deep_transparent_twitter_blue" to "@android:color/system_accent1_200",
|
"deep_transparent_twitter_blue" to "@android:color/system_accent1_200"
|
||||||
"ic_launcher_background" to "#1DA1F2"
|
|
||||||
).forEach { (k, v) ->
|
).forEach { (k, v) ->
|
||||||
val colorElement = document.createElement("color")
|
val colorElement = document.createElement("color")
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import org.w3c.dom.Node
|
|||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
import java.nio.file.StandardCopyOption
|
import java.nio.file.StandardCopyOption
|
||||||
|
|
||||||
|
private val classLoader = object {}.javaClass.classLoader
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recursively traverse the DOM tree starting from the given root node.
|
* Recursively traverse the DOM tree starting from the given root node.
|
||||||
*
|
*
|
||||||
@@ -45,7 +47,6 @@ fun ResourceContext.mergeStrings(host: String) {
|
|||||||
* @param resources The resources to copy.
|
* @param resources The resources to copy.
|
||||||
*/
|
*/
|
||||||
fun ResourceContext.copyResources(sourceResourceDirectory: String, vararg resources: ResourceGroup) {
|
fun ResourceContext.copyResources(sourceResourceDirectory: String, vararg resources: ResourceGroup) {
|
||||||
val classLoader = javaClass.classLoader
|
|
||||||
val targetResourceDirectory = this["res"]
|
val targetResourceDirectory = this["res"]
|
||||||
|
|
||||||
for (resourceGroup in resources) {
|
for (resourceGroup in resources) {
|
||||||
@@ -77,7 +78,7 @@ fun ResourceContext.iterateXmlNodeChildren(
|
|||||||
targetTag: String,
|
targetTag: String,
|
||||||
callback: (node: Node) -> Unit
|
callback: (node: Node) -> Unit
|
||||||
) =
|
) =
|
||||||
xmlEditor[javaClass.classLoader.getResourceAsStream(resource)!!].use {
|
xmlEditor[classLoader.getResourceAsStream(resource)!!].use {
|
||||||
val stringsNode = it.file.getElementsByTagName(targetTag).item(0).childNodes
|
val stringsNode = it.file.getElementsByTagName(targetTag).item(0).childNodes
|
||||||
for (i in 1 until stringsNode.length - 1) callback(stringsNode.item(i))
|
for (i in 1 until stringsNode.length - 1) callback(stringsNode.item(i))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user