花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e
以下内容为反编译后的 TTAdConstant.java 源代码,内容仅作参考
package com.bytedance.sdk.openadsdk;
import android.text.TextUtils;
import com.mob.pushsdk.plugins.oppo.PushOppo;
import com.ss.android.socialbase.downloader.setting.DownloadSettingKeys;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class TTAdConstant {
public static final int ADULT = 0;
public static final int AD_ID_IS_NULL_CODE = 401;
public static final String AD_ID_IS_NULL_MSG = "ad_id is null";
public static final long AD_MAX_EVENT_TIME = 600000;
public static final int AD_TYPE_COMMON_VIDEO = 0;
public static final int AD_TYPE_LIVE = 3;
public static final int AD_TYPE_PLAYABLE = 2;
public static final int AD_TYPE_PLAYABLE_VIDEO = 1;
public static final int AD_TYPE_UNKNOWN = -1;
public static final String APP_NAME = "open_news";
public static final float ASPECT_CORNER_RADIUS_DEFAULT = 0.0f;
public static final float ASPECT_CORNER_RADIUS_MAX_DEFAULT = 50.0f;
public static final float ASPECT_MARGIN_DEFAULT = 0.07f;
public static final float ASPECT_MARGIN_MAX_DEFAULT = 0.175f;
public static final String BRANCH = "v4900";
public static final int BUILD_IN_MODULE_VERSION_CODE = 4904;
public static final String BUILD_IN_MODULE_VERSION_NAME = "4.9.0.4";
public static final String BUILT_IN_PLUGIN_NAME = "com.byted.pangle";
public static final int CLICK_SEND_TYPE_DEFAULT = 0;
public static final int CLICK_SEND_TYPE_SHOW = 1;
public static final String CLIENT_BIDDING_AUTION_PRICE = "_client_bidding_aution_price";
public static final String C_H = "26dfae9";
public static final int DEEPLINK_FALLBACK_TYPE_ERROR_CODE = 403;
public static final String DEEPLINK_FALLBACK_TYPE_ERROR_MSG = "deeplink fallback type error";
public static final int DEEPLINK_FALL_BACK_CODE = 418;
public static final String DEEPLINK_FALL_BACK_MSG = "deeplink fall back url is empty";
public static final int DEEPLINK_UNAVAILABLE_CODE = 402;
public static final String DEEPLINK_UNAVAILABLE_MSG = "deeplink url is empty";
public static final int DEFAULT_ENDCARD_CLOSE_TIME = 0;
public static final int DEFAULT_LIVE_FANS = -1;
public static final int DEFAULT_LIVE_SHOW_TIME = 60;
public static final int DEFAULT_LIVE_SHOW_TIME_MAX = 300;
public static final int DEFAULT_LIVE_SHOW_TIME_MINIMUM = 1;
public static final int DEFAULT_LIVE_WATCH = -1;
public static final int DEFAULT_PLAYABLE_CLOSE_TIME = -1;
public static final int DEFAULT_REWARD_VIDEO_WATCHING = 100;
public static final int DOWNLOAD_APP_INFO_CODE = 406;
public static final String DOWNLOAD_APP_INFO_MSG = "download type appInfo is empty";
public static final int DOWNLOAD_URL_CODE = 407;
public static final String DOWNLOAD_URL_MSG = "download type download url is empty";
public static final int FALLBACK_TYPE_DOWNLOAD = 2;
public static final int FALLBACK_TYPE_LANDING_PAGE = 1;
public static final float FULL_INTERACTION_TYPE_DEFAULT = 100.0f;
public static final int HORIZONTAL = 2;
public static final int IMAGE_CODE = 411;
public static final int IMAGE_LIST_CODE = 409;
public static final String IMAGE_LIST_CODE_MSG = "image type image list is empty";
public static final int IMAGE_LIST_SIZE_CODE = 410;
public static final String IMAGE_LIST_SIZE_MSG = "image type image list size is 0";
public static final int IMAGE_MODE_GROUP_IMG = 4;
public static final int IMAGE_MODE_LARGE_IMG = 3;
public static final int IMAGE_MODE_LIVE = 166;
public static final int IMAGE_MODE_SMALL_IMG = 2;
public static final int IMAGE_MODE_UNKNOWN = -1;
public static final int IMAGE_MODE_VERTICAL_IMG = 16;
public static final int IMAGE_MODE_VIDEO = 5;
public static final int IMAGE_MODE_VIDEO_VERTICAL = 15;
public static final String IMAGE_MSG = "image type image is empty";
public static final int IMAGE_URL_CODE = 412;
public static final String IMAGE_URL_MSG = "image type image url is empty";
public static final int INTERACTION_TYPE_BROWSER = 2;
public static final int INTERACTION_TYPE_CODE = 408;
public static final int INTERACTION_TYPE_DIAL = 5;
public static final int INTERACTION_TYPE_DOWNLOAD = 4;
public static final int INTERACTION_TYPE_LANDING_PAGE = 3;
public static final String INTERACTION_TYPE_MSG = "download type download url is empty";
public static final int INTERACTION_TYPE_UNKNOWN = -1;
public static final boolean IS_P = true;
public static final String KEY_AGE_GROUP = "age_group";
public static final String KEY_L_S = "_l_s";
public static final String KEY_S_C = "_s_c";
public static final int LANDING_PAGE_TYPE_CODE = 405;
public static final String LANDING_PAGE_TYPE_MSG = "open the landing page but the target url is empty";
public static final int LIVE_AD_CODE = 416;
public static final String LIVE_AD_MSG = "live type live ad is empty";
public static final int LIVE_FEED_URL_CODE = 417;
public static final String LIVE_FEED_URL_MSG = "live type live feed url is empty";
public static final Long LIVE_REWARD_TIME = 5000L;
public static final String MATE_IS_NULL_MSG = "mate is null";
public static final int MATE_VALID = 200;
public static final int MINOR = 2;
public static final String MULTI_PROCESS_DATA = "multi_process_data";
public static final String MULTI_PROCESS_MATERIALMETA = "multi_process_materialmeta";
public static final int NETWORK_STATE_2G = 2;
public static final int NETWORK_STATE_3G = 3;
public static final int NETWORK_STATE_4G = 5;
public static final int NETWORK_STATE_5G = 6;
public static final int NETWORK_STATE_MOBILE = 1;
public static final int NETWORK_STATE_WIFI = 4;
public static final int ORIENTATION_LANDSCAPE = 2;
public static final int ORIENTATION_VERTICAL = 1;
public static final String PANGLE_INIT_START_TIME = "_pangle_init_start_time";
public static final int PLAYABLE_CLOSE_TIME_DEFAULT = 0;
public static final int PLAYABLE_DEFAULT_DURATION_TIME = 0;
public static final int PLAYABLE_DEFAULT_ENDCARD_CLOSE_TIME = 0;
public static final int PLAYABLE_REWARD_TYPE = 0;
public static final int PLAYABLE_REWARD_TYPE_NO = 1;
public static final int PLUGIN_UPDATE = 2;
public static final int PLUGIN_WIFI_UPDATE = 1;
public static final int REQ_TYPE_LOAD = 3;
public static final int REQ_TYPE_PRELOAD = 1;
public static final int REQ_TYPE_SDK_PRELOAD = 2;
public static final int REQ_TYPE_UNKNOWN = -1;
public static final int REWARD_BROWSE_TYPE_LANDING = 1;
public static final int REWARD_BROWSE_TYPE_MIX = 3;
public static final int REWARD_BROWSE_TYPE_NO = 0;
public static final int REWARD_END_CARD_TYPE_CLOUD_GAME = 2;
public static final int REWARD_END_CARD_TYPE_DIRECT_LANDING = 3;
public static final int REWARD_END_CARD_TYPE_NORMAL = 0;
public static final int REWARD_END_CARD_TYPE_PLAYABLE = 1;
public static final int SDK_BIDDING_TYPE_CLIENT_BIDDING = 2;
public static final int SDK_NOT_SUPPORT_LIVE_MATE_CODE = 404;
public static final String SDK_NOT_SUPPORT_LIVE_MATE_MSG = "sdk does not support live mate";
public static final int SDK_VERSION_CODE = 4904;
public static final String SDK_VERSION_NAME = "4.9.0.4";
public static final int SHOW_POLL_TIME_MAX = 3000;
public static final int SHOW_POLL_TIME_NOT_FOUND = Integer.MIN_VALUE;
public static final int SHOW_POLL_TIME_OTHER_DEFAULT = 1000;
public static final int SHOW_POLL_TIME_SPLASH_DEFAULT = 500;
public static final int STYLE_SIZE_RADIO_16_9 = 1777;
public static final int STYLE_SIZE_RADIO_1_1 = 1000;
public static final int STYLE_SIZE_RADIO_2_3 = 666;
public static final int STYLE_SIZE_RADIO_3_2 = 1500;
public static final int STYLE_SIZE_RADIO_9_16 = 562;
public static final float STYLE_SIZE_RADIO_FULL = 100.0f;
public static final String S_C = "main";
public static final String TAG = "TT_AD_SDK";
public static final int TEENAGER = 1;
public static final int TITLE_BAR_THEME_DARK = 1;
public static final int TITLE_BAR_THEME_LIGHT = 0;
public static final int TITLE_BAR_THEME_NO_TITLE_BAR = -1;
public static final int VERTICAL = 1;
public static final int VIDEO_CLOSE_COMPLETE = 4;
public static final int VIDEO_CLOSE_FEED_CLICK_CLOSE = 1;
public static final int VIDEO_CLOSE_FULL_REWARD_CLICK_SKIP = 2;
public static final int VIDEO_CLOSE_FULL_REWARD_STUCK = 3;
public static final int VIDEO_CLOSE_PLAYER_ERROR = 5;
public static final int VIDEO_CLOSE_TIME_OUT = 6;
public static final int VIDEO_COVER_URL_CODE = 415;
public static final String VIDEO_COVER_URL_MSG = "video type cover url is empty";
public static final int VIDEO_INFO_CODE = 413;
public static final String VIDEO_INFO_MSG = "video type video info is empty";
public static final int VIDEO_URL_CODE = 414;
public static final String VIDEO_URL_MSG = "video type video url is empty";
@Retention(RetentionPolicy.SOURCE)
public @interface AGE_GROUP {
}
@Retention(RetentionPolicy.SOURCE)
public @interface NATIVE_AD_TYPE {
}
@Retention(RetentionPolicy.SOURCE)
public @interface NETWORK_STATE {
}
@Retention(RetentionPolicy.SOURCE)
public @interface ORIENTATION_STATE {
}
public enum RitScenes {
CUSTOMIZE_SCENES("customize_scenes"),
HOME_OPEN_BONUS("home_open_bonus"),
HOME_SVIP_BONUS("home_svip_bonus"),
HOME_GET_PROPS("home_get_props"),
HOME_TRY_PROPS("home_try_props"),
HOME_GET_BONUS("home_get_bonus"),
HOME_GIFT_BONUS("home_gift_bonus"),
GAME_START_BONUS("game_start_bonus"),
GAME_REDUCE_WAITING("geme_reduce_waiting"),
GAME_MORE_KLLKRTUNITIES(TTAdConstant.b("game_more_kllkrtunities")),
GAME_FINISH_REWARDS("game_finish_rewards"),
GAME_GIFT_BONUS("game_gift_bonus");
final String a;
RitScenes(String str) {
this.a = str;
}
public String getScenesName() {
return this.a;
}
}
@Retention(RetentionPolicy.SOURCE)
public @interface TITLE_BAR_THEME {
}
public static String b(String str) {
if (TextUtils.isEmpty(str)) {
return "";
}
if (str.contains("KLLK")) {
return str.replace("KLLK", PushOppo.NAME);
}
return str.contains(DownloadSettingKeys.oppo) ? str.replace(DownloadSettingKeys.oppo, "oppo") : "";
}
public static int getBuildInVersion() {
return 4904;
}
}