feat: iOS 26 types with improvements (ActionBar, Switch) + .ns-{platform}-{sdkVersion} css root scoping (#10775)

This provides for better ability to target platform > sdk > majorVersion specific features.
For example, iOS 26 does not render titles when a background color is set on the actionbar. this allows that style to be overridden only on iOS 26 if desired.
This commit is contained in:
Nathan Walker
2025-08-07 12:06:10 -07:00
parent b35277c8f0
commit b6e1090b23
144 changed files with 28026 additions and 15652 deletions

View File

@@ -24,6 +24,10 @@ rm -rf ios-typings-prj
ns create --template @nativescript/template-blank@latest ios-typings-prj
ns platform add ios@$IOS_RUNTIME_VERSION --path ios-typings-prj/
# For iOS 26
echo "FRAMEWORK_SEARCH_PATHS = \$(inherited) \$(SDKDIR)/System/Library/SubFrameworks" >> ios-typings-prj/App_Resources/iOS/build.xcconfig
if [ -n "$METADATA_GENERATOR_PATH" ]
then
echo "Replacing metadata generator binary with: $METADATA_GENERATOR_PATH"
@@ -36,7 +40,7 @@ echo "Building project and generating typings..."
TNS_TYPESCRIPT_DECLARATIONS_PATH=$(pwd)/ios-typings-prj/typings ns build ios --debug --path ios-typings-prj/
echo "Deleting old ios typings (ios/objc-x86_64)..."
rm packages/types-ios/src/lib/ios/objc-x86_64/*
rm -f packages/types-ios/src/lib/ios/objc-x86_64/*
# echo "Deleting Material Components typings..."
# rm ios-typings-prj/typings/x86_64/objc\!MaterialComponents.d.ts