Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ private static Dictionary<string, object> BuildConfigEcho(AudienceConfig config)
["enableMobileAttribution"] = config.EnableMobileAttribution,
["flushIntervalSeconds"] = config.FlushIntervalSeconds,
["flushSize"] = config.FlushSize,
["packageVersion"] = config.PackageVersion,
["shutdownFlushTimeoutMs"] = config.ShutdownFlushTimeoutMs,
};
if (!string.IsNullOrEmpty(config.PublishableKey))
Expand Down
5 changes: 0 additions & 5 deletions src/Packages/Audience/Runtime/AudienceConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ public class AudienceConfig
/// </summary>
public string? PersistentDataPath { get; set; }

/// <summary>
/// Library version sent on every message.
/// </summary>
public string PackageVersion { get; set; } = Constants.LibraryVersion;

/// <summary>
/// Maximum time <see cref="ImmutableAudience.Shutdown"/> waits for
/// the final flush, in milliseconds.
Expand Down
8 changes: 4 additions & 4 deletions src/Packages/Audience/Runtime/ImmutableAudience.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public static void Track(IEvent evt)
var anonymousId = Identity.GetOrCreate(config.PersistentDataPath!, state.Level);
// ToProperties returns a fresh dict per call, so no snapshot needed.
var userId = state.Level == ConsentLevel.Full ? state.UserId : null;
var msg = MessageBuilder.Track(eventName, anonymousId, userId, config.PackageVersion, properties, config.TestMode);
var msg = MessageBuilder.Track(eventName, anonymousId, userId, Constants.LibraryVersion, properties, config.TestMode);
EnqueueTrack(msg);
}

Expand All @@ -356,7 +356,7 @@ public static void Track(string eventName, Dictionary<string, object>? propertie

var anonymousId = Identity.GetOrCreate(config.PersistentDataPath!, state.Level);
var userId = state.Level == ConsentLevel.Full ? state.UserId : null;
var msg = MessageBuilder.Track(eventName, anonymousId, userId, config.PackageVersion,
var msg = MessageBuilder.Track(eventName, anonymousId, userId, Constants.LibraryVersion,
SnapshotCallerDict(properties), config.TestMode);
EnqueueTrack(msg);
}
Expand Down Expand Up @@ -403,7 +403,7 @@ public static void Identify(string userId, IdentityType identityType, Dictionary

var anonymousId = Identity.GetOrCreate(config.PersistentDataPath!, level);
var msg = MessageBuilder.Identify(anonymousId, userId, identityType.ToLowercaseString(),
config.PackageVersion, SnapshotCallerDict(traits), config.TestMode);
Constants.LibraryVersion, SnapshotCallerDict(traits), config.TestMode);
EnqueueIdentity(msg);
}

Expand Down Expand Up @@ -434,7 +434,7 @@ public static void Alias(string fromId, IdentityType fromType, string toId, Iden
if (config == null) return;

var msg = MessageBuilder.Alias(fromId, fromType.ToLowercaseString(), toId, toType.ToLowercaseString(),
config.PackageVersion, config.TestMode);
Constants.LibraryVersion, config.TestMode);
EnqueueIdentity(msg);
}

Expand Down
Loading