Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4.1.10 #9

Draft
wants to merge 119 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
6674b85
Update Nimble to build with Xcode 10.2
humblehacker Jul 16, 2019
491eb35
Add name and properties to auto screen reporting
humblehacker Jul 24, 2018
17706b6
Make seg_topViewController handle tab and custom container VCs
humblehacker Jul 25, 2018
a323d5c
Simplify SEGScreenReporting protocol
humblehacker Sep 10, 2018
4099266
Add tests for seg_topViewController
humblehacker Jul 16, 2019
89ae097
Update config.yml
bsneed Feb 10, 2020
07515b3
[tvOS] Move SEGQueue from UserDefaults to caches directory (#861)
iMacHumphries Feb 11, 2020
9ce3779
Fix issues around plist->json conversion & nil values (#862)
bsneed Feb 11, 2020
956b4eb
Address Issue #851; Expect dictionary as well for for integration ena…
bsneed Feb 11, 2020
3ed8340
Differences observed in how iOS/android pass userId/anonId; Corrected…
bsneed Feb 12, 2020
0891ee3
Look at previously cached settings before blowing them away. (#866)
bsneed Feb 21, 2020
e45ea34
Bsneed/timestamps (#876)
bsneed Apr 15, 2020
0de302b
Prepare for release 3.8.0-beta.2.
Apr 15, 2020
be8b8da
Fixed warning.
Apr 15, 2020
951d057
Updated carthage files.
Apr 15, 2020
8158687
Implement maximum batch request size (#874)
cristi-lupu Apr 15, 2020
ac07c5f
Added Integration Middleware capabilities (#879)
bsneed Apr 22, 2020
02b8341
Prepare for release 3.8.0.
Apr 22, 2020
df608de
Updated carthage files.
Apr 22, 2020
40efc99
Merge branch 'releases/3.8.0'
Apr 22, 2020
321e13e
Prepare for release 4.0.0-beta.0.
Apr 22, 2020
ece49ae
Updated carthage files.
Apr 22, 2020
1c2f167
fixed a crash in file storage when trying to get a string stored usin…
arietis Apr 23, 2020
a6f08b2
fixed a crash in file storage when trying to get a string stored usin…
arietis Apr 23, 2020
cb623dc
Fixed issue where build/version were removed from Application Opened …
May 1, 2020
4ed94d7
Publish filenames used for data storage (#865)
bejo May 1, 2020
e848f2a
Publish filenames used for data storage (#865)
bejo May 1, 2020
be66eda
Remove tvos test from scheme setup.
May 6, 2020
87fba98
Fixed selector reference.
May 6, 2020
9d43b3a
Removed unused code.
May 6, 2020
75679f7
Merge branch 'master' of github.com:humblehacker/analytics-ios into b…
May 6, 2020
b5cae49
Merge branch 'bsneed/releases/3.8.1'
May 12, 2020
946147c
Update CHANGELOG.md
bsneed May 12, 2020
86fe29f
Add ability to set default settings is segment.com can't be reached. …
bsneed May 20, 2020
634fe85
Fixed defaultSettings documentation.
May 20, 2020
cb4ac3c
Add previouslyCachedSettings count (#889)
alanjcharles May 20, 2020
6a8cfdf
Update CHANGELOG.md
bsneed May 21, 2020
0ceac3e
Allow customers to set default settings values if segment.com unreach…
bsneed May 21, 2020
67a4ea8
Makes IDFA support externally/customer driven. (#892)
bsneed May 21, 2020
be55af3
Prepare for release 4.0.0-beta.1
May 21, 2020
7f2feed
Updated tests to remove Alamofire (#895)
migs647 May 29, 2020
7197a8e
Renamed middleware methods to match a.js naming. (#896)
bsneed May 29, 2020
57d3a4e
Merged 3.9 changelog; Bumped CI xcode version.
Jun 5, 2020
59f059b
change logic for naming conventions (#885)
kowongh Jun 5, 2020
0fc08f0
LIB-83: Fixed crash on UISceneDelegate applications (#899)
migs647 Jun 8, 2020
1d73743
Added application object back to notifications (#900)
migs647 Jun 9, 2020
e916745
LIB-35: Updated class names for Swift (#902)
migs647 Jun 11, 2020
6800f27
Added Swift Package Manager support (#904)
migs647 Jun 17, 2020
247db49
Add global state management (#905)
bsneed Jun 18, 2020
b94d933
Prepare for release 4.0.1.
Jun 18, 2020
00aad5f
Update cartfile.resolved.
Jun 23, 2020
c5bcbd5
LIBMOBILE-77: Removed Quick and Nimble, updated unit tests (#909)
migs647 Jun 23, 2020
929fac2
Merge branch 'master' of github.com:segmentio/analytics-ios
Jun 24, 2020
60e6abb
Spm update (#911)
migs647 Jun 25, 2020
61f487d
Payload Info & Traits Fixes (#912)
bsneed Jun 25, 2020
4e3df7a
Separate public utils from private utils appropriately (#913)
bsneed Jun 25, 2020
ed0532b
Prepare for release 4.0.2
migs647 Jun 25, 2020
2298afa
Fix SwiftUI previews in macOS Catalyst builds (#914)
mattgallagher Jun 30, 2020
5158e55
Full example (#915)
migs647 Jul 6, 2020
b82f0ed
LIBMOBILE-109: Updated an issue with new traits not overriding old tr…
migs647 Jul 6, 2020
fd234bf
Prepare for release 4.0.3
migs647 Jul 6, 2020
b34a4f5
Miscellaneous Fixes (#920)
bsneed Jul 13, 2020
62dfb86
Fixed SEGLog permissions (#921)
migs647 Jul 13, 2020
4710ca5
Migs647/macconversion (#918)
migs647 Jul 14, 2020
3207917
Prepare for release 4.0.4
migs647 Jul 14, 2020
e19d204
Added Carthage and SwiftPM badge
migs647 Jul 17, 2020
abc43e6
Added Carthage and SwiftPM badge (#922)
migs647 Jul 17, 2020
34d00ff
Disregard payloads that fail conversion from plist to json backing (#…
maciesielka Jul 22, 2020
1de8814
Deprecated configuration access and updated associated tests
migs647 Aug 12, 2020
1a09583
Merge pull request #930 from segmentio/migs647/remove-public-configur…
migs647 Aug 12, 2020
81c9777
[LIBMOBILE-149] Fixed double device payload
migs647 Aug 18, 2020
de38545
Added stubs for edge functions. (#932)
bsneed Aug 18, 2020
2630a2b
Merge pull request #931 from segmentio/LIBMOBILE-149-Double-Device
migs647 Aug 19, 2020
a73ef3b
Fixed property access
Aug 19, 2020
594d049
Fixed issue where non-serializable types would get into payload (#937)
bsneed Aug 24, 2020
dc73445
Prepare for release 4.0.5
migs647 Aug 28, 2020
2cb6864
Added ability for us and customers to make custom types serializable …
bsneed Sep 9, 2020
4c76dc9
delete trackAttributionData config property and remove interactions w…
prayansh Sep 16, 2020
e62ae30
Merge pull request #941 from segmentio/pray/remove-attribution
prayansh Sep 17, 2020
239c96e
Swift Rename (#942)
bsneed Sep 21, 2020
7a8387b
Add WebhookIntegration (#945)
prayansh Sep 30, 2020
3b66f47
Fix configuration setting for edgefn (#950)
bsneed Oct 15, 2020
0468e06
Add accessors for edge function data
Oct 15, 2020
4b6de5d
made dataBridgeSnapshot nullable
Oct 15, 2020
5f3d3e8
fixed edge function setter
Oct 15, 2020
f5f92e2
Prepare for release 4.1.0.
Oct 19, 2020
8ada689
Repaired mac example project (#953)
migs647 Oct 27, 2020
c399f3e
Fixed example projects using old branch for swift (#955)
migs647 Oct 27, 2020
e353277
Prepare for release 4.1.1
migs647 Oct 27, 2020
f5bdc16
Added category option to screen calls (#956)
bsneed Oct 28, 2020
54f19e8
Output a log message when events are trimmed from the queue (#957)
bsneed Oct 28, 2020
68efb57
Fixed issue w/ NSCopying being used before SEGSerialization (#962)
bsneed Nov 4, 2020
70f5c4e
Fix issue where userId was not being set within traits like it should…
bsneed Nov 5, 2020
9cab023
Bsneed/version fixes (#966)
migs647 Nov 12, 2020
d88d49d
Prepare for release 4.1.2
migs647 Nov 12, 2020
c40da41
Added static lib support for cocoapods (#968)
migs647 Nov 20, 2020
fa0d3c5
Data Residency Changes (#973)
bsneed Dec 10, 2020
018ebe4
Pull IDFA if it has changed and rebuild context if necessary. (#982)
bsneed Jan 27, 2021
fb56c30
Prepare for release 4.1.3.
Jan 27, 2021
2cb9021
Fix the build of the Swift Package with Xcode 12.5 beta 1 (#983)
layoutSubviews Feb 1, 2021
da87008
Fixed issue where context modification is affected between events. (#…
bsneed Feb 22, 2021
ce4280d
Fix new warning in Xcode 12.5 Beta 2 (12E5234g): "Cast to smaller int…
dmcgloin Mar 2, 2021
e35f1c9
Pushed save of anonId higher up into the flow. (#977)
bsneed Mar 9, 2021
7eefc66
Remove circleci config (#992)
bsneed Apr 15, 2021
d9f5ca9
Fixed issue where incorrect segment settings could be built (#993)
bsneed Apr 23, 2021
ad3c2a5
Add missing import in Segment.h (#994)
JagCesar Apr 27, 2021
7f7e67e
Revert static lib podspec change. (#995)
bsneed May 3, 2021
187faa8
Prepare for release 4.1.4.
May 3, 2021
b5bede4
Fixed changelog info
May 3, 2021
d1bf7a4
Added missing nullability identifier (#999)
viktor-malieichyk May 13, 2021
01e9c32
Migs647/spm how to (#1002)
migs647 May 21, 2021
3a392e9
Added note about Analytics-Swift Pilot to Readme.
bsneed May 26, 2021
6e5dc12
Prepare for release 4.1.5
alanjcharles Jul 9, 2021
d93ee39
Fix deadlock on first app launch (#1009)
piotrtobolski Oct 5, 2021
d932b69
removed unused exclude (#1016)
FelixHerrmann Oct 5, 2021
fc64997
Prepare for release 4.1.6.
Oct 5, 2021
b9de0e7
update swift to beta (#1018)
prayansh Oct 7, 2021
8805ff9
Version 4.1.10
ov1d1u Dec 22, 2021
748b7ad
Merge branch 'master' into v4.1.10
ov1d1u Dec 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .circleci/config.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ DerivedData
# Bundler
.bundle

# Swift Package Manager
.build
.swiftpm

Carthage

# CocoaPods typically recommends against ignoring the Pods directory
Expand All @@ -32,3 +36,4 @@ Carthage
# itself has no pod dependencies, only our tests do.
Pods/
.clang-format
.idea

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EADEB85A1DECD080005322DA"
BuildableName = "Metarouter.framework"
BlueprintName = "Metarouter"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "Analytics.framework"
BlueprintName = "Analytics"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -32,9 +32,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EADEB85A1DECD080005322DA"
BuildableName = "Metarouter.framework"
BlueprintName = "Metarouter"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "Analytics.framework"
BlueprintName = "Analytics"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
Expand All @@ -43,9 +43,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EADEB8691DECD0EF005322DA"
BuildableName = "MetarouterTests.xctest"
BlueprintName = "MetarouterTests"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "AnalyticsTests.xctest"
BlueprintName = "AnalyticsTests"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand All @@ -64,9 +64,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EADEB85A1DECD080005322DA"
BuildableName = "Metarouter.framework"
BlueprintName = "Metarouter"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "Analytics.framework"
BlueprintName = "Analytics"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</MacroExpansion>
</LaunchAction>
Expand All @@ -80,9 +80,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EADEB85A1DECD080005322DA"
BuildableName = "Metarouter.framework"
BlueprintName = "Metarouter"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "Analytics.framework"
BlueprintName = "Analytics"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EADEB8691DECD0EF005322DA"
BuildableName = "MetarouterTests.xctest"
BlueprintName = "MetarouterTests"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "AnalyticsTests.xctest"
BlueprintName = "AnalyticsTests"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</MacroExpansion>
<EnvironmentVariables>
Expand All @@ -38,9 +38,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EADEB8691DECD0EF005322DA"
BuildableName = "MetarouterTests.xctest"
BlueprintName = "MetarouterTests"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "AnalyticsTests.xctest"
BlueprintName = "AnalyticsTests"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9D8CE58B23EE014E00197D0C"
BuildableName = "MetarouterTestsTVOS.xctest"
BlueprintName = "MetarouterTestsTVOS"
ReferencedContainer = "container:Metarouter.xcodeproj">
BuildableName = "SegmentTestsTVOS.xctest"
BlueprintName = "SegmentTestsTVOS"
ReferencedContainer = "container:Analytics.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand Down
21 changes: 18 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
Change Log
==========
Version 4.1.5 *(2 July, 2021)*
* [Fix] Apply Metarouter branding
Version 4.2.0 *(22 December, 2021)*
-----------------------------
* [Fix] Removed unnecessary renames so syncing with upstream is simpler

Version 4.1.9 *(2 November, 2021)*
-----------------------------
* [New] Updated codebase with upstream (4.1.6 version)

Version 4.1.8 *(9 July, 2021)*
-----------------------------
* [New] Updated codebase with upstream

Version 4.1.5 *(9 July, 2021)*
-----------------------------
* [Fix](https://github.com/segmentio/analytics-ios/pull/999) Add missing nullability identifier
* [Fix](https://github.com/segmentio/analytics-ios/pull/1002) Update Readme with SPM guide

Version 4.1.4 *(3 May, 2021)*
-----------------------------
* [Fix](https://github.com/segmentio/analytics-ios/pull/994) Add missing import in Segment.h for Xcode 12.5
Expand Down Expand Up @@ -554,4 +569,4 @@ Version 3.0.3-alpha *(10-21-2015)*
Version 3.0.2-alpha *(10-11-2015)*
----------------------------------

* Fixes `pod lib lint` warnings.
* Fixes `pod lib lint` warnings.
2 changes: 1 addition & 1 deletion Examples/CarthageExample/Cartfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "segmentio/analytics-ios" "4.1.6"
github "segmentio/analytics-ios" "4.1.10"
# Use a local project when debugging
# git "~/Code/segmentio/analytics-ios/" "master"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
XC_ARGS := -project Segment.xcodeproj GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
XC_ARGS := -project Analytics.xcodeproj GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
IOS_XCARGS := $(XC_ARGS) -destination "platform=iOS Simulator,name=iPhone 11" -sdk iphonesimulator
TVOS_XCARGS := $(XC_ARGS) -destination "platform=tvOS Simulator,name=Apple TV"
MACOS_XCARGS := $(XC_ARGS) -destination "platform=macOS"
Expand Down
10 changes: 5 additions & 5 deletions MetarouterAnalytics.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "MetarouterAnalytics"
s.module_name = "Metarouter"
s.version = "4.1.7"
s.version = "4.1.10"
s.summary = "The hassle-free way to add analytics to your iOS app."

s.description = <<-DESC
Expand All @@ -12,15 +12,15 @@ Pod::Spec.new do |s|
s.homepage = "http://metarouter.io/"
s.license = { :type => 'MIT' }
s.author = { "Astronomer" => "[email protected]" }
s.source = { :git => "https://github.com/metarouter/analytics-ios.git", :tag => s.version.to_s }
s.source = { :git => "https://github.com/metarouterio/analytics-ios.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/metarouter'

s.ios.deployment_target = '10.0'
s.tvos.deployment_target = '10.0'
s.osx.deployment_target = '10.13'

s.source_files = [
'Metarouter/Classes/**/*.{h,m}',
'Metarouter/Internal/**/*.{h,m}'
'Segment/Classes/**/*.{h,m}',
'Segment/Internal/**/*.{h,m}'
]
end
end
5 changes: 2 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ let package = Package(
.target(
name: "Metarouter",
dependencies: [],
path: "Metarouter/",
exclude: ["SwiftSources"],
path: "Segment/",
sources: ["Classes", "Internal"],
publicHeadersPath: "Classes",
cSettings: [
Expand All @@ -34,4 +33,4 @@ let package = Package(
]
)
]
)
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ Refer to the Quickstart documentation at [https://docs.metarouter.io/docs/quick-

## Documentation

More detailed documentation is available at [https://docs.metarouter.io/docs/analyticsjs-for-ios](https://docs.metarouter.io/docs/analyticsjs-for-ios).
More detailed documentation is available at [https://docs.metarouter.io/docs/analyticsjs-for-ios](https://docs.metarouter.io/docs/analyticsjs-for-ios).
4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Releasing
=========

1. Update the version in `SEGAnalytics.m`, `Analytics.podspec`, `Segment/Info.plist` and `Examples/CarthageExample/Cartfile` to the next release version.
1. Update the version in `SEGAnalytics.m`, `MetarouterAnalytics.podspec` and `Examples/CarthageExample/Cartfile` to the next release version.
2. Update the `CHANGELOG.md` for the impending release.
3. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version).
4. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version).
5. `git push && git push --tags`.
6. `pod trunk push Analytics.podspec`.
6. `pod trunk push MetarouterAnalytics.podspec`.
7. Next we'll create a dynamic framework for manual installation leveraging Carthage.
* `cd Examples/CarthageExample`.
* `make clean` to be safe then `make build`.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ - (instancetype)initWithConfiguration:(SEGAnalyticsConfiguration *)configuration
// In swift this would not have been OK... But hey.. It's objc
// TODO: Figure out if this is really the best way to do things here.
self.integrationsManager = [[SEGIntegrationsManager alloc] initWithAnalytics:self];

self.runner = [[SEGMiddlewareRunner alloc] initWithMiddleware:
[configuration.sourceMiddleware ?: @[] arrayByAddingObject:self.integrationsManager]];

Expand Down Expand Up @@ -110,7 +110,7 @@ - (instancetype)initWithConfiguration:(SEGAnalyticsConfiguration *)configuration
}
}
#endif

[SEGState sharedInstance].configuration = configuration;
[[SEGState sharedInstance].context updateStaticContext];
}
Expand Down Expand Up @@ -229,7 +229,7 @@ - (void)_applicationWillEnterForeground
@"version" : currentVersion ?: @"",
@"build" : currentBuild ?: @"",
}];

[[SEGState sharedInstance].context updateStaticContext];
}

Expand Down Expand Up @@ -270,7 +270,7 @@ - (void)identify:(NSString *)userId traits:(NSDictionary *)traits
- (void)identify:(NSString *)userId traits:(NSDictionary *)traits options:(NSDictionary *)options
{
NSCAssert2(userId.length > 0 || traits.count > 0, @"either userId (%@) or traits (%@) must be provided.", userId, traits);

// this is done here to match functionality on android where these are inserted BEFORE being spread out amongst destinations.
// it will be set globally later when it runs through SEGIntegrationManager.identify.
NSString *anonId = [options objectForKey:@"anonymousId"];
Expand All @@ -297,7 +297,7 @@ - (void)identify:(NSString *)userId traits:(NSDictionary *)traits options:(NSDic
// merge w/ existing traits and set them.
[existingTraitsCopy addEntriesFromDictionary:traitsCopy];
[SEGState sharedInstance].userInfo.traits = existingTraitsCopy;

[self run:SEGEventTypeIdentify payload:
[[SEGIdentifyPayload alloc] initWithUserId:userId
anonymousId:anonId
Expand Down Expand Up @@ -483,7 +483,7 @@ - (void)openURL:(NSURL *)url options:(NSDictionary *)options
if (!self.oneTimeConfiguration.trackDeepLinks) {
return;
}

NSString *urlString = url.absoluteString;
[SEGState sharedInstance].context.referrer = @{
@"url" : urlString,
Expand Down Expand Up @@ -549,7 +549,7 @@ + (NSString *)version
{
// this has to match the actual version, NOT what's in info.plist
// because Apple only accepts X.X.X as versions in the review process.
return @"4.1.4";
return @"4.1.10";
}

#pragma mark - Helpers
Expand All @@ -559,7 +559,7 @@ - (void)run:(SEGEventType)eventType payload:(SEGPayload *)payload
if (!self.enabled) {
return;
}

if (getAdTrackingEnabled(self.oneTimeConfiguration)) {
// if idfa has changed since last we looked, we need to rebuild
// the static context to pick up the change.
Expand All @@ -569,13 +569,13 @@ - (void)run:(SEGEventType)eventType payload:(SEGPayload *)payload
[[SEGState sharedInstance].context updateStaticContext];
}
}

if (self.oneTimeConfiguration.experimental.nanosecondTimestamps) {
payload.timestamp = iso8601NanoFormattedString([NSDate date]);
} else {
payload.timestamp = iso8601FormattedString([NSDate date]);
}

SEGContext *context = [[[SEGContext alloc] initWithAnalytics:self] modify:^(id<SEGMutableContext> _Nonnull ctx) {
ctx.eventType = eventType;
ctx.payload = payload;
Expand All @@ -587,7 +587,7 @@ - (void)run:(SEGEventType)eventType payload:(SEGPayload *)payload
ctx.payload.anonymousId = [SEGState sharedInstance].userInfo.anonymousId;
}
}];

// Could probably do more things with callback later, but we don't use it yet.
[self.runner run:context callback:nil];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ NS_SWIFT_NAME(AnalyticsConfiguration)

/**
* Creates and returns a configuration with default settings and the given write key.
* This will use the API host `https://e.metarouter.io/v1` as the default.
* This will use the API host `https://api.segment.io/v1` as the default.
*
* @param writeKey Your project's write key from segment.io.
*/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading