Skip to content

Releases

0.8.0

Choose a tag to compare

@lucalooz lucalooz released this 23 Nov 17:06

Breaking Changes

Commands

  • Dispatch.getCommands() now returns normalized command names: trimmed of whitespace and lowercased, which is how commands are matched when executed. For example, [" LogEvent ", "other"] now gives ["logevent", "other"]. Code that compares the returned names with their original casing or whitespace must compare against the normalized form instead. The payload's command_name is unchanged, and Commands registered with any casing still run.

Rules

  • A rule group (and, or, not) with no children this SDK can convert, for example an empty group or one whose conditions all use unknown operators, is now treated as absent and dropped from its parent group, as in the Swift SDK. Review local and remote settings for such groups and remove or fix them:
    • In a load rule, an absent rule now blocks the modules that use it: their dispatchers receive no events and their collectors add no data, and a LoadRules warning is logged for each event. An empty and used to allow everything.
    • In a transformation condition, an absent condition now applies the transformation to every dispatch in its scope. An or with only unknown operators used to never apply.
    • Nested groups change their parent's result too. For example, and(x, or[<unknown operators>]) used to never match and now matches whenever x does.
    • A module whose rules setting is absent isn't restricted.
    • A not group used to make settings fail to load instead (see Fixes).

Additions

Data Model

  • JsonPathConvertible<TRoot> is implemented by types that can be converted to a JsonPath whose first component is a TRoot. JsonPath implements it by returning itself, and JsonObjectPathConvertible extends it with TRoot set to JsonPath.Component.Key, through a default asJsonPath(). An implementation that already declares its own asJsonPath() must mark it override, or rename it if it returns something else.
  • Failable extraction helpers on DataObject (com.tealium.prism.core.api.data, FailableExtractionUtils from Java) read a value by path and report what went wrong. Every helper takes the path as a JsonPathConvertible<JsonPath.Component.Key>, so it accepts both a type implementing JsonObjectPathConvertible and a JsonObjectPath built at runtime, such as JsonPath["parameters"].key(name) with name read from the payload. A list-rooted path (JsonListPath) or the untyped result of JsonPath.parse is rejected at compile time; JsonPath.parseJsonObjectPath gives an accepted one.
    • extract and extractDataObject never throw; they return null when the value is absent or can't be converted.
    • optional and optionalDataObject return null when the value is absent or an explicit null, and throw TypeMismatch on a wrong type.
    • require, requireDataObject and requireNonBlank throw Missing when the value is absent or an explicit null, and TypeMismatch on a wrong type. requireNonBlank also throws Empty for a blank value.
    • requireDataItem throws Missing only when the path is absent. An explicit null is returned as DataItem.NULL, so "set to null" can be told apart from "absent".
    • requireOneOf and optionalOneOf map a text to one of the given values, matching the trimmed text ignoring case, and throw InvalidValue for a text that matches none of them. For an absent, null or blank text, optionalOneOf returns null, while requireOneOf throws Missing or Empty.
    • The require and optional forms that infer the expected type name from their type argument are Kotlin-only. From Java, call the overloads that take an expectedType, the type name used in TypeMismatch messages.
  • ExtractionException, a sealed class with Missing, TypeMismatch, InvalidValue and Empty, is what the helpers throw. Its key is the rendered path. The messages never include the received value.

Commands

  • CommandException.invalidPayload(ExtractionException) reports a payload parameter that couldn't be read. Its message is the cause's message.
  • A Command.synchronous block can call the extraction helpers directly: an ExtractionException it throws reaches the dispatcher as CommandException.invalidPayload.
  • Command.synchronous(commandName: CommandName, block) overload, alongside the one taking a String.
  • CommandException.noValidParameters(expected) lists the expected parameters in its message. The no-argument form is still available.

Rules

  • InvalidRegexException, a new OperatorFailedException subclass, reports a regular_expression filter that isn't a valid regular expression (see Fixes). Code that catches OperatorFailedException or ConditionEvaluationException is unaffected.

