generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(Needs bump): Bump ReVanced Patcher & merge ReVanced Integration…
…s by using ReVanced Patches Gradle plugin (#3462)
- Loading branch information
Showing
1,671 changed files
with
50,953 additions
and
32,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
extensions/remove-screen-capture-restriction/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extension { | ||
name = "extensions/all/screencapture/remove-screen-capture-restriction.rve" | ||
} | ||
|
||
android { | ||
namespace = "app.revanced.extension" | ||
} | ||
|
||
dependencies { | ||
compileOnly(libs.annotation) | ||
} |
1 change: 1 addition & 0 deletions
1
extensions/remove-screen-capture-restriction/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<manifest/> |
21 changes: 21 additions & 0 deletions
21
...ed/extension/all/screencapture/removerestriction/RemoveScreencaptureRestrictionPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package app.revanced.extension.all.screencapture.removerestriction; | ||
|
||
import android.media.AudioAttributes; | ||
import android.os.Build; | ||
|
||
import androidx.annotation.RequiresApi; | ||
|
||
public final class RemoveScreencaptureRestrictionPatch { | ||
// Member of AudioAttributes.Builder | ||
@RequiresApi(api = Build.VERSION_CODES.Q) | ||
public static AudioAttributes.Builder setAllowedCapturePolicy(final AudioAttributes.Builder builder, final int capturePolicy) { | ||
builder.setAllowedCapturePolicy(AudioAttributes.ALLOW_CAPTURE_BY_ALL); | ||
|
||
return builder; | ||
} | ||
|
||
// Member of AudioManager static class | ||
public static void setAllowedCapturePolicy(final int capturePolicy) { | ||
// Ignore request | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extension { | ||
name = "extensions/all/screenshot/remove-screenshot-restriction.rve" | ||
} | ||
|
||
android { | ||
namespace = "app.revanced.extension" | ||
} |
1 change: 1 addition & 0 deletions
1
extensions/remove-screenshot-restriction/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<manifest/> |
15 changes: 15 additions & 0 deletions
15
...revanced/extension/all/screenshot/removerestriction/RemoveScreenshotRestrictionPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package app.revanced.extension.all.screenshot.removerestriction; | ||
|
||
import android.view.Window; | ||
import android.view.WindowManager; | ||
|
||
public class RemoveScreenshotRestrictionPatch { | ||
|
||
public static void addFlags(Window window, int flags) { | ||
window.addFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE); | ||
} | ||
|
||
public static void setFlags(Window window, int flags, int mask) { | ||
window.setFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE, mask & ~WindowManager.LayoutParams.FLAG_SECURE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
extension { | ||
name = "extensions/shared.rve" | ||
} | ||
|
||
android { | ||
namespace = "app.revanced.extension" | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = true | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly(libs.appcompat) | ||
compileOnly(libs.annotation) | ||
compileOnly(libs.okhttp) | ||
compileOnly(libs.retrofit) | ||
|
||
compileOnly(project(":extensions:shared:stub")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-dontobfuscate | ||
-dontoptimize | ||
-keepattributes * | ||
-keep class app.revanced.** { | ||
*; | ||
} | ||
-keep class com.google.** { | ||
*; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> | ||
</manifest> |
24 changes: 24 additions & 0 deletions
24
extensions/shared/src/main/java/app/revanced/extension/boostforreddit/FixSLinksPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package app.revanced.extension.boostforreddit; | ||
|
||
import com.rubenmayayo.reddit.ui.activities.WebViewActivity; | ||
|
||
import app.revanced.extension.shared.fixes.slink.BaseFixSLinksPatch; | ||
|
||
/** @noinspection unused*/ | ||
public class FixSLinksPatch extends BaseFixSLinksPatch { | ||
static { | ||
INSTANCE = new FixSLinksPatch(); | ||
} | ||
|
||
private FixSLinksPatch() { | ||
webViewActivityClass = WebViewActivity.class; | ||
} | ||
|
||
public static boolean patchResolveSLink(String link) { | ||
return INSTANCE.resolveSLink(link); | ||
} | ||
|
||
public static void patchSetAccessToken(String accessToken) { | ||
INSTANCE.setAccessToken(accessToken); | ||
} | ||
} |
Oops, something went wrong.