forked from Juby210/discord-jadx
89.9 - Beta (89109)
This commit is contained in:
parent
51125171d7
commit
41739cbd41
7 changed files with 38 additions and 20 deletions
|
@ -10,8 +10,8 @@ android {
|
|||
applicationId 'com.discord'
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 89108
|
||||
versionName "89.8 - Beta"
|
||||
versionCode 89109
|
||||
versionName "89.9 - Beta"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="89108" android:versionName="89.8 - 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="89109" android:versionName="89.9 - 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"/>
|
||||
|
|
|
@ -10,41 +10,56 @@ public final class GrowthTeamFeatures {
|
|||
private GrowthTeamFeatures() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ boolean isExperimentEnabled$default(GrowthTeamFeatures growthTeamFeatures, String str, int i, int i2, Object obj) {
|
||||
if ((i2 & 1) != 0) {
|
||||
i = 1;
|
||||
}
|
||||
return growthTeamFeatures.isExperimentEnabled(str, i);
|
||||
}
|
||||
|
||||
public final Experiment getAndTrackWelcomeCTAExperiment(long j, boolean z2) {
|
||||
return StoreStream.Companion.getExperiments().getGuildExperiment("2021-06_welcome_cta", j, z2);
|
||||
}
|
||||
|
||||
public final boolean isCategoriesEnabled() {
|
||||
return isExperimentEnabled("2021-07_desktop_hub_categories");
|
||||
return isExperimentEnabled$default(this, "2021-07_desktop_hub_categories", 0, 1, null);
|
||||
}
|
||||
|
||||
public final boolean isExperimentEnabled(String str) {
|
||||
public final boolean isExperimentEnabled(String str, int i) {
|
||||
m.checkNotNullParameter(str, "$this$isExperimentEnabled");
|
||||
Experiment userExperiment = StoreStream.Companion.getExperiments().getUserExperiment(str, true);
|
||||
return userExperiment != null && userExperiment.getBucket() == 1;
|
||||
return userExperiment != null && userExperiment.getBucket() == i;
|
||||
}
|
||||
|
||||
public final boolean isHubDiscoveryEnabled() {
|
||||
return isExperimentEnabled("2021-06_hub_discovery", 1) || isExperimentEnabled("2021-06_hub_discovery", 2);
|
||||
}
|
||||
|
||||
public final boolean isHubDiscoverySparkleEnabled() {
|
||||
return isExperimentEnabled("2021-06_hub_discovery", 1);
|
||||
}
|
||||
|
||||
public final boolean isHubEmailConnectionEnabled() {
|
||||
return isExperimentEnabled("2021-06_hub_email_connection");
|
||||
return isExperimentEnabled$default(this, "2021-06_hub_email_connection", 0, 1, null);
|
||||
}
|
||||
|
||||
public final boolean isHubEnabled() {
|
||||
return isExperimentEnabled("2021-06_desktop_school_hubs");
|
||||
return isExperimentEnabled$default(this, "2021-06_desktop_school_hubs", 0, 1, null);
|
||||
}
|
||||
|
||||
public final boolean isHubReportingEnabled() {
|
||||
return isExperimentEnabled("2021-08_hub_reporting");
|
||||
return isExperimentEnabled$default(this, "2021-08_hub_reporting", 0, 1, null);
|
||||
}
|
||||
|
||||
public final boolean isImpressionLoggingEnabled() {
|
||||
return isExperimentEnabled("2021-08_impression_logging_enabled_android");
|
||||
return isExperimentEnabled$default(this, "2021-08_impression_logging_enabled_android", 0, 1, null);
|
||||
}
|
||||
|
||||
public final boolean isMultiDomainEnabled() {
|
||||
return isExperimentEnabled("2021-08_hub_multi_domain_mobile");
|
||||
return isExperimentEnabled$default(this, "2021-08_hub_multi_domain_mobile", 0, 1, null);
|
||||
}
|
||||
|
||||
public final boolean isNetworkActionLoggingEnabled() {
|
||||
return isExperimentEnabled("2021-07_network_action_logging_android");
|
||||
return isExperimentEnabled$default(this, "2021-07_network_action_logging_android", 0, 1, null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1262,8 +1262,8 @@ public final class WidgetGuildsListViewModel extends AppViewModel<ViewState> {
|
|||
/* JADX WARNING: Removed duplicated region for block: B:113:0x0471 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:116:0x0490 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:119:0x04ad */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:122:0x04bf */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:148:0x029d A[SYNTHETIC] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:128:0x04ca */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:154:0x029d A[SYNTHETIC] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:50:0x0235 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:56:0x0254 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:59:0x0258 */
|
||||
|
@ -1272,6 +1272,7 @@ public final class WidgetGuildsListViewModel extends AppViewModel<ViewState> {
|
|||
boolean z2;
|
||||
ArrayList arrayList;
|
||||
ArrayList arrayList2;
|
||||
GrowthTeamFeatures growthTeamFeatures;
|
||||
ArrayList arrayList3;
|
||||
Sequence sequence;
|
||||
HashMap hashMap;
|
||||
|
@ -1505,8 +1506,9 @@ public final class WidgetGuildsListViewModel extends AppViewModel<ViewState> {
|
|||
arrayList2.add(new GuildListItem.UnavailableItem(storeState.getUnavailableGuilds().size()));
|
||||
}
|
||||
arrayList2.add(GuildListItem.CreateItem.INSTANCE);
|
||||
if (GrowthTeamFeatures.INSTANCE.isHubEmailConnectionEnabled()) {
|
||||
arrayList2.add(new GuildListItem.HubItem(storeState.getShowHubSparkle()));
|
||||
growthTeamFeatures = GrowthTeamFeatures.INSTANCE;
|
||||
if (growthTeamFeatures.isHubDiscoveryEnabled()) {
|
||||
arrayList2.add(new GuildListItem.HubItem(storeState.getShowHubSparkle() && growthTeamFeatures.isHubDiscoverySparkleEnabled()));
|
||||
}
|
||||
if (storeState.isNewUser()) {
|
||||
arrayList2.add(dividerItem);
|
||||
|
@ -1533,7 +1535,8 @@ public final class WidgetGuildsListViewModel extends AppViewModel<ViewState> {
|
|||
if (!storeState.getUnavailableGuilds().isEmpty()) {
|
||||
}
|
||||
arrayList2.add(GuildListItem.CreateItem.INSTANCE);
|
||||
if (GrowthTeamFeatures.INSTANCE.isHubEmailConnectionEnabled()) {
|
||||
growthTeamFeatures = GrowthTeamFeatures.INSTANCE;
|
||||
if (growthTeamFeatures.isHubDiscoveryEnabled()) {
|
||||
}
|
||||
if (storeState.isNewUser()) {
|
||||
}
|
||||
|
|
|
@ -321,7 +321,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 + " - 89.8 - Beta (89108)");
|
||||
textView.setText(string + " - 89.9 - Beta (89109)");
|
||||
binding.f1972z.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);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_gravity="center" android:layout_width="match_parent" android:layout_marginBottom="@dimen/guild_item_spacing" style="@style/UiKit_GuildsListIcon">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:background="?attr/selectableItemBackgroundBorderless" android:layout_width="match_parent" android:layout_height="match_parent" app:placeholderImage="?attr/colorBackgroundSecondary" app:roundAsCircle="true"/>
|
||||
<ImageView android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_hub_24dp" android:contentDescription="@string/create_server_button_cta_mobile" app:tint="@color/status_green_600"/>
|
||||
<ImageView android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_hub_24dp" android:contentDescription="@string/hub_email_connection_sidebar_header" app:tint="@color/status_green_600"/>
|
||||
<com.discord.tooltips.SparkleView android:layout_gravity="center" android:id="@+id/guild_item_sparkle" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
|
||||
</FrameLayout>
|
||||
|
|
|
@ -1374,7 +1374,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_2131887454_com_crashlytics_android_build_id">5fb8fed67b7d4dd39a484f75e5834940</string>
|
||||
<string name="res_2131887454_com_crashlytics_android_build_id">ff2cb8672d254680a075ca7644953ef6</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>
|
||||
|
|
Loading…
Reference in a new issue