Add Discord community version (64-bit only)

- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
This commit is contained in:
2026-02-18 15:48:36 -08:00
parent c19eb3d7ff
commit c080f0d97f
26930 changed files with 2529574 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package com.facebook.gamingservices.cloudgaming.internal;
/* loaded from: classes2.dex */
public class SDKAnalyticsEvents {
public static final String EVENT_GAME_LOAD_COMPLETE = "cloud_games_load_complete";
public static final String EVENT_INTERNAL_ERROR = "cloud_games_internal_error";
public static final String EVENT_LOGIN_SUCCESS = "cloud_games_login_success";
public static final String EVENT_PREPARING_REQUEST = "cloud_games_preparing_request";
public static final String EVENT_SENDING_ERROR_RESPONSE = "cloud_games_sending_error_response";
public static final String EVENT_SENDING_SUCCESS_RESPONSE = "cloud_games_sending_success_response";
public static final String EVENT_SENT_REQUEST = "cloud_games_sent_request";
public static final String PARAMETER_APP_ID = "app_id";
public static final String PARAMETER_ERROR_CODE = "error_code";
public static final String PARAMETER_ERROR_MESSAGE = "error_message";
public static final String PARAMETER_ERROR_TYPE = "error_type";
public static final String PARAMETER_FUNCTION_TYPE = "function_type";
public static final String PARAMETER_PAYLOAD = "payload";
public static final String PARAMETER_REQUEST_ID = "request_id";
public static final String PARAMETER_SESSION_ID = "session_id";
public static final String PARAMETER_USER_ID = "user_id";
}

View File

