kopia lustrzana https://github.com/ryukoposting/Signal-Android
Make isClientDeprecated always return false
Make getTimeUntilBuildExpiry ignore SignalStore deprecation valuefork-5.53.8
rodzic
2e7e3d04a1
commit
061252a1b1
|
@ -75,7 +75,8 @@ public final class MiscellaneousValues extends SignalStoreValues {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isClientDeprecated() {
|
public boolean isClientDeprecated() {
|
||||||
return getBoolean(CLIENT_DEPRECATED, false);
|
// return getBoolean(CLIENT_DEPRECATED, false);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void markClientDeprecated() {
|
public void markClientDeprecated() {
|
||||||
|
|
|
@ -376,10 +376,6 @@ public class Util {
|
||||||
* Takes into account both the build age as well as any remote deprecation values.
|
* Takes into account both the build age as well as any remote deprecation values.
|
||||||
*/
|
*/
|
||||||
public static long getTimeUntilBuildExpiry() {
|
public static long getTimeUntilBuildExpiry() {
|
||||||
if (SignalStore.misc().isClientDeprecated()) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
long buildAge = System.currentTimeMillis() - BuildConfig.BUILD_TIMESTAMP;
|
long buildAge = System.currentTimeMillis() - BuildConfig.BUILD_TIMESTAMP;
|
||||||
long timeUntilBuildDeprecation = BUILD_LIFESPAN - buildAge;
|
long timeUntilBuildDeprecation = BUILD_LIFESPAN - buildAge;
|
||||||
long timeUntilRemoteDeprecation = RemoteDeprecation.getTimeUntilDeprecation();
|
long timeUntilRemoteDeprecation = RemoteDeprecation.getTimeUntilDeprecation();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionSha256Sum=db9c8211ed63f61f60292c69e80d89196f9eb36665e369e7f00ac4cc841c2219
|
#distributionSha256Sum=db9c8211ed63f61f60292c69e80d89196f9eb36665e369e7f00ac4cc841c2219
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
Ładowanie…
Reference in New Issue