Skip to content

Latest commit

 

History

History
560 lines (414 loc) · 28.9 KB

CHANGELOG.md

File metadata and controls

560 lines (414 loc) · 28.9 KB

Change Log

Version 4.1.5 (9 July, 2021)

  • Fix Add missing nullability identifier
  • Fix Update Readme with SPM guide

Version 4.1.4 (3 May, 2021)

  • Fix Add missing import in Segment.h for Xcode 12.5
  • Fix Revert static lib podspec change.

Version 4.1.3 (27 January, 2021)

  • Fix Pull IDFA if it has changed and rebuild context if necessary.
  • Fix Support Data Residency.
  • Fix Added static lib support for Cocoapods.

Version 4.1.2 (12 November, 2020)

  • Fix Standarized all SDK versions between dependency managers. Migrated to importing modules vs headers. Removed all linked frameworks.
  • Fix Fixed missing userId in traits.
  • Fix Fixed an issue with NSCopying preceding SEGSerialization.
  • Fix Output log messages when events are trimmed from the queue.
  • Fix Added category option to screen calls.

Version 4.1.1 (27 October, 2020)

  • Fix Fixed example projects using old branch for SPM.
  • Fix Repaired mac example project.
  • [Fix] Fixed carthage support for main library and destinations.

Version 4.1.0 (19 October, 2020)

  • New Added Webhook Integration.
  • New Renamed module from Analytics to Segment.
  • Fix Removed unused mobile attribution.
  • New Added ability for customer to make their types serializable.
  • New Added necessary changes for Edge Functions.

Version 4.0.5 (pre-release) (28 August, 2020)

  • Fix Fixed issue where non-serializable types would get into payload.
  • Fix Fixed double device payload.
  • New Deprecated configuration access and updated associated tests.
  • Fix Disregard payloads that fail conversion from plist to json.
  • New Added Swift and Carthage badging.

Version 4.0.4 (pre-release) (14 July, 2020)

  • New Added MacOS support.
  • Fix Fixed SEGLog permissions.
  • Fix Adopted Swift 5 syntax in tests. Removed SwiftTryCatch dependency for tests. Fixed deadlock from #916.

Version 4.0.3 (pre-release) (6 July, 2020)

  • Fix Fixed an issue with old traits overwriting new traits.
  • New Added full example flow with Swift Package Manager compatibility.
  • Fix Fix SwiftUI previews in macOS Catalyst builds.

Version 4.0.2 (pre-release) (25 June, 2020)

  • New Separate public utils from private utils appropriately.
  • New Payload Info & Traits Fixes.
  • New Updated SPM for code coverage compatibility.
  • New Removed Quick and Nimble, updated unit tests.

Version 4.0.1 (pre-release) (18 June, 2020)

  • New Added global state management; Middleware now receive all context data.
  • New change logic for screen naming conventions.
  • New Fixed crash on UISceneDelegate applications.
  • New Renamed middleware methods to match a.js naming.
  • New Added Swift Package Manager support.
  • New Updated class names for Swift.

Version 4.0.0-beta.1 (21st May, 2020)

  • New Makes IDFA support externally/customer driven.

Version 4.0.0-beta.0 (22nd April, 2020)

  • New Added integration middleware functionality.

Version 3.9.0 (5th June, 2020)

  • New Backport defaultSettings feature from 4.x to 3.x.
  • Fix Automatic Screen Tracking with consistent naming conventions

Version 3.8.2 (21st May, 2020)

  • Fix Adds check to make sure cached settings aren't empty before being used.

Version 3.8.1 (12th May, 2020)

  • Fix Fixed a crash in the file storage.
  • Fix Adds back erroneously removed build/version data from App Opened event.
  • Fix Pushlishes filenames use for storage.
  • Fix Fixes incorrect naming in screen reporting.

Version 3.8.0 (22nd April, 2020)

  • Promoting 3.8.x series to stable release. This includes all changes since 3.7.
  • Fix Implement maximum batch request size.

Version 3.8.0-beta.2 (15th April, 2020)

  • Fix Move SEGQueue from UserDefaults to caches directory.
  • Fix Fix issues around plist->json conversion and nil values.
  • Fix Expect dictionary as well as bool for integration enablement.
  • Fix Differences observed in how iOS/android pass userId/anonId; Corrected.
  • Fix Look at previously cached settings before blowing them away.
  • Fix Added experimental feature to enable nanosecond granularity on timestamps.

