From 48c1726f4ac17b219072a31c24aaefedc1ab8efa Mon Sep 17 00:00:00 2001 From: Shane Rosenthal Date: Fri, 17 Jul 2026 14:00:57 -0400 Subject: [PATCH] chore: declare iOS 18.2 minimum; use semantic alias in font fixtures nativephp.json now declares min_version 18.2 for the iOS shell. ThemeFontsTest aliases map to the semantic 'accent' token instead of a hard-coded font file name, matching how the alias map is meant to be authored. Co-Authored-By: Claude Fable 5 --- nativephp.json | 1 + tests/ThemeFontsTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nativephp.json b/nativephp.json index f8564fb..d67359b 100644 --- a/nativephp.json +++ b/nativephp.json @@ -452,6 +452,7 @@ } }, "ios": { + "min_version": 18.2, "init_function": "registerNativeUIChrome", "dependencies": { "swift_packages": [], diff --git a/tests/ThemeFontsTest.php b/tests/ThemeFontsTest.php index 49f6106..212af87 100644 --- a/tests/ThemeFontsTest.php +++ b/tests/ThemeFontsTest.php @@ -21,16 +21,16 @@ }); it('carries the alias map in the theme payload', function () { - Theme::fonts(['accent' => 'DynaPuff-Regular']); + Theme::fonts(['accent' => 'accent']); Theme::load(['font-family' => 'System']); - expect(Theme::all()['fonts'])->toBe(['accent' => 'DynaPuff-Regular']); + expect(Theme::all()['fonts'])->toBe(['accent' => 'accent']); }); it('promotes the default alias to the font-family token', function () { Theme::fonts([ 'default' => 'Inter-Regular', - 'accent' => 'DynaPuff-Regular', + 'accent' => 'accent', ]); Theme::load(['font-family' => 'System']); @@ -38,7 +38,7 @@ }); it('leaves font-family alone when no default alias exists', function () { - Theme::fonts(['accent' => 'DynaPuff-Regular']); + Theme::fonts(['accent' => 'accent']); Theme::load(['font-family' => 'Lobster-Regular']); expect(Theme::all()['font-family'])->toBe('Lobster-Regular');