PubSub

  • Observable.debounce(delay: TimeFrame, scheduler) emits the latest value once no other value has arrived for delay, and Observable.delay(delay: TimeFrame, scheduler) emits each value after delay. With a delay of zero or less, both behave like observeOn(scheduler). They match the operators of the same name in the Swift SDK, which take the delay in milliseconds.

Deprecations

Commands

  • CommandException.missingParameter, invalidParameterType, emptyParameter and emptyArray are deprecated. Use CommandException.invalidPayload(…) with the matching ExtractionException (Missing, TypeMismatch or Empty) instead, or throw the ExtractionException from the command. The deprecated factories keep their 0.7.0 behaviour and messages, so command-based integrations (using CommandDispatcher) built against 0.7.0 keep working.

PubSub

  • Observable.resubscribingWhile is deprecated, with no replacement. The SDK no longer uses it, and it has known issues: a source that emits synchronously on subscription resubscribes recursively and can overflow the stack.

Improvements

Commands

  • Command failure messages changed. Only the CommandDispatcher's log shows them:
    • A failure that is neither a CommandException nor an ExtractionException is wrapped in CommandException.unknown, with the original exception as its cause.
    • CommandException.unknown(cause) has the message "Command failed due to error: …", using the cause's message, or its class name when it has none. It used to be the cause's message alone, which could be null.
    • CommandException.noValidParameters() says "No valid parameter found." (it was "No valid parameters found"), matching the Swift SDK.
    • Command logs and commandNotFound errors use the normalized command name.

Dispatch

  • A batch handed to a Dispatcher now holds at most 50 events, even when dispatchLimit is higher, matching the Swift SDK. A dispatchLimit below 1 is treated as 1. No code change is needed: a custom dispatcher with a higher dispatchLimit receives more, smaller batches. No built-in dispatcher is affected.
  • A queue flush, which bypasses flushable barriers such as batching, now follows the Swift SDK's timing. A flush happens on launch, on each application status change and on flushEventQueue(), once per dispatcher.
    • It starts about 200 ms after the trigger, instead of immediately.
    • It ends once no events have been pending for 200 ms, or 5 s after the trigger at the latest. It used to last until the pending count reached zero, however long that took.
    • No action is needed. Events flushed by flushEventQueue() leave about 200 ms later, and events still pending when a flush ends are held by the flushable barriers again, such as batching.

Transformations

  • Transformer.applyTransformation's completion may now be called from any thread. The rest of the chain resumes on the Tealium thread, so later transformers and dispatchers are still called there. A transformer that works on other threads must return a Disposable that is safe to use from both the Tealium thread and its own.
  • A transformation in progress is now cancelled when the dispatch loop stops, for example on shutdown(): the SDK disposes the Disposable returned by the transformer. The SDK also disposes it once the transformation has completed; as the contract already requires, that must have no effect.

Modules (custom module API)

  • The KDoc now states the threading contract that custom modules already had to follow: modules are created and called on the Tealium thread, and DataStore, DataStore.Editor and ModuleStoreProvider aren't thread-safe and must be used only on the Tealium thread. DataStore change events notify subscribers synchronously on the thread that made the change.

Persistence

  • Database corruption is now logged more completely. A corruption of the in-memory database the SDK falls back to is logged at error level, on Android 8.1 (API 27) and later. Corruption messages say whether the file was deleted.

Fixes

