unilitix 3.0.0
unilitix: ^3.0.0 copied to clipboard
African-first mobile UX analytics for Flutter on Android and iOS: sessions, screens, events, crashes and masked session replay, on the native Unilitix SDKs.
3.0.0 #
The Flutter SDK is now a thin wrapper over the native Unilitix SDKs
(Android com.unilitix:unilitix-android 1.11.2, iOS UnilitixCore 0.8.0),
like Sentry's and Datadog's Flutter SDKs. Until 2.7.4 the SDK re-implemented
the engine in Dart (sessions, queue, uploads, retry), so Flutter apps
behaved slightly differently from native ones (the 2.x rows of the contract's
DIVERGENCES.md). Now there is one engine per platform and a Flutter app
behaves exactly like a native app. Upgrading: see MIGRATION.md.
Architecture #
- Native: sessions and session timeout, anonymous/user identity and
/v1/ingest/identify, consent (persisted natively), the offline queue, batching, upload, retry and backoff (contract 1.4.0 retry table, including 408 retryable and 402 clamping), property normalisation, network type (5G, ETHERNET, ...), device and app context, native crashes (JVM, NDK signals, NSException, Mach/POSIX signals) with app-frame grouping, Android ANRs, iOS app hangs, iOS taps, replay sampling and storage. - Dart: Dart/Flutter error capture (
FlutterError.onError,PlatformDispatcher.onError,captureException) sent to the nativerecordExternalErrorwithplatform: "dart"and the contract fingerprint; route names fromUnilitixObserver; Android taps and rage taps (withUnilitixPrivatepositions hidden); widget-tree masking; wireframe snapshots (sliced walk,addExternalSnapshot); screenshot scheduling and masks (frames drawn natively and handed tocaptureExternalScreenshotwithout crossing to Dart); power-outage contribution (Flutter-only feature, unchanged). - The plugin reports itself to the native SDK with
setWrapper("flutter", "3.0.0")and turns on external screen capture (setExternalScreenCapture(true)) before the native init. - Calls made before
initcompletes are buffered in Dart (200, oldest dropped) and sent in order right after the native init (contractpreInitBufferSize); 2.x dropped them.
Breaking changes #
- Web and desktop are no longer supported. The web plugin is a stub: the
SDK compiles but does nothing (a debug warning at
init). - New anonymous id on upgrade; user id forgotten. Identity now lives in
the native SDK; 2.x's Dart-stored ids are not carried over. Call
identify()again after login. The consent decision is carried over (a 2.x denial stays a denial). - Removed:
UnilitixMaterialAppandUnilitixApp(deprecated since 2.0; useMaterialApp(navigatorObservers: [Unilitix.observer], builder: ... UnilitixWidget)), the publicUnilitixEvent/EventTypesclasses, andSCROLLevents (they were only sent byUnilitixMaterialApp). - An uncaught Dart error (
PlatformDispatcher.onError) is now aCRASHwithfatal: true(2.x:fatal: false); it still marks the session crashed, as before. addBreadcrumb(data:)is appended to the message as JSON (the native breadcrumb has no data field).- Screenshots on Android 5–7.1 (API 21–25) are no longer taken (the Dart PNG fallback is gone); wireframes still are.
- iOS taps are recorded by UnilitixCore (it sees Flutter's touches), on the
route names from
UnilitixObserver; a tap insideUnilitixPrivatekeeps its position on iOS (Android hides it as before). - Options are applied (and clamped) by the native SDK.
appHangTimeoutMsis UnilitixCore's;uploadScreenshotsOnWifiOnly,maxOfflineEventsand the other delivery options mean what they mean natively. - Dependencies:
sqfliteremoved (andsqflite_common_ffifrom dev dependencies).httpstays for the symbol upload CLI and the iOS power-outage upload,shared_preferencesfor power-outage state and the consent carry-over. Android depends oncom.unilitix:unilitix-android(Maven Central).
Added #
Unilitix.recordException(type, message, {stackTrace, fatal}): report an error described by its parts (same as the native SDKs'recordException).
Removed (moved to the native SDKs) #
- Dart engine: flush scheduler, SQLite event database and write-ahead log, API client, retry policy, session manager, identity, network monitor, device info, performance monitor, Africa context.
- Android plugin: the JVM crash handler, the NDK signal handler
(
libunilitix-flutter-native.so,android/src/main/cpp) and the exit-info/ANR reader; the Android SDK reports those once, so nothing is double-reported. iOS plugin: its ownCrashFileinstall and app-hang monitor (UnilitixCore's are used).
Size #
- The size gate baseline (
.github/size-baseline.txt) was reset to 0: the Dart engine and sqflite are gone, the native Android SDK and its dependencies came in. It is re-measured on the first green 3.0.0 build.
Release order #
com.unilitix:unilitix-android:1.11.2on Maven Central.- UnilitixCore 0.8.0 vendored with
scripts/sync-ios-core.sh(the script now vendors the public facade too). - Tag
v3.0.0here.
2.7.4 #
Performance and safety fixes for host apps, from a go-live audit. No API
changes; setConsent now also works before init.
Changed #
- iOS core updated to UnilitixCore 0.7.2 (from 0.7.0): events with NaN or
infinite numbers no longer block uploads, subclassed WKWebViews are masked
in screenshots, saved data is loaded off the main thread at launch, the API
connection ignores cookies, and the privacy manifest marks collected data as
linked to the user (it is, once you call
identify). Update your App Store privacy answers to "linked" if they said otherwise.
Fixed #
- Wireframe capture no longer stalls the UI. The once-a-second walk of the widget tree ran on the UI thread in large chunks. It now runs in slices of at most 4 ms and gives the frame back in between, skips the walk entirely when nothing has been drawn since the last one, and starts over if the screen changes halfway. Widget types are looked up once per type instead of once per widget.
- No more giant wireframe uploads after time offline. Wireframes waiting to be sent are capped at about 1.5 MB (oldest dropped first) and are sent in requests of at most about 200 KB or 50 wireframes. Large requests are compressed off the UI thread.
- Screenshots from earlier sessions are sent, and old ones are cleaned up. Frames left over from a session that ended offline or was killed were never uploaded and stayed on disk. They are now sent oldest first, a few at a time, and stored frames are deleted after 7 days or once they pass 30 MB.
- Screenshots are dropped if the screen moved while they were taken. Masks are checked again once the pixels are back; if any mask moved (a scroll, a page transition), the frame is thrown away instead of risking text next to its mask. Every mask is also 2 px larger.
Unilitix.init()can no longer throw or run twice. Calls made while init is running wait for it, and any failure during setup (storage, platform channels) is logged in debug and leaves the SDK switched off instead of reaching yourmain().- Consent given before
initis kept.setConsent,optOutandoptIncalled beforeinitused to be ignored; the decision is now saved immediately andinitstarts in it. - Taps inside
UnilitixPrivateareas are recorded without their position. - A 402 (plan limit reached) no longer deletes data. The SDK keeps what
it captured and pauses uploads for 15 minutes (or the server's
Retry-After) instead of dropping each batch. - Release builds stay quiet. SDK errors are printed only in debug builds
or with
debug: true. - iOS privacy manifest declares replay content (Other User Content,
linked to the user once you call
identify()). Review your App Store privacy label if you use session replay.
2.7.3 #
Crash grouping and replay privacy fixes from the 24 October 2026 audit. No API changes.
Fixed #
- Android JVM crashes group by where they happened. The plugin's JVM
crash handler now writes the SDK contract fingerprint (the exception type
plus the first JVM frames, line numbers removed), the same one the Android
SDK computes. Before, every
NullPointerExceptionin an app became one issue. Records written by older plugins are grouped the same way on the next launch. Existing JVM crash issues split once by crash site. - Platform views are always masked in replay. WebViews, maps, video
players and ads are drawn by the OS, so none of the text or image masks
could see inside them and native screenshots carried their content. Their
bounds are now painted over in every screenshot (when
maskScreenshotsis on, the default) and they appear as a masked box in wireframes. - Masking and wireframes work in
--obfuscatebuilds. Widgets were identified byruntimeTypenames, which obfuscation mangles: wireframes came out empty andmaskImagesstopped masking. Widgets are now identified with type checks. Third-party image widgets (CachedNetworkImage) are masked through theImagethey build;SvgPictureis still matched by name, so wrap SVGs that need masking in an obfuscated build inUnilitixPrivate.
2.7.2 #
Two Android and crash-rate fixes from the 24 October 2026 audit. No API changes.
Fixed #
- No crash at launch on Android 5.0–7.1 (API 21–25). Network-type changes were sent to Flutter from Android's ConnectivityThread, which Flutter rejects off the main thread. Every send is now posted to the main thread.
- Background app kills are no longer counted as crashes. The session stub that marks a session crashed if the app dies is now disarmed when the app goes to the background and re-armed when it returns to the same session, so swiping the app away or a low-memory kill no longer lowers crash-free rates. Crashes are still reported by the crash tracker as before.
2.7.1 #
Exact symbolication for native crashes, from UnilitixCore 0.7.0 and unilitix-android 1.10.0. No API changes.
Changed #
- iOS crashes carry
debugImages. UnilitixCore 0.7.0 is vendored (scripts/sync-ios-core.sh). Uncaught Objective-C exceptions record the binary images of their stack, and signal crashes (SIGSEGV, SIGABRT, …) now record a real backtrace of the crashed thread (frame-pointer walk, 64 frames) with its images, where before they had no stack. Dart passes the record'sdebugImagesthrough asmetadata.debugImages, so the API symbolicates the frames with your uploaded dSYMs. - Android NDK frames carry build IDs. unilitix-android 1.10.0's native
capture is vendored (
scripts/sync-android-native.sh): on Android 5-10 the signal handler unwinds the crashed thread and writes each frame's library, relative pc and GNU build ID; on Android 11+ the tombstone's frames are read with their build IDs. Upload the unstripped.sofiles withunilitix-clito get function, file and line.
2.7.0 #
App-hang (ANR) reporting on iOS, with UnilitixCore 0.6.0's watchdog and
stack sampler. One new option, UnilitixConfig.appHangTimeoutMs.
Added #
- iOS app hangs. With
autoTrackCrashes, the plugin watches the main (platform) thread and reports anANRevent (contract 1.3.0) when it does not respond forappHangTimeoutMs(default 2000; 0 turns it off) while the app is in the foreground. Not while a debugger is attached.- Detection is UnilitixCore's (
AppHangTracker: pings every 0.5 s, one report per hang, nothing in the background or across a suspension); the stack is the main thread's at detection (ThreadSampler, frame pointers,callStackSymbolsformat) with itsdebugImages(name, UUID, load address, arch) for symbolication.AppHangWatchdogreports to the native engine, which the plugin does not have, so the plugin runs its own small loop around those pieces (ios/Classes/UnilitixAppHangMonitor.swift) and builds the event with UnilitixCore'sEngine.appHangEvent, so a hang reads the same as one from the native iOS SDK. - Recovered hangs are sent to Dart live on a new channel,
com.unilitix/app_hang(onAppHang), and reported in the current session (current screen and breadcrumbs): messageThe main thread was blocked for 3200 ms. - Hangs the app did not survive are kept in
Application Support/unilitix_app_hang.jsonfrom the moment they are detected (duration updated about once a second) and returned byreadNativeCrashon the next launch as a"type":"ANR"record, after any native crash; Dart reports them like Android ANRs, against the session that was running, withappTerminated: true. metadata:fingerprint(contract fingerprint of typeANRover the stack, computed natively),platform,hangDurationMs,appHangTimeoutMs,appTerminated,debugImages. Timestamped when the hang began. Not a crash: the session is not marked crashed.- Exactly once: the plugin deletes its file only when Dart answers
onAppHang(after reporting, holding or dropping it); a hang Dart did not take is resent on the nextconfigureAppHang(hot restart) or read on the next launch (as recovered). Hangs of the running process are never returned byreadNativeCrash. The hang's id is used as the event id, so the server keeps one event in any case. - Per-session caps as for errors (3 per fingerprint, 50 in total). Consent: pending holds the event on the device; denied drops it, and the watchdog records nothing while consent is denied (Dart tells the plugin on every consent change).
- Dart starts detection (
configureAppHang) after reading the earlier launch's records, so this process never overwrites one not yet read.
- Detection is UnilitixCore's (
CrashTracker.anrEventFromRecordpasses a record'smetadatathrough (sodebugImagesreach the event) and, for iOS records, uses the record'sidandtimestampas the event's. Android records are unchanged.UnilitixEventtakes an optionalidandtimestamp.
Changed #
- Vendored UnilitixCore 0.4.1 → 0.6.0 (
scripts/sync-ios-core.sh): addsAppHang.swiftandThreadSampler.swift, SDK contract 1.3.0 (ANRevent type) on the Swift side. No new frameworks (ThreadSampleruses only Darwin).
2.6.0 #
ANR (app not responding) reporting on Android 11+, and SDK contract 1.3.0. No API or configuration changes.
Added #
- Android ANRs (API 30+). The
ApplicationExitInfoscan that finds native crashes now also selectsREASON_ANRexits, with the same watermark (each exit is handed out once) and at most 5 per launch (newest kept). The plugin reads the main thread out of each ANR's thread dump and returns it through the existingreadNativeCrashstream as a record with"type":"ANR"; Dart reports it as anANRevent against the session that was running, as for native crashes:exceptionTypeANR, the system's description asexceptionMessage, the main thread's stack (|property lines dropped, capped at 16 KB) asstackTrace; nofatal, notitle.metadata:fingerprint(contract fingerprint of typeANRover the main thread, computed natively;ff80a5189f547c4dfor the contract vector),platform,importance,foreground.- Not a crash: the session is not marked crashed. The ANR'd session's
stub (which says
crashed: trueuntil a session ends cleanly) has the flag cleared, unless a native crash was also attributed to it. - Consent as for native crashes: pending holds the event on the device, denied drops the record (and the watermark still moves).
- Vendored from the Unilitix Android SDK 1.9.0 by
scripts/sync-android-native.sh, which now also copiesAnrTrace.kt(dump parser, ANR metadata rules);ProcessExits.ktand the rest are refreshed to 1.9.0. CrashTracker.contractFingerprint: the contract fingerprint with every platform's frame rules (JVM, JavaScript, Apple, Dart), used for an ANR record that arrives without the plugin's fingerprint. Dart errors keep the existing Dart-frame fingerprint (unchanged grouping).
With the Unilitix Android SDK in the same app #
- ANRs follow the 2.5.0 native-crash decision: when the SDK captures crashes
(
Unilitix.nativeCrashCaptureActive()), the plugin returns no ANRs (its watermark still moves). Android SDK 1.9.0+ reports them itself. - Android SDK 1.8.x does not report ANRs, and is left to anyway: 1.8.x
and 1.9.x cannot be told apart at runtime in a minified release build (no
new public member;
BuildConfigand internal classes are removed or renamed by R8), so reporting them would mean every ANR twice with 1.9.0. Update the Android SDK to 1.9.0 to get ANRs. Without the SDK, with one older than 1.8.0, or with itsautoTrackCrashesoff, the plugin reports them.
Changed #
- SDK contract 1.3.0 (
lib/src/generated/sdk_contract.dart): event typeANR. The ingest models are unchanged. - Native records read per launch: up to 16 (was 8), for the ANRs.
Not reported #
- ANRs on Android 10 and older (no exit record), ANRs the app recovered from ("Wait"), and iOS hangs. There is no in-process watchdog.
2.5.0 #
No more double native crash reports in apps that also ship the Unilitix Android SDK. No API or configuration changes.
Fixed #
- Android, with the Unilitix Android SDK 1.8.0+ in the same app: both
captured native (NDK) crashes (two signal handlers on API 21–29, two
readers of
ApplicationExitInfoon API 30+), so one crash was reported twice. The plugin now looks for the SDK at runtime (Class.forName, no compile-time dependency) and asksUnilitix.nativeCrashCaptureActive(). When it is true the SDK alone reports native crashes, against its own session: the plugin installs no signal handler, and drops the exit records it reads (its watermark still moves, so nothing is reported late if the SDK is later removed).- SDK present but not initialized when the plugin attaches (an engine
started in
Application.onCreatebeforeUnilitix.init): the plugin decides on the next main-looper turn. - Signal records already on disk (written while the plugin was capturing) are still reported.
- Without the Android SDK, with one older than 1.8.0, or with its
autoTrackCrashesoff, the plugin captures native crashes as in 2.4.0.
- SDK present but not initialized when the plugin attaches (an engine
started in
Not changed #
- JVM uncaught exceptions and sessions are still recorded by both SDKs when an app ships both (each keeps its own sessions).
- Session replay: Flutter content is drawn by the Flutter engine into a
FlutterViewand masked by the Dart side; the Android SDK's Jetpack Compose masking (1.8.0) does not apply to it.
2.4.0 #
Native (NDK) crash capture on Android, on the implementation the Android SDK
shipped in 1.7.0 (vendored, as UnilitixCore is on iOS). A crash in C/C++
code — the Flutter engine, a plugin's native library, your own FFI code — is
reported on the next launch as a fatal CRASH against the session that was
running, as on iOS. On by default; no API or configuration changes.
Added #
- Android 11+ (API 30+): no native code. When Dart reads native crashes
at startup, the plugin reads
ActivityManager.getHistoricalProcessExitReasonsand returns exits withREASON_CRASH_NATIVEnewer than a watermark kept in the plugin's own preferences (unilitix_flutter_native_crash), at most 5 per launch (the newest). The signal comes from the tombstone (API 31+), else the exit description, else it is unknown. JVM crashes (REASON_CRASH) are not taken from here: the plugin's uncaught-exception handler already records them, with their stack.- First launch with 2.4.0: the watermark is set to now and nothing is reported, so exits from before the upgrade never arrive as a flood of stale crashes. A native crash in that first process is reported on the launch after it.
- Android 5.0–10 (API 21–29):
libunilitix-flutter-native.so. A C signal handler (SIGSEGV, SIGABRT, SIGBUS, SIGILL, SIGFPE, SIGTRAP), installed when the plugin attaches, writes one record with async-signal-safe calls only, then chains to the previous handler (debuggerd, Crashlytics, Sentry, …) so the process dies as before. Each process writes its own file infiles/unilitix_native_signals/, so a crash before Dart has read an older record never overwrites it. Not loaded on API 30+. - Same record and grouping as every Unilitix SDK.
{"platform":"android","exceptionType":"SIGNAL","signal":11,"timestamp":<ms>}plus, as on iOS, the contractfingerprint(SIGNAL:11=8f1fc15bfa06be00; an unknown signal is keyedSIGNAL) and the messageFatal signal 11 (SIGSEGV), so the event readsSIGNAL: Fatal signal 11 (SIGSEGV), as from the Android SDK. - No double reports. The JVM crash handler tells the signal handler the exception is handled, so a SIGABRT that follows it is not recorded again. Every record is read and deleted (or passed by the watermark) once.
Changed #
readNativeCrashreturns one record per call, oldest first, and null when there are no more; the Dart side now reads until null (at most 8 per launch) and attributes each crash to its own session. iOS still returns at most one record per launch.- Consent denied: native crash records (Android and iOS) are now read and dropped at startup. 2.3.x left them on the device, so a crash from a denied period could be reported after a later grant. Pending consent still holds them on the device like other events.
Size and build #
- The plugin now builds a few KB of plain C per ABI (no libc++, no liblog,
-Os, stripped, 16 KB page aligned) with CMake and the NDK of the app's build: AGP's default NDK, which isflutter.ndkVersionon current Flutter/AGP pairs (no pin of the plugin's own). Apps that already build without an NDK installed get one downloaded by AGP on the first build. - The library and its JNI class are distinct from the Android SDK's
(
libunilitix-native.so,io.unilitix.sdk.capture), so an app can include both. consumer-rules.prokeeps the JNI methods ofio.unilitix.flutter.nativecrash.NativeSignalHandlerunder R8.
How to test #
- Debuggable build on a device or emulator: start the app, then
adb shell run-as <package> kill -SEGV $(adb shell pidof <package>), and relaunch. Expect oneCRASHSIGNAL: Fatal signal 11 (SIGSEGV)with fingerprint8f1fc15bfa06be00on the session that was running. On Android 11+ the first launch with 2.4.0 only sets the watermark: crash the launch after it.
Internal #
- The C handler and the Android SDK's pure-Kotlin capture code are vendored
into
android/src/main/cppandandroid/src/main/kotlin/io/unilitix/flutter/nativecrashbyscripts/sync-android-native.sh(see CONTRIBUTING); the plugin-owned glue isNativeCrashBridge.kt.
2.3.0 #
iOS native code moves onto UnilitixCore 0.4.1, the Swift core of the native iOS and React Native SDKs, so the three SDKs share one crash-capture implementation and crash-file format and one screenshot path on iOS. No API changes; Android is unchanged.
Changed #
- iOS crash capture is UnilitixCore's
CrashFile. UncaughtNSExceptions and fatal signals are recorded as before (same file,Application Support/unilitix_native_crash.json, same JSON record, which is also the Android plugin's format) and reported on the next launch.readNativeCrashnow adds the record'sfingerprint, computed with the SDK contract's frame rules, so an Objective-C exception groups by its Apple stack frames, as the native iOS SDK groups it (2.2.x grouped iOS exceptions by type only). Signal crashes keep their grouping. Android records are fingerprinted in Dart as before. - iOS screenshots are drawn and encoded by UnilitixCore
(
ScreenshotCapture.render/encode). The masks from Dart are painted while the frame is drawn, so no unmasked image is kept in memory (2.2.x drew the window unmasked and painted the masks afterwards), each mask is grown by one point on every side (was one output pixel), and frames are drawn at up toscreenshotMaxWidthpixels wide, as on Android and native iOS (2.2.x drew them at one pixel per point, e.g. 390 px on a 390-point phone). Frames are taken from the key window of the foreground-active scene and are skipped while that is a system window. Still JPEG, and thecaptureScreenshotchannel contract is unchanged. - Device and app fields (
getDeviceInfo,getPackageInfo) come from UnilitixCore'sDeviceInfo; the values are unchanged. - The privacy manifest declares
NSPrivacyAccessedAPICategorySystemBootTime(35F9.1), which the vendored UnilitixCore sources use to time captures.
Fixed #
- iOS: an uncaught
NSExceptionis reported with its name, reason and stack. In 2.2.x theSIGABRTthat follows it could overwrite the record, and the crash was reported asSIGNAL6.
Internal #
- UnilitixCore's Swift sources are vendored into
ios/Classes/UnilitixCorebyscripts/sync-ios-core.sh(as in the React Native SDK); theUnilitix.swiftfacade is left out. Minimum iOS stays 13.0 (UnilitixCore's minimum too).
2.2.1 #
Fixed #
- Replay frames carry their real image type. Native capture produces
JPEG and the Dart fallback (web, desktop, Android < 26) produces PNG, but
every frame was uploaded labelled
image/webpand stored as.webp. Each upload now sends the type detected from the frame's bytes, and frames are reserved in one/v1/ingest/screenshots/initcall per format with the newformatfield, so the API stores them as.jpg/.png. Older APIs ignore the field. No app changes needed.
2.2.0 #
Power outage contribution (opt-in). No breaking changes; apps that do not opt in collect nothing new.
Added #
UnilitixConfig.powerOutageContribution(defaultfalse). Reports plug/unplug transitions and charging samples toPOST /v1/signals/powerfor the crowd-sourced outage map. Double opt-in: the flag, plus coarse location permission that the app declares and requests itself (the SDK never prompts), and consentgranted(nothing is collected or held whilepending/denied; leavinggranteddeletes the queue).- Each request carries an H3 resolution-7 cell computed on the device
(pure-Dart and pure-Java ports of H3's
latLngToCell; coordinates never leave the device) and a daily-rotating salted device hash (the raw install id is never sent with these events). At most 200 events per request; events older than 48 h are dropped; at most 500 kept on device. - Android: a manifest receiver for
ACTION_POWER_CONNECTED/ACTION_POWER_DISCONNECTED, disabled by default and enabled only on opt-in, appends to a file in the no-backup directory; a runtime-registered receiver covers the same events while the app process is alive. A WorkManager job (15 min, network required) records a sample and uploads; the SDK also uploads on every foreground. Location comes fromLocationManager.getLastKnownLocation(no Play services). - iOS: samples at foreground and background, plug changes while in the
foreground (
UIDevice.batteryStateDidChangeNotification), uploaded on foreground. Location fromCLLocationManager().location, only with existing when-in-use/always authorization. ApiClient.postPowerSignals.- Tests:
test/power_outage_test.dart(H3 vectors from the reference library, SHA-256 and device-hash vectors, queue cap/dedupe/48 h/200-batch rules, wire format, consent gating) and JVM unit tests for the Android implementation (android/src/test/java/.../PowerH3Test.java,PowerSignalsTest.java).
Changed #
- Android: the plugin now depends on
androidx.work:work-runtime:2.9.1. - iOS: the pod links
CoreLocation.PrivacyInfo.xcprivacydeclares coarse location (not linked, not tracking, app functionality), collected only when the feature is enabled.
2.1.4 #
Conforms to the shared SDK contract (v1.0.0). No breaking changes.
Changed #
- Navigation events are sent as
NAVIGATE, the name the Android and React Native SDKs use. Earlier versions sentNAV, which the dashboard did not count in screen visits, journeys or the session timeline; the API now rewritesNAVon ingest, so older app builds are covered too. - Defaults and limits (crash caps, breadcrumb trail, rage-tap thresholds,
retry backoff, request timeout) now come from the generated
lib/src/generated/sdk_contract.dart. Values are unchanged.
Added #
test/sdk_contract_test.dart: config defaults, event types, consent states, crash and retry limits, and the crash fingerprint test vectors are checked against the contract.
2.1.3 #
- Fixed: the iOS plugin failed to compile in 2.1.2 (
ss_sizeissize_t). 2.1.2 is retracted; use 2.1.3 or later. - Publishing now waits for the Android and iOS example builds to pass.
2.1.2 #
Crash credibility release. No breaking changes.
Fixed #
- Native crashes are attributed to the session that crashed, not to the session that starts on the next launch, so a crash and its replay stay together. The marker written by the plugin carries the time of death; the SDK matches it to the pending session stub.
- Sessions that did not end cleanly are recovered regardless of age. A crash the device only reports a week later (offline, app unused) was discarded as stale.
PlatformDispatcher.onErroris chained. A handler the app or another SDK installed first still runs and still decides whether the error is handled; previously the SDK replaced it.- iOS signal handlers use
sigactionon an alternate stack (sigaltstack) and chain to the previously installed handler (Crashlytics, Sentry, the app's own) instead of replacing it, so two crash reporters can coexist; a stack-overflowSIGSEGVis now recorded. The signal record carries the time of death.
Added #
- Fingerprints. Every crash and exception carries a stable grouping key
in
metadata.fingerprint(exception type + the top three frames with line and column numbers removed;virtoffsets for obfuscated traces), withmetadata.occurrencecounting repeats. The same fingerprint is reported at most 3 times per session and reports are capped at 50 per session, so an error thrown every frame no longer floods the queue. metadata.buildIdandmetadata.isolateDsoBaseon reports from--split-debug-infobuilds, anddart run unilitix:unilitix_symbols upload <dir>to upload the symbol files. Server-side symbolication lands with the API release that addsPOST /v1/symbols; until then the tool reports the endpoint as unavailable and exits non-zero.Unilitix.captureException(error, stackTrace:, fatal:)andUnilitix.addBreadcrumb(message, category:, data:).
2.1.1 #
Reliability and size release. No API changes; two behaviour changes worth reading before upgrading (marked Changed).
Fixed #
- Retries no longer pile up. Every request is now made once per flush
cycle. A transient failure (no response, 5xx, 429) opens a backoff window —
exponential with jitter, or exactly what
Retry-Afterasks for — during which no request is made and data waits in the on-device queue. Previously each call retried up to five times inside the HTTP layer, so a degraded link could hold a flush open for minutes and multiply load on the API. - Permanent rejections are dropped. A 4xx other than 429/401/403 means the payload can never succeed; the batch is discarded (and logged) instead of being re-sent every cycle for seven days.
- A 400 on the session record no longer resets the session. The record is kept, not re-sent until it changes, and the reason is logged. The reset split one visit into many and detached the events already attributed to it.
HttpException,HandshakeException, "Connection closed before full header" and otherIOExceptions thrown by the HTTP stack were not caught by the client and could reach the host app; every transport failure is now a result the scheduler handles.- A queued batch with corrupt JSON is deleted on first sight instead of throwing on every retry.
- SDK errors are never recorded as crashes. Every public entry point and
framework callback is guarded, and the crash tracker ignores errors whose
stack originates inside
package:unilitix. foregroundTimeMsis measured with a monotonicStopwatch; a clock change mid-session used to add or subtract hours.timezoneis the IANA zone id (Africa/Lagos) on Android and iOS rather than an ambiguous abbreviation.
Changed #
track()no longer sends an immediate request. Custom events ride the normal batch (everyflushIntervalSeconds, or sooner onceflushBatchSizeis reached). An app that tracked in a loop used to make one POST per call. CallUnilitix.flush()when an event must leave the device now.- The session record is upserted only when it changes (or every five minutes so durations stay current), not every 30 s for the life of the session.
- Dependencies cut from eight to three.
device_info_plus,package_info_plus,flutter_secure_storage,cryptoandimageare gone; device and app fields come from the SDK's own plugin, ids live inshared_preferences, and the Dart screenshot fallback (web, desktop, Android < 26) encodes PNG throughdart:ui. Installs upgrading from ≤ 2.1.0 receive a fresh anonymous id once (the old one was in the Keychain/Keystore); the user id is restored by the app's nextidentify(). - The retry queue is bounded by events (
maxOfflineEvents, now counted in events rather than batches), by bytes (5 MB) and by age (7 days); oldest batches are evicted first. - Write-ahead rows are written in batches (100 ms window) instead of one disk write per event.
Added #
- CI publishes an SDK size report (release arm64 APK of the example app) in the job summary.
- Storage and scheduler tests run against real SQLite (
sqflite_common_ffi) and aMockClient; 20+ new tests cover backoff, drops, queue caps and WAL coalescing.
2.1.0 #
Privacy release. Upgrade before enabling session replay in any app that shows personal or financial data.
Fixed #
- Text inputs were not masked in pixel screenshots.
maskInputsonly affected wireframe snapshots; aTextFieldwithoutobscureTextwas uploaded legibly. Inputs are now painted over in screenshots too. - Opt-out was not honoured everywhere. A session stub (device fields and user id) was written at session start and uploaded on the next launch even when the user had opted out; crash events bypassed the opt-out gate. Every persistence and upload path is now gated, and a denied consent purges what a previous process left behind.
autoTrackTapsdid nothing unless the app also wrapped its tree in the undocumentedUnilitixGestureDetector.UnilitixWidgetnow records taps itself through a pointer listener that never competes with app gestures.- Calling any API before
init()in a release build threw aLateInitializationError; it is now logged and ignored. - The connectivity fallback polled
https://1.1.1.1every 30 s on mobile when the native channel errored, leaking timers; mobile now reportsUNKNOWNinstead, web/desktop probe the Unilitix API, and timers never stack. - Session payloads sent
-1.0for unknown battery/storage and''for an unknown carrier; these fields are now omitted. - User traits were re-sent on every session upsert; they travel once, via
/identify. ios/unilitix.podspecwas stuck at 2.0.73; it now tracks the package version and CI fails if it drifts.PrivacyInfo.xcprivacywas empty; it now declares what the SDK collects.
Added #
maskAllTextnow also paints over every text widget in pixel screenshots, andUnilitixUnmaskedexempts a subtree (never inputs orUnilitixPrivate).UnilitixConsent { pending, granted, denied },init(consent:),Unilitix.setConsent()andUnilitix.consent.pendingcollects to the on-device queue and uploads nothing until granted;deniedpurges.replaySampleRate(default 1.0, decided once per session).- README section "What the SDK collects by default".
Changed #
optOut()/optIn()are now aliases ofsetConsent(denied/granted).UnilitixGestureDetectorbecomes a passthrough whenUnilitixWidgetis mounted, so a tap is never counted twice.
2.0.76 #
Fixed #
- A rejected API key (HTTP 401/403) no longer retries forever. The SDK used to treat it like a network blip and re-send the session on every flush cycle and every launch; it now logs one clear error, pauses uploads for the rest of the process, and keeps captured data on-device for a later launch with a valid key.
2.0.75 #
Fixed #
- iOS: the plugin did not compile (since 2.0.50).
UnilitixFlutterPlugin.swiftreferenced two CoreTelephony symbols that do not exist (CTTelephonyNetworkInfo.serviceOrder,CTRadioAccessTechnologyHSPA), so any app building for iOS failed with a Swift compiler error. Carrier lookup now usesdataServiceIdentifier(the SIM carrying data) with a fallback to any SIM, and the 3G radio set is HSDPA/HSUPA/WCDMA/EVDO/eHRPD. - CI now compiles the iOS plugin on macOS (
ios-buildjob) so this cannot regress silently; the publish workflow is unchanged.
2.0.74 #
Durability #
- Every event carries a client-generated UUID (
eventId) and a per-session sequence number (seq). Retried batches are de-duplicated by the server and never billed twice. - Events are written to an on-device write-ahead queue the moment they are emitted, before any network call, and recovered on the next launch.
- Uploads are serialised — one in-flight request at a time — so a slow network no longer stacks up parallel retries.
- A crash event is flushed synchronously before the process exits.
- Session timeout uses wall-clock time, so a device sleeping through the timeout starts a fresh session on resume.
Privacy #
maskAllText(default on): the content of everyTextwidget is redacted in wireframe snapshots, preserving length for layout fidelity.UnilitixPrivatenow also masks pixel screenshots: the subtree's bounds are painted over on the device before the frame is encoded (maskScreenshots, default on).maskImages(default off) blacks outImage,RawImage,CircleAvatarandFadeInImagein screenshots and snapshots.- The anonymous id is a random UUID, never derived from device identifiers,
and
reset()rotates it. optOut()stops replay capture, discards buffered data, purges the on-device queue and gates every upload path.
Performance #
- Screenshots are encoded natively off the main thread (Android and iOS) and
captured on change or navigation rather than on a fixed timer, with
maxScreenshotsPerMinute(20) andscreenshotHeartbeatMs(10 s) as the new tuning knobs.
Crash reporting #
- Native uncaught-exception handlers on Android (
Threaddefault handler) and iOS (signal handlers) record a fatalCRASHon the next launch. - Caught Flutter errors are reported as non-fatal
EXCEPTIONevents; crash events now carryfatalandtitleso the dashboard groups them correctly.
Contract #
lib/src/generated/ingest_models.dartis generated from the API's OpenAPI contract;test/contract_test.dartfails if the SDK ever sends a field the server does not declare.- Fixed: screenshot confirmation now sends screen name, viewport, byte size and capture time, so replay frames are labelled (previously only the ordinal was sent and the server ignored it).
Example app #
- iOS deployment target raised to 13.0.
2.0.73 #
- fix: screenshot uploads now processed in batches of 3 instead of all at once — fixes connection saturation causing request timeouts and white frames in session replay on heavy sessions
2.0.72 #
- fix: persist session end payload to SQLite before network call — recovers incomplete sessions on next launch
- fix: remove dead SESSION_END constant
2.0.71 #
Fixed #
_recordCrashnow has a re-entrancy guard (_isRecording) — prevents recursive crash recording if an error fires during crash event handling- Removed dead
recordZoneErrormethod — unreachable sincerunZonedGuardedwas removed fromUnilitix.runAppin v2.0.67 SnapshotCapturenow implementsWidgetsBindingObserverand tracks_activestate — timer callbacks are suppressed while the app is backgrounded, preventing accumulatedaddPostFrameCallbackregistrations that would fire in a burst on resume- Navigator observer
_name()fallback now maps common unnamed route types to clean names (_DialogRoute→Dialog,_ModalBottomSheetRoute→BottomSheet,_PopupMenuRoute→PopupMenu) instead of raw runtime type strings
Changed #
UnilitixPrivatedoc comment updated to clarify it only masks wireframe snapshot JSON, not pixel screenshots — usecaptureScreenshots: falseinUnilitixConfigto prevent sensitive content in pixel screenshots- Network connectivity polling URL changed from Google
generate_204to Cloudflare1.1.1.1/cdn-cgi/trace— better availability in African markets where the Google endpoint may be blocked by some ISPs memoryUsageMbdocumented as RSS (resident set size), not Dart heap — on iOS this metric may read higher than heap-only tools- Anonymous ID no longer includes
buildNumberin its hash input — previously every app update generated a new anon ID, breaking user continuity across versions; now stable across builds on the same device - fix: anonymous ID now stable across app updates (sha256 of deviceId + packageName only) Note: existing users will receive a new anonymous ID on first launch after upgrading to v2.0.71 — this is a one-time break; continuity holds for all future updates.
2.0.70 #
Changed #
- Renamed iOS podspec from
unilitix_flutter.podspectounilitix.podspec - Updated podspec
s.namefromunilitix_fluttertounilitix— module name now matches the Dart package name - Renamed privacy resource bundle from
unilitix_flutter_privacytounilitix_privacyfor consistency
2.0.69 #
Fixed #
- Periodic flush now runs all 4 stages — previously only flushed events and retried pending DB records; screenshots and snapshots were deferred to session end only. Every 30s cycle now also uploads pending screenshots and snapshots (best-effort, background)
- HTTP 409 on session upsert no longer resets the session — 409 means the session already exists on the server; treated as success so events are flushed under the correct session ID instead of being re-attributed to a new session
- Events restored to buffer on DB queue failure — if
_queueEventsForRetryfails to insert into SQLite, drained events are put back in the in-memory buffer instead of being silently dropped firstWhere→ safewhere + isEmptyguard in screenshot upload — eliminatesStateErrorwhen the server omits a presigned slot for an ordinal; affected ordinal is skipped and retried next cycle- Session ID priority corrected in
_flushSnapshotsand_uploadScreenshots— waslastEndedSession ?? currentSession; changed tocurrentSession ?? lastEndedSessionso media captured during an active session uploads on periodic flush, not only after session end flushOnSessionEndno longer bails if a periodic flush is in progress — polls up to 3 seconds for the flush to complete before proceeding, ensuring session-end data is always uploadeddeletePendingSessionmoved insideflushOnSessionEnd— stub is only deleted after the flush succeeds, not before- Observer warning deferred to
addPostFrameCallback— removed unconditional⚠️ not connectedline from the init banner; check now fires after the first frame whenMaterialAppis fully built, eliminating the false-positive warning whenUnilitix.observeris correctly wired - NDK version pinned in example app —
example/android/app/build.gradle.ktsnow specifiesndkVersion = "27.0.12077973"to silence plugin NDK mismatch warnings
2.0.68 #
Fixed #
- Screenshots not appearing in session replay — Content-Type
mismatch on R2 presigned PUT (
image/jpegsent,image/webpexpected) caused R2 to silently reject every screenshot upload confirmScreenshotUploadfired even when PUT to R2 failed — screenshots marked as uploaded when they weren't- Screenshots deleted from local DB after failed upload causing permanent data loss — now only deleted after confirmed success
- Silent upload failures now logged for observability
2.0.67 #
Fixed #
Unilitix.runApp()called itself recursively instead of Flutter'srunApp()— would have caused a stack overflow on every app launchonCrashEventflush()call created a recursive loop when a network error occurred during crash reporting- Corrected
PixelCopyimport fromandroid.graphicstoandroid.view
2.0.66 #
Fixed #
- Android black frames on Impeller/Vulkan — four-part fix:
screenshot_capture.dart: replacedTimer.periodicwithSchedulerBinding.addPostFrameCallback— captures are now frame-synchronised and stop automatically when the app backgroundsscreenshot_capture.dart:toImage(pixelRatio: 1.0)→(devicePixelRatio * 0.5).clamp(1.0, 2.0)— avoids Impeller allocating an oversized DEVICE_LOCAL texturescreenshot_capture.dart: addedawait SchedulerBinding.instance.endOfFramebetweentoImage()andtoByteData()— flushes Impeller's Vulkan command buffer before CPU pixel readbackUnilitixPlugin.kt: added nativecaptureScreenshotviaPixelCopy.request()(API 26+) on a newunilitix/screenshotchannel — reads from the window compositor, immune to Impeller; DartRepaintBoundarypath retained as fallback
android/build.gradle:compileSdk 34→compileSdk 35for Android 16 (API 36) compatibilityUnilitixPlugin.kt: implementsActivityAwareto supplyActivity.windowtoPixelCopyScreenshotCapture: addedWidgetsBindingObserver— re-anchors post-frame callback chain after app returns from background (prevents capture stoppage within a long session)
2.0.65 #
Fixed #
_recoverPendingSessionsnow catchesFormatExceptionandTypeErrorseparately — corrupt or malformed session records are deleted immediately instead of failing silently on every app start; generic catch retained for transient network errors
2.0.64 #
Changed #
_recoverPendingSessionsnow checks for unsent events before discarding stale sessions — sessions older than 30 minutes are only discarded if they have no pending events in the DB; sessions with unsent events are always recovered regardless of age- Added
EventDatabase.hasPendingEventsForSession()— queriespending_eventsbysessionIdinsession_jsonusing aLIKEmatch
2.0.63 #
Changed #
SnapshotCapturerewritten with allowlist approach — only ~60 known renderable widget types serialized; framework/wrapper nodes traversed transparently (UXCam-style view pruning)- Zero-size nodes skipped (
w == 0 || h == 0) Text.dataandText.textSpancontent extracted intotextfieldIcon.codePointextracted intoiconfield (hex string)- Button widgets (
ElevatedButton,TextButton,OutlinedButton) annotated withrole: button Imagenodes annotated withrole: image- Input masking now driven by
_kInputTypesset, consistent with allowlist
2.0.62 #
Changed #
FlushSchedulernow uses a strict 4-stage sequential flush via_flushAll(): Stage 1 (session POST) → Stage 2 (events) → Stages 3 & 4 (snapshots + screenshots in parallel, best-effort)- All four flush methods now return
bool— stages 3 and 4 only run if stages 1 and 2 both succeed - Screenshot upload removed from inside
_flushEvents; it lives exclusively in Stage 4 uploadScreenshotsOnWifiOnlygate now enforced in_uploadScreenshots- Snapshot buffer re-queued on flush rejection or error instead of being silently dropped
2.0.61 #
Fixed #
recordZoneErrornow guarded by_isRecordingflag — prevents recursive crash recording ifonCrashEventitself throws- 5-second observer warning now uses
_observerConnectedflag — suppressed as soon asUnilitixWidgetdetects a Navigator or the observer fires its first navigation event
Added #
Unilitix.markObserverConnected()— public static method; call it to suppress the observer warning in custom navigation setupsUnilitixWidgetconverted toStatefulWidget— auto-callsmarkObserverConnected()viadidChangeDependencieswhen aNavigatoris found in contextUnilitixObserver.didPushfiresSdkScope.onObserverConnectedon the first navigation event — wired tomarkObserverConnected()in initSdkScope.onObserverConnectedcallback added for observer-to-SDK signalling without circular imports
2.0.60 #
Changed #
- Version bump to 2.0.60 — includes all fixes and changes from 2.0.58 and 2.0.59:
- Pending session stub wrapped in try/catch with 500 ms retry (2.0.57–2.0.58)
- Setup pattern updated to
MaterialApp.builderfor correct screenshot capture (2.0.59) - Network exceptions filtered from crash tracker (2.0.57)
2.0.59 #
Changed #
- Setup pattern updated:
UnilitixWidgetnow placed viaMaterialApp.builderinstead of wrappingMyApp— ensures screenshots capture fully rendered content including the navigation shell - README quick start and
Unilitix.runAppdartdoc updated to reflect the builder pattern Unilitix.runApp(MyApp())replacesUnilitix.runApp(UnilitixWidget(child: MyApp()))
2.0.58 #
Changed #
- Version bump: pubspec, podspec,
kUnilitixSdkVersion, and README all synced to 2.0.58
2.0.57 #
Fixed #
- Network exceptions (
ClientException, "Connection closed", "Software caused connection abort") are now filtered out of crash tracking — avoids false-positive crash reports from transient connectivity drops onSessionStartpending-session stub write now wrapped in try/catch — failures logged as warnings instead of silently swallowed- Retry once after 500 ms if
_buildSessionPayload()returns null on first call (platform channel not ready at session start)
2.0.56 #
Changed #
- Startup observer warning updated: "not connected — add Unilitix.observer to MaterialApp.navigatorObservers" (was stale UnilitixMaterialApp reference)
- Dashboard docs: amber warning callout added directly after the setup snippet in Flutter Quick start Step 2
2.0.55 #
Changed #
- Dartdoc updated on all public
Unilitixmethods and getters — consistent verb-first phrasing, code examples onobserver,track,identify,runApp, andinit
2.0.54 #
Fixed (Android) #
- 5G detection added —
NETWORK_TYPE_NRnow returns"5G"on Android API 29+ (Q); previously reported as"4G" import android.os.Buildadded;NETWORK_TYPE_NRremoved from the 4G case
2.0.53 #
Changed #
_retryPendingnow processes batches in parallel chunks of 5 — reduces retry wall-clock time under backlog- Per-batch logic extracted into
_processBatchfor clarity _retryPending(skipPurge: true)— session-end retries skip the 7-day purge (periodic flush handles it)flushOnSessionEndnow calls_retryPending(skipPurge: true)before the session POST — offline-queued events are delivered andofflineEventCountis updated before the session record is sentRetryPolicy.delayForadds ±20% random jitter to exponential backoff — reduces thundering-herd on bulk retriesofflineEventCount/onlineEventCountfall back tolastEndedSessionwhencurrentSessionis null- File-level dartdoc updated to show current
Unilitix.runApp+UnilitixWidget+navigatorObserverspattern
2.0.52 #
Added #
pending_sessionstable (DB v3) — persists session stub on start, deleted on clean session end_recoverPendingSessions()— on SDK init, sends any undelivered session stubs from previous crashed/killed sessionsonSessionStartnow saves a stub topending_sessionsso crash-killed sessions are recoverable on next launchonSessionEnddeletes the stub afterflushOnSessionEndcompletes
Changed #
- DB schema version bumped to 3; v1→v3 and v2→v3 migrations handled in
_onUpgrade
2.0.51 #
Added #
onEventsFlushcallback onSessionManager— fires onAppLifecycleState.pausedto drain in-flight events before the app goes darkFlushScheduler.flushEventsOnly()— events-only flush with no session POST and no screenshot upload; used exclusively for background drains
Changed #
- On
paused, events are now flushed immediately before the background timer starts — reduces event loss when the OS kills the app during the timeout window
2.0.50 #
Fixed (iOS) #
- Podspec version synced to 2.0.50 (was stale at 2.0.36)
- 5G detection added —
CTRadioAccessTechnologyNRNSAandCTRadioAccessTechnologyNRnow return"5G"on iOS 14.1+; previously reported as"4G" - Dual-SIM primary carrier selection uses
serviceOrder(iOS 13+) instead of arbitrary dictionary key iteration
2.0.49 #
Fixed #
flushOnSessionEndnow respects the_flushingguard — no more race with periodic flushflushOnSessionEndno longer calls_uploadScreenshotsseparately;_flushEventshandles it on success, eliminating double-upload_flushEventsfallback now includeslastEndedSession?.id— events are correctly sent after session endsinsertEventwrapped in a sqflite transaction — count + delete + insert is now atomicEventBuffercapped at 500 events — drops new events when full instead of growing unbounded
Changed #
- DB schema version bumped to 2 — adds
idx_events_created_atindex onpending_events(created_at)for existing and new installs
2.0.47 #
Changed #
- Session timeout is now timer-based — session ends in the background after
sessionTimeoutSecondselapses, not on every pause resumedwithin timeout cancels the timer and continues the same session (backgroundTimeMs recorded)resumedafter timeout starts a fresh sessiondetachedcancels the pending timer and ends the session immediatelystop()cancels the background timer to prevent leaks- Extracted
_commitForegroundWindow()helper — eliminates foreground double-count risk - Removed dead
onBackgroundfield
2.0.46 #
Added #
UnilitixWidget— thinRepaintBoundarywrapper; replacesUnilitixMaterialAppfor session replay setup- New canonical pattern:
Unilitix.runApp(UnilitixWidget(child: MyApp()))+navigatorObservers: [Unilitix.observer]
Deprecated #
UnilitixMaterialApp— useUnilitixWidget+ plainMaterialAppinstead; will be removed in v3.0.0
Changed #
- README quick start updated to
UnilitixWidgetpattern
2.0.45 #
Fixed #
- Screenshot capture re-entrancy guard — concurrent captures no longer overlap
- Ordinal incremented before
await— eliminates race condition under concurrent timers uiImagealways disposed infinally— fixes GPU texture memory leak on capture failure- Upload
Content-Typecorrected toimage/jpegto match actual JPEG encoding
2.0.44 #
2.0.42 #
Fixed #
- Removed double
flushOnSessionEndon background —onBackgroundwiring dropped sinceonSessionEndalready triggers the flush when session ends onpaused - Removed redundant
SESSION_ENDevent emit fromonSessionEndcallback
2.0.41 #
Changed #
- Session ends immediately on
AppLifecycleState.paused— full session record sent on every background resumedalways starts a fresh session — no more session restore/continue logiconBackgroundnow triggersflushOnSessionEnd(events + screenshots + session record) instead of a simple flushdetached(app killed) still ends the session as a safety net
2.0.40 #
2.0.38 #
Fixed #
- Events flush immediately when app goes to background
- Session ends and full session record sent when app is killed (detached)
- Fixes missing score, duration, device, location on dashboard sessions
2.0.36 #
Changed #
Unilitix.initnow accepts a positionalapiKeystring —init('key')andinit('key', config: ...)both work- Old
init(config: UnilitixConfig(apiKey: ...))signature removed
Fixed (iOS) #
- Network monitoring now uses NWPathMonitor — real-time updates instead of one-shot static WIFI
- Cellular type resolved to 2G/3G/4G via CTRadioAccessTechnology
- Battery monitoring enabled/disabled correctly — no longer leaks monitoring state
- Podspec version synced to 2.0.36
2.0.35 #
Changed #
- README: simplified init syntax in Quick start and Configuration examples
- README: removed UnilitixGestureDetector from Quick start (UnilitixMaterialApp handles screen tracking)
- README: iOS minimum updated to iOS 13.0+
- README: Verify section version string updated to v2.0.35
2.0.34 #
Fixed #
- iOS plugin rewritten — correct channels (com.unilitix/sdk, com.unilitix/network), correct class name (UnilitixPlugin), handles getBatteryLevel and getCarrierName
- Android manifest declares ACCESS_NETWORK_STATE for correct initial network state
- iOS XCTest updated to match new plugin API
- crashTracker error log updated after logPendingCrashesIfAny rename
Changed #
- example/lib/main.dart updated to UnilitixGestureDetector + UnilitixMaterialApp pattern
- iOS podspec updated: CoreTelephony + UIKit frameworks, PrivacyInfo.xcprivacy, iOS 13.0 minimum, correct metadata
- CONTRIBUTING.md release tag example updated to v2.x.x format
2.0.32 #
Fixed #
- Web stub now handles getBatteryLevel (returns -1.0 sentinel)
- Web connectivity check uses google.com/generate_204 instead of api.unilitix.com — decouples connectivity state from Unilitix API availability
- Docstring in unilitix.dart updated to show UnilitixMaterialApp pattern
Removed #
- EventTypes.scroll — was never emitted, removed to avoid false API expectations
Changed #
- publish.yml pinned to Flutter 3.32.8
Added #
- 73 new unit tests covering UnilitixConfig, UnilitixEvent, RageTapDetector, RetryPolicy, JsonUtil, SnapshotBuffer, EventBuffer, Session, and Unilitix static API (87 total)
- RetryPolicy.delayFor overflow fix — attempt clamped to [0, 20] before bit-shift; returns Duration instead of int
- Removed path and battery_plus dependencies (8 pub dependencies total); battery level now via existing com.unilitix/sdk channel
2.0.31 #
Fixed #
- Init log now shows SDK version (kUnilitixSdkVersion), not app version
- SdkScope.onCrash removed — was emitting a ghost crash event with silently-dropped properties alongside the real one from CrashTracker
- Web screenshot uploads unblocked — _checkConnectivity now returns 'WIFI' so isWifi() is true on web when connected
- publish.yml: actions/checkout@v5 → @v4 (v5 does not exist; publish CI was broken)
Removed #
- SdkScope.onCrash field (no longer assigned or needed)
- CrashTracker.uninstall() — renamed _restoreCrashHandlers() and made private; wiring left for a future Unilitix.dispose() (TODO in crash_tracker.dart)
- AfricaContext.networkType getter (no caller)
- EventDatabase.deleteScreenshotsByIds (no caller)
- EventDatabase.isAvailable getter (no caller)
Changed #
- UnilitixObserver now overrides didRemove in addition to didPush/didPop/didReplace — Navigator.removeRoute() calls now tracked
2.0.30 #
Fixed #
- sdkVersion in payloads and User-Agent now correctly reports SDK version, not app version
- Screenshots now captured: RepaintBoundary auto-attached via UnilitixMaterialApp
- Web network polling no longer converges to OFFLINE — uses http reachability check
- recoverPendingCrash() now called on init — crash batches from previous sessions are logged
- SdkScope.onCrash now wired — was a permanent no-op
- uploadScreenshotBytes now logs exceptions instead of silently swallowing them
Removed #
- SdkScope.onRageTap and SdkScope.onFlushNeeded (dead fields)
- UnilitixConfig.autoTrackScreens and UnilitixConfig.sampleRate (declared, never read)
- AfricaContext.batteryState (no caller)
- EventDatabase.deleteEventsByIds (no caller)
- JsonUtil.encode / decode / safeMap (no callers — only toRfc3339 remains)
- customUserId field from session payload (duplicate of userId)
- Session() fallback in _buildSessionPayload — returns null instead of sending garbage
Changed #
- observerAttached now set in didPop and didReplace, not only didPush
- UnilitixApp deprecated — use UnilitixMaterialApp
- kUnilitixSdkVersion constant in lib/src/core/version.dart is single source of truth for SDK version
2.0.29 #
Changed #
- UnilitixMaterialApp now covers all MaterialApp parameters: scaffoldMessengerKey, color, onGenerateTitle, highContrastTheme, highContrastDarkTheme, routeInformationParser, themeAnimationDuration, themeAnimationCurve, themeAnimationStyle, scrollBehavior, shortcuts, actions, localeListResolutionCallback, localeResolutionCallback, onNavigationNotification, onGenerateInitialRoutes, and all debug overlay flags
2.0.28 #
Added #
- UnilitixMaterialApp — drop-in replacement for MaterialApp with automatic screen tracking; no navigatorObservers wiring needed
- Supports classic navigator, routerDelegate, and routerConfig paths
2.0.27 #
Fixed #
- sdkVersion now reads from PackageInfo at runtime — never drifts from pubspec.yaml
- identify() no longer calls setTraits twice
- screenshotQuality config now correctly passed into screenshot capture
- capturedAt uses RFC3339 consistently in screenshot init and confirm
Removed #
- Dead SdkScope.onRageTap assignment
- Dead remapSessionId method
- maskInputsInScreenshots config field (not yet implemented)
Changed #
- totalStorageGb simplified to honest stub
- webpBytes renamed to jpegBytes
2.0.26 #
- Reconcile version, README and CHANGELOG — all in sync
2.0.25 #
- Fix: API 26 guard for NetworkCallback 3-argument overload
- Fix: NET_CAPABILITY_INTERNET filter to reduce callback frequency
2.0.24 #
- Fix: register NetworkCallback on main thread handler — eliminates ConnectivityThread crash
2.0.23 #
- Fix: widen all dependency constraints (battery_plus, device_info_plus, flutter_secure_storage, image, package_info_plus, http)
- Fix: CHANGELOG entries for 2.0.22
2.0.22 #
- Removed connectivity_plus dependency — native Android network monitoring via EventChannel
- Widened battery_plus and device_info_plus constraints
- Added web platform support
2.0.14 - 2026-06-01 #
Fixed #
- Widened connectivity_plus, battery_plus, device_info_plus constraints to support both v6.x and v7.x — resolves dependency conflicts for apps still on older plugin versions
2.0.13 - 2026-06-01 #
Added #
- Web platform stub (
lib/unilitix_web.dart) — registers thecom.unilitix/sdkmethod channel on web;getCarrierNamereturns''(carrier detection not available in browsers) - macOS, Linux, Windows declared as
default_package: unilitixso the pure-Dart SDK works on all desktop platforms without native code
2.0.12 - 2026-06-01 #
Changed #
- Bumped battery_plus to ^7.0.0, connectivity_plus to ^7.0.0, device_info_plus to ^11.0.0
- Two-path flush architecture: events → POST /v1/ingest/events, session → POST /v1/ingest/session (session end only)
- Custom event properties now sent as top-level
propertieskey separate frommetadata.name - Immediate flush on track() via unawaited flushNow()
- Snapshot buffer now flushed to backend via POST /v1/ingest/snapshots
2.0.11 - 2026-05-30 #
Changed #
- README: expanded track() example to show arbitrary key/value properties
2.0.10 - 2026-05-30 #
Fixed #
- Android device info fallbacks: empty manufacturer → 'Android', empty model → brand if available, else 'Unknown'
2.0.9 - 2026-05-30 #
Fixed #
- DeviceInfo collection now logs errors instead of swallowing them silently
- Default values changed from 'unknown' to '' to match backend expectations
- Added success log for device info collection to aid debugging
2.0.8 - 2026-05-30 #
Fixed #
- sdkVersion constant updated from stale 2.0.0 to current version
- Added payload debug logging for device/version fields
2.0.7 - 2026-05-30 #
Fixed #
- Session duration was always 0:
_currentSessionwas nulled before flush ran;_buildSessionPayloadnow falls back tolastEndedSession foregroundTimeMswas only committed onpaused;_endCurrentSessionnow captures the final foreground window before nulling the session, and_buildSessionPayloadusescurrentForegroundTimeMsfor live sessions- Debug init log now prints device manufacturer, model, OS version and app version/build number so collection failures are immediately visible
2.0.6 - 2026-05-30 #
Fixed #
- Default apiUrl corrected
- Pinned Flutter version to 3.32.0 in CI to fix dart format mismatch
2.0.5 - 2026-05-30 #
Fixed #
ProcessInfo.currentRssguarded with try/catch — returns 0.0 on web and platforms where the Dart VM RSS is unavailableSchedulerBinding.addTimingsCallbackguarded with try/catch — no-ops on platforms that don't support frame timing callbacks- sqflite
open()wrapped in try/catch; all DB operations guarded with_availableflag — SDK continues in memory-only mode if local storage is unavailable (e.g. restricted sandboxes) dart:io GZipCodecreplaced withkIsWeb-conditional compression inApiClient— web sends uncompressed JSON,Content-Encodingheader omitted on webPlatform.isAndroid / Platform.isIOSreplaced withdefaultTargetPlatformindevice_info.dartandafrica_context.dart—dart:ioimport removed from both files;DeviceInfoCollector.osnow returns correct value on all platforms including web ("Web") and desktopflutter_secure_storagefailures already fall back toshared_preferencesinidentity.dart— web is covered
2.0.4 - 2026-05-29 #
Fixed #
- Flush exceptions now caught and logged with stack trace via
UnilitixLogger.e; batch still queued for retry on any throw - Database open now wrapped in try/catch with ✅/❌ debug logging
2.0.3 - 2026-05-29 #
Changed #
- README rewritten for v2.0.x API — correct init signature, UnilitixGestureDetector, migration guide, common mistakes table
2.0.2 - 2026-05-29 #
Fixed #
- All timestamps now sent as RFC3339 strings (was milliseconds int)
- Screen tracking event type changed from NAVIGATE to NAV to match backend
- identify() now calls POST /v1/ingest/identify on backend
- orientation now sent lowercase (portrait/landscape)
- syncAttempts and syncFailedBatches now included in session payload on retry
- Screenshot PUT uses Content-Type: image/webp; WebP encoding via image package
- Screenshot init count clamped to 1–200 backend limit
- Custom event properties correctly wrapped in metadata object
2.0.1 - 2026-05-29 #
Fixed #
- AfricaContext wired into session payload: batteryLevel, carrierName, totalStorageGb now real values
- Screenshot capture now stores to DB and uploads via presigned URL flow
- foregroundTimeMs now correctly accumulated per session
- offlineEventCount and onlineEventCount now correctly incremented
- Crash events now include current screen name
- recoverPendingCrash() implemented — logs recovered crash batches on launch
- autoTrackRageTaps config now respected in tap handler
- orientation, carrierName, totalStorageGb added to session JSON payload
- Screenshot DB: screenshotCount(), deleteScreenshotsByIds(), deleteOldestScreenshots(), and overflow protection in insertScreenshot()
- UnilitixLogger.w() now gated by enabled flag (debug-only)
- Snapshot payload now includes ordinal, viewportWidth, viewportHeight
- TextField/TextFormField/EditableText text masked in snapshots when maskInputs = true
- Removed unused archive dependency
2.0.0 - 2026-05-29 #
Breaking #
- Complete rewrite as pure Dart SDK — no longer wraps Android SDK via JNI method channel
UnilitixConfignow takesapiKeyas a required named parameter (was positional in v1)- Screen names are now Flutter route names (
/home) instead of Android class names - Remove
android/build.gradleexternal SDK dependency — all tracking is pure Dart
Added #
- Session lifecycle via
WidgetsBindingObserver— automatic timeout, background/foreground tracking - Navigator tracking via
UnilitixObserverwith correct Flutter route names UnilitixGestureDetectorwidget for tap and rage-tap tracking- Rage-tap detection: 3+ taps within 100 px / 1 s window
- Widget-tree snapshot capture via
RenderObjecttraversal - Screenshot capture via
RepaintBoundary.toImage() - Crash tracking:
FlutterError.onError+PlatformDispatcher.onError sqfliteoffline queue with exponential-backoff retry (5 attempts, 1 s–5 min)- Gzip compression on all API payloads
flutter_secure_storageencrypted user ID and anonymous IDUnilitixPrivatewidget to mask sensitive content from snapshots- Africa-first: offline capture, WiFi-only uploads, network transition counting
- Battery level, network quality, carrier name context on every session
OptManagerpersists opt-out preference across restarts
1.0.7 - 2026-05-29 #
- Android: migrate dependency from JitPack to Maven Central
(
com.github.Unilitix-hq:unilitix-android→com.unilitix:unilitix-android:1.4.1) - Android: remove JitPack repository URL from build.gradle — Maven Central is now the only required repository
1.0.6 - 2026-05-28 #
- CI: bump
actions/checkoutto v5 (Node 24-compatible, ahead of June 2 deprecation deadline) - CI: add Dependabot config to auto-bump GitHub Actions weekly
1.0.5 - 2026-05-28 #
- Added
topics:to pubspec.yaml for pub.dev discoverability - Added
documentation:URL to pubspec.yaml - README: replaced "iOS: Coming soon" with issue tracker link
- README: fixed bare code fence in Verify section →
text - Dartdoc comments added to
isInitialized,config, andUnilitixLogger - Added
.pubignoreto exclude stale scaffold files from the archive - Added
.github/workflows/publish.ymlfor automated publish on tag push - Added
CONTRIBUTING.md - CHANGELOG: dated all entries
1.0.4 - 2026-05-28 #
- Bumped Android SDK dependency to 1.4.1
- Android: debug verification log now automatic in debug builds
- Android: removed dead UnilitixWorkerFactory
1.0.3 - 2026-05-28 #
- Removed stale scaffold plugin file from Android directory
- README: added import line to Quick Start snippet
- README: added version comment to install block
1.0.2 - 2026-05-28 #
- Debug verification log after
Unilitix.init(): shows SDK initialized ✅, session started ✅, and observer attachment status ⚠️ - After 5 s in debug mode, warns if no screen events were
received — prompts developer to add
Unilitix.observertoMaterialApp.navigatorObservers UnilitixObservernow sets an attached flag on first route push so the init summary can reflect live observer status
1.0.1 - 2026-05-26 #
- Fix: sampleRate type mismatch — Float vs Double in Android native module
1.0.0 - 2026-05-26 #
- Initial release of the Unilitix Flutter SDK
- One-line initialization:
await Unilitix.init('api_key') - Automatic session tracking
- Automatic screen tracking via
UnilitixObserver - Custom event tracking with
Unilitix.track() - User identification with
Unilitix.identify() - Crash reporting and rage tap detection
- Offline event buffering with automatic retry
- Privacy controls:
optOut(),optIn(),reset() - Debug mode with console logging
- Android support (API 21+)