forked from Juby210/discord-jadx
98.10 - Stable (98010)
This commit is contained in:
parent
928b7daecd
commit
b54c22d8f6
10 changed files with 103 additions and 8 deletions
|
@ -10,8 +10,8 @@ android {
|
||||||
applicationId 'com.discord'
|
applicationId 'com.discord'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 98009
|
versionCode 98010
|
||||||
versionName "98.9 - Stable"
|
versionName "98.10 - Stable"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="98009" android:versionName="98.9 - Stable" 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="98010" android:versionName="98.10 - Stable" 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-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
|
||||||
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
||||||
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
||||||
|
|
|
@ -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());
|
||||||
|
}
|
||||||
|
}
|
|
@ -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());
|
||||||
|
}
|
||||||
|
}
|
|
@ -368,6 +368,10 @@ public final class StoreApplicationCommands extends StoreV2 {
|
||||||
storeApplicationCommands.handleDiscoverCommandsUpdate(list);
|
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) {
|
public static final /* synthetic */ void access$handleGuildApplicationsUpdate(StoreApplicationCommands storeApplicationCommands, List list) {
|
||||||
storeApplicationCommands.handleGuildApplicationsUpdate(list);
|
storeApplicationCommands.handleGuildApplicationsUpdate(list);
|
||||||
}
|
}
|
||||||
|
@ -508,6 +512,7 @@ public final class StoreApplicationCommands extends StoreV2 {
|
||||||
markChanged(DiscoverCommandsUpdate);
|
markChanged(DiscoverCommandsUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@StoreThread
|
||||||
private final void handleFrecencyCommandsUpdate(String str, List<? extends ApplicationCommand> list) {
|
private final void handleFrecencyCommandsUpdate(String str, List<? extends ApplicationCommand> list) {
|
||||||
int intValue;
|
int intValue;
|
||||||
boolean z2;
|
boolean z2;
|
||||||
|
@ -855,9 +860,9 @@ public final class StoreApplicationCommands extends StoreV2 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!(!arrayList2.isEmpty())) {
|
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)) {
|
} 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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.discord.stores;
|
package com.discord.stores;
|
||||||
|
|
||||||
|
import com.discord.stores.StoreStream;
|
||||||
import java.util.concurrent.ThreadFactory;
|
import java.util.concurrent.ThreadFactory;
|
||||||
/* compiled from: StoreStream.kt */
|
/* compiled from: StoreStream.kt */
|
||||||
public final class StoreStream$storeThreadScheduler$1 implements ThreadFactory {
|
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
|
@Override // java.util.concurrent.ThreadFactory
|
||||||
public final Thread newThread(Runnable runnable) {
|
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);
|
thread.setPriority((int) 8.0d);
|
||||||
|
companion.setSTORE_THREAD_ID(thread.getId());
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,6 +110,8 @@ public final class StoreStream {
|
||||||
public static final Companion Companion = new Companion(null);
|
public static final Companion Companion = new Companion(null);
|
||||||
private static final long DAY_IN_MILLS = TimeUnit.DAYS.toMillis(1);
|
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 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 final Lazy collector$delegate = g.lazy(StoreStream$Companion$collector$2.INSTANCE);
|
||||||
private static boolean isInitialized;
|
private static boolean isInitialized;
|
||||||
private final StoreAccessibility accessibility;
|
private final StoreAccessibility accessibility;
|
||||||
|
@ -652,6 +654,14 @@ public final class StoreStream {
|
||||||
return getCollector().getRtcConnection$app_productionGoogleRelease();
|
return getCollector().getRtcConnection$app_productionGoogleRelease();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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() {
|
public final StoreSearch getSearch() {
|
||||||
return getCollector().getSearch$app_productionGoogleRelease();
|
return getCollector().getSearch$app_productionGoogleRelease();
|
||||||
}
|
}
|
||||||
|
@ -798,6 +808,10 @@ public final class StoreStream {
|
||||||
m.checkNotNullExpressionValue(access$getInitialized$p, "collector.initialized");
|
m.checkNotNullExpressionValue(access$getInitialized$p, "collector.initialized");
|
||||||
return access$getInitialized$p;
|
return access$getInitialized$p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final void setSTORE_THREAD_ID(long j) {
|
||||||
|
StoreStream.access$setSTORE_THREAD_ID$cp(j);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public StoreStream() {
|
public StoreStream() {
|
||||||
|
@ -1060,6 +1074,14 @@ public final class StoreStream {
|
||||||
return LAST_LOGGED_NOTIFICATION_PERMISSIONS_KEY;
|
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) {
|
public static final /* synthetic */ StoreStreamRtcConnection access$getStreamRtcConnection$p(StoreStream storeStream) {
|
||||||
return storeStream.streamRtcConnection;
|
return storeStream.streamRtcConnection;
|
||||||
}
|
}
|
||||||
|
@ -1384,6 +1406,10 @@ public final class StoreStream {
|
||||||
isInitialized = z2;
|
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) {
|
public static final /* synthetic */ void access$startStoreInitializationTimer(StoreStream storeStream, NetworkMonitor networkMonitor) {
|
||||||
storeStream.startStoreInitializationTimer(networkMonitor);
|
storeStream.startStoreInitializationTimer(networkMonitor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,9 @@ package com.discord.stores;
|
||||||
|
|
||||||
import c0.t.r;
|
import c0.t.r;
|
||||||
import c0.z.d.m;
|
import c0.z.d.m;
|
||||||
|
import com.discord.app.AppLog;
|
||||||
import com.discord.stores.updates.ObservationDeck;
|
import com.discord.stores.updates.ObservationDeck;
|
||||||
|
import com.discord.utilities.logging.Logger;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
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() {
|
public final Set<ObservationDeck.UpdateSource> getUpdateSources() {
|
||||||
return this.updateSources;
|
return this.updateSources;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void markChanged() {
|
public final void markChanged() {
|
||||||
|
assertStoreThread();
|
||||||
this.updateSources.add(this);
|
this.updateSources.add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void markChanged(ObservationDeck.UpdateSource... updateSourceArr) {
|
public final void markChanged(ObservationDeck.UpdateSource... updateSourceArr) {
|
||||||
m.checkNotNullParameter(updateSourceArr, "updates");
|
m.checkNotNullParameter(updateSourceArr, "updates");
|
||||||
|
assertStoreThread();
|
||||||
markChanged();
|
markChanged();
|
||||||
r.addAll(this.updateSources, updateSourceArr);
|
r.addAll(this.updateSources, updateSourceArr);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void markUnchanged(ObservationDeck.UpdateSource updateSource) {
|
public final void markUnchanged(ObservationDeck.UpdateSource updateSource) {
|
||||||
m.checkNotNullParameter(updateSource, "updateSource");
|
m.checkNotNullParameter(updateSource, "updateSource");
|
||||||
|
assertStoreThread();
|
||||||
this.updateSources.remove(updateSource);
|
this.updateSources.remove(updateSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -313,7 +313,7 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi
|
||||||
TextView textView = binding.f;
|
TextView textView = binding.f;
|
||||||
m.checkNotNullExpressionValue(textView, "appInfoHeader");
|
m.checkNotNullExpressionValue(textView, "appInfoHeader");
|
||||||
String string = getString(R.string.app_information);
|
String string = getString(R.string.app_information);
|
||||||
textView.setText(string + " - 98.9 - Stable (98009)");
|
textView.setText(string + " - 98.10 - Stable (98010)");
|
||||||
binding.A.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$3(this));
|
binding.A.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$3(this));
|
||||||
binding.u.setOnClickListener(WidgetSettings$onViewBound$1$5.INSTANCE);
|
binding.u.setOnClickListener(WidgetSettings$onViewBound$1$5.INSTANCE);
|
||||||
binding.q.setOnClickListener(WidgetSettings$onViewBound$1$6.INSTANCE);
|
binding.q.setOnClickListener(WidgetSettings$onViewBound$1$6.INSTANCE);
|
||||||
|
|
|
@ -1439,7 +1439,7 @@
|
||||||
<string name="color_picker_title">Select a color</string>
|
<string name="color_picker_title">Select a color</string>
|
||||||
<string name="color_picker_transparency">Transparency</string>
|
<string name="color_picker_transparency">Transparency</string>
|
||||||
<string name="color_picker_use_default">Use Default</string>
|
<string name="color_picker_use_default">Use Default</string>
|
||||||
<string name="res_2131887519_com_crashlytics_android_build_id">5c3c1270ffe4420595a2589ed52467d7</string>
|
<string name="res_2131887519_com_crashlytics_android_build_id">4e4e3b15cb7e467e816a64e95e22e8e9</string>
|
||||||
<string name="coming_soon">Coming Soon</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_header_item">Slash command application {applicationName}</string>
|
||||||
<string name="command_accessibility_desc_app_item">{applicationName} application</string>
|
<string name="command_accessibility_desc_app_item">{applicationName} application</string>
|
||||||
|
|
Loading…
Reference in a new issue