Dispatch

  • A batch could be left marked as in flight until the app was relaunched, never sent and never released, when dequeuing it changed the barrier state, typically by closing the batching barrier. In a related case, while dispatching was starting up, events kept being sent after a barrier had closed. A dequeued batch is now always handed to its dispatcher, and nothing more is dequeued once a barrier closes.
  • A dispatchLimit of 0 caused a StackOverflowError, and a negative one dequeued the whole queue at once. Draining a long backlog with a small dispatchLimit also nested deeply on the stack. A dispatchLimit below 1 is now treated as 1, and a long backlog drains without deep nesting.
  • After a settings refresh or a module change, events held back by the batching barrier were sent without batching. A flush that never saw the pending count reach zero, for example because a non-flushable barrier held events back, also bypassed batching indefinitely.
  • With KEEP_FIRST_VALUE, a failure reading the stored value in the Persist Data Value transformation made track() and Lifecycle calls fail, lost events trac...
Read more

0.7.0 - General Availability

Choose a tag to compare

@lucalooz lucalooz released this 16 Oct 16:27

Breaking Changes

Context API (formerly Moments API)

  • The Moments API module is renamed to Context API, following the product rename. Regions and endpoints are unchanged.
    • Artifact: com.tealium.prism:prism-moments-api → com.tealium.prism:prism-context-api.
    • Package: com.tealium.prism.momentsapi → com.tealium.prism.contextapi.
    • Symbols: MomentsApi → ContextApi, MomentsApiRegion → ContextApiRegion, MomentsApiSettingsBuilder → ContextApiSettingsBuilder, MomentsApiConfigurationException → ContextApiConfigurationException, Modules.momentsApi(…) → Modules.contextApi(…), Modules.Types.MOMENTS_API → Modules.Types.CONTEXT_API, Tealium.momentsApi → Tealium.contextApi. EngineResponse keeps its name but moves to the new package. For Java, MomentsApiKt → ContextApiKt.
    • Settings: the module key and module_type "MomentsAPI" are now "ContextAPI", and moments_api_region / moments_api_referrer are now context_api_region / context_api_referrer. Update local and remote settings; the old keys no longer configure the module.
  • ContextApi.fetchEngineResponse now fails with ModuleNotEnabledException when the VisitorId module is disabled, since the request needs the visitor ID. A fetch still pending when the module shuts down fails with ModuleShutdownException.

Visitor ID

  • Visitor ID handling moved into a new VisitorId module (see Added).
    • Tealium.resetVisitorId() → Tealium.visitorId.regenerate().
    • Tealium.clearStoredVisitorIds() → Tealium.visitorId.eraseLocalHistory().
    • TealiumContext.visitorId is removed. Custom modules should look up VisitorIdProvider through the ModuleManager, e.g. context.moduleManager.getModuleOfType(VisitorIdProvider::class.java) { … }, and read its visitorId. It resolves to null when the VisitorId module is disabled.
  • CoreSettingsBuilder.setVisitorIdentityKey() and CoreSettings.visitorIdentityKey are removed. Configure the key on the VisitorId module instead: Modules.visitorId { it.setVisitorIdentityKey("email") }.
    • In JSON settings, move visitor_identity_key from core to modules.VisitorId.configuration.visitor_identity_key. A key left under core is ignored, which turns Visitor Switching off.

Consent

  • Consent integration isn't available in this release; it will return in a later one. In the meantime, gate consent for Prism events server-side in EventStream.
    • TealiumConfig.Builder.enableConsentIntegration(…) and TealiumConfig.cmpAdapter are no longer public.
    • CmpAdapter, ConsentDecision and ConsentConfigurationBuilder remain public but have no effect, because no adapter can be registered.
    • A consent section in local or remote settings is ignored, and an info message is logged.

Data Layer

  • DataLayer.put(DataObject) and DataLayer.put(DataObject, Expiry) are renamed to DataLayer.putAll(…), for consistency with DataStore.Editor.putAll. The parameter is now dataObject (it was data), so Kotlin callers using the named argument need to update it too. The keyed put(key, …) overloads are unchanged.

Payload

  • tealium_session_id (Dispatch.Keys.TEALIUM_SESSION_ID, Session.sessionId) is now the session start time in milliseconds instead of seconds, consistent with Tealium's other SDKs. A session already in progress when the app updates keeps its seconds-based id until it ends. Update any server-side rules, enrichments or reports that assume seconds.

Mappings

  • Dispatcher mappings are now applied on top of the full event payload instead of building a new payload from scratch. Unmapped keys pass through unchanged, and a mapped destination replaces the existing value there.
    • To remove unwanted keys before they reach a dispatcher, use a dispatcher-scoped transformation (these run before mappings).
  • Mappings.keep(…) and CommandMappingsBuilder.keep(…) are removed, since they are now redundant. Delete the calls. JSON settings are not affected.
  • Mapped command_name values are the exception to "replace": both constant and variable mappings are appended to any commands already in the payload (lists are flattened one level). Previously, multiple constant mappings to any destination accumulated into a list; for every other destination the last one now wins.

Modules (custom module API)

  • ModuleManager.modules is removed. Use observeModules(Module::class.java), or the class or interface you actually need.
  • The synchronous ModuleManager.getModuleOfType(Class<T>): T? is removed. Use getModuleOfType(clazz) { module -> … } or observeModule(clazz).
  • ModuleManager.observeModule(Class<T>, transform) is removed. Use observeModule(clazz).flatMapLatest { … }.
  • ModuleManager.getModuleOfType(Class<T>, Callback<T?>) now returns a Disposable, so a pending lookup can be cancelled. Callers are source-compatible but must recompile.
  • TealiumContext can no longer be constructed directly.
  • New abstract members Tealium.visitorId and ModuleManager.observeModules only affect custom implementations of these interfaces, such as hand-written test fakes.
  • ModuleProxy has a new member, observeModuleResult (see Added). Only custom ModuleProxy implementations are affected; proxies from createModuleProxy aren't.

Transformations

  • Transformer.applyTransformation now takes a Callback<Dispatch?> instead of a (Dispatch?) -> Unit and returns a Disposable. Custom Transformers must:

    • call completion.onComplete(…) instead of invoking completion(…);
    • return a Disposable, or Disposables.disposed() if there is nothing to cancel (e.g. synchronous transformers).

    Kotlin callers passing a trailing lambda compile unchanged. The KDoc now documents the contract: completion is called exactly once on the Tealium thread (possibly synchronously), unless the returned Disposable has been disposed.

JavaScript Transformer

  • JavaScriptEngineAdapter.evaluateJavaScript(js): Observable<TealiumResult<DataItem>> is now evaluateJavaScript(js, completion: Callback<TealiumResult<DataItem>>): Disposable. Custom engine adapters must deliver exactly one result through completion.onComplete(…) and return Disposables.disposed() if there is nothing to cancel. The bundled Rhino adapter (jstransformer-rhino) is already updated.

Networking

  • context.network.networkClient and networkHelper now make a single attempt per request. Previously, while the device was offline, a failed request waited for connectivity and was retried. Custom modules that need retries derive their own client:
    context.network.networkClient
        .newClient(listOf(
            RequestInterceptors.retryWithBackoff(),
            RequestInterceptors.retryWhenConnected(context.network)
        ))
        .makeNetworkHelper()
  • NetworkClient is now immutable: addInterceptor and removeInterceptor are removed in favour of newClient(additionalInterceptors, maxRetryCount). Custom NetworkClient implementations must implement newClient.
  • Interceptor is renamed to RequestInterceptor.
    • didComplete(request, result) → onAttemptResult(request, retryCount, result). It is called after every attempt and has a default no-op implementation.
    • shouldRetry(request, result, retryCount) → shouldRetry(request, consecutiveRetryCount, result). Note the new parameter order.
  • RetryPolicy changes:
    • RetryPolicy.RetryAfterDelay(interval: Long) → RetryPolicy.AfterDelay(delay: TimeFrame).
    • RetryPolicy.RetryAfterEvent<T>(event) → RetryPolicy.AfterEvent(event: Observable<*>).
    • RetryPolicy.shouldRetry() is removed; check policy !is RetryPolicy.DoNotRetry instead.
  • NetworkException.Non200Exception.isRetryable() is now true only for 408, 429, 500, 502, 503 and 504. It used to be true for 429 and any status from 500 to 600, so 501 and 505+ are no longer retryable, while 408 now is.

