1
0
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:
Anton Afanasyeu
2026-06-08 22:09:02 +02:00
parent 1ddb51312c
commit 1e08efb9a4
41 changed files with 1360 additions and 401 deletions

View 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;
}
}

View File

@@ -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());
}
}