Skip to content

Commit

Permalink
fix: breaking changes by revanced-patcher dependency
Browse files Browse the repository at this point in the history
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
oSumAtrIX committed May 18, 2022
1 parent 3bceed8 commit 7e485b4
Show file tree
Hide file tree
Showing 67 changed files with 3,708 additions and 3,562 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies {
testImplementation(kotlin("test"))

implementation("app.revanced:revanced-patcher:1.+")
implementation(kotlin("reflect"))
}

java {
Expand Down
32 changes: 18 additions & 14 deletions src/main/kotlin/app/revanced/patches/Index.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@ package app.revanced.patches

import app.revanced.patcher.data.base.Data
import app.revanced.patcher.patch.base.Patch
import app.revanced.patches.music.audio.CodecsUnlockPatch
import app.revanced.patches.music.audio.EnableAudioOnlyPatch
import app.revanced.patches.music.layout.RemoveTasteBuilderPatch
import app.revanced.patches.music.layout.RemoveUpgradeTabPatch
import app.revanced.patches.music.premium.BackgroundPlayPatch
import app.revanced.patches.youtube.ad.HomePromoPatch
import app.revanced.patches.youtube.ad.VideoAdsPatch
import app.revanced.patches.youtube.interaction.EnableSeekbarTappingPatch
import app.revanced.patches.youtube.layout.*
import app.revanced.patches.youtube.misc.FixLocaleConfigErrorPatch
import app.revanced.patches.youtube.misc.IntegrationsPatch
import app.revanced.patches.music.audio.codecs.patch.CodecsUnlockPatch
import app.revanced.patches.music.audio.exclusiveaudio.patch.ExclusiveAudioPatch
import app.revanced.patches.music.layout.tastebuilder.patch.RemoveTasteBuilderPatch
import app.revanced.patches.music.layout.upgradebutton.patch.RemoveUpgradeButtonPatch
import app.revanced.patches.music.premium.backgroundplay.patch.BackgroundPlayPatch
import app.revanced.patches.youtube.ad.home.patch.PromotionsPatch
import app.revanced.patches.youtube.ad.video.patch.VideoAdsPatch
import app.revanced.patches.youtube.interaction.seekbar.patch.EnableSeekbarTappingPatch
import app.revanced.patches.youtube.layout.createbutton.patch.CreateButtonRemoverPatch
import app.revanced.patches.youtube.layout.minimizedplayback.patch.MinimizedPlaybackPatch
import app.revanced.patches.youtube.layout.oldqualitylayout.patch.OldQualityLayoutPatch
import app.revanced.patches.youtube.layout.reels.patch.HideReelsPatch
import app.revanced.patches.youtube.layout.shorts.button.patch.ShortsButtonRemoverPatch
import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
import app.revanced.patches.youtube.misc.manifest.patch.FixLocaleConfigErrorPatch

/**
* Index contains all the patches.
Expand All @@ -28,15 +32,15 @@ object Index {
::FixLocaleConfigErrorPatch,
//::HomeAdsPatch,
::VideoAdsPatch,
::HomePromoPatch,
::PromotionsPatch,
::MinimizedPlaybackPatch,
::CreateButtonRemoverPatch,
::ShortsButtonRemoverPatch,
::HideReelsPatch,
::OldQualityLayoutPatch,
::EnableSeekbarTappingPatch,
::EnableAudioOnlyPatch,
::RemoveUpgradeTabPatch,
::ExclusiveAudioPatch,
::RemoveUpgradeButtonPatch,
::RemoveTasteBuilderPatch,
::BackgroundPlayPatch,
::CodecsUnlockPatch
Expand Down
157 changes: 0 additions & 157 deletions src/main/kotlin/app/revanced/patches/music/audio/CodecsUnlockPatch.kt

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package app.revanced.patches.music.audio.codecs.annotations

import app.revanced.patcher.annotation.Compatibility
import app.revanced.patcher.annotation.Package

@Compatibility(
[Package(
"com.google.android.apps.youtube.music", arrayOf("5.03.50")
)]
)
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
internal annotation class CodecsUnlockCompatibility

Loading

0 comments on commit 7e485b4

Please sign in to comment.