All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.com.wisetrack.sdk.Constants.kt Maven / Gradle / Ivy

There is a newer version: 1.5.8-alpha
Show newest version
package com.wisetrack.sdk

/**
@author hamed (@hamed-hsb)
 * @since 04th October 2021
 */


class Constants {
    companion object {
        var ONE_SECOND: Long = 1000
        var ONE_MINUTE: Long = 60 * ONE_SECOND
        var THIRTY_MINUTES: Long = 30 * ONE_MINUTE
        var ONE_HOUR: Long = 2 * THIRTY_MINUTES

        var MAX_INSTALL_REFERRER_RETRIES = 2

        var ACTIVITY_STATE_FILENAME = "WiseTrackIoActivityState"
        var ATTRIBUTION_FILENAME = "WiseTrackAttribution"
        var SESSION_CALLBACK_PARAMETERS_FILENAME = "WiseTrackSessionCallbackParameters"
        var SESSION_PARTNER_PARAMETERS_FILENAME = "WiseTrackSessionPartnerParameters"

        var ENCODING = "UTF-8"
        var MALFORMED = "malformed"
        var REFTAG = "reftag"
        var INSTALL_REFERRER = "install_referrer"

        var SHA256 = "SHA-256"


        //android_flutter
        //android_native
        //android_react_native
        //android_unity
        var INITIATED_BY = "android_native"

        const val HTTP_LOCKED_CLIENT = 423
        const val LOGTAG = "WiseTrack"

        var CLIENT_SDK = "android"+BuildConfig.SDK_VERSION
        var THREAD_PREFIX = "WiseTrack-"

        var REFERRER_API_OTHER = "other"
        var REFERRER_API_GOOGLE = "google"
        var REFERRER_API_HUAWEI_APP_GALLERY = "huawei_app_gallery"
        var DEEPLINK = "deeplink"
        var PUSH = "push"


        var PREINSTALL = "preinstall"
        var SYSTEM_PROPERTIES = "system_properties"
        var SYSTEM_PROPERTIES_REFLECTION = "system_properties_reflection"
        var SYSTEM_PROPERTIES_PATH = "system_properties_path"
        var SYSTEM_PROPERTIES_PATH_REFLECTION = "system_properties_path_reflection"
        var CONTENT_PROVIDER = "content_provider"
        var CONTENT_PROVIDER_INTENT_ACTION = "content_provider_intent_action"
        var CONTENT_PROVIDER_NO_PERMISSION = "content_provider_no_permission"
        var FILE_SYSTEM = "file_system"
        var SYSTEM_INSTALLER_REFERRER = "system_installer_referrer"

        var WISETRACK_PREINSTALL_SYSTEM_PROPERTY_PREFIX = "wisetrack.preinstall."
        var WISETRACK_PREINSTALL_SYSTEM_PROPERTY_PATH = "wisetrack.preinstall.path"
        var WISETRACK_PREINSTALL_CONTENT_URI_AUTHORITY = "com.wisetrack.preinstall"
        var WISETRACK_PREINSTALL_CONTENT_URI_PATH = "trackers"
        var WISETRACK_PREINSTALL_CONTENT_PROVIDER_INTENT_ACTION = "com.attribution.REFERRAL_PROVIDER"
        var WISETRACK_PREINSTALL_FILE_SYSTEM_PATH = "/data/local/tmp/wisetrack.preinstall"
        var EXTRA_SYSTEM_INSTALLER_REFERRER = "com.attribution.EXTRA_SYSTEM_INSTALLER_REFERRER"

        //var BASE_URL = "http://185.231.59.242/api/v1/test" // "http://185.231.59.242" // "https://app.wisetrack.com"
        var CONFIG_BASE_URL = "https://config.wisetrack.io"
        var BASE_URL = ""
        var END_POINT_EVENT = ""
        var END_POINT_SESSION = ""
        var END_POINT_SDK_CLICK = ""
        var END_POINT_SDK_INFO = ""
        var END_POINT_ATTRIBUTION = ""
        var END_POINT_PACKAGE_INFO = ""
        var END_POINT_PAGE = ""
        var END_POINT_APP_SETTINGS = ""
        var END_POINT_CONFIG = ""

        var SDK_ENABLED = false
        var SDK_SECURE = false
        var SDK_UPDATE = false
        var FORCE_UPDATE = false
        var SENTRY_ENABLED = false

        // CONFIG_SESSION_INTERVAL: Defines the interval for session management.
        // A value of -1 indicates that sessions are disabled or set to no limit.
        var CONFIG_SESSION_INTERVAL = -1L

        // ENVIRONMENT: Holds the current environment setting (e.g., development, stage, production).
        // Currently, it's uninitialized and should be set accordingly.
        var ENVIRONMENT = ""



        var GDPR_URL = "https://gdpr.wisetrack.com"
        var SUBSCRIPTION_URL = "https://subscription.wisetrack.com"

        var MINIMAL_ERROR_STATUS_CODE = 400
        var REFERRER = "referrer"
        var REFERRER_API_HUAWEI_ADS = "huawei_ads"

        var CALLBACK_PARAMETERS = "callback_params"
        var PARTNER_PARAMETERS = "partner_params"

        var FB_AUTH_REGEX = "^(fb|vk)[0-9]{5,}[^:]*://authorize.*access_token=.*"

        var PREFERENCES_NAME = "preferences"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy