1
1
package app .revanced .extension .shared .settings ;
2
2
3
+ import app .revanced .extension .shared .spoof .ClientType ;
4
+ import app .revanced .extension .shared .spoof .SpoofVideoStreamsPatch ;
5
+
3
6
import static java .lang .Boolean .FALSE ;
4
7
import static java .lang .Boolean .TRUE ;
5
8
import static app .revanced .extension .shared .settings .Setting .parent ;
6
9
7
10
/**
8
11
* Settings shared across multiple apps.
9
- *
12
+ * <p>
10
13
* To ensure this class is loaded when the UI is created, app specific setting bundles should extend
11
14
* or reference this class.
12
15
*/
@@ -16,4 +19,10 @@ public class BaseSettings {
16
19
public static final BooleanSetting DEBUG_TOAST_ON_ERROR = new BooleanSetting ("revanced_debug_toast_on_error" , TRUE , "revanced_debug_toast_on_error_user_dialog_message" );
17
20
18
21
public static final IntegerSetting CHECK_ENVIRONMENT_WARNINGS_ISSUED = new IntegerSetting ("revanced_check_environment_warnings_issued" , 0 , true , false );
22
+
23
+ public static final BooleanSetting SPOOF_VIDEO_STREAMS = new BooleanSetting ("revanced_spoof_video_streams" , TRUE , true , "revanced_spoof_video_streams_user_dialog_message" );
24
+ public static final BooleanSetting SPOOF_VIDEO_STREAMS_IOS_FORCE_AVC = new BooleanSetting ("revanced_spoof_video_streams_ios_force_avc" , FALSE , true ,
25
+ "revanced_spoof_video_streams_ios_force_avc_user_dialog_message" , new SpoofVideoStreamsPatch .ForceiOSAVCAvailability ());
26
+ public static final EnumSetting <ClientType > SPOOF_VIDEO_STREAMS_CLIENT_TYPE = new EnumSetting <>("revanced_spoof_video_streams_client" , ClientType .ANDROID_VR , true , parent (SPOOF_VIDEO_STREAMS ));
27
+
19
28
}
0 commit comments