Make isClientDeprecated always return false

Make getTimeUntilBuildExpiry ignore SignalStore deprecation value
fork-5.53.8
Evan Perry Grove 2023-01-24 15:51:14 -06:00
rodzic 2e7e3d04a1
commit 061252a1b1
3 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -75,7 +75,8 @@ public final class MiscellaneousValues extends SignalStoreValues {
}
public boolean isClientDeprecated() {
return getBoolean(CLIENT_DEPRECATED, false);
// return getBoolean(CLIENT_DEPRECATED, false);
return false;
}
public void markClientDeprecated() {

Wyświetl plik

@ -376,10 +376,6 @@ public class Util {
* Takes into account both the build age as well as any remote deprecation values.
*/
public static long getTimeUntilBuildExpiry() {
if (SignalStore.misc().isClientDeprecated()) {
return 0;
}
long buildAge = System.currentTimeMillis() - BuildConfig.BUILD_TIMESTAMP;
long timeUntilBuildDeprecation = BUILD_LIFESPAN - buildAge;
long timeUntilRemoteDeprecation = RemoteDeprecation.getTimeUntilDeprecation();

Wyświetl plik

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=db9c8211ed63f61f60292c69e80d89196f9eb36665e369e7f00ac4cc841c2219
#distributionSha256Sum=db9c8211ed63f61f60292c69e80d89196f9eb36665e369e7f00ac4cc841c2219
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists