Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ced2271
Add standalone Tizen Essentials package for .NET 11
Redth Aug 26, 2026
b97037f
Merge redth-tizen-foundation-import into the Essentials port
Redth Aug 26, 2026
7c91a31
Merge redth-tizen-core-vertical-slice (fcf3cca) and adopt its API15 lane
Redth Aug 26, 2026
9608cc8
Merge core head 4eb9163 and fix the PublicAPI landmine it exposed
Redth Aug 26, 2026
7811e76
Assert the Essentials test count in CI, not just the exit code
Redth Aug 26, 2026
20e2ae8
Read the Essentials test count from a report file, not console text
Redth Aug 26, 2026
0a3348b
Merge commit '2610231' into redth-tizen-essentials-package
Redth Aug 26, 2026
16483a9
Merge core head 2610231 (MAUI 26426.4) and pin the Locale gap with a …
Redth Aug 26, 2026
8ab376f
Merge commit 'da6becf' into redth-tizen-essentials-package
Redth Aug 26, 2026
420cc58
Address Essentials review: permission truthfulness, DI bridge, and na…
Redth Aug 26, 2026
b23f56b
Merge commit 'ac3dba6' into redth-tizen-essentials-package
Redth Aug 26, 2026
c409789
Merge core 4e256f1 and stop clobbering the imported Essentials baseline
Redth Aug 27, 2026
e58d8e6
Update coverage doc test count and baseline path
Redth Aug 27, 2026
4a8bb7f
Close Essentials migration contract gaps
Redth Aug 27, 2026
3fc6ff3
Harden Essentials platform contracts
Redth Aug 27, 2026
36d9ab3
Prevent legacy storage resurrection
Redth Aug 27, 2026
d7e0bae
Serialize storage and speech lifetimes
Redth Aug 27, 2026
ce7aa87
Harden secure storage and TTS lifetimes
Redth Aug 27, 2026
f6b416f
Enforce secure aliases and TTS dispatching
Redth Aug 27, 2026
74ca0e4
Close TTS dispatcher race windows
Redth Aug 27, 2026
396de81
Fix Tizen app control payloads
Redth Aug 27, 2026
09e8b33
Fix path-only Tizen file payloads
Redth Aug 27, 2026
08e037a
Merge finalized Tizen backend into Essentials
Redth Aug 29, 2026
85f6313
Harden Tizen Essentials native contracts
Redth Aug 29, 2026
454cc63
Make queued image lifecycle test deterministic
Redth Aug 29, 2026
a8638f4
Close Tizen Essentials lifecycle races
Redth Aug 29, 2026
a2b1ef0
Correct secure empty state and event generations
Redth Aug 29, 2026
6cd5c10
Remove cached-only API15 documentation dependency
Redth Aug 29, 2026
8d40456
Bind native events to subscription generations
Redth Aug 29, 2026
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
14 changes: 14 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@
API surface change is expected from that republish.
-->
<PackageVersion Include="Tizen.UIExtensions.NUI" Version="0.9.2" />

<!--
Consumed ONLY by src/Maui.Tizen.Essentials.HostVerification. The shipping Tizen
projects get their Tizen assemblies from the Samsung workload reference pack
(Samsung.Tizen.Ref.API15); this package is the workload-free stand-in that lets the
ported Essentials sources be executed in tests today. 13.0.0.x == API level 13, the
closest published Tizen.NET to the API15 reference pack the product targets.
-->
<PackageVersion Include="Tizen.NET" Version="13.0.0.19198" />
</ItemGroup>

<ItemGroup Label="Build tasks">
Expand All @@ -87,6 +96,11 @@
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
</ItemGroup>

<ItemGroup Label="Dependency injection">
<!-- Pinned to the version Microsoft.Maui.Core resolves, so CPM cannot downgrade it. -->
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="11.0.0-preview.7.26381.103" />
</ItemGroup>