@@ -0,0 +1,86 @@
package com.facebook.gamingservices.cloudgaming.internal;
/* loaded from: classes2.dex */
public class SDKConstants {
public static final String PARAM_A2U_BODY = "body";
public static final String PARAM_A2U_CAPTION = "A2U Image";
public static final String PARAM_A2U_GRAPH_PATH = "me/schedule_gaming_app_to_user_update";
public static final String PARAM_A2U_MEDIA_ID = "media_id";
public static final String PARAM_A2U_PAYLOAD = "payload:";
public static final String PARAM_A2U_RESPONSE_ID = "id";
public static final String PARAM_A2U_TIME_INTERVAL = "time_interval";
public static final String PARAM_A2U_TITLE = "title";
public static final String PARAM_ACCESS_TOKEN = "accessToken";
public static final String PARAM_ACCESS_TOKEN_SOURCE = "accessTokenSource";
public static final String PARAM_APP_ID = "appID";
public static final String PARAM_CONTEXT_CONTEXT_ID = "context_id";
public static final String PARAM_CONTEXT_FILTERS = "filters";
public static final String PARAM_CONTEXT_ID = "id";
public static final String PARAM_CONTEXT_MAX_SIZE = "maxSize";
public static final String PARAM_CONTEXT_MIN_SIZE = "minSize";
public static final String PARAM_CONTEXT_TOKEN = "contextToken";
public static final String PARAM_DAEMON_PACKAGE_NAME = "daemonPackageName";
public static final String PARAM_DATA = "data";
public static final String PARAM_DATA_ACCESS_EXPIRATION_TIME = "dataAccessExpirationTime";
public static final String PARAM_DEBUG_MESSAGE = "msg";
public static final String PARAM_DEBUG_MESSAGE_SEVERITY = "severity";
public static final String PARAM_DEBUG_MESSAGE_TAG = "tag";
public static final String PARAM_DEBUG_MESSAGE_TIMESTAMP = "timestamp";
public static final String PARAM_DECLINED_PERMISSIONS = "declinedPermissions";
public static final String PARAM_DEEP_LINK = "deepLink";
public static final String PARAM_DEEP_LINK_ID = "id";
public static final String PARAM_DEVELOPER_PAYLOAD = "developerPayload";
public static final String PARAM_END_TIME = "endTime";
public static final String PARAM_EXPIRATION_TIME = "expirationTime";
public static final String PARAM_EXPIRED_PERMISSIONS = "expiredPermissions";
public static final String PARAM_GAME_PACKAGE_NAME = "gamePackageName";
public static final String PARAM_GAME_REQUESTS_ACTION_TYPE = "actionType";
public static final String PARAM_GAME_REQUESTS_CTA = "cta";
public static final String PARAM_GAME_REQUESTS_DATA = "data";
public static final String PARAM_GAME_REQUESTS_MESSAGE = "message";
public static final String PARAM_GAME_REQUESTS_OPTIONS = "options";
public static final String PARAM_GAME_REQUESTS_TITLE = "title";
public static final String PARAM_GAME_REQUESTS_TO = "to";
public static final String PARAM_GRAPH_DOMAIN = "graphDomain";
public static final String PARAM_IMAGE = "image";
public static final String PARAM_INITIAL_SCORE = "initialScore";
public static final String PARAM_INTENT = "intent";
public static final String PARAM_KEY = "key";
public static final String PARAM_LAST_REFRESH_TIME = "lastRefreshTime";
public static final String PARAM_PAYLOAD = "payload";
public static final String PARAM_PERMISSIONS = "permissions";
public static final String PARAM_PLACEMENT_ID = "placementID";
public static final String PARAM_PRODUCT_ID = "productID";
public static final String PARAM_PURCHASE_TOKEN = "purchaseToken";
public static final String PARAM_SCORE = "score";
public static final String PARAM_SCORE_FORMAT = "scoreFormat";
public static final String PARAM_SESSION_ID = "sessionID";
public static final String PARAM_SORT_ORDER = "sortOrder";
public static final String PARAM_TEXT = "text";
public static final String PARAM_TITLE = "title";
public static final String PARAM_TOURNAMENTS = "INSTANT_TOURNAMENT";
public static final String PARAM_TOURNAMENTS_APP_ID = "app_id";
public static final String PARAM_TOURNAMENTS_DEEPLINK = "deeplink";
public static final String PARAM_TOURNAMENTS_END_TIME = "end_time";
public static final String PARAM_TOURNAMENTS_ID = "tournament_id";
public static final String PARAM_TOURNAMENTS_PAYLOAD = "tournament_payload";
public static final String PARAM_TOURNAMENTS_SCORE = "score";
public static final String PARAM_TOURNAMENTS_SCORE_FORMAT = "score_format";
public static final String PARAM_TOURNAMENTS_SORT_ORDER = "sort_order";
public static final String PARAM_TOURNAMENTS_TITLE = "tournament_title";
public static final String PARAM_TOURNAMENT_ID = "tournamentId";
public static final String PARAM_TYPE = "type";
public static final String PARAM_UPDATE_ACTION = "action";
public static final String PARAM_UPDATE_IMAGE = "image";
public static final String PARAM_UPDATE_TEMPLATE = "template";
public static final String PARAM_UPDATE_TEXT = "text";
public static final String PARAM_URL = "url";
public static final String PARAM_USER_ID = "userID";
public static final String PARAM_VALUE = "value";
public static final String PREF_DAEMON_PACKAGE_NAME = "com.facebook.gamingservices.cloudgaming:preferences";
public static final String RECEIVER_HANDLER = "com.facebook.gamingservices.DAEMON_RESPONSE_HANDLER";
public static final String RECEIVER_INTENT = "com.facebook.gamingservices.DAEMON_RESPONSE";
public static final String RECEIVER_PAYLOAD = "returnPayload";
public static final String REQUEST_ACTION = "com.facebook.gamingservices.DAEMON_REQUEST";
public static final String REQUEST_ID = "requestID";
}

View File

