Skip to content
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

feat(Reddit - Hide banner ads): Constrain to last working version #3156

Closed
wants to merge 2 commits into from

Conversation

ascopes
Copy link

@ascopes ascopes commented May 12, 2024

Until GH-3099 is fixable and addressed, this limits the version of Reddit that can be
used to 2024.0.17 which is the last known working version.

@ascopes ascopes changed the base branch from main to dev May 12, 2024 12:09
Pinned until GH-3099 is addressed.
@ascopes
Copy link
Author

ascopes commented May 12, 2024

Not part of this MR but possibly worth noting that the link to the docs explaining how to structure the commit naming seems to be broken, so the name of this commit is a bit of a stab in the dark on my behalf.

Hopefully this is correct.

Copy link
Member

@oSumAtrIX oSumAtrIX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this patch is a dependency and not usable in any frontend, it inherits the compatibility of the dependant patches. For that reason, the compatibility needs to be set on the patches which depend on this one. Alternatively, this patch can get a name & other patches can stop depend on it so that they can be used on later versions with this patch unselected.

@oSumAtrIX oSumAtrIX changed the title GH-3099: Pin Reddit to 2024.0.17 until GH-3099 is addressed feat(Reddit - Hide banner ads): Constrain to last working version May 12, 2024
@ascopes
Copy link
Author

ascopes commented May 13, 2024

If I go for the latter, is it just a case of setting the name attribute directly or do other patches need modifying as well?

Apologise if it is a silly question, somewhat new to how this works!

Comment on lines +9 to +12
// Constrained to last working version (2024.0.17) until https://github.com/iBotPeaches/Apktool/issues/3534
// is addressed which is causing crashes during patching.
// See https://github.com/ReVanced/revanced-patches/issues/3099.
compatiblePackages = [CompatiblePackage("com.reddit.frontpage", ["2024.0.17"])]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Constrained to last working version (2024.0.17) until https://github.com/iBotPeaches/Apktool/issues/3534
// is addressed which is causing crashes during patching.
// See https://github.com/ReVanced/revanced-patches/issues/3099.
compatiblePackages = [CompatiblePackage("com.reddit.frontpage", ["2024.0.17"])]
// Constrained to last working version (2024.17.0) until https://github.com/iBotPeaches/Apktool/issues/3534
// is addressed which is causing crashes during patching.
// See https://github.com/ReVanced/revanced-patches/issues/3099.
compatiblePackages = [CompatiblePackage("com.reddit.frontpage", ["2024.17.0"])]

Wasn't the last working version 2024.17.0 and not 2024.0.17?

@ascopes ascopes closed this by deleting the head repository May 16, 2024
@ericswpark
Copy link

@ascopes why was the head repository deleted? Did another PR supersede this one?

@ascopes
Copy link
Author

ascopes commented May 19, 2024

Ah whoops, I was removing an unused clone for another revanced project and accidentally deleted the wrong one... will reraise with the correct fixes as given above when I get some time as GitHub won't let me restore it from the web UI. Got the repo locally on my PC still so will repush and cherrypick the fix that was committed on top of this.

Need to take some time to understand how things are structured so I get it right.

Sorry about that!

@ascopes
Copy link
Author

ascopes commented May 19, 2024

Reopened at #3192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants