-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Migrate patches to DSL #3107
base: refactor/dsl
Are you sure you want to change the base?
Conversation
src/main/kotlin/app/revanced/patches/youtube/layout/buttons/cast/HideCastButtonPatch.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/NavigationButtonsPatch.kt
Outdated
Show resolved
Hide resolved
...ain/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/HidePlayerButtonsPatch.kt
Outdated
Show resolved
Hide resolved
...p/revanced/patches/serviceportalbund/detection/root/fingerprints/RootDetectionFingerprint.kt
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/songpal/badge/BadgeTabPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/spotify/navbar/PremiumNavbarTabPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/strava/upselling/DisableSubscriptionSuggestionsPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/tiktok/feedfilter/FeedFilterPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/AutoCaptionsPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/HideButtonsPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/HideButtonsPatch.kt
Outdated
Show resolved
Hide resolved
...ain/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/HidePlayerButtonsPatch.kt
Outdated
Show resolved
Hide resolved
...in/app/revanced/patches/youtube/layout/hide/albumcards/fingerprints/AlbumCardsFingerprint.kt
Outdated
Show resolved
Hide resolved
"invoke-static { p0 }, $INTEGRATIONS_CLASS_DESCRIPTOR->activityCreated(Landroid/app/Activity;)V" | ||
) | ||
} | ||
// mainActivityResult.mutableMethod.implementation?.instructions.lastIndex = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need help here
…refactor/dsl # Conflicts: # src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/fingerprints/BootStateFingerprint.kt # src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/fingerprints/CreateKeyFingerprint.kt # src/main/kotlin/app/revanced/patches/finanzonline/detection/root/fingerprints/RootDetectionFingerprint.kt # src/main/kotlin/app/revanced/patches/idaustria/detection/root/fingerprints/AttestationSupportedCheckFingerprint.kt # src/main/kotlin/app/revanced/patches/idaustria/detection/root/fingerprints/BootloaderCheckFingerprint.kt # src/main/kotlin/app/revanced/patches/idaustria/detection/root/fingerprints/RootCheckFingerprint.kt # src/main/kotlin/app/revanced/patches/instagram/patches/ads/timeline/fingerprints/IsAdCheckOneFingerprint.kt # src/main/kotlin/app/revanced/patches/instagram/patches/ads/timeline/fingerprints/IsAdCheckTwoFingerprint.kt # src/main/kotlin/app/revanced/patches/instagram/patches/ads/timeline/fingerprints/ShowAdFingerprint.kt # src/main/kotlin/app/revanced/patches/irplus/ad/fingerprints/IrplusAdsFingerprint.kt # src/main/kotlin/app/revanced/patches/lightroom/misc/login/fingerprints/IsLoggedInFingerprint.kt # src/main/kotlin/app/revanced/patches/lightroom/misc/premium/fingerprints/HasPurchasedFingerprint.kt # src/main/kotlin/app/revanced/patches/memegenerator/detection/license/fingerprints/LicenseValidationFingerprint.kt # src/main/kotlin/app/revanced/patches/memegenerator/detection/signature/fingerprints/VerifySignatureFingerprint.kt # src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/fingerprints/IsFreeVersionFingerprint.kt # src/main/kotlin/app/revanced/patches/myfitnesspal/ads/fingerprints/MainActivityNavigateToNativePremiumUpsellFingerprint.kt # src/main/kotlin/app/revanced/patches/nfctoolsse/misc/pro/fingerprints/IsLicenseRegisteredFingerprint.kt # src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt # src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt # src/main/kotlin/app/revanced/patches/photomath/misc/unlock/bookpoint/fingerprints/IsBookpointEnabledFingerprint.kt # src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt # src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/fingerprints/IsPlusUnlockedFingerprint.kt # src/main/kotlin/app/revanced/patches/pixiv/ads/fingerprints/IsNotPremiumFingerprint.kt
…atches into refactor/dsl
.../app/revanced/patches/finanzonline/detection/bootloader/fingerprints/BootStateFingerprint.kt
Outdated
Show resolved
Hide resolved
...vanced/patches/idaustria/detection/root/fingerprints/AttestationSupportedCheckFingerprint.kt
Outdated
Show resolved
Hide resolved
.../kotlin/app/revanced/patches/memegenerator/misc/pro/fingerprints/IsFreeVersionFingerprint.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/serviceportalbund/detection/root/RootDetectionPatch.kt
Outdated
Show resolved
Hide resolved
object PremiumNavbarTabResourcePatch : ResourcePatch() { | ||
internal var showBottomNavigationItemsTextId = -1L | ||
internal var premiumTabId = -1L | ||
internal var showBottomNavigationItemsTextId = -1L |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setter should be made private on such properties.
src/main/kotlin/app/revanced/patches/twitch/chat/autoclaim/AutoClaimChannelPointsPatch.kt
Outdated
Show resolved
Hide resolved
) | ||
|
||
IsSwipingUpFingerprint.result?.let { | ||
isSwipingUpResult.let { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I corrected it
) | ||
|
||
// Find the required methods to tap the seekbar. | ||
val seekbarTappingMethods = OnTouchEventHandlerFingerprint.result?.let { | ||
val seekbarTappingMethods = onTouchEventHandlerResult.let { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected here as well.
val slideToSeekResult by slideToSeekFingerprint | ||
val doubleSpeedSeekNoticeResult by doubleSpeedSeekNoticeFingerprint | ||
|
||
val integrationsClassDescriptor = "Lapp/revanced/integrations/youtube/patches/SlideToSeekPatch;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was decided to move this to a private (or if necessary internal) constant above the patch, because sometimes fingerprints reference it to keep it consistent.
No description provided.