Java Interop

  • LenientConverters.DOUBLE, INT, LONG, BOOLEAN and STRING are now @JvmField. Java callers should change LenientConverters.INSTANCE.getDOUBLE() to LenientConverters.DOUBLE.
  • Scheduler.MAIN and Scheduler.SYNCHRONOUS are now @JvmField. Java callers should change Scheduler.getMAIN() to Scheduler.MAIN.
  • Disposables.subscription, composite and disposed, and Barriers.connectivity and batching, are now @JvmStatic. Java callers should change Disposables.INSTANCE.disposed() to Disposables.disposed(). Existing Java source still compiles (with a warning), but binaries compiled against 0.6.0 must be recompiled.
  • Renamed Java file facades: DispatchCommandsKt → DispatchCommandUtils, and ConversionsKt → ConversionUtils.
  • These parameters now use SDK functional interfaces instead of Kotlin function types, so Java callers no longer need to return Unit.INSTANCE. Kotlin lambdas compile unchanged.
    • Observable.forEach: Consumer<T>
    • Command.synchronous: Consumer<DataObject>
    • Disposables.subscription: Runnable?
    • ModuleProxy.executeAsyncModuleTask: BiConsumer<T, Callback<TealiumResult<R>>>
  • Libraries and apps compiled against 0.6.0 that use any of the symbols above, from Kotlin or Java, must be recompiled.

Added

