mirror of
git://f0xx.org/android_cast
synced 2026-07-29 08:19:00 +03:00
be sync - preparing for sfu integration, login hopefully fixed
This commit is contained in:
18
app/src/main/java/com/foxx/androidcast/sfu/SfuRelayGate.java
Normal file
18
app/src/main/java/com/foxx/androidcast/sfu/SfuRelayGate.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.foxx.androidcast.sfu;
|
||||
|
||||
import com.foxx.androidcast.CastConfig;
|
||||
|
||||
/**
|
||||
* Hidden gate for SFU / WebRTC relay experiments (post-alpha).
|
||||
* Not exposed in release settings while {@link CastConfig#ALPHA_FEATURE_FREEZE} is on.
|
||||
*/
|
||||
public final class SfuRelayGate {
|
||||
/** Compile-time preview; must stay false until owner spec + BE SFU is ready. */
|
||||
public static final boolean PREVIEW_ENABLED = false;
|
||||
|
||||
private SfuRelayGate() {}
|
||||
|
||||
public static boolean isAvailable() {
|
||||
return PREVIEW_ENABLED && !CastConfig.ALPHA_FEATURE_FREEZE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.foxx.androidcast.sfu;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class SfuRelayGateTest {
|
||||
@Test
|
||||
public void previewDisabledByDefault() {
|
||||
assertFalse(SfuRelayGate.PREVIEW_ENABLED);
|
||||
assertFalse(SfuRelayGate.isAvailable());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user