Version 3.8.0-beta.1 (7th January, 2020)

  • Fix Reload static context data when the app returns from background.
  • Fix Fixes issue where customers can overwrite information regarding integration enablement.
  • Fix Swapped JSON in for the storage format instead of plists.
  • Fix Hardened handling of user-supplied data in event properties.
  • New Added support for SSL pinning.
  • Fix CoreTelephony library is now only included on iOS targets.

Version 3.8.0-beta.0 (25th July, 2019)

  • New: Add iOS Backgrounded Event.
  • Fix: Fix GCD mutual dependency
  • Fix: adding “name” field to payload; updated nimble to version 7.3.4

Version 3.7.0 (22nd July, 2019)

This release promotes 3.7.0-beta.4 to stable.

Version 3.7.0-beta.4 (19th June, 2019)

  • Fix: Remove invalid .clang-format symlink which can cause issues with manual builds.
  • Fix: Collect context.device.type as ios.
  • Fix: Fix Xcode warning.

Version 3.7.0-beta.3 (10th January, 2018)

  • Fix: Allow setting anonymousId
  • Fix: Remove stray log

Version 3.6.10 (19th November, 2018)

  • Fix: Add deep links redaction

Version 3.7.0-beta.2 (15th November, 2018)

  • Fix: Add deep links redaction

Version 3.7.0-beta.1 (23rd October, 2018)

  • Fix: Remove -beta suffix from CFBundleShortVersionString

Version 3.7.0-beta (27th August, 2018)

  • Improvement: Make the maximum queue size configurable

  • Improvement: Make the flush interval configurable

  • Fix: Fix linking issues when automatic framework linking is disabled

  • Fix: Retry HTTP 429 status codes

  • Fix: Send RFC 7231 Formatted User Agent

  • Fix: Ensure queue is always < 1000 items

  • Fix: Reset SEGUserIdKey only on tvOS

  • Fix: Renames GZIP category to prevent collisions

  • Fix: sharedAnalytics returns null before setup

  • Fix: Swift 4 support

Version 3.6.9 (3rd December, 2017)

Version 3.6.8 (28th October, 2017)

This version included a bug that caused the library to not send events to the Segment API. We recommend using version 3.6.9 which fixes this bug and includes all the other improvements available in this release.

  • Fix: Fixes some compiler warnings seen when importing analytics-ios via Swift in a Carthage project.
  • Fix: Fix crash when trying to get screen name in some cases.
  • New: Support schema defaults.
  • New: Send disabled events to Segment so they can be surfaced in the debugger. This won't be sent to any destinations.
  • Fix: Fix date formatting to be RFC 3339 compliant.
  • Fix: Always deliver events asynchronously to integrations.

* Improvement: Run connection factory asynchronously so it doesn't block queuing events.

Version 3.6.7 (24th August, 2017)

  • Use DEBUG preprocessor flag to conditionally disable assertions in prod #711

Version 3.6.6 (15th August, 2017)

  • Update Info.plist version with library version. Add Makefile for building dynamic framework via Carthage. Explicitly distributing frameworks for installation outside of dependency managers.

Version 3.6.5 (7th August, 2017)

  • Default to empty values rather than NSNull for automatically tracked events #706
  • Fix events not persisting to disk when NSNull values are sent by removing keys containing NSNull values from events #707
    • Note this will remove NSNull values from dictionaries and arrays, modifying the tracked data

Version 3.6.4 (19th July, 2017)

  • Add workaround for UIApplication type mismatch with Swift mapping. #704

