mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-06-12 05:07:45 +02:00
chore: Separate extensions by app (#3905)
This commit is contained in:
17
extensions/youtube/stub/build.gradle.kts
Normal file
17
extensions/youtube/stub/build.gradle.kts
Normal file
@ -0,0 +1,17 @@
|
||||
plugins {
|
||||
id(libs.plugins.android.library.get().pluginId)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "app.revanced.extension"
|
||||
compileSdk = 33
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 24
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
}
|
1
extensions/youtube/stub/src/main/AndroidManifest.xml
Normal file
1
extensions/youtube/stub/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1 @@
|
||||
<manifest/>
|
@ -0,0 +1,20 @@
|
||||
package android.support.v7.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
|
||||
public class RecyclerView extends View {
|
||||
|
||||
public RecyclerView(Context context) {
|
||||
super(context);
|
||||
throw new UnsupportedOperationException("Stub");
|
||||
}
|
||||
|
||||
public View getChildAt(@SuppressWarnings("unused") final int index) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getChildCount() {
|
||||
return 0;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.google.android.android.support.constraint;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
/**
|
||||
* "CompileOnly" class
|
||||
* because android.support.android.support.constraint.ConstraintLayout is deprecated
|
||||
* in favour of androidx.constraintlayout.widget.ConstraintLayout.
|
||||
* <p>
|
||||
* This class will not be included and "replaced" by the real package's class.
|
||||
*/
|
||||
public class ConstraintLayout extends ViewGroup {
|
||||
public ConstraintLayout(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onLayout(boolean changed, int l, int t, int r, int b) { }
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.google.android.apps.youtube.app.ui;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
public class SlimMetadataScrollableButtonContainerLayout extends ViewGroup {
|
||||
|
||||
public SlimMetadataScrollableButtonContainerLayout(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public SlimMetadataScrollableButtonContainerLayout(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public SlimMetadataScrollableButtonContainerLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onLayout(boolean b, int i, int i1, int i2, int i3) {
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.google.android.libraries.youtube.rendering.ui.pivotbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.HorizontalScrollView;
|
||||
|
||||
public class PivotBar extends HorizontalScrollView {
|
||||
public PivotBar(Context context) {
|
||||
super(context);
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.google.protos.youtube.api.innertube;
|
||||
|
||||
public class InnertubeContext$ClientInfo {
|
||||
public int r;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package org.chromium.net;
|
||||
|
||||
public abstract class UrlRequest {
|
||||
public abstract class Builder {
|
||||
public abstract Builder addHeader(String name, String value);
|
||||
public abstract UrlRequest build();
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package org.chromium.net;
|
||||
|
||||
//dummy class
|
||||
public abstract class UrlResponseInfo {
|
||||
|
||||
public abstract String getUrl();
|
||||
|
||||
public abstract int getHttpStatusCode();
|
||||
|
||||
// Add additional existing methods, if needed.
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package org.chromium.net.impl;
|
||||
|
||||
import org.chromium.net.UrlRequest;
|
||||
|
||||
public abstract class CronetUrlRequest extends UrlRequest {
|
||||
|
||||
/**
|
||||
* Method is added by patch.
|
||||
*/
|
||||
public abstract String getHookedUrl();
|
||||
}
|
Reference in New Issue
Block a user