You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(audience): SSOT message constants and build scaffolding
Groundwork for the ImmutableAudience singleton and the forthcoming
Unity integration layer. Pure refactor - no runtime behaviour change.
Constants:
- Core/Constants.cs: adds LibraryVersion ("0.1.0") so the message
builder and tests share one source of truth; ConsentUrl and
DataUrl helpers matching the existing MessagesUrl shape;
MessageTypes ("track"/"identify"/"alias") and MessageFields
("type"/"userId") - values that cross module boundaries inside
the SDK and were previously stringly-coded in multiple places.
- Events/MessageBuilder.cs: swap the six string literals for the
new MessageTypes / MessageFields constants.
- Tests/Runtime/ConstantsTests.cs: covers the BaseUrl/MessagesUrl/
ConsentUrl/DataUrl sandbox-vs-prod selection.
Scaffolding (forward-pointing for the Unity layer that follows):
- .gitignore: ignore bin/.
- AssemblyInfo: grant internals to Immutable.Audience.Unity.
- Audience.Runtime.csproj: exclude Unity/ from the headless
dotnet-SDK build so Audience.Tests compiles once the Unity
integration lands. No-op until Unity/ files exist.
0 commit comments