Version 3.6.3 (7th July, 2017)

  • Fix NSURLSession being prematurely invalidated (#702)

Version 3.6.2 (6th July, 2017)

  • Remove canceling ongoing requests in reset method. (#691)
  • Extract UIApplication to permit linkage with iOS extensions. (#698)
  • Add missing includes to umbrella header (#696)
  • Reuse NSURLSession in SEGHTTPCLient (#699)

Version 3.6.1 (24th May, 2017)

  • Pass through userInfo when posting NSNotification
  • Fix Application Updated event #685
  • Fix Application Opened event #675
  • Fire during applicationWillEnterForeground, not just applicationDidFinishLaunching
  • Adding from_background, referring_application and url to Application Opened event
  • Add [session finishTasksAndInvalidate] to SEGHTTPClient.m to prevent memory leak #679
  • Use a separate queue for endBackgroundTask to fix deadlock (#684)
  • Exposing SEGMiddleware and SEGContext header publicly
  • Removing deprecated APIs
  • Adding several test suites - reaching 70% coverage

Version 3.6.0 (28th February, 2017)

  • Promoting 3.6.0-rc to stable release 3.6.0 after sufficient time and exposure in pre-release.

Version 3.6.0-rc (10th January, 2017)

  • Publicly exposing the middleware API, allowing custom middlewares to be inserted into the chain
  • Added SEGBlockMiddleware helper to make it easier to create middleware out of anonymous functions

Version 3.6.0-beta (1st December, 2016)

  • Major refactor laying the groundwork for a new middleware based architecture that will enable a whole new class of capabilities for analytics-ios

Version 3.5.5 (30th November, 2016)

  • Fix: Fix issue where calling [analytics continueUserActivity:activity] would cause events in the application session to be dropped. Events from prior and future sessions will be unaffected.

Version 3.5.4 (28th November, 2016)

  • Fix: Fall back to using Segment integration when we cannot get settings.

Version 3.5.3 (7th November, 2016)

  • Update cdn hostname from cdn.segment.com to cdn-settings.segment.com

Version 3.5.2 (10th October, 2016)

  • Fix: Fixed regression introduced in 3.5.0 that would generate a new anonymousId on every app launch.

Version 3.5.1 (5th October, 2016)

  • Not a recommended version. Regression introduced in 3.5.0 will generate a new anonymousId on every app launch.

  • Fix: Removed automatic bluetooth and location info collection to workaround app submission issues.

Version 3.5.0 (12th September, 2016)

  • Not a recommended version. Regression introduced in 3.5.0 will generate a new anonymousId on every app launch.

  • New: Adds a SEGCrypto API that can be used to configure the at rest encryption strategy for the client.

SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];

// Set a custom crypto implementation. An AES-256 implementation is provided out of the box.
configuration.crypto = [SEGAES256Crypto initWithPassword:"YOUR_PRIVATE_PASSWORD"];

// Set any other custom configuration options.
...

// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]
  • New: Add the ability for the SDK to natively report attribution information via Segment integrations enabled for your project, without needing to bundle their SDKs. Attribution information is sent as a track call as documented in the mobile lifecycle spec.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];

// Enable attribution tracking.
configuration.trackAttributionData = @YES;

// Set any other custom configuration options.
...

// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]
  • New: Add the ability for the SDK to disable bluetooth collection. Going forwards, bluetooth information will not be collected by default. This is because iOS 10 requires explicit documentation on why the CoreBluetooth APIs are accessed. If you enable this flag, your app's Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data. On this note, you should do the same for NSLocationAlwaysUsageDescription if you have shouldUseLocationServices set to @YES. If you are linking against iOS 10, you'll want to update to this version to prevent your app submission from being rejected (or provide NSBluetoothPeripheralUsageDescription and/or NSLocationAlwaysUsageDescription descriptions in your app's Info.plist).
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];

// Enable bluetooth collection.
configuration.shouldUseBluetooth = @YES;

// Set any other custom configuration options.
...

// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]

Version 3.4.0 (1st September, 2016)

  • New: Adds a SEGRequestFactory API that can be used to configure the HTTP requests made by Segment.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];

// Set a custom request factory which allows you to modify the way the library creates an HTTP request.
// In this case, we're transforming the URL to point to our own custom non-Segment host.
configuration.requestFactory = ^(NSURL *url) {
    NSURLComponents \*components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
    // Replace YOUR_PROXY_HOST with the address of your proxy, e.g. aba64da6.ngrok.io.
    components.host = @"YOUR_PROXY_HOST";
    NSURL \*transformedURL = components.URL;
    return [NSMutableURLRequest requestWithURL:transformedURL];
};

// Set any other custom configuration options.
...

// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]
  • New: Add method to retrieve anonymous ID.
[[SEGAnalytics sharedAnalytics] getAnonymousId];
  • Improvement: Store context object with every event. This makes it more accurate collecting the context at the time the event was observed, rather than uploaded.

  • Improvement: Automatic screen tracking improvements, specifically in the case when the root view is a UINavigationController.

  • Improvement: Don't send Segment.io: false in integration dictionary.

  • Improvement: Friendly assert messages.

  • Fix: Namespace GZIP extension to avoid conflicts.

  • Fix: Fix assertion in identify method.

  • Fix: Static analyzer warnings for reachability implementation.

  • Fix: Handle case where screen name is empty.

Version 3.3.0 (08-05-2016)

  • New: Add Carthage support.
  • Fix: Flush timer behaviour. Previously it was not being invoked periodically as expected.
  • New: Automatically track campaign data.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackPushNotifications = YES;
[SEGAnalytics setupWithConfiguration:configuration];
  • New: Automatically track deep links. Please note that you'll still need to call the continueUserActivity and openURL methods on the analytics client.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackDeepLinks = YES;
[SEGAnalytics setupWithConfiguration:configuration];
  • Improvement: Limit queue size to 1000. This will prevent crashes/memory issues from the queue being too large.
  • Fix: Replace Foundation import with UIKit import.
  • Improvement: Exclude cache files from backup.
  • New: Add tvOS support.
  • New: Update context object with referrer information.

Version 3.2.6 (07-10-2016)

  • Improvement: Handle case when root view is a navigation controller.
  • Improvement: More user friendly assert messages.
  • New: Add method to retrieve anonymousID.
  • New: Carthage support.
  • Fix: Case when ViewController title is an empty string.
  • Improvement: Fixes the following static analyzer warnings.
SEGReachability.m:115:9: Potential leak of an object stored into 'ref'
SEGReachability.m:131:9: Potential leak of an object stored into 'ref'

Version 3.2.5 (06-30-2016)

  • Fix: Correctly skip sending events for disabled events in the tracking plan.

Version 3.2.4 (06-08-2016)

  • Fix: Handle case when ViewController is named simply "ViewController".

Version 3.2.3 (06-08-2016)

  • Fix: Handle case when ViewController is named simply "ViewController".
  • Fix: Namespace NSData GZIP extension methods to avoid conflicts.
  • Fix: Build and version were reversed in automatic application lifecycle tracking.
  • Instrument automatic in app purchase tracking. Enable this during initialization.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackInAppPurchases = YES;
[SEGAnalytics setupWithConfiguration:configuration];

Version 3.2.2 (06-06-2016)

  • Improvement: gzip http request body.
  • Fix: Implement workaround for CTTelephonyNetworkInfo bug.

Version 3.2.1 (06-03-2016)

  • Fix potential duplication of events in queue when there are events queued in NSUserDefaults and on disk.

Version 3.2.0 (06-01-2016)

  • Analytics-iOS Core SDK now includes support for iOS 7.0+ (Previously 8.0+). Bundled integrations may have different OS version requirements, please check the specific integration you use for details.

Version 3.1.2 (05-31-2016)

  • Store event queue and traits to disk instead of NSUserDefaults. We will check for queue/traits in NSUserDefaults and copy to disk if they exist.

Version 3.1.1 (05-24-2016)

  • Instrument automatic screen view tracking. Enable this during initialization.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.recordScreenViews = YES;
[SEGAnalytics setupWithConfiguration:configuration];

Version 3.1.0 (05-09-2016)

  • Instrument automatic application lifecycle event tracking. Enable this during initialization.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackApplicationLifecycleEvents = YES;
[SEGAnalytics setupWithConfiguration:configuration];
  • Make SEGAnalyticsIntegrationDidStart public (use this to be notified when an integration is initialized).
  • Fixed crashes due to NSNotificationCenter observers not being removed.

Version 3.0.7 (02-01-2016)

  • Make initWithConfiguration public.

Version 3.0.6 (01-12-2016)

  • Fix crash with forwarding notification info to integrations.

Version 3.0.5 (01-08-2016)

  • Fix crash with using NSUserDefaults.
  • Fix issue with location updates.
  • Forward notification info to integrations.

Version 3.0.4 (01-05-2016)

  • Use NSUserDefaults for persistence where possible.
  • Fix how we detect whether the device is offline or not.
  • Correctly send context.library.version.

Version 3.0.3 (12-11-2015)

  • Deliver application lifecycle and push events synchronously to integrations when possible.

Version 3.0.2 (12-07-2015)

  • Add ability to set a custom anonymous ID.

Version 3.0.1 (11-24-2015)

  • Fix bug with overriding userId in alias calls (this bug would manifest when trying to alias anonymous users).

Version 3.0.0 (11-24-2015)

  • v3 Release. This release restructures bundled integrations, which requires a few additional steps.

Add the integration dependencies.

pod `Segment`
pod `Segment-Bugsnag`
pod `Segment-Branch`
...

Register them in your configuration when you initialize the SDK.

SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];

// Add any of your bundled integrations.
config use:[SEGGoogleAnalyticsIntegrationFactory instance];
config use:[BNCBranchIntegrationFactory instance];
...

[SEGAnalytics setupWithConfiguration:config];

Version 3.0.4-alpha (10-24-2015)

  • Adds API to track notification lifecycle.

Version 3.0.3-alpha (10-21-2015)

  • Fixes bug where traits in identify and group were ignored.

Version 3.0.2-alpha (10-11-2015)

  • Fixes pod lib lint warnings.