@@ -0,0 +1,128 @@
package com.facebook.gamingservices.cloudgaming.internal;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Nullable;
import com.facebook.FacebookRequestError;
import com.facebook.appevents.InternalAppEventsLogger;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class SDKLogger {
private static SDKLogger instance;
private final InternalAppEventsLogger logger;
private String appID = null;
private String userID = null;
private String sessionID = null;
private ConcurrentHashMap<String, String> requestIDToFunctionTypeMap = new ConcurrentHashMap<>();
public void setAppID(String str) {
this.appID = str;
}
public void setSessionID(String str) {
this.sessionID = str;
}
public void setUserID(String str) {
this.userID = str;
}
private SDKLogger(Context context) {
this.logger = new InternalAppEventsLogger(context);
}
public static synchronized SDKLogger getInstance(Context context) {
SDKLogger sDKLogger;
synchronized (SDKLogger.class) {
try {
if (instance == null) {
instance = new SDKLogger(context);
}
sDKLogger = instance;
} catch (Throwable th) {
throw th;
}
}
return sDKLogger;
}
public static void logInternalError(Context context, SDKMessageEnum sDKMessageEnum, Exception exc) {
getInstance(context).logInternalError(sDKMessageEnum, exc);
}
public void logPreparingRequest(String str, String str2, JSONObject jSONObject) {
Bundle parametersWithRequestIDAndFunctionType = getParametersWithRequestIDAndFunctionType(str2, str);
parametersWithRequestIDAndFunctionType.putString("payload", jSONObject.toString());
this.logger.logEventImplicitly(SDKAnalyticsEvents.EVENT_PREPARING_REQUEST, parametersWithRequestIDAndFunctionType);
}
public void logSentRequest(String str, String str2, JSONObject jSONObject) {
Bundle parametersWithRequestIDAndFunctionType = getParametersWithRequestIDAndFunctionType(str2, str);
this.requestIDToFunctionTypeMap.put(str2, str);
parametersWithRequestIDAndFunctionType.putString("payload", jSONObject.toString());
this.logger.logEventImplicitly(SDKAnalyticsEvents.EVENT_SENT_REQUEST, parametersWithRequestIDAndFunctionType);
}
public void logSendingSuccessResponse(String str) {
this.logger.logEventImplicitly(SDKAnalyticsEvents.EVENT_SENDING_SUCCESS_RESPONSE, getParametersWithRequestIDAndFunctionType(str));
}
public void logSendingErrorResponse(FacebookRequestError facebookRequestError, @Nullable String str) {
Bundle parametersWithRequestIDAndFunctionType = getParametersWithRequestIDAndFunctionType(str);
parametersWithRequestIDAndFunctionType.putString("error_code", Integer.toString(facebookRequestError.getErrorCode()));
parametersWithRequestIDAndFunctionType.putString("error_type", facebookRequestError.getErrorType());
parametersWithRequestIDAndFunctionType.putString("error_message", facebookRequestError.getErrorMessage());
this.logger.logEventImplicitly(SDKAnalyticsEvents.EVENT_SENDING_ERROR_RESPONSE, parametersWithRequestIDAndFunctionType);
}
public void logLoginSuccess() {
this.logger.logEventImplicitly(SDKAnalyticsEvents.EVENT_LOGIN_SUCCESS, getInitParameters());
}
public void logGameLoadComplete() {
this.logger.logEventImplicitly(SDKAnalyticsEvents.EVENT_GAME_LOAD_COMPLETE, getInitParameters());
}
public void logInternalError(SDKMessageEnum sDKMessageEnum, Exception exc) {
Bundle initParameters = getInitParameters();
initParameters.putString(SDKAnalyticsEvents.PARAMETER_FUNCTION_TYPE, sDKMessageEnum.toString());
initParameters.putString("error_type", exc.getClass().getName());
initParameters.putString("error_message", exc.getMessage());
this.logger.logEventImplicitly(SDKAnalyticsEvents.EVENT_INTERNAL_ERROR, initParameters);
}
private Bundle getParametersWithRequestIDAndFunctionType(@Nullable String str) {
Bundle initParameters = getInitParameters();
if (str != null) {
String orDefault = this.requestIDToFunctionTypeMap.getOrDefault(str, null);
initParameters.putString("request_id", str);
if (orDefault != null) {
initParameters.putString(SDKAnalyticsEvents.PARAMETER_FUNCTION_TYPE, orDefault);
this.requestIDToFunctionTypeMap.remove(str);
}
}
return initParameters;
}
private Bundle getParametersWithRequestIDAndFunctionType(String str, String str2) {
Bundle initParameters = getInitParameters();
initParameters.putString("request_id", str);
initParameters.putString(SDKAnalyticsEvents.PARAMETER_FUNCTION_TYPE, str2);
return initParameters;
}
private Bundle getInitParameters() {
Bundle bundle = new Bundle();
String str = this.appID;
if (str != null) {
bundle.putString("app_id", str);
}
String str2 = this.sessionID;
if (str2 != null) {
bundle.putString(SDKAnalyticsEvents.PARAMETER_SESSION_ID, str2);
}
return bundle;
}
}

View File

