1111import io .split .android .client .utils .logger .Logger ;
1212
1313/**
14- * Handles proxy spec fallback and recovery for Split SDK .
14+ * Handles proxy spec fallback and recovery.
1515 *
1616 * <p>This class manages the state machine that determines which spec version (latest or legacy) should be used
1717 * to communicate with the Split Proxy, based on observed proxy compatibility errors.
3434 * </ul>
3535 * <p>Only an explicit proxy outdated error triggers fallback. Generic 400s do not.</p>
3636 *
37- * <p>This class provides the following functionality:</p>
38- * <ul>
39- * <li>Tracks proxy errors and updates the state machine accordingly.</li>
40- * <li>Performs periodic proxy checks to attempt recovery.</li>
41- * <li>Provides the current spec version based on the state machine.</li>
42- * <li>Indicates whether the SDK is in fallback or recovery mode.</li>
43- * </ul>
4437 */
4538public class OutdatedSplitProxyHandler {
4639
40+ private static final String PREVIOUS_SPEC = "1.2" ;
41+
4742 private final String mLatestSpec ;
4843 private final String mPreviousSpec ;
4944 private final boolean mForBackgroundSync ;
@@ -53,6 +48,10 @@ public class OutdatedSplitProxyHandler {
5348 private final GeneralInfoStorage mGeneralInfoStorage ;
5449 private final AtomicReference <ProxyHandlingType > mCurrentProxyHandlingType = new AtomicReference <>(ProxyHandlingType .NONE );
5550
51+ OutdatedSplitProxyHandler (String flagSpec , boolean forBackgroundSync , GeneralInfoStorage generalInfoStorage , long proxyCheckIntervalMillis ) {
52+ this (flagSpec , PREVIOUS_SPEC , forBackgroundSync , generalInfoStorage , proxyCheckIntervalMillis );
53+ }
54+
5655 /**
5756 * Constructs an OutdatedSplitProxyHandler instance with a custom proxy check interval.
5857 *
0 commit comments