99.15 - Beta (99115)

This commit is contained in:
Juby210 2021-10-29 09:36:40 +02:00
parent 3b2bffea78
commit 79ca8acaaf
10 changed files with 103 additions and 8 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 29
versionCode 99114
versionName "99.14 - Beta"
versionCode 99115
versionName "99.15 - Beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="99114" android:versionName="99.14 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="99115" android:versionName="99.15 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>

View File

@ -0,0 +1,24 @@
package com.discord.stores;
import c0.t.n;
import c0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreApplicationCommands.kt */
public final class StoreApplicationCommands$requestFrecencyCommands$1 extends o implements Function0<Unit> {
public final /* synthetic */ String $nonce;
public final /* synthetic */ StoreApplicationCommands this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreApplicationCommands$requestFrecencyCommands$1(StoreApplicationCommands storeApplicationCommands, String str) {
super(0);
this.this$0 = storeApplicationCommands;
this.$nonce = str;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo17invoke() {
StoreApplicationCommands.access$handleFrecencyCommandsUpdate(this.this$0, this.$nonce, n.emptyList());
}
}

View File

@ -0,0 +1,24 @@
package com.discord.stores;
import c0.t.n;
import c0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreApplicationCommands.kt */
public final class StoreApplicationCommands$requestFrecencyCommands$2 extends o implements Function0<Unit> {
public final /* synthetic */ String $nonce;
public final /* synthetic */ StoreApplicationCommands this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreApplicationCommands$requestFrecencyCommands$2(StoreApplicationCommands storeApplicationCommands, String str) {
super(0);
this.this$0 = storeApplicationCommands;
this.$nonce = str;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo17invoke() {
StoreApplicationCommands.access$handleFrecencyCommandsUpdate(this.this$0, this.$nonce, n.emptyList());
}
}

View File

@ -368,6 +368,10 @@ public final class StoreApplicationCommands extends StoreV2 {
storeApplicationCommands.handleDiscoverCommandsUpdate(list);
}
public static final /* synthetic */ void access$handleFrecencyCommandsUpdate(StoreApplicationCommands storeApplicationCommands, String str, List list) {
storeApplicationCommands.handleFrecencyCommandsUpdate(str, list);
}
public static final /* synthetic */ void access$handleGuildApplicationsUpdate(StoreApplicationCommands storeApplicationCommands, List list) {
storeApplicationCommands.handleGuildApplicationsUpdate(list);
}
@ -508,6 +512,7 @@ public final class StoreApplicationCommands extends StoreV2 {
markChanged(DiscoverCommandsUpdate);
}
@StoreThread
private final void handleFrecencyCommandsUpdate(String str, List<? extends ApplicationCommand> list) {
int intValue;
boolean z2;
@ -855,9 +860,9 @@ public final class StoreApplicationCommands extends StoreV2 {
}
}
if (!(!arrayList2.isEmpty())) {
handleFrecencyCommandsUpdate(generateNonce, n.emptyList());
this.dispatcher.schedule(new StoreApplicationCommands$requestFrecencyCommands$2(this, generateNonce));
} else if (!StoreGatewayConnection.requestApplicationCommands$default(this.storeGatewayConnection, j, generateNonce, false, null, null, 20, u.distinct(arrayList2), 24, null)) {
handleFrecencyCommandsUpdate(generateNonce, n.emptyList());
this.dispatcher.schedule(new StoreApplicationCommands$requestFrecencyCommands$1(this, generateNonce));
}
}
}

View File

