正在查看: Vi App v10.18.0 应用的 TemplateRenderer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Vi App v10.18.0 应用的 TemplateRenderer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.clevertap.android.pushtemplates;
import android.app.NotificationManager;
import android.content.Context;
import android.graphics.Bitmap;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.RequiresApi;
import androidx.core.app.NotificationCompat;
import com.clevertap.android.pushtemplates.content.ContentView;
import com.clevertap.android.pushtemplates.content.FiveIconBigContentView;
import com.clevertap.android.pushtemplates.content.FiveIconSmallContentView;
import com.clevertap.android.pushtemplates.styles.AutoCarouselStyle;
import com.clevertap.android.pushtemplates.styles.BasicStyle;
import com.clevertap.android.pushtemplates.styles.FiveIconStyle;
import com.clevertap.android.pushtemplates.styles.InputBoxStyle;
import com.clevertap.android.pushtemplates.styles.ManualCarouselStyle;
import com.clevertap.android.pushtemplates.styles.ProductDisplayStyle;
import com.clevertap.android.pushtemplates.styles.RatingStyle;
import com.clevertap.android.pushtemplates.styles.TimerStyle;
import com.clevertap.android.pushtemplates.styles.ZeroBezelStyle;
import com.clevertap.android.pushtemplates.validators.Validator;
import com.clevertap.android.pushtemplates.validators.ValidatorFactory;
import com.clevertap.android.sdk.CleverTapInstanceConfig;
import com.clevertap.android.sdk.Constants;
import com.clevertap.android.sdk.interfaces.AudibleNotification;
import com.clevertap.android.sdk.pushnotification.INotificationRenderer;
import java.util.ArrayList;
import kotlin.Metadata;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@Metadata(d1 = {"\u0000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u000f\n\u0002\u0010\b\n\u0002\b\u0017\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\bS\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\f\u0018\u0000 «\u00012\u00020\u00012\u00020\u0002:\u0004«\u0001¬\u0001B\u0017\b\u0010\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007B\u001f\b\u0012\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\t\u0010\u0098\u0001\u001a\u00020\u0013H\u0016J\u0013\u0010\u0099\u0001\u001a\u0004\u0018\u00010;2\u0006\u0010\u0005\u001a\u00020\u0006H\u0016J\u0013\u0010\u009a\u0001\u001a\u0004\u0018\u00010\u00132\u0006\u0010\u0005\u001a\u00020\u0006H\u0016J\u0011\u0010\u009b\u0001\u001a\u0004\u0018\u00010#H\u0002¢\u0006\u0003\u0010\u009c\u0001J\u001b\u0010\u009d\u0001\u001a\u0004\u0018\u00010\u00132\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0004H\u0016J\u0012\u0010\u009e\u0001\u001a\u00030\u009f\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0002J6\u0010 \u0001\u001a\u0005\u0018\u00010¡\u00012\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00042\b\u0010¢\u0001\u001a\u00030¡\u00012\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\"\u001a\u00020#H\u0016J6\u0010£\u0001\u001a\u00030¡\u00012\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\"\u001a\u00020#2\b\u0010¢\u0001\u001a\u00030¡\u00012\b\u0010\u000b\u001a\u0004\u0018\u00010\fH\u0016J\u0012\u0010¤\u0001\u001a\u00030\u009f\u00012\u0006\u0010\u0005\u001a\u00020\u0006H\u0002J\u001b\u0010¥\u0001\u001a\u00030\u009f\u00012\u0007\u0010\u0090\u0001\u001a\u00020#2\u0006\u0010\u0003\u001a\u00020\u0004H\u0016J,\u0010¦\u0001\u001a\u00030¡\u00012\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\b\u0010¢\u0001\u001a\u00030¡\u00012\u0006\u0010\b\u001a\u00020\tH\u0016J$\u0010§\u0001\u001a\u00030\u009f\u00012\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\b\u0010\b\u001a\u0004\u0018\u00010\tH\u0002J3\u0010¨\u0001\u001a\u00030\u009f\u00012\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\"\u001a\u00020#2\t\u0010©\u0001\u001a\u0004\u0018\u00010#H\u0003¢\u0006\u0003\u0010ª\u0001R\u001c\u0010\u000b\u001a\u0004\u0018\u00010\fX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\"\u0010\u0011\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\u0012X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\u001c\u0010\b\u001a\u0004\u0018\u00010\tX\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR\"\u0010\u001c\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\u0012X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001d\u0010\u0015\"\u0004\b\u001e\u0010\u0017R\"\u0010\u001f\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\u0012X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b \u0010\u0015\"\u0004\b!\u0010\u0017R\u001a\u0010\"\u001a\u00020#X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b$\u0010%\"\u0004\b&\u0010'R\u0010\u0010(\u001a\u0004\u0018\u00010\u0013X\u0082\u000e¢\u0006\u0002\n\u0000R\"\u0010)\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\u0012X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b*\u0010\u0015\"\u0004\b+\u0010\u0017R\u001c\u0010,\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b-\u0010.\"\u0004\b/\u00100R\u001c\u00101\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b2\u0010.\"\u0004\b3\u00100R\u0010\u00104\u001a\u0004\u0018\u00010\u0013X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u00105\u001a\u0004\u0018\u00010\u0013X\u0082\u000e¢\u0006\u0002\n\u0000R\u0016\u00106\u001a\n\u0012\u0004\u0012\u00020#\u0018\u00010\u0012X\u0082\u000e¢\u0006\u0002\n\u0000R\u001c\u00107\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b8\u0010.\"\u0004\b9\u00100R\u0010\u0010:\u001a\u0004\u0018\u00010;X\u0082\u000e¢\u0006\u0002\n\u0000R\u001c\u0010<\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b=\u0010.\"\u0004\b>\u00100R\u001a\u0010?\u001a\u00020#X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b@\u0010%\"\u0004\bA\u0010'R\u001c\u0010B\u001a\u0004\u0018\u00010CX\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bD\u0010E\"\u0004\bF\u0010GR\u001a\u0010H\u001a\u00020#X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bI\u0010%\"\u0004\bJ\u0010'R\u0010\u0010K\u001a\u0004\u0018\u00010\u0013X\u0082\u000e¢\u0006\u0002\n\u0000R\u001c\u0010L\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bM\u0010.\"\u0004\bN\u00100R\u001c\u0010O\u001a\u0004\u0018\u00010\u0013X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bP\u0010.\"\u0004\bQ\u00100R\u001c\u0010R\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bS\u0010.\"\u0004\bT\u00100R\u001c\u0010U\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bV\u0010.\"\u0004\bW\u00100R\u001c\u0010X\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bY\u0010.\"\u0004\bZ\u00100R\u001c\u0010[\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\\\u0010.\"\u0004\b]\u00100R\u001c\u0010^\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b_\u0010.\"\u0004\b`\u00100R\u0010\u0010a\u001a\u0004\u0018\u00010\u0013X\u0082\u000e¢\u0006\u0002\n\u0000R\u001c\u0010b\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bc\u0010.\"\u0004\bd\u00100R\u001c\u0010e\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bf\u0010.\"\u0004\bg\u00100R\u001c\u0010h\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bi\u0010.\"\u0004\bj\u00100R\u001c\u0010k\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bl\u0010.\"\u0004\bm\u00100R\u001c\u0010n\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bo\u0010.\"\u0004\bp\u00100R\u001c\u0010q\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\br\u0010.\"\u0004\bs\u00100R\u001c\u0010t\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bu\u0010.\"\u0004\bv\u00100R\u001c\u0010w\u001a\u0004\u0018\u00010CX\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bx\u0010E\"\u0004\by\u0010GR\u001c\u0010z\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b{\u0010.\"\u0004\b|\u00100R\u001c\u0010}\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b~\u0010.\"\u0004\b\u007f\u00100R\u001f\u0010\u0080\u0001\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u0081\u0001\u0010.\"\u0005\b\u0082\u0001\u00100R\u001d\u0010\u0083\u0001\u001a\u00020#X\u0086\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u0084\u0001\u0010%\"\u0005\b\u0085\u0001\u0010'R\u001d\u0010\u0086\u0001\u001a\u00020#X\u0086\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u0087\u0001\u0010%\"\u0005\b\u0088\u0001\u0010'R\u001f\u0010\u0089\u0001\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u008a\u0001\u0010.\"\u0005\b\u008b\u0001\u00100R\u0011\u0010\u008c\u0001\u001a\u0004\u0018\u00010\u0013X\u0082\u000e¢\u0006\u0002\n\u0000R\u001f\u0010\u008d\u0001\u001a\u0004\u0018\u00010\u0013X\u0080\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u008e\u0001\u0010.\"\u0005\b\u008f\u0001\u00100R\u001d\u0010\u0090\u0001\u001a\u00020#X\u0080\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u0091\u0001\u0010%\"\u0005\b\u0092\u0001\u0010'R%\u0010\u0093\u0001\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\u0012X\u0080\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u0094\u0001\u0010\u0015\"\u0005\b\u0095\u0001\u0010\u0017R\u0012\u0010\u0096\u0001\u001a\u0005\u0018\u00010\u0097\u0001X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u00ad\u0001"}, d2 = {"Lcom/clevertap/android/pushtemplates/TemplateRenderer;", "Lcom/clevertap/android/sdk/pushnotification/INotificationRenderer;", "Lcom/clevertap/android/sdk/interfaces/AudibleNotification;", "context", "Landroid/content/Context;", "extras", "Landroid/os/Bundle;", "(Landroid/content/Context;Landroid/os/Bundle;)V", Constants.KEY_CONFIG, "Lcom/clevertap/android/sdk/CleverTapInstanceConfig;", "(Landroid/content/Context;Landroid/os/Bundle;Lcom/clevertap/android/sdk/CleverTapInstanceConfig;)V", Constants.KEY_ACTIONS, "Lorg/json/JSONArray;", "getActions", "()Lorg/json/JSONArray;", "setActions", "(Lorg/json/JSONArray;)V", "bigTextList", "Ljava/util/ArrayList;", "", "getBigTextList$clevertap_pushtemplates_release", "()Ljava/util/ArrayList;", "setBigTextList$clevertap_pushtemplates_release", "(Ljava/util/ArrayList;)V", "getConfig$clevertap_pushtemplates_release", "()Lcom/clevertap/android/sdk/CleverTapInstanceConfig;", "setConfig$clevertap_pushtemplates_release", "(Lcom/clevertap/android/sdk/CleverTapInstanceConfig;)V", "deepLinkList", "getDeepLinkList$clevertap_pushtemplates_release", "setDeepLinkList$clevertap_pushtemplates_release", "imageList", "getImageList$clevertap_pushtemplates_release", "setImageList$clevertap_pushtemplates_release", "notificationId", "", "getNotificationId$clevertap_pushtemplates_release", "()I", "setNotificationId$clevertap_pushtemplates_release", "(I)V", "pID", "priceList", "getPriceList$clevertap_pushtemplates_release", "setPriceList$clevertap_pushtemplates_release", PTConstants.PT_BG, "getPt_bg$clevertap_pushtemplates_release", "()Ljava/lang/String;", "setPt_bg$clevertap_pushtemplates_release", "(Ljava/lang/String;)V", PTConstants.PT_BIG_IMG, "getPt_big_img$clevertap_pushtemplates_release", "setPt_big_img$clevertap_pushtemplates_release", PTConstants.PT_BIG_IMG_ALT, PTConstants.PT_CANCEL_NOTIF_ID, "pt_cancel_notif_ids", PTConstants.PT_CHRONO_TITLE_COLOUR, "getPt_chrono_title_clr$clevertap_pushtemplates_release", "setPt_chrono_title_clr$clevertap_pushtemplates_release", "pt_collapse_key", "", PTConstants.PT_DISMISS_ON_CLICK, "getPt_dismiss_on_click$clevertap_pushtemplates_release", "setPt_dismiss_on_click$clevertap_pushtemplates_release", "pt_dot", "getPt_dot$clevertap_pushtemplates_release", "setPt_dot$clevertap_pushtemplates_release", PTConstants.PT_DOT_SEP, "Landroid/graphics/Bitmap;", "getPt_dot_sep$clevertap_pushtemplates_release", "()Landroid/graphics/Bitmap;", "setPt_dot_sep$clevertap_pushtemplates_release", "(Landroid/graphics/Bitmap;)V", PTConstants.PT_FLIP_INTERVAL, "getPt_flip_interval$clevertap_pushtemplates_release", "setPt_flip_interval$clevertap_pushtemplates_release", PTConstants.PT_ID, PTConstants.PT_INPUT_AUTO_OPEN, "getPt_input_auto_open$clevertap_pushtemplates_release", "setPt_input_auto_open$clevertap_pushtemplates_release", PTConstants.PT_INPUT_FEEDBACK, "getPt_input_feedback", "setPt_input_feedback", PTConstants.PT_INPUT_LABEL, "getPt_input_label$clevertap_pushtemplates_release", "setPt_input_label$clevertap_pushtemplates_release", "pt_large_icon", "getPt_large_icon$clevertap_pushtemplates_release", "setPt_large_icon$clevertap_pushtemplates_release", PTConstants.PT_MANUAL_CAROUSEL_TYPE, "getPt_manual_carousel_type$clevertap_pushtemplates_release", "setPt_manual_carousel_type$clevertap_pushtemplates_release", PTConstants.PT_META_CLR, "getPt_meta_clr$clevertap_pushtemplates_release", "setPt_meta_clr$clevertap_pushtemplates_release", PTConstants.PT_MSG, "getPt_msg$clevertap_pushtemplates_release", "setPt_msg$clevertap_pushtemplates_release", PTConstants.PT_MSG_ALT, PTConstants.PT_MSG_COLOR, "getPt_msg_clr$clevertap_pushtemplates_release", "setPt_msg_clr$clevertap_pushtemplates_release", PTConstants.PT_MSG_SUMMARY, "getPt_msg_summary$clevertap_pushtemplates_release", "setPt_msg_summary$clevertap_pushtemplates_release", PTConstants.PT_PRODUCT_DISPLAY_ACTION, "getPt_product_display_action$clevertap_pushtemplates_release", "setPt_product_display_action$clevertap_pushtemplates_release", PTConstants.PT_PRODUCT_DISPLAY_ACTION_COLOUR, "getPt_product_display_action_clr$clevertap_pushtemplates_release", "setPt_product_display_action_clr$clevertap_pushtemplates_release", PTConstants.PT_PRODUCT_DISPLAY_ACTION_TEXT_COLOUR, "getPt_product_display_action_text_clr$clevertap_pushtemplates_release", "setPt_product_display_action_text_clr$clevertap_pushtemplates_release", PTConstants.PT_PRODUCT_DISPLAY_LINEAR, "getPt_product_display_linear$clevertap_pushtemplates_release", "setPt_product_display_linear$clevertap_pushtemplates_release", "pt_rating_default_dl", "getPt_rating_default_dl$clevertap_pushtemplates_release", "setPt_rating_default_dl$clevertap_pushtemplates_release", "pt_small_icon", "getPt_small_icon$clevertap_pushtemplates_release", "setPt_small_icon$clevertap_pushtemplates_release", PTConstants.PT_SMALL_ICON_COLOUR, "getPt_small_icon_clr$clevertap_pushtemplates_release", "setPt_small_icon_clr$clevertap_pushtemplates_release", PTConstants.PT_SMALL_VIEW, "getPt_small_view$clevertap_pushtemplates_release", "setPt_small_view$clevertap_pushtemplates_release", PTConstants.PT_SUBTITLE, "getPt_subtitle$clevertap_pushtemplates_release", "setPt_subtitle$clevertap_pushtemplates_release", PTConstants.PT_TIMER_END, "getPt_timer_end", "setPt_timer_end", PTConstants.PT_TIMER_THRESHOLD, "getPt_timer_threshold", "setPt_timer_threshold", PTConstants.PT_TITLE, "getPt_title$clevertap_pushtemplates_release", "setPt_title$clevertap_pushtemplates_release", PTConstants.PT_TITLE_ALT, PTConstants.PT_TITLE_COLOR, "getPt_title_clr$clevertap_pushtemplates_release", "setPt_title_clr$clevertap_pushtemplates_release", "smallIcon", "getSmallIcon$clevertap_pushtemplates_release", "setSmallIcon$clevertap_pushtemplates_release", "smallTextList", "getSmallTextList$clevertap_pushtemplates_release", "setSmallTextList$clevertap_pushtemplates_release", "templateType", "Lcom/clevertap/android/pushtemplates/TemplateType;", "getActionButtonIconKey", "getCollapseKey", "getMessage", "getTimerEnd", "()Ljava/lang/Integer;", "getTitle", "renderCancelNotification", "", "renderNotification", "Landroidx/core/app/NotificationCompat$Builder;", "nb", "setActionButtons", "setKeysFromDashboard", "setSmallIcon", "setSound", "setUp", "timerRunner", "delay", "(Landroid/content/Context;Landroid/os/Bundle;ILjava/lang/Integer;)V", "Companion", "LogLevel", "clevertap-pushtemplates_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public final class TemplateRenderer implements INotificationRenderer, AudibleNotification {
@NotNull
public static final Companion INSTANCE = new Companion(null);
private static int debugLevel = LogLevel.INFO.getValue();
@Nullable
private JSONArray actions;
@Nullable
private ArrayList<String> bigTextList;
@Nullable
private CleverTapInstanceConfig config;
@Nullable
private ArrayList<String> deepLinkList;
@Nullable
private ArrayList<String> imageList;
private int notificationId;
@Nullable
private String pID;
@Nullable
private ArrayList<String> priceList;
@Nullable
private String pt_bg;
@Nullable
private String pt_big_img;
@Nullable
private String pt_big_img_alt;
@Nullable
private String pt_cancel_notif_id;
@Nullable
private ArrayList<Integer> pt_cancel_notif_ids;
@Nullable
private String pt_chrono_title_clr;
@Nullable
private Object pt_collapse_key;
@Nullable
private String pt_dismiss_on_click;
private int pt_dot;
@Nullable
private Bitmap pt_dot_sep;
private int pt_flip_interval;
@Nullable
private String pt_id;
@Nullable
private String pt_input_auto_open;
@Nullable
private String pt_input_feedback;
@Nullable
private String pt_input_label;
@Nullable
private String pt_large_icon;
@Nullable
private String pt_manual_carousel_type;
@Nullable
private String pt_meta_clr;
@Nullable
private String pt_msg;
@Nullable
private String pt_msg_alt;
@Nullable
private String pt_msg_clr;
@Nullable
private String pt_msg_summary;
@Nullable
private String pt_product_display_action;
@Nullable
private String pt_product_display_action_clr;
@Nullable
private String pt_product_display_action_text_clr;
@Nullable
private String pt_product_display_linear;
@Nullable
private String pt_rating_default_dl;
@Nullable
private Bitmap pt_small_icon;
@Nullable
private String pt_small_icon_clr;
@Nullable
private String pt_small_view;
@Nullable
private String pt_subtitle;
private int pt_timer_end;
private int pt_timer_threshold;
@Nullable
private String pt_title;
@Nullable
private String pt_title_alt;
@Nullable
private String pt_title_clr;
private int smallIcon;
@Nullable
private ArrayList<String> smallTextList;
@Nullable
private TemplateType templateType;
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R$\u0010\u0003\u001a\u00020\u00048\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\u0005\u0010\u0002\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\t¨\u0006\n"}, d2 = {"Lcom/clevertap/android/pushtemplates/TemplateRenderer$Companion;", "", "()V", Constants.KEY_DEBUG_LEVEL, "", "getDebugLevel$annotations", "getDebugLevel", "()I", "setDebugLevel", "(I)V", "clevertap-pushtemplates_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public static final class Companion {
private Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@JvmStatic
public static void getDebugLevel$annotations() {
}
public final int getDebugLevel() {
return TemplateRenderer.debugLevel;
}
public final void setDebugLevel(int i) {
TemplateRenderer.debugLevel = i;
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\b\u0086\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0006\u0010\u0005\u001a\u00020\u0003R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\t¨\u0006\n"}, d2 = {"Lcom/clevertap/android/pushtemplates/TemplateRenderer$LogLevel;", "", "value", "", "(Ljava/lang/String;II)V", "intValue", "OFF", "INFO", "DEBUG", "VERBOSE", "clevertap-pushtemplates_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public enum LogLevel {
OFF(-1),
INFO(0),
DEBUG(2),
VERBOSE(3);
private final int value;
LogLevel(int i) {
this.value = i;
}
public final int getValue() {
return this.value;
}
}
@Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
public class WhenMappings {
public static final int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[TemplateType.values().length];
try {
iArr[TemplateType.BASIC.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[TemplateType.AUTO_CAROUSEL.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[TemplateType.MANUAL_CAROUSEL.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[TemplateType.RATING.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[TemplateType.FIVE_ICONS.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
iArr[TemplateType.PRODUCT_DISPLAY.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
iArr[TemplateType.ZERO_BEZEL.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
iArr[TemplateType.TIMER.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
try {
iArr[TemplateType.INPUT_BOX.ordinal()] = 9;
} catch (NoSuchFieldError unused9) {
}
try {
iArr[TemplateType.CANCEL.ordinal()] = 10;
} catch (NoSuchFieldError unused10) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public TemplateRenderer(@NotNull Context context, @NotNull Bundle bundle) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
this.notificationId = -1;
setUp(context, bundle, null);
}
public static final int getDebugLevel() {
return INSTANCE.getDebugLevel();
}
private final Integer getTimerEnd() {
int i = this.pt_timer_threshold;
if (i != -1 && i >= 10) {
return Integer.valueOf((i * 1000) + 1000);
}
int i2 = this.pt_timer_end;
if (i2 >= 10) {
return Integer.valueOf((i2 * 1000) + 1000);
}
PTLog.debug("Not rendering notification Timer End value lesser than threshold (10 seconds) from current time: pt_timer_end");
return null;
}
private final void renderCancelNotification(Context context) {
Object systemService = context.getSystemService("notification");
Intrinsics.checkNotNull(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
NotificationManager notificationManager = (NotificationManager) systemService;
String str = this.pt_cancel_notif_id;
int i = 0;
if (str != null) {
Intrinsics.checkNotNull(str);
if (str.length() > 0) {
String str2 = this.pt_cancel_notif_id;
Intrinsics.checkNotNull(str2);
notificationManager.cancel(Integer.parseInt(str2));
return;
}
}
ArrayList<Integer> arrayList = this.pt_cancel_notif_ids;
Intrinsics.checkNotNull(arrayList);
if (arrayList.size() <= 0) {
return;
}
ArrayList<Integer> arrayList2 = this.pt_cancel_notif_ids;
Intrinsics.checkNotNull(arrayList2);
int size = arrayList2.size();
if (size < 0) {
return;
}
while (true) {
ArrayList<Integer> arrayList3 = this.pt_cancel_notif_ids;
Intrinsics.checkNotNull(arrayList3);
Integer num = arrayList3.get(i);
Intrinsics.checkNotNullExpressionValue(num, "pt_cancel_notif_ids!![i]");
notificationManager.cancel(num.intValue());
if (i == size) {
return;
} else {
i++;
}
}
}
public static final void setDebugLevel(int i) {
INSTANCE.setDebugLevel(i);
}
private final void setKeysFromDashboard(android.os.Bundle r5) {
throw new UnsupportedOperationException("Method not decompiled: com.clevertap.android.pushtemplates.TemplateRenderer.setKeysFromDashboard(android.os.Bundle):void");
}
private final void setUp(Context context, Bundle extras, CleverTapInstanceConfig config) {
this.pt_id = extras.getString(PTConstants.PT_ID);
String string = extras.getString(PTConstants.PT_JSON);
String str = this.pt_id;
if (str != null) {
this.templateType = TemplateType.INSTANCE.fromString(str);
Bundle bundle = null;
if (string != null) {
try {
if (string.length() > 0) {
bundle = Utils.fromJson(new JSONObject(string));
}
} catch (JSONException e) {
e.printStackTrace();
}
}
if (bundle != null) {
extras.putAll(bundle);
}
}
this.pt_msg = extras.getString(PTConstants.PT_MSG);
this.pt_msg_summary = extras.getString(PTConstants.PT_MSG_SUMMARY);
this.pt_msg_clr = extras.getString(PTConstants.PT_MSG_COLOR);
this.pt_title = extras.getString(PTConstants.PT_TITLE);
this.pt_title_clr = extras.getString(PTConstants.PT_TITLE_COLOR);
this.pt_meta_clr = extras.getString(PTConstants.PT_META_CLR);
this.pt_bg = extras.getString(PTConstants.PT_BG);
this.pt_big_img = extras.getString(PTConstants.PT_BIG_IMG);
this.pt_large_icon = extras.getString(PTConstants.PT_NOTIF_ICON);
this.pt_small_view = extras.getString(PTConstants.PT_SMALL_VIEW);
this.imageList = Utils.getImageListFromExtras(extras);
this.deepLinkList = Utils.getDeepLinkListFromExtras(extras);
this.bigTextList = Utils.getBigTextFromExtras(extras);
this.smallTextList = Utils.getSmallTextFromExtras(extras);
this.priceList = Utils.getPriceFromExtras(extras);
this.pt_rating_default_dl = extras.getString(PTConstants.PT_DEFAULT_DL);
this.pt_timer_threshold = Utils.getTimerThreshold(extras);
this.pt_input_label = extras.getString(PTConstants.PT_INPUT_LABEL);
this.pt_input_feedback = extras.getString(PTConstants.PT_INPUT_FEEDBACK);
this.pt_input_auto_open = extras.getString(PTConstants.PT_INPUT_AUTO_OPEN);
this.pt_dismiss_on_click = extras.getString(PTConstants.PT_DISMISS_ON_CLICK);
this.pt_chrono_title_clr = extras.getString(PTConstants.PT_CHRONO_TITLE_COLOUR);
this.pt_product_display_action = extras.getString(PTConstants.PT_PRODUCT_DISPLAY_ACTION);
this.pt_product_display_action_clr = extras.getString(PTConstants.PT_PRODUCT_DISPLAY_ACTION_COLOUR);
this.pt_timer_end = Utils.getTimerEnd(extras);
this.pt_big_img_alt = extras.getString(PTConstants.PT_BIG_IMG_ALT);
this.pt_msg_alt = extras.getString(PTConstants.PT_MSG_ALT);
this.pt_title_alt = extras.getString(PTConstants.PT_TITLE_ALT);
this.pt_product_display_linear = extras.getString(PTConstants.PT_PRODUCT_DISPLAY_LINEAR);
this.pt_product_display_action_text_clr = extras.getString(PTConstants.PT_PRODUCT_DISPLAY_ACTION_TEXT_COLOUR);
this.pt_small_icon_clr = extras.getString(PTConstants.PT_SMALL_ICON_COLOUR);
this.pt_cancel_notif_id = extras.getString(PTConstants.PT_CANCEL_NOTIF_ID);
this.pt_cancel_notif_ids = Utils.getNotificationIds(context);
this.actions = Utils.getActionKeys(extras);
this.pt_subtitle = extras.getString(PTConstants.PT_SUBTITLE);
this.pt_collapse_key = extras.get(PTConstants.PT_COLLAPSE_KEY);
this.pt_flip_interval = Utils.getFlipInterval(extras);
this.pID = extras.getString(Constants.WZRK_PUSH_ID);
this.pt_manual_carousel_type = extras.getString(PTConstants.PT_MANUAL_CAROUSEL_TYPE);
if (config != null) {
this.config = config;
}
setKeysFromDashboard(extras);
}
@RequiresApi
private final void timerRunner(final Context context, final Bundle extras, final int notificationId, Integer delay) {
Handler handler = new Handler(Looper.getMainLooper());
if (delay != null) {
handler.postDelayed(new Runnable() {
@Override
public final void run() {
TemplateRenderer.timerRunner$lambda$0(context, notificationId, this, extras);
}
}, delay.intValue() - 100);
}
}
public static final void timerRunner$lambda$0(android.content.Context r6, int r7, com.clevertap.android.pushtemplates.TemplateRenderer r8, android.os.Bundle r9) {
throw new UnsupportedOperationException("Method not decompiled: com.clevertap.android.pushtemplates.TemplateRenderer.timerRunner$lambda$0(android.content.Context, int, com.clevertap.android.pushtemplates.TemplateRenderer, android.os.Bundle):void");
}
@Override
@NotNull
public String getActionButtonIconKey() {
return PTConstants.PT_NOTIF_ICON;
}
@Nullable
public final JSONArray getActions() {
return this.actions;
}
@Nullable
public final ArrayList<String> getBigTextList$clevertap_pushtemplates_release() {
return this.bigTextList;
}
@Override
@Nullable
public Object getCollapseKey(@NotNull Bundle extras) {
Intrinsics.checkNotNullParameter(extras, "extras");
return this.pt_collapse_key;
}
@Nullable
public final CleverTapInstanceConfig getConfig() {
return this.config;
}
@Nullable
public final ArrayList<String> getDeepLinkList$clevertap_pushtemplates_release() {
return this.deepLinkList;
}
@Nullable
public final ArrayList<String> getImageList$clevertap_pushtemplates_release() {
return this.imageList;
}
@Override
@Nullable
public String getMessage(@NotNull Bundle extras) {
Intrinsics.checkNotNullParameter(extras, "extras");
return this.pt_msg;
}
public final int getNotificationId() {
return this.notificationId;
}
@Nullable
public final ArrayList<String> getPriceList$clevertap_pushtemplates_release() {
return this.priceList;
}
@Nullable
public final String getPt_bg() {
return this.pt_bg;
}
@Nullable
public final String getPt_big_img() {
return this.pt_big_img;
}
@Nullable
public final String getPt_chrono_title_clr() {
return this.pt_chrono_title_clr;
}
@Nullable
public final String getPt_dismiss_on_click() {
return this.pt_dismiss_on_click;
}
public final int getPt_dot() {
return this.pt_dot;
}
@Nullable
public final Bitmap getPt_dot_sep() {
return this.pt_dot_sep;
}
public final int getPt_flip_interval() {
return this.pt_flip_interval;
}
@Nullable
public final String getPt_input_auto_open() {
return this.pt_input_auto_open;
}
@Nullable
public final String getPt_input_feedback() {
return this.pt_input_feedback;
}
@Nullable
public final String getPt_input_label() {
return this.pt_input_label;
}
@Nullable
public final String getPt_large_icon() {
return this.pt_large_icon;
}
@Nullable
public final String getPt_manual_carousel_type() {
return this.pt_manual_carousel_type;
}
@Nullable
public final String getPt_meta_clr() {
return this.pt_meta_clr;
}
@Nullable
public final String getPt_msg() {
return this.pt_msg;
}
@Nullable
public final String getPt_msg_clr() {
return this.pt_msg_clr;
}
@Nullable
public final String getPt_msg_summary() {
return this.pt_msg_summary;
}
@Nullable
public final String getPt_product_display_action() {
return this.pt_product_display_action;
}
@Nullable
public final String getPt_product_display_action_clr() {
return this.pt_product_display_action_clr;
}
@Nullable
public final String getPt_product_display_action_text_clr() {
return this.pt_product_display_action_text_clr;
}
@Nullable
public final String getPt_product_display_linear() {
return this.pt_product_display_linear;
}
@Nullable
public final String getPt_rating_default_dl() {
return this.pt_rating_default_dl;
}
@Nullable
public final Bitmap getPt_small_icon() {
return this.pt_small_icon;
}
@Nullable
public final String getPt_small_icon_clr() {
return this.pt_small_icon_clr;
}
@Nullable
public final String getPt_small_view() {
return this.pt_small_view;
}
@Nullable
public final String getPt_subtitle() {
return this.pt_subtitle;
}
public final int getPt_timer_end() {
return this.pt_timer_end;
}
public final int getPt_timer_threshold() {
return this.pt_timer_threshold;
}
@Nullable
public final String getPt_title() {
return this.pt_title;
}
@Nullable
public final String getPt_title_clr() {
return this.pt_title_clr;
}
public final int getSmallIcon() {
return this.smallIcon;
}
@Nullable
public final ArrayList<String> getSmallTextList$clevertap_pushtemplates_release() {
return this.smallTextList;
}
@Override
@Nullable
public String getTitle(@NotNull Bundle extras, @NotNull Context context) {
Intrinsics.checkNotNullParameter(extras, "extras");
Intrinsics.checkNotNullParameter(context, "context");
return this.pt_title;
}
@Override
@Nullable
public NotificationCompat.Builder renderNotification(@NotNull Bundle extras, @NotNull Context context, @NotNull NotificationCompat.Builder nb, @NotNull CleverTapInstanceConfig config, int notificationId) {
Integer timerEnd;
Intrinsics.checkNotNullParameter(extras, "extras");
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(nb, "nb");
Intrinsics.checkNotNullParameter(config, Constants.KEY_CONFIG);
if (this.pt_id == null) {
PTLog.verbose("Template ID not provided. Cannot create the notification");
return null;
}
this.notificationId = notificationId;
TemplateType templateType = this.templateType;
switch (templateType == null ? -1 : WhenMappings.$EnumSwitchMapping$0[templateType.ordinal()]) {
case 1:
Validator validator = ValidatorFactory.INSTANCE.getValidator(TemplateType.BASIC, this);
if (validator != null && validator.validate()) {
return new BasicStyle(this).builderFromStyle(context, extras, notificationId, nb);
}
return null;
case 2:
Validator validator2 = ValidatorFactory.INSTANCE.getValidator(TemplateType.AUTO_CAROUSEL, this);
if (validator2 != null && validator2.validate()) {
return new AutoCarouselStyle(this).builderFromStyle(context, extras, notificationId, nb);
}
return null;
case 3:
Validator validator3 = ValidatorFactory.INSTANCE.getValidator(TemplateType.MANUAL_CAROUSEL, this);
if (validator3 != null && validator3.validate()) {
return new ManualCarouselStyle(this, extras).builderFromStyle(context, extras, notificationId, nb);
}
return null;
case 4:
Validator validator4 = ValidatorFactory.INSTANCE.getValidator(TemplateType.RATING, this);
if (validator4 != null && validator4.validate()) {
return new RatingStyle(this, extras).builderFromStyle(context, extras, notificationId, nb);
}
return null;
case 5:
Validator validator5 = ValidatorFactory.INSTANCE.getValidator(TemplateType.FIVE_ICONS, this);
if (validator5 != null && validator5.validate()) {
FiveIconStyle fiveIconStyle = new FiveIconStyle(this, extras);
NotificationCompat.Builder builderFromStyle = fiveIconStyle.builderFromStyle(context, extras, notificationId, nb);
ContentView fiveIconSmallContentView = fiveIconStyle.getFiveIconSmallContentView();
Intrinsics.checkNotNull(fiveIconSmallContentView, "null cannot be cast to non-null type com.clevertap.android.pushtemplates.content.FiveIconSmallContentView");
if (((FiveIconSmallContentView) fiveIconSmallContentView).getImageCounter() > 2) {
return null;
}
ContentView fiveIconBigContentView = fiveIconStyle.getFiveIconBigContentView();
Intrinsics.checkNotNull(fiveIconBigContentView, "null cannot be cast to non-null type com.clevertap.android.pushtemplates.content.FiveIconBigContentView");
if (((FiveIconBigContentView) fiveIconBigContentView).getImageCounter() > 2) {
return null;
}
return builderFromStyle;
}
return null;
case 6:
Validator validator6 = ValidatorFactory.INSTANCE.getValidator(TemplateType.PRODUCT_DISPLAY, this);
if (validator6 != null && validator6.validate()) {
return new ProductDisplayStyle(this, extras).builderFromStyle(context, extras, notificationId, nb);
}
return null;
case 7:
Validator validator7 = ValidatorFactory.INSTANCE.getValidator(TemplateType.ZERO_BEZEL, this);
if (validator7 != null && validator7.validate()) {
return new ZeroBezelStyle(this).builderFromStyle(context, extras, notificationId, nb);
}
return null;
case 8:
if (Build.VERSION.SDK_INT >= 24) {
Validator validator8 = ValidatorFactory.INSTANCE.getValidator(TemplateType.TIMER, this);
if ((validator8 != null && validator8.validate()) && (timerEnd = getTimerEnd()) != null) {
timerRunner(context, extras, notificationId, timerEnd);
return new TimerStyle(this, extras).builderFromStyle(context, extras, notificationId, nb).setTimeoutAfter(timerEnd.intValue());
}
} else {
PTLog.debug("Push Templates SDK supports Timer Notifications only on or above Android Nougat, reverting to basic template");
Validator validator9 = ValidatorFactory.INSTANCE.getValidator(TemplateType.BASIC, this);
if (validator9 != null && validator9.validate()) {
return new BasicStyle(this).builderFromStyle(context, extras, notificationId, nb);
}
}
return null;
case 9:
Validator validator10 = ValidatorFactory.INSTANCE.getValidator(TemplateType.INPUT_BOX, this);
if (validator10 != null && validator10.validate()) {
return new InputBoxStyle(this).builderFromStyle(context, extras, notificationId, nb);
}
return null;
case 10:
renderCancelNotification(context);
return null;
default:
PTLog.verbose("operation not defined!");
return null;
}
}
@Override
@org.jetbrains.annotations.NotNull
public androidx.core.app.NotificationCompat.Builder setActionButtons(@org.jetbrains.annotations.NotNull android.content.Context r21, @org.jetbrains.annotations.NotNull android.os.Bundle r22, int r23, @org.jetbrains.annotations.NotNull androidx.core.app.NotificationCompat.Builder r24, @org.jetbrains.annotations.Nullable org.json.JSONArray r25) {
throw new UnsupportedOperationException("Method not decompiled: com.clevertap.android.pushtemplates.TemplateRenderer.setActionButtons(android.content.Context, android.os.Bundle, int, androidx.core.app.NotificationCompat$Builder, org.json.JSONArray):androidx.core.app.NotificationCompat$Builder");
}
public final void setActions(@Nullable JSONArray jSONArray) {
this.actions = jSONArray;
}
public final void setBigTextList$clevertap_pushtemplates_release(@Nullable ArrayList<String> arrayList) {
this.bigTextList = arrayList;
}
public final void setConfig$clevertap_pushtemplates_release(@Nullable CleverTapInstanceConfig cleverTapInstanceConfig) {
this.config = cleverTapInstanceConfig;
}
public final void setDeepLinkList$clevertap_pushtemplates_release(@Nullable ArrayList<String> arrayList) {
this.deepLinkList = arrayList;
}
public final void setImageList$clevertap_pushtemplates_release(@Nullable ArrayList<String> arrayList) {
this.imageList = arrayList;
}
public final void setNotificationId$clevertap_pushtemplates_release(int i) {
this.notificationId = i;
}
public final void setPriceList$clevertap_pushtemplates_release(@Nullable ArrayList<String> arrayList) {
this.priceList = arrayList;
}
public final void setPt_bg$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_bg = str;
}
public final void setPt_big_img$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_big_img = str;
}
public final void setPt_chrono_title_clr$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_chrono_title_clr = str;
}
public final void setPt_dismiss_on_click$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_dismiss_on_click = str;
}
public final void setPt_dot$clevertap_pushtemplates_release(int i) {
this.pt_dot = i;
}
public final void setPt_dot_sep$clevertap_pushtemplates_release(@Nullable Bitmap bitmap) {
this.pt_dot_sep = bitmap;
}
public final void setPt_flip_interval$clevertap_pushtemplates_release(int i) {
this.pt_flip_interval = i;
}
public final void setPt_input_auto_open$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_input_auto_open = str;
}
public final void setPt_input_feedback(@Nullable String str) {
this.pt_input_feedback = str;
}
public final void setPt_input_label$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_input_label = str;
}
public final void setPt_large_icon$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_large_icon = str;
}
public final void setPt_manual_carousel_type$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_manual_carousel_type = str;
}
public final void setPt_meta_clr$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_meta_clr = str;
}
public final void setPt_msg$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_msg = str;
}
public final void setPt_msg_clr$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_msg_clr = str;
}
public final void setPt_msg_summary$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_msg_summary = str;
}
public final void setPt_product_display_action$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_product_display_action = str;
}
public final void setPt_product_display_action_clr$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_product_display_action_clr = str;
}
public final void setPt_product_display_action_text_clr$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_product_display_action_text_clr = str;
}
public final void setPt_product_display_linear$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_product_display_linear = str;
}
public final void setPt_rating_default_dl$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_rating_default_dl = str;
}
public final void setPt_small_icon$clevertap_pushtemplates_release(@Nullable Bitmap bitmap) {
this.pt_small_icon = bitmap;
}
public final void setPt_small_icon_clr$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_small_icon_clr = str;
}
public final void setPt_small_view$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_small_view = str;
}
public final void setPt_subtitle$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_subtitle = str;
}
public final void setPt_timer_end(int i) {
this.pt_timer_end = i;
}
public final void setPt_timer_threshold(int i) {
this.pt_timer_threshold = i;
}
public final void setPt_title$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_title = str;
}
public final void setPt_title_clr$clevertap_pushtemplates_release(@Nullable String str) {
this.pt_title_clr = str;
}
@Override
public void setSmallIcon(int smallIcon, @NotNull Context context) {
Intrinsics.checkNotNullParameter(context, "context");
this.smallIcon = smallIcon;
try {
this.pt_small_icon = Utils.setBitMapColour(context, smallIcon, this.pt_small_icon_clr);
} catch (NullPointerException unused) {
PTLog.debug("NPE while setting small icon color");
}
}
public final void setSmallIcon$clevertap_pushtemplates_release(int i) {
this.smallIcon = i;
}
public final void setSmallTextList$clevertap_pushtemplates_release(@Nullable ArrayList<String> arrayList) {
this.smallTextList = arrayList;
}
@Override
@NotNull
public NotificationCompat.Builder setSound(@NotNull Context context, @NotNull Bundle extras, @NotNull NotificationCompat.Builder nb, @NotNull CleverTapInstanceConfig config) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(extras, "extras");
Intrinsics.checkNotNullParameter(nb, "nb");
Intrinsics.checkNotNullParameter(config, Constants.KEY_CONFIG);
try {
if (extras.containsKey(Constants.WZRK_SOUND)) {
Object obj = extras.get(Constants.WZRK_SOUND);
Uri uri = null;
if ((obj instanceof Boolean) && ((Boolean) obj).booleanValue()) {
uri = RingtoneManager.getDefaultUri(2);
} else if (obj instanceof String) {
if (Intrinsics.areEqual(obj, "true")) {
uri = RingtoneManager.getDefaultUri(2);
} else {
if (!(((CharSequence) obj).length() == 0)) {
if (StringsKt.contains$default((CharSequence) obj, ".mp3", false, 2, (Object) null) || StringsKt.contains$default((CharSequence) obj, ".ogg", false, 2, (Object) null) || StringsKt.contains$default((CharSequence) obj, ".wav", false, 2, (Object) null)) {
obj = ((String) obj).substring(0, ((String) obj).length() - 4);
Intrinsics.checkNotNullExpressionValue(obj, "this as java.lang.String…ing(startIndex, endIndex)");
}
uri = Uri.parse("android.resource://" + context.getPackageName() + "/raw/" + obj);
}
}
}
if (uri != null) {
nb.setSound(uri);
}
}
} catch (Throwable th) {
config.getLogger().debug(config.getAccountId(), "Could not process sound parameter", th);
}
return nb;
}
private TemplateRenderer(Context context, Bundle bundle, CleverTapInstanceConfig cleverTapInstanceConfig) {
this.notificationId = -1;
setUp(context, bundle, cleverTapInstanceConfig);
}
}