Skip to content

Commit e15f721

Browse files
fix(audience-sample): grant SampleApp.Tests access to internal SSOT and add missing Css.Last
Three latent compile errors in the sample-app Tests assembly that the dotnet test runner did not surface (those tests run only under Unity Test Runner) but Unity flagged on first compile, plus the missing .meta files Unity asks for on next project open. - SDK Runtime AssemblyInfo.cs grants InternalsVisibleTo to "Immutable.Audience.Samples.SampleApp.Tests" so the live-fire fixture can read AudiencePaths, EventNames, EventPropertyKeys, MessageFields, and the rest of the centralised SSOT directly instead of hand-rolling wire strings. - New AssemblyInfo.cs in the sample-app Scripts assembly grants the same access so SampleAppUi, SampleAppCustomEvents, and SampleAppCustomEventPropertyKeys are reachable from the live-fire and UXML-alignment fixtures. - SampleAppUi.Css gains the Last constant ("last"), referenced by AudienceSample.UI when marking the trailing actions row in a typed-event accordion. - Adds the missing .meta files Unity flags on first open: README, Tests/Editor and DeviceCollectorTests, Tests/Runtime/MessagesTests and WireFixture, Tests/Runtime/SampleAppUxmlAlignmentTests, and the new sample-app AssemblyInfo.
1 parent f60680e commit e15f721

10 files changed

Lines changed: 81 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using System.Runtime.CompilerServices;
2+
3+
// Grants test access without exposing these helpers on the SDK consumer surface.
4+
[assembly: InternalsVisibleTo("Immutable.Audience.Samples.SampleApp.Tests")]

examples/audience/Assets/SampleApp/Scripts/AssemblyInfo.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/audience/Assets/SampleApp/Scripts/SampleAppUi.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ internal static class Css
246246
internal const string FieldLabel = "field-label";
247247
internal const string Actions = "actions";
248248

249+
// Marks the trailing actions row in a typed-event accordion so
250+
// the USS rule can drop the bottom border on the last entry.
251+
internal const string Last = "last";
252+
249253
// Status-cell click-to-copy hook.
250254
internal const string StatusValue = "status-value";
251255

examples/audience/Assets/SampleApp/Tests/Runtime/SampleAppUxmlAlignmentTests.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/Audience/README.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/Audience/Runtime/AssemblyInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
// JsonReader.DeserializeObject; both stay internal so their
88
// signatures aren't frozen into the public API.
99
[assembly: InternalsVisibleTo("Immutable.Audience.Samples.SampleApp")]
10+
11+
// SampleApp tests pin against the same internal constants the runtime SDK uses.
12+
[assembly: InternalsVisibleTo("Immutable.Audience.Samples.SampleApp.Tests")]

src/Packages/Audience/Tests/Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/Audience/Tests/Editor/DeviceCollectorTests.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/Audience/Tests/Runtime/MessagesTests.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/Audience/Tests/Runtime/WireFixture.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)