Visitor ID

  • Tealium.visitorId returns a VisitorIdManager, with current(), regenerate() and eraseLocalHistory().
    • It is also a Subscribable<TealiumResult<String>>: it emits the current visitor ID, then every change.
    • While the VisitorId module is disabled it emits ModuleNotEnabledException failures, then resumes once the module is re-enabled.
    • As before, if a new visitor ID can't be stored, regenerate(), eraseLocalHistory() and automatic identity switches still use it for the rest of the session. The call fails with PersistenceException, and the previous ID comes back on the next launch.
  • New VisitorId module (`Modules....
Read more

0.6.0

0.6.0 Pre-release
Pre-release

Choose a tag to compare

@lucalooz lucalooz released this 01 Sep 09:31
26ec619

Breaking Changes

Core API

  • Tealium.deeplink renamed to Tealium.deepLink, for consistency with the rest of the API.
  • TemplateProcessor.process(String, DataObject) is now @JvmStatic. Kotlin callers are unaffected. Java callers should change TemplateProcessor.INSTANCE.process(…) to TemplateProcessor.process(…).

Logging

  • LogLevel.Converter.convert returns LogLevel? now, instead of falling back to ERROR for anything it couldn't parse. This only breaks you if you call the converter yourself and treat its result as non-null. Log levels set through settings behave as before, since that path already applied its own ERROR default.

Networking

  • NetworkHelper's POST methods no longer gzip the payload; they always send it uncompressed.
    • If you need compression, build the request with HttpRequest.post(...).gzip(true) and send it through NetworkClient.

Consent

  • CmpAdapter implementations now have a documented threading contract: emit consent decisions from a single thread, and apply subscribeOn to the returned Observable with a scheduler backed by that same thread. Emitting from anywhere else races.

Added

New Modules

  • com.tealium.prism:prism-core-ktx module — Kotlin coroutine interop for core's pubsub primitives.
    • Subscribable.asFlow() and SubscribableState.asStateFlow(scope)
    • Single<TealiumResult<T>>.await() and awaitResult()

Core API

  • TemplateProcessor.compile(String) returns a reusable Template with its {{ }} substitutions already resolved, which is worth using if you render the same template more than once. Template.substitutions lists what it found.
  • ModuleProxy.observeModules observes all instances of a multi-instance module together, reacting whenever that set changes.
  • Dispatch.getCommands is now public. It returns the command names carried on a dispatch's payload, for Dispatchers that need to act on specific commands.

Networking

  • NetworkException now carries the HttpResponse that preceded the failure, where there was one, so you can inspect the status and headers, plus the body if it could be read. Available on Non200Exception, NetworkIOException and UnexpectedException.
  • NetworkClient.sendRequest has a new overload taking an unbuilt HttpRequest.Builder. An invalid URL arrives as a Failure in completion instead of throwing MalformedURLException.

Settings

  • log_level now accepts "none" as an alias for "silent".

Changed

Networking

  • Response headers and body are now included in TRACE logging, for both successful and failed requests.
  • A failure while reading a response body now reports the status and headers that arrived before it failed, rather than just the IOException.

PubSub

  • Documented the concurrency contract for the Observable returned by subscribeOn: nothing but observeOn can be chained onto it.

Build

  • Build tooling upgraded — AGP 8.6.1 to 8.13.2, compileSdk and targetSdk 35 to 36, and androidx.annotation raised to 1.10.0.
  • Kotlin Gradle Plugin is now 2.2.21. The language version stays at 2.0, so this doesn't change what Kotlin version you need.

Fixed

Dispatch

  • Dispatches could be sent more than once. When a Dispatcher completed its dispatches in more than one batch, only the first batch was removed from the queue; the rest stayed on disk and went out again on the next app launch, unless they expired or got trimmed first.

PubSub

  • After disposal, subscribeOn and observeOn could still deliver values or completion, and subscribeOn could still subscribe to its source.
  • ReplaySubject.last() read the cache unlocked, so a concurrent emission could corrupt it.

Networking

  • gzip(false) was ignored and the request got compressed anyway. Omitting the call was the only way to send uncompressed.
  • Network requests now have 30 second connect and read timeouts. They previously had none, so a request could hang indefinitely.
  • If you added your own Interceptor, the completion callback for a network request could be called more than once.

Logging

  • An enforced log level that couldn't be parsed pinned the logger to ERROR for the whole session and ignored the configured level. It's treated as no override now.

Full Changelog: 0.5.0...0.6.0

0.5.0

0.5.0 Pre-release
Pre-release

Choose a tag to compare

@jameskeith jameskeith released this 01 Jun 09:24
b81131a

Breaking Changes

Settings

  • BarrierScope and TransformationScope dispatcher value renamed to plural form and now accepts an array of Dispatcher IDs.
    • BarrierScope.dispatchers(listOf("Dispatcher1", "Dispatcher2"))
    • TransformationScope.dispatchers(listOf("Dispatcher1", "Dispatcher2"))
  • BarrierSettings.scope and TransformationSettings.scope are now singular (one scope per setting, not a collection).
  • TealiumConfig.addTransformation() now accepts a TransformationSettingsBuilder directly instead of a built TransformationSettings. Remove any .build() call at the call site.

PubSub

  • Observer now requires both onNext and onComplete to be implemented. Observers that have been disposed will no longer receive events.
  • Subscribable.subscribe and Observable.subscribe now accept either an Observer to handle both onNext and onComplete or a Consumer-only overload is also available for cases where completion does not need to be handled.
  • Unused operators Observable.buffered() and Observable.share() have been removed.

Added

New Modules

  • com.tealium.prism:prism-extensions module, including:
    • Lowercase — converts string values in the dispatch payload to lowercase. Configurable to apply to individual variables, a defined set, or all variables.
    • SetDataValues — copies values between keys or sets constant values in the dispatch payload.
    • PersistDataValue — stores a value from the dispatch payload (or a constant) into the data layer with a configurable expiry and update policy.
  • com.tealium.prism:prism-js-transformer and com.tealium.prism:prism-js-transformer-rhino modules — perform user-defined JavaScript-powered transformations. The JavaScriptEngineAdapter interface allows custom engine implementations; a Mozilla Rhino adapter is provided out of the box. note the Rhino implementation is supported from API 23+ but requires core library desugaring to be enabled in the app.

Settings

  • TransformationSettings gains an order: Int property (default Int.MAX_VALUE); lower values run first when multiple transformations share the same scope.

Commands

  • Command infrastructure, laying the foundation for future modules that are commanded by tracking events (previously known as RemoteCommands). Includes: Command, SyncCommand, CommandDispatcher, CommandName, CommandMappingsBuilder, and CommandException.

Fixed

  • Fixed Observable operators and subjects delivering events to observers that had already been disposed.
  • Fixed incorrect use of Kotlin's enum .name property in mapCommand() that could produce unexpected behaviour when mapping commands.

Full Changelog: 0.4.0...0.5.0

0.4.0

0.4.0 Pre-release
Pre-release

Choose a tag to compare

@jameskeith jameskeith released this 27 Feb 17:27
dcaf5bc

Breaking Changes

  • Changed barrier configuration methods to support their programmatic configuration.
  • DispatcherSettingsBuilder now requires a Mappings supplier to better support custom mappings methods, with Mappings.default() available to modules that don't need any custom mappings methods.
    • Some Mappings method names updated for clarity
  • Changes to the Module/Barrier Metadata prefixes required by the discovery service. Prefixes now correctly match the packages:
    • com.tealium.prism.core.api.barriers and com.tealium.prism.core.api.modules

Added

  • Bill of Materials (BoM) to enable importing a single version number that will match Github Tags
  • Added programmatic Barrier configuration.
  • Some utility LenientConverters that can be used in Dispatchers to extract data from the payload that could be either of the supported primitive types.
  • Tealium.onReady that accepts a callback, which can be used to execute multiple Tealium operations in a single block.

Changed

  • Mappings now support mapping constants of any supported DataItem, instead of just Strings.

Full Changelog: 0.3.0...0.4.0

Tealium Prism 0.3.0

Tealium Prism 0.3.0 Pre-release
Pre-release

Choose a tag to compare

@jameskeith jameskeith released this 22 Jan 16:47

First Early Access Release

Tealium Prism for Kotlin is now available for early access under the Maven group ID com.tealium.prism from Tealium's Maven repository.

prism-core

The core module defines the common features required for setting up the Tealium Prism SDK. It contains several of the most commonly used module implementations for enriching events and distributing them to other Tealium services.

Features

  • Customizable – fully modular, with features that can be remotely configured, enabled, or disabled
  • Event Tracking – reliably distributes events to all configured dispatchers
  • Consent Management – supports external consent signals and restrictive distribution per dispatcher
  • LoadRules – only send relevant events to the appropriate dispatcher
  • Collectors – enrich events with common data points
  • Transformations – mutate event data, and can optionally drop events
  • Barriers – provide fine-grained control over the flow of events to individual dispatchers

Included Modules

  • AppData – enriches events with data about the application
  • Collect – distributes events to Tealium's server-side platform for further processing
  • ConnectivityData – enriches events with connectivity status data
  • DataLayer – stores user data that should be added to all tracked events
  • DeepLink – enriches events with data provided by deep links
  • DeviceData – enriches events with data about the device
  • TealiumData – enriches events with data specific to the Tealium account and library configuration
  • TimeData – enriches events with time data, such as event timestamps and time zones
  • Trace – manages a Trace session to easily debug the library

prism-lifecycle

The lifecycle module provides application lifecycle event tracking. It can automatically track launch, wake, and sleep events, which coincide with the application starting, returning to the foreground, and going to the background.

Additional lifecycle metrics are captured by default to help build a comprehensive picture of application usage.

prism-moments-api

The Moments API module provides support for real-time visitor personalization using Tealium's server-side Moments API technology.

Full Changelog: https://github.com/Tealium/tealium-prism-kotlin/commits/0.3.0