@ -1,5 +1,6 @@
package com.discord.stores;
import com.discord.stores.StoreStream;
import java.util.concurrent.ThreadFactory;
/* compiled from: StoreStream.kt */
public final class StoreStream$storeThreadScheduler$1 implements ThreadFactory {
@ -7,8 +8,10 @@ public final class StoreStream$storeThreadScheduler$1 implements ThreadFactory {
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(Runnable runnable) {
Thread thread = new Thread(runnable, "Main-StoreThread");
StoreStream.Companion companion = StoreStream.Companion;
Thread thread = new Thread(runnable, companion.getSTORE_THREAD_NAME());
thread.setPriority((int) 8.0d);
companion.setSTORE_THREAD_ID(thread.getId());
return thread;
}
}

View File

@ -110,6 +110,8 @@ public final class StoreStream {
public static final Companion Companion = new Companion(null);
private static final long DAY_IN_MILLS = TimeUnit.DAYS.toMillis(1);
private static final String LAST_LOGGED_NOTIFICATION_PERMISSIONS_KEY = "last_logged_notification_permissions_key";
private static long STORE_THREAD_ID;
private static final String STORE_THREAD_NAME = "Main-StoreThread";
private static final Lazy collector$delegate = g.lazy(StoreStream$Companion$collector$2.INSTANCE);
private static boolean isInitialized;
private final StoreAccessibility accessibility;
@ -652,6 +654,14 @@ public final class StoreStream {
return getCollector().getRtcConnection$app_productionBetaRelease();
}
public final long getSTORE_THREAD_ID() {
return StoreStream.access$getSTORE_THREAD_ID$cp();
}
public final String getSTORE_THREAD_NAME() {
return StoreStream.access$getSTORE_THREAD_NAME$cp();
}
public final StoreSearch getSearch() {
return getCollector().getSearch$app_productionBetaRelease();
}
@ -798,6 +808,10 @@ public final class StoreStream {
m.checkNotNullExpressionValue(access$getInitialized$p, "collector.initialized");
return access$getInitialized$p;
}
public final void setSTORE_THREAD_ID(long j) {
StoreStream.access$setSTORE_THREAD_ID$cp(j);
}
}
public StoreStream() {
@ -1060,6 +1074,14 @@ public final class StoreStream {
return LAST_LOGGED_NOTIFICATION_PERMISSIONS_KEY;
}
public static final /* synthetic */ long access$getSTORE_THREAD_ID$cp() {
return STORE_THREAD_ID;
}
public static final /* synthetic */ String access$getSTORE_THREAD_NAME$cp() {
return STORE_THREAD_NAME;
}
public static final /* synthetic */ StoreStreamRtcConnection access$getStreamRtcConnection$p(StoreStream storeStream) {
return storeStream.streamRtcConnection;
}
@ -1384,6 +1406,10 @@ public final class StoreStream {
isInitialized = z2;
}
public static final /* synthetic */ void access$setSTORE_THREAD_ID$cp(long j) {
STORE_THREAD_ID = j;
}
public static final /* synthetic */ void access$startStoreInitializationTimer(StoreStream storeStream, NetworkMonitor networkMonitor) {
storeStream.startStoreInitializationTimer(networkMonitor);
}

View File

@ -2,7 +2,9 @@ package com.discord.stores;
import c0.t.r;
import c0.z.d.m;
import com.discord.app.AppLog;
import com.discord.stores.updates.ObservationDeck;
import com.discord.utilities.logging.Logger;
import java.util.HashSet;
import java.util.Set;
import kotlin.jvm.internal.DefaultConstructorMarker;
@ -47,22 +49,33 @@ public abstract class StoreV2 extends Store implements DispatchHandler, Observat
}
}
private final void assertStoreThread() {
Thread currentThread = Thread.currentThread();
m.checkNotNullExpressionValue(currentThread, "Thread.currentThread()");
if (currentThread.getId() != StoreStream.Companion.getSTORE_THREAD_ID()) {
Logger.e$default(AppLog.g, "markChanged() should be run from the Store Dispatcher", new IllegalStateException("Dispatch not run on store thread"), null, 4, null);
}
}
public final Set<ObservationDeck.UpdateSource> getUpdateSources() {
return this.updateSources;
}
public final void markChanged() {
assertStoreThread();
this.updateSources.add(this);
}
public final void markChanged(ObservationDeck.UpdateSource... updateSourceArr) {
m.checkNotNullParameter(updateSourceArr, "updates");
assertStoreThread();
markChanged();
r.addAll(this.updateSources, updateSourceArr);
}
public final void markUnchanged(ObservationDeck.UpdateSource updateSource) {
m.checkNotNullParameter(updateSource, "updateSource");
assertStoreThread();
this.updateSources.remove(updateSource);
}

View File

@ -313,7 +313,7 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi
TextView textView = binding.f;
m.checkNotNullExpressionValue(textView, "appInfoHeader");
String string = getString(R.string.app_information);
textView.setText(string + " - 99.14 - Beta (99114)");
textView.setText(string + " - 99.15 - Beta (99115)");
binding.A.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$3(this));
binding.u.setOnClickListener(WidgetSettings$onViewBound$1$5.INSTANCE);
binding.q.setOnClickListener(WidgetSettings$onViewBound$1$6.INSTANCE);

View File

@ -1446,7 +1446,7 @@
<string name="color_picker_title">Select a color</string>
<string name="color_picker_transparency">Transparency</string>
<string name="color_picker_use_default">Use Default</string>
<string name="res_2131887527_com_crashlytics_android_build_id">b86bdb9196cd47e0b0751dcfd1ac9f19</string>
<string name="res_2131887527_com_crashlytics_android_build_id">3748aa9f75954fa2960a7a09409b799c</string>
<string name="coming_soon">Coming Soon</string>
<string name="command_accessibility_desc_app_header_item">Slash command application {applicationName}</string>
<string name="command_accessibility_desc_app_item">{applicationName} application</string>