<ItemGroup Label="Migration tooling">
<!-- Used by eng/tools/PackageVerify to perform real NuGet package signature verification
(integrity + trust chain), not just a bare SignedCms check on the .signature.p7s blob in
Expand Down
3 changes: 3 additions & 0 deletions Maui.Tizen.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<Project Path="src/Maui.Tizen.Core/Maui.Tizen.Core.csproj" />
<Project Path="src/Maui.Tizen.Controls/Maui.Tizen.Controls.csproj" />
<Project Path="src/Maui.Tizen.Essentials/Maui.Tizen.Essentials.csproj" />
<Project Path="src/Maui.Tizen.Essentials.HostVerification/Maui.Tizen.Essentials.HostVerification.csproj" />
<Project Path="src/Maui.Tizen.BlazorWebView/Maui.Tizen.BlazorWebView.csproj" />
<Project Path="src/Maui.Tizen.Maps/Maui.Tizen.Maps.csproj" />
<Project Path="src/Maui.Tizen.Graphics/Maui.Tizen.Graphics.csproj" />
Expand All @@ -34,6 +35,8 @@
<Project Path="tests/UnitTests/Maui.Tizen.UnitTests.csproj" />
<Project Path="tests/Maui.Tizen.Core.UnitTests/Maui.Tizen.Core.UnitTests.csproj" />
<Project Path="tests/Maui.Tizen.Core.RefPackCompile/Maui.Tizen.Core.RefPackCompile.csproj" />
<Project Path="tests/Maui.Tizen.Essentials.RefPackCompile/Maui.Tizen.Essentials.RefPackCompile.csproj" />
<Project Path="tests/Maui.Tizen.Essentials.Tests/Maui.Tizen.Essentials.Tests.csproj" />
<Project Path="tests/Maui.Tizen.SourceTests/Maui.Tizen.SourceTests.csproj" />
<Project Path="tests/Maui.Tizen.Sample.RefPackCompile/Maui.Tizen.Sample.RefPackCompile.csproj" />
<Project Path="tests/Maui.Tizen.Controls.RefPackCompile/Maui.Tizen.Controls.RefPackCompile.csproj" />
Expand Down
94 changes: 78 additions & 16 deletions docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ Extracting the .NET MAUI Tizen backend from `dotnet/maui` into this repository.

| Phase | Scope | Status |
|---|---|---|
| **0** | Freeze baselines; inventory and disposition manifests; API baselines | Contract landed; generated data in progress |
| **0** | Freeze baselines; inventory and disposition manifests; API baselines | **Complete** |
| **1** | History-preserving import; repository scaffolding; docs; CI | **Complete** |
| 2 | Handler implementation (`Maui.Tizen.Core`, `Maui.Tizen.Controls`) | Not started |
| 3 | Essentials implementation | Not started |
| 4 | BlazorWebView, Maps, Build.Tasks, Templates | Not started |
| **2** | Handler implementation (`Maui.Tizen.Core`, `Maui.Tizen.Controls`) | **Core and Waves A/B/C merged** |
| **3** | Essentials implementation | **Implemented and host/API15 tested; two external MAUI API blockers remain** |
| 4 | BlazorWebView, Maps, Build.Tasks, Templates | Maps disposition complete (no API15 implementation); remaining packages in progress |
| 5 | Device tests, samples, packaging and publishing | Not started |

Phases 2 onward are **blocked on an external dependency** — see below.
The Samsung workload blocks real Tizen-TFM builds, packaging and device execution. It does not
block implementation: host-executable coordinators, API15 ref-pack builds, source/convention
guards, mutation tests and the merged handler stack all run without it.

## The external gate

Expand Down Expand Up @@ -45,11 +47,19 @@ The lane in `eng/build-workload-free.sh` (required in CI) genuinely exercises:
- central package management and package source mapping
- MSBuild conventions and the workload gate itself
- consistency between `Directory.Build.props`, `global.json` and `eng/baselines.json`
- 20 repository invariant tests, built and executed on `net11.0`
- the complete Core/Waves host suites and Core/Controls/Sample/Essentials API15 ref-pack lanes
- the implemented Essentials DI, storage, permission, AppControl, dispatcher and lifecycle tests
- package/source/PublicAPI/analyzer closure checks and locked Essentials/Wave B/Wave C mutations
- migration tooling, package graph, consumer compile and repository invariant suites
- integrity of the imported history and the import tooling

