Repository navigation
Tags
Tags
Stop a deferred open being swallowed by the open before it The dedupe that keeps one tap from being counted twice was keyed on the URL alone, so a deferred report arriving just after an ordinary one for the same link was discarded as a repeat. It is not a repeat: they are different events on the server, and only the app can tell them apart. It bites in a journey that is not unusual. Somebody taps a link, has no app, installs, then taps the link again. The second tap opens the app and delivers the ordinary open immediately; the deferred open follows a moment later, once the claim comes back. The report that completes the install funnel was the one thrown away, in exactly the case that stage exists to show. The flag is part of the key now. Reporting the same thing twice is still suppressed, which is all the dedupe ever claimed to do. Found by review rather than by a test, because on three platforms the rule was only covered for the URL case and on Android it was not covered at all.
0.7.1 Adds PrivacyInfo.xcprivacy, declaring the UserDefaults required-reason API (CA92.1) and the six data types the SDK can send. Tracking is declared false with no tracking domains. The manifest is wired into Package.swift resources so it reaches consuming apps.
Tear down with destroy, the name the other SDKs use Teardown was called three different things across the five SDKs: shutdown here and on Android, destroy on React Native and web, dispose on Flutter. Same job, three words, and an app sharing code across platforms had to remember which one it was holding. destroy is the name everywhere now. shutdown does the same thing and still works: it is what this SDK shipped, breaking it would serve nobody, and it is meant for deprecation only once moving off it is a one-line change rather than a surprise. Tests check the resulting state rather than trusting that one still calls the other: both clear the shared instance, both allow configuring again afterwards, and calling destroy on an SDK that was never configured does nothing rather than failing. Not compiled locally: no Swift toolchain on this machine. Every symbol was checked against its declaration, and CI builds and tests this on macOS.
Fix the compile errors that have broken every build since v0.2.0 The iOS package has not compiled since the ecommerce module landed. CI recorded the failure at the time and it went unnoticed, so the released v0.2.0 tag does not build: anyone resolving TolinkuSDK through Swift Package Manager gets a package that fails to compile. Two distinct errors. Ecommerce.swift used `cartId ?? await cartIdManager.get()`. Swift does not allow `await` to the right of a non-assignment operator, and the same expression also tripped actor isolation checks because the call was being made outside an async context. Five call sites, now written as an explicit branch, which also makes the hop onto the actor visible where it happens. Tolinku.swift built the ecommerce module with a closure capturing `self` while the stored properties were still being initialised, which Swift rejects. The user ID now lives in a small lock-guarded box, created as a local in init and captured by the closure directly. That removes the use-before-initialisation and the weak-self dance with it, and the closure keeps working without holding a reference back to the SDK instance. Neither error was in the 0.3.0 signal changes; those simply inherited a build that was already broken.
PreviousNext