@@ -0,0 +1,72 @@
package com.facebook.gamingservices.cloudgaming.internal;
import androidx.annotation.Nullable;
import com.ironsource.v8;
/* loaded from: classes2.dex */
public enum SDKMessageEnum {
OPEN_PLAY_STORE("openPlayStore"),
OPEN_APP_STORE("openAppStore"),
MARK_GAME_LOADED("markGameLoaded"),
GET_PLAYER_DATA("getPlayerData"),
SET_PLAYER_DATA("setPlayerData"),
GET_CATALOG("getCatalog"),
GET_PURCHASES("getPurchases"),
PURCHASE("purchase"),
CONSUME_PURCHASE("consumePurchase"),
ON_READY("onReady"),
GET_SUBSCRIBABLE_CATALOG("getSubscribableCatalog"),
PURCHASE_SUBSCRIPTION("purchaseSubscription"),
GET_SUBSCRIPTIONS("getSubscriptions"),
CANCEL_SUBSCRIPTION("cancelSubscription"),
LOAD_INTERSTITIAL_AD("loadInterstitialAd"),
LOAD_REWARDED_VIDEO("loadRewardedVideo"),
SHOW_INTERSTITIAL_AD("showInterstitialAd"),
SHOW_REWARDED_VIDEO(v8.g.h),
GET_ACCESS_TOKEN("getAccessToken"),
GET_CONTEXT_TOKEN("getContextToken"),
GET_PAYLOAD("getPayload"),
IS_ENV_READY("isEnvReady"),
SHARE("share"),
CAN_CREATE_SHORTCUT("canCreateShortcut"),
CREATE_SHORTCUT("createShortcut"),
OPEN_GAMING_SERVICES_DEEP_LINK("openGamingServicesDeepLink"),
OPEN_GAME_REQUESTS_DIALOG("openGameRequestsDialog"),
POST_SESSION_SCORE("postSessionScore"),
POST_SESSION_SCORE_ASYNC("postSessionScoreAsync"),
GET_TOURNAMENT_ASYNC("getTournamentAsync"),
TOURNAMENT_CREATE_ASYNC("tournamentCreateAsync"),
TOURNAMENT_SHARE_ASYNC("tournamentShareAsync"),
TOURNAMENT_POST_SCORE_ASYNC("tournamentPostScoreAsync"),
TOURNAMENT_GET_TOURNAMENTS_ASYNC("getTournaments"),
TOURNAMENT_JOIN_ASYNC("joinTournament"),
OPEN_LINK("openExternalLink"),
PERFORM_HAPTIC_FEEDBACK_ASYNC("performHapticFeedbackAsync"),
CONTEXT_SWITCH("contextSwitch"),
CONTEXT_CHOOSE("contextChoose"),
CONTEXT_CREATE("contextCreate"),
CONTEXT_GET_ID("contextGetID"),
DEBUG_PRINT("debugPrint"),
GET_COUNTRY_ISO("getCountryISO");
private final String mStringValue;
@Override // java.lang.Enum
public String toString() {
return this.mStringValue;
}
SDKMessageEnum(String str) {
this.mStringValue = str;
}
@Nullable
public static SDKMessageEnum fromString(String str) {
for (SDKMessageEnum sDKMessageEnum : values()) {
if (sDKMessageEnum.toString().equals(str)) {
return sDKMessageEnum;
}
}
return null;
}
}

View File

@@ -0,0 +1,42 @@
package com.facebook.gamingservices.cloudgaming.internal;
import androidx.annotation.Nullable;
/* loaded from: classes2.dex */
public enum SDKShareIntentEnum {
INVITE("INVITE"),
REQUEST("REQUEST"),
CHALLENGE("CHALLENGE"),
SHARE("SHARE");
private final String mStringValue;
@Override // java.lang.Enum
public String toString() {
return this.mStringValue;
}
SDKShareIntentEnum(String str) {
this.mStringValue = str;
}
@Nullable
public static String validate(String str) {
for (SDKShareIntentEnum sDKShareIntentEnum : values()) {
if (sDKShareIntentEnum.toString().equals(str)) {
return str;
}
}
return null;
}
@Nullable
public static SDKShareIntentEnum fromString(String str) {
for (SDKShareIntentEnum sDKShareIntentEnum : values()) {
if (sDKShareIntentEnum.toString().equals(str)) {
return sDKShareIntentEnum;
}
}
return null;
}
}