So when the workload does ship, the workload is the *only* thing that needs to start
working.
At this integration head the principal executable inventories are 1,248 Core/Waves tests, 449
Essentials tests in both Debug and Release, and 579 source/closure/parity tests. The canonical
script also executes the repository, tooling, negative-control and hosted suites rather than
inferring their result from a successful build.

Hosted validation also runs validation, build, convention, DevFlow and consumer suites. Device
behaviour, shipping packages and visual baselines remain explicitly gated rather than inferred.

### When the gate lifts

Expand All @@ -65,8 +75,58 @@ The transition is automatic and fail-closed:
4. `eng/build-tizen.sh` restores, builds, and invokes Pack for every actual
`net11.0-tizen11.0` product project. Any install, restore, build, or pack failure fails
the workflow.
5. After that lane is green, regenerate API baselines against the real Tizen build and
begin Phase 2.
5. After that lane is green, regenerate API baselines against the real Tizen build and run the
device/profile/visual/package gates.

### SecureStorage data migration

The standalone Essentials package stores secure values under
`maui.tizen.securestorage:~v2~<base64url-utf8-key>`. The escaped-version delimiter cannot collide
with the first standalone package's alias encoder. Strict UTF-8 makes the encoding injective and
rejects unpaired UTF-16 surrogates before any store mutation. The result contains no whitespace or
padding rejected by Tizen's secure repository. Aliases are never truncated or hashed to fit a
native limit; Tizen's argument error is surfaced instead.

`GetAsync` performs a one-way, per-key compatibility migration in this order: v2 alias, the first
standalone package's escaped namespaced alias, then the in-box backend's exact raw alias. A legacy
value is copied to v2. Invalid-format legacy probes, including whitespace raw aliases Tizen cannot
read, are treated as absent rather than as storage failures. Raw aliases are never deleted because
the application-wide secure repository cannot prove that alias is owned by SecureStorage. A
migration save failure is surfaced and leaves the legacy value intact.

`SetAsync` stages the new bytes under a versioned transaction alias before removing either owned
generation. A failed commit restores the prior v1/v2 aliases; if restoration itself fails, the
staged bytes remain recoverable by the next read. Successful replacement removes duplicate v1 and
transaction aliases. `Remove` deletes both owned generations, and `RemoveAll` deletes unqualified
owned aliases plus qualified aliases whose owner exactly matches the current package id; a foreign
package using the same raw prefix is preserved. Both removal paths write tombstones in the
application preference store.
Those tombstones suppress legacy fallback, so an unowned raw alias cannot
resurrect a removed SecureStorage value. There is no safe way to distinguish an old SecureStorage
raw alias from certificates, keys, or another component's data in the shared repository. Tombstones
are persistent and may accumulate: removing one while its shadowed raw alias still exists would
make deleted data readable again.

### Preferences data migration

Preferences now use a versioned `maui.tizen.preferences:v2:` physical namespace with distinct
default-store and named-store prefixes. This fixes two collisions in the old flat layout: a default
key such as `a~b` could alias named store `a`, key `b`, and clearing the default store called Tizen's
application-wide `RemoveAll`, deleting every named store too.

Reads prefer the v2 key and fall back to the exact legacy alias used by the in-box backend and the
first standalone package revision. A successful legacy read copies the value into v2. The old alias
is intentionally retained because the legacy layout is ambiguous: deleting `a~b` cannot prove
whether it belonged to the default store or a named store. Per-key `Remove`/null `Set` and
per-store `Clear` write v2 tombstones instead of deleting ambiguous aliases, so later reads cannot
resurrect removed data or cross-delete another logical store. `Clear` removes only the selected
store's unambiguous v2 entries and never performs a native global clear.

Tizen's native preference store supports only its documented primitive types. `long` and
`DateTime` therefore use invariant versioned strings, `DateTimeOffset` uses a tagged round-trip
string, and `float` is stored as `double` with a checked exact conversion on read. Compatibility
reads migrate the earlier unsupported direct representations when encountered in development or
legacy stores.

### Target contract provenance

