Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 16:47
· 12 commits to main since this release
6879c0d

The first release without a preview suffix. It adds Unity WebGL support through a new Unity package; the public API of the NuGet packages is unchanged. The LRS still passes both ADL conformance batteries in full on SQLite and PostgreSQL (xAPI 2.0.0: 1435 of 1435, 1.0.3: 1365 of 1365), the solution has about 5,300 tests, and the 11 Unity tests pass in the editor, in a Linux IL2CPP player and, locally, in WebGL.

Added

  • samples/LrsHost and the xapi-lrs image: LrsHost:AllowedOrigins (LrsHost__AllowedOrigins in Docker) turns on CORS for the listed origins, so xAPI content in a browser on another origin can use the LRS. It is off by default.
  • tests/Unity: Unity 6.3 tests of Xapi.Core, Xapi.Client and Xapi.Client.Outbox, installed with NuGetForUnity, that run in the editor, in IL2CPP players and in WebGL; CI runs them on Linux against the packages packed from the commit, and tests/Unity/WebGL runs a WebGL build in headless Chromium. See docs/unity.md.
  • A Unity package, io.github.nurullahturkoglu.xapi.unity in src/Xapi.Unity, installed from git: UnityWebRequestHandler, an HttpMessageHandler that sends requests with UnityWebRequest, so XapiClient works in WebGL players, where HttpClient's default handler sends nothing.

Fixed

  • FileOutboxStore.OpenAsync never completed in Unity WebGL players when the store already had a journal, because the netstandard2.0 build read it with asynchronous file I/O, which needs the thread pool. That build now reads the journal synchronously; the net10.0 build is unchanged.