Expand Down Expand Up @@ -172,7 +232,7 @@ The 87 files that exist only at `9.0.120` break down as:
| **Compatibility layer** | .NET MAUI 11 drops it. Audit each of the 70 files; `move` only what net11 Tizen handlers genuinely require, `exclude` the rest. Expected outcome: the package is deleted entirely. |
| **Graphics** | `Microsoft.Maui.Graphics` is upstreamed from its own repository and carries one Tizen view here. Likely `keep-upstream` — contribute the view back rather than shipping a package. |
| **Build.Tasks** | The imported Tizen tasks depend on shared Resizetizer types (`ILogger`, `ResizeImageInfo`, `ResizedImageInfo`) whose filenames contain no "tizen" and were therefore correctly excluded by the import filter. Either vendor them here, or ship these tasks inside `Microsoft.Maui.Resizetizer` upstream. **Also unresolved:** these tasks use SkiaSharp for splash/icon generation, so enabling them raises real runtime and native-asset packaging questions (which SkiaSharp native assets ship, and how they reach a Tizen build). That is deliberately *not* papered over in the foundation — it is part of enabling the project, not of scaffolding it. |
| **Documentation warnings** | `CS1591` is suppressed in `TizenPackage.props` while projects compile nothing. The inherited sources are not uniformly documented, so flipping a project to compile would otherwise fail on hundreds of missing-comment errors under warnings-as-errors. Remove the suppression per project as its documentation is completed. |
| **Documentation warnings** | Shipping Core, Controls and Essentials explicitly opt into XML documentation before importing `TizenPackage.props`; projects that still compile nothing retain the no-documentation default. `CS1591` remains suppressed until package-by-package documentation completion. |
| **`Tizen.UIExtensions`** | Needs republishing to drop its .NET 6-era `Microsoft.Maui.Graphics` dependencies. No API surface change expected. |

## The import
Expand All @@ -193,15 +253,17 @@ diffing the import commit alone. Full detail in [`../PROVENANCE.md`](../PROVENAN
graph LR
F["Phase 0-1<br/>Foundation<br/><b>done</b>"] --> I["Inventory + API baselines"]
F --> G{{"Samsung workload<br/><b>external gate</b>"}}
I --> H["Phase 2<br/>Handlers"]
G --> H
G --> E["Phase 3<br/>Essentials"]
I --> H["Phase 2<br/>Handlers<br/><b>merged</b>"]
I --> E["Phase 3<br/>Essentials<br/><b>implemented</b>"]
G --> D["Real Tizen build/device/package gates"]
H --> X["Phase 4<br/>BlazorWebView, Maps,<br/>Build.Tasks, Templates"]
E --> X
X --> P["Phase 5<br/>Device tests, samples,<br/>packaging"]
X --> D
D --> P["Phase 5<br/>publish and transfer"]
```

Inventory work can proceed now. Everything downstream of the gate cannot.
Implementation and hosted verification proceed now. Only Tizen workload, device and publishing
evidence remain downstream of the Samsung gate.

## See also

Expand Down
32 changes: 28 additions & 4 deletions docs/net11-status.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# .NET 11 status: blockers and required MAUI API gaps

Status of the **core standalone backend vertical slice** (application, window, page, content view,
layout, label) in `src/Maui.Tizen.Core`.
Status of the merged standalone Core/Waves backend plus the implemented Essentials package.

Baselines are frozen in [`eng/baselines.json`](../eng/baselines.json); package versions are
centrally configurable in [`eng/Maui.props`](../eng/Maui.props).
Expand All @@ -20,6 +19,10 @@ not compile identical sets - that would be impossible, since the platform source
| `Maui.Tizen.Core.UnitTests` | portable + handler | test host | no |
| `Maui.Tizen.Core.RefPackCompile` | portable + handler + platform | `Maui.Tizen.Core` | yes |
| `Maui.Tizen.Sample.RefPackCompile` | sample only, references the above | `Maui.Tizen.Sample` | yes |
| `Maui.Tizen.Controls.RefPackCompile` | Controls, Waves A/B/C and navigation | `Maui.Tizen.Controls` | yes |
| `Maui.Tizen.Controls.ConsumerCompile` | consumer/catalog crossing the package boundary | consumer | yes |
| `Maui.Tizen.Essentials.RefPackCompile` | exact Essentials shipping closure against API15 | `Maui.Tizen.Essentials` | yes |
| `Maui.Tizen.Essentials.Tests` | host-executable storage/callback/lifecycle/DI behavior | test host | yes |
| `Maui.Tizen.Core` (product) | portable + handler + platform | `Maui.Tizen.Core` | yes |

Between them every owned source is compiled by at least one lane, and everything the product
Expand All @@ -44,8 +47,10 @@ identical, so neither can drift from the other.

| Lane | Command | What it proves |
| --- | --- | --- |
| Unit tests | `dotnet test tests/Maui.Tizen.Core.UnitTests` | Mapper + command-mapper registration, DI/handler registration, hosting, dispatcher/timer/provider semantics, density conversion, layout z-index ordering, `IMauiContext` scoping. **417 tests at this head, all passing.** |
| Compile validation | `dotnet build tests/Maui.Tizen.Core.RefPackCompile` | Every Core `#if TIZEN` source - including `TizenMauiApplication`, the NUI view groups and all the ported platform extensions - type-checks against the **real** TizenFX reference assemblies from `Samsung.Tizen.Ref.API15` (`ref/net8.0`). The sample is compiled separately by `Maui.Tizen.Sample.RefPackCompile`. **Both build cleanly.** |
| Core/Waves tests | `dotnet test tests/Maui.Tizen.Core.UnitTests` | Mapper + command-mapper registration, concrete Controls startup, DI/handler registration, hosting, dispatcher/timer/provider semantics, density/layout, Wave A/B/C lifetimes and navigation. **1,248 tests at this head, all passing.** |
| Source/closure tests | `dotnet test tests/Maui.Tizen.SourceTests` | Source ownership, mapper parity, startup and package closures, compile-backed MAUI API blockers. **579 tests at this head, all passing.** |
| Essentials tests | execute `artifacts/bin/Maui.Tizen.Essentials.Tests/<Configuration>/net11.0/Maui.Tizen.Essentials.Tests` | DI facade bridge, native-faithful Preferences/SecureStorage, Clipboard/TTS/sensor/screenshot/AppControl lifecycle coordinators, permissions and translation behavior. **449 tests pass in Debug and Release.** |
| Compile validation | build the four `*.RefPackCompile`/consumer projects | Core, Controls, Sample and Essentials shipping sources type-check against the **real** TizenFX reference assemblies from `Samsung.Tizen.Ref.API15` (`ref/net8.0`), with package-specific PublicAPI analyzers. **All build cleanly.** |
| Product | `dotnet build src/Maui.Tizen.Core` | Fails with actionable `MAUITIZEN0001` from `Directory.Build.targets`. This is the intended behaviour. |

Both lanes are wired into `eng/build-workload-free.sh`, so they run in the workload-free CI lane
Expand All @@ -58,6 +63,25 @@ exists so `#if TIZEN` code is checked by a compiler rather than by inspection.
> Note: a device build has **not** been performed and must not be claimed. Nothing here validates
> runtime behaviour on Tizen.

### First-real `net11.0-tizen11.0` surface gate

The first build after Samsung's workload becomes available is a migration gate, not a routine green
CI run. The conditional `tizen-workload-gate` job must build the shipping projects against the
genuine `net11.0-tizen11.0` asset graph and remain non-required until the following review is
recorded:

1. Verify `IPlatformScreenshot` resolves from the real Tizen-flavoured MAUI framework surface and
that `TizenScreenshot` still implements the selected contract without a neutral-host assumption.
2. Verify `IPlatformGeocoding` the same way for `TizenGeocoding`.
3. Reinspect `Microsoft.Maui.Media.Locale` in the selected `Microsoft.Maui.Essentials` asset. If its
constructor is public, replace the temporary Tizen voice-language API with the public
`ITextToSpeech.GetLocalesAsync` implementation before promoting the lane.
4. Regenerate and review the package's API baseline from that real build.

The API15 reference-pack lane proves TizenFX compatibility, and the host lane proves the neutral
MAUI facade bridge. Neither lane proves which MAUI compile assets the Tizen TFM will select, so they
cannot satisfy or waive this gate.

---

### G11. The public `IImageSourcePaint` contract has not shipped yet
Expand Down
Loading
Loading