From 5dfb695e7f84047babb46dcfe692e328caf940d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar=20Rocha?= Date: Thu, 7 May 2026 00:10:19 -0700 Subject: [PATCH 01/38] Upgrade to PowerShell 7 (#16075) * Ran NuGetRestoreForceEvaluateAllSolutions.ps1 * Define installNuGetPackages task; Install pwsh 7.6.1 * Replace powershell.exe with pwsh.exe * Change files * CI: Ensure NuGet is availabe before `yarn install` * Add NuGetAuthenticate before yarn install * Do not download PowerShell on CI/CD environments * Fix just-task JS syntax * Add dotnet-tools manifest * Fix pwsh.exe tool path * Resolve dotnet-tools.json path * Use dotnet for `nuget locals` * Use PWSH in nuget-restore-task.js * Break dependency loop in just-task * Update other ADO tasks * Update @react-native-windows/automation * Rename findPwsh as findPowerShell * Drop powershell export from commandWithProgress * Change files * Add README for find-dotnet-tools * Add README to package.json * Adjust newline * Run task `installDotnetTools` only when not in CI * Install .NET tools in CI * Install .NET on prepare-js-env * Do not install .NET tools on CI * Quote powershell path * fix yarn lint * Ran NuGetRestoreForceEvaluateAllSolutions.ps1 * Restore deleted lock files * Add missing dependency * Use -Command for compatible PWSH calls * Use -Command pwsh argument * Correct runPowerShellScriptFunction cmd escaping * Quote pwsh command in runPowerShellScriptFunction * Remove quotes * Quote remaining findPowerShell() calls for execSync * Add temporary diagnostic commands * Diagnostics * Diagnostics * Diagnostics * Add runPowerShellScriptFunction argument to delegate Appx-related commands to Windows PowerShell * Remove diagnostics steps * Use execFileSync instead of execSync in deploy.ts * Remove querystrings from FS paths * Suppress warning when using `-UseWindowsPowerShell` * Revert "Remove querystrings from FS paths" This reverts commit e1f3cfdf0520f916e4f7fe6ac62a7eebba3bb51a. * Use pipe semantics for Get-AppxPackage in resolveAppName * Hard-fail if PowerShell 7 cannot be found. Do not fall back to Windows PowerShell (powershell.exe). PowerShell code may not be backwards compatible. * Improve missing pwsh.exe error message * Add package resolution pipeline test * UseWindowsPowerShell for package resolution test * Try to read package Microsoft.PrintDialog * Replace stderr redirection with -WarningAction * Replace stderr redirection with -WarningAction * Print sample app names on appWindow error * Add more diagnostics * Add missing -WarningAction SilentlyContinue * Revert "Add more diagnostics" This reverts commit 8c10bc4d1abd2afc30240d06eb7cf8a113422a6d. * Revert "Print sample app names on appWindow error" This reverts commit 6e70148a35e50d4bd9c62f50908e2b3855ef6dce. * Remove CI probing tasks * Revert "Use pipe semantics for Get-AppxPackage in resolveAppName" This reverts commit 6c46c73413af274b4535e94a327ed1d3202dc2ed. Co-authored-by: Copilot * Remove unused escaping logic * Re-introduce deleted .lock.json --------- Co-authored-by: Copilot --- .ado/jobs/e2e-test.yml | 15 ++++ .ado/templates/install-SDK.yml | 1 + ...-10c8b2ce-ed81-450b-b846-4695f1ed4c4f.json | 7 ++ ...-d0909d53-2984-4eff-bcf6-fe1702c03277.json | 7 ++ ...-7018a5fe-0791-4fb7-ae1d-c95620216ddc.json | 7 ++ ...-f8669931-74f3-4c8e-a1d1-ecb19860ee42.json | 7 ++ .../automation/package.json | 2 +- .../automation/src/AutomationEnvironment.ts | 13 +++- .../@react-native-windows/cli/package.json | 2 +- .../src/commands/healthCheck/healthChecks.ts | 6 +- .../cli/src/e2etest/healthChecks.test.ts | 6 +- .../cli/src/utils/commandWithProgress.ts | 15 ++-- .../cli/src/utils/deploy.ts | 30 +++++--- .../cli/src/utils/msbuildtools.ts | 4 +- .../find-dotnet-tools/.eslintrc.js | 4 ++ .../find-dotnet-tools/.gitignore | 2 + .../find-dotnet-tools/README.md | 50 +++++++++++++ .../find-dotnet-tools/package.json | 52 ++++++++++++++ .../find-dotnet-tools/src/findDotnetTools.ts | 70 +++++++++++++++++++ .../find-dotnet-tools/tsconfig.json | 5 ++ vnext/dotnet-tools.json | 12 ++++ vnext/just-task.js | 29 +++++++- vnext/package.json | 2 +- 23 files changed, 322 insertions(+), 26 deletions(-) create mode 100644 change/@react-native-windows-automation-10c8b2ce-ed81-450b-b846-4695f1ed4c4f.json create mode 100644 change/@react-native-windows-cli-d0909d53-2984-4eff-bcf6-fe1702c03277.json create mode 100644 change/@react-native-windows-find-dotnet-tools-7018a5fe-0791-4fb7-ae1d-c95620216ddc.json create mode 100644 change/react-native-windows-f8669931-74f3-4c8e-a1d1-ecb19860ee42.json create mode 100644 packages/@react-native-windows/find-dotnet-tools/.eslintrc.js create mode 100644 packages/@react-native-windows/find-dotnet-tools/.gitignore create mode 100644 packages/@react-native-windows/find-dotnet-tools/README.md create mode 100644 packages/@react-native-windows/find-dotnet-tools/package.json create mode 100644 packages/@react-native-windows/find-dotnet-tools/src/findDotnetTools.ts create mode 100644 packages/@react-native-windows/find-dotnet-tools/tsconfig.json create mode 100644 vnext/dotnet-tools.json diff --git a/.ado/jobs/e2e-test.yml b/.ado/jobs/e2e-test.yml index 9bd819ecf59..be7b92e8dcc 100644 --- a/.ado/jobs/e2e-test.yml +++ b/.ado/jobs/e2e-test.yml @@ -459,6 +459,21 @@ jobs: condition: and(failed(), eq(variables.StartedFabricTests, 'true')) continueOnError: true + - pwsh: | + if (Test-Path "packages/e2e-test-app-fabric/test/__image_snapshots__/__diff_output__") { + Write-Host "##vso[task.setvariable variable=DiffOutputExists]true" + } + displayName: Check for image diff output folder + condition: failed() + + - task: CopyFiles@2 + displayName: Copy Fabric image diffs + inputs: + sourceFolder: packages/e2e-test-app-fabric/test/__image_snapshots__/__diff_output__ + targetFolder: $(Build.StagingDirectory)/snapshots-image-diffs + contents: "**" + condition: and(failed(), eq(variables.DiffOutputExists, 'true')) + - script: npx jest --clearCache displayName: clear jest cache workingDirectory: packages/e2e-test-app-fabric diff --git a/.ado/templates/install-SDK.yml b/.ado/templates/install-SDK.yml index ef301a278dd..18fda6f4c47 100644 --- a/.ado/templates/install-SDK.yml +++ b/.ado/templates/install-SDK.yml @@ -7,5 +7,6 @@ steps: targetType: filePath filePath: vnext\Scripts\Install-WindowsSdkISO.ps1 arguments: ${{ parameters.sdkVersion }} + pwsh: true displayName: 'Install Insider SDK (${{ parameters.sdkVersion }})' condition: ne('', '${{ parameters.sdkVersion }}') diff --git a/change/@react-native-windows-automation-10c8b2ce-ed81-450b-b846-4695f1ed4c4f.json b/change/@react-native-windows-automation-10c8b2ce-ed81-450b-b846-4695f1ed4c4f.json new file mode 100644 index 00000000000..44cad7b1964 --- /dev/null +++ b/change/@react-native-windows-automation-10c8b2ce-ed81-450b-b846-4695f1ed4c4f.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Migrate to PowerShell 7", + "packageName": "@react-native-windows/automation", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-cli-d0909d53-2984-4eff-bcf6-fe1702c03277.json b/change/@react-native-windows-cli-d0909d53-2984-4eff-bcf6-fe1702c03277.json new file mode 100644 index 00000000000..46065e97e3a --- /dev/null +++ b/change/@react-native-windows-cli-d0909d53-2984-4eff-bcf6-fe1702c03277.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Upgrade to PowerShell 7", + "packageName": "@react-native-windows/cli", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-find-dotnet-tools-7018a5fe-0791-4fb7-ae1d-c95620216ddc.json b/change/@react-native-windows-find-dotnet-tools-7018a5fe-0791-4fb7-ae1d-c95620216ddc.json new file mode 100644 index 00000000000..621e68e6ec3 --- /dev/null +++ b/change/@react-native-windows-find-dotnet-tools-7018a5fe-0791-4fb7-ae1d-c95620216ddc.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Migrate to PowerShell 7", + "packageName": "@react-native-windows/find-dotnet-tools", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-f8669931-74f3-4c8e-a1d1-ecb19860ee42.json b/change/react-native-windows-f8669931-74f3-4c8e-a1d1-ecb19860ee42.json new file mode 100644 index 00000000000..f1e3abb1df6 --- /dev/null +++ b/change/react-native-windows-f8669931-74f3-4c8e-a1d1-ecb19860ee42.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Upgrade to PowerShell 7", + "packageName": "react-native-windows", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/@react-native-windows/automation/package.json b/packages/@react-native-windows/automation/package.json index c6c110f63c3..2e9deb8dba4 100644 --- a/packages/@react-native-windows/automation/package.json +++ b/packages/@react-native-windows/automation/package.json @@ -62,4 +62,4 @@ "engines": { "node": ">= 22" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/automation/src/AutomationEnvironment.ts b/packages/@react-native-windows/automation/src/AutomationEnvironment.ts index d12b3d4da9d..490cd49b5bd 100644 --- a/packages/@react-native-windows/automation/src/AutomationEnvironment.ts +++ b/packages/@react-native-windows/automation/src/AutomationEnvironment.ts @@ -8,6 +8,7 @@ import chalk from 'chalk'; import {spawnSync, spawn, ChildProcess} from 'child_process'; import fs from '@react-native-windows/fs'; +import {findPowerShell} from '@react-native-windows/find-dotnet-tools'; import path from 'path'; import readlineSync from 'readline-sync'; @@ -242,7 +243,7 @@ export default class AutomationEnvironment extends NodeEnvironment { if (this.breakOnStart) { readlineSync.question( chalk.bold.yellow('Breaking before tests start\n') + - 'Press Enter to resume...', + 'Press Enter to resume...', ); } @@ -327,8 +328,14 @@ function resolveAppName(appName: string): string { } try { - const packageFamilyName = spawnSync('powershell', [ - `(Get-AppxPackage -Name ${appName}).PackageFamilyName`, + const useAppxCompatibility = !!process.env.TF_BUILD; + const packageFamilyNameCommand = useAppxCompatibility + ? `& { Import-Module Appx -UseWindowsPowerShell -WarningAction SilentlyContinue; (Get-AppxPackage -Name '${appName}').PackageFamilyName }` + : `(Get-AppxPackage -Name '${appName}').PackageFamilyName`; + const packageFamilyName = spawnSync(findPowerShell(), [ + '-NoProfile', + '-Command', + packageFamilyNameCommand, ]) .stdout.toString() .trim(); diff --git a/packages/@react-native-windows/cli/package.json b/packages/@react-native-windows/cli/package.json index 0f32eb5934b..58144afaf92 100644 --- a/packages/@react-native-windows/cli/package.json +++ b/packages/@react-native-windows/cli/package.json @@ -88,4 +88,4 @@ "engines": { "node": ">= 22" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/cli/src/commands/healthCheck/healthChecks.ts b/packages/@react-native-windows/cli/src/commands/healthCheck/healthChecks.ts index 90a4a11a1df..74d4797811a 100644 --- a/packages/@react-native-windows/cli/src/commands/healthCheck/healthChecks.ts +++ b/packages/@react-native-windows/cli/src/commands/healthCheck/healthChecks.ts @@ -14,9 +14,11 @@ import type { HealthCheckCategory, HealthCheckInterface, } from '@react-native-community/cli-doctor/build/types'; -import {powershell} from '../../utils/commandWithProgress'; +import {findPowerShell} from '@react-native-windows/find-dotnet-tools'; import {HealthCheckList} from './healthCheckList'; +const powershell = findPowerShell(); + export function getHealthChecks(): HealthCheckCategory[] | undefined { // #8471: There are known cases where the dependencies script will error out. // Fail gracefully if that happens in the meantime. @@ -76,7 +78,7 @@ function getHealthChecksUnsafe(): HealthCheckCategory[] | undefined { }; }, runAutomaticFix: async ({loader, logManualInstallation}) => { - const command = `${powershell} -ExecutionPolicy Unrestricted -NoProfile "${rnwDepScriptPath}" -Check ${id}`; + const command = `"${powershell}" -ExecutionPolicy Unrestricted -NoProfile "${rnwDepScriptPath}" -Check ${id}`; try { const {exitCode} = await execa(command, {stdio: 'inherit'}); if (exitCode) { diff --git a/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts b/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts index ad0a17edfb2..98d2be3a9f8 100644 --- a/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts +++ b/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts @@ -6,9 +6,11 @@ import {execSync} from 'child_process'; import path from 'path'; -import {powershell} from '../utils/commandWithProgress'; +import {findPowerShell} from '@react-native-windows/find-dotnet-tools'; import {HealthCheckList} from '../commands/healthCheck/healthCheckList'; +const powershell = findPowerShell(); + test('Verify list of health checks aligns with rnw-dependencies', async () => { const rnwDepScriptPath = path.join( path.dirname( @@ -20,7 +22,7 @@ test('Verify list of health checks aligns with rnw-dependencies', async () => { ); const rnwDeps = execSync( - `${powershell} -ExecutionPolicy Unrestricted -NoProfile "${rnwDepScriptPath}" -NoPrompt -ListChecks`, + `"${powershell}" -ExecutionPolicy Unrestricted -NoProfile "${rnwDepScriptPath}" -NoPrompt -ListChecks`, {stdio: 'pipe'}, ); const deps = rnwDeps.toString().trim().split('\n'); diff --git a/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts b/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts index 74e8bec3d0c..9ee9fe56113 100644 --- a/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts +++ b/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts @@ -14,6 +14,7 @@ import { CodedErrors, CodedErrorType, } from '@react-native-windows/telemetry'; +import {findPowerShell} from '@react-native-windows/find-dotnet-tools'; function setSpinnerText(spinner: ora.Ora, prefix: string, text: string) { text = prefix + spinnerString(text); @@ -47,7 +48,7 @@ export function newSpinner(text: string) { return ora(options).start(); } -export const powershell = `${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`; +const powershell = findPowerShell(); export async function runPowerShellScriptFunction( taskDescription: string, @@ -55,10 +56,15 @@ export async function runPowerShellScriptFunction( funcName: string, verbose: boolean, errorCategory: CodedErrorType, + useAppxCompatibility = false, ) { try { const printException = verbose ? '$_;' : ''; - const importScript = script ? `Import-Module "${script}"; ` : ''; + const importAppx = useAppxCompatibility + ? 'Import-Module Appx -UseWindowsPowerShell -WarningAction SilentlyContinue; ' + : ''; + const importScript = script ? `Import-Module '${script}'; ` : ''; + const powershellCommand = `${importAppx}${importScript}try { ${funcName} -ErrorAction Stop; $lec = $LASTEXITCODE; } catch { $lec = 1; ${printException} }; exit $lec`; await commandWithProgress( newSpinner(taskDescription), taskDescription, @@ -67,7 +73,8 @@ export async function runPowerShellScriptFunction( '-NoProfile', '-ExecutionPolicy', 'RemoteSigned', - `${importScript}try { ${funcName} -ErrorAction Stop; $lec = $LASTEXITCODE; } catch { $lec = 1; ${printException} }; exit $lec`, + '-Command', + `&{${powershellCommand}}`, ], verbose, errorCategory, @@ -88,7 +95,7 @@ export function commandWithProgress( errorCategory: CodedErrorType, ) { return new Promise((resolve, reject) => { - const spawnOptions: SpawnOptions = verbose ? {stdio: 'inherit'} : {}; + const spawnOptions: SpawnOptions = verbose ? { stdio: 'inherit' } : {}; if (verbose) { spinner.stop(); diff --git a/packages/@react-native-windows/cli/src/utils/deploy.ts b/packages/@react-native-windows/cli/src/utils/deploy.ts index 44237695a2f..8ebb71969b5 100644 --- a/packages/@react-native-windows/cli/src/utils/deploy.ts +++ b/packages/@react-native-windows/cli/src/utils/deploy.ts @@ -4,7 +4,7 @@ * @format */ -import {spawn, execSync, SpawnOptions} from 'child_process'; +import {spawn, execFileSync, SpawnOptions} from 'child_process'; import fs from '@react-native-windows/fs'; import http from 'http'; import path from 'path'; @@ -19,8 +19,8 @@ import { newSpinner, commandWithProgress, runPowerShellScriptFunction, - powershell, } from './commandWithProgress'; +import {findPowerShell} from '@react-native-windows/find-dotnet-tools'; import * as build from './build'; import { BuildConfig, @@ -183,9 +183,12 @@ function getWindowsStoreAppUtils(options: RunWindowsOptions) { 'powershell', 'WindowsStoreAppUtils.psm1', ); - execSync( - `${powershell} -NoProfile Unblock-File '${windowsStoreAppUtilsPath}'`, - ); + const powershell = findPowerShell(); + execFileSync(powershell, [ + '-NoProfile', + '-Command', + `& { Unblock-File '${windowsStoreAppUtilsPath}' }`, + ]); popd(); return windowsStoreAppUtilsPath; } @@ -359,6 +362,7 @@ export async function deployToDesktop( config: Config, buildTools: MSBuildTools, ) { + const useAppxCompatibility = !!process.env.TF_BUILD; const windowsConfig: Partial | undefined = config.project.windows; const slnFile = @@ -394,6 +398,7 @@ export async function deployToDesktop( 'EnableDevMode', verbose, 'EnableDevModeFailure', + useAppxCompatibility, ); const appPackageFolder = getAppPackage(options, projectName); @@ -406,6 +411,7 @@ export async function deployToDesktop( `Uninstall-App ${appName}`, verbose, 'RemoveOldAppVersionFailure', + useAppxCompatibility, ); const script = glob.sync( @@ -418,6 +424,7 @@ export async function deployToDesktop( `Install-App "${script}" -Force`, verbose, 'InstallAppFailure', + useAppxCompatibility, ); } else { // Deploy from layout @@ -445,6 +452,7 @@ export async function deployToDesktop( `Install-AppDependencies ${appxManifestPath} ${appPackageFolder} ${options.arch}`, verbose, 'InstallAppDependenciesFailure', + useAppxCompatibility, ); await build.buildSolution( buildTools, @@ -459,9 +467,14 @@ export async function deployToDesktop( } } - const appFamilyName = execSync( - `${powershell} -NoProfile -c $(Get-AppxPackage -Name ${appName}).PackageFamilyName`, - ) + const appFamilyNameCommand = useAppxCompatibility + ? `& { Import-Module Appx -UseWindowsPowerShell -WarningAction SilentlyContinue; (Get-AppxPackage -Name '${appName}').PackageFamilyName }` + : `(Get-AppxPackage -Name '${appName}').PackageFamilyName`; + const appFamilyName = execFileSync(findPowerShell(), [ + '-NoProfile', + '-Command', + appFamilyNameCommand, + ]) .toString() .trim(); @@ -491,6 +504,7 @@ export async function deployToDesktop( `Start-Locally ${appName} ${args}`, verbose, 'AppStartupFailure', + useAppxCompatibility, ); } else { newInfo('Skip the step to start the app'); diff --git a/packages/@react-native-windows/cli/src/utils/msbuildtools.ts b/packages/@react-native-windows/cli/src/utils/msbuildtools.ts index b4cae081f1f..aa1d00ccfe2 100644 --- a/packages/@react-native-windows/cli/src/utils/msbuildtools.ts +++ b/packages/@react-native-windows/cli/src/utils/msbuildtools.ts @@ -18,8 +18,8 @@ import { newSpinner, newSuccess, newError, - powershell, } from './commandWithProgress'; +import {findPowerShell} from '@react-native-windows/find-dotnet-tools'; import {execSync} from 'child_process'; import {BuildArch, BuildConfig} from '../commands/runWindows/runWindowsOptions'; import {findLatestVsInstall} from './vsInstalls'; @@ -317,7 +317,7 @@ export default class MSBuildTools { 'Eval-MsBuildProperties.ps1', ); - let command = `${powershell} -ExecutionPolicy Unrestricted -NoProfile "${msbuildEvalScriptPath}" -SolutionFile '${solutionFile}' -ProjectFile '${projectFile}' -MSBuildPath '${this.msbuildPath()}'`; + let command = `"${findPowerShell()}" -ExecutionPolicy Unrestricted -NoProfile "${msbuildEvalScriptPath}" -SolutionFile '${solutionFile}' -ProjectFile '${projectFile}' -MSBuildPath '${this.msbuildPath()}'`; if (propertyNames && propertyNames.length > 0) { command += ` -PropertyNames '${propertyNames.join(',')}'`; diff --git a/packages/@react-native-windows/find-dotnet-tools/.eslintrc.js b/packages/@react-native-windows/find-dotnet-tools/.eslintrc.js new file mode 100644 index 00000000000..35e0d115126 --- /dev/null +++ b/packages/@react-native-windows/find-dotnet-tools/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + extends: ['@rnw-scripts'], + parserOptions: {tsconfigRootDir : __dirname}, +}; diff --git a/packages/@react-native-windows/find-dotnet-tools/.gitignore b/packages/@react-native-windows/find-dotnet-tools/.gitignore new file mode 100644 index 00000000000..f42efbb9f7c --- /dev/null +++ b/packages/@react-native-windows/find-dotnet-tools/.gitignore @@ -0,0 +1,2 @@ +lib/ +lib-commonjs/ diff --git a/packages/@react-native-windows/find-dotnet-tools/README.md b/packages/@react-native-windows/find-dotnet-tools/README.md new file mode 100644 index 00000000000..f643400da11 --- /dev/null +++ b/packages/@react-native-windows/find-dotnet-tools/README.md @@ -0,0 +1,50 @@ +# @react-native-windows/find-dotnet-tools + +Helpers to locate .NET-based tools (e.g. PowerShell) restored via `dotnet tool restore` or +available on PATH. + +Used to resolve tool paths consistently across local development and CI +environments. + +## Usage + +Add the package as a dependency: + +```json +{ + "dependencies": { + "@react-native-windows/find-dotnet-tools": "" + } +} +``` + +### findPowerShell + +Locates a PowerShell executable by checking, in order: + +1. A `dotnet-tool`-restored copy of `pwsh.exe` (skipped in CI builds) +2. `pwsh.exe` on the system PATH + +Throws an error if `pwsh.exe` cannot be found. + +```js +import {findPowerShell} from '@react-native-windows/find-dotnet-tools'; + +const pwsh = findPowerShell(); +// e.g. "C:\\Users\\user\\.nuget\\packages\\PowerShell\\7.6.1\\tools\\net10.0\\any\\win\\pwsh.exe" +``` + +### getNugetGlobalPackagesFolder + +Returns the path to the global NuGet packages folder by checking, in order: + +1. The `NUGET_PACKAGES` environment variable +2. The output of `dotnet nuget locals global-packages --list` +3. The default `~/.nuget/packages` location + +```js +import {getNugetGlobalPackagesFolder} from '@react-native-windows/find-dotnet-tools'; + +const packagesDir = getNugetGlobalPackagesFolder(); +// e.g. "C:\\Users\\user\\.nuget\\packages" +``` diff --git a/packages/@react-native-windows/find-dotnet-tools/package.json b/packages/@react-native-windows/find-dotnet-tools/package.json new file mode 100644 index 00000000000..77901e68a1c --- /dev/null +++ b/packages/@react-native-windows/find-dotnet-tools/package.json @@ -0,0 +1,52 @@ +{ + "name": "@react-native-windows/find-dotnet-tools", + "description": "Helpers to locate .NET-based tools (e.g. pwsh) restored via NuGet or available on PATH.", + "version": "0.0.0-canary.1", + "license": "MIT", + "scripts": { + "build": "rnw-scripts build", + "clean": "rnw-scripts clean", + "lint": "rnw-scripts lint", + "lint:fix": "rnw-scripts lint:fix", + "watch": "rnw-scripts watch" + }, + "main": "lib-commonjs/findDotnetTools.js", + "repository": { + "type": "git", + "url": "https://github.com/microsoft/react-native-windows", + "directory": "packages/@react-native-windows/find-dotnet-tools" + }, + "dependencies": { + "@react-native-windows/fs": "^0.0.0-canary.72" + }, + "devDependencies": { + "@rnw-scripts/eslint-config": "1.2.38", + "@rnw-scripts/just-task": "2.3.58", + "@rnw-scripts/ts-config": "2.0.6", + "@types/node": "^22.14.0", + "@typescript-eslint/eslint-plugin": "^8.36.0", + "@typescript-eslint/parser": "^8.36.0", + "eslint": "^8.19.0", + "prettier": "^3.6.2", + "typescript": "5.0.4" + }, + "beachball": { + "defaultNpmTag": "canary", + "disallowedChangeTypes": [ + "major", + "minor", + "patch", + "premajor", + "preminor", + "prepatch" + ] + }, + "promoteRelease": true, + "files": [ + "lib-commonjs", + "README.md" + ], + "engines": { + "node": ">= 22" + } +} diff --git a/packages/@react-native-windows/find-dotnet-tools/src/findDotnetTools.ts b/packages/@react-native-windows/find-dotnet-tools/src/findDotnetTools.ts new file mode 100644 index 00000000000..d684656bee4 --- /dev/null +++ b/packages/@react-native-windows/find-dotnet-tools/src/findDotnetTools.ts @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * @format + */ + +import {execSync} from 'child_process'; +import fs from '@react-native-windows/fs'; +import os from 'os'; +import path from 'path'; + +/** + * Returns the path to the global NuGet packages folder, checking (in order): + * 1. The NUGET_PACKAGES environment variable + * 2. The `dotnet nuget locals` command output + * 3. The default ~/.nuget/packages location + */ +export function getNugetGlobalPackagesFolder(): string { + if (process.env.NUGET_PACKAGES) { + return process.env.NUGET_PACKAGES; + } + try { + const output = execSync('dotnet.exe nuget locals global-packages --list', { + encoding: 'utf8', + }).trim(); + const match = output.match(/global-packages:\s*(.+)/i); + if (match) { + return match[1].trim(); + } + } catch {} + return path.join(os.homedir(), '.nuget', 'packages'); +} + +/** + * Locates a PowerShell executable, checking (in order): + * 1. A NuGet-restored copy of pwsh (skipped in CI builds) + * 2. pwsh.exe on the system PATH + * + * Throws if no pwsh.exe can be located. + */ +export function findPowerShell(): string { + // Build agents already have PowerShell (pwsh) installed + if (!process.env.TF_BUILD) { + const nugetPackages = getNugetGlobalPackagesFolder(); + const nugetPwsh = path.join( + nugetPackages, + 'PowerShell', + '7.6.1', + 'tools', + 'net10.0', + 'any', + 'win', + 'pwsh.exe', + ); + if (fs.existsSync(nugetPwsh)) { + return nugetPwsh; + } + } + + try { + const found = execSync('where pwsh.exe', {encoding: 'utf8'}).trim(); + if (found) { + return found.split(/\r?\n/)[0]; + } + } catch {} + + throw new Error( + 'Unable to find pwsh.exe. It should have been made available by `yarn install`.', + ); +} diff --git a/packages/@react-native-windows/find-dotnet-tools/tsconfig.json b/packages/@react-native-windows/find-dotnet-tools/tsconfig.json new file mode 100644 index 00000000000..c62faa78baf --- /dev/null +++ b/packages/@react-native-windows/find-dotnet-tools/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "@rnw-scripts/ts-config", + "include": ["src"], + "exclude": ["node_modules"] +} diff --git a/vnext/dotnet-tools.json b/vnext/dotnet-tools.json new file mode 100644 index 00000000000..2468cbda2de --- /dev/null +++ b/vnext/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "powershell": { + "version": "7.6.1", + "commands": [ + "pwsh" + ] + } + } +} \ No newline at end of file diff --git a/vnext/just-task.js b/vnext/just-task.js index 957cf343e1a..644346a28dc 100644 --- a/vnext/just-task.js +++ b/vnext/just-task.js @@ -22,6 +22,10 @@ require('@rnw-scripts/just-task/flow-tasks'); const {execSync} = require('child_process'); const fs = require('fs'); +const { + registerNuGetRestoreTask, +} = require('@rnw-scripts/just-task/nuget-restore-task'); +const {findPowerShell} = require('@react-native-windows/find-dotnet-tools'); option('production'); option('clean'); @@ -41,11 +45,12 @@ function codegen(test) { ); } +const powershell = findPowerShell(); + function layoutMSRNCxx() { if (require('os').platform() === 'win32') { - const powershell = `${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`; execSync( - `${powershell} -NoProfile .\\Scripts\\Tfs\\Layout-MSRN-Headers.ps1 -GenerateLocalCxx`, + `"${powershell}" -NoProfile .\\Scripts\\Tfs\\Layout-MSRN-Headers.ps1 -GenerateLocalCxx`, { env: process.env, }, @@ -71,12 +76,32 @@ task('copyReadmeAndLicenseFromRoot', () => { task('compileTsPlatformOverrides', tscTask()); +registerNuGetRestoreTask({ + taskName: 'restoreNuGetPackages', + scriptPath: path.resolve( + __dirname, + 'Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1', + ), + logDirectory: path.resolve(__dirname, 'logs'), + scriptArguments: ['-SkipLockDeletion'], +}); + +function installDotnetToolsTask() { + execSync( + `dotnet tool restore --tool-manifest ${path.resolve(__dirname, 'dotnet-tools.json')}`, + {env: process.env}, + ); +} + +task('installDotnetTools', installDotnetToolsTask); + task( 'build', series( condition('clean', () => argv().clean), 'copyRNLibraries', 'copyReadmeAndLicenseFromRoot', + condition('installDotnetTools', () => !process.env.TF_BUILD), 'layoutMSRNCxx', 'compileTsPlatformOverrides', 'codegen', diff --git a/vnext/package.json b/vnext/package.json index ead7a8fd8dd..c209be5d543 100644 --- a/vnext/package.json +++ b/vnext/package.json @@ -151,4 +151,4 @@ "engines": { "node": ">= 22" } -} +} \ No newline at end of file From 715bd4ac7cb080313932d131463b561699bfd34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar=20Rocha?= Date: Wed, 20 May 2026 14:16:25 -0700 Subject: [PATCH 02/38] Fix PowerShell installation (#16164) * Defer findPowershell to layoutMSRNCxx * Change files --- ...ative-windows-f139800b-c305-4d90-a3f6-8d348530a0ce.json | 7 +++++++ vnext/just-task.js | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 change/react-native-windows-f139800b-c305-4d90-a3f6-8d348530a0ce.json diff --git a/change/react-native-windows-f139800b-c305-4d90-a3f6-8d348530a0ce.json b/change/react-native-windows-f139800b-c305-4d90-a3f6-8d348530a0ce.json new file mode 100644 index 00000000000..9cb98e354c8 --- /dev/null +++ b/change/react-native-windows-f139800b-c305-4d90-a3f6-8d348530a0ce.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Defer findPowershell to layoutMSRNCxx", + "packageName": "react-native-windows", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/vnext/just-task.js b/vnext/just-task.js index 644346a28dc..9c050319468 100644 --- a/vnext/just-task.js +++ b/vnext/just-task.js @@ -45,10 +45,9 @@ function codegen(test) { ); } -const powershell = findPowerShell(); - function layoutMSRNCxx() { if (require('os').platform() === 'win32') { + const powershell = findPowerShell(); execSync( `"${powershell}" -NoProfile .\\Scripts\\Tfs\\Layout-MSRN-Headers.ps1 -GenerateLocalCxx`, { From 2699b76f708cbd54201b315be0ab56d1cde4e64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar=20Rocha?= Date: Wed, 27 May 2026 19:45:21 -0700 Subject: [PATCH 03/38] Upgrade to Visual Studio 2026 (#16170) * Update deps script. TODO: test * Upgrade rnw-deps to .NET 10 * Defer findPowershell to layoutMSRNCxx * Upgrade VS version to 18.6.1 * Drop /async in MSVC 14.5 * Replace std::future coroutines with WinRT types * clang format * Change files * Drop Windows10SDK.19041 * Change files * Set TargetFramework to net10.0-windows10.0.26100.0 * Use IAsyncOperation instead of out parameters * Install .NET 10 * Revert "Install .NET 10" This reverts commit 5f75dc0cb5edf06607eb97e3d4089857740512b1. * Revert "Set TargetFramework to net10.0-windows10.0.26100.0" This reverts commit 22a4791e8494b6fcf89ba077376c044eedc2659d. * clang format * Upgrade CsWinRT.csproj to .NET 8 * Fix filters * Upgrade MSRN SLN to VS 18 * Revert parameter signature in LoadBundleAsync * Update CSWinRT lock * Allow all versions of VS 2026 * Use IBuffer instead of hstring as payload GetJavaScriptFromServerAsync retuns bundle contents as hstring (16 bit) It then gets converted to an 8-bit string. This conversion drops bytes consideres "invalid". Those bytes are expected as part of the Hermes bundle header. Transmitting the bundle as an IBuffer preserves the original bytes and avoids the conversion issues. * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Use WinRT exception types instead of std --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- ...-543cf36f-0ce7-4df7-a391-285985d3f62c.json | 7 + ...-2a20c629-48b2-458d-80e6-26b5546c04e0.json | 7 + .../commands/healthCheck/healthCheckList.ts | 4 +- .../cli/src/utils/vsInstalls.ts | 4 +- .../React.Windows.Desktop.UnitTests.vcxproj | 2 +- .../Microsoft.ReactNative.CsWinRT.csproj | 2 +- .../packages.experimentalwinui3.lock.json | 7 +- .../packages.lock.json | 7 +- ...icrosoft.ReactNative.Cxx.UnitTests.vcxproj | 3 +- ...osoft.ReactNative.IntegrationTests.vcxproj | 3 +- vnext/Microsoft.ReactNative.NewArch.sln | 11 +- .../Microsoft.ReactNative.vcxproj | 3 +- .../Utils/LocalBundleReader.cpp | 58 +- .../Utils/LocalBundleReader.h | 8 +- vnext/Mso.UnitTests/Mso.UnitTests.vcxproj | 3 +- vnext/PropertySheets/React.Cpp.props | 3 +- vnext/Scripts/rnw-dependencies.ps1 | 1159 +++++++++-------- vnext/Shared/DevSupportManager.cpp | 103 +- vnext/Shared/DevSupportManager.h | 1 - .../Networking/WinRTWebSocketResource.h | 6 +- 20 files changed, 739 insertions(+), 662 deletions(-) create mode 100644 change/@react-native-windows-cli-543cf36f-0ce7-4df7-a391-285985d3f62c.json create mode 100644 change/react-native-windows-2a20c629-48b2-458d-80e6-26b5546c04e0.json diff --git a/change/@react-native-windows-cli-543cf36f-0ce7-4df7-a391-285985d3f62c.json b/change/@react-native-windows-cli-543cf36f-0ce7-4df7-a391-285985d3f62c.json new file mode 100644 index 00000000000..0552570c866 --- /dev/null +++ b/change/@react-native-windows-cli-543cf36f-0ce7-4df7-a391-285985d3f62c.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Upgrade to Visual Studio 2026", + "packageName": "@react-native-windows/cli", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-2a20c629-48b2-458d-80e6-26b5546c04e0.json b/change/react-native-windows-2a20c629-48b2-458d-80e6-26b5546c04e0.json new file mode 100644 index 00000000000..74bc56dcc93 --- /dev/null +++ b/change/react-native-windows-2a20c629-48b2-458d-80e6-26b5546c04e0.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Upgrade to Visual Studio 2026", + "packageName": "react-native-windows", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts b/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts index 6e34f37cfe2..c4451f5019b 100644 --- a/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts +++ b/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts @@ -11,8 +11,8 @@ export const HealthCheckList = [ [true, 'WindowsVersion', 'Windows version >= 10.0.17763.0'], [true, 'DeveloperMode', 'Developer mode is on'], [true, 'LongPath', 'Long path support is enabled'], - [true, 'VSUWP', 'Visual Studio 2022 (>= 17.11.0) & req. components'], + [true, 'VSUWP', 'Visual Studio 2026 (>= 18.6.1) & req. components'], [true, 'Node', 'Node.js (LTS, >= 22.0)'], [true, 'Yarn', 'Yarn'], - [true, 'DotNetCore', '.NET SDK (LTS, = 8.0)'], + [true, 'DotNetCore', '.NET SDK (LTS, = 10.0)'], ]; diff --git a/packages/@react-native-windows/cli/src/utils/vsInstalls.ts b/packages/@react-native-windows/cli/src/utils/vsInstalls.ts index 856cb052f7e..1d529177d89 100644 --- a/packages/@react-native-windows/cli/src/utils/vsInstalls.ts +++ b/packages/@react-native-windows/cli/src/utils/vsInstalls.ts @@ -82,12 +82,12 @@ export function enumerateVsInstalls(opts: { if (minVersionSemVer) { minVersion = minVersionSemVer.toString(); - maxVersion = `${minVersionSemVer.major + 1}.0`; + maxVersion = `${minVersionSemVer.major + 2}.0`; } else if (!Number.isNaN(minVersionNum)) { minVersion = Number.isInteger(minVersionNum) ? `${minVersionNum}.0` : minVersionNum.toString(); - maxVersion = `${Math.floor(minVersionNum) + 1}.0`; + maxVersion = `${Math.floor(minVersionNum) + 2}.0`; } else { // Unable to parse minVersion and determine maxVersion, // caller will throw error that version couldn't be found. diff --git a/vnext/Desktop.UnitTests/React.Windows.Desktop.UnitTests.vcxproj b/vnext/Desktop.UnitTests/React.Windows.Desktop.UnitTests.vcxproj index 50e4454b0e2..3ce42f78f26 100644 --- a/vnext/Desktop.UnitTests/React.Windows.Desktop.UnitTests.vcxproj +++ b/vnext/Desktop.UnitTests/React.Windows.Desktop.UnitTests.vcxproj @@ -80,7 +80,7 @@ $(VCInstallDir)UnitTest\include; %(AdditionalIncludeDirectories) - %(AdditionalOptions) /await + %(AdditionalOptions) /await - /await %(AdditionalOptions) /bigobj /FS + %(AdditionalOptions) /bigobj /FS + %(AdditionalOptions) /await true Cdecl diff --git a/vnext/Microsoft.ReactNative.NewArch.sln b/vnext/Microsoft.ReactNative.NewArch.sln index 73249dc0d9a..25c392c0d5c 100644 --- a/vnext/Microsoft.ReactNative.NewArch.sln +++ b/vnext/Microsoft.ReactNative.NewArch.sln @@ -1,12 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.3.32929.385 +# Visual Studio Version 18 +VisualStudioVersion = 18.6.11819.183 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.ReactNative", "Microsoft.ReactNative\Microsoft.ReactNative.vcxproj", "{F7D32BD0-2749-483E-9A0D-1635EF7E3136}" - ProjectSection(ProjectDependencies) = postProject - {14B93DC8-FD93-4A6D-81CB-8BC96644501C} = {14B93DC8-FD93-4A6D-81CB-8BC96644501C} - EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Chakra", "Chakra\Chakra.vcxitems", "{C38970C0-5FBF-4D69-90D8-CBAC225AE895}" EndProject @@ -119,11 +116,11 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Debug|ARM64 = Debug|ARM64 + Debug|x86 = Debug|x86 Release|x64 = Release|x64 - Release|x86 = Release|x86 Release|ARM64 = Release|ARM64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|ARM64.ActiveCfg = Debug|ARM64 diff --git a/vnext/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj b/vnext/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj index 0a2f7b7bf1a..44b27fe2433 100644 --- a/vnext/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +++ b/vnext/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj @@ -96,7 +96,8 @@ $(IntDir)pch.pch pch.h Level4 - /await %(AdditionalOptions) /bigobj /ZH:SHA_256 + %(AdditionalOptions) /bigobj /ZH:SHA_256 + %(AdditionalOptions) /await $(FmtDir)\include; $(ReactNativeWindowsDir)Microsoft.ReactNative; diff --git a/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.cpp b/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.cpp index 5194f68f6de..f203757a28e 100644 --- a/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.cpp +++ b/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.cpp @@ -54,7 +54,29 @@ std::string GetBundleFromEmbeddedResource(const winrt::Windows::Foundation::Uri return std::string(start, start + size); } -std::future LocalBundleReader::LoadBundleAsync(const std::wstring bundleUri) { +namespace { + +std::string BufferToString(const winrt::Windows::Storage::Streams::IBuffer &buffer) { + std::string result(buffer.Length(), '\0'); + if (!result.empty()) { + auto reader = winrt::Windows::Storage::Streams::DataReader::FromBuffer(buffer); + reader.ReadBytes(winrt::array_view{ + reinterpret_cast(&result[0]), reinterpret_cast(&result[result.length()])}); + } + return result; +} + +winrt::Windows::Storage::Streams::IBuffer BytesToBuffer(const void *data, uint32_t size) { + winrt::Windows::Storage::Streams::DataWriter writer; + auto bytes = static_cast(data); + writer.WriteBytes(winrt::array_view(bytes, bytes + size)); + return writer.DetachBuffer(); +} + +} // namespace + +winrt::Windows::Foundation::IAsyncOperation +LocalBundleReader::LoadBundleAsync(const std::wstring bundleUri) { try { co_await winrt::resume_background(); @@ -66,41 +88,26 @@ std::future LocalBundleReader::LoadBundleAsync(const std::wstring b file = co_await winrt::Windows::Storage::StorageFile::GetFileFromApplicationUriAsync(uri); } else if (bundleUri.starts_with(L"resource://")) { winrt::Windows::Foundation::Uri uri(bundleUri); - co_return GetBundleFromEmbeddedResource(uri); + auto bytes = GetBundleFromEmbeddedResource(uri); + co_return BytesToBuffer(bytes.data(), static_cast(bytes.size())); } else { file = co_await winrt::Windows::Storage::StorageFile::GetFileFromPathAsync(bundleUri); } - // Read the buffer manually to avoid a Utf8 -> Utf16 -> Utf8 encoding - // roundtrip. - auto fileBuffer{co_await winrt::Windows::Storage::FileIO::ReadBufferAsync(file)}; - auto dataReader{winrt::Windows::Storage::Streams::DataReader::FromBuffer(fileBuffer)}; - - // No need to use length + 1, STL guarantees that string storage is null-terminated. - std::string script(fileBuffer.Length(), '\0'); - - // Construct the array_view to slice into the first fileBuffer.Length bytes. - // DataReader.ReadBytes will read as many bytes as are present in the - // array_view. The backing string has fileBuffer.Length() + 1 bytes, without - // an explicit end it will read 1 byte to many and throw. - dataReader.ReadBytes(winrt::array_view{ - reinterpret_cast(&script[0]), reinterpret_cast(&script[script.length()])}); - dataReader.Close(); - - co_return script; + co_return co_await winrt::Windows::Storage::FileIO::ReadBufferAsync(file); } // RuntimeScheduler only handles std::exception or jsi::JSError - catch (winrt::hresult_error const &e) { - throw std::exception(winrt::to_string(e.message()).c_str()); + catch (winrt::hresult_error const &) { + throw; } } std::string LocalBundleReader::LoadBundle(const std::wstring &bundlePath) { - return LoadBundleAsync(bundlePath).get(); + return BufferToString(LoadBundleAsync(bundlePath).get()); } StorageFileBigString::StorageFileBigString(const std::wstring &path) { - m_futureBuffer = LocalBundleReader::LoadBundleAsync(path); + m_pendingLoad = LocalBundleReader::LoadBundleAsync(path); } bool StorageFileBigString::isAscii() const { @@ -118,8 +125,9 @@ size_t StorageFileBigString::size() const { } void StorageFileBigString::ensure() const { - if (m_string.empty()) { - m_string = m_futureBuffer.get(); + if (m_pendingLoad) { + m_string = BufferToString(m_pendingLoad.get()); + m_pendingLoad = nullptr; } } diff --git a/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.h b/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.h index 8671ebf59ee..4286189b94d 100644 --- a/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.h +++ b/vnext/Microsoft.ReactNative/Utils/LocalBundleReader.h @@ -3,14 +3,16 @@ #pragma once #include -#include +#include +#include #include namespace Microsoft::ReactNative { class LocalBundleReader { public: - static std::future LoadBundleAsync(const std::wstring bundlePath); + static winrt::Windows::Foundation::IAsyncOperation LoadBundleAsync( + const std::wstring bundlePath); static std::string LoadBundle(const std::wstring &bundlePath); }; @@ -24,7 +26,7 @@ class StorageFileBigString : public facebook::react::JSBigString { void ensure() const; private: - mutable std::future m_futureBuffer; + mutable winrt::Windows::Foundation::IAsyncOperation m_pendingLoad; mutable std::string m_string; }; diff --git a/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj b/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj index deb61b75114..aeb451e4f40 100644 --- a/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj +++ b/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj @@ -96,7 +96,8 @@ /bigobj - /FS - Force Synchronous PDB writes. Useful when setting MultiProcCL. --> - /await %(AdditionalOptions) /bigobj /FS + %(AdditionalOptions) /bigobj /FS + %(AdditionalOptions) /await true Cdecl diff --git a/vnext/PropertySheets/React.Cpp.props b/vnext/PropertySheets/React.Cpp.props index c7e5bf00008..5b182a5291c 100644 --- a/vnext/PropertySheets/React.Cpp.props +++ b/vnext/PropertySheets/React.Cpp.props @@ -138,7 +138,8 @@ ProgramDatabase true true - /utf-8 %(AdditionalOptions) /await + /utf-8 %(AdditionalOptions) + %(AdditionalOptions) /await Guard Spectre diff --git a/vnext/Scripts/rnw-dependencies.ps1 b/vnext/Scripts/rnw-dependencies.ps1 index 7d401ba3b67..99fb8084310 100644 --- a/vnext/Scripts/rnw-dependencies.ps1 +++ b/vnext/Scripts/rnw-dependencies.ps1 @@ -1,43 +1,43 @@ # Troubleshoot RNW dependencies param( - [switch]$Install = $false, - [switch]$NoPrompt = $false, - [switch]$Clone = $false, - [switch]$ListChecks = $false, - [string]$Check = [CheckId]::All, - - [Parameter(ValueFromRemainingArguments)] - [ValidateSet('appDev', 'rnwDev', 'buildLab', 'vs2022', 'clone')] - [String[]]$Tags = @('appDev'), - [switch]$Enterprise = $false + [switch]$Install = $false, + [switch]$NoPrompt = $false, + [switch]$Clone = $false, + [switch]$ListChecks = $false, + [string]$Check = [CheckId]::All, + + [Parameter(ValueFromRemainingArguments)] + [ValidateSet('appDev', 'rnwDev', 'buildLab', 'vs2026', 'clone')] + [String[]]$Tags = @('appDev'), + [switch]$Enterprise = $false ) $ShellInvocation = ($PSCmdlet.MyInvocation.BoundParameters -ne $null); $Verbose = $false if ($ShellInvocation) { - $Verbose = $PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent; + $Verbose = $PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent; } enum CheckId { - All - AzureFunctions - DeveloperMode - DotNetCore - FreeSpace - git - InstalledMemory - LongPath - MSBuildLogViewer - Node - RNWClone - VSUWP - WinAppDriver - WindowsADK - WindowsVersion - Yarn - CppWinRTVSIX + All + AzureFunctions + DeveloperMode + DotNetCore + FreeSpace + git + InstalledMemory + LongPath + MSBuildLogViewer + Node + RNWClone + VSUWP + WinAppDriver + WindowsADK + WindowsVersion + Yarn + CppWinRTVSIX } # CODESYNC \packages\@react-native-windows\cli\src\runWindows\runWindows.ts @@ -49,17 +49,17 @@ foreach ($tag in $Tags) { $tagsToInclude.Add($tag) | Out-null } # Convert legacy flags to tasks: if ($Clone) { - $tagsToInclude.Add('clone') | Out-null; + $tagsToInclude.Add('clone') | Out-null; } # Handle expansion of tasks if ($tagsToInclude.Contains('buildLab')) { - # The build lab needs the same steps as a react-native dev - $tagsToInclude.Add('rnwDev') | Out-null; + # The build lab needs the same steps as a react-native dev + $tagsToInclude.Add('rnwDev') | Out-null; } if ($tagsToInclude.Contains('rnwDev')) { - # A react-native dev needs the same as the default - $tagsToInclude.Add('appDev') | Out-null; + # A react-native dev needs the same as the default + $tagsToInclude.Add('appDev') | Out-null; } # Detect processor architecture to select appropriate VC Tools component @@ -68,43 +68,37 @@ $ProcessorArchitecture = $Env:Processor_Architecture # Getting $Env:Processor_Architecture on arm64 machines will return x86. So check if the environment # variable "ProgramFiles(Arm)" is also set, if it is we know the actual processor architecture is arm64. # The value will also be x86 on amd64 machines when running the x86 version of PowerShell. -if ($ProcessorArchitecture -eq "x86") -{ - if ($null -ne ${Env:ProgramFiles(Arm)}) - { - $ProcessorArchitecture = "arm64" - } - elseif ($null -ne ${Env:ProgramFiles(x86)}) - { - $ProcessorArchitecture = "amd64" - } +if ($ProcessorArchitecture -eq "x86") { + if ($null -ne ${Env:ProgramFiles(Arm)}) { + $ProcessorArchitecture = "arm64" + } + elseif ($null -ne ${Env:ProgramFiles(x86)}) { + $ProcessorArchitecture = "amd64" + } } # Select the appropriate VC Tools component based on processor architecture -if ($ProcessorArchitecture -eq "arm64") -{ - $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.ARM64' +if ($ProcessorArchitecture -eq "arm64") { + $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.ARM64' } -else -{ - $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64' +else { + $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64' } $vsComponents = @('Microsoft.Component.MSBuild', - $vcToolsComponent, - 'Microsoft.VisualStudio.ComponentGroup.UWP.Support', - 'Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core', - 'Microsoft.VisualStudio.Component.Windows10SDK.19041', - 'Microsoft.VisualStudio.Component.Windows11SDK.22621'); + $vcToolsComponent, + 'Microsoft.VisualStudio.ComponentGroup.UWP.Support', + 'Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core', + 'Microsoft.VisualStudio.Component.Windows11SDK.22621'); # UWP.VC is not needed to build the projects with msbuild, but the VS IDE requires it. if (!($tagsToInclude.Contains('buildLab'))) { - $vsComponents += 'Microsoft.VisualStudio.ComponentGroup.UWP.VC'; + $vsComponents += 'Microsoft.VisualStudio.ComponentGroup.UWP.VC'; } $vsWorkloads = @('Microsoft.VisualStudio.Workload.ManagedDesktop', - 'Microsoft.VisualStudio.Workload.NativeDesktop', - 'Microsoft.VisualStudio.Workload.Universal'); + 'Microsoft.VisualStudio.Workload.NativeDesktop', + 'Microsoft.VisualStudio.Workload.Universal'); $vsAll = ($vsComponents + $vsWorkloads); @@ -113,614 +107,651 @@ $wingetver = "1.7.11261"; # The minimum VS version to check for # Note: For install to work, whatever min version you specify here must be met by the current package available on winget. -$vsver = "17.11.0"; +$vsver = "18.6.1"; # The exact .NET SDK version to check for -$dotnetver = "8.0"; +$dotnetver = "10.0"; # Version name of the winget package -$wingetDotNetVer = "8"; +$wingetDotNetVer = "10"; $v = [System.Environment]::OSVersion.Version; if ($env:Agent_BuildDirectory) { - $drive = (Resolve-Path $env:Agent_BuildDirectory).Drive; -} else { - if ($PSCommandPath) { - $drive = (Resolve-Path $PSCommandPath).Drive; - } else { - $drive = (Resolve-Path $env:SystemDrive).Drive; - } + $drive = (Resolve-Path $env:Agent_BuildDirectory).Drive; +} +else { + if ($PSCommandPath) { + $drive = (Resolve-Path $PSCommandPath).Drive; + } + else { + $drive = (Resolve-Path $env:SystemDrive).Drive; + } } function Get-VSWhere { - Write-Verbose "Looking for Visual Studio Installer..."; - $vsWhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"; - if (!(Test-Path $vsWhere)) { - Write-Verbose "Visual Studio Installer not found."; - return $null; - } + Write-Verbose "Looking for Visual Studio Installer..."; + $vsWhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"; + if (!(Test-Path $vsWhere)) { + Write-Verbose "Visual Studio Installer not found."; + return $null; + } - Write-Verbose "Visual Studio Installer found."; - return $vsWhere; + Write-Verbose "Visual Studio Installer found."; + return $vsWhere; } function Get-VSPathPropertyForEachInstall { - param( - [string]$VsWhere, - [string]$PathProperty, - [string[]]$ExtraArgs =@() - ) + param( + [string]$VsWhere, + [string]$PathProperty, + [string[]]$ExtraArgs = @() + ) - [String[]]$output = & $VsWhere -version $vsver -property $PathProperty $ExtraArgs; - if ($output -ne $null) { - [String[]]$paths = ($output | Where-Object { (Test-Path $_) }); - return $paths; - } + [String[]]$output = & $VsWhere -version $vsver -property $PathProperty $ExtraArgs; + if ($output -ne $null) { + [String[]]$paths = ($output | Where-Object { (Test-Path $_) }); + return $paths; + } - return $null; + return $null; } function CheckVS-WithVSWhere { - param( - [string]$VsWhere, - [switch]$CheckPreRelease = $false - ) + param( + [string]$VsWhere, + [switch]$CheckPreRelease = $false + ) - [string[]] $requireArgs = @("-requires"); - $requireArgs += $vsAll; + [string[]] $requireArgs = @("-requires"); + $requireArgs += $vsAll; - [string[]] $prereleaseArgs = @(); - if ($CheckPreRelease) { - $prereleaseArgs += "-prerelease"; - } + [string[]] $prereleaseArgs = @(); + if ($CheckPreRelease) { + $prereleaseArgs += "-prerelease"; + } - # Checking for VS + all required components - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs ($requireArgs + $prereleaseArgs); - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found, with required components, at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - return $true; - } + # Checking for VS + all required components + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs ($requireArgs + $prereleaseArgs); + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found, with required components, at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + return $true; + } - # Check for VS without required components - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs $prereleaseArgs; - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found, but without required components, at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - return $false; - } + # Check for VS without required components + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs $prereleaseArgs; + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found, but without required components, at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + return $false; + } - Write-Verbose "No Visual Studio installs found."; + Write-Verbose "No Visual Studio installs found."; - return $false; + return $false; } function CheckVS { - $vsWhere = Get-VSWhere; - if ($vsWhere -eq $null) { - return $false; - } + $vsWhere = Get-VSWhere; + if ($vsWhere -eq $null) { + return $false; + } - Write-Verbose "Looking for Visual Studio install(s)..."; - [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere; + Write-Verbose "Looking for Visual Studio install(s)..."; + [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere; - if (!$result) { - Write-Verbose "Retrying, but also including pre-releases versions..."; - [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere -CheckPreRelease $true; - } + if (!$result) { + Write-Verbose "Retrying, but also including pre-releases versions..."; + [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere -CheckPreRelease $true; + } - return $result; + return $result; } function GetVSChannelAndProduct { - param( - [string]$VsWhere - ) + param( + [string]$VsWhere + ) - if ($VsWhere) { - $channelId = & $VsWhere -version $vsver -property channelId; - $productId = & $VsWhere -version $vsver -property productId; + if ($VsWhere) { + $channelId = & $VsWhere -version $vsver -property channelId; + $productId = & $VsWhere -version $vsver -property productId; - # Channel/product not found, check one more time for pre-release - if (($channelId -eq $null) -or ($productId -eq $null)) { - $channelId = & $VsWhere -version $vsver -property channelId -prerelease; - $productId = & $VsWhere -version $vsver -property productId -prerelease; - } + # Channel/product not found, check one more time for pre-release + if (($channelId -eq $null) -or ($productId -eq $null)) { + $channelId = & $VsWhere -version $vsver -property channelId -prerelease; + $productId = & $VsWhere -version $vsver -property productId -prerelease; + } - return $channelId, $productId; - } + return $channelId, $productId; + } - return $null, $null; + return $null, $null; } function InstallVS { - $vsWhere = Get-VSWhere; + $vsWhere = Get-VSWhere; - $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere + $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere - if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { - # No VSWhere / VS_Installer, try to install + if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { + # No VSWhere / VS_Installer, try to install - if ($Enterprise) { - # The CI machines need the enterprise version of VS as that is what is hardcoded in all the scripts - WinGetInstall Microsoft.VisualStudio.2022.Enterprise - } else { - WinGetInstall Microsoft.VisualStudio.2022.Community - } + if ($Enterprise) { + # The CI machines need the enterprise version of VS as that is what is hardcoded in all the scripts + WinGetInstall Microsoft.VisualStudio.Enterprise + } + else { + WinGetInstall Microsoft.VisualStudio.Community + } - $vsWhere = Get-VSWhere; + $vsWhere = Get-VSWhere; - $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere - } + $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere + } - # Final check before attempting install - if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { - throw "Unable to find or install a compatible version of Visual Studio >= ($vsver)."; - } + # Final check before attempting install + if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { + throw "Unable to find or install a compatible version of Visual Studio >= ($vsver)."; + } - $vsInstaller = Join-Path -Path (Split-Path -Parent $vsWhere) -ChildPath "vs_installer.exe"; + $vsInstaller = Join-Path -Path (Split-Path -Parent $vsWhere) -ChildPath "vs_installer.exe"; - $addWorkloads = $vsAll | % { '--add', $_ }; - $p = Start-Process -PassThru -Wait -FilePath $vsInstaller -ArgumentList ("modify --channelId $channelId --productId $productId $addWorkloads --quiet --includeRecommended" -split ' '); - return $p.ExitCode; + $addWorkloads = $vsAll | % { '--add', $_ }; + $p = Start-Process -PassThru -Wait -FilePath $vsInstaller -ArgumentList ("modify --channelId $channelId --productId $productId $addWorkloads --quiet --includeRecommended" -split ' '); + return $p.ExitCode; } function CheckNode { - try { - $nodeVersion = (Get-Command node -ErrorAction Stop).Version; - Write-Verbose "Node version found: $nodeVersion"; - $major = $nodeVersion.Major; - $minor = $nodeVersion.Minor; - return ($major -gt 22) -or (($major -eq 22) -and ($minor -ge 14)); - } catch { Write-Debug $_ } + try { + $nodeVersion = (Get-Command node -ErrorAction Stop).Version; + Write-Verbose "Node version found: $nodeVersion"; + $major = $nodeVersion.Major; + $minor = $nodeVersion.Minor; + return ($major -gt 22) -or (($major -eq 22) -and ($minor -ge 14)); + } + catch { Write-Debug $_ } - Write-Verbose "Node not found."; - return $false; + Write-Verbose "Node not found."; + return $false; } function CheckYarn { - try { - $yarn = (Get-Command yarn -ErrorAction Stop); - if ($yarn -ne $null) { - $yarnVersion = & yarn -v; - Write-Verbose "Yarn version found: $yarnVersion"; - return $true; - } - } catch { Write-Debug $_ } + try { + $yarn = (Get-Command yarn -ErrorAction Stop); + if ($yarn -ne $null) { + $yarnVersion = & yarn -v; + Write-Verbose "Yarn version found: $yarnVersion"; + return $true; + } + } + catch { Write-Debug $_ } - Write-Verbose "Yarn not found."; - return $false; + Write-Verbose "Yarn not found."; + return $false; } function CheckWinAppDriver { - $WADPath = "${env:ProgramFiles(x86)}\Windows Application Driver\WinAppDriver.exe"; - if (Test-Path $WADPath) { - $version = [Version]([System.Diagnostics.FileVersionInfo]::GetVersionInfo($WADPath).FileVersion); - Write-Verbose "WinAppDriver version found: $version"; - return $version.CompareTo([Version]"1.2.1") -ge 0; - } + $WADPath = "${env:ProgramFiles(x86)}\Windows Application Driver\WinAppDriver.exe"; + if (Test-Path $WADPath) { + $version = [Version]([System.Diagnostics.FileVersionInfo]::GetVersionInfo($WADPath).FileVersion); + Write-Verbose "WinAppDriver version found: $version"; + return $version.CompareTo([Version]"1.2.1") -ge 0; + } - Write-Verbose "WinAppDriver not found."; - return $false; + Write-Verbose "WinAppDriver not found."; + return $false; } function EnableDevmode { - $RegistryKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"; + $RegistryKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"; - if (-not(Test-Path -Path $RegistryKeyPath)) { - New-Item -Path $RegistryKeyPath -ItemType Directory -Force; - } + if (-not(Test-Path -Path $RegistryKeyPath)) { + New-Item -Path $RegistryKeyPath -ItemType Directory -Force; + } - $value = get-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -ErrorAction SilentlyContinue; - if (($value -eq $null) -or ($value.AllowDevelopmentWithoutDevLicense -ne 1)) { - Set-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -Value 1 -ErrorAction Stop; - } + $value = get-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -ErrorAction SilentlyContinue; + if (($value -eq $null) -or ($value.AllowDevelopmentWithoutDevLicense -ne 1)) { + Set-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -Value 1 -ErrorAction Stop; + } } function CheckCppWinRT_VSIX { - $vsWhere = Get-VSWhere; - if ($vsWhere -eq $null) { - return $false; - } - - [string]$vsPath = $null; - - Write-Verbose "Looking for Visual Studio install(s)..." - [String[]]$vsPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'installationPath'; - if ($vsPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $vsPaths | ForEach { Write-Verbose " $_" } - $vsPath = $vsPaths[0]; - } - - if ($vsPath -eq $null) { - Write-Verbose "Retrying, but also including pre-releases versions..." - - [String[]]$vsPaths = Get-VSPropertyForEachInstall -VsWhere $VsWhere -Property 'installationPath' -ExtraArgs @('-prerelease'); - if ($vsPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $vsPaths | ForEach { Write-Verbose " $_" } - $vsPath = $vsPaths[0]; - } - } - - if ($vsPath -ne $null) { - $natvis = Get-ChildItem (Join-Path -Path $vsPath -ChildPath "Common7\IDE\Extensions\cppwinrt.natvis") -Recurse; - if ($natvis -ne $null) { - Write-Verbose "Found CppWinRT VISX at:"; - Write-Verbose " $(Split-Path $natvis)"; - return $true; - } - } - - Write-Verbose "CppWinRT VISX not found."; - return $false; + $vsWhere = Get-VSWhere; + if ($vsWhere -eq $null) { + return $false; + } + + [string]$vsPath = $null; + + Write-Verbose "Looking for Visual Studio install(s)..." + [String[]]$vsPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'installationPath'; + if ($vsPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $vsPaths | ForEach { Write-Verbose " $_" } + $vsPath = $vsPaths[0]; + } + + if ($vsPath -eq $null) { + Write-Verbose "Retrying, but also including pre-releases versions..." + + [String[]]$vsPaths = Get-VSPropertyForEachInstall -VsWhere $VsWhere -Property 'installationPath' -ExtraArgs @('-prerelease'); + if ($vsPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $vsPaths | ForEach { Write-Verbose " $_" } + $vsPath = $vsPaths[0]; + } + } + + if ($vsPath -ne $null) { + $natvis = Get-ChildItem (Join-Path -Path $vsPath -ChildPath "Common7\IDE\Extensions\cppwinrt.natvis") -Recurse; + if ($natvis -ne $null) { + Write-Verbose "Found CppWinRT VISX at:"; + Write-Verbose " $(Split-Path $natvis)"; + return $true; + } + } + + Write-Verbose "CppWinRT VISX not found."; + return $false; } function InstallCppWinRT_VSIX { - $url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/CppWinRTTeam/vsextensions/cppwinrt101804264/2.0.210304.5/vspackage"; - Write-Verbose "Downloading CppWinRT VSIX from $url"; - Invoke-WebRequest -UseBasicParsing $url -OutFile $env:TEMP\Microsoft.Windows.CppWinRT.vsix; - - $vsWhere = Get-VSWhere; - if ($vsWhere -eq $null) { - return; - } - - [string]$productPath = $null; - - Write-Verbose "Looking for Visual Studio install(s)..."; - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath'; - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - $productPath = $productPaths[0]; - } - - if ($productPath -eq $null) { - Write-Verbose "Retrying, but also including pre-releases versions..."; - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs @('-prerelease'); - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - $productPath = $productPaths[0]; - } - } - - $VSIXInstaller_exe = Join-Path (Split-Path $productPath) "VSIXInstaller.exe"; - $process = Start-Process $VSIXInstaller_exe -PassThru -Wait -ArgumentList "/a /q $env:TEMP\Microsoft.Windows.CppWinRT.vsix"; - $process.WaitForExit(); + $url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/CppWinRTTeam/vsextensions/cppwinrt101804264/2.0.210304.5/vspackage"; + Write-Verbose "Downloading CppWinRT VSIX from $url"; + Invoke-WebRequest -UseBasicParsing $url -OutFile $env:TEMP\Microsoft.Windows.CppWinRT.vsix; + + $vsWhere = Get-VSWhere; + if ($vsWhere -eq $null) { + return; + } + + [string]$productPath = $null; + + Write-Verbose "Looking for Visual Studio install(s)..."; + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath'; + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + $productPath = $productPaths[0]; + } + + if ($productPath -eq $null) { + Write-Verbose "Retrying, but also including pre-releases versions..."; + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs @('-prerelease'); + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + $productPath = $productPaths[0]; + } + } + + $VSIXInstaller_exe = Join-Path (Split-Path $productPath) "VSIXInstaller.exe"; + $process = Start-Process $VSIXInstaller_exe -PassThru -Wait -ArgumentList "/a /q $env:TEMP\Microsoft.Windows.CppWinRT.vsix"; + $process.WaitForExit(); } function CheckDotNetCore { - try { - $dotnet = (Get-Command dotnet.exe -ErrorAction Stop); - if ($dotnet -ne $null) { - Write-Verbose ".NET found, searching for SDKs..."; - [string[]]$sdks = & dotnet --list-sdks; - if ($sdks -ne $null) { - Write-Verbose ".NET SDKs found:"; - $sdks | ForEach { Write-Verbose " $_" }; - $validSDKs = $sdks | Where-Object { $_ -like "$dotnetver.*"}; - return ($validSDKs -ne $null) -and ($validSDKs.Length -ge 1); - } - } - } catch { Write-Debug $_ } - - Write-Verbose ".NET not found."; - return $false; + try { + $dotnet = (Get-Command dotnet.exe -ErrorAction Stop); + if ($dotnet -ne $null) { + Write-Verbose ".NET found, searching for SDKs..."; + [string[]]$sdks = & dotnet --list-sdks; + if ($sdks -ne $null) { + Write-Verbose ".NET SDKs found:"; + $sdks | ForEach { Write-Verbose " $_" }; + $validSDKs = $sdks | Where-Object { $_ -like "$dotnetver.*" }; + return ($validSDKs -ne $null) -and ($validSDKs.Length -ge 1); + } + } + } + catch { Write-Debug $_ } + + Write-Verbose ".NET not found."; + return $false; } $requiredFreeSpaceGB = 15; $requirements = @( - @{ - Id=[CheckId]::FreeSpace; - Name = "Free space on current drive > $requiredFreeSpaceGB GB"; - Tags = @('appDev'); - Valid = { $drive.Free/1GB -gt $requiredFreeSpaceGB; } - HasVerboseOutput = $true; - Optional = $true; # this requirement is fuzzy - }, - @{ - Id=[CheckId]::InstalledMemory; - Name = "Installed memory >= 16 GB"; - Tags = @('appDev'); - Valid = { (Get-CimInstance -ClassName win32_computersystem).TotalPhysicalMemory -gt 15GB; } - HasVerboseOutput = $true; - Optional = $true; - }, - @{ - Id=[CheckId]::WindowsVersion; - Name = 'Windows version >= 10.0.17763.0'; - Tags = @('appDev'); - Valid = { ($v.Major -eq 10 -and $v.Minor -eq 0 -and $v.Build -ge 16299); } - }, - @{ - Id=[CheckId]::DeveloperMode; - Name = 'Developer mode is on'; - Tags = @('appDev'); - Valid = { try { (Get-WindowsDeveloperLicense).IsValid } catch { $false }; } - Install = { EnableDevMode }; - }, - @{ - Id=[CheckId]::LongPath; - Name = 'Long path support is enabled'; - Tags = @('appDev'); - Valid = { try { (Get-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled).LongPathsEnabled -eq 1} catch { $false }; } - Install = { Set-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled -Value 1 -Type DWord; }; - }, - @{ - Id=[CheckId]::git; - Name = 'Git'; - Tags = @('rnwDev'); - Valid = { try { (Get-Command git.exe -ErrorAction Stop) -ne $null } catch { $false }; } - Install = { WinGetInstall Microsoft.Git }; - }, - @{ - Id=[CheckId]::VSUWP; - Name = "Visual Studio 2022 (>= $vsver) & req. components"; - Tags = @('appDev', 'vs2022'); - Valid = { CheckVS; } - Install = { InstallVS }; - HasVerboseOutput = $true; - }, - @{ - Id=[CheckId]::Node; - Name = 'Node.js (LTS, >= 22.0)'; - Tags = @('appDev'); - Valid = { CheckNode; } - Install = { WinGetInstall OpenJS.NodeJS.LTS "22.14.0" }; - HasVerboseOutput = $true; - }, - @{ - Id=[CheckId]::Yarn; - Name = 'Yarn'; - Tags = @('appDev'); - Valid = { CheckYarn } - Install = { WinGetInstall Yarn.Yarn }; - HasVerboseOutput = $true; - }, - @{ - Id=[CheckId]::WinAppDriver; - Name = 'WinAppDriver (>= 1.2.1)'; - Tags = @('rnwDev'); - Valid = { CheckWinAppDriver; } - Install = { - $ProgressPreference = 'Ignore'; - $url = "https://github.com/microsoft/WinAppDriver/releases/download/v1.2.1/WindowsApplicationDriver_1.2.1.msi"; - $downloadPath = "$env:TEMP\WindowsApplicationDriver.msi" - Write-Verbose "Downloading WinAppDriver from $url"; - Invoke-WebRequest -UseBasicParsing $url -OutFile $downloadPath - - # SDL Compliance: Verify signature (Work Item 58386093) - $signature = Get-AuthenticodeSignature $downloadPath - if ($signature.Status -ne "Valid") { - Remove-Item $downloadPath -ErrorAction SilentlyContinue - throw "WinAppDriver signature verification failed" - } - if ($signature.SignerCertificate.Subject -notlike "*Microsoft*") { - Remove-Item $downloadPath -ErrorAction SilentlyContinue - throw "WinAppDriver not signed by Microsoft" - } - - & $downloadPath /q - Remove-Item $downloadPath -ErrorAction SilentlyContinue - }; - HasVerboseOutput = $true; - Optional = $true; - }, - @{ - Id=[CheckId]::MSBuildLogViewer; - Name = "MSBuild Structured Log Viewer"; - Tags = @('rnwDev'); - Valid = { ( cmd "/c assoc .binlog 2>nul" ) -ne $null; } - Install = { - WinGetInstall KirillOsenkov.MSBuildStructuredLogViewer; - $slv = gci ${env:LocalAppData}\MSBuildStructuredLogViewer\StructuredLogViewer.exe -Recurse | select FullName | Sort-Object -Property FullName -Descending | Select-Object -First 1 - cmd /c "assoc .binlog=MSBuildLog >nul"; - cmd /c "ftype MSBuildLog=$($slv.FullName) %1 >nul"; - }; - Optional = $true; - }, - @{ - # Install the Windows ADK (Assessment and Deployment Kit) to install the wpt (Windows Performance Toolkit) so we can use wpr (Windows Performance Recorder) for performance analysis - Id=[CheckId]::WindowsADK; - Name = 'Windows ADK'; - Tags = @('buildLab'); - Valid = { (Test-Path "${env:ProgramFiles(x86)}\Windows Kits\10\Windows Performance Toolkit\wpr.exe"); }; - Install = { WinGetInstall Microsoft.WindowsADK }; - Optional = $true; - }, - @{ - Id=[CheckId]::RNWClone; - Name = "React-Native-Windows clone"; - Tags = @('clone'); - Valid = { try { - Test-Path -Path react-native-windows - } catch { $false }; } - Install = { & "${env:ProgramFiles}\Git\cmd\git.exe" clone https://github.com/microsoft/react-native-windows.git }; - Optional = $true; - }, - @{ - Id=[CheckId]::CppWinRTVSIX; - Name = "C++/WinRT VSIX package"; - Tags = @('rnwDev'); - Valid = { CheckCppWinRT_VSIX; }; - Install = { InstallCppWinRT_VSIX }; - HasVerboseOutput = $true; - Optional = $true; - }, - @{ - ID=[CheckId]::DotNetCore; - Name = ".NET SDK (LTS, = $dotnetver)"; - Tags = @('appDev'); - Valid = { CheckDotNetCore; }; - Install = { WinGetInstall Microsoft.DotNet.SDK.$wingetDotNetVer }; - HasVerboseOutput = $true; - } + @{ + Id = [CheckId]::FreeSpace; + Name = "Free space on current drive > $requiredFreeSpaceGB GB"; + Tags = @('appDev'); + Valid = { $drive.Free / 1GB -gt $requiredFreeSpaceGB; } + HasVerboseOutput = $true; + Optional = $true; # this requirement is fuzzy + }, + @{ + Id = [CheckId]::InstalledMemory; + Name = "Installed memory >= 16 GB"; + Tags = @('appDev'); + Valid = { (Get-CimInstance -ClassName win32_computersystem).TotalPhysicalMemory -gt 15GB; } + HasVerboseOutput = $true; + Optional = $true; + }, + @{ + Id = [CheckId]::WindowsVersion; + Name = 'Windows version >= 10.0.17763.0'; + Tags = @('appDev'); + Valid = { ($v.Major -eq 10 -and $v.Minor -eq 0 -and $v.Build -ge 16299); } + }, + @{ + Id = [CheckId]::DeveloperMode; + Name = 'Developer mode is on'; + Tags = @('appDev'); + Valid = { try { (Get-WindowsDeveloperLicense).IsValid } catch { $false }; } + Install = { EnableDevMode }; + }, + @{ + Id = [CheckId]::LongPath; + Name = 'Long path support is enabled'; + Tags = @('appDev'); + Valid = { try { (Get-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled).LongPathsEnabled -eq 1 } catch { $false }; } + Install = { Set-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled -Value 1 -Type DWord; }; + }, + @{ + Id = [CheckId]::git; + Name = 'Git'; + Tags = @('rnwDev'); + Valid = { try { (Get-Command git.exe -ErrorAction Stop) -ne $null } catch { $false }; } + Install = { WinGetInstall Microsoft.Git }; + }, + @{ + Id = [CheckId]::VSUWP; + Name = "Visual Studio 2026 (>= $vsver) & req. components"; + Tags = @('appDev', 'vs2026'); + Valid = { CheckVS; } + Install = { InstallVS }; + HasVerboseOutput = $true; + }, + @{ + Id = [CheckId]::Node; + Name = 'Node.js (LTS, >= 22.0)'; + Tags = @('appDev'); + Valid = { CheckNode; } + Install = { WinGetInstall OpenJS.NodeJS.LTS "22.14.0" }; + HasVerboseOutput = $true; + }, + @{ + Id = [CheckId]::Yarn; + Name = 'Yarn'; + Tags = @('appDev'); + Valid = { CheckYarn } + Install = { WinGetInstall Yarn.Yarn }; + HasVerboseOutput = $true; + }, + @{ + Id = [CheckId]::WinAppDriver; + Name = 'WinAppDriver (>= 1.2.1)'; + Tags = @('rnwDev'); + Valid = { CheckWinAppDriver; } + Install = { + $ProgressPreference = 'Ignore'; + $url = "https://github.com/microsoft/WinAppDriver/releases/download/v1.2.1/WindowsApplicationDriver_1.2.1.msi"; + $downloadPath = "$env:TEMP\WindowsApplicationDriver.msi" + Write-Verbose "Downloading WinAppDriver from $url"; + Invoke-WebRequest -UseBasicParsing $url -OutFile $downloadPath + + # SDL Compliance: Verify signature (Work Item 58386093) + $signature = Get-AuthenticodeSignature $downloadPath + if ($signature.Status -ne "Valid") { + Remove-Item $downloadPath -ErrorAction SilentlyContinue + throw "WinAppDriver signature verification failed" + } + if ($signature.SignerCertificate.Subject -notlike "*Microsoft*") { + Remove-Item $downloadPath -ErrorAction SilentlyContinue + throw "WinAppDriver not signed by Microsoft" + } + + & $downloadPath /q + Remove-Item $downloadPath -ErrorAction SilentlyContinue + }; + HasVerboseOutput = $true; + Optional = $true; + }, + @{ + Id = [CheckId]::MSBuildLogViewer; + Name = "MSBuild Structured Log Viewer"; + Tags = @('rnwDev'); + Valid = { ( cmd "/c assoc .binlog 2>nul" ) -ne $null; } + Install = { + WinGetInstall KirillOsenkov.MSBuildStructuredLogViewer; + $slv = gci ${env:LocalAppData}\MSBuildStructuredLogViewer\StructuredLogViewer.exe -Recurse | select FullName | Sort-Object -Property FullName -Descending | Select-Object -First 1 + cmd /c "assoc .binlog=MSBuildLog >nul"; + cmd /c "ftype MSBuildLog=$($slv.FullName) %1 >nul"; + }; + Optional = $true; + }, + @{ + # Install the Windows ADK (Assessment and Deployment Kit) to install the wpt (Windows Performance Toolkit) so we can use wpr (Windows Performance Recorder) for performance analysis + Id = [CheckId]::WindowsADK; + Name = 'Windows ADK'; + Tags = @('buildLab'); + Valid = { (Test-Path "${env:ProgramFiles(x86)}\Windows Kits\10\Windows Performance Toolkit\wpr.exe"); }; + Install = { WinGetInstall Microsoft.WindowsADK }; + Optional = $true; + }, + @{ + Id = [CheckId]::RNWClone; + Name = "React-Native-Windows clone"; + Tags = @('clone'); + Valid = { try { + Test-Path -Path react-native-windows + } + catch { $false }; } + Install = { & "${env:ProgramFiles}\Git\cmd\git.exe" clone https://github.com/microsoft/react-native-windows.git }; + Optional = $true; + }, + @{ + Id = [CheckId]::CppWinRTVSIX; + Name = "C++/WinRT VSIX package"; + Tags = @('rnwDev'); + Valid = { CheckCppWinRT_VSIX; }; + Install = { InstallCppWinRT_VSIX }; + HasVerboseOutput = $true; + Optional = $true; + }, + @{ + ID = [CheckId]::DotNetCore; + Name = ".NET SDK (LTS, = $dotnetver)"; + Tags = @('appDev'); + Valid = { CheckDotNetCore; }; + Install = { WinGetInstall Microsoft.DotNet.SDK.$wingetDotNetVer }; + HasVerboseOutput = $true; + } ); function InstallWinGet { - Write-Verbose "Updating WinGet version..."; - Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile "$env:TEMP\winget.msixbundle"; - Add-AppPackage -ForceApplicationShutdown $env:TEMP\winget.msixbundle; - Remove-Item $env:TEMP\winget.msixbundle; + Write-Verbose "Updating WinGet version..."; + Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile "$env:TEMP\winget.msixbundle"; + Add-AppPackage -ForceApplicationShutdown $env:TEMP\winget.msixbundle; + Remove-Item $env:TEMP\winget.msixbundle; } function EnsureWinGetForInstall { - Write-Verbose "Checking for WinGet..."; - try { - # Check if winget.exe is in PATH - if (Get-Command "winget.exe" -CommandType Application -ErrorAction Ignore) { - Write-Verbose "WinGet found in PATH."; - Write-Verbose "Validating WinGet version..."; - $wingetverfound = & winget -v; - if ([System.Version]$wingetverfound.Substring(1) -ge [System.Version]$wingetver ){ - Write-Verbose "WinGet version found: $wingetverfound"; - return; - } - } - InstallWinGet; - $installedwingetver = & winget -v; - Write-Verbose "WinGet version installed: $installedwingetver"; - } catch { Write-Debug $_ } + Write-Verbose "Checking for WinGet..."; + try { + # Check if winget.exe is in PATH + if (Get-Command "winget.exe" -CommandType Application -ErrorAction Ignore) { + Write-Verbose "WinGet found in PATH."; + Write-Verbose "Validating WinGet version..."; + $wingetverfound = & winget -v; + if ([System.Version]$wingetverfound.Substring(1) -ge [System.Version]$wingetver ) { + Write-Verbose "WinGet version found: $wingetverfound"; + return; + } + } + InstallWinGet; + $installedwingetver = & winget -v; + Write-Verbose "WinGet version installed: $installedwingetver"; + } + catch { Write-Debug $_ } } function WinGetInstall { - param( - [string]$wingetPackage, - [string]$packageVersion = "" - ) - - EnsureWinGetForInstall; - if ($packageVersion -ne "") { - Write-Verbose "Executing `winget install `"$wingetPackage`" --version `"$packageVersion`""; - & winget install "$wingetPackage" --version "$packageVersion" --accept-source-agreements --accept-package-agreements - } else { - Write-Verbose "Executing `winget install `"$wingetPackage`""; - & winget install "$wingetPackage" --accept-source-agreements --accept-package-agreements - } - } + param( + [string]$wingetPackage, + [string]$packageVersion = "" + ) + + EnsureWinGetForInstall; + if ($packageVersion -ne "") { + Write-Verbose "Executing `winget install `"$wingetPackage`" --version `"$packageVersion`""; + & winget install "$wingetPackage" --version "$packageVersion" --accept-source-agreements --accept-package-agreements + } + else { + Write-Verbose "Executing `winget install `"$wingetPackage`""; + & winget install "$wingetPackage" --accept-source-agreements --accept-package-agreements + } + + # Refresh PATH environment variable to pick up newly installed tools + $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") +} function IsElevated { - return [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544"); + return [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544"); } if (!($NoPrompt) -and !(IsElevated)) { - Write-Host "rnw-dependencies - this script must run elevated."; - if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } - exit 1 + Write-Host "rnw-dependencies - this script must run elevated."; + if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } + exit 1 } $NeedsRerun = 0; $Installed = 0; $filteredRequirements = New-Object System.Collections.Generic.List[object]; -foreach ($req in $requirements) -{ - if ($Check -eq [CheckId]::All -or $req.Id -eq $Check) - { - foreach ($tag in $req.Tags) - { - if ($tagsToInclude.Contains($tag)) - { - $filteredRequirements.Add($req); - break; - } - } - } +foreach ($req in $requirements) { + if ($Check -eq [CheckId]::All -or $req.Id -eq $Check) { + foreach ($tag in $req.Tags) { + if ($tagsToInclude.Contains($tag)) { + $filteredRequirements.Add($req); + break; + } + } + } } if ($ListChecks) { - foreach ($req in $filteredRequirements) - { - if ($req.Optional) - { - Write-Host -NoNewline Optional; - } - else - { - Write-Host -NoNewline Required; - } - Write-Host -NoNewline ": "; - Write-Host -NoNewline $req.Id; - Write-Host -NoNewline ": "; - Write-Host $req.Name; - } - return; + foreach ($req in $filteredRequirements) { + if ($req.Optional) { + Write-Host -NoNewline Optional; + } + else { + Write-Host -NoNewline Required; + } + Write-Host -NoNewline ": "; + Write-Host -NoNewline $req.Id; + Write-Host -NoNewline ": "; + Write-Host $req.Name; + } + return; } if (Test-Path $MarkerFile) { - Remove-Item $MarkerFile; -} - -foreach ($req in $filteredRequirements) -{ - Write-Host -NoNewline "Checking $($req.Name) "; - $resultPad = 60 - $req.Name.Length; - - if ($req.HasVerboseOutput -and -$Verbose) { - # This makes sure the verbose output is one line lower - Write-Host ""; - $resultPad = 70; - } - - $valid = $false; - try { - $valid = Invoke-Command $req.Valid; - } catch { - Write-Warning "There was a problem checking for $($req.Name). Re-run with -Debug for details." - Write-Debug $_ - } - - if (!$valid) { - if ($req.Optional) { - Write-Host -ForegroundColor Yellow " Failed (warn)".PadLeft($resultPad); - } - else { - Write-Host -ForegroundColor Red " Failed".PadLeft($resultPad); - } - if ($req.Install) { - if ($Install -or (!$NoPrompt -and (Read-Host "Do you want to install? [y/N]").ToUpperInvariant() -eq 'Y')) { - try { - $LASTEXITCODE = 0; - $outputFromInstall = Invoke-Command $req.Install -ErrorAction Stop; - - if ($LASTEXITCODE -ne 0) { - throw "Last exit code was non-zero: $LASTEXITCODE - $outputFromInstall"; - } - - $Installed++; - continue; # go to the next item - - } catch { - Write-Warning "There was a problem trying to install $($req.Name). Re-run with -Debug for details." - Write-Debug $_ - } - } - } - # If we got here, the req needed to be installed but wasn't - $NeedsRerun += !($req.Optional); # don't let failures from optional components fail the script - } else { - Write-Host -ForegroundColor Green " OK".PadLeft($resultPad); - } -} - - -if ($Installed -ne 0) { - Write-Host "Installed $Installed dependencies. You may need to close this window for changes to take effect."; -} - -if ($NeedsRerun -ne 0) { - if ($Verbose) { - Write-Warning "Some dependencies are not met. Re-run with -Install to install them."; - } else { - Write-Warning "Some dependencies are not met. Re-run with -Verbose for details, or use -Install to install them."; - } - if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } - exit 1; -} else { - Write-Host "All mandatory requirements met."; - $Tags | Out-File $MarkerFile; - if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } - exit 0; -} \ No newline at end of file + Remove-Item $MarkerFile; +} + +foreach ($req in $filteredRequirements) { + Write-Host -NoNewline "Checking $($req.Name) "; + $resultPad = 60 - $req.Name.Length; + + if ($req.HasVerboseOutput -and - $Verbose) { + # This makes sure the verbose output is one line lower + Write-Host ""; + $resultPad = 70; + } + + $valid = $false; + try { + $valid = Invoke-Command $req.Valid; + } + catch { + Write-Warning "There was a problem checking for $($req.Name). Re-run with -Debug for details." + Write-Debug $_ + } + + if (!$valid) { + if ($req.Optional) { + Write-Host -ForegroundColor Yellow " Failed (warn)".PadLeft($resultPad); + } + else { + Write-Host -ForegroundColor Red " Failed".PadLeft($resultPad); + } + if ($req.Install) { + if ($Install -or (!$NoPrompt -and (Read-Host "Do you want to install? [y/N]").ToUpperInvariant() -eq 'Y')) { + try { + $LASTEXITCODE = 0; + $outputFromInstall = Invoke-Command $req.Install -ErrorAction Stop; + + <<<<<<< HEAD + || || || | parent of b5ff57891 (Upgrade to Visual Studio 2026 (#16170)) + # Re-validate after install attempt - winget may return non-zero for "already installed" + $validAfterInstall = $false; + try { + $validAfterInstall = Invoke-Command $req.Valid; + } + catch { } + + if ($validAfterInstall) { + $Installed++; + continue; # go to the next item + } + + ======= + # Re-validate after install attempt - winget may return non-zero for "already installed" + $validAfterInstall = $false; + try { + $validAfterInstall = Invoke-Command $req.Valid; + } + catch { } + + if ($validAfterInstall) { + $Installed++; + continue; # go to the next item + } + + >>>>>>> b5ff57891 (Upgrade to Visual Studio 2026 (#16170)) + if ($LASTEXITCODE -ne 0) { + throw "Last exit code was non-zero: $LASTEXITCODE - $outputFromInstall"; + } + + $Installed++; + continue; # go to the next item + + } + catch { + Write-Warning "There was a problem trying to install $($req.Name). Re-run with -Debug for details." + Write-Debug $_ + } + } + } + # If we got here, the req needed to be installed but wasn't + $NeedsRerun += !($req.Optional); # don't let failures from optional components fail the script + } + else { + Write-Host -ForegroundColor Green " OK".PadLeft($resultPad); + } + } + + + if ($Installed -ne 0) { + Write-Host "Installed $Installed dependencies. You may need to close this window for changes to take effect."; + } + + if ($NeedsRerun -ne 0) { + if ($Verbose) { + Write-Warning "Some dependencies are not met. Re-run with -Install to install them."; + } + else { + Write-Warning "Some dependencies are not met. Re-run with -Verbose for details, or use -Install to install them."; + } + if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } + exit 1; + } + else { + Write-Host "All mandatory requirements met."; + $Tags | Out-File $MarkerFile; + if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } + exit 0; + } diff --git a/vnext/Shared/DevSupportManager.cpp b/vnext/Shared/DevSupportManager.cpp index 70d3a2657ce..7fc38dabec7 100644 --- a/vnext/Shared/DevSupportManager.cpp +++ b/vnext/Shared/DevSupportManager.cpp @@ -35,7 +35,6 @@ #include #pragma warning(pop) -#include #include #include @@ -49,61 +48,59 @@ using namespace facebook::react; namespace Microsoft::ReactNative { -std::future> GetJavaScriptFromServerAsync(const std::string &url) { - winrt::Windows::Web::Http::Filters::HttpBaseProtocolFilter filter; - filter.CacheControl().ReadBehavior(winrt::Windows::Web::Http::Filters::HttpCacheReadBehavior::NoCache); - winrt::Windows::Web::Http::HttpClient httpClient(filter); - winrt::Windows::Foundation::Uri uri(Microsoft::Common::Unicode::Utf8ToUtf16(url)); +winrt::Windows::Foundation::IAsyncOperation GetJavaScriptFromServerAsync( + const std::string &url) { + try { + winrt::Windows::Web::Http::Filters::HttpBaseProtocolFilter filter; + filter.CacheControl().ReadBehavior(winrt::Windows::Web::Http::Filters::HttpCacheReadBehavior::NoCache); + winrt::Windows::Web::Http::HttpClient httpClient(filter); + winrt::Windows::Foundation::Uri uri(Microsoft::Common::Unicode::Utf8ToUtf16(url)); - co_await winrt::resume_background(); + co_await winrt::resume_background(); - winrt::Windows::Web::Http::HttpRequestMessage request(winrt::Windows::Web::Http::HttpMethod::Get(), uri); - auto asyncRequest = httpClient.SendRequestAsync(request); + winrt::Windows::Web::Http::HttpRequestMessage request(winrt::Windows::Web::Http::HttpMethod::Get(), uri); + auto asyncRequest = httpClient.SendRequestAsync(request); #ifdef DEFAULT_CPPWINRT_EXCEPTIONS - try { winrt::Windows::Web::Http::HttpResponseMessage response = co_await asyncRequest; - } catch (winrt::hresult_error const &e) { - co_return std::make_pair( - Microsoft::Common::Unicode::Utf16ToUtf8(e.message().c_str(), e.message().size()).c_str(), false); - } #else - co_await lessthrow_await_adapter>{asyncRequest}; - - HRESULT hr = asyncRequest.ErrorCode(); - if (FAILED(hr)) { - std::string error; - if (hr == WININET_E_CANNOT_CONNECT) { - error = fmt::format("A connection with the server {} could not be established.\n\nIs the packager running?", url); - } else { - error = fmt::format("Error 0x{:x} downloading {}.", static_cast(asyncRequest.ErrorCode()), url); + co_await lessthrow_await_adapter>{asyncRequest}; + + HRESULT hr = asyncRequest.ErrorCode(); + if (FAILED(hr)) { + std::string error; + if (hr == WININET_E_CANNOT_CONNECT) { + error = + fmt::format("A connection with the server {} could not be established.\n\nIs the packager running?", url); + } else { + error = fmt::format("Error 0x{:x} downloading {}.", static_cast(asyncRequest.ErrorCode()), url); + } + throw winrt::hresult_error(E_FAIL, winrt::to_hstring(error)); } - co_return std::make_pair(error, false); - } - winrt::Windows::Web::Http::HttpResponseMessage response = asyncRequest.GetResults(); + winrt::Windows::Web::Http::HttpResponseMessage response = asyncRequest.GetResults(); #endif - winrt::Windows::Storage::Streams::IBuffer buffer = co_await response.Content().ReadAsBufferAsync(); - auto reader = winrt::Windows::Storage::Streams::DataReader::FromBuffer(buffer); - - reader.UnicodeEncoding(winrt::Windows::Storage::Streams::UnicodeEncoding::Utf8); - uint32_t len = reader.UnconsumedBufferLength(); - std::string result; - if (len > 0 || response.IsSuccessStatusCode()) { - std::string data; - data.resize(len); - auto buf = reinterpret_cast(data.data()); - static_assert( - sizeof(buf[0]) == sizeof(data[0]), "perf optimization relies on uint8_t and char being the same size"); - reader.ReadBytes(winrt::array_view(buf, buf + len)); - result = std::move(data); - } else { - result = fmt::format("HTTP Error {} downloading {}.", static_cast(response.StatusCode()), url); - } + winrt::Windows::Storage::Streams::IBuffer buffer = co_await response.Content().ReadAsBufferAsync(); + + if (!response.IsSuccessStatusCode()) { + std::string error; + if (buffer.Length() > 0) { + auto reader = winrt::Windows::Storage::Streams::DataReader::FromBuffer(buffer); + error.resize(buffer.Length()); + auto buf = reinterpret_cast(error.data()); + reader.ReadBytes(winrt::array_view(buf, buf + buffer.Length())); + } else { + error = fmt::format("HTTP Error {} downloading {}.", static_cast(response.StatusCode()), url); + } + throw winrt::hresult_error(E_FAIL, winrt::to_hstring(error)); + } - co_return std::make_pair(std::move(result), response.IsSuccessStatusCode()); + co_return buffer; + } catch (winrt::hresult_error const &) { + throw; + } } void LaunchDevTools(const facebook::react::DevSettings &settings) { @@ -219,7 +216,8 @@ std::string GetPackageName(const std::string &bundleAppId) { return packageName; } -std::future PollForLiveReload(const std::string &url) { +winrt::Windows::Foundation::IAsyncOperation PollForLiveReload( + const std::string &url) { winrt::Windows::Web::Http::HttpClient httpClient; winrt::Windows::Foundation::Uri uri(Microsoft::Common::Unicode::Utf8ToUtf16(url)); httpClient.DefaultRequestHeaders().Connection().TryParseAdd(L"keep-alive"); @@ -349,7 +347,16 @@ std::pair GetJavaScriptFromServer( inlineSourceMap, hermesBytecodeVersion); try { - return GetJavaScriptFromServerAsync(bundleUrl).get(); + auto buffer = GetJavaScriptFromServerAsync(bundleUrl).get(); + std::string result(buffer.Length(), '\0'); + if (!result.empty()) { + auto reader = winrt::Windows::Storage::Streams::DataReader::FromBuffer(buffer); + reader.ReadBytes(winrt::array_view{ + reinterpret_cast(&result[0]), reinterpret_cast(&result[result.length()])}); + } + return std::make_pair(std::move(result), true); + } catch (std::exception const &e) { + return std::make_pair(std::string{"Error: "} + e.what(), false); } catch (winrt::hresult_error const &e) { return std::make_pair( "Error: " + Microsoft::Common::Unicode::Utf16ToUtf8(e.message().c_str(), e.message().size()), false); diff --git a/vnext/Shared/DevSupportManager.h b/vnext/Shared/DevSupportManager.h index a6dc1705af3..d17b71dc977 100644 --- a/vnext/Shared/DevSupportManager.h +++ b/vnext/Shared/DevSupportManager.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include diff --git a/vnext/Shared/Networking/WinRTWebSocketResource.h b/vnext/Shared/Networking/WinRTWebSocketResource.h index 8ebdd3b14d0..eafb1c6fbe9 100644 --- a/vnext/Shared/Networking/WinRTWebSocketResource.h +++ b/vnext/Shared/Networking/WinRTWebSocketResource.h @@ -27,8 +27,12 @@ class WinRTWebSocketResource2 : public IWebSocketResource, void operator=(const TaskSequencer &) = delete; private: +// `experimental` is deprecated starting Visual Studio 2026 +#if _MSC_VER >= 1951 + using CoroHandle = std::coroutine_handle<>; +#else using CoroHandle = std::experimental::coroutine_handle<>; - +#endif struct Suspender { CoroHandle m_handle; From 696703d4fef1936a13f3f92ff346d30beb53db9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar=20Rocha?= Date: Fri, 5 Jun 2026 12:46:42 -0700 Subject: [PATCH 04/38] Upgrade to GoogleTest Adapter 1.8.1.8 (#16218) * Upgrade to GoogleTest adapter 1.8.1.8 * Change files * Update package lock files --- ...ative-windows-f8f860c1-f597-4280-aaf2-f3250f196760.json | 7 +++++++ .../Microsoft.ReactNative.Cxx.UnitTests.vcxproj | 4 +++- .../Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json | 6 +++--- .../Microsoft.ReactNative.IntegrationTests.vcxproj | 2 +- .../packages.experimentalwinui3.lock.json | 6 +++--- .../packages.lock.json | 6 +++--- vnext/Mso.UnitTests/Mso.UnitTests.vcxproj | 2 +- vnext/Mso.UnitTests/packages.experimentalwinui3.lock.json | 6 +++--- vnext/Mso.UnitTests/packages.lock.json | 6 +++--- vnext/PropertySheets/React.Cpp.props | 4 ++-- vnext/ReactCommon.UnitTests/ReactCommon.UnitTests.vcxproj | 2 +- 11 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 change/react-native-windows-f8f860c1-f597-4280-aaf2-f3250f196760.json diff --git a/change/react-native-windows-f8f860c1-f597-4280-aaf2-f3250f196760.json b/change/react-native-windows-f8f860c1-f597-4280-aaf2-f3250f196760.json new file mode 100644 index 00000000000..ee31db063aa --- /dev/null +++ b/change/react-native-windows-f8f860c1-f597-4280-aaf2-f3250f196760.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Upgrade to GoogleTest adapter 1.8.1.8", + "packageName": "react-native-windows", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/vnext/Microsoft.ReactNative.Cxx.UnitTests/Microsoft.ReactNative.Cxx.UnitTests.vcxproj b/vnext/Microsoft.ReactNative.Cxx.UnitTests/Microsoft.ReactNative.Cxx.UnitTests.vcxproj index 5f8e695249f..3c71c8993d0 100644 --- a/vnext/Microsoft.ReactNative.Cxx.UnitTests/Microsoft.ReactNative.Cxx.UnitTests.vcxproj +++ b/vnext/Microsoft.ReactNative.Cxx.UnitTests/Microsoft.ReactNative.Cxx.UnitTests.vcxproj @@ -161,7 +161,9 @@ - + + diff --git a/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json b/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json index 9f5f394ce46..63fd769e7f2 100644 --- a/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json +++ b/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json @@ -4,9 +4,9 @@ "native,Version=v0.0": { "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.Windows.CppWinRT": { "type": "Direct", diff --git a/vnext/Microsoft.ReactNative.IntegrationTests/Microsoft.ReactNative.IntegrationTests.vcxproj b/vnext/Microsoft.ReactNative.IntegrationTests/Microsoft.ReactNative.IntegrationTests.vcxproj index 7ed4022833d..aabf5733e9c 100644 --- a/vnext/Microsoft.ReactNative.IntegrationTests/Microsoft.ReactNative.IntegrationTests.vcxproj +++ b/vnext/Microsoft.ReactNative.IntegrationTests/Microsoft.ReactNative.IntegrationTests.vcxproj @@ -190,7 +190,7 @@ + Version="1.8.1.8" /> diff --git a/vnext/Microsoft.ReactNative.IntegrationTests/packages.experimentalwinui3.lock.json b/vnext/Microsoft.ReactNative.IntegrationTests/packages.experimentalwinui3.lock.json index 9e4f116c933..896d01c88ca 100644 --- a/vnext/Microsoft.ReactNative.IntegrationTests/packages.experimentalwinui3.lock.json +++ b/vnext/Microsoft.ReactNative.IntegrationTests/packages.experimentalwinui3.lock.json @@ -10,9 +10,9 @@ }, "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.VCRTForwarders.140": { "type": "Direct", diff --git a/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json b/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json index 9e4f116c933..896d01c88ca 100644 --- a/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json +++ b/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json @@ -10,9 +10,9 @@ }, "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.VCRTForwarders.140": { "type": "Direct", diff --git a/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj b/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj index aeb451e4f40..5533328b337 100644 --- a/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj +++ b/vnext/Mso.UnitTests/Mso.UnitTests.vcxproj @@ -185,7 +185,7 @@ + Version="1.8.1.8" /> diff --git a/vnext/Mso.UnitTests/packages.experimentalwinui3.lock.json b/vnext/Mso.UnitTests/packages.experimentalwinui3.lock.json index 9f5f394ce46..63fd769e7f2 100644 --- a/vnext/Mso.UnitTests/packages.experimentalwinui3.lock.json +++ b/vnext/Mso.UnitTests/packages.experimentalwinui3.lock.json @@ -4,9 +4,9 @@ "native,Version=v0.0": { "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.Windows.CppWinRT": { "type": "Direct", diff --git a/vnext/Mso.UnitTests/packages.lock.json b/vnext/Mso.UnitTests/packages.lock.json index 9f5f394ce46..63fd769e7f2 100644 --- a/vnext/Mso.UnitTests/packages.lock.json +++ b/vnext/Mso.UnitTests/packages.lock.json @@ -4,9 +4,9 @@ "native,Version=v0.0": { "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.Windows.CppWinRT": { "type": "Direct", diff --git a/vnext/PropertySheets/React.Cpp.props b/vnext/PropertySheets/React.Cpp.props index 5b182a5291c..7e0b3101167 100644 --- a/vnext/PropertySheets/React.Cpp.props +++ b/vnext/PropertySheets/React.Cpp.props @@ -43,8 +43,8 @@ - - false + + true $(WinUI3ExperimentalVersion) - 1.8.251106002 + 1.8.260508005 false diff --git a/vnext/ReactCommon.UnitTests/packages.lock.json b/vnext/ReactCommon.UnitTests/packages.lock.json index 6f133559530..fc40d878022 100644 --- a/vnext/ReactCommon.UnitTests/packages.lock.json +++ b/vnext/ReactCommon.UnitTests/packages.lock.json @@ -263,4 +263,4 @@ } } } -} \ No newline at end of file +} From 987048c03aec2a77b77e5722e4d3c5eef07391a4 Mon Sep 17 00:00:00 2001 From: Gordon MacMaster <31481849+gmacmaster@users.noreply.github.com> Date: Sat, 6 Jun 2026 20:16:10 -0400 Subject: [PATCH 09/38] =?UTF-8?q?fix:=20WebSocket=20binaryType=20handling?= =?UTF-8?q?=20=E2=80=94=20stop=20unconditional=20Blob=20interception=20of?= =?UTF-8?q?=20binary=20messages=20(#16173)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * blob support (#8) * blob support * pr comments * pr comments * Update DefaultBlobResource.cpp * Create react-native-windows-c3827e14-777b-475a-bf00-dc169bf89f3d.json * Add WebSocketArrayBuffer headless test (#9) * Add WebSocketArrayBuffer headless test * Skip test by default * pr comments * Update overrides (#10) --------- Co-authored-by: Julio César Rocha --- ...-c3827e14-777b-475a-bf00-dc169bf89f3d.json | 7 ++ .../RNTesterHeadlessTests.cpp | 30 ++++++++ .../Modules/IWebSocketModuleContentHandler.h | 15 ++++ vnext/Shared/Modules/WebSocketModule.cpp | 11 ++- .../Shared/Networking/DefaultBlobResource.cpp | 37 +++++++++ vnext/Shared/Networking/DefaultBlobResource.h | 12 +++ vnext/overrides.json | 4 + .../WebSocketArrayBufferTest.js | 76 +++++++++++++++++++ 8 files changed, 189 insertions(+), 3 deletions(-) create mode 100644 change/react-native-windows-c3827e14-777b-475a-bf00-dc169bf89f3d.json create mode 100644 vnext/src-win/IntegrationTests/WebSocketArrayBufferTest.js diff --git a/change/react-native-windows-c3827e14-777b-475a-bf00-dc169bf89f3d.json b/change/react-native-windows-c3827e14-777b-475a-bf00-dc169bf89f3d.json new file mode 100644 index 00000000000..e48ac161fcd --- /dev/null +++ b/change/react-native-windows-c3827e14-777b-475a-bf00-dc169bf89f3d.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fix WebSocket binaryType handling — stop unconditional Blob interception of binary messages", + "packageName": "react-native-windows", + "email": "gordomacmaster@gmail.com", + "dependentChangeType": "patch" +} \ No newline at end of file diff --git a/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp b/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp index f25eb3cdd4d..5948e5b9fb8 100644 --- a/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp +++ b/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp @@ -63,6 +63,36 @@ TEST_CLASS (RNTesterHeadlessTests) { auto status = TestModule::AwaitCompletion(); Assert::IsTrue(status == TestStatus::Passed, L"Test did not pass (JS did not call markTestPassed within timeout)"); } + + BEGIN_TEST_METHOD_ATTRIBUTE(WebSocketArrayBuffer) + TEST_IGNORE() + END_TEST_METHOD_ATTRIBUTE() + TEST_METHOD(WebSocketArrayBuffer) { + TestModule::Reset(); + + winrt::handle instanceLoadedEvent{CreateEvent(nullptr, TRUE, FALSE, nullptr)}; + bool instanceFailed{false}; + + auto holder = TestReactNativeHostHolder( + L"IntegrationTests/WebSocketArrayBufferTest", + [&instanceLoadedEvent, &instanceFailed](msrn::ReactNativeHost const &host) noexcept { + host.InstanceSettings().InstanceLoaded( + [&instanceLoadedEvent, &instanceFailed](auto const &, msrn::InstanceLoadedEventArgs args) noexcept { + instanceFailed = args.Failed(); + SetEvent(instanceLoadedEvent.get()); + }); + }); + + WaitForSingleObject(instanceLoadedEvent.get(), INFINITE); + if (instanceFailed) { + auto err = holder.GetLastError(); + auto msg = L"InstanceLoaded reported failure: " + (err.empty() ? L"(no error captured)" : err); + Assert::Fail(msg.c_str()); + } + + auto status = TestModule::AwaitCompletion(); + Assert::IsTrue(status == TestStatus::Passed, L"Test did not pass (JS did not call markTestPassed within timeout)"); + } }; } // namespace Microsoft::React::Test diff --git a/vnext/Shared/Modules/IWebSocketModuleContentHandler.h b/vnext/Shared/Modules/IWebSocketModuleContentHandler.h index 4d508603865..83a22841f46 100644 --- a/vnext/Shared/Modules/IWebSocketModuleContentHandler.h +++ b/vnext/Shared/Modules/IWebSocketModuleContentHandler.h @@ -18,11 +18,26 @@ namespace Microsoft::React { struct IWebSocketModuleContentHandler { virtual ~IWebSocketModuleContentHandler() noexcept {} + /// Returns true if this handler should process messages for the given socket. + virtual bool CanHandleSocket(int64_t socketId) noexcept = 0; + virtual void ProcessMessage(std::string &&message, winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept = 0; virtual void ProcessMessage( std::vector &&message, winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept = 0; + + /// Check CanHandleSocket() then ProcessMessage() in one call. + /// Returns true if the message was handled. + virtual bool TryProcessMessage( + int64_t socketId, + std::string &&message, + winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept = 0; + + virtual bool TryProcessMessage( + int64_t socketId, + std::vector &&message, + winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept = 0; }; } // namespace Microsoft::React diff --git a/vnext/Shared/Modules/WebSocketModule.cpp b/vnext/Shared/Modules/WebSocketModule.cpp index d4fe2e5f566..dbcf3927101 100644 --- a/vnext/Shared/Modules/WebSocketModule.cpp +++ b/vnext/Shared/Modules/WebSocketModule.cpp @@ -84,6 +84,7 @@ shared_ptr WebSocketTurboModule::CreateResource(int64_t id, if (auto prop = propBag.Get(BlobModuleContentHandlerPropertyId())) contentHandler = prop.Value().lock(); + bool handled = false; if (contentHandler) { if (isBinary) { auto buffer = CryptographicBuffer::DecodeFromBase64String(winrt::to_hstring(message)); @@ -91,11 +92,15 @@ shared_ptr WebSocketTurboModule::CreateResource(int64_t id, CryptographicBuffer::CopyToByteArray(buffer, arr); auto data = vector(arr.begin(), arr.end()); - contentHandler->ProcessMessage(std::move(data), args); + handled = contentHandler->TryProcessMessage(id, std::move(data), args); } else { - contentHandler->ProcessMessage(string{message}, args); + handled = contentHandler->TryProcessMessage(id, string{message}, args); } - } else { + } + // When the content handler processes the message, it takes ownership of the + // payload and populates args itself (e.g. as a blob reference), so we only + // fall back to setting args["data"] when no handler claimed the message. + if (!handled) { args["data"] = message; } diff --git a/vnext/Shared/Networking/DefaultBlobResource.cpp b/vnext/Shared/Networking/DefaultBlobResource.cpp index 31fdfd6b061..bd408c72843 100644 --- a/vnext/Shared/Networking/DefaultBlobResource.cpp +++ b/vnext/Shared/Networking/DefaultBlobResource.cpp @@ -221,6 +221,11 @@ BlobWebSocketModuleContentHandler::BlobWebSocketModuleContentHandler(shared_ptr< #pragma region IWebSocketModuleContentHandler +bool BlobWebSocketModuleContentHandler::CanHandleSocket(int64_t socketId) noexcept /*override*/ { + scoped_lock lock{m_mutex}; + return m_socketIds.find(socketId) != m_socketIds.end(); +} + void BlobWebSocketModuleContentHandler::ProcessMessage( string &&message, msrn::JSValueObject ¶ms) noexcept /*override*/ @@ -241,6 +246,38 @@ void BlobWebSocketModuleContentHandler::ProcessMessage( params[blobKeys.Type] = blobKeys.Blob; } +bool BlobWebSocketModuleContentHandler::TryProcessMessage( + int64_t socketId, + string &&message, + msrn::JSValueObject ¶ms) noexcept /*override*/ +{ + scoped_lock lock{m_mutex}; + if (m_socketIds.find(socketId) == m_socketIds.end()) + return false; + + params[blobKeys.Data] = std::move(message); + return true; +} + +bool BlobWebSocketModuleContentHandler::TryProcessMessage( + int64_t socketId, + vector &&message, + msrn::JSValueObject ¶ms) noexcept /*override*/ +{ + scoped_lock lock{m_mutex}; + if (m_socketIds.find(socketId) == m_socketIds.end()) + return false; + + auto blob = msrn::JSValueObject{ + {blobKeys.Offset, 0}, + {blobKeys.Size, message.size()}, + {blobKeys.BlobId, m_blobPersistor->StoreMessage(std::move(message))}}; + + params[blobKeys.Data] = std::move(blob); + params[blobKeys.Type] = blobKeys.Blob; + return true; +} + #pragma endregion IWebSocketModuleContentHandler void BlobWebSocketModuleContentHandler::Register(int64_t socketID) noexcept { diff --git a/vnext/Shared/Networking/DefaultBlobResource.h b/vnext/Shared/Networking/DefaultBlobResource.h index 4dfdf5f18aa..9b268912462 100644 --- a/vnext/Shared/Networking/DefaultBlobResource.h +++ b/vnext/Shared/Networking/DefaultBlobResource.h @@ -51,11 +51,23 @@ class BlobWebSocketModuleContentHandler final : public IWebSocketModuleContentHa #pragma region IWebSocketModuleContentHandler + bool CanHandleSocket(int64_t socketId) noexcept override; + void ProcessMessage(std::string &&message, winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept override; void ProcessMessage(std::vector &&message, winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept override; + bool TryProcessMessage( + int64_t socketId, + std::string &&message, + winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept override; + + bool TryProcessMessage( + int64_t socketId, + std::vector &&message, + winrt::Microsoft::ReactNative::JSValueObject ¶ms) noexcept override; + #pragma endregion IWebSocketModuleContentHandler void Register(int64_t socketID) noexcept; diff --git a/vnext/overrides.json b/vnext/overrides.json index d64a11ef940..7eb6dd0fd1e 100644 --- a/vnext/overrides.json +++ b/vnext/overrides.json @@ -286,6 +286,10 @@ "type": "platform", "file": "src-win/IntegrationTests/websocket_integration_test_server_blob.js" }, + { + "type": "platform", + "file": "src-win/IntegrationTests/WebSocketArrayBufferTest.js" + }, { "type": "platform", "file": "src-win/IntegrationTests/WebSocketBinaryTest.js" diff --git a/vnext/src-win/IntegrationTests/WebSocketArrayBufferTest.js b/vnext/src-win/IntegrationTests/WebSocketArrayBufferTest.js new file mode 100644 index 00000000000..50360b90b55 --- /dev/null +++ b/vnext/src-win/IntegrationTests/WebSocketArrayBufferTest.js @@ -0,0 +1,76 @@ +/** + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * @format + */ + +'use strict'; + +const {TurboModuleRegistry} = require('react-native'); +const TestModule = TurboModuleRegistry.get('TestModule'); + +if (!TestModule) { + throw new Error('TestModule is not available'); +} + +// eslint-disable-next-line @microsoft/sdl/no-insecure-url +const WS_URL = 'ws://localhost:5555/rnw/rntester/websocketbinarytest'; + +const socket = new WebSocket(WS_URL); +socket.binaryType = 'arraybuffer'; + +socket.addEventListener('open', () => { + socket.send('hello'); +}); + +socket.addEventListener('message', event => { + const data = event.data; + + if (!(data instanceof ArrayBuffer)) { + console.log( + 'WebSocketArrayBufferTest FAIL: expected ArrayBuffer, got ' + typeof data, + ); + TestModule.markTestPassed(false); + socket.close(); + return; + } + + const bytes = new Uint8Array(data); + const expected = new Uint8Array([4, 5, 6, 7]); + + if (bytes.length !== expected.length) { + console.log( + 'WebSocketArrayBufferTest FAIL: expected ' + + expected.length + + ' bytes, got ' + + bytes.length, + ); + TestModule.markTestPassed(false); + socket.close(); + return; + } + + for (let i = 0; i < expected.length; i++) { + if (bytes[i] !== expected[i]) { + console.log( + 'WebSocketArrayBufferTest FAIL: byte[' + + i + + '] expected ' + + expected[i] + + ' got ' + + bytes[i], + ); + TestModule.markTestPassed(false); + socket.close(); + return; + } + } + + TestModule.markTestPassed(true); + socket.close(); +}); + +socket.addEventListener('error', () => { + console.log('WebSocketArrayBufferTest FAIL: WebSocket error'); + TestModule.markTestPassed(false); +}); From a3fdb74c47d010bcd7022f8bba43e88e3367ba50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar=20Rocha?= Date: Mon, 8 Jun 2026 14:28:53 -0700 Subject: [PATCH 10/38] Upgrade projects to .NET 10 (#16226) * Upgrade projects to .NET 10 * Upgrade lock files * Change files --- ...-2fe39775-b224-4fbb-bf3c-af9bccca23a5.json | 7 +++++++ .../Microsoft.ReactNative.CsWinRT.csproj | 2 +- .../packages.experimentalwinui3.lock.json | 2 +- .../packages.lock.json | 2 +- ...actNative.Managed.CodeGen.UnitTests.csproj | 2 +- ...crosoft.ReactNative.Managed.CodeGen.csproj | 20 +++++++++---------- .../PublishProfiles/DeployAsTool-Debug.pubxml | 2 +- .../DeployAsTool-Release.pubxml | 2 +- .../Microsoft.ReactNative.Test.Website.csproj | 2 +- vnext/TestWebSite/packages.lock.json | 2 +- 10 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 change/react-native-windows-2fe39775-b224-4fbb-bf3c-af9bccca23a5.json diff --git a/change/react-native-windows-2fe39775-b224-4fbb-bf3c-af9bccca23a5.json b/change/react-native-windows-2fe39775-b224-4fbb-bf3c-af9bccca23a5.json new file mode 100644 index 00000000000..fae64f74775 --- /dev/null +++ b/change/react-native-windows-2fe39775-b224-4fbb-bf3c-af9bccca23a5.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Upgrade projects to .NET 10", + "packageName": "react-native-windows", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/vnext/Microsoft.ReactNative.CsWinRT/Microsoft.ReactNative.CsWinRT.csproj b/vnext/Microsoft.ReactNative.CsWinRT/Microsoft.ReactNative.CsWinRT.csproj index 056b4394ab0..4e13e11dc17 100644 --- a/vnext/Microsoft.ReactNative.CsWinRT/Microsoft.ReactNative.CsWinRT.csproj +++ b/vnext/Microsoft.ReactNative.CsWinRT/Microsoft.ReactNative.CsWinRT.csproj @@ -2,7 +2,7 @@ - net8.0-windows10.0.22621.0 + net10.0-windows10.0.22621.0 10.0.22621.0 10.0.18362.0 x86;x64;arm64 diff --git a/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json b/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json index a3bd229e023..20cb2765475 100644 --- a/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json +++ b/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json @@ -1,7 +1,7 @@ { "version": 1, "dependencies": { - "net8.0-windows10.0.22621": { + "net10.0-windows10.0.22621": { "Microsoft.Windows.CsWinRT": { "type": "Direct", "requested": "[2.2.0, )", diff --git a/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json b/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json index ae5af5b4d10..b35b05c6e78 100644 --- a/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json +++ b/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json @@ -1,7 +1,7 @@ { "version": 1, "dependencies": { - "net8.0-windows10.0.22621": { + "net10.0-windows10.0.22621": { "Microsoft.Windows.CsWinRT": { "type": "Direct", "requested": "[2.2.0, )", diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj index 8d5b5fa22a1..4e3c069ddf6 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 x64 win-x64 false diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj b/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj index 6b18c3aeecb..bccc8d80bdf 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj @@ -3,7 +3,7 @@ Exe - net8.0 + net10.0 x64;x86;ARM64 win-x86;win-x64 @@ -31,8 +31,8 @@ - @@ -53,7 +53,7 @@ - @@ -62,13 +62,13 @@ - - diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml index c6c28996632..910d6f9f7d6 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml @@ -6,7 +6,7 @@ FileSystem Debug x64 - net8.0 + net10.0 $(OutDir)publish win-x64 true diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml index 373853ddc0e..9973e782006 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml @@ -6,7 +6,7 @@ FileSystem Release x64 - net8.0 + net10.0 $(OutDir)publish win-x64 true diff --git a/vnext/TestWebSite/Microsoft.ReactNative.Test.Website.csproj b/vnext/TestWebSite/Microsoft.ReactNative.Test.Website.csproj index 7d08141d444..0987f9be3a6 100644 --- a/vnext/TestWebSite/Microsoft.ReactNative.Test.Website.csproj +++ b/vnext/TestWebSite/Microsoft.ReactNative.Test.Website.csproj @@ -3,7 +3,7 @@ AnyCPU AnyCPU - net8.0 + net10.0 enable enable $(IntDir)$(TargetFramework)\ diff --git a/vnext/TestWebSite/packages.lock.json b/vnext/TestWebSite/packages.lock.json index 807ab822b67..4a91a8cd78f 100644 --- a/vnext/TestWebSite/packages.lock.json +++ b/vnext/TestWebSite/packages.lock.json @@ -1,6 +1,6 @@ { "version": 1, "dependencies": { - "net8.0": {} + "net10.0": {} } } \ No newline at end of file From 508324a13d80231236cdc1fa155335affffd3a1d Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Mon, 8 Jun 2026 17:13:44 -0700 Subject: [PATCH 11/38] Remove nuget restore task --- vnext/just-task.js | 13 ------------- yarn.lock | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/vnext/just-task.js b/vnext/just-task.js index 9c050319468..b1cc7c71556 100644 --- a/vnext/just-task.js +++ b/vnext/just-task.js @@ -22,9 +22,6 @@ require('@rnw-scripts/just-task/flow-tasks'); const {execSync} = require('child_process'); const fs = require('fs'); -const { - registerNuGetRestoreTask, -} = require('@rnw-scripts/just-task/nuget-restore-task'); const {findPowerShell} = require('@react-native-windows/find-dotnet-tools'); option('production'); @@ -75,16 +72,6 @@ task('copyReadmeAndLicenseFromRoot', () => { task('compileTsPlatformOverrides', tscTask()); -registerNuGetRestoreTask({ - taskName: 'restoreNuGetPackages', - scriptPath: path.resolve( - __dirname, - 'Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1', - ), - logDirectory: path.resolve(__dirname, 'logs'), - scriptArguments: ['-SkipLockDeletion'], -}); - function installDotnetToolsTask() { execSync( `dotnet tool restore --tool-manifest ${path.resolve(__dirname, 'dotnet-tools.json')}`, diff --git a/yarn.lock b/yarn.lock index db628bebe0b..38f7f600692 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2182,6 +2182,14 @@ graceful-fs "^4.2.8" minimatch "^10.0.3" +"@react-native-windows/fs@^0.0.0-canary.72": + version "0.0.0-canary.72" + resolved "https://registry.yarnpkg.com/@react-native-windows/fs/-/fs-0.0.0-canary.72.tgz#36f877226a14c86c95739c5ca69b132ba8b819ff" + integrity sha512-zM+VUo/hS0ckQ5RNcce2YDIMawEbcyxU8dZTBOTfUrURS5olkIR8ALldNsNP10IL8mU7VVNexH03+A06I+wA3g== + dependencies: + graceful-fs "^4.2.8" + minimatch "^10.0.3" + "@react-native/assets-registry@0.81.6": version "0.81.6" resolved "https://registry.yarnpkg.com/@react-native/assets-registry/-/assets-registry-0.81.6.tgz#4a9edfa209e4ef43adb372cbf481a7c4ff2e7342" @@ -10216,6 +10224,11 @@ prettier@^3.0.0: resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.8.1.tgz#edf48977cf991558f4fcbd8a3ba6015ba2a3a173" integrity sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg== +prettier@^3.6.2: + version "3.8.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.8.3.tgz#560f2de55bf01b4c0503bc629d5df99b9a1d09b0" + integrity sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw== + pretty-format@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" From a8d5d327d2851ca6a0f06b4de1b19442fdb37aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar=20Rocha?= Date: Mon, 8 Jun 2026 17:30:50 -0700 Subject: [PATCH 12/38] Re-introduce JS Desktop integration tests (#16228) * Remove redundant condition Desktop.IntegrationTests.SkipRNTester Modify Desktop.IntegrationTests.Filter instead. * Re-introduce WebSocket and WebSocketBlob tests * Make WSBlob test compare contents * Rename method to RunTest * Handle initial message from default endpoint * Change files * Migrate XHR test * Port Fetch test * Port Blob test * WebSocketMultipleSendTest * Remove JS WebSocket servers * Skip in CI for now --- .ado/build-template.yml | 1 + .ado/jobs/desktop-single.yml | 6 - ...-5ebbf393-f061-48ee-aa68-dfdd086cfbbd.json | 7 + .../RNTesterHeadlessTests.cpp | 104 ++++---- vnext/TestWebSite/wwwroot/static/sample.txt | 2 +- vnext/overrides.json | 12 +- vnext/src-win/IntegrationTests/BlobTest.js | 161 +++++------- vnext/src-win/IntegrationTests/FetchTest.js | 57 ++--- .../IntegrationTests/WebSocketBlobTest.js | 232 ++++++++---------- .../WebSocketMultipleSendTest.js | 199 ++++++--------- .../src-win/IntegrationTests/WebSocketTest.js | 82 +++++++ vnext/src-win/IntegrationTests/XHRTest.js | 89 ++----- ...ebsocket_integration_test_server_binary.js | 33 --- .../websocket_integration_test_server_blob.js | 33 --- 14 files changed, 423 insertions(+), 595 deletions(-) create mode 100644 change/react-native-windows-5ebbf393-f061-48ee-aa68-dfdd086cfbbd.json create mode 100644 vnext/src-win/IntegrationTests/WebSocketTest.js delete mode 100644 vnext/src-win/IntegrationTests/websocket_integration_test_server_binary.js delete mode 100644 vnext/src-win/IntegrationTests/websocket_integration_test_server_blob.js diff --git a/.ado/build-template.yml b/.ado/build-template.yml index a9e010d84db..25e9646eca5 100644 --- a/.ado/build-template.yml +++ b/.ado/build-template.yml @@ -313,6 +313,7 @@ extends: #12714 - Disable for first deployment of test website. - name: Desktop.IntegrationTests.Filter value: > + (FullyQualifiedName!~Microsoft::React::Test::RNTesterHeadlessTests)& (FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::ConnectClose)& (FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::ConnectNoClose)& (FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::SendReceiveClose)& diff --git a/.ado/jobs/desktop-single.yml b/.ado/jobs/desktop-single.yml index 1d5e801a97c..a20edd5e720 100644 --- a/.ado/jobs/desktop-single.yml +++ b/.ado/jobs/desktop-single.yml @@ -59,12 +59,6 @@ steps: - template: ../templates/apply-published-version-vars.yml - - ${{ if eq(variables['Desktop.IntegrationTests.SkipRNTester'], true) }}: - - pwsh: | - $newValue = '(FullyQualifiedName!~Microsoft::React::Test::RNTesterHeadlessTests::)&' + "$(Desktop.IntegrationTests.Filter)" - Write-Host "##vso[task.setvariable variable=Desktop.IntegrationTests.Filter]$newValue" - displayName: Update Desktop.IntegrationTests.Filter to exclude RNTester integration tests - - template: ../templates/msbuild-sln.yml parameters: solutionDir: vnext diff --git a/change/react-native-windows-5ebbf393-f061-48ee-aa68-dfdd086cfbbd.json b/change/react-native-windows-5ebbf393-f061-48ee-aa68-dfdd086cfbbd.json new file mode 100644 index 00000000000..dc96d8037a6 --- /dev/null +++ b/change/react-native-windows-5ebbf393-f061-48ee-aa68-dfdd086cfbbd.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Re-introduce WebSocket JS integration tests", + "packageName": "react-native-windows", + "email": "julio.rocha@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp b/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp index 5948e5b9fb8..c819059c280 100644 --- a/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp +++ b/vnext/Desktop.IntegrationTests/RNTesterHeadlessTests.cpp @@ -8,6 +8,7 @@ #include #include +#include #include "Modules/TestModule.h" #include "TestReactNativeHostHolder.h" @@ -17,6 +18,35 @@ namespace msrn = winrt::Microsoft::ReactNative; namespace Microsoft::React::Test { +namespace { +void RunTest(std::wstring_view jsBundle) { + TestModule::Reset(); + + winrt::handle instanceLoadedEvent{CreateEvent(nullptr, TRUE, FALSE, nullptr)}; + bool instanceFailed{false}; + + auto holder = TestReactNativeHostHolder( + jsBundle, [&instanceLoadedEvent, &instanceFailed](msrn::ReactNativeHost const &host) noexcept { + host.InstanceSettings().InstanceLoaded( + [&instanceLoadedEvent, &instanceFailed](auto const &, msrn::InstanceLoadedEventArgs args) noexcept { + instanceFailed = args.Failed(); + SetEvent(instanceLoadedEvent.get()); + }); + }); + + // First, wait for instance to load + WaitForSingleObject(instanceLoadedEvent.get(), INFINITE); + if (instanceFailed) { + auto err = holder.GetLastError(); + auto msg = L"InstanceLoaded reported failure: " + (err.empty() ? L"(no error captured)" : err); + Assert::Fail(msg.c_str()); + } + + auto status = TestModule::AwaitCompletion(); + Assert::IsTrue(status == TestStatus::Passed, L"Test did not pass (JS did not call markTestPassed within timeout)"); +} +} // namespace + TEST_CLASS (RNTesterHeadlessTests) { TEST_CLASS_INITIALIZE(Initialize) { // https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/win32/mddbootstrap/nf-mddbootstrap-mddbootstrapinitialize2 @@ -37,61 +67,35 @@ TEST_CLASS (RNTesterHeadlessTests) { } TEST_METHOD(Dummy) { - TestModule::Reset(); - - winrt::handle instanceLoadedEvent{CreateEvent(nullptr, TRUE, FALSE, nullptr)}; - bool instanceFailed{false}; - - auto holder = TestReactNativeHostHolder( - L"IntegrationTests/DummyTest", - [&instanceLoadedEvent, &instanceFailed](msrn::ReactNativeHost const &host) noexcept { - host.InstanceSettings().InstanceLoaded( - [&instanceLoadedEvent, &instanceFailed](auto const &, msrn::InstanceLoadedEventArgs args) noexcept { - instanceFailed = args.Failed(); - SetEvent(instanceLoadedEvent.get()); - }); - }); - - // First, wait for instance to load - WaitForSingleObject(instanceLoadedEvent.get(), INFINITE); - if (instanceFailed) { - auto err = holder.GetLastError(); - auto msg = L"InstanceLoaded reported failure: " + (err.empty() ? L"(no error captured)" : err); - Assert::Fail(msg.c_str()); - } + RunTest(L"IntegrationTests/DummyTest"); + } + + TEST_METHOD(Fetch) { + RunTest(L"IntegrationTests/FetchTest"); + } - auto status = TestModule::AwaitCompletion(); - Assert::IsTrue(status == TestStatus::Passed, L"Test did not pass (JS did not call markTestPassed within timeout)"); + TEST_METHOD(XHR) { + RunTest(L"IntegrationTests/XHRTest"); + } + + TEST_METHOD(WebSocket) { + RunTest(L"IntegrationTests/WebSocketTest"); + } + + TEST_METHOD(WebSocketBlob) { + RunTest(L"IntegrationTests/WebSocketBlobTest"); } - BEGIN_TEST_METHOD_ATTRIBUTE(WebSocketArrayBuffer) - TEST_IGNORE() - END_TEST_METHOD_ATTRIBUTE() TEST_METHOD(WebSocketArrayBuffer) { - TestModule::Reset(); - - winrt::handle instanceLoadedEvent{CreateEvent(nullptr, TRUE, FALSE, nullptr)}; - bool instanceFailed{false}; - - auto holder = TestReactNativeHostHolder( - L"IntegrationTests/WebSocketArrayBufferTest", - [&instanceLoadedEvent, &instanceFailed](msrn::ReactNativeHost const &host) noexcept { - host.InstanceSettings().InstanceLoaded( - [&instanceLoadedEvent, &instanceFailed](auto const &, msrn::InstanceLoadedEventArgs args) noexcept { - instanceFailed = args.Failed(); - SetEvent(instanceLoadedEvent.get()); - }); - }); - - WaitForSingleObject(instanceLoadedEvent.get(), INFINITE); - if (instanceFailed) { - auto err = holder.GetLastError(); - auto msg = L"InstanceLoaded reported failure: " + (err.empty() ? L"(no error captured)" : err); - Assert::Fail(msg.c_str()); - } + RunTest(L"IntegrationTests/WebSocketArrayBufferTest"); + } + + TEST_METHOD(WebSocketMultipleSend) { + RunTest(L"IntegrationTests/WebSocketMultipleSendTest"); + } - auto status = TestModule::AwaitCompletion(); - Assert::IsTrue(status == TestStatus::Passed, L"Test did not pass (JS did not call markTestPassed within timeout)"); + TEST_METHOD(Blob) { + RunTest(L"IntegrationTests/BlobTest"); } }; diff --git a/vnext/TestWebSite/wwwroot/static/sample.txt b/vnext/TestWebSite/wwwroot/static/sample.txt index 5bd282c8887..47e646f426f 100644 --- a/vnext/TestWebSite/wwwroot/static/sample.txt +++ b/vnext/TestWebSite/wwwroot/static/sample.txt @@ -1 +1 @@ -Sample Static Text File +Sample Static Text File \ No newline at end of file diff --git a/vnext/overrides.json b/vnext/overrides.json index 7eb6dd0fd1e..9899445e5d3 100644 --- a/vnext/overrides.json +++ b/vnext/overrides.json @@ -278,14 +278,6 @@ "type": "platform", "file": "src-win/IntegrationTests/LoggingTest.js" }, - { - "type": "platform", - "file": "src-win/IntegrationTests/websocket_integration_test_server_binary.js" - }, - { - "type": "platform", - "file": "src-win/IntegrationTests/websocket_integration_test_server_blob.js" - }, { "type": "platform", "file": "src-win/IntegrationTests/WebSocketArrayBufferTest.js" @@ -298,6 +290,10 @@ "type": "platform", "file": "src-win/IntegrationTests/WebSocketBlobTest.js" }, + { + "type": "platform", + "file": "src-win/IntegrationTests/WebSocketTest.js" + }, { "type": "platform", "file": "src-win/IntegrationTests/WebSocketMultipleSendTest.js" diff --git a/vnext/src-win/IntegrationTests/BlobTest.js b/vnext/src-win/IntegrationTests/BlobTest.js index 47cf5ecb81e..363ee3c99f7 100644 --- a/vnext/src-win/IntegrationTests/BlobTest.js +++ b/vnext/src-win/IntegrationTests/BlobTest.js @@ -2,115 +2,78 @@ * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * @format - * @flow */ 'use strict'; -const React = require('react'); -const ReactNative = require('react-native'); +const {TurboModuleRegistry} = require('react-native'); -const {AppRegistry, View} = ReactNative; +const TestModule = TurboModuleRegistry.get('TestModule'); -const {TestModule} = ReactNative.NativeModules; - -type State = { - statusCode: number, - xhr: XMLHttpRequest, - expected: string, -}; - -class BlobTest extends React.Component<{...}, State> { - state: State = { - statusCode: 0, - xhr: new XMLHttpRequest(), - // http://localhost:5555/static/react.png - // cspell:disable - expected: - 'data:application/octet-stream;base64,' + - 'iVBORw0KGgoAAAANSUhEUgAAABcAAAAVCAYAAACt4nWrAAABbWlDQ1BpY2MAACiRdZG9S0JR' + - 'GMZ/alGk4VBDRJCDRYNCFEhj2dAiIWaQ1aLXr0Cvl3uViNagpUFoiFr6GvoPag1aC4KgCCLa' + - '2vtaQm7vUUGJOpdz3x/POc/Le58LzkhBK1od01DUy2ZsLuxbSiz7ul5x48RFiOGkZhkz0WiE' + - 'f9fXPQ5V74Kq1//3/lzudMbSwNEtHNIMsyws0xBZLxuKd4T7tXwyLXwkHDBlQOFrpaca/KI4' + - '1+APxWY8NgtO1dOXa+NUG2t5syg8JuwvFipacx71JZ6MvrggdVD2EBYx5gjjI0WFNQqUCUrV' + - 'JbO/feN13zwl8WjyNtjAFEeOvHgDolaka0ZqVvSMPAU2VO6/87SykxON7p4wdD7b9vsIdO1C' + - 'rWrb38e2XTsB1xNc6i1/SXKa+hS92tL8h+DdgvOrlpbag4ttGHg0kmayLrlkO7NZeDuD3gT0' + - '3ULPSiOr5jmnDxDflF90A/sHMCr3vas/DkpoELlQjWUAAAAJcEhZcwAAnXsAAJ17ATyfd8QA' + - 'AARxSURBVDgRbVRbbFRVFN373Hs7fSBorI/S2FLK9GETQgHjBwlg+fABQT78METKTBtrookR' + - 'QgJFDcUP2wRiUKMfVZnCxBq1Rk0MyA81fjQxhQKJ2naGUDum8a1AW9qZe+/ZrjP0NreOJzmz' + - 'z36te86avTfT/6y2tHtIhPbD5WIPiGN399Xwr0FobELuZ9frhP4UtsNMb5yMOj2BP5AqOASy' + - 'PZ1rBvBeYrsJoE2wT3POuxRPeTtMjJFGx/Fm3m/iEB9L5dYZf3jZYcWcRXOLECX76viPBd8r' + - 'e9PZj5SogXja3Uoi20npbYlo5McgNzbuJhXxNuiXA5uRBTfXROWK83Qsxp2KRn4QVm+T8IvE' + - '6q0wsAkCLZ7JW0xYOBSAK0U3NFNpOBA33sKiO4W87XjaYaOH/SxUavLCNnMuoIU0X1GsW48M' + - 'ij1Zla1R2qoxNIEOPN1ai/PHxPRJLOU+Q5b/U3UmMvEzu/Wa+dR/wTlsiI/PrRZVtBO37AbA' + - 'LAn9gl2Od8/g6YP4R6ZBwh0iukWEy2D7EwAV+GAZaOu0/dyX7zeUTASYefD2a1KtXfcYAB9i' + - '5n4A7mCL9vs+r2CSHqfMXtdbybeCpD1XpMwu8S8D9CB5Mq0sOU6KvxKR3cgd9mznQLKWM6pt' + - 'LLfR9/xBVjQkjtOIen0ZnPeLx0/iy8eEqaN3Jc3Fx92j2BeMTK6lW6ykw/jZ4p3C/KHJM/kG' + - 'x/L9bwwux1PuCGk6kGhwzgc3ax2Vuy3Lvwaev0/UO5vaUrmYECcCP14TP1lX1BdPe0OIafJ9' + - 'e/XpRv4r8MfH3BbU4XFTLdUSsUcCh5GnG+hviCwAM0aHrDUyWCE9A2d2IT5w0wJeFaMBulFG' + - 'DbayY721nC8nlNqjSHod0atUzo761vxytuzvoN+L/bv43sOaiqcty0uBmklQ15mIOucMOkbD' + - 'ncrzElrTGJuSy1R6XbA/Syw9YjsJdt0TLOo8kjbB7ifq7OfzSb7XrC37EubMdYyBd+GzcIkh' + - 'xG0lx9pHOa8NFXQQ9veqpuyufLVAofar82t8sV9CQzyGRqkSpZIW6Ytacxca+TVluV9ridxQ' + - 'nF3ha/U4C79qKTnikdrIWu9B52ZQbWcVe29+sKb4qsFcBDeKWfF09kES1S8svaTVejDeiNts' + - 'QOgUzsshb+IPrcSwugjuRzFnRnD753ySp5N1kdHbKLd/CzoUN9qM+j3XFy0yz84vVNQJIn3P' + - 'TNRpXZZ2k5r4t756Z1/gR7eucoi2QF8CXjBbkLgSN7keJBo5U2J3YmhVLEt7F9Ct982W2IfD' + - 'fhOPjq1YYoNSAA7O0ckyFw789AGeA4HDoKca9uG8Hgow8eAXD166CsANj4hqDsJax6UStHwG' + - 'fb1datcBYgNoGDD2IIY1NePFY4EeyII/tGNKSt1ZbwQz5lst5LPILtz6HZRWz9FH2Fso3UP4' + - 'yAto+y8w+y3MlM2grrngRcFXwrJjXMpdcnexUnPzRdaZ/mr+J+w3592Tcldxzn9CtC7xtfN5' + - 'uP2D2H8BsGL5W7blULYAAAAASUVORK5CYII=', - // cspell:enable - }; +if (!TestModule) { + throw new Error('TestModule is not available'); +} - _get = () => { - this.state.xhr.onloadend = () => { - this.setState({ - statusCode: this.state.xhr.status, - }); - }; - this.state.xhr.open('GET', 'http://localhost:5555/static/react.png'); - this.state.xhr.setRequestHeader('Accept-Encoding', 'utf-8'); - this.state.xhr.responseType = 'blob'; - this.state.xhr.send(); - }; +const URL = 'http://localhost:5555/static/react.png'; - _getSucceeded = (): boolean => { - return this.state.statusCode === 200 && this.state.xhr.response !== null; - }; +// cspell:disable +const EXPECTED_DATA_URL = + 'data:application/octet-stream;base64,' + + 'iVBORw0KGgoAAAANSUhEUgAAABcAAAAVCAYAAACt4nWrAAABbWlDQ1BpY2MAACiRdZG9S0JR' + + 'GMZ/alGk4VBDRJCDRYNCFEhj2dAiIWaQ1aLXr0Cvl3uViNagpUFoiFr6GvoPag1aC4KgCCLa' + + '2vtaQm7vUUGJOpdz3x/POc/Le58LzkhBK1od01DUy2ZsLuxbSiz7ul5x48RFiOGkZhkz0WiE' + + 'f9fXPQ5V74Kq1//3/lzudMbSwNEtHNIMsyws0xBZLxuKd4T7tXwyLXwkHDBlQOFrpaca/KI4' + + '1+APxWY8NgtO1dOXa+NUG2t5syg8JuwvFipacx71JZ6MvrggdVD2EBYx5gjjI0WFNQqUCUrV' + + 'JbO/feN13zwl8WjyNtjAFEeOvHgDolaka0ZqVvSMPAU2VO6/87SykxON7p4wdD7b9vsIdO1C' + + 'rWrb38e2XTsB1xNc6i1/SXKa+hS92tL8h+DdgvOrlpbag4ttGHg0kmayLrlkO7NZeDuD3gT0' + + '3ULPSiOr5jmnDxDflF90A/sHMCr3vas/DkpoELlQjWUAAAAJcEhZcwAAnXsAAJ17ATyfd8QA' + + 'AARxSURBVDgRbVRbbFRVFN373Hs7fSBorI/S2FLK9GETQgHjBwlg+fABQT78METKTBtrookR' + + 'QgJFDcUP2wRiUKMfVZnCxBq1Rk0MyA81fjQxhQKJ2naGUDum8a1AW9qZe+/ZrjP0NreOJzmz' + + 'z36te86avTfT/6y2tHtIhPbD5WIPiGN399Xwr0FobELuZ9frhP4UtsNMb5yMOj2BP5AqOASy' + + 'PZ1rBvBeYrsJoE2wT3POuxRPeTtMjJFGx/Fm3m/iEB9L5dYZf3jZYcWcRXOLECX76viPBd8r' + + 'e9PZj5SogXja3Uoi20npbYlo5McgNzbuJhXxNuiXA5uRBTfXROWK83Qsxp2KRn4QVm+T8IvE' + + '6q0wsAkCLZ7JW0xYOBSAK0U3NFNpOBA33sKiO4W87XjaYaOH/SxUavLCNnMuoIU0X1GsW48M' + + 'ij1Zla1R2qoxNIEOPN1ai/PHxPRJLOU+Q5b/U3UmMvEzu/Wa+dR/wTlsiI/PrRZVtBO37AbA' + + 'LAn9gl2Od8/g6YP4R6ZBwh0iukWEy2D7EwAV+GAZaOu0/dyX7zeUTASYefD2a1KtXfcYAB9i' + + '5n4A7mCL9vs+r2CSHqfMXtdbybeCpD1XpMwu8S8D9CB5Mq0sOU6KvxKR3cgd9mznQLKWM6pt' + + 'LLfR9/xBVjQkjtOIen0ZnPeLx0/iy8eEqaN3Jc3Fx92j2BeMTK6lW6ykw/jZ4p3C/KHJM/kG' + + 'x/L9bwwux1PuCGk6kGhwzgc3ax2Vuy3Lvwaev0/UO5vaUrmYECcCP14TP1lX1BdPe0OIafJ9' + + 'e/XpRv4r8MfH3BbU4XFTLdUSsUcCh5GnG+hviCwAM0aHrDUyWCE9A2d2IT5w0wJeFaMBulFG' + + 'DbayY721nC8nlNqjSHod0atUzo761vxytuzvoN+L/bv43sOaiqcty0uBmklQ15mIOucMOkbD' + + 'ncrzElrTGJuSy1R6XbA/Syw9YjsJdt0TLOo8kjbB7ifq7OfzSb7XrC37EubMdYyBd+GzcIkh' + + 'xG0lx9pHOa8NFXQQ9veqpuyufLVAofar82t8sV9CQzyGRqkSpZIW6Ytacxca+TVluV9ridxQ' + + 'nF3ha/U4C79qKTnikdrIWu9B52ZQbWcVe29+sKb4qsFcBDeKWfF09kES1S8svaTVejDeiNts' + + 'QOgUzsshb+IPrcSwugjuRzFnRnD753ySp5N1kdHbKLd/CzoUN9qM+j3XFy0yz84vVNQJIn3P' + + 'TNRpXZZ2k5r4t756Z1/gR7eucoi2QF8CXjBbkLgSN7keJBo5U2J3YmhVLEt7F9Ct982W2IfD' + + 'fhOPjq1YYoNSAA7O0ckyFw789AGeA4HDoKca9uG8Hgow8eAXD166CsANj4hqDsJax6UStHwG' + + 'fb1datcBYgNoGDD2IIY1NePFY4EeyII/tGNKSt1ZbwQz5lst5LPILtz6HZRWz9FH2Fso3UP4' + + 'yAto+y8w+y3MlM2grrngRcFXwrJjXMpdcnexUnPzRdaZ/mr+J+w3592Tcldxzn9CtC7xtfN5' + + 'uP2D2H8BsGL5W7blULYAAAAASUVORK5CYII='; +// cspell:enable - _waitFor = (condition: any, timeout: any, callback: any) => { - let remaining = timeout; - const timeoutFunction = function () { - if (condition()) { - callback(true); - return; - } - remaining--; - if (remaining === 0) { - callback(false); - } else { - setTimeout(timeoutFunction, 1000); - } - }; - setTimeout(timeoutFunction, 1000); - }; +const xhr = new XMLHttpRequest(); +xhr.responseType = 'blob'; - componentDidMount() { - this._get(); - this._waitFor(this._getSucceeded, 6, doneSucceeded => { - let reader = new FileReader(); - reader.readAsDataURL(this.state.xhr.response); - reader.onload = () => { - TestModule.markTestPassed( - doneSucceeded && this.state.expected === reader.result, - ); - }; - }); +xhr.onloadend = () => { + const succeeded = xhr.status === 200 && xhr.response !== null; + if (!succeeded) { + TestModule.markTestPassed(false); + return; } - render(): React.Node { - return ; - } -} + const reader = new FileReader(); + reader.onload = () => { + TestModule.markTestPassed(reader.result === EXPECTED_DATA_URL); + }; + reader.onerror = () => { + TestModule.markTestPassed(false); + }; + reader.readAsDataURL(xhr.response); +}; -AppRegistry.registerComponent('BlobTest', () => BlobTest); +xhr.onerror = () => { + TestModule.markTestPassed(false); +}; -module.exports = BlobTest; +xhr.open('GET', URL); +xhr.setRequestHeader('Accept-Encoding', 'utf-8'); +xhr.send(); diff --git a/vnext/src-win/IntegrationTests/FetchTest.js b/vnext/src-win/IntegrationTests/FetchTest.js index 79c666fa581..ff645f5516a 100644 --- a/vnext/src-win/IntegrationTests/FetchTest.js +++ b/vnext/src-win/IntegrationTests/FetchTest.js @@ -2,52 +2,27 @@ * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * @format - * @flow */ 'use strict'; -const React = require('react'); -const ReactNative = require('react-native'); +const {TurboModuleRegistry} = require('react-native'); -const {AppRegistry, View} = ReactNative; +const TestModule = TurboModuleRegistry.get('TestModule'); -const {TestModule} = ReactNative.NativeModules; - -const uri = - 'https://raw.githubusercontent.com/microsoft/react-native-windows/main/.yarnrc.yml'; -const expectedContent = 'enableScripts: false'; - -type State = { - uri: string, - expected: string, - content: string, -}; - -class FetchTest extends React.Component<{...}, State> { - state: State = { - uri: 'https://raw.githubusercontent.com/microsoft/react-native-windows/main/.yarnrc.yml', - expected: 'enableScripts: false', - content: '', - }; - - async componentDidMount() { - const response = await fetch(uri); - const text = await response.text(); - this.setState({content: text}); - - if (this.state.content === expectedContent) { - TestModule.markTestPassed(true); - } else { - TestModule.markTestPassed(false); - } - } - - render(): React.Node { - return ; - } +if (!TestModule) { + throw new Error('TestModule is not available'); } -AppRegistry.registerComponent('FetchTest', () => FetchTest); - -module.exports = FetchTest; +const URL = 'http://localhost:5555/static/sample.txt'; +const EXPECTED_CONTENT = 'Sample Static Text File'; + +fetch(URL) + .then(response => response.text()) + .then(text => { + const passed = text === EXPECTED_CONTENT; + TestModule.markTestPassed(passed); + }) + .catch(() => { + TestModule.markTestPassed(false); + }); diff --git a/vnext/src-win/IntegrationTests/WebSocketBlobTest.js b/vnext/src-win/IntegrationTests/WebSocketBlobTest.js index 7b18bfe2c07..1b7b675276b 100644 --- a/vnext/src-win/IntegrationTests/WebSocketBlobTest.js +++ b/vnext/src-win/IntegrationTests/WebSocketBlobTest.js @@ -1,159 +1,121 @@ /** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * @format - * @flow */ 'use strict'; -const React = require('react'); -const ReactNative = require('react-native'); -const {AppRegistry, View} = ReactNative; -const {TestModule} = ReactNative.NativeModules; +const {TurboModuleRegistry} = require('react-native'); +const TestModule = TurboModuleRegistry.get('TestModule'); -// eslint-disable-next-line @microsoft/sdl/no-insecure-url -const DEFAULT_WS_URL = 'ws://localhost:5555/rnw/rntester/websocketbinarytest'; - -const WS_EVENTS = ['close', 'error', 'message', 'open']; - -type State = { - url: string, - fetchStatus: ?string, - socket: ?WebSocket, - socketState: ?number, - lastSocketEvent: ?string, - lastMessage: ?Blob, - testMessage: Uint8Array, - testExpectedResponse: Uint8Array, - ... -}; - -class WebSocketBlobTest extends React.Component<{}, State> { - state: State = { - url: DEFAULT_WS_URL, - fetchStatus: null, - socket: null, - socketState: null, - lastSocketEvent: null, - lastMessage: null, - testMessage: new Uint8Array([1, 2, 3]), - testExpectedResponse: new Uint8Array([4, 5, 6, 7]), - }; +if (!TestModule) { + throw new Error('TestModule is not available'); +} - _waitFor = (condition: any, timeout: any, callback: any) => { - let remaining = timeout; - const timeoutFunction = function () { - if (condition()) { - callback(true); - return; - } - remaining--; - if (remaining === 0) { - callback(false); - } else { - setTimeout(timeoutFunction, 1000); - } - }; - setTimeout(timeoutFunction, 1000); - }; +// eslint-disable-next-line @microsoft/sdl/no-insecure-url +const WS_URL = 'ws://localhost:5555/rnw/rntester/websocketbinarytest'; +const TEST_MESSAGE = new Uint8Array([1, 2, 3]); +// Expected bytes come from RNTesterIntegrationTests.WebSocketBinaryTest outgoingBytes. +const EXPECTED_BYTES = new Uint8Array([4, 5, 6, 7]); +const EXPECTED_SIZE = EXPECTED_BYTES.length; + +let completed = false; +const socket = new WebSocket(WS_URL); +socket.binaryType = 'blob'; + +const timeoutId = setTimeout(() => { + complete(false, 'timeout waiting for websocket response'); +}, 10000); + +function complete(passed, reason) { + if (completed) { + return; + } - _connect = () => { - const socket = new WebSocket(this.state.url); - socket.binaryType = 'blob'; - WS_EVENTS.forEach(ev => socket.addEventListener(ev, this._onSocketEvent)); - this.setState({ - socket, - socketState: socket.readyState, - }); - }; + completed = true; + clearTimeout(timeoutId); - _socketIsConnected = (): boolean => { - return this.state.socketState === 1; //'OPEN' - }; + if (!passed && reason) { + console.log('WebSocketBlobTest FAIL: ' + reason); + } - _socketIsDisconnected = (): boolean => { - return this.state.socketState === 3; //'CLOSED' - }; + TestModule.markTestPassed(passed); +} - _disconnect = () => { - if (!this.state.socket) { - return; - } - this.state.socket.close(); - }; +function decodeBlobToBytes(blob, onSuccess, onError) { + if (typeof blob.arrayBuffer === 'function') { + blob + .arrayBuffer() + .then(buffer => onSuccess(new Uint8Array(buffer))) + .catch(onError); + return; + } - _onSocketEvent = (event: any) => { - const state: any = { - socketState: event.target.readyState, - lastSocketEvent: event.type, - }; - if (event.type === 'message') { - state.lastMessage = event.data; - } - this.setState(state); + const reader = new FileReader(); + reader.onload = () => { + onSuccess(new Uint8Array(reader.result)); }; - - _sendBinary = (message: Uint8Array) => { - if (!this.state.socket) { - return; - } - this.state.socket.send(message); + reader.onerror = () => { + onError(reader.error || new Error('failed to read blob')); }; + reader.readAsArrayBuffer(blob); +} - _sendTestMessage = () => { - this._sendBinary(this.state.testMessage); - }; +socket.addEventListener('open', () => { + socket.send(TEST_MESSAGE); +}); - _receivedTestExpectedResponse = (): boolean => { - // Can't iterate through Blob response. Blob.arrayBuffer() not supported. - return ( - this.state.lastMessage?.size === this.state.testExpectedResponse.length - ); - }; +socket.addEventListener('message', event => { + const data = event.data; - componentDidMount() { - this.testConnect(); + if (!(data instanceof Blob)) { + complete(false, 'expected Blob response'); + socket.close(); + return; } - testConnect: () => void = () => { - this._connect(); - this._waitFor(this._socketIsConnected, 5, connectSucceeded => { - if (!connectSucceeded) { - TestModule.markTestPassed(false); - return; - } - this.testSendAndReceive(); - }); - }; + if (data.size !== EXPECTED_SIZE) { + complete(false, 'unexpected response size'); + socket.close(); + return; + } - testSendAndReceive: () => void = () => { - this._sendTestMessage(); - this._waitFor(this._receivedTestExpectedResponse, 5, messageReceived => { - if (!messageReceived) { - TestModule.markTestPassed(false); - return; + decodeBlobToBytes( + data, + bytes => { + for (let i = 0; i < EXPECTED_BYTES.length; i++) { + if (bytes[i] !== EXPECTED_BYTES[i]) { + complete( + false, + 'unexpected response byte at index ' + + i + + ': expected ' + + EXPECTED_BYTES[i] + + ', got ' + + bytes[i], + ); + socket.close(); + return; + } } - this.testDisconnect(); - }); - }; - testDisconnect: () => void = () => { - this._disconnect(); - this._waitFor(this._socketIsDisconnected, 5, disconnectSucceeded => { - TestModule.markTestPassed(disconnectSucceeded); - }); - }; - render(): React.Node { - return ; + complete(true); + socket.close(); + }, + error => { + complete(false, 'failed to decode blob: ' + String(error)); + socket.close(); + }, + ); +}); + +socket.addEventListener('error', () => { + complete(false, 'websocket error'); +}); + +socket.addEventListener('close', () => { + if (!completed) { + complete(false, 'socket closed before completing test'); } -} // class WebSocketBlobTest - -WebSocketBlobTest.displayName = 'WebSocketBlobTest'; - -AppRegistry.registerComponent('WebSocketBlobTest', () => WebSocketBlobTest); - -module.exports = WebSocketBlobTest; +}); diff --git a/vnext/src-win/IntegrationTests/WebSocketMultipleSendTest.js b/vnext/src-win/IntegrationTests/WebSocketMultipleSendTest.js index e3658cdab96..afaa789368f 100644 --- a/vnext/src-win/IntegrationTests/WebSocketMultipleSendTest.js +++ b/vnext/src-win/IntegrationTests/WebSocketMultipleSendTest.js @@ -10,7 +10,6 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow */ /* @@ -25,10 +24,13 @@ Array.from('abcdef').forEach( e => { ws.send(e.repeat(1025)) }); 'use strict'; -const React = require('react'); -const ReactNative = require('react-native'); -const {AppRegistry, View} = ReactNative; -const {TestModule} = ReactNative.NativeModules; +const {TurboModuleRegistry} = require('react-native'); + +const TestModule = TurboModuleRegistry.get('TestModule'); + +if (!TestModule) { + throw new Error('TestModule is not available'); +} // eslint-disable-next-line @microsoft/sdl/no-insecure-url const URL_BASE = 'ws://localhost:5555/rnw/rntester/websocketmultiplesendtest'; @@ -41,131 +43,90 @@ const EXPECTED = 'abcdef'; const ID = Math.floor(Math.random() * 1000000); -type State = { - sendUrl: string, - receiveUrl: string, - sendSocket: ?WebSocket, - receiveSocket: ?WebSocket, - result: ?string, -}; - -class WebSocketMultipleSendTest extends React.Component<{}, State> { - state: State = { - sendUrl: `${URL_BASE}/send/${ID}`, - receiveUrl: `${URL_BASE}/receive/${ID}`, - sendSocket: null, - receiveSocket: null, - result: '', - }; +const sendUrl = `${URL_BASE}/send/${ID}`; +const receiveUrl = `${URL_BASE}/receive/${ID}`; - _waitFor = (condition: any, timeout: any, callback: any) => { - let remaining = timeout; - const timeoutFunction = function () { - if (condition()) { - callback(true); - return; - } - remaining--; - if (remaining === 0) { - callback(false); - } else { - setTimeout(timeoutFunction, 1000); - } - }; - setTimeout(timeoutFunction, 1000); - }; +let sendSocket = null; +let receiveSocket = null; +let result = ''; - _socketsAreConnected = (): boolean => { - return ( - this.state.sendSocket?.readyState === 1 && - this.state.sendSocket?.readyState === 1 - ); // OPEN +const waitFor = (condition, timeout, callback) => { + let remaining = timeout; + const timeoutFunction = function () { + if (condition()) { + callback(true); + return; + } + remaining--; + if (remaining === 0) { + callback(false); + } else { + setTimeout(timeoutFunction, 1000); + } }; + setTimeout(timeoutFunction, 1000); +}; - _socketsAreDisconnected = (): boolean => { - return ( - this.state.sendSocket?.readyState === 3 && - this.state.sendSocket?.readyState === 3 - ); // CLOSED - }; +const socketsAreConnected = () => { + return sendSocket?.readyState === 1 && sendSocket?.readyState === 1; // OPEN +}; - _resultIsComplete = (): boolean => { - return this.state.result === EXPECTED; - }; +const socketsAreDisconnected = () => { + return sendSocket?.readyState === 3 && sendSocket?.readyState === 3; // CLOSED +}; - _disconnect = () => { - if (this.state.receiveSocket) { - this.state.receiveSocket.close(); - } - }; +const resultIsComplete = () => { + return result === EXPECTED; +}; - testDisconnect: () => void = () => { - this._disconnect(); - this._waitFor(this._socketsAreDisconnected, 5, disconnectSucceeded => { - TestModule.markTestPassed(disconnectSucceeded); - }); - }; +const disconnect = () => { + if (receiveSocket) { + receiveSocket.close(); + } +}; - testSendMultipleAndClose: () => void = () => { - this.state.sendSocket?.send('a'.repeat(MESSAGE_SIZE)); - this.state.sendSocket?.send('b'.repeat(MESSAGE_SIZE)); - this.state.sendSocket?.send('c'.repeat(MESSAGE_SIZE)); - this.state.sendSocket?.send('d'.repeat(MESSAGE_SIZE)); - this.state.sendSocket?.send('e'.repeat(MESSAGE_SIZE)); - this.state.sendSocket?.send('f'.repeat(MESSAGE_SIZE)); - this.state.sendSocket?.close(); - - this._waitFor(this._resultIsComplete, 5, resultComplete => { - if (!resultComplete) { - TestModule.markTestPassed(false); - return; - } - this.testDisconnect(); - }); - }; +const testDisconnect = () => { + disconnect(); + waitFor(socketsAreDisconnected, 5, disconnectSucceeded => { + TestModule.markTestPassed(disconnectSucceeded); + }); +}; - _onSocketEvent = (event: any) => { - if (event.type === 'message' && event.data.length) { - var message = this.state.result + event.data[0]; - this.setState({ - result: message, - }); +const testSendMultipleAndClose = () => { + sendSocket?.send('a'.repeat(MESSAGE_SIZE)); + sendSocket?.send('b'.repeat(MESSAGE_SIZE)); + sendSocket?.send('c'.repeat(MESSAGE_SIZE)); + sendSocket?.send('d'.repeat(MESSAGE_SIZE)); + sendSocket?.send('e'.repeat(MESSAGE_SIZE)); + sendSocket?.send('f'.repeat(MESSAGE_SIZE)); + sendSocket?.close(); + + waitFor(resultIsComplete, 5, resultComplete => { + if (!resultComplete) { + TestModule.markTestPassed(false); + return; } - }; - - _connect = () => { - const sendSocket = new WebSocket(this.state.sendUrl); - const receiveSocket = new WebSocket(this.state.receiveUrl); - WS_EVENTS.forEach(ev => - receiveSocket.addEventListener(ev, this._onSocketEvent), - ); - this.setState({ - sendSocket, - receiveSocket, - }); - }; - - componentDidMount() { - this._connect(); - this._waitFor(this._socketsAreConnected, 5, connectSucceeded => { - if (!connectSucceeded) { - TestModule.markTestPassed(false); - return; - } - this.testSendMultipleAndClose(); - }); - } + testDisconnect(); + }); +}; - render(): React.Node { - return ; +const onSocketEvent = event => { + if (event.type === 'message' && event.data.length) { + result += event.data[0]; } -} // class WebSocketMultipleSendTest - -WebSocketMultipleSendTest.displayName = 'WebSocketMultipleSendTest'; +}; -AppRegistry.registerComponent( - 'WebSocketMultipleSendTest', - () => WebSocketMultipleSendTest, -); +const connect = () => { + sendSocket = new WebSocket(sendUrl); + receiveSocket = new WebSocket(receiveUrl); + WS_EVENTS.forEach(ev => receiveSocket.addEventListener(ev, onSocketEvent)); +}; -module.exports = WebSocketMultipleSendTest; +connect(); +waitFor(socketsAreConnected, 5, connectSucceeded => { + if (!connectSucceeded) { + TestModule.markTestPassed(false); + return; + } + testSendMultipleAndClose(); +}); diff --git a/vnext/src-win/IntegrationTests/WebSocketTest.js b/vnext/src-win/IntegrationTests/WebSocketTest.js new file mode 100644 index 00000000000..b1975486599 --- /dev/null +++ b/vnext/src-win/IntegrationTests/WebSocketTest.js @@ -0,0 +1,82 @@ +/** + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * @format + */ + +'use strict'; + +const {TurboModuleRegistry} = require('react-native'); +const TestModule = TurboModuleRegistry.get('TestModule'); + +if (!TestModule) { + throw new Error('TestModule is not available'); +} + +// eslint-disable-next-line @microsoft/sdl/no-insecure-url +const WS_URL = 'ws://localhost:5555/'; +const TEST_MESSAGE = 'testMessage'; +const EXPECTED_RESPONSE = 'testMessage_response'; +const INITIAL_SERVER_GREETING = 'hello'; + +let completed = false; +let messageSent = false; +const socket = new WebSocket(WS_URL); +const timeoutId = setTimeout(() => { + complete(false, 'timeout waiting for websocket response'); +}, 10000); + +function sendTestMessageIfNeeded() { + if (messageSent || socket.readyState !== WebSocket.OPEN) { + return; + } + + messageSent = true; + socket.send(TEST_MESSAGE); +} + +function complete(passed, reason) { + if (completed) { + return; + } + + completed = true; + clearTimeout(timeoutId); + + if (!passed && reason) { + console.log('WebSocketTest FAIL: ' + reason); + } + + TestModule.markTestPassed(passed); +} + +socket.addEventListener('open', () => { + sendTestMessageIfNeeded(); +}); + +socket.addEventListener('message', event => { + if (event.data === INITIAL_SERVER_GREETING) { + return; + } + + if (event.data !== EXPECTED_RESPONSE) { + complete(false, 'unexpected response payload'); + socket.close(); + return; + } + + complete(true); + socket.close(); +}); + +socket.addEventListener('error', () => { + complete(false, 'websocket error'); +}); + +socket.addEventListener('close', () => { + if (!completed) { + complete(false, 'socket closed before completing test'); + } +}); + +sendTestMessageIfNeeded(); diff --git a/vnext/src-win/IntegrationTests/XHRTest.js b/vnext/src-win/IntegrationTests/XHRTest.js index a03ba97c658..2b85a9a0f3d 100644 --- a/vnext/src-win/IntegrationTests/XHRTest.js +++ b/vnext/src-win/IntegrationTests/XHRTest.js @@ -2,81 +2,30 @@ * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * @format - * @flow */ 'use strict'; -const React = require('react'); -const ReactNative = require('react-native'); +const {TurboModuleRegistry} = require('react-native'); -const {AppRegistry, View} = ReactNative; +const TestModule = TurboModuleRegistry.get('TestModule'); -const {TestModule} = ReactNative.NativeModules; - -type State = { - statusCode: number, - xhr: XMLHttpRequest, -}; - -class XHRTest extends React.Component<{...}, State> { - state: State = { - statusCode: 0, - xhr: new XMLHttpRequest(), - }; - - _get = () => { - this.state.xhr.onloadend = () => { - this.setState({ - statusCode: this.state.xhr.status, - }); - }; - this.state.xhr.open( - 'GET', - 'https://raw.githubusercontent.com/microsoft/react-native-windows/react-native-windows_v0.67.1/NuGet.Config', - ); - this.state.xhr.setRequestHeader('Accept-Encoding', 'utf-8'); - this.state.xhr.send(); - }; - - _getSucceeded = (): boolean => { - console.log( - `_getSucceeded [${this.state.statusCode}],[${this.state.xhr.responseText.length}]`, - ); - return ( - this.state.statusCode === 200 && - this.state.xhr.responseText.length === 387 - ); - }; - - _waitFor = (condition: any, timeout: any, callback: any) => { - let remaining = timeout; - const timeoutFunction = function () { - if (condition()) { - callback(true); - return; - } - remaining--; - if (remaining === 0) { - callback(false); - } else { - setTimeout(timeoutFunction, 1000); - } - }; - setTimeout(timeoutFunction, 1000); - }; - - componentDidMount() { - this._get(); - this._waitFor(this._getSucceeded, 5, doneSucceeded => { - TestModule.markTestPassed(doneSucceeded); - }); - } - - render(): React.Node { - return ; - } +if (!TestModule) { + throw new Error('TestModule is not available'); } -AppRegistry.registerComponent('XHRTest', () => XHRTest); +const URL = 'http://localhost:5555/static/sample.txt'; +const EXPECTED_CONTENT = 'Sample Static Text File'; + +const xhr = new XMLHttpRequest(); +xhr.onloadend = () => { + const responseText = xhr.responseText || ''; + const passed = + xhr.status === 200 && responseText === EXPECTED_CONTENT; + TestModule.markTestPassed(passed); +}; +xhr.onerror = () => { + TestModule.markTestPassed(false); +}; -module.exports = XHRTest; +xhr.open('GET', URL); +xhr.send(); diff --git a/vnext/src-win/IntegrationTests/websocket_integration_test_server_binary.js b/vnext/src-win/IntegrationTests/websocket_integration_test_server_binary.js deleted file mode 100644 index 54583577d48..00000000000 --- a/vnext/src-win/IntegrationTests/websocket_integration_test_server_binary.js +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env node -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow - * @format - */ - -'use strict'; - -/* eslint-env node */ - -const WebSocket = require('ws'); - -console.log(`\ -WebSocket binary integration test server - -This will send each incoming message back, in binary form. - -`); - -const server = new WebSocket.Server({port: 5557}); -server.on('connection', ws => { - ws.binaryType = 'arraybuffer'; - ws.on('message', message => { - console.log(message); - - ws.send(new Uint8Array([4, 5, 6, 7]).buffer); - }); -}); diff --git a/vnext/src-win/IntegrationTests/websocket_integration_test_server_blob.js b/vnext/src-win/IntegrationTests/websocket_integration_test_server_blob.js deleted file mode 100644 index d08ae16e0c5..00000000000 --- a/vnext/src-win/IntegrationTests/websocket_integration_test_server_blob.js +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env node -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow - * @format - */ - -'use strict'; - -/* eslint-env node */ - -const WebSocket = require('ws'); - -console.log(`\ -WebSocket binary integration test server - -This will send each incoming message back, in binary form. - -`); - -const server = new WebSocket.Server({port: 5557}); -server.on('connection', ws => { - ws.binaryType = 'blob'; - ws.on('message', message => { - console.log(message); - - ws.send([4, 5, 6, 7]); - }); -}); From a601a11302c05094e18e0f91fde1cbb916bf14a3 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Mon, 8 Jun 2026 19:03:53 -0700 Subject: [PATCH 13/38] Add missing find-dotnet-tool entries --- packages/@react-native-windows/automation/package.json | 1 + packages/@react-native-windows/cli/package.json | 1 + packages/@rnw-scripts/eslint-config/eslintrc.js | 9 --------- yarn.lock | 7 +++++++ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/@react-native-windows/automation/package.json b/packages/@react-native-windows/automation/package.json index 2e9deb8dba4..12993b1be87 100644 --- a/packages/@react-native-windows/automation/package.json +++ b/packages/@react-native-windows/automation/package.json @@ -18,6 +18,7 @@ }, "dependencies": { "@react-native-windows/automation-channel": "0.81.26", + "@react-native-windows/find-dotnet-tools": "0.0.0-canary.2", "@react-native-windows/fs": "0.81.1", "@typescript-eslint/eslint-plugin": "^7.1.1", "@typescript-eslint/parser": "^7.1.1", diff --git a/packages/@react-native-windows/cli/package.json b/packages/@react-native-windows/cli/package.json index 58144afaf92..6cacbe23806 100644 --- a/packages/@react-native-windows/cli/package.json +++ b/packages/@react-native-windows/cli/package.json @@ -18,6 +18,7 @@ }, "dependencies": { "@react-native-windows/codegen": "0.81.5", + "@react-native-windows/find-dotnet-tools": "0.0.0-canary.2", "@react-native-windows/fs": "0.81.1", "@react-native-windows/package-utils": "0.81.1", "@react-native-windows/telemetry": "0.81.2", diff --git a/packages/@rnw-scripts/eslint-config/eslintrc.js b/packages/@rnw-scripts/eslint-config/eslintrc.js index bb32fcdd24e..a26b260fdaf 100644 --- a/packages/@rnw-scripts/eslint-config/eslintrc.js +++ b/packages/@rnw-scripts/eslint-config/eslintrc.js @@ -48,15 +48,6 @@ module.exports = { rules: { '@typescript-eslint/await-thenable': 'error', '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/ban-types': [ - 'error', { - 'extendDefaults': true, - 'types': { - // See https://github.com/typescript-eslint/typescript-eslint/issues/2063 - '{}': false - } - } - ], '@typescript-eslint/no-confusing-non-null-assertion': 'error', '@typescript-eslint/no-extra-non-null-assertion': 'error', '@typescript-eslint/no-floating-promises': [ diff --git a/yarn.lock b/yarn.lock index 38f7f600692..ba1303b7d6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2174,6 +2174,13 @@ resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-2.11.4.tgz#7fb09506ee00a82989125cc03e8495204c8afc01" integrity sha512-Kf8h1AMnBo54b1fdiVylP2P/iFcZqzpMYcglC28EEFB1DEnOjsNr6Ucqc+3R9e91vHxEDnhZFbYDmAe79P2gjA== +"@react-native-windows/find-dotnet-tools@0.0.0-canary.2": + version "0.0.0-canary.2" + resolved "https://registry.yarnpkg.com/@react-native-windows/find-dotnet-tools/-/find-dotnet-tools-0.0.0-canary.2.tgz#8d30dca7169c65d36cd46359a66db1808614c5ad" + integrity sha512-WLQ9kF84IYU66u9+PeixRN1ynparsbBQ7DROiuOpUXXisP09dotYO/6s9TwFePxpcqBkH4qtl27Z/VU3t8mKSQ== + dependencies: + "@react-native-windows/fs" "^0.0.0-canary.72" + "@react-native-windows/fs@^0.0.0-canary.70": version "0.0.0-canary.71" resolved "https://registry.yarnpkg.com/@react-native-windows/fs/-/fs-0.0.0-canary.71.tgz#20299b596f90f511f9ebddf62b56d2275430d57a" From 6bc31332251b5d5ac7693193198336539f3ce44d Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Mon, 8 Jun 2026 19:17:24 -0700 Subject: [PATCH 14/38] Update package locks --- vnext/Desktop.ABITests/packages.lock.json | 118 ++++++++-------- vnext/Desktop.DLL/packages.lock.json | 88 ++++++------ .../packages.lock.json | 88 ++++++------ vnext/Desktop.UnitTests/packages.lock.json | 88 ++++++------ vnext/Desktop/packages.lock.json | 120 ++++++++--------- .../Mso.UnitTests/packages.newarch.lock.json | 124 ++++++++--------- .../ReactCommon.UnitTests/packages.lock.json | 126 +++++++++--------- 7 files changed, 376 insertions(+), 376 deletions(-) diff --git a/vnext/Desktop.ABITests/packages.lock.json b/vnext/Desktop.ABITests/packages.lock.json index 0093c6d7d34..2dfbfe24fbe 100644 --- a/vnext/Desktop.ABITests/packages.lock.json +++ b/vnext/Desktop.ABITests/packages.lock.json @@ -60,33 +60,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -94,63 +94,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "ReactNative.V8Jsi.Windows": { @@ -188,7 +188,7 @@ "FollyWin32": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon.win32": "[1.0.0, )", "ReactNative.V8Jsi.Windows": "[0.71.8, )", "boost": "[1.84.0, )" @@ -220,11 +220,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -236,11 +236,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -252,11 +252,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -268,11 +268,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } diff --git a/vnext/Desktop.DLL/packages.lock.json b/vnext/Desktop.DLL/packages.lock.json index 4cd68e8b668..84564b8cb0c 100644 --- a/vnext/Desktop.DLL/packages.lock.json +++ b/vnext/Desktop.DLL/packages.lock.json @@ -57,33 +57,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -91,63 +91,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common.win32": { @@ -180,7 +180,7 @@ "FollyWin32": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon.win32": "[1.0.0, )", "ReactNative.V8Jsi.Windows": "[0.71.8, )", "boost": "[1.84.0, )" @@ -195,4 +195,4 @@ } } } -} +} \ No newline at end of file diff --git a/vnext/Desktop.IntegrationTests/packages.lock.json b/vnext/Desktop.IntegrationTests/packages.lock.json index ecc00e10223..7c993148352 100644 --- a/vnext/Desktop.IntegrationTests/packages.lock.json +++ b/vnext/Desktop.IntegrationTests/packages.lock.json @@ -62,33 +62,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -96,63 +96,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common.win32": { @@ -185,7 +185,7 @@ "FollyWin32": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon.win32": "[1.0.0, )", "ReactNative.V8Jsi.Windows": "[0.71.8, )", "boost": "[1.84.0, )" @@ -218,4 +218,4 @@ } } } -} +} \ No newline at end of file diff --git a/vnext/Desktop.UnitTests/packages.lock.json b/vnext/Desktop.UnitTests/packages.lock.json index 18e7cb9edb1..37f810b96b1 100644 --- a/vnext/Desktop.UnitTests/packages.lock.json +++ b/vnext/Desktop.UnitTests/packages.lock.json @@ -55,33 +55,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -89,63 +89,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "ReactNative.V8Jsi.Windows": { @@ -183,7 +183,7 @@ "FollyWin32": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon.win32": "[1.0.0, )", "ReactNative.V8Jsi.Windows": "[0.71.8, )", "boost": "[1.84.0, )" @@ -198,4 +198,4 @@ } } } -} +} \ No newline at end of file diff --git a/vnext/Desktop/packages.lock.json b/vnext/Desktop/packages.lock.json index c923a5d7dc6..2f370e25523 100644 --- a/vnext/Desktop/packages.lock.json +++ b/vnext/Desktop/packages.lock.json @@ -32,19 +32,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "ReactNative.V8Jsi.Windows": { @@ -80,17 +80,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -98,63 +98,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common.win32": { @@ -195,11 +195,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -211,11 +211,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -227,11 +227,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -243,13 +243,13 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } } -} +} \ No newline at end of file diff --git a/vnext/Mso.UnitTests/packages.newarch.lock.json b/vnext/Mso.UnitTests/packages.newarch.lock.json index 0d89dcb297e..15daeef8049 100644 --- a/vnext/Mso.UnitTests/packages.newarch.lock.json +++ b/vnext/Mso.UnitTests/packages.newarch.lock.json @@ -4,9 +4,9 @@ "native,Version=v0.0": { "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.Windows.CppWinRT": { "type": "Direct", @@ -16,19 +16,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Web.WebView2": { @@ -48,17 +48,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -66,63 +66,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -134,11 +134,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -150,11 +150,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -166,11 +166,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -182,11 +182,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } diff --git a/vnext/ReactCommon.UnitTests/packages.lock.json b/vnext/ReactCommon.UnitTests/packages.lock.json index fc40d878022..1556c09e5c3 100644 --- a/vnext/ReactCommon.UnitTests/packages.lock.json +++ b/vnext/ReactCommon.UnitTests/packages.lock.json @@ -10,9 +10,9 @@ }, "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-static": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "Yk78bz9F/6wDjOiM3ZeyErqsHsAbHYLZ2ptB1DdOriMPZATsDy3nMridgbc4+IrtEo7+eAUVdyMkWYNyf/X34g==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "8ERSAJiqTgn9EEwGqWR0Sj9Pt7Cm9eYsqnjRDTj/ihopPmZsOsrLnwgGMLe9VV9+uDoKeJ1Y46WJ9zAizSkQ8g==" }, "ReactNative.V8Jsi.Windows": { "type": "Direct", @@ -61,33 +61,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -95,63 +95,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common.win32": { @@ -184,7 +184,7 @@ "FollyWin32": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon.win32": "[1.0.0, )", "ReactNative.V8Jsi.Windows": "[0.71.8, )", "boost": "[1.84.0, )" @@ -206,11 +206,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -222,11 +222,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -238,11 +238,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -254,13 +254,13 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } } -} +} \ No newline at end of file From 756e8a2c4a267614afa320576cfbe133b381a950 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Mon, 8 Jun 2026 19:32:19 -0700 Subject: [PATCH 15/38] Fix DynamicReaderWriterTests --- vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp b/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp index 4f5b68e44f7..a7f5427779e 100644 --- a/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp +++ b/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp @@ -166,10 +166,10 @@ TEST_CLASS (DynamicReaderWriterTests) { } private: - template + template void TestScalar( - void(IJSValueWriter::*writerMethod)(TWriterValue) const, - TReaderValue (IJSValueReader::*readerMethod)() const, + WriterMethod writerMethod, + ReaderMethod readerMethod, JSValueType runtimeType, TWriterValue value) { IJSValueWriter writer = Microsoft::Internal::TestController::CreateDynamicWriter(); From 179f2fe281e8e4d6eeee1ab397fd0cfc84d8c676 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Mon, 8 Jun 2026 19:44:50 -0700 Subject: [PATCH 16/38] Fix HermesSamplingProfiler for MSVC 14.5 --- vnext/Shared/Hermes/HermesSamplingProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnext/Shared/Hermes/HermesSamplingProfiler.cpp b/vnext/Shared/Hermes/HermesSamplingProfiler.cpp index d2fddb83334..7f6e0c7c317 100644 --- a/vnext/Shared/Hermes/HermesSamplingProfiler.cpp +++ b/vnext/Shared/Hermes/HermesSamplingProfiler.cpp @@ -32,9 +32,9 @@ auto resume_in_dispatcher(const IReactDispatcher &dispatcher) noexcept { void await_resume() const noexcept {} - void await_suspend(std::experimental::coroutine_handle<> resume) noexcept { + void await_suspend(std::coroutine_handle<> resume) noexcept { callback_ = [context = resume.address()]() noexcept { - std::experimental::coroutine_handle<>::from_address(context)(); + std::coroutine_handle<>::from_address(context)(); }; dispatcher_.Post(std::move(callback_)); } From 9b868563d813d49dcfb7afd7ae39d5d96b097cfe Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Mon, 8 Jun 2026 19:58:58 -0700 Subject: [PATCH 17/38] Update package locks --- .../packages.lock.json | 91 +++++------ .../packages.lock.json | 2 +- .../packages.newarch.lock.json | 126 ++++++++-------- .../packages.newarch.lock.json | 142 +++++++++--------- 4 files changed, 181 insertions(+), 180 deletions(-) diff --git a/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json b/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json index b35b05c6e78..e3bff2cee64 100644 --- a/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json +++ b/vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json @@ -10,19 +10,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "boost": { @@ -71,17 +71,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -89,63 +89,64 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "System.Numerics.Tensors": "9.0.0" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "System.Numerics.Tensors": { @@ -176,7 +177,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -190,4 +191,4 @@ } } } -} +} \ No newline at end of file diff --git a/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json b/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json index 974db2ebb33..63fd769e7f2 100644 --- a/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json +++ b/vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json @@ -20,4 +20,4 @@ "native,Version=v0.0/win-x64": {}, "native,Version=v0.0/win-x86": {} } -} +} \ No newline at end of file diff --git a/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.lock.json b/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.lock.json index fb8e2581f47..73af05b7906 100644 --- a/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.lock.json +++ b/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.lock.json @@ -10,9 +10,9 @@ }, "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.VCRTForwarders.140": { "type": "Direct", @@ -28,19 +28,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Build.Tasks.Git": { @@ -84,17 +84,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -102,63 +102,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -184,7 +184,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -211,11 +211,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -233,11 +233,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -255,11 +255,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -277,11 +277,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } diff --git a/vnext/Microsoft.ReactNative/packages.newarch.lock.json b/vnext/Microsoft.ReactNative/packages.newarch.lock.json index a90c2984103..4fb13580633 100644 --- a/vnext/Microsoft.ReactNative/packages.newarch.lock.json +++ b/vnext/Microsoft.ReactNative/packages.newarch.lock.json @@ -32,19 +32,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Build.Tasks.Git": { @@ -74,17 +74,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -92,63 +92,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -183,11 +183,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -199,11 +199,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -215,11 +215,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -231,11 +231,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -247,11 +247,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -263,11 +263,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -279,11 +279,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } From 454c113229b3031b8068b3ee4e9d56121ed81622 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Mon, 8 Jun 2026 20:24:16 -0700 Subject: [PATCH 18/38] Use WinRT coroutine types for UwpScriptStore --- vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp | 4 ++-- vnext/Microsoft.ReactNative/Utils/UwpScriptStore.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp b/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp index 59bb0c805db..03e88dbb0dc 100644 --- a/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp +++ b/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include "Unicode.h" namespace winrt { @@ -43,7 +42,8 @@ facebook::jsi::ScriptVersion_t UwpScriptStore::getScriptVersion(const std::strin return version; } -std::future UwpScriptStore::getScriptVersionAsync(const std::string &bundleUri) { +winrt::Windows::Foundation::IAsyncOperation +UwpScriptStore::getScriptVersionAsync(const std::string &bundleUri) { co_await winrt::resume_background(); const winrt::hstring fileUrl(Microsoft::Common::Unicode::Utf8ToUtf16("ms-appx:///Bundle/" + bundleUri + ".bundle")); diff --git a/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.h b/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.h index 6b77db3f9e7..78b1ff112ae 100644 --- a/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.h +++ b/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.h @@ -1,6 +1,6 @@ #pragma once #include -#include +#include namespace Microsoft::ReactNative { @@ -16,7 +16,8 @@ class UwpScriptStore : public facebook::jsi::ScriptStore { static facebook::jsi::ScriptVersion_t GetFileVersion(const std::wstring &filePath); private: - std::future getScriptVersionAsync(const std::string &bundleUri); + winrt::Windows::Foundation::IAsyncOperation getScriptVersionAsync( + const std::string &bundleUri); }; } // namespace Microsoft::ReactNative From a4ddb168732015981cecebd19b795b281595e5a4 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 02:08:02 -0700 Subject: [PATCH 19/38] clang format --- vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp | 6 +----- vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp | 4 ++-- vnext/Shared/Hermes/HermesSamplingProfiler.cpp | 4 +--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp b/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp index a7f5427779e..a228d77eb56 100644 --- a/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp +++ b/vnext/Desktop.ABITests/DynamicReaderWriterTests.cpp @@ -167,11 +167,7 @@ TEST_CLASS (DynamicReaderWriterTests) { private: template - void TestScalar( - WriterMethod writerMethod, - ReaderMethod readerMethod, - JSValueType runtimeType, - TWriterValue value) { + void TestScalar(WriterMethod writerMethod, ReaderMethod readerMethod, JSValueType runtimeType, TWriterValue value) { IJSValueWriter writer = Microsoft::Internal::TestController::CreateDynamicWriter(); (writer.*writerMethod)(value); diff --git a/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp b/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp index 03e88dbb0dc..87e21081a06 100644 --- a/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp +++ b/vnext/Microsoft.ReactNative/Utils/UwpScriptStore.cpp @@ -42,8 +42,8 @@ facebook::jsi::ScriptVersion_t UwpScriptStore::getScriptVersion(const std::strin return version; } -winrt::Windows::Foundation::IAsyncOperation -UwpScriptStore::getScriptVersionAsync(const std::string &bundleUri) { +winrt::Windows::Foundation::IAsyncOperation UwpScriptStore::getScriptVersionAsync( + const std::string &bundleUri) { co_await winrt::resume_background(); const winrt::hstring fileUrl(Microsoft::Common::Unicode::Utf8ToUtf16("ms-appx:///Bundle/" + bundleUri + ".bundle")); diff --git a/vnext/Shared/Hermes/HermesSamplingProfiler.cpp b/vnext/Shared/Hermes/HermesSamplingProfiler.cpp index 7f6e0c7c317..38e471ef990 100644 --- a/vnext/Shared/Hermes/HermesSamplingProfiler.cpp +++ b/vnext/Shared/Hermes/HermesSamplingProfiler.cpp @@ -33,9 +33,7 @@ auto resume_in_dispatcher(const IReactDispatcher &dispatcher) noexcept { void await_resume() const noexcept {} void await_suspend(std::coroutine_handle<> resume) noexcept { - callback_ = [context = resume.address()]() noexcept { - std::coroutine_handle<>::from_address(context)(); - }; + callback_ = [context = resume.address()]() noexcept { std::coroutine_handle<>::from_address(context)(); }; dispatcher_.Post(std::move(callback_)); } From e9bfa258f9b401b3d5387abbba9c9e6eafa2c0bf Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 02:18:04 -0700 Subject: [PATCH 20/38] Init JsValueRef --- vnext/Desktop.UnitTests/StringConversionTest_Desktop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnext/Desktop.UnitTests/StringConversionTest_Desktop.cpp b/vnext/Desktop.UnitTests/StringConversionTest_Desktop.cpp index 7081cbb3e36..9adb45a66a9 100644 --- a/vnext/Desktop.UnitTests/StringConversionTest_Desktop.cpp +++ b/vnext/Desktop.UnitTests/StringConversionTest_Desktop.cpp @@ -37,7 +37,7 @@ TEST_CLASS (StringConversionTest_Desktop) { } TEST_METHOD(StringConversionTest_WIN32Test) { - JsValueRef value; + JsValueRef value{}; string str; for (size_t i = 0; i < g_utf8TestStrings.size(); i++) { JsPointerToStringUtf8(g_utf8TestStrings[i].c_str(), g_utf8TestStrings[i].length(), &value); From 240aff43f9c771a1b1a8767be8a82efefe9463b4 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 02:23:25 -0700 Subject: [PATCH 21/38] Fix rnw-deps --- vnext/Scripts/rnw-dependencies.ps1 | 1166 ++++++++++++++-------------- 1 file changed, 574 insertions(+), 592 deletions(-) diff --git a/vnext/Scripts/rnw-dependencies.ps1 b/vnext/Scripts/rnw-dependencies.ps1 index 99fb8084310..6ec18cf8140 100644 --- a/vnext/Scripts/rnw-dependencies.ps1 +++ b/vnext/Scripts/rnw-dependencies.ps1 @@ -1,43 +1,43 @@ # Troubleshoot RNW dependencies param( - [switch]$Install = $false, - [switch]$NoPrompt = $false, - [switch]$Clone = $false, - [switch]$ListChecks = $false, - [string]$Check = [CheckId]::All, - - [Parameter(ValueFromRemainingArguments)] - [ValidateSet('appDev', 'rnwDev', 'buildLab', 'vs2026', 'clone')] - [String[]]$Tags = @('appDev'), - [switch]$Enterprise = $false + [switch]$Install = $false, + [switch]$NoPrompt = $false, + [switch]$Clone = $false, + [switch]$ListChecks = $false, + [string]$Check = [CheckId]::All, + + [Parameter(ValueFromRemainingArguments)] + [ValidateSet('appDev', 'rnwDev', 'buildLab', 'vs2026', 'clone')] + [String[]]$Tags = @('appDev'), + [switch]$Enterprise = $false ) $ShellInvocation = ($PSCmdlet.MyInvocation.BoundParameters -ne $null); $Verbose = $false if ($ShellInvocation) { - $Verbose = $PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent; + $Verbose = $PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent; } enum CheckId { - All - AzureFunctions - DeveloperMode - DotNetCore - FreeSpace - git - InstalledMemory - LongPath - MSBuildLogViewer - Node - RNWClone - VSUWP - WinAppDriver - WindowsADK - WindowsVersion - Yarn - CppWinRTVSIX + All + AzureFunctions + DeveloperMode + DotNetCore + FreeSpace + git + InstalledMemory + LongPath + MSBuildLogViewer + Node + RNWClone + VSUWP + WinAppDriver + WindowsADK + WindowsVersion + Yarn + CppWinRTVSIX } # CODESYNC \packages\@react-native-windows\cli\src\runWindows\runWindows.ts @@ -49,17 +49,17 @@ foreach ($tag in $Tags) { $tagsToInclude.Add($tag) | Out-null } # Convert legacy flags to tasks: if ($Clone) { - $tagsToInclude.Add('clone') | Out-null; + $tagsToInclude.Add('clone') | Out-null; } # Handle expansion of tasks if ($tagsToInclude.Contains('buildLab')) { - # The build lab needs the same steps as a react-native dev - $tagsToInclude.Add('rnwDev') | Out-null; + # The build lab needs the same steps as a react-native dev + $tagsToInclude.Add('rnwDev') | Out-null; } if ($tagsToInclude.Contains('rnwDev')) { - # A react-native dev needs the same as the default - $tagsToInclude.Add('appDev') | Out-null; + # A react-native dev needs the same as the default + $tagsToInclude.Add('appDev') | Out-null; } # Detect processor architecture to select appropriate VC Tools component @@ -68,37 +68,42 @@ $ProcessorArchitecture = $Env:Processor_Architecture # Getting $Env:Processor_Architecture on arm64 machines will return x86. So check if the environment # variable "ProgramFiles(Arm)" is also set, if it is we know the actual processor architecture is arm64. # The value will also be x86 on amd64 machines when running the x86 version of PowerShell. -if ($ProcessorArchitecture -eq "x86") { - if ($null -ne ${Env:ProgramFiles(Arm)}) { - $ProcessorArchitecture = "arm64" - } - elseif ($null -ne ${Env:ProgramFiles(x86)}) { - $ProcessorArchitecture = "amd64" - } +if ($ProcessorArchitecture -eq "x86") +{ + if ($null -ne ${Env:ProgramFiles(Arm)}) + { + $ProcessorArchitecture = "arm64" + } + elseif ($null -ne ${Env:ProgramFiles(x86)}) + { + $ProcessorArchitecture = "amd64" + } } # Select the appropriate VC Tools component based on processor architecture -if ($ProcessorArchitecture -eq "arm64") { - $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.ARM64' +if ($ProcessorArchitecture -eq "arm64") +{ + $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.ARM64' } -else { - $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64' +else +{ + $vcToolsComponent = 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64' } $vsComponents = @('Microsoft.Component.MSBuild', - $vcToolsComponent, - 'Microsoft.VisualStudio.ComponentGroup.UWP.Support', - 'Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core', - 'Microsoft.VisualStudio.Component.Windows11SDK.22621'); + $vcToolsComponent, + 'Microsoft.VisualStudio.ComponentGroup.UWP.Support', + 'Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core', + 'Microsoft.VisualStudio.Component.Windows11SDK.22621'); # UWP.VC is not needed to build the projects with msbuild, but the VS IDE requires it. if (!($tagsToInclude.Contains('buildLab'))) { - $vsComponents += 'Microsoft.VisualStudio.ComponentGroup.UWP.VC'; + $vsComponents += 'Microsoft.VisualStudio.ComponentGroup.UWP.VC'; } $vsWorkloads = @('Microsoft.VisualStudio.Workload.ManagedDesktop', - 'Microsoft.VisualStudio.Workload.NativeDesktop', - 'Microsoft.VisualStudio.Workload.Universal'); + 'Microsoft.VisualStudio.Workload.NativeDesktop', + 'Microsoft.VisualStudio.Workload.Universal'); $vsAll = ($vsComponents + $vsWorkloads); @@ -116,642 +121,619 @@ $wingetDotNetVer = "10"; $v = [System.Environment]::OSVersion.Version; if ($env:Agent_BuildDirectory) { - $drive = (Resolve-Path $env:Agent_BuildDirectory).Drive; -} -else { - if ($PSCommandPath) { - $drive = (Resolve-Path $PSCommandPath).Drive; - } - else { - $drive = (Resolve-Path $env:SystemDrive).Drive; - } + $drive = (Resolve-Path $env:Agent_BuildDirectory).Drive; +} else { + if ($PSCommandPath) { + $drive = (Resolve-Path $PSCommandPath).Drive; + } else { + $drive = (Resolve-Path $env:SystemDrive).Drive; + } } function Get-VSWhere { - Write-Verbose "Looking for Visual Studio Installer..."; - $vsWhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"; - if (!(Test-Path $vsWhere)) { - Write-Verbose "Visual Studio Installer not found."; - return $null; - } + Write-Verbose "Looking for Visual Studio Installer..."; + $vsWhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"; + if (!(Test-Path $vsWhere)) { + Write-Verbose "Visual Studio Installer not found."; + return $null; + } - Write-Verbose "Visual Studio Installer found."; - return $vsWhere; + Write-Verbose "Visual Studio Installer found."; + return $vsWhere; } function Get-VSPathPropertyForEachInstall { - param( - [string]$VsWhere, - [string]$PathProperty, - [string[]]$ExtraArgs = @() - ) + param( + [string]$VsWhere, + [string]$PathProperty, + [string[]]$ExtraArgs =@() + ) - [String[]]$output = & $VsWhere -version $vsver -property $PathProperty $ExtraArgs; - if ($output -ne $null) { - [String[]]$paths = ($output | Where-Object { (Test-Path $_) }); - return $paths; - } + [String[]]$output = & $VsWhere -version $vsver -property $PathProperty $ExtraArgs; + if ($output -ne $null) { + [String[]]$paths = ($output | Where-Object { (Test-Path $_) }); + return $paths; + } - return $null; + return $null; } function CheckVS-WithVSWhere { - param( - [string]$VsWhere, - [switch]$CheckPreRelease = $false - ) + param( + [string]$VsWhere, + [switch]$CheckPreRelease = $false + ) - [string[]] $requireArgs = @("-requires"); - $requireArgs += $vsAll; + [string[]] $requireArgs = @("-requires"); + $requireArgs += $vsAll; - [string[]] $prereleaseArgs = @(); - if ($CheckPreRelease) { - $prereleaseArgs += "-prerelease"; - } + [string[]] $prereleaseArgs = @(); + if ($CheckPreRelease) { + $prereleaseArgs += "-prerelease"; + } - # Checking for VS + all required components - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs ($requireArgs + $prereleaseArgs); - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found, with required components, at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - return $true; - } + # Checking for VS + all required components + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs ($requireArgs + $prereleaseArgs); + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found, with required components, at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + return $true; + } - # Check for VS without required components - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs $prereleaseArgs; - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found, but without required components, at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - return $false; - } + # Check for VS without required components + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs $prereleaseArgs; + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found, but without required components, at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + return $false; + } - Write-Verbose "No Visual Studio installs found."; + Write-Verbose "No Visual Studio installs found."; - return $false; + return $false; } function CheckVS { - $vsWhere = Get-VSWhere; - if ($vsWhere -eq $null) { - return $false; - } + $vsWhere = Get-VSWhere; + if ($vsWhere -eq $null) { + return $false; + } - Write-Verbose "Looking for Visual Studio install(s)..."; - [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere; + Write-Verbose "Looking for Visual Studio install(s)..."; + [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere; - if (!$result) { - Write-Verbose "Retrying, but also including pre-releases versions..."; - [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere -CheckPreRelease $true; - } + if (!$result) { + Write-Verbose "Retrying, but also including pre-releases versions..."; + [bool]$result = CheckVS-WithVSWhere -VsWhere $vsWhere -CheckPreRelease $true; + } - return $result; + return $result; } function GetVSChannelAndProduct { - param( - [string]$VsWhere - ) + param( + [string]$VsWhere + ) - if ($VsWhere) { - $channelId = & $VsWhere -version $vsver -property channelId; - $productId = & $VsWhere -version $vsver -property productId; + if ($VsWhere) { + $channelId = & $VsWhere -version $vsver -property channelId; + $productId = & $VsWhere -version $vsver -property productId; - # Channel/product not found, check one more time for pre-release - if (($channelId -eq $null) -or ($productId -eq $null)) { - $channelId = & $VsWhere -version $vsver -property channelId -prerelease; - $productId = & $VsWhere -version $vsver -property productId -prerelease; - } + # Channel/product not found, check one more time for pre-release + if (($channelId -eq $null) -or ($productId -eq $null)) { + $channelId = & $VsWhere -version $vsver -property channelId -prerelease; + $productId = & $VsWhere -version $vsver -property productId -prerelease; + } - return $channelId, $productId; - } + return $channelId, $productId; + } - return $null, $null; + return $null, $null; } function InstallVS { - $vsWhere = Get-VSWhere; + $vsWhere = Get-VSWhere; - $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere + $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere - if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { - # No VSWhere / VS_Installer, try to install + if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { + # No VSWhere / VS_Installer, try to install - if ($Enterprise) { - # The CI machines need the enterprise version of VS as that is what is hardcoded in all the scripts - WinGetInstall Microsoft.VisualStudio.Enterprise - } - else { - WinGetInstall Microsoft.VisualStudio.Community - } + if ($Enterprise) { + # The CI machines need the enterprise version of VS as that is what is hardcoded in all the scripts + WinGetInstall Microsoft.VisualStudio.Enterprise + } else { + WinGetInstall Microsoft.VisualStudio.Community + } - $vsWhere = Get-VSWhere; + $vsWhere = Get-VSWhere; - $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere - } + $channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere + } - # Final check before attempting install - if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { - throw "Unable to find or install a compatible version of Visual Studio >= ($vsver)."; - } + # Final check before attempting install + if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) { + throw "Unable to find or install a compatible version of Visual Studio >= ($vsver)."; + } - $vsInstaller = Join-Path -Path (Split-Path -Parent $vsWhere) -ChildPath "vs_installer.exe"; + $vsInstaller = Join-Path -Path (Split-Path -Parent $vsWhere) -ChildPath "vs_installer.exe"; - $addWorkloads = $vsAll | % { '--add', $_ }; - $p = Start-Process -PassThru -Wait -FilePath $vsInstaller -ArgumentList ("modify --channelId $channelId --productId $productId $addWorkloads --quiet --includeRecommended" -split ' '); - return $p.ExitCode; + $addWorkloads = $vsAll | % { '--add', $_ }; + $p = Start-Process -PassThru -Wait -FilePath $vsInstaller -ArgumentList ("modify --channelId $channelId --productId $productId $addWorkloads --quiet --includeRecommended" -split ' '); + return $p.ExitCode; } function CheckNode { - try { - $nodeVersion = (Get-Command node -ErrorAction Stop).Version; - Write-Verbose "Node version found: $nodeVersion"; - $major = $nodeVersion.Major; - $minor = $nodeVersion.Minor; - return ($major -gt 22) -or (($major -eq 22) -and ($minor -ge 14)); - } - catch { Write-Debug $_ } + try { + $nodeVersion = (Get-Command node -ErrorAction Stop).Version; + Write-Verbose "Node version found: $nodeVersion"; + $major = $nodeVersion.Major; + $minor = $nodeVersion.Minor; + return ($major -gt 22) -or (($major -eq 22) -and ($minor -ge 14)); + } catch { Write-Debug $_ } - Write-Verbose "Node not found."; - return $false; + Write-Verbose "Node not found."; + return $false; } function CheckYarn { - try { - $yarn = (Get-Command yarn -ErrorAction Stop); - if ($yarn -ne $null) { - $yarnVersion = & yarn -v; - Write-Verbose "Yarn version found: $yarnVersion"; - return $true; - } - } - catch { Write-Debug $_ } + try { + $yarn = (Get-Command yarn -ErrorAction Stop); + if ($yarn -ne $null) { + $yarnVersion = & yarn -v; + Write-Verbose "Yarn version found: $yarnVersion"; + return $true; + } + } catch { Write-Debug $_ } - Write-Verbose "Yarn not found."; - return $false; + Write-Verbose "Yarn not found."; + return $false; } function CheckWinAppDriver { - $WADPath = "${env:ProgramFiles(x86)}\Windows Application Driver\WinAppDriver.exe"; - if (Test-Path $WADPath) { - $version = [Version]([System.Diagnostics.FileVersionInfo]::GetVersionInfo($WADPath).FileVersion); - Write-Verbose "WinAppDriver version found: $version"; - return $version.CompareTo([Version]"1.2.1") -ge 0; - } + $WADPath = "${env:ProgramFiles(x86)}\Windows Application Driver\WinAppDriver.exe"; + if (Test-Path $WADPath) { + $version = [Version]([System.Diagnostics.FileVersionInfo]::GetVersionInfo($WADPath).FileVersion); + Write-Verbose "WinAppDriver version found: $version"; + return $version.CompareTo([Version]"1.2.1") -ge 0; + } - Write-Verbose "WinAppDriver not found."; - return $false; + Write-Verbose "WinAppDriver not found."; + return $false; } function EnableDevmode { - $RegistryKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"; + $RegistryKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"; - if (-not(Test-Path -Path $RegistryKeyPath)) { - New-Item -Path $RegistryKeyPath -ItemType Directory -Force; - } + if (-not(Test-Path -Path $RegistryKeyPath)) { + New-Item -Path $RegistryKeyPath -ItemType Directory -Force; + } - $value = get-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -ErrorAction SilentlyContinue; - if (($value -eq $null) -or ($value.AllowDevelopmentWithoutDevLicense -ne 1)) { - Set-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -Value 1 -ErrorAction Stop; - } + $value = get-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -ErrorAction SilentlyContinue; + if (($value -eq $null) -or ($value.AllowDevelopmentWithoutDevLicense -ne 1)) { + Set-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -Value 1 -ErrorAction Stop; + } } function CheckCppWinRT_VSIX { - $vsWhere = Get-VSWhere; - if ($vsWhere -eq $null) { - return $false; - } - - [string]$vsPath = $null; - - Write-Verbose "Looking for Visual Studio install(s)..." - [String[]]$vsPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'installationPath'; - if ($vsPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $vsPaths | ForEach { Write-Verbose " $_" } - $vsPath = $vsPaths[0]; - } - - if ($vsPath -eq $null) { - Write-Verbose "Retrying, but also including pre-releases versions..." - - [String[]]$vsPaths = Get-VSPropertyForEachInstall -VsWhere $VsWhere -Property 'installationPath' -ExtraArgs @('-prerelease'); - if ($vsPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $vsPaths | ForEach { Write-Verbose " $_" } - $vsPath = $vsPaths[0]; - } - } - - if ($vsPath -ne $null) { - $natvis = Get-ChildItem (Join-Path -Path $vsPath -ChildPath "Common7\IDE\Extensions\cppwinrt.natvis") -Recurse; - if ($natvis -ne $null) { - Write-Verbose "Found CppWinRT VISX at:"; - Write-Verbose " $(Split-Path $natvis)"; - return $true; - } - } - - Write-Verbose "CppWinRT VISX not found."; - return $false; + $vsWhere = Get-VSWhere; + if ($vsWhere -eq $null) { + return $false; + } + + [string]$vsPath = $null; + + Write-Verbose "Looking for Visual Studio install(s)..." + [String[]]$vsPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'installationPath'; + if ($vsPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $vsPaths | ForEach { Write-Verbose " $_" } + $vsPath = $vsPaths[0]; + } + + if ($vsPath -eq $null) { + Write-Verbose "Retrying, but also including pre-releases versions..." + + [String[]]$vsPaths = Get-VSPropertyForEachInstall -VsWhere $VsWhere -Property 'installationPath' -ExtraArgs @('-prerelease'); + if ($vsPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $vsPaths | ForEach { Write-Verbose " $_" } + $vsPath = $vsPaths[0]; + } + } + + if ($vsPath -ne $null) { + $natvis = Get-ChildItem (Join-Path -Path $vsPath -ChildPath "Common7\IDE\Extensions\cppwinrt.natvis") -Recurse; + if ($natvis -ne $null) { + Write-Verbose "Found CppWinRT VISX at:"; + Write-Verbose " $(Split-Path $natvis)"; + return $true; + } + } + + Write-Verbose "CppWinRT VISX not found."; + return $false; } function InstallCppWinRT_VSIX { - $url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/CppWinRTTeam/vsextensions/cppwinrt101804264/2.0.210304.5/vspackage"; - Write-Verbose "Downloading CppWinRT VSIX from $url"; - Invoke-WebRequest -UseBasicParsing $url -OutFile $env:TEMP\Microsoft.Windows.CppWinRT.vsix; - - $vsWhere = Get-VSWhere; - if ($vsWhere -eq $null) { - return; - } - - [string]$productPath = $null; - - Write-Verbose "Looking for Visual Studio install(s)..."; - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath'; - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - $productPath = $productPaths[0]; - } - - if ($productPath -eq $null) { - Write-Verbose "Retrying, but also including pre-releases versions..."; - [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs @('-prerelease'); - if ($productPaths.Count -gt 0) { - Write-Verbose "Visual Studio install(s) found at:"; - $productPaths | ForEach { Write-Verbose " $_" }; - $productPath = $productPaths[0]; - } - } - - $VSIXInstaller_exe = Join-Path (Split-Path $productPath) "VSIXInstaller.exe"; - $process = Start-Process $VSIXInstaller_exe -PassThru -Wait -ArgumentList "/a /q $env:TEMP\Microsoft.Windows.CppWinRT.vsix"; - $process.WaitForExit(); + $url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/CppWinRTTeam/vsextensions/cppwinrt101804264/2.0.210304.5/vspackage"; + Write-Verbose "Downloading CppWinRT VSIX from $url"; + Invoke-WebRequest -UseBasicParsing $url -OutFile $env:TEMP\Microsoft.Windows.CppWinRT.vsix; + + $vsWhere = Get-VSWhere; + if ($vsWhere -eq $null) { + return; + } + + [string]$productPath = $null; + + Write-Verbose "Looking for Visual Studio install(s)..."; + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath'; + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + $productPath = $productPaths[0]; + } + + if ($productPath -eq $null) { + Write-Verbose "Retrying, but also including pre-releases versions..."; + [String[]]$productPaths = Get-VSPathPropertyForEachInstall -VsWhere $VsWhere -PathProperty 'productPath' -ExtraArgs @('-prerelease'); + if ($productPaths.Count -gt 0) { + Write-Verbose "Visual Studio install(s) found at:"; + $productPaths | ForEach { Write-Verbose " $_" }; + $productPath = $productPaths[0]; + } + } + + $VSIXInstaller_exe = Join-Path (Split-Path $productPath) "VSIXInstaller.exe"; + $process = Start-Process $VSIXInstaller_exe -PassThru -Wait -ArgumentList "/a /q $env:TEMP\Microsoft.Windows.CppWinRT.vsix"; + $process.WaitForExit(); } function CheckDotNetCore { - try { - $dotnet = (Get-Command dotnet.exe -ErrorAction Stop); - if ($dotnet -ne $null) { - Write-Verbose ".NET found, searching for SDKs..."; - [string[]]$sdks = & dotnet --list-sdks; - if ($sdks -ne $null) { - Write-Verbose ".NET SDKs found:"; - $sdks | ForEach { Write-Verbose " $_" }; - $validSDKs = $sdks | Where-Object { $_ -like "$dotnetver.*" }; - return ($validSDKs -ne $null) -and ($validSDKs.Length -ge 1); - } - } - } - catch { Write-Debug $_ } - - Write-Verbose ".NET not found."; - return $false; + try { + $dotnet = (Get-Command dotnet.exe -ErrorAction Stop); + if ($dotnet -ne $null) { + Write-Verbose ".NET found, searching for SDKs..."; + [string[]]$sdks = & dotnet --list-sdks; + if ($sdks -ne $null) { + Write-Verbose ".NET SDKs found:"; + $sdks | ForEach { Write-Verbose " $_" }; + $validSDKs = $sdks | Where-Object { $_ -like "$dotnetver.*"}; + return ($validSDKs -ne $null) -and ($validSDKs.Length -ge 1); + } + } + } catch { Write-Debug $_ } + + Write-Verbose ".NET not found."; + return $false; } $requiredFreeSpaceGB = 15; $requirements = @( - @{ - Id = [CheckId]::FreeSpace; - Name = "Free space on current drive > $requiredFreeSpaceGB GB"; - Tags = @('appDev'); - Valid = { $drive.Free / 1GB -gt $requiredFreeSpaceGB; } - HasVerboseOutput = $true; - Optional = $true; # this requirement is fuzzy - }, - @{ - Id = [CheckId]::InstalledMemory; - Name = "Installed memory >= 16 GB"; - Tags = @('appDev'); - Valid = { (Get-CimInstance -ClassName win32_computersystem).TotalPhysicalMemory -gt 15GB; } - HasVerboseOutput = $true; - Optional = $true; - }, - @{ - Id = [CheckId]::WindowsVersion; - Name = 'Windows version >= 10.0.17763.0'; - Tags = @('appDev'); - Valid = { ($v.Major -eq 10 -and $v.Minor -eq 0 -and $v.Build -ge 16299); } - }, - @{ - Id = [CheckId]::DeveloperMode; - Name = 'Developer mode is on'; - Tags = @('appDev'); - Valid = { try { (Get-WindowsDeveloperLicense).IsValid } catch { $false }; } - Install = { EnableDevMode }; - }, - @{ - Id = [CheckId]::LongPath; - Name = 'Long path support is enabled'; - Tags = @('appDev'); - Valid = { try { (Get-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled).LongPathsEnabled -eq 1 } catch { $false }; } - Install = { Set-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled -Value 1 -Type DWord; }; - }, - @{ - Id = [CheckId]::git; - Name = 'Git'; - Tags = @('rnwDev'); - Valid = { try { (Get-Command git.exe -ErrorAction Stop) -ne $null } catch { $false }; } - Install = { WinGetInstall Microsoft.Git }; - }, - @{ - Id = [CheckId]::VSUWP; - Name = "Visual Studio 2026 (>= $vsver) & req. components"; - Tags = @('appDev', 'vs2026'); - Valid = { CheckVS; } - Install = { InstallVS }; - HasVerboseOutput = $true; - }, - @{ - Id = [CheckId]::Node; - Name = 'Node.js (LTS, >= 22.0)'; - Tags = @('appDev'); - Valid = { CheckNode; } - Install = { WinGetInstall OpenJS.NodeJS.LTS "22.14.0" }; - HasVerboseOutput = $true; - }, - @{ - Id = [CheckId]::Yarn; - Name = 'Yarn'; - Tags = @('appDev'); - Valid = { CheckYarn } - Install = { WinGetInstall Yarn.Yarn }; - HasVerboseOutput = $true; - }, - @{ - Id = [CheckId]::WinAppDriver; - Name = 'WinAppDriver (>= 1.2.1)'; - Tags = @('rnwDev'); - Valid = { CheckWinAppDriver; } - Install = { - $ProgressPreference = 'Ignore'; - $url = "https://github.com/microsoft/WinAppDriver/releases/download/v1.2.1/WindowsApplicationDriver_1.2.1.msi"; - $downloadPath = "$env:TEMP\WindowsApplicationDriver.msi" - Write-Verbose "Downloading WinAppDriver from $url"; - Invoke-WebRequest -UseBasicParsing $url -OutFile $downloadPath - - # SDL Compliance: Verify signature (Work Item 58386093) - $signature = Get-AuthenticodeSignature $downloadPath - if ($signature.Status -ne "Valid") { - Remove-Item $downloadPath -ErrorAction SilentlyContinue - throw "WinAppDriver signature verification failed" - } - if ($signature.SignerCertificate.Subject -notlike "*Microsoft*") { - Remove-Item $downloadPath -ErrorAction SilentlyContinue - throw "WinAppDriver not signed by Microsoft" - } - - & $downloadPath /q - Remove-Item $downloadPath -ErrorAction SilentlyContinue - }; - HasVerboseOutput = $true; - Optional = $true; - }, - @{ - Id = [CheckId]::MSBuildLogViewer; - Name = "MSBuild Structured Log Viewer"; - Tags = @('rnwDev'); - Valid = { ( cmd "/c assoc .binlog 2>nul" ) -ne $null; } - Install = { - WinGetInstall KirillOsenkov.MSBuildStructuredLogViewer; - $slv = gci ${env:LocalAppData}\MSBuildStructuredLogViewer\StructuredLogViewer.exe -Recurse | select FullName | Sort-Object -Property FullName -Descending | Select-Object -First 1 - cmd /c "assoc .binlog=MSBuildLog >nul"; - cmd /c "ftype MSBuildLog=$($slv.FullName) %1 >nul"; - }; - Optional = $true; - }, - @{ - # Install the Windows ADK (Assessment and Deployment Kit) to install the wpt (Windows Performance Toolkit) so we can use wpr (Windows Performance Recorder) for performance analysis - Id = [CheckId]::WindowsADK; - Name = 'Windows ADK'; - Tags = @('buildLab'); - Valid = { (Test-Path "${env:ProgramFiles(x86)}\Windows Kits\10\Windows Performance Toolkit\wpr.exe"); }; - Install = { WinGetInstall Microsoft.WindowsADK }; - Optional = $true; - }, - @{ - Id = [CheckId]::RNWClone; - Name = "React-Native-Windows clone"; - Tags = @('clone'); - Valid = { try { - Test-Path -Path react-native-windows - } - catch { $false }; } - Install = { & "${env:ProgramFiles}\Git\cmd\git.exe" clone https://github.com/microsoft/react-native-windows.git }; - Optional = $true; - }, - @{ - Id = [CheckId]::CppWinRTVSIX; - Name = "C++/WinRT VSIX package"; - Tags = @('rnwDev'); - Valid = { CheckCppWinRT_VSIX; }; - Install = { InstallCppWinRT_VSIX }; - HasVerboseOutput = $true; - Optional = $true; - }, - @{ - ID = [CheckId]::DotNetCore; - Name = ".NET SDK (LTS, = $dotnetver)"; - Tags = @('appDev'); - Valid = { CheckDotNetCore; }; - Install = { WinGetInstall Microsoft.DotNet.SDK.$wingetDotNetVer }; - HasVerboseOutput = $true; - } + @{ + Id=[CheckId]::FreeSpace; + Name = "Free space on current drive > $requiredFreeSpaceGB GB"; + Tags = @('appDev'); + Valid = { $drive.Free/1GB -gt $requiredFreeSpaceGB; } + HasVerboseOutput = $true; + Optional = $true; # this requirement is fuzzy + }, + @{ + Id=[CheckId]::InstalledMemory; + Name = "Installed memory >= 16 GB"; + Tags = @('appDev'); + Valid = { (Get-CimInstance -ClassName win32_computersystem).TotalPhysicalMemory -gt 15GB; } + HasVerboseOutput = $true; + Optional = $true; + }, + @{ + Id=[CheckId]::WindowsVersion; + Name = 'Windows version >= 10.0.17763.0'; + Tags = @('appDev'); + Valid = { ($v.Major -eq 10 -and $v.Minor -eq 0 -and $v.Build -ge 16299); } + }, + @{ + Id=[CheckId]::DeveloperMode; + Name = 'Developer mode is on'; + Tags = @('appDev'); + Valid = { try { (Get-WindowsDeveloperLicense).IsValid } catch { $false }; } + Install = { EnableDevMode }; + }, + @{ + Id=[CheckId]::LongPath; + Name = 'Long path support is enabled'; + Tags = @('appDev'); + Valid = { try { (Get-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled).LongPathsEnabled -eq 1} catch { $false }; } + Install = { Set-ItemProperty HKLM:/SYSTEM/CurrentControlSet/Control/FileSystem -Name LongPathsEnabled -Value 1 -Type DWord; }; + }, + @{ + Id=[CheckId]::git; + Name = 'Git'; + Tags = @('rnwDev'); + Valid = { try { (Get-Command git.exe -ErrorAction Stop) -ne $null } catch { $false }; } + Install = { WinGetInstall Microsoft.Git }; + }, + @{ + Id=[CheckId]::VSUWP; + Name = "Visual Studio 2026 (>= $vsver) & req. components"; + Tags = @('appDev', 'vs2026'); + Valid = { CheckVS; } + Install = { InstallVS }; + HasVerboseOutput = $true; + }, + @{ + Id=[CheckId]::Node; + Name = 'Node.js (LTS, >= 22.0)'; + Tags = @('appDev'); + Valid = { CheckNode; } + Install = { WinGetInstall OpenJS.NodeJS.22 "22.22.0"}; + HasVerboseOutput = $true; + }, + @{ + Id=[CheckId]::Yarn; + Name = 'Yarn'; + Tags = @('appDev'); + Valid = { CheckYarn } + Install = { WinGetInstall Yarn.Yarn }; + HasVerboseOutput = $true; + }, + @{ + Id=[CheckId]::WinAppDriver; + Name = 'WinAppDriver (>= 1.2.1)'; + Tags = @('rnwDev'); + Valid = { CheckWinAppDriver; } + Install = { + $ProgressPreference = 'Ignore'; + $url = "https://github.com/microsoft/WinAppDriver/releases/download/v1.2.1/WindowsApplicationDriver_1.2.1.msi"; + $downloadPath = "$env:TEMP\WindowsApplicationDriver.msi" + Write-Verbose "Downloading WinAppDriver from $url"; + Invoke-WebRequest -UseBasicParsing $url -OutFile $downloadPath + + # SDL Compliance: Verify signature (Work Item 58386093) + $signature = Get-AuthenticodeSignature $downloadPath + if ($signature.Status -ne "Valid") { + Remove-Item $downloadPath -ErrorAction SilentlyContinue + throw "WinAppDriver signature verification failed" + } + if ($signature.SignerCertificate.Subject -notlike "*Microsoft*") { + Remove-Item $downloadPath -ErrorAction SilentlyContinue + throw "WinAppDriver not signed by Microsoft" + } + + & $downloadPath /q + Remove-Item $downloadPath -ErrorAction SilentlyContinue + }; + HasVerboseOutput = $true; + Optional = $true; + }, + @{ + Id=[CheckId]::MSBuildLogViewer; + Name = "MSBuild Structured Log Viewer"; + Tags = @('rnwDev'); + Valid = { ( cmd "/c assoc .binlog 2>nul" ) -ne $null; } + Install = { + WinGetInstall KirillOsenkov.MSBuildStructuredLogViewer; + $slv = gci ${env:LocalAppData}\MSBuildStructuredLogViewer\StructuredLogViewer.exe -Recurse | select FullName | Sort-Object -Property FullName -Descending | Select-Object -First 1 + cmd /c "assoc .binlog=MSBuildLog >nul"; + cmd /c "ftype MSBuildLog=$($slv.FullName) %1 >nul"; + }; + Optional = $true; + }, + @{ + # Install the Windows ADK (Assessment and Deployment Kit) to install the wpt (Windows Performance Toolkit) so we can use wpr (Windows Performance Recorder) for performance analysis + Id=[CheckId]::WindowsADK; + Name = 'Windows ADK'; + Tags = @('buildLab'); + Valid = { (Test-Path "${env:ProgramFiles(x86)}\Windows Kits\10\Windows Performance Toolkit\wpr.exe"); }; + Install = { WinGetInstall Microsoft.WindowsADK }; + Optional = $true; + }, + @{ + Id=[CheckId]::RNWClone; + Name = "React-Native-Windows clone"; + Tags = @('clone'); + Valid = { try { + Test-Path -Path react-native-windows + } catch { $false }; } + Install = { & "${env:ProgramFiles}\Git\cmd\git.exe" clone https://github.com/microsoft/react-native-windows.git }; + Optional = $true; + }, + @{ + Id=[CheckId]::CppWinRTVSIX; + Name = "C++/WinRT VSIX package"; + Tags = @('rnwDev'); + Valid = { CheckCppWinRT_VSIX; }; + Install = { InstallCppWinRT_VSIX }; + HasVerboseOutput = $true; + Optional = $true; + }, + @{ + ID=[CheckId]::DotNetCore; + Name = ".NET SDK (LTS, = $dotnetver)"; + Tags = @('appDev'); + Valid = { CheckDotNetCore; }; + Install = { WinGetInstall Microsoft.DotNet.SDK.$wingetDotNetVer }; + HasVerboseOutput = $true; + } ); function InstallWinGet { - Write-Verbose "Updating WinGet version..."; - Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile "$env:TEMP\winget.msixbundle"; - Add-AppPackage -ForceApplicationShutdown $env:TEMP\winget.msixbundle; - Remove-Item $env:TEMP\winget.msixbundle; + Write-Verbose "Updating WinGet version..."; + Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile "$env:TEMP\winget.msixbundle"; + Add-AppPackage -ForceApplicationShutdown $env:TEMP\winget.msixbundle; + Remove-Item $env:TEMP\winget.msixbundle; } function EnsureWinGetForInstall { - Write-Verbose "Checking for WinGet..."; - try { - # Check if winget.exe is in PATH - if (Get-Command "winget.exe" -CommandType Application -ErrorAction Ignore) { - Write-Verbose "WinGet found in PATH."; - Write-Verbose "Validating WinGet version..."; - $wingetverfound = & winget -v; - if ([System.Version]$wingetverfound.Substring(1) -ge [System.Version]$wingetver ) { - Write-Verbose "WinGet version found: $wingetverfound"; - return; - } - } - InstallWinGet; - $installedwingetver = & winget -v; - Write-Verbose "WinGet version installed: $installedwingetver"; - } - catch { Write-Debug $_ } + Write-Verbose "Checking for WinGet..."; + try { + # Check if winget.exe is in PATH + if (Get-Command "winget.exe" -CommandType Application -ErrorAction Ignore) { + Write-Verbose "WinGet found in PATH."; + Write-Verbose "Validating WinGet version..."; + $wingetverfound = & winget -v; + if ([System.Version]$wingetverfound.Substring(1) -ge [System.Version]$wingetver ){ + Write-Verbose "WinGet version found: $wingetverfound"; + return; + } + } + InstallWinGet; + $installedwingetver = & winget -v; + Write-Verbose "WinGet version installed: $installedwingetver"; + } catch { Write-Debug $_ } } function WinGetInstall { - param( - [string]$wingetPackage, - [string]$packageVersion = "" - ) - - EnsureWinGetForInstall; - if ($packageVersion -ne "") { - Write-Verbose "Executing `winget install `"$wingetPackage`" --version `"$packageVersion`""; - & winget install "$wingetPackage" --version "$packageVersion" --accept-source-agreements --accept-package-agreements - } - else { - Write-Verbose "Executing `winget install `"$wingetPackage`""; - & winget install "$wingetPackage" --accept-source-agreements --accept-package-agreements - } - - # Refresh PATH environment variable to pick up newly installed tools - $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") -} + param( + [string]$wingetPackage, + [string]$packageVersion = "" + ) + + EnsureWinGetForInstall; + if ($packageVersion -ne "") { + Write-Verbose "Executing `winget install `"$wingetPackage`" --version `"$packageVersion`""; + & winget install "$wingetPackage" --version "$packageVersion" --accept-source-agreements --accept-package-agreements + } else { + Write-Verbose "Executing `winget install `"$wingetPackage`""; + & winget install "$wingetPackage" --accept-source-agreements --accept-package-agreements + } + + # Refresh PATH environment variable to pick up newly installed tools + $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") + } function IsElevated { - return [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544"); + return [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544"); } if (!($NoPrompt) -and !(IsElevated)) { - Write-Host "rnw-dependencies - this script must run elevated."; - if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } - exit 1 + Write-Host "rnw-dependencies - this script must run elevated."; + if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } + exit 1 } $NeedsRerun = 0; $Installed = 0; $filteredRequirements = New-Object System.Collections.Generic.List[object]; -foreach ($req in $requirements) { - if ($Check -eq [CheckId]::All -or $req.Id -eq $Check) { - foreach ($tag in $req.Tags) { - if ($tagsToInclude.Contains($tag)) { - $filteredRequirements.Add($req); - break; - } - } - } +foreach ($req in $requirements) +{ + if ($Check -eq [CheckId]::All -or $req.Id -eq $Check) + { + foreach ($tag in $req.Tags) + { + if ($tagsToInclude.Contains($tag)) + { + $filteredRequirements.Add($req); + break; + } + } + } } if ($ListChecks) { - foreach ($req in $filteredRequirements) { - if ($req.Optional) { - Write-Host -NoNewline Optional; - } - else { - Write-Host -NoNewline Required; - } - Write-Host -NoNewline ": "; - Write-Host -NoNewline $req.Id; - Write-Host -NoNewline ": "; - Write-Host $req.Name; - } - return; + foreach ($req in $filteredRequirements) + { + if ($req.Optional) + { + Write-Host -NoNewline Optional; + } + else + { + Write-Host -NoNewline Required; + } + Write-Host -NoNewline ": "; + Write-Host -NoNewline $req.Id; + Write-Host -NoNewline ": "; + Write-Host $req.Name; + } + return; } if (Test-Path $MarkerFile) { - Remove-Item $MarkerFile; -} - -foreach ($req in $filteredRequirements) { - Write-Host -NoNewline "Checking $($req.Name) "; - $resultPad = 60 - $req.Name.Length; - - if ($req.HasVerboseOutput -and - $Verbose) { - # This makes sure the verbose output is one line lower - Write-Host ""; - $resultPad = 70; - } - - $valid = $false; - try { - $valid = Invoke-Command $req.Valid; - } - catch { - Write-Warning "There was a problem checking for $($req.Name). Re-run with -Debug for details." - Write-Debug $_ - } - - if (!$valid) { - if ($req.Optional) { - Write-Host -ForegroundColor Yellow " Failed (warn)".PadLeft($resultPad); - } - else { - Write-Host -ForegroundColor Red " Failed".PadLeft($resultPad); - } - if ($req.Install) { - if ($Install -or (!$NoPrompt -and (Read-Host "Do you want to install? [y/N]").ToUpperInvariant() -eq 'Y')) { - try { - $LASTEXITCODE = 0; - $outputFromInstall = Invoke-Command $req.Install -ErrorAction Stop; - - <<<<<<< HEAD - || || || | parent of b5ff57891 (Upgrade to Visual Studio 2026 (#16170)) - # Re-validate after install attempt - winget may return non-zero for "already installed" - $validAfterInstall = $false; - try { - $validAfterInstall = Invoke-Command $req.Valid; - } - catch { } - - if ($validAfterInstall) { - $Installed++; - continue; # go to the next item - } - - ======= - # Re-validate after install attempt - winget may return non-zero for "already installed" - $validAfterInstall = $false; - try { - $validAfterInstall = Invoke-Command $req.Valid; - } - catch { } - - if ($validAfterInstall) { - $Installed++; - continue; # go to the next item - } - - >>>>>>> b5ff57891 (Upgrade to Visual Studio 2026 (#16170)) - if ($LASTEXITCODE -ne 0) { - throw "Last exit code was non-zero: $LASTEXITCODE - $outputFromInstall"; - } - - $Installed++; - continue; # go to the next item - - } - catch { - Write-Warning "There was a problem trying to install $($req.Name). Re-run with -Debug for details." - Write-Debug $_ - } - } - } - # If we got here, the req needed to be installed but wasn't - $NeedsRerun += !($req.Optional); # don't let failures from optional components fail the script - } - else { - Write-Host -ForegroundColor Green " OK".PadLeft($resultPad); - } - } - - - if ($Installed -ne 0) { - Write-Host "Installed $Installed dependencies. You may need to close this window for changes to take effect."; - } - - if ($NeedsRerun -ne 0) { - if ($Verbose) { - Write-Warning "Some dependencies are not met. Re-run with -Install to install them."; - } - else { - Write-Warning "Some dependencies are not met. Re-run with -Verbose for details, or use -Install to install them."; - } - if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } - exit 1; - } - else { - Write-Host "All mandatory requirements met."; - $Tags | Out-File $MarkerFile; - if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } - exit 0; - } + Remove-Item $MarkerFile; +} + +foreach ($req in $filteredRequirements) +{ + Write-Host -NoNewline "Checking $($req.Name) "; + $resultPad = 60 - $req.Name.Length; + + if ($req.HasVerboseOutput -and -$Verbose) { + # This makes sure the verbose output is one line lower + Write-Host ""; + $resultPad = 70; + } + + $valid = $false; + try { + $valid = Invoke-Command $req.Valid; + } catch { + Write-Warning "There was a problem checking for $($req.Name). Re-run with -Debug for details." + Write-Debug $_ + } + + if (!$valid) { + if ($req.Optional) { + Write-Host -ForegroundColor Yellow " Failed (warn)".PadLeft($resultPad); + } + else { + Write-Host -ForegroundColor Red " Failed".PadLeft($resultPad); + } + if ($req.Install) { + if ($Install -or (!$NoPrompt -and (Read-Host "Do you want to install? [y/N]").ToUpperInvariant() -eq 'Y')) { + try { + $LASTEXITCODE = 0; + $outputFromInstall = Invoke-Command $req.Install -ErrorAction Stop; + + # Re-validate after install attempt - winget may return non-zero for "already installed" + $validAfterInstall = $false; + try { + $validAfterInstall = Invoke-Command $req.Valid; + } catch { } + + if ($validAfterInstall) { + $Installed++; + continue; # go to the next item + } + + if ($LASTEXITCODE -ne 0) { + throw "Last exit code was non-zero: $LASTEXITCODE - $outputFromInstall"; + } + + $Installed++; + continue; # go to the next item + + } catch { + Write-Warning "There was a problem trying to install $($req.Name). Re-run with -Debug for details." + Write-Debug $_ + } + } + } + # If we got here, the req needed to be installed but wasn't + $NeedsRerun += !($req.Optional); # don't let failures from optional components fail the script + } else { + Write-Host -ForegroundColor Green " OK".PadLeft($resultPad); + } +} + + +if ($Installed -ne 0) { + Write-Host "Installed $Installed dependencies. You may need to close this window for changes to take effect."; +} + +if ($NeedsRerun -ne 0) { + if ($Verbose) { + Write-Warning "Some dependencies are not met. Re-run with -Install to install them."; + } else { + Write-Warning "Some dependencies are not met. Re-run with -Verbose for details, or use -Install to install them."; + } + if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } + exit 1; +} else { + Write-Host "All mandatory requirements met."; + $Tags | Out-File $MarkerFile; + if (!$ShellInvocation) { Read-Host 'Press Enter to exit' } + exit 0; +} From b5830b914eef9096500d8ccfb85b95cf9d2fa68d Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 03:09:32 -0700 Subject: [PATCH 22/38] Ran react-native-windows-codegen.cmd --- vnext/codegen/rnwcoreJSI-generated.cpp | 3386 --------- vnext/codegen/rnwcoreJSI.h | 9377 ------------------------ 2 files changed, 12763 deletions(-) diff --git a/vnext/codegen/rnwcoreJSI-generated.cpp b/vnext/codegen/rnwcoreJSI-generated.cpp index 52d2700b199..5ade867ef0f 100644 --- a/vnext/codegen/rnwcoreJSI-generated.cpp +++ b/vnext/codegen/rnwcoreJSI-generated.cpp @@ -11,3393 +11,7 @@ namespace facebook::react { -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->commonTestFlag( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlagWithoutNativeImplementation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->commonTestFlagWithoutNativeImplementation( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_animatedShouldSignalBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->animatedShouldSignalBatch( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->cxxNativeAnimatedEnabled( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedRemoveJsSync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->cxxNativeAnimatedRemoveJsSync( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMainQueueSyncDispatchIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->disableMainQueueSyncDispatchIOS( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMountItemReorderingAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->disableMountItemReorderingAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableTextLayoutManagerCacheAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->disableTextLayoutManagerCacheAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccessibilityOrder(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableAccessibilityOrder( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableAccumulatedUpdatesInRawPropsAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAndroidTextMeasurementOptimizations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableAndroidTextMeasurementOptimizations( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableBridgelessArchitecture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableBridgelessArchitecture( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCppPropsIteratorSetter(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableCppPropsIteratorSetter( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableCustomFocusSearchOnClippedElementsAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableDestroyShadowTreeRevisionAsync( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDoubleMeasurementFixAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableDoubleMeasurementFixAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableEagerRootViewAttachment(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableEagerRootViewAttachment( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricLogs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableFabricLogs( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricRenderer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableFabricRenderer( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFixForParentTagDuringReparenting(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableFixForParentTagDuringReparenting( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableFontScaleChangesUpdatingLayout( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSTextBaselineOffsetPerLine(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableIOSTextBaselineOffsetPerLine( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSViewClipToPaddingBox(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableIOSViewClipToPaddingBox( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableInteropViewManagerClassLookUpOptimizationIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableInteropViewManagerClassLookUpOptimizationIOS( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableLayoutAnimationsOnAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableLayoutAnimationsOnIOS( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueCoordinatorOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableMainQueueCoordinatorOnIOS( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueModulesOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableMainQueueModulesOnIOS( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableModuleArgumentNSNullConversionIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableModuleArgumentNSNullConversionIOS( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNativeCSSParsing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableNativeCSSParsing( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNetworkEventReporting(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableNetworkEventReporting( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableNewBackgroundAndBorderDrawables( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePreparedTextLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enablePreparedTextLayout( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enablePropsUpdateReconciliationAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableResourceTimingAPI(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableResourceTimingAPI( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableSynchronousStateUpdates(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableSynchronousStateUpdates( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewCulling(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableViewCulling( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecycling(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableViewRecycling( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForText(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableViewRecyclingForText( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableViewRecyclingForView( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewDebugFeatures(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableVirtualViewDebugFeatures( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewRenderState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableVirtualViewRenderState( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewWindowFocusDetection(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->enableVirtualViewWindowFocusDetection( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->fixMappingOfEventPrioritiesBetweenFabricAndReact( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxEnabledRelease(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->fuseboxEnabledRelease( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxNetworkInspectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->fuseboxNetworkInspectionEnabled( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->hideOffscreenVirtualViewsOnIOS( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preparedTextCacheSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->preparedTextCacheSize( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->preventShadowTreeCommitExhaustion( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->traceTurboModulePromiseRejectionsOnAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->updateRuntimeShadowNodeReferencesOnCommit( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useAlwaysAvailableJSErrorHandling( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useFabricInterop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useFabricInterop( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useNativeEqualsInNativeReadableArrayAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeTransformHelperAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useNativeTransformHelperAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useNativeViewConfigsInBridgelessMode( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useOptimizedEventBatchingOnAndroid( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useRawPropsJsiValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useRawPropsJsiValue( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useShadowNodeStateOnClone(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useShadowNodeStateOnClone( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModuleInterop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useTurboModuleInterop( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModules(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->useTurboModules( - rt - ); -} -static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_virtualViewPrerenderRatio(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->virtualViewPrerenderRatio( - rt - ); -} -NativeReactNativeFeatureFlagsCxxSpecJSI::NativeReactNativeFeatureFlagsCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeReactNativeFeatureFlagsCxx", jsInvoker) { - methodMap_["commonTestFlag"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlag}; - methodMap_["commonTestFlagWithoutNativeImplementation"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlagWithoutNativeImplementation}; - methodMap_["animatedShouldSignalBatch"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_animatedShouldSignalBatch}; - methodMap_["cxxNativeAnimatedEnabled"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedEnabled}; - methodMap_["cxxNativeAnimatedRemoveJsSync"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedRemoveJsSync}; - methodMap_["disableMainQueueSyncDispatchIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMainQueueSyncDispatchIOS}; - methodMap_["disableMountItemReorderingAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMountItemReorderingAndroid}; - methodMap_["disableTextLayoutManagerCacheAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableTextLayoutManagerCacheAndroid}; - methodMap_["enableAccessibilityOrder"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccessibilityOrder}; - methodMap_["enableAccumulatedUpdatesInRawPropsAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccumulatedUpdatesInRawPropsAndroid}; - methodMap_["enableAndroidTextMeasurementOptimizations"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAndroidTextMeasurementOptimizations}; - methodMap_["enableBridgelessArchitecture"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableBridgelessArchitecture}; - methodMap_["enableCppPropsIteratorSetter"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCppPropsIteratorSetter}; - methodMap_["enableCustomFocusSearchOnClippedElementsAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCustomFocusSearchOnClippedElementsAndroid}; - methodMap_["enableDestroyShadowTreeRevisionAsync"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDestroyShadowTreeRevisionAsync}; - methodMap_["enableDoubleMeasurementFixAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDoubleMeasurementFixAndroid}; - methodMap_["enableEagerRootViewAttachment"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableEagerRootViewAttachment}; - methodMap_["enableFabricLogs"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricLogs}; - methodMap_["enableFabricRenderer"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricRenderer}; - methodMap_["enableFixForParentTagDuringReparenting"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFixForParentTagDuringReparenting}; - methodMap_["enableFontScaleChangesUpdatingLayout"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFontScaleChangesUpdatingLayout}; - methodMap_["enableIOSTextBaselineOffsetPerLine"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSTextBaselineOffsetPerLine}; - methodMap_["enableIOSViewClipToPaddingBox"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSViewClipToPaddingBox}; - methodMap_["enableInteropViewManagerClassLookUpOptimizationIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableInteropViewManagerClassLookUpOptimizationIOS}; - methodMap_["enableLayoutAnimationsOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnAndroid}; - methodMap_["enableLayoutAnimationsOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnIOS}; - methodMap_["enableMainQueueCoordinatorOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueCoordinatorOnIOS}; - methodMap_["enableMainQueueModulesOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueModulesOnIOS}; - methodMap_["enableModuleArgumentNSNullConversionIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableModuleArgumentNSNullConversionIOS}; - methodMap_["enableNativeCSSParsing"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNativeCSSParsing}; - methodMap_["enableNetworkEventReporting"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNetworkEventReporting}; - methodMap_["enableNewBackgroundAndBorderDrawables"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNewBackgroundAndBorderDrawables}; - methodMap_["enablePreparedTextLayout"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePreparedTextLayout}; - methodMap_["enablePropsUpdateReconciliationAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePropsUpdateReconciliationAndroid}; - methodMap_["enableResourceTimingAPI"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableResourceTimingAPI}; - methodMap_["enableSynchronousStateUpdates"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableSynchronousStateUpdates}; - methodMap_["enableViewCulling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewCulling}; - methodMap_["enableViewRecycling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecycling}; - methodMap_["enableViewRecyclingForText"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForText}; - methodMap_["enableViewRecyclingForView"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForView}; - methodMap_["enableVirtualViewDebugFeatures"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewDebugFeatures}; - methodMap_["enableVirtualViewRenderState"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewRenderState}; - methodMap_["enableVirtualViewWindowFocusDetection"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewWindowFocusDetection}; - methodMap_["fixMappingOfEventPrioritiesBetweenFabricAndReact"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fixMappingOfEventPrioritiesBetweenFabricAndReact}; - methodMap_["fuseboxEnabledRelease"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxEnabledRelease}; - methodMap_["fuseboxNetworkInspectionEnabled"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxNetworkInspectionEnabled}; - methodMap_["hideOffscreenVirtualViewsOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_hideOffscreenVirtualViewsOnIOS}; - methodMap_["preparedTextCacheSize"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preparedTextCacheSize}; - methodMap_["preventShadowTreeCommitExhaustion"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion}; - methodMap_["traceTurboModulePromiseRejectionsOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid}; - methodMap_["updateRuntimeShadowNodeReferencesOnCommit"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_updateRuntimeShadowNodeReferencesOnCommit}; - methodMap_["useAlwaysAvailableJSErrorHandling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useAlwaysAvailableJSErrorHandling}; - methodMap_["useFabricInterop"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useFabricInterop}; - methodMap_["useNativeEqualsInNativeReadableArrayAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeEqualsInNativeReadableArrayAndroid}; - methodMap_["useNativeTransformHelperAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeTransformHelperAndroid}; - methodMap_["useNativeViewConfigsInBridgelessMode"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeViewConfigsInBridgelessMode}; - methodMap_["useOptimizedEventBatchingOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useOptimizedEventBatchingOnAndroid}; - methodMap_["useRawPropsJsiValue"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useRawPropsJsiValue}; - methodMap_["useShadowNodeStateOnClone"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useShadowNodeStateOnClone}; - methodMap_["useTurboModuleInterop"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModuleInterop}; - methodMap_["useTurboModules"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModules}; - methodMap_["virtualViewPrerenderRatio"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_virtualViewPrerenderRatio}; -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isReduceMotionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->isReduceMotionEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isInvertColorsEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->isInvertColorsEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isHighTextContrastEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->isHighTextContrastEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isTouchExplorationEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->isTouchExplorationEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isAccessibilityServiceEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->isAccessibilityServiceEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_setAccessibilityFocus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setAccessibilityFocus( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_announceForAccessibility(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->announceForAccessibility( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_getRecommendedTimeoutMillis(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getRecommendedTimeoutMillis( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isGrayscaleEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->isGrayscaleEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeAccessibilityInfoCxxSpecJSI::NativeAccessibilityInfoCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("AccessibilityInfo", jsInvoker) { - methodMap_["isReduceMotionEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isReduceMotionEnabled}; - methodMap_["isInvertColorsEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isInvertColorsEnabled}; - methodMap_["isHighTextContrastEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isHighTextContrastEnabled}; - methodMap_["isTouchExplorationEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isTouchExplorationEnabled}; - methodMap_["isAccessibilityServiceEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isAccessibilityServiceEnabled}; - methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_setAccessibilityFocus}; - methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_announceForAccessibility}; - methodMap_["getRecommendedTimeoutMillis"] = MethodMetadata {2, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_getRecommendedTimeoutMillis}; - methodMap_["isGrayscaleEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isGrayscaleEnabled}; -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentBoldTextState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentBoldTextState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentGrayscaleState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentGrayscaleState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentInvertColorsState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentInvertColorsState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceMotionState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentReduceMotionState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentDarkerSystemColorsState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentDarkerSystemColorsState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentPrefersCrossFadeTransitionsState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentPrefersCrossFadeTransitionsState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceTransparencyState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentReduceTransparencyState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentVoiceOverState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentVoiceOverState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityContentSizeMultipliers(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setAccessibilityContentSizeMultipliers( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityFocus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setAccessibilityFocus( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibility(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->announceForAccessibility( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibilityWithOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->announceForAccessibilityWithOptions( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); - return jsi::Value::undefined(); -} - -NativeAccessibilityManagerCxxSpecJSI::NativeAccessibilityManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("AccessibilityManager", jsInvoker) { - methodMap_["getCurrentBoldTextState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentBoldTextState}; - methodMap_["getCurrentGrayscaleState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentGrayscaleState}; - methodMap_["getCurrentInvertColorsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentInvertColorsState}; - methodMap_["getCurrentReduceMotionState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceMotionState}; - methodMap_["getCurrentDarkerSystemColorsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentDarkerSystemColorsState}; - methodMap_["getCurrentPrefersCrossFadeTransitionsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentPrefersCrossFadeTransitionsState}; - methodMap_["getCurrentReduceTransparencyState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceTransparencyState}; - methodMap_["getCurrentVoiceOverState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentVoiceOverState}; - methodMap_["setAccessibilityContentSizeMultipliers"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityContentSizeMultipliers}; - methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityFocus}; - methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibility}; - methodMap_["announceForAccessibilityWithOptions"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibilityWithOptions}; -} -static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_showActionSheetWithOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->showActionSheetWithOptions( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_showShareActionSheetWithOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->showShareActionSheetWithOptions( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_dismissActionSheet(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->dismissActionSheet( - rt - ); - return jsi::Value::undefined(); -} - -NativeActionSheetManagerCxxSpecJSI::NativeActionSheetManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ActionSheetManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeActionSheetManagerCxxSpecJSI_getConstants}; - methodMap_["showActionSheetWithOptions"] = MethodMetadata {2, __hostFunction_NativeActionSheetManagerCxxSpecJSI_showActionSheetWithOptions}; - methodMap_["showShareActionSheetWithOptions"] = MethodMetadata {3, __hostFunction_NativeActionSheetManagerCxxSpecJSI_showShareActionSheetWithOptions}; - methodMap_["dismissActionSheet"] = MethodMetadata {0, __hostFunction_NativeActionSheetManagerCxxSpecJSI_dismissActionSheet}; -} -static jsi::Value __hostFunction_NativeAlertManagerCxxSpecJSI_alertWithArgs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->alertWithArgs( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeAlertManagerCxxSpecJSI::NativeAlertManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("AlertManager", jsInvoker) { - methodMap_["alertWithArgs"] = MethodMetadata {2, __hostFunction_NativeAlertManagerCxxSpecJSI_alertWithArgs}; -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_startOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->startOperationBatch( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_finishOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->finishOperationBatch( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_createAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->createAnimatedNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_updateAnimatedNodeConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->updateAnimatedNodeConfig( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_getValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_startListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->startListeningToAnimatedNodeValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->stopListeningToAnimatedNodeValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->connectAnimatedNodes( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->disconnectAnimatedNodes( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_startAnimatingNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->startAnimatingNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopAnimation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->stopAnimation( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setAnimatedNodeValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setAnimatedNodeOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_flattenAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->flattenAnimatedNodeOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_extractAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->extractAnimatedNodeOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodeToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->connectAnimatedNodeToView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodeFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->disconnectAnimatedNodeFromView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_restoreDefaultValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->restoreDefaultValues( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_dropAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->dropAnimatedNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_addAnimatedEventToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addAnimatedEventToView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeAnimatedEventFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeAnimatedEventFromView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_queueAndExecuteBatchedOperations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->queueAndExecuteBatchedOperations( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); - return jsi::Value::undefined(); -} - -NativeAnimatedModuleCxxSpecJSI::NativeAnimatedModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeAnimatedModule", jsInvoker) { - methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleCxxSpecJSI_startOperationBatch}; - methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleCxxSpecJSI_finishOperationBatch}; - methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_createAnimatedNode}; - methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_updateAnimatedNodeConfig}; - methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_getValue}; - methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_startListeningToAnimatedNodeValue}; - methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopListeningToAnimatedNodeValue}; - methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodes}; - methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodes}; - methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedModuleCxxSpecJSI_startAnimatingNode}; - methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopAnimation}; - methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeValue}; - methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeOffset}; - methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_flattenAnimatedNodeOffset}; - methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_extractAnimatedNodeOffset}; - methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodeToView}; - methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodeFromView}; - methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_restoreDefaultValues}; - methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_dropAnimatedNode}; - methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleCxxSpecJSI_addAnimatedEventToView}; - methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeAnimatedEventFromView}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeListeners}; - methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_queueAndExecuteBatchedOperations}; -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->startOperationBatch( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_finishOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->finishOperationBatch( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_createAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->createAnimatedNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_updateAnimatedNodeConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->updateAnimatedNodeConfig( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_getValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->startListeningToAnimatedNodeValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->stopListeningToAnimatedNodeValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->connectAnimatedNodes( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->disconnectAnimatedNodes( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startAnimatingNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->startAnimatingNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopAnimation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->stopAnimation( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setAnimatedNodeValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setAnimatedNodeOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_flattenAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->flattenAnimatedNodeOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_extractAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->extractAnimatedNodeOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodeToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->connectAnimatedNodeToView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodeFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->disconnectAnimatedNodeFromView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_restoreDefaultValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->restoreDefaultValues( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_dropAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->dropAnimatedNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addAnimatedEventToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addAnimatedEventToView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeAnimatedEventFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeAnimatedEventFromView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_queueAndExecuteBatchedOperations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->queueAndExecuteBatchedOperations( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); - return jsi::Value::undefined(); -} - -NativeAnimatedTurboModuleCxxSpecJSI::NativeAnimatedTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeAnimatedTurboModule", jsInvoker) { - methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startOperationBatch}; - methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_finishOperationBatch}; - methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_createAnimatedNode}; - methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_updateAnimatedNodeConfig}; - methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_getValue}; - methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startListeningToAnimatedNodeValue}; - methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopListeningToAnimatedNodeValue}; - methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodes}; - methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodes}; - methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startAnimatingNode}; - methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopAnimation}; - methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeValue}; - methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeOffset}; - methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_flattenAnimatedNodeOffset}; - methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_extractAnimatedNodeOffset}; - methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodeToView}; - methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodeFromView}; - methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_restoreDefaultValues}; - methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_dropAnimatedNode}; - methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addAnimatedEventToView}; - methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeAnimatedEventFromView}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeListeners}; - methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_queueAndExecuteBatchedOperations}; -} -static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - auto result = static_cast(&turboModule)->getColorScheme( - rt - ); - return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); -} -static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setColorScheme( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeAppearanceCxxSpecJSI::NativeAppearanceCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("Appearance", jsInvoker) { - methodMap_["getColorScheme"] = MethodMetadata {0, __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme}; - methodMap_["setColorScheme"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_getCurrentAppState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getCurrentAppState( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeAppStateCxxSpecJSI::NativeAppStateCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("AppState", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppStateCxxSpecJSI_getConstants}; - methodMap_["getCurrentAppState"] = MethodMetadata {2, __hostFunction_NativeAppStateCxxSpecJSI_getCurrentAppState}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppStateCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppStateCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeAppThemeCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} - -NativeAppThemeCxxSpecJSI::NativeAppThemeCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("AppTheme", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppThemeCxxSpecJSI_getConstants}; -} -static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_addNetworkingHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addNetworkingHandler( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_addWebSocketHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addWebSocketHandler( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_removeWebSocketHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeWebSocketHandler( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_sendOverSocket(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->sendOverSocket( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_createFromParts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->createFromParts( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_release(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->release( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} - -NativeBlobModuleCxxSpecJSI::NativeBlobModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("BlobModule", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeBlobModuleCxxSpecJSI_getConstants}; - methodMap_["addNetworkingHandler"] = MethodMetadata {0, __hostFunction_NativeBlobModuleCxxSpecJSI_addNetworkingHandler}; - methodMap_["addWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleCxxSpecJSI_addWebSocketHandler}; - methodMap_["removeWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleCxxSpecJSI_removeWebSocketHandler}; - methodMap_["sendOverSocket"] = MethodMetadata {2, __hostFunction_NativeBlobModuleCxxSpecJSI_sendOverSocket}; - methodMap_["createFromParts"] = MethodMetadata {2, __hostFunction_NativeBlobModuleCxxSpecJSI_createFromParts}; - methodMap_["release"] = MethodMetadata {1, __hostFunction_NativeBlobModuleCxxSpecJSI_release}; -} -static jsi::Value __hostFunction_NativeClipboardCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeClipboardCxxSpecJSI_getString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getString( - rt - ); -} -static jsi::Value __hostFunction_NativeClipboardCxxSpecJSI_setString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setString( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} - -NativeClipboardCxxSpecJSI::NativeClipboardCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("Clipboard", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeClipboardCxxSpecJSI_getConstants}; - methodMap_["getString"] = MethodMetadata {0, __hostFunction_NativeClipboardCxxSpecJSI_getString}; - methodMap_["setString"] = MethodMetadata {1, __hostFunction_NativeClipboardCxxSpecJSI_setString}; -} -static jsi::Value __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->invokeDefaultBackPressHandler( - rt - ); - return jsi::Value::undefined(); -} - -NativeDeviceEventManagerCxxSpecJSI::NativeDeviceEventManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("DeviceEventManager", jsInvoker) { - methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler}; -} -static jsi::Value __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} - -NativeDeviceInfoCxxSpecJSI::NativeDeviceInfoCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("DeviceInfo", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants}; -} -static jsi::Value __hostFunction_NativeDevLoadingViewCxxSpecJSI_showMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->showMessage( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asNumber()), - count <= 2 || args[2].isNull() || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asNumber()) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevLoadingViewCxxSpecJSI_hide(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->hide( - rt - ); - return jsi::Value::undefined(); -} - -NativeDevLoadingViewCxxSpecJSI::NativeDevLoadingViewCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("DevLoadingView", jsInvoker) { - methodMap_["showMessage"] = MethodMetadata {3, __hostFunction_NativeDevLoadingViewCxxSpecJSI_showMessage}; - methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeDevLoadingViewCxxSpecJSI_hide}; -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_reload(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->reload( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_reloadWithReason(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->reloadWithReason( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_onFastRefresh(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->onFastRefresh( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_setHotLoadingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setHotLoadingEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_setProfilingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setProfilingEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_toggleElementInspector(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->toggleElementInspector( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_addMenuItem(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addMenuItem( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_openDebugger(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->openDebugger( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_setIsShakeToShowDevMenuEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setIsShakeToShowDevMenuEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} - -NativeDevSettingsCxxSpecJSI::NativeDevSettingsCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("DevSettings", jsInvoker) { - methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_reload}; - methodMap_["reloadWithReason"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_reloadWithReason}; - methodMap_["onFastRefresh"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_onFastRefresh}; - methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setHotLoadingEnabled}; - methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setProfilingEnabled}; - methodMap_["toggleElementInspector"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_toggleElementInspector}; - methodMap_["addMenuItem"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_addMenuItem}; - methodMap_["openDebugger"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_openDebugger}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_removeListeners}; - methodMap_["setIsShakeToShowDevMenuEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setIsShakeToShowDevMenuEnabled}; -} -static jsi::Value __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_showAlert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->showAlert( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeDialogManagerAndroidCxxSpecJSI::NativeDialogManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("DialogManagerAndroid", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_getConstants}; - methodMap_["showAlert"] = MethodMetadata {3, __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_showAlert}; -} -static jsi::Value __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_showAlert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->showAlert( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeDialogManagerWindowsCxxSpecJSI::NativeDialogManagerWindowsCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("Alert", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_getConstants}; - methodMap_["showAlert"] = MethodMetadata {3, __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_showAlert}; -} -static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportFatalException(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->reportFatalException( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asArray(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportSoftException(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->reportSoftException( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asArray(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportException(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->reportException( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_dismissRedbox(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->dismissRedbox( - rt - ); - return jsi::Value::undefined(); -} - -NativeExceptionsManagerCxxSpecJSI::NativeExceptionsManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ExceptionsManager", jsInvoker) { - methodMap_["reportFatalException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportFatalException}; - methodMap_["reportSoftException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportSoftException}; - methodMap_["reportException"] = MethodMetadata {1, __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportException}; - methodMap_["dismissRedbox"] = MethodMetadata {0, __hostFunction_NativeExceptionsManagerCxxSpecJSI_dismissRedbox}; -} -static jsi::Value __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsDataURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->readAsDataURL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsText(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->readAsText( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt) - ); -} - -NativeFileReaderModuleCxxSpecJSI::NativeFileReaderModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("FileReaderModule", jsInvoker) { - methodMap_["readAsDataURL"] = MethodMetadata {1, __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsDataURL}; - methodMap_["readAsText"] = MethodMetadata {2, __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsText}; -} -static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setGlobalOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setGlobalOptions( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setContext(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setContext( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_beginScroll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->beginScroll( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_endScroll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->endScroll( - rt - ); - return jsi::Value::undefined(); -} - -NativeFrameRateLoggerCxxSpecJSI::NativeFrameRateLoggerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("FrameRateLogger", jsInvoker) { - methodMap_["setGlobalOptions"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setGlobalOptions}; - methodMap_["setContext"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setContext}; - methodMap_["beginScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_beginScroll}; - methodMap_["endScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_endScroll}; -} -static jsi::Value __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskFinished(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->notifyTaskFinished( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskRetry(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->notifyTaskRetry( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); -} - -NativeHeadlessJsTaskSupportCxxSpecJSI::NativeHeadlessJsTaskSupportCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("HeadlessJsTaskSupport", jsInvoker) { - methodMap_["notifyTaskFinished"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskFinished}; - methodMap_["notifyTaskRetry"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskRetry}; -} -static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_allowRTL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->allowRTL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_forceRTL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->forceRTL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_swapLeftAndRightInRTL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->swapLeftAndRightInRTL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} - -NativeI18nManagerCxxSpecJSI::NativeI18nManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("I18nManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeI18nManagerCxxSpecJSI_getConstants}; - methodMap_["allowRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerCxxSpecJSI_allowRTL}; - methodMap_["forceRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerCxxSpecJSI_forceRTL}; - methodMap_["swapLeftAndRightInRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerCxxSpecJSI_swapLeftAndRightInRTL}; -} -static jsi::Value __hostFunction_NativeImageEditorCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeImageEditorCxxSpecJSI_cropImage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->cropImage( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeImageEditorCxxSpecJSI::NativeImageEditorCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ImageEditingManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageEditorCxxSpecJSI_getConstants}; - methodMap_["cropImage"] = MethodMetadata {4, __hostFunction_NativeImageEditorCxxSpecJSI_cropImage}; -} -static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_abortRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->abortRequest( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getSize( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSizeWithHeaders(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getSizeWithHeaders( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_prefetchImage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->prefetchImage( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); -} -static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_queryCache(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->queryCache( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); -} - -NativeImageLoaderAndroidCxxSpecJSI::NativeImageLoaderAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ImageLoader", jsInvoker) { - methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_abortRequest}; - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getConstants}; - methodMap_["getSize"] = MethodMetadata {1, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSize}; - methodMap_["getSizeWithHeaders"] = MethodMetadata {2, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSizeWithHeaders}; - methodMap_["prefetchImage"] = MethodMetadata {2, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_prefetchImage}; - methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_queryCache}; -} -static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getSize( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSizeWithHeaders(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getSizeWithHeaders( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->prefetchImage( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImageWithMetadata(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->prefetchImageWithMetadata( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber() - ); -} -static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_queryCache(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->queryCache( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); -} - -NativeImageLoaderIOSCxxSpecJSI::NativeImageLoaderIOSCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ImageLoader", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getConstants}; - methodMap_["getSize"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSize}; - methodMap_["getSizeWithHeaders"] = MethodMetadata {2, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSizeWithHeaders}; - methodMap_["prefetchImage"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImage}; - methodMap_["prefetchImageWithMetadata"] = MethodMetadata {3, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImageWithMetadata}; - methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_queryCache}; -} -static jsi::Value __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getBase64ForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getBase64ForTag( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeImageStoreAndroidCxxSpecJSI::NativeImageStoreAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ImageStoreManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getConstants}; - methodMap_["getBase64ForTag"] = MethodMetadata {3, __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getBase64ForTag}; -} -static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_getBase64ForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getBase64ForTag( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_hasImageForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->hasImageForTag( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_removeImageForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeImageForTag( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_addImageFromBase64(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addImageFromBase64( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeImageStoreIOSCxxSpecJSI::NativeImageStoreIOSCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ImageStoreManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageStoreIOSCxxSpecJSI_getConstants}; - methodMap_["getBase64ForTag"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSCxxSpecJSI_getBase64ForTag}; - methodMap_["hasImageForTag"] = MethodMetadata {2, __hostFunction_NativeImageStoreIOSCxxSpecJSI_hasImageForTag}; - methodMap_["removeImageForTag"] = MethodMetadata {1, __hostFunction_NativeImageStoreIOSCxxSpecJSI_removeImageForTag}; - methodMap_["addImageFromBase64"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSCxxSpecJSI_addImageFromBase64}; -} -static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_getInitialURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getInitialURL( - rt - ); -} -static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_canOpenURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->canOpenURL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_openURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->openURL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_openSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->openSettings( - rt - ); -} -static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_sendIntent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->sendIntent( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt).asArray(rt)) - ); -} - -NativeIntentAndroidCxxSpecJSI::NativeIntentAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("IntentAndroid", jsInvoker) { - methodMap_["getInitialURL"] = MethodMetadata {0, __hostFunction_NativeIntentAndroidCxxSpecJSI_getInitialURL}; - methodMap_["canOpenURL"] = MethodMetadata {1, __hostFunction_NativeIntentAndroidCxxSpecJSI_canOpenURL}; - methodMap_["openURL"] = MethodMetadata {1, __hostFunction_NativeIntentAndroidCxxSpecJSI_openURL}; - methodMap_["openSettings"] = MethodMetadata {0, __hostFunction_NativeIntentAndroidCxxSpecJSI_openSettings}; - methodMap_["sendIntent"] = MethodMetadata {2, __hostFunction_NativeIntentAndroidCxxSpecJSI_sendIntent}; -} -static jsi::Value __hostFunction_NativeJSCHeapCaptureCxxSpecJSI_captureComplete(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->captureComplete( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)) - ); - return jsi::Value::undefined(); -} - -NativeJSCHeapCaptureCxxSpecJSI::NativeJSCHeapCaptureCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("JSCHeapCapture", jsInvoker) { - methodMap_["captureComplete"] = MethodMetadata {2, __hostFunction_NativeJSCHeapCaptureCxxSpecJSI_captureComplete}; -} -static jsi::Value __hostFunction_NativeKeyboardObserverCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeKeyboardObserverCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeKeyboardObserverCxxSpecJSI::NativeKeyboardObserverCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("KeyboardObserver", jsInvoker) { - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_getInitialURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getInitialURL( - rt - ); -} -static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_canOpenURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->canOpenURL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_openURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->openURL( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_openSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->openSettings( - rt - ); -} -static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeLinkingManagerCxxSpecJSI::NativeLinkingManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("LinkingManager", jsInvoker) { - methodMap_["getInitialURL"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerCxxSpecJSI_getInitialURL}; - methodMap_["canOpenURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_canOpenURL}; - methodMap_["openURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_openURL}; - methodMap_["openSettings"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerCxxSpecJSI_openSettings}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeLogBoxCxxSpecJSI_show(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->show( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeLogBoxCxxSpecJSI_hide(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->hide( - rt - ); - return jsi::Value::undefined(); -} - -NativeLogBoxCxxSpecJSI::NativeLogBoxCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("LogBox", jsInvoker) { - methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeLogBoxCxxSpecJSI_show}; - methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeLogBoxCxxSpecJSI_hide}; -} -static jsi::Value __hostFunction_NativeModalManagerCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeModalManagerCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeModalManagerCxxSpecJSI::NativeModalManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ModalManager", jsInvoker) { - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeModalManagerCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeModalManagerCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_sendRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->sendRequest( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asArray(rt), - count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asObject(rt), - count <= 5 ? throw jsi::JSError(rt, "Expected argument in position 5 to be passed") : args[5].asString(rt), - count <= 6 ? throw jsi::JSError(rt, "Expected argument in position 6 to be passed") : args[6].asBool(), - count <= 7 ? throw jsi::JSError(rt, "Expected argument in position 7 to be passed") : args[7].asNumber(), - count <= 8 ? throw jsi::JSError(rt, "Expected argument in position 8 to be passed") : args[8].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_abortRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->abortRequest( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_clearCookies(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->clearCookies( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeNetworkingAndroidCxxSpecJSI::NativeNetworkingAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("Networking", jsInvoker) { - methodMap_["sendRequest"] = MethodMetadata {9, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_sendRequest}; - methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_abortRequest}; - methodMap_["clearCookies"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_clearCookies}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_sendRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->sendRequest( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_abortRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->abortRequest( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_clearCookies(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->clearCookies( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeNetworkingIOSCxxSpecJSI::NativeNetworkingIOSCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("Networking", jsInvoker) { - methodMap_["sendRequest"] = MethodMetadata {2, __hostFunction_NativeNetworkingIOSCxxSpecJSI_sendRequest}; - methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_abortRequest}; - methodMap_["clearCookies"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_clearCookies}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_checkPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->checkPermission( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->requestPermission( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_shouldShowRequestPermissionRationale(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->shouldShowRequestPermissionRationale( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestMultiplePermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->requestMultiplePermissions( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); -} - -NativePermissionsAndroidCxxSpecJSI::NativePermissionsAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("PermissionsAndroid", jsInvoker) { - methodMap_["checkPermission"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_checkPermission}; - methodMap_["requestPermission"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestPermission}; - methodMap_["shouldShowRequestPermissionRationale"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_shouldShowRequestPermissionRationale}; - methodMap_["requestMultiplePermissions"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestMultiplePermissions}; -} -static jsi::Value __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getAndroidID(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getAndroidID( - rt - ); -} - -NativePlatformConstantsAndroidCxxSpecJSI::NativePlatformConstantsAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("PlatformConstants", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getConstants}; - methodMap_["getAndroidID"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getAndroidID}; -} -static jsi::Value __hostFunction_NativePlatformConstantsIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} - -NativePlatformConstantsIOSCxxSpecJSI::NativePlatformConstantsIOSCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("PlatformConstants", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsIOSCxxSpecJSI_getConstants}; -} -static jsi::Value __hostFunction_NativePlatformConstantsWindowsCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} - -NativePlatformConstantsWindowsCxxSpecJSI::NativePlatformConstantsWindowsCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("PlatformConstants", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsWindowsCxxSpecJSI_getConstants}; -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_onFinishRemoteNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->onFinishRemoteNotification( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_setApplicationIconBadgeNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setApplicationIconBadgeNumber( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getApplicationIconBadgeNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getApplicationIconBadgeNumber( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_requestPermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->requestPermissions( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_abandonPermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->abandonPermissions( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_checkPermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->checkPermissions( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_presentLocalNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->presentLocalNotification( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_scheduleLocalNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->scheduleLocalNotification( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelAllLocalNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->cancelAllLocalNotifications( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelLocalNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->cancelLocalNotifications( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getInitialNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getInitialNotification( - rt - ); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getScheduledLocalNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getScheduledLocalNotifications( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeAllDeliveredNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeAllDeliveredNotifications( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeDeliveredNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeDeliveredNotifications( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getDeliveredNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getDeliveredNotifications( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getAuthorizationStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getAuthorizationStatus( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativePushNotificationManagerIOSCxxSpecJSI::NativePushNotificationManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("PushNotificationManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getConstants}; - methodMap_["onFinishRemoteNotification"] = MethodMetadata {2, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_onFinishRemoteNotification}; - methodMap_["setApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_setApplicationIconBadgeNumber}; - methodMap_["getApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getApplicationIconBadgeNumber}; - methodMap_["requestPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_requestPermissions}; - methodMap_["abandonPermissions"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_abandonPermissions}; - methodMap_["checkPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_checkPermissions}; - methodMap_["presentLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_presentLocalNotification}; - methodMap_["scheduleLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_scheduleLocalNotification}; - methodMap_["cancelAllLocalNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelAllLocalNotifications}; - methodMap_["cancelLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelLocalNotifications}; - methodMap_["getInitialNotification"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getInitialNotification}; - methodMap_["getScheduledLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getScheduledLocalNotifications}; - methodMap_["removeAllDeliveredNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeAllDeliveredNotifications}; - methodMap_["removeDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeDeliveredNotifications}; - methodMap_["getDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getDeliveredNotifications}; - methodMap_["getAuthorizationStatus"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getAuthorizationStatus}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeRedBoxCxxSpecJSI_setExtraData(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setExtraData( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeRedBoxCxxSpecJSI_dismiss(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->dismiss( - rt - ); - return jsi::Value::undefined(); -} - -NativeRedBoxCxxSpecJSI::NativeRedBoxCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("RedBox", jsInvoker) { - methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeRedBoxCxxSpecJSI_setExtraData}; - methodMap_["dismiss"] = MethodMetadata {0, __hostFunction_NativeRedBoxCxxSpecJSI_dismiss}; -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->voidFunc( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getBool(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getBool( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getEnum(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getEnum( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getNumber( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getString( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getArray(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getArray( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObject(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getObject( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getUnsafeObject(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getUnsafeObject( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getRootTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getRootTag( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getValue( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getValueWithCallback( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithPromise(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getValueWithPromise( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncThrows(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->voidFuncThrows( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectThrows(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getObjectThrows( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseThrows(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->promiseThrows( - rt - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncAssert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->voidFuncAssert( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectAssert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getObjectAssert( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseAssert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->promiseAssert( - rt - ); -} -static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getImageUrl(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getImageUrl( - rt - ); -} - -NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("SampleTurboModule", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getConstants}; - methodMap_["voidFunc"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc}; - methodMap_["getBool"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getBool}; - methodMap_["getEnum"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getEnum}; - methodMap_["getNumber"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getNumber}; - methodMap_["getString"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getString}; - methodMap_["getArray"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getArray}; - methodMap_["getObject"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObject}; - methodMap_["getUnsafeObject"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getUnsafeObject}; - methodMap_["getRootTag"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getRootTag}; - methodMap_["getValue"] = MethodMetadata {3, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValue}; - methodMap_["getValueWithCallback"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithCallback}; - methodMap_["getValueWithPromise"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithPromise}; - methodMap_["voidFuncThrows"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncThrows}; - methodMap_["getObjectThrows"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectThrows}; - methodMap_["promiseThrows"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseThrows}; - methodMap_["voidFuncAssert"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncAssert}; - methodMap_["getObjectAssert"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectAssert}; - methodMap_["promiseAssert"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseAssert}; - methodMap_["getImageUrl"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getImageUrl}; -} -static jsi::Value __hostFunction_NativeSegmentFetcherCxxSpecJSI_fetchSegment(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->fetchSegment( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeSegmentFetcherCxxSpecJSI_getSegment(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getSegment( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeSegmentFetcherCxxSpecJSI::NativeSegmentFetcherCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("SegmentFetcher", jsInvoker) { - methodMap_["fetchSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherCxxSpecJSI_fetchSegment}; - methodMap_["getSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherCxxSpecJSI_getSegment}; -} -static jsi::Value __hostFunction_NativeSettingsManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeSettingsManagerCxxSpecJSI_setValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setValues( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeSettingsManagerCxxSpecJSI_deleteValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->deleteValues( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) - ); - return jsi::Value::undefined(); -} - -NativeSettingsManagerCxxSpecJSI::NativeSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("SettingsManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSettingsManagerCxxSpecJSI_getConstants}; - methodMap_["setValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerCxxSpecJSI_setValues}; - methodMap_["deleteValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerCxxSpecJSI_deleteValues}; -} -static jsi::Value __hostFunction_NativeShareModuleCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeShareModuleCxxSpecJSI_share(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->share( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)) - ); -} - -NativeShareModuleCxxSpecJSI::NativeShareModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ShareModule", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeShareModuleCxxSpecJSI_getConstants}; - methodMap_["share"] = MethodMetadata {2, __hostFunction_NativeShareModuleCxxSpecJSI_share}; -} -static jsi::Value __hostFunction_NativeSoundManagerCxxSpecJSI_playTouchSound(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->playTouchSound( - rt - ); - return jsi::Value::undefined(); -} - -NativeSoundManagerCxxSpecJSI::NativeSoundManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("SoundManager", jsInvoker) { - methodMap_["playTouchSound"] = MethodMetadata {0, __hostFunction_NativeSoundManagerCxxSpecJSI_playTouchSound}; -} -static jsi::Value __hostFunction_NativeSourceCodeCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} - -NativeSourceCodeCxxSpecJSI::NativeSourceCodeCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("SourceCode", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSourceCodeCxxSpecJSI_getConstants}; -} -static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setColor(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setColor( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setTranslucent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setTranslucent( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setStyle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setStyle( - rt, - count <= 0 || args[0].isNull() || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setHidden(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setHidden( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} - -NativeStatusBarManagerAndroidCxxSpecJSI::NativeStatusBarManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("StatusBarManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_getConstants}; - methodMap_["setColor"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setColor}; - methodMap_["setTranslucent"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setTranslucent}; - methodMap_["setStyle"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setStyle}; - methodMap_["setHidden"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setHidden}; -} -static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getHeight(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->getHeight( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setNetworkActivityIndicatorVisible(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setNetworkActivityIndicatorVisible( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setStyle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setStyle( - rt, - count <= 0 || args[0].isNull() || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setHidden(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setHidden( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt) - ); - return jsi::Value::undefined(); -} - -NativeStatusBarManagerIOSCxxSpecJSI::NativeStatusBarManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("StatusBarManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getConstants}; - methodMap_["getHeight"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getHeight}; - methodMap_["setNetworkActivityIndicatorVisible"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setNetworkActivityIndicatorVisible}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_removeListeners}; - methodMap_["setStyle"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setStyle}; - methodMap_["setHidden"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setHidden}; -} -static jsi::Value __hostFunction_NativeTimingCxxSpecJSI_createTimer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->createTimer( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeTimingCxxSpecJSI_deleteTimer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->deleteTimer( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeTimingCxxSpecJSI_setSendIdleEvents(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setSendIdleEvents( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} - -NativeTimingCxxSpecJSI::NativeTimingCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("Timing", jsInvoker) { - methodMap_["createTimer"] = MethodMetadata {4, __hostFunction_NativeTimingCxxSpecJSI_createTimer}; - methodMap_["deleteTimer"] = MethodMetadata {1, __hostFunction_NativeTimingCxxSpecJSI_deleteTimer}; - methodMap_["setSendIdleEvents"] = MethodMetadata {1, __hostFunction_NativeTimingCxxSpecJSI_setSendIdleEvents}; -} -static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_show(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->show( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravity(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->showWithGravity( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravityAndOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->showWithGravityAndOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asNumber(), - count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeToastAndroidCxxSpecJSI::NativeToastAndroidCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ToastAndroid", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeToastAndroidCxxSpecJSI_getConstants}; - methodMap_["show"] = MethodMetadata {2, __hostFunction_NativeToastAndroidCxxSpecJSI_show}; - methodMap_["showWithGravity"] = MethodMetadata {3, __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravity}; - methodMap_["showWithGravityAndOffset"] = MethodMetadata {5, __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravityAndOffset}; -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_createView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->createView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_updateView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->updateView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_findSubviewIn(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->findSubviewIn( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asArray(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_dispatchViewManagerCommand(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->dispatchViewManagerCommand( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asObject(rt).asArray(rt)) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measure(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->measure( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measureInWindow(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->measureInWindow( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_viewIsDescendantOf(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->viewIsDescendantOf( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measureLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->measureLayout( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measureLayoutRelativeToParent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->measureLayoutRelativeToParent( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_setJSResponder(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setJSResponder( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_clearJSResponder(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->clearJSResponder( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_configureNextLayoutAnimation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->configureNextLayoutAnimation( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_setChildren(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setChildren( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asArray(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_manageChildren(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->manageChildren( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asArray(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asArray(rt), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asArray(rt), - count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asObject(rt).asArray(rt), - count <= 5 ? throw jsi::JSError(rt, "Expected argument in position 5 to be passed") : args[5].asObject(rt).asArray(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_getConstantsForViewManager(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - auto result = static_cast(&turboModule)->getConstantsForViewManager( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_getDefaultEventTypes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getDefaultEventTypes( - rt - ); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_setLayoutAnimationEnabledExperimental(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setLayoutAnimationEnabledExperimental( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_sendAccessibilityEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->sendAccessibilityEvent( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_lazilyLoadView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->lazilyLoadView( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_focus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->focus( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_blur(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->blur( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeUIManagerCxxSpecJSI::NativeUIManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("UIManager", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeUIManagerCxxSpecJSI_getConstants}; - methodMap_["createView"] = MethodMetadata {4, __hostFunction_NativeUIManagerCxxSpecJSI_createView}; - methodMap_["updateView"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_updateView}; - methodMap_["findSubviewIn"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_findSubviewIn}; - methodMap_["dispatchViewManagerCommand"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_dispatchViewManagerCommand}; - methodMap_["measure"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_measure}; - methodMap_["measureInWindow"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_measureInWindow}; - methodMap_["viewIsDescendantOf"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_viewIsDescendantOf}; - methodMap_["measureLayout"] = MethodMetadata {4, __hostFunction_NativeUIManagerCxxSpecJSI_measureLayout}; - methodMap_["measureLayoutRelativeToParent"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_measureLayoutRelativeToParent}; - methodMap_["setJSResponder"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_setJSResponder}; - methodMap_["clearJSResponder"] = MethodMetadata {0, __hostFunction_NativeUIManagerCxxSpecJSI_clearJSResponder}; - methodMap_["configureNextLayoutAnimation"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_configureNextLayoutAnimation}; - methodMap_["setChildren"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_setChildren}; - methodMap_["manageChildren"] = MethodMetadata {6, __hostFunction_NativeUIManagerCxxSpecJSI_manageChildren}; - methodMap_["getConstantsForViewManager"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_getConstantsForViewManager}; - methodMap_["getDefaultEventTypes"] = MethodMetadata {0, __hostFunction_NativeUIManagerCxxSpecJSI_getDefaultEventTypes}; - methodMap_["setLayoutAnimationEnabledExperimental"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_setLayoutAnimationEnabledExperimental}; - methodMap_["sendAccessibilityEvent"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_sendAccessibilityEvent}; - methodMap_["lazilyLoadView"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_lazilyLoadView}; - methodMap_["focus"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_focus}; - methodMap_["blur"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_blur}; -} -static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getConstants( - rt - ); -} -static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_vibrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->vibrate( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_vibrateByPattern(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->vibrateByPattern( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_cancel(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->cancel( - rt - ); - return jsi::Value::undefined(); -} - -NativeVibrationCxxSpecJSI::NativeVibrationCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("Vibration", jsInvoker) { - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeVibrationCxxSpecJSI_getConstants}; - methodMap_["vibrate"] = MethodMetadata {1, __hostFunction_NativeVibrationCxxSpecJSI_vibrate}; - methodMap_["vibrateByPattern"] = MethodMetadata {2, __hostFunction_NativeVibrationCxxSpecJSI_vibrateByPattern}; - methodMap_["cancel"] = MethodMetadata {0, __hostFunction_NativeVibrationCxxSpecJSI_cancel}; -} -static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_connect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->connect( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt).asArray(rt)), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_send(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->send( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_sendBinary(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->sendBinary( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_ping(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->ping( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_close(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->close( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->addListener( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->removeListeners( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} - -NativeWebSocketModuleCxxSpecJSI::NativeWebSocketModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("WebSocketModule", jsInvoker) { - methodMap_["connect"] = MethodMetadata {4, __hostFunction_NativeWebSocketModuleCxxSpecJSI_connect}; - methodMap_["send"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleCxxSpecJSI_send}; - methodMap_["sendBinary"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleCxxSpecJSI_sendBinary}; - methodMap_["ping"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleCxxSpecJSI_ping}; - methodMap_["close"] = MethodMetadata {3, __hostFunction_NativeWebSocketModuleCxxSpecJSI_close}; - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleCxxSpecJSI_addListener}; - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleCxxSpecJSI_removeListeners}; -} -static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_show(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->show( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_reload(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->reload( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_setProfilingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setProfilingEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_setHotLoadingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setHotLoadingEnabled( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() - ); - return jsi::Value::undefined(); -} - -NativeDevMenuCxxSpecJSI::NativeDevMenuCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("DevMenu", jsInvoker) { - methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeDevMenuCxxSpecJSI_show}; - methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevMenuCxxSpecJSI_reload}; - methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuCxxSpecJSI_setProfilingEnabled}; - methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuCxxSpecJSI_setHotLoadingEnabled}; -} -static jsi::Value __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_setReloadAndProfileConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setReloadAndProfileConfig( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_getReloadAndProfileConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getReloadAndProfileConfig( - rt - ); -} - -NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI::NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ReactDevToolsRuntimeSettingsModule", jsInvoker) { - methodMap_["setReloadAndProfileConfig"] = MethodMetadata {1, __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_setReloadAndProfileConfig}; - methodMap_["getReloadAndProfileConfig"] = MethodMetadata {0, __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_getReloadAndProfileConfig}; -} -static jsi::Value __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_setGlobalHookSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setGlobalHookSettings( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_getGlobalHookSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - auto result = static_cast(&turboModule)->getGlobalHookSettings( - rt - ); - return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); -} - -NativeReactDevToolsSettingsManagerCxxSpecJSI::NativeReactDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("ReactDevToolsSettingsManager", jsInvoker) { - methodMap_["setGlobalHookSettings"] = MethodMetadata {1, __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_setGlobalHookSettings}; - methodMap_["getGlobalHookSettings"] = MethodMetadata {0, __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_getGlobalHookSettings}; -} -static jsi::Value __hostFunction_NativeIdleCallbacksCxxSpecJSI_requestIdleCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->requestIdleCallback( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt)) - ); -} -static jsi::Value __hostFunction_NativeIdleCallbacksCxxSpecJSI_cancelIdleCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->cancelIdleCallback( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); - return jsi::Value::undefined(); -} - -NativeIdleCallbacksCxxSpecJSI::NativeIdleCallbacksCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeIdleCallbacksCxx", jsInvoker) { - methodMap_["requestIdleCallback"] = MethodMetadata {2, __hostFunction_NativeIdleCallbacksCxxSpecJSI_requestIdleCallback}; - methodMap_["cancelIdleCallback"] = MethodMetadata {1, __hostFunction_NativeIdleCallbacksCxxSpecJSI_cancelIdleCallback}; -} -static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_observe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->observe( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserve(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->unobserve( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : jsi::Value(rt, args[1]) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_observeV2(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->observeV2( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); -} -static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserveV2(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->unobserveV2( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : jsi::Value(rt, args[1]) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_connect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->connect( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_disconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->disconnect( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_takeRecords(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->takeRecords( - rt - ); -} - -NativeIntersectionObserverCxxSpecJSI::NativeIntersectionObserverCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeIntersectionObserverCxx", jsInvoker) { - methodMap_["observe"] = MethodMetadata {1, __hostFunction_NativeIntersectionObserverCxxSpecJSI_observe}; - methodMap_["unobserve"] = MethodMetadata {2, __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserve}; - methodMap_["observeV2"] = MethodMetadata {1, __hostFunction_NativeIntersectionObserverCxxSpecJSI_observeV2}; - methodMap_["unobserveV2"] = MethodMetadata {2, __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserveV2}; - methodMap_["connect"] = MethodMetadata {1, __hostFunction_NativeIntersectionObserverCxxSpecJSI_connect}; - methodMap_["disconnect"] = MethodMetadata {0, __hostFunction_NativeIntersectionObserverCxxSpecJSI_disconnect}; - methodMap_["takeRecords"] = MethodMetadata {0, __hostFunction_NativeIntersectionObserverCxxSpecJSI_takeRecords}; -} -static jsi::Value __hostFunction_NativeMicrotasksCxxSpecJSI_queueMicrotask(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->queueMicrotask( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} - -NativeMicrotasksCxxSpecJSI::NativeMicrotasksCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeMicrotasksCxx", jsInvoker) { - methodMap_["queueMicrotask"] = MethodMetadata {1, __hostFunction_NativeMicrotasksCxxSpecJSI_queueMicrotask}; -} -static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_observe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->observe( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_unobserveAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->unobserveAll( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_connect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->connect( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_disconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->disconnect( - rt - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_takeRecords(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->takeRecords( - rt - ); -} - -NativeMutationObserverCxxSpecJSI::NativeMutationObserverCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeMutationObserverCxx", jsInvoker) { - methodMap_["observe"] = MethodMetadata {1, __hostFunction_NativeMutationObserverCxxSpecJSI_observe}; - methodMap_["unobserveAll"] = MethodMetadata {1, __hostFunction_NativeMutationObserverCxxSpecJSI_unobserveAll}; - methodMap_["connect"] = MethodMetadata {2, __hostFunction_NativeMutationObserverCxxSpecJSI_connect}; - methodMap_["disconnect"] = MethodMetadata {0, __hostFunction_NativeMutationObserverCxxSpecJSI_disconnect}; - methodMap_["takeRecords"] = MethodMetadata {0, __hostFunction_NativeMutationObserverCxxSpecJSI_takeRecords}; -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_now(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->now( - rt - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_markWithResult(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->markWithResult( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asNumber()) - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_measureWithResult(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->measureWithResult( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(), - count <= 3 || args[3].isUndefined() ? std::nullopt : std::make_optional(args[3].asNumber()), - count <= 4 || args[4].isUndefined() ? std::nullopt : std::make_optional(args[4].asString(rt)), - count <= 5 || args[5].isUndefined() ? std::nullopt : std::make_optional(args[5].asString(rt)) - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_clearMarks(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->clearMarks( - rt, - count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_clearMeasures(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->clearMeasures( - rt, - count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEntries(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getEntries( - rt - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByName(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getEntriesByName( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asNumber()) - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByType(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getEntriesByType( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEventCounts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getEventCounts( - rt - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getSimpleMemoryInfo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getSimpleMemoryInfo( - rt - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getReactNativeStartupTiming(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getReactNativeStartupTiming( - rt - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_createObserver(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->createObserver( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getDroppedEntriesCount(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getDroppedEntriesCount( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_observe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->observe( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_disconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->disconnect( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_takeRecords(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->takeRecords( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool() - ); -} -static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getSupportedPerformanceEntryTypes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getSupportedPerformanceEntryTypes( - rt - ); -} - -NativePerformanceCxxSpecJSI::NativePerformanceCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativePerformanceCxx", jsInvoker) { - methodMap_["now"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_now}; - methodMap_["markWithResult"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_markWithResult}; - methodMap_["measureWithResult"] = MethodMetadata {6, __hostFunction_NativePerformanceCxxSpecJSI_measureWithResult}; - methodMap_["clearMarks"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_clearMarks}; - methodMap_["clearMeasures"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_clearMeasures}; - methodMap_["getEntries"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getEntries}; - methodMap_["getEntriesByName"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByName}; - methodMap_["getEntriesByType"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByType}; - methodMap_["getEventCounts"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getEventCounts}; - methodMap_["getSimpleMemoryInfo"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getSimpleMemoryInfo}; - methodMap_["getReactNativeStartupTiming"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getReactNativeStartupTiming}; - methodMap_["createObserver"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_createObserver}; - methodMap_["getDroppedEntriesCount"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_getDroppedEntriesCount}; - methodMap_["observe"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_observe}; - methodMap_["disconnect"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_disconnect}; - methodMap_["takeRecords"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_takeRecords}; - methodMap_["getSupportedPerformanceEntryTypes"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getSupportedPerformanceEntryTypes}; -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_compareDocumentPosition(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->compareDocumentPosition( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : jsi::Value(rt, args[1]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getChildNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getChildNodes( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getParentNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getParentNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_isConnected(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->isConnected( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getBorderWidth(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getBorderWidth( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getBoundingClientRect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getBoundingClientRect( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool() - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getInnerSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getInnerSize( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getScrollPosition(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getScrollPosition( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getScrollSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getScrollSize( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getTagName(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getTagName( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getTextContent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getTextContent( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_hasPointerCapture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->hasPointerCapture( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_releasePointerCapture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->releasePointerCapture( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_setPointerCapture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setPointerCapture( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber() - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->getOffset( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_linkRootNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - return static_cast(&turboModule)->linkRootNode( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : jsi::Value(rt, args[1]) - ); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_measure(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->measure( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_measureInWindow(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->measureInWindow( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_measureLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->measureLayout( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : jsi::Value(rt, args[1]), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asFunction(rt), - count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asFunction(rt) - ); - return jsi::Value::undefined(); -} -static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_setNativeProps(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { - static_cast(&turboModule)->setNativeProps( - rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : jsi::Value(rt, args[0]), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : jsi::Value(rt, args[1]) - ); - return jsi::Value::undefined(); -} - -NativeDOMCxxSpecJSI::NativeDOMCxxSpecJSI(std::shared_ptr jsInvoker) - : TurboModule("NativeDOMCxx", jsInvoker) { - methodMap_["compareDocumentPosition"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_compareDocumentPosition}; - methodMap_["getChildNodes"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getChildNodes}; - methodMap_["getParentNode"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getParentNode}; - methodMap_["isConnected"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_isConnected}; - methodMap_["getBorderWidth"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getBorderWidth}; - methodMap_["getBoundingClientRect"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_getBoundingClientRect}; - methodMap_["getInnerSize"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getInnerSize}; - methodMap_["getScrollPosition"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getScrollPosition}; - methodMap_["getScrollSize"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getScrollSize}; - methodMap_["getTagName"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getTagName}; - methodMap_["getTextContent"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getTextContent}; - methodMap_["hasPointerCapture"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_hasPointerCapture}; - methodMap_["releasePointerCapture"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_releasePointerCapture}; - methodMap_["setPointerCapture"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_setPointerCapture}; - methodMap_["getOffset"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getOffset}; - methodMap_["linkRootNode"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_linkRootNode}; - methodMap_["measure"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_measure}; - methodMap_["measureInWindow"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_measureInWindow}; - methodMap_["measureLayout"] = MethodMetadata {4, __hostFunction_NativeDOMCxxSpecJSI_measureLayout}; - methodMap_["setNativeProps"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_setNativeProps}; -} } // namespace facebook::react diff --git a/vnext/codegen/rnwcoreJSI.h b/vnext/codegen/rnwcoreJSI.h index c015ba34574..ec162608dab 100644 --- a/vnext/codegen/rnwcoreJSI.h +++ b/vnext/codegen/rnwcoreJSI.h @@ -15,9382 +15,5 @@ namespace facebook::react { - class JSI_EXPORT NativeReactNativeFeatureFlagsCxxSpecJSI : public TurboModule { -protected: - NativeReactNativeFeatureFlagsCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual bool commonTestFlag(jsi::Runtime &rt) = 0; - virtual bool commonTestFlagWithoutNativeImplementation(jsi::Runtime &rt) = 0; - virtual bool animatedShouldSignalBatch(jsi::Runtime &rt) = 0; - virtual bool cxxNativeAnimatedEnabled(jsi::Runtime &rt) = 0; - virtual bool cxxNativeAnimatedRemoveJsSync(jsi::Runtime &rt) = 0; - virtual bool disableMainQueueSyncDispatchIOS(jsi::Runtime &rt) = 0; - virtual bool disableMountItemReorderingAndroid(jsi::Runtime &rt) = 0; - virtual bool disableTextLayoutManagerCacheAndroid(jsi::Runtime &rt) = 0; - virtual bool enableAccessibilityOrder(jsi::Runtime &rt) = 0; - virtual bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) = 0; - virtual bool enableAndroidTextMeasurementOptimizations(jsi::Runtime &rt) = 0; - virtual bool enableBridgelessArchitecture(jsi::Runtime &rt) = 0; - virtual bool enableCppPropsIteratorSetter(jsi::Runtime &rt) = 0; - virtual bool enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt) = 0; - virtual bool enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt) = 0; - virtual bool enableDoubleMeasurementFixAndroid(jsi::Runtime &rt) = 0; - virtual bool enableEagerRootViewAttachment(jsi::Runtime &rt) = 0; - virtual bool enableFabricLogs(jsi::Runtime &rt) = 0; - virtual bool enableFabricRenderer(jsi::Runtime &rt) = 0; - virtual bool enableFixForParentTagDuringReparenting(jsi::Runtime &rt) = 0; - virtual bool enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt) = 0; - virtual bool enableIOSTextBaselineOffsetPerLine(jsi::Runtime &rt) = 0; - virtual bool enableIOSViewClipToPaddingBox(jsi::Runtime &rt) = 0; - virtual bool enableInteropViewManagerClassLookUpOptimizationIOS(jsi::Runtime &rt) = 0; - virtual bool enableLayoutAnimationsOnAndroid(jsi::Runtime &rt) = 0; - virtual bool enableLayoutAnimationsOnIOS(jsi::Runtime &rt) = 0; - virtual bool enableMainQueueCoordinatorOnIOS(jsi::Runtime &rt) = 0; - virtual bool enableMainQueueModulesOnIOS(jsi::Runtime &rt) = 0; - virtual bool enableModuleArgumentNSNullConversionIOS(jsi::Runtime &rt) = 0; - virtual bool enableNativeCSSParsing(jsi::Runtime &rt) = 0; - virtual bool enableNetworkEventReporting(jsi::Runtime &rt) = 0; - virtual bool enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt) = 0; - virtual bool enablePreparedTextLayout(jsi::Runtime &rt) = 0; - virtual bool enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt) = 0; - virtual bool enableResourceTimingAPI(jsi::Runtime &rt) = 0; - virtual bool enableSynchronousStateUpdates(jsi::Runtime &rt) = 0; - virtual bool enableViewCulling(jsi::Runtime &rt) = 0; - virtual bool enableViewRecycling(jsi::Runtime &rt) = 0; - virtual bool enableViewRecyclingForText(jsi::Runtime &rt) = 0; - virtual bool enableViewRecyclingForView(jsi::Runtime &rt) = 0; - virtual bool enableVirtualViewDebugFeatures(jsi::Runtime &rt) = 0; - virtual bool enableVirtualViewRenderState(jsi::Runtime &rt) = 0; - virtual bool enableVirtualViewWindowFocusDetection(jsi::Runtime &rt) = 0; - virtual bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) = 0; - virtual bool fuseboxEnabledRelease(jsi::Runtime &rt) = 0; - virtual bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) = 0; - virtual bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt) = 0; - virtual double preparedTextCacheSize(jsi::Runtime &rt) = 0; - virtual bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) = 0; - virtual bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) = 0; - virtual bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) = 0; - virtual bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) = 0; - virtual bool useFabricInterop(jsi::Runtime &rt) = 0; - virtual bool useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt) = 0; - virtual bool useNativeTransformHelperAndroid(jsi::Runtime &rt) = 0; - virtual bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) = 0; - virtual bool useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt) = 0; - virtual bool useRawPropsJsiValue(jsi::Runtime &rt) = 0; - virtual bool useShadowNodeStateOnClone(jsi::Runtime &rt) = 0; - virtual bool useTurboModuleInterop(jsi::Runtime &rt) = 0; - virtual bool useTurboModules(jsi::Runtime &rt) = 0; - virtual double virtualViewPrerenderRatio(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeReactNativeFeatureFlagsCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeReactNativeFeatureFlagsCxx"; - -protected: - NativeReactNativeFeatureFlagsCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeReactNativeFeatureFlagsCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeReactNativeFeatureFlagsCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeReactNativeFeatureFlagsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - bool commonTestFlag(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::commonTestFlag) == 1, - "Expected commonTestFlag(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::commonTestFlag, jsInvoker_, instance_); - } - bool commonTestFlagWithoutNativeImplementation(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::commonTestFlagWithoutNativeImplementation) == 1, - "Expected commonTestFlagWithoutNativeImplementation(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::commonTestFlagWithoutNativeImplementation, jsInvoker_, instance_); - } - bool animatedShouldSignalBatch(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::animatedShouldSignalBatch) == 1, - "Expected animatedShouldSignalBatch(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::animatedShouldSignalBatch, jsInvoker_, instance_); - } - bool cxxNativeAnimatedEnabled(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::cxxNativeAnimatedEnabled) == 1, - "Expected cxxNativeAnimatedEnabled(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::cxxNativeAnimatedEnabled, jsInvoker_, instance_); - } - bool cxxNativeAnimatedRemoveJsSync(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::cxxNativeAnimatedRemoveJsSync) == 1, - "Expected cxxNativeAnimatedRemoveJsSync(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::cxxNativeAnimatedRemoveJsSync, jsInvoker_, instance_); - } - bool disableMainQueueSyncDispatchIOS(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::disableMainQueueSyncDispatchIOS) == 1, - "Expected disableMainQueueSyncDispatchIOS(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::disableMainQueueSyncDispatchIOS, jsInvoker_, instance_); - } - bool disableMountItemReorderingAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::disableMountItemReorderingAndroid) == 1, - "Expected disableMountItemReorderingAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::disableMountItemReorderingAndroid, jsInvoker_, instance_); - } - bool disableTextLayoutManagerCacheAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::disableTextLayoutManagerCacheAndroid) == 1, - "Expected disableTextLayoutManagerCacheAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::disableTextLayoutManagerCacheAndroid, jsInvoker_, instance_); - } - bool enableAccessibilityOrder(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableAccessibilityOrder) == 1, - "Expected enableAccessibilityOrder(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableAccessibilityOrder, jsInvoker_, instance_); - } - bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableAccumulatedUpdatesInRawPropsAndroid) == 1, - "Expected enableAccumulatedUpdatesInRawPropsAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableAccumulatedUpdatesInRawPropsAndroid, jsInvoker_, instance_); - } - bool enableAndroidTextMeasurementOptimizations(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableAndroidTextMeasurementOptimizations) == 1, - "Expected enableAndroidTextMeasurementOptimizations(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableAndroidTextMeasurementOptimizations, jsInvoker_, instance_); - } - bool enableBridgelessArchitecture(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableBridgelessArchitecture) == 1, - "Expected enableBridgelessArchitecture(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableBridgelessArchitecture, jsInvoker_, instance_); - } - bool enableCppPropsIteratorSetter(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableCppPropsIteratorSetter) == 1, - "Expected enableCppPropsIteratorSetter(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableCppPropsIteratorSetter, jsInvoker_, instance_); - } - bool enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableCustomFocusSearchOnClippedElementsAndroid) == 1, - "Expected enableCustomFocusSearchOnClippedElementsAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableCustomFocusSearchOnClippedElementsAndroid, jsInvoker_, instance_); - } - bool enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableDestroyShadowTreeRevisionAsync) == 1, - "Expected enableDestroyShadowTreeRevisionAsync(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableDestroyShadowTreeRevisionAsync, jsInvoker_, instance_); - } - bool enableDoubleMeasurementFixAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableDoubleMeasurementFixAndroid) == 1, - "Expected enableDoubleMeasurementFixAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableDoubleMeasurementFixAndroid, jsInvoker_, instance_); - } - bool enableEagerRootViewAttachment(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableEagerRootViewAttachment) == 1, - "Expected enableEagerRootViewAttachment(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableEagerRootViewAttachment, jsInvoker_, instance_); - } - bool enableFabricLogs(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableFabricLogs) == 1, - "Expected enableFabricLogs(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableFabricLogs, jsInvoker_, instance_); - } - bool enableFabricRenderer(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableFabricRenderer) == 1, - "Expected enableFabricRenderer(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableFabricRenderer, jsInvoker_, instance_); - } - bool enableFixForParentTagDuringReparenting(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableFixForParentTagDuringReparenting) == 1, - "Expected enableFixForParentTagDuringReparenting(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableFixForParentTagDuringReparenting, jsInvoker_, instance_); - } - bool enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableFontScaleChangesUpdatingLayout) == 1, - "Expected enableFontScaleChangesUpdatingLayout(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableFontScaleChangesUpdatingLayout, jsInvoker_, instance_); - } - bool enableIOSTextBaselineOffsetPerLine(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableIOSTextBaselineOffsetPerLine) == 1, - "Expected enableIOSTextBaselineOffsetPerLine(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableIOSTextBaselineOffsetPerLine, jsInvoker_, instance_); - } - bool enableIOSViewClipToPaddingBox(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableIOSViewClipToPaddingBox) == 1, - "Expected enableIOSViewClipToPaddingBox(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableIOSViewClipToPaddingBox, jsInvoker_, instance_); - } - bool enableInteropViewManagerClassLookUpOptimizationIOS(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableInteropViewManagerClassLookUpOptimizationIOS) == 1, - "Expected enableInteropViewManagerClassLookUpOptimizationIOS(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableInteropViewManagerClassLookUpOptimizationIOS, jsInvoker_, instance_); - } - bool enableLayoutAnimationsOnAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableLayoutAnimationsOnAndroid) == 1, - "Expected enableLayoutAnimationsOnAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableLayoutAnimationsOnAndroid, jsInvoker_, instance_); - } - bool enableLayoutAnimationsOnIOS(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableLayoutAnimationsOnIOS) == 1, - "Expected enableLayoutAnimationsOnIOS(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableLayoutAnimationsOnIOS, jsInvoker_, instance_); - } - bool enableMainQueueCoordinatorOnIOS(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableMainQueueCoordinatorOnIOS) == 1, - "Expected enableMainQueueCoordinatorOnIOS(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableMainQueueCoordinatorOnIOS, jsInvoker_, instance_); - } - bool enableMainQueueModulesOnIOS(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableMainQueueModulesOnIOS) == 1, - "Expected enableMainQueueModulesOnIOS(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableMainQueueModulesOnIOS, jsInvoker_, instance_); - } - bool enableModuleArgumentNSNullConversionIOS(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableModuleArgumentNSNullConversionIOS) == 1, - "Expected enableModuleArgumentNSNullConversionIOS(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableModuleArgumentNSNullConversionIOS, jsInvoker_, instance_); - } - bool enableNativeCSSParsing(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableNativeCSSParsing) == 1, - "Expected enableNativeCSSParsing(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableNativeCSSParsing, jsInvoker_, instance_); - } - bool enableNetworkEventReporting(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableNetworkEventReporting) == 1, - "Expected enableNetworkEventReporting(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableNetworkEventReporting, jsInvoker_, instance_); - } - bool enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableNewBackgroundAndBorderDrawables) == 1, - "Expected enableNewBackgroundAndBorderDrawables(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableNewBackgroundAndBorderDrawables, jsInvoker_, instance_); - } - bool enablePreparedTextLayout(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enablePreparedTextLayout) == 1, - "Expected enablePreparedTextLayout(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enablePreparedTextLayout, jsInvoker_, instance_); - } - bool enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enablePropsUpdateReconciliationAndroid) == 1, - "Expected enablePropsUpdateReconciliationAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enablePropsUpdateReconciliationAndroid, jsInvoker_, instance_); - } - bool enableResourceTimingAPI(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableResourceTimingAPI) == 1, - "Expected enableResourceTimingAPI(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableResourceTimingAPI, jsInvoker_, instance_); - } - bool enableSynchronousStateUpdates(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableSynchronousStateUpdates) == 1, - "Expected enableSynchronousStateUpdates(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableSynchronousStateUpdates, jsInvoker_, instance_); - } - bool enableViewCulling(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableViewCulling) == 1, - "Expected enableViewCulling(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableViewCulling, jsInvoker_, instance_); - } - bool enableViewRecycling(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableViewRecycling) == 1, - "Expected enableViewRecycling(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableViewRecycling, jsInvoker_, instance_); - } - bool enableViewRecyclingForText(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableViewRecyclingForText) == 1, - "Expected enableViewRecyclingForText(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableViewRecyclingForText, jsInvoker_, instance_); - } - bool enableViewRecyclingForView(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableViewRecyclingForView) == 1, - "Expected enableViewRecyclingForView(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableViewRecyclingForView, jsInvoker_, instance_); - } - bool enableVirtualViewDebugFeatures(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableVirtualViewDebugFeatures) == 1, - "Expected enableVirtualViewDebugFeatures(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableVirtualViewDebugFeatures, jsInvoker_, instance_); - } - bool enableVirtualViewRenderState(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableVirtualViewRenderState) == 1, - "Expected enableVirtualViewRenderState(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableVirtualViewRenderState, jsInvoker_, instance_); - } - bool enableVirtualViewWindowFocusDetection(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::enableVirtualViewWindowFocusDetection) == 1, - "Expected enableVirtualViewWindowFocusDetection(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::enableVirtualViewWindowFocusDetection, jsInvoker_, instance_); - } - bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::fixMappingOfEventPrioritiesBetweenFabricAndReact) == 1, - "Expected fixMappingOfEventPrioritiesBetweenFabricAndReact(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::fixMappingOfEventPrioritiesBetweenFabricAndReact, jsInvoker_, instance_); - } - bool fuseboxEnabledRelease(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::fuseboxEnabledRelease) == 1, - "Expected fuseboxEnabledRelease(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::fuseboxEnabledRelease, jsInvoker_, instance_); - } - bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::fuseboxNetworkInspectionEnabled) == 1, - "Expected fuseboxNetworkInspectionEnabled(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::fuseboxNetworkInspectionEnabled, jsInvoker_, instance_); - } - bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::hideOffscreenVirtualViewsOnIOS) == 1, - "Expected hideOffscreenVirtualViewsOnIOS(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::hideOffscreenVirtualViewsOnIOS, jsInvoker_, instance_); - } - double preparedTextCacheSize(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::preparedTextCacheSize) == 1, - "Expected preparedTextCacheSize(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::preparedTextCacheSize, jsInvoker_, instance_); - } - bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::preventShadowTreeCommitExhaustion) == 1, - "Expected preventShadowTreeCommitExhaustion(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::preventShadowTreeCommitExhaustion, jsInvoker_, instance_); - } - bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::traceTurboModulePromiseRejectionsOnAndroid) == 1, - "Expected traceTurboModulePromiseRejectionsOnAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::traceTurboModulePromiseRejectionsOnAndroid, jsInvoker_, instance_); - } - bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::updateRuntimeShadowNodeReferencesOnCommit) == 1, - "Expected updateRuntimeShadowNodeReferencesOnCommit(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::updateRuntimeShadowNodeReferencesOnCommit, jsInvoker_, instance_); - } - bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useAlwaysAvailableJSErrorHandling) == 1, - "Expected useAlwaysAvailableJSErrorHandling(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useAlwaysAvailableJSErrorHandling, jsInvoker_, instance_); - } - bool useFabricInterop(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useFabricInterop) == 1, - "Expected useFabricInterop(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useFabricInterop, jsInvoker_, instance_); - } - bool useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useNativeEqualsInNativeReadableArrayAndroid) == 1, - "Expected useNativeEqualsInNativeReadableArrayAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useNativeEqualsInNativeReadableArrayAndroid, jsInvoker_, instance_); - } - bool useNativeTransformHelperAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useNativeTransformHelperAndroid) == 1, - "Expected useNativeTransformHelperAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useNativeTransformHelperAndroid, jsInvoker_, instance_); - } - bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useNativeViewConfigsInBridgelessMode) == 1, - "Expected useNativeViewConfigsInBridgelessMode(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useNativeViewConfigsInBridgelessMode, jsInvoker_, instance_); - } - bool useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useOptimizedEventBatchingOnAndroid) == 1, - "Expected useOptimizedEventBatchingOnAndroid(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useOptimizedEventBatchingOnAndroid, jsInvoker_, instance_); - } - bool useRawPropsJsiValue(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useRawPropsJsiValue) == 1, - "Expected useRawPropsJsiValue(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useRawPropsJsiValue, jsInvoker_, instance_); - } - bool useShadowNodeStateOnClone(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useShadowNodeStateOnClone) == 1, - "Expected useShadowNodeStateOnClone(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useShadowNodeStateOnClone, jsInvoker_, instance_); - } - bool useTurboModuleInterop(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useTurboModuleInterop) == 1, - "Expected useTurboModuleInterop(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useTurboModuleInterop, jsInvoker_, instance_); - } - bool useTurboModules(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::useTurboModules) == 1, - "Expected useTurboModules(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::useTurboModules, jsInvoker_, instance_); - } - double virtualViewPrerenderRatio(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::virtualViewPrerenderRatio) == 1, - "Expected virtualViewPrerenderRatio(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::virtualViewPrerenderRatio, jsInvoker_, instance_); - } - - private: - friend class NativeReactNativeFeatureFlagsCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeAccessibilityInfoCxxSpecJSI : public TurboModule { -protected: - NativeAccessibilityInfoCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void isReduceMotionEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; - virtual void isInvertColorsEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; - virtual void isHighTextContrastEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; - virtual void isTouchExplorationEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; - virtual void isAccessibilityServiceEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; - virtual void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) = 0; - virtual void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) = 0; - virtual void getRecommendedTimeoutMillis(jsi::Runtime &rt, double mSec, jsi::Function onSuccess) = 0; - virtual void isGrayscaleEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; - -}; - -template -class JSI_EXPORT NativeAccessibilityInfoCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "AccessibilityInfo"; - -protected: - NativeAccessibilityInfoCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAccessibilityInfoCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAccessibilityInfoCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAccessibilityInfoCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void isReduceMotionEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::isReduceMotionEnabled) == 2, - "Expected isReduceMotionEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::isReduceMotionEnabled, jsInvoker_, instance_, std::move(onSuccess)); - } - void isInvertColorsEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::isInvertColorsEnabled) == 2, - "Expected isInvertColorsEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::isInvertColorsEnabled, jsInvoker_, instance_, std::move(onSuccess)); - } - void isHighTextContrastEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::isHighTextContrastEnabled) == 2, - "Expected isHighTextContrastEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::isHighTextContrastEnabled, jsInvoker_, instance_, std::move(onSuccess)); - } - void isTouchExplorationEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::isTouchExplorationEnabled) == 2, - "Expected isTouchExplorationEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::isTouchExplorationEnabled, jsInvoker_, instance_, std::move(onSuccess)); - } - void isAccessibilityServiceEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::isAccessibilityServiceEnabled) == 2, - "Expected isAccessibilityServiceEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::isAccessibilityServiceEnabled, jsInvoker_, instance_, std::move(onSuccess)); - } - void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) override { - static_assert( - bridging::getParameterCount(&T::setAccessibilityFocus) == 2, - "Expected setAccessibilityFocus(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setAccessibilityFocus, jsInvoker_, instance_, std::move(reactTag)); - } - void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) override { - static_assert( - bridging::getParameterCount(&T::announceForAccessibility) == 2, - "Expected announceForAccessibility(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::announceForAccessibility, jsInvoker_, instance_, std::move(announcement)); - } - void getRecommendedTimeoutMillis(jsi::Runtime &rt, double mSec, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::getRecommendedTimeoutMillis) == 3, - "Expected getRecommendedTimeoutMillis(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getRecommendedTimeoutMillis, jsInvoker_, instance_, std::move(mSec), std::move(onSuccess)); - } - void isGrayscaleEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::isGrayscaleEnabled) == 2, - "Expected isGrayscaleEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::isGrayscaleEnabled, jsInvoker_, instance_, std::move(onSuccess)); - } - - private: - friend class NativeAccessibilityInfoCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeAccessibilityManagerCxxSpecJSI : public TurboModule { -protected: - NativeAccessibilityManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void getCurrentBoldTextState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void getCurrentGrayscaleState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void getCurrentInvertColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void getCurrentReduceMotionState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void getCurrentDarkerSystemColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void getCurrentPrefersCrossFadeTransitionsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void getCurrentReduceTransparencyState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void getCurrentVoiceOverState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; - virtual void setAccessibilityContentSizeMultipliers(jsi::Runtime &rt, jsi::Object JSMultipliers) = 0; - virtual void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) = 0; - virtual void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) = 0; - virtual void announceForAccessibilityWithOptions(jsi::Runtime &rt, jsi::String announcement, jsi::Object options) = 0; - -}; - -template -class JSI_EXPORT NativeAccessibilityManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "AccessibilityManager"; - -protected: - NativeAccessibilityManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAccessibilityManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAccessibilityManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAccessibilityManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void getCurrentBoldTextState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentBoldTextState) == 3, - "Expected getCurrentBoldTextState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentBoldTextState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void getCurrentGrayscaleState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentGrayscaleState) == 3, - "Expected getCurrentGrayscaleState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentGrayscaleState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void getCurrentInvertColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentInvertColorsState) == 3, - "Expected getCurrentInvertColorsState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentInvertColorsState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void getCurrentReduceMotionState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentReduceMotionState) == 3, - "Expected getCurrentReduceMotionState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentReduceMotionState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void getCurrentDarkerSystemColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentDarkerSystemColorsState) == 3, - "Expected getCurrentDarkerSystemColorsState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentDarkerSystemColorsState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void getCurrentPrefersCrossFadeTransitionsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentPrefersCrossFadeTransitionsState) == 3, - "Expected getCurrentPrefersCrossFadeTransitionsState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentPrefersCrossFadeTransitionsState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void getCurrentReduceTransparencyState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentReduceTransparencyState) == 3, - "Expected getCurrentReduceTransparencyState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentReduceTransparencyState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void getCurrentVoiceOverState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { - static_assert( - bridging::getParameterCount(&T::getCurrentVoiceOverState) == 3, - "Expected getCurrentVoiceOverState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentVoiceOverState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); - } - void setAccessibilityContentSizeMultipliers(jsi::Runtime &rt, jsi::Object JSMultipliers) override { - static_assert( - bridging::getParameterCount(&T::setAccessibilityContentSizeMultipliers) == 2, - "Expected setAccessibilityContentSizeMultipliers(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setAccessibilityContentSizeMultipliers, jsInvoker_, instance_, std::move(JSMultipliers)); - } - void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) override { - static_assert( - bridging::getParameterCount(&T::setAccessibilityFocus) == 2, - "Expected setAccessibilityFocus(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setAccessibilityFocus, jsInvoker_, instance_, std::move(reactTag)); - } - void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) override { - static_assert( - bridging::getParameterCount(&T::announceForAccessibility) == 2, - "Expected announceForAccessibility(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::announceForAccessibility, jsInvoker_, instance_, std::move(announcement)); - } - void announceForAccessibilityWithOptions(jsi::Runtime &rt, jsi::String announcement, jsi::Object options) override { - static_assert( - bridging::getParameterCount(&T::announceForAccessibilityWithOptions) == 3, - "Expected announceForAccessibilityWithOptions(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::announceForAccessibilityWithOptions, jsInvoker_, instance_, std::move(announcement), std::move(options)); - } - - private: - friend class NativeAccessibilityManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeActionSheetManagerCxxSpecJSI : public TurboModule { -protected: - NativeActionSheetManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void showActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function callback) = 0; - virtual void showShareActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function failureCallback, jsi::Function successCallback) = 0; - virtual void dismissActionSheet(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeActionSheetManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ActionSheetManager"; - -protected: - NativeActionSheetManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeActionSheetManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeActionSheetManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeActionSheetManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void showActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::showActionSheetWithOptions) == 3, - "Expected showActionSheetWithOptions(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::showActionSheetWithOptions, jsInvoker_, instance_, std::move(options), std::move(callback)); - } - void showShareActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function failureCallback, jsi::Function successCallback) override { - static_assert( - bridging::getParameterCount(&T::showShareActionSheetWithOptions) == 4, - "Expected showShareActionSheetWithOptions(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::showShareActionSheetWithOptions, jsInvoker_, instance_, std::move(options), std::move(failureCallback), std::move(successCallback)); - } - void dismissActionSheet(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::dismissActionSheet) == 1, - "Expected dismissActionSheet(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::dismissActionSheet, jsInvoker_, instance_); - } - - private: - friend class NativeActionSheetManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeAlertManagerArgs - -template -struct NativeAlertManagerArgs { - P0 title; - P1 message; - P2 buttons; - P3 type; - P4 defaultValue; - P5 cancelButtonKey; - P6 destructiveButtonKey; - P7 preferredButtonKey; - P8 keyboardType; - P9 userInterfaceStyle; - bool operator==(const NativeAlertManagerArgs &other) const { - return title == other.title && message == other.message && buttons == other.buttons && type == other.type && defaultValue == other.defaultValue && cancelButtonKey == other.cancelButtonKey && destructiveButtonKey == other.destructiveButtonKey && preferredButtonKey == other.preferredButtonKey && keyboardType == other.keyboardType && userInterfaceStyle == other.userInterfaceStyle; - } -}; - -template -struct NativeAlertManagerArgsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "title"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buttons"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "type"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "defaultValue"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "cancelButtonKey"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "destructiveButtonKey"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "preferredButtonKey"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "keyboardType"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "userInterfaceStyle"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String titleToJs(jsi::Runtime &rt, decltype(types.title) value) { - return bridging::toJs(rt, value); - } - - static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array buttonsToJs(jsi::Runtime &rt, decltype(types.buttons) value) { - return bridging::toJs(rt, value); - } - - static jsi::String typeToJs(jsi::Runtime &rt, decltype(types.type) value) { - return bridging::toJs(rt, value); - } - - static jsi::String defaultValueToJs(jsi::Runtime &rt, decltype(types.defaultValue) value) { - return bridging::toJs(rt, value); - } - - static jsi::String cancelButtonKeyToJs(jsi::Runtime &rt, decltype(types.cancelButtonKey) value) { - return bridging::toJs(rt, value); - } - - static jsi::String destructiveButtonKeyToJs(jsi::Runtime &rt, decltype(types.destructiveButtonKey) value) { - return bridging::toJs(rt, value); - } - - static jsi::String preferredButtonKeyToJs(jsi::Runtime &rt, decltype(types.preferredButtonKey) value) { - return bridging::toJs(rt, value); - } - - static jsi::String keyboardTypeToJs(jsi::Runtime &rt, decltype(types.keyboardType) value) { - return bridging::toJs(rt, value); - } - - static jsi::String userInterfaceStyleToJs(jsi::Runtime &rt, decltype(types.userInterfaceStyle) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.title) { - result.setProperty(rt, "title", bridging::toJs(rt, value.title.value(), jsInvoker)); - } - if (value.message) { - result.setProperty(rt, "message", bridging::toJs(rt, value.message.value(), jsInvoker)); - } - if (value.buttons) { - result.setProperty(rt, "buttons", bridging::toJs(rt, value.buttons.value(), jsInvoker)); - } - if (value.type) { - result.setProperty(rt, "type", bridging::toJs(rt, value.type.value(), jsInvoker)); - } - if (value.defaultValue) { - result.setProperty(rt, "defaultValue", bridging::toJs(rt, value.defaultValue.value(), jsInvoker)); - } - if (value.cancelButtonKey) { - result.setProperty(rt, "cancelButtonKey", bridging::toJs(rt, value.cancelButtonKey.value(), jsInvoker)); - } - if (value.destructiveButtonKey) { - result.setProperty(rt, "destructiveButtonKey", bridging::toJs(rt, value.destructiveButtonKey.value(), jsInvoker)); - } - if (value.preferredButtonKey) { - result.setProperty(rt, "preferredButtonKey", bridging::toJs(rt, value.preferredButtonKey.value(), jsInvoker)); - } - if (value.keyboardType) { - result.setProperty(rt, "keyboardType", bridging::toJs(rt, value.keyboardType.value(), jsInvoker)); - } - if (value.userInterfaceStyle) { - result.setProperty(rt, "userInterfaceStyle", bridging::toJs(rt, value.userInterfaceStyle.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeAlertManagerCxxSpecJSI : public TurboModule { -protected: - NativeAlertManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void alertWithArgs(jsi::Runtime &rt, jsi::Object args, jsi::Function callback) = 0; - -}; - -template -class JSI_EXPORT NativeAlertManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "AlertManager"; - -protected: - NativeAlertManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAlertManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAlertManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAlertManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void alertWithArgs(jsi::Runtime &rt, jsi::Object args, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::alertWithArgs) == 3, - "Expected alertWithArgs(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::alertWithArgs, jsInvoker_, instance_, std::move(args), std::move(callback)); - } - - private: - friend class NativeAlertManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeAnimatedModuleEndResult - -template -struct NativeAnimatedModuleEndResult { - P0 finished; - P1 value; - P2 offset; - bool operator==(const NativeAnimatedModuleEndResult &other) const { - return finished == other.finished && value == other.value && offset == other.offset; - } -}; - -template -struct NativeAnimatedModuleEndResultBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "finished"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "value"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "offset"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool finishedToJs(jsi::Runtime &rt, decltype(types.finished) value) { - return bridging::toJs(rt, value); - } - - static double valueToJs(jsi::Runtime &rt, decltype(types.value) value) { - return bridging::toJs(rt, value); - } - - static double offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "finished", bridging::toJs(rt, value.finished, jsInvoker)); - if (value.value) { - result.setProperty(rt, "value", bridging::toJs(rt, value.value.value(), jsInvoker)); - } - if (value.offset) { - result.setProperty(rt, "offset", bridging::toJs(rt, value.offset.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativeAnimatedModuleEventMapping - -template -struct NativeAnimatedModuleEventMapping { - P0 nativeEventPath; - P1 animatedValueTag; - bool operator==(const NativeAnimatedModuleEventMapping &other) const { - return nativeEventPath == other.nativeEventPath && animatedValueTag == other.animatedValueTag; - } -}; - -template -struct NativeAnimatedModuleEventMappingBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "nativeEventPath"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "animatedValueTag"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::Array nativeEventPathToJs(jsi::Runtime &rt, decltype(types.nativeEventPath) value) { - return bridging::toJs(rt, value); - } - - static std::optional animatedValueTagToJs(jsi::Runtime &rt, decltype(types.animatedValueTag) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "nativeEventPath", bridging::toJs(rt, value.nativeEventPath, jsInvoker)); - result.setProperty(rt, "animatedValueTag", bridging::toJs(rt, value.animatedValueTag, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeAnimatedModuleCxxSpecJSI : public TurboModule { -protected: - NativeAnimatedModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void startOperationBatch(jsi::Runtime &rt) = 0; - virtual void finishOperationBatch(jsi::Runtime &rt) = 0; - virtual void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) = 0; - virtual void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) = 0; - virtual void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) = 0; - virtual void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; - virtual void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; - virtual void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; - virtual void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; - virtual void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) = 0; - virtual void stopAnimation(jsi::Runtime &rt, double animationId) = 0; - virtual void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) = 0; - virtual void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) = 0; - virtual void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; - virtual void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; - virtual void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; - virtual void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; - virtual void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) = 0; - virtual void dropAnimatedNode(jsi::Runtime &rt, double tag) = 0; - virtual void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) = 0; - virtual void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - virtual void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) = 0; - -}; - -template -class JSI_EXPORT NativeAnimatedModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeAnimatedModule"; - -protected: - NativeAnimatedModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAnimatedModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAnimatedModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAnimatedModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void startOperationBatch(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::startOperationBatch) == 1, - "Expected startOperationBatch(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::startOperationBatch, jsInvoker_, instance_); - } - void finishOperationBatch(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::finishOperationBatch) == 1, - "Expected finishOperationBatch(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::finishOperationBatch, jsInvoker_, instance_); - } - void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) override { - static_assert( - bridging::getParameterCount(&T::createAnimatedNode) == 3, - "Expected createAnimatedNode(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::createAnimatedNode, jsInvoker_, instance_, std::move(tag), std::move(config)); - } - void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) override { - static_assert( - bridging::getParameterCount(&T::updateAnimatedNodeConfig) == 3, - "Expected updateAnimatedNodeConfig(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::updateAnimatedNodeConfig, jsInvoker_, instance_, std::move(tag), std::move(config)); - } - void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) override { - static_assert( - bridging::getParameterCount(&T::getValue) == 3, - "Expected getValue(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getValue, jsInvoker_, instance_, std::move(tag), std::move(saveValueCallback)); - } - void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { - static_assert( - bridging::getParameterCount(&T::startListeningToAnimatedNodeValue) == 2, - "Expected startListeningToAnimatedNodeValue(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::startListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); - } - void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { - static_assert( - bridging::getParameterCount(&T::stopListeningToAnimatedNodeValue) == 2, - "Expected stopListeningToAnimatedNodeValue(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::stopListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); - } - void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { - static_assert( - bridging::getParameterCount(&T::connectAnimatedNodes) == 3, - "Expected connectAnimatedNodes(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::connectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); - } - void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { - static_assert( - bridging::getParameterCount(&T::disconnectAnimatedNodes) == 3, - "Expected disconnectAnimatedNodes(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::disconnectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); - } - void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) override { - static_assert( - bridging::getParameterCount(&T::startAnimatingNode) == 5, - "Expected startAnimatingNode(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::startAnimatingNode, jsInvoker_, instance_, std::move(animationId), std::move(nodeTag), std::move(config), std::move(endCallback)); - } - void stopAnimation(jsi::Runtime &rt, double animationId) override { - static_assert( - bridging::getParameterCount(&T::stopAnimation) == 2, - "Expected stopAnimation(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::stopAnimation, jsInvoker_, instance_, std::move(animationId)); - } - void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) override { - static_assert( - bridging::getParameterCount(&T::setAnimatedNodeValue) == 3, - "Expected setAnimatedNodeValue(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setAnimatedNodeValue, jsInvoker_, instance_, std::move(nodeTag), std::move(value)); - } - void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) override { - static_assert( - bridging::getParameterCount(&T::setAnimatedNodeOffset) == 3, - "Expected setAnimatedNodeOffset(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag), std::move(offset)); - } - void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { - static_assert( - bridging::getParameterCount(&T::flattenAnimatedNodeOffset) == 2, - "Expected flattenAnimatedNodeOffset(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::flattenAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); - } - void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { - static_assert( - bridging::getParameterCount(&T::extractAnimatedNodeOffset) == 2, - "Expected extractAnimatedNodeOffset(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::extractAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); - } - void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) override { - static_assert( - bridging::getParameterCount(&T::connectAnimatedNodeToView) == 3, - "Expected connectAnimatedNodeToView(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::connectAnimatedNodeToView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); - } - void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) override { - static_assert( - bridging::getParameterCount(&T::disconnectAnimatedNodeFromView) == 3, - "Expected disconnectAnimatedNodeFromView(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::disconnectAnimatedNodeFromView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); - } - void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) override { - static_assert( - bridging::getParameterCount(&T::restoreDefaultValues) == 2, - "Expected restoreDefaultValues(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::restoreDefaultValues, jsInvoker_, instance_, std::move(nodeTag)); - } - void dropAnimatedNode(jsi::Runtime &rt, double tag) override { - static_assert( - bridging::getParameterCount(&T::dropAnimatedNode) == 2, - "Expected dropAnimatedNode(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::dropAnimatedNode, jsInvoker_, instance_, std::move(tag)); - } - void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) override { - static_assert( - bridging::getParameterCount(&T::addAnimatedEventToView) == 4, - "Expected addAnimatedEventToView(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::addAnimatedEventToView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(eventMapping)); - } - void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) override { - static_assert( - bridging::getParameterCount(&T::removeAnimatedEventFromView) == 4, - "Expected removeAnimatedEventFromView(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::removeAnimatedEventFromView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(animatedNodeTag)); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) override { - static_assert( - bridging::getParameterCount(&T::queueAndExecuteBatchedOperations) == 2, - "Expected queueAndExecuteBatchedOperations(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::queueAndExecuteBatchedOperations, jsInvoker_, instance_, std::move(operationsAndArgs)); - } - - private: - friend class NativeAnimatedModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeAnimatedTurboModuleEndResult - -template -struct NativeAnimatedTurboModuleEndResult { - P0 finished; - P1 value; - P2 offset; - bool operator==(const NativeAnimatedTurboModuleEndResult &other) const { - return finished == other.finished && value == other.value && offset == other.offset; - } -}; - -template -struct NativeAnimatedTurboModuleEndResultBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "finished"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "value"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "offset"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool finishedToJs(jsi::Runtime &rt, decltype(types.finished) value) { - return bridging::toJs(rt, value); - } - - static double valueToJs(jsi::Runtime &rt, decltype(types.value) value) { - return bridging::toJs(rt, value); - } - - static double offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "finished", bridging::toJs(rt, value.finished, jsInvoker)); - if (value.value) { - result.setProperty(rt, "value", bridging::toJs(rt, value.value.value(), jsInvoker)); - } - if (value.offset) { - result.setProperty(rt, "offset", bridging::toJs(rt, value.offset.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativeAnimatedTurboModuleEventMapping - -template -struct NativeAnimatedTurboModuleEventMapping { - P0 nativeEventPath; - P1 animatedValueTag; - bool operator==(const NativeAnimatedTurboModuleEventMapping &other) const { - return nativeEventPath == other.nativeEventPath && animatedValueTag == other.animatedValueTag; - } -}; - -template -struct NativeAnimatedTurboModuleEventMappingBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "nativeEventPath"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "animatedValueTag"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::Array nativeEventPathToJs(jsi::Runtime &rt, decltype(types.nativeEventPath) value) { - return bridging::toJs(rt, value); - } - - static std::optional animatedValueTagToJs(jsi::Runtime &rt, decltype(types.animatedValueTag) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "nativeEventPath", bridging::toJs(rt, value.nativeEventPath, jsInvoker)); - result.setProperty(rt, "animatedValueTag", bridging::toJs(rt, value.animatedValueTag, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeAnimatedTurboModuleCxxSpecJSI : public TurboModule { -protected: - NativeAnimatedTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void startOperationBatch(jsi::Runtime &rt) = 0; - virtual void finishOperationBatch(jsi::Runtime &rt) = 0; - virtual void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) = 0; - virtual void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) = 0; - virtual void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) = 0; - virtual void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; - virtual void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; - virtual void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; - virtual void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; - virtual void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) = 0; - virtual void stopAnimation(jsi::Runtime &rt, double animationId) = 0; - virtual void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) = 0; - virtual void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) = 0; - virtual void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; - virtual void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; - virtual void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; - virtual void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; - virtual void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) = 0; - virtual void dropAnimatedNode(jsi::Runtime &rt, double tag) = 0; - virtual void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) = 0; - virtual void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - virtual void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) = 0; - -}; - -template -class JSI_EXPORT NativeAnimatedTurboModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeAnimatedTurboModule"; - -protected: - NativeAnimatedTurboModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAnimatedTurboModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAnimatedTurboModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAnimatedTurboModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void startOperationBatch(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::startOperationBatch) == 1, - "Expected startOperationBatch(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::startOperationBatch, jsInvoker_, instance_); - } - void finishOperationBatch(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::finishOperationBatch) == 1, - "Expected finishOperationBatch(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::finishOperationBatch, jsInvoker_, instance_); - } - void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) override { - static_assert( - bridging::getParameterCount(&T::createAnimatedNode) == 3, - "Expected createAnimatedNode(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::createAnimatedNode, jsInvoker_, instance_, std::move(tag), std::move(config)); - } - void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) override { - static_assert( - bridging::getParameterCount(&T::updateAnimatedNodeConfig) == 3, - "Expected updateAnimatedNodeConfig(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::updateAnimatedNodeConfig, jsInvoker_, instance_, std::move(tag), std::move(config)); - } - void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) override { - static_assert( - bridging::getParameterCount(&T::getValue) == 3, - "Expected getValue(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getValue, jsInvoker_, instance_, std::move(tag), std::move(saveValueCallback)); - } - void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { - static_assert( - bridging::getParameterCount(&T::startListeningToAnimatedNodeValue) == 2, - "Expected startListeningToAnimatedNodeValue(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::startListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); - } - void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { - static_assert( - bridging::getParameterCount(&T::stopListeningToAnimatedNodeValue) == 2, - "Expected stopListeningToAnimatedNodeValue(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::stopListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); - } - void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { - static_assert( - bridging::getParameterCount(&T::connectAnimatedNodes) == 3, - "Expected connectAnimatedNodes(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::connectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); - } - void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { - static_assert( - bridging::getParameterCount(&T::disconnectAnimatedNodes) == 3, - "Expected disconnectAnimatedNodes(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::disconnectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); - } - void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) override { - static_assert( - bridging::getParameterCount(&T::startAnimatingNode) == 5, - "Expected startAnimatingNode(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::startAnimatingNode, jsInvoker_, instance_, std::move(animationId), std::move(nodeTag), std::move(config), std::move(endCallback)); - } - void stopAnimation(jsi::Runtime &rt, double animationId) override { - static_assert( - bridging::getParameterCount(&T::stopAnimation) == 2, - "Expected stopAnimation(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::stopAnimation, jsInvoker_, instance_, std::move(animationId)); - } - void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) override { - static_assert( - bridging::getParameterCount(&T::setAnimatedNodeValue) == 3, - "Expected setAnimatedNodeValue(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setAnimatedNodeValue, jsInvoker_, instance_, std::move(nodeTag), std::move(value)); - } - void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) override { - static_assert( - bridging::getParameterCount(&T::setAnimatedNodeOffset) == 3, - "Expected setAnimatedNodeOffset(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag), std::move(offset)); - } - void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { - static_assert( - bridging::getParameterCount(&T::flattenAnimatedNodeOffset) == 2, - "Expected flattenAnimatedNodeOffset(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::flattenAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); - } - void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { - static_assert( - bridging::getParameterCount(&T::extractAnimatedNodeOffset) == 2, - "Expected extractAnimatedNodeOffset(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::extractAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); - } - void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) override { - static_assert( - bridging::getParameterCount(&T::connectAnimatedNodeToView) == 3, - "Expected connectAnimatedNodeToView(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::connectAnimatedNodeToView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); - } - void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) override { - static_assert( - bridging::getParameterCount(&T::disconnectAnimatedNodeFromView) == 3, - "Expected disconnectAnimatedNodeFromView(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::disconnectAnimatedNodeFromView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); - } - void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) override { - static_assert( - bridging::getParameterCount(&T::restoreDefaultValues) == 2, - "Expected restoreDefaultValues(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::restoreDefaultValues, jsInvoker_, instance_, std::move(nodeTag)); - } - void dropAnimatedNode(jsi::Runtime &rt, double tag) override { - static_assert( - bridging::getParameterCount(&T::dropAnimatedNode) == 2, - "Expected dropAnimatedNode(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::dropAnimatedNode, jsInvoker_, instance_, std::move(tag)); - } - void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) override { - static_assert( - bridging::getParameterCount(&T::addAnimatedEventToView) == 4, - "Expected addAnimatedEventToView(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::addAnimatedEventToView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(eventMapping)); - } - void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) override { - static_assert( - bridging::getParameterCount(&T::removeAnimatedEventFromView) == 4, - "Expected removeAnimatedEventFromView(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::removeAnimatedEventFromView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(animatedNodeTag)); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) override { - static_assert( - bridging::getParameterCount(&T::queueAndExecuteBatchedOperations) == 2, - "Expected queueAndExecuteBatchedOperations(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::queueAndExecuteBatchedOperations, jsInvoker_, instance_, std::move(operationsAndArgs)); - } - - private: - friend class NativeAnimatedTurboModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeAppearanceCxxSpecJSI : public TurboModule { -protected: - NativeAppearanceCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual std::optional getColorScheme(jsi::Runtime &rt) = 0; - virtual void setColorScheme(jsi::Runtime &rt, jsi::String colorScheme) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeAppearanceCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "Appearance"; - -protected: - NativeAppearanceCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAppearanceCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAppearanceCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAppearanceCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - std::optional getColorScheme(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getColorScheme) == 1, - "Expected getColorScheme(...) to have 1 parameters"); - - return bridging::callFromJs>( - rt, &T::getColorScheme, jsInvoker_, instance_); - } - void setColorScheme(jsi::Runtime &rt, jsi::String colorScheme) override { - static_assert( - bridging::getParameterCount(&T::setColorScheme) == 2, - "Expected setColorScheme(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setColorScheme, jsInvoker_, instance_, std::move(colorScheme)); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeAppearanceCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeAppStateAppState - -template -struct NativeAppStateAppState { - P0 app_state; - bool operator==(const NativeAppStateAppState &other) const { - return app_state == other.app_state; - } -}; - -template -struct NativeAppStateAppStateBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "app_state"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String app_stateToJs(jsi::Runtime &rt, decltype(types.app_state) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "app_state", bridging::toJs(rt, value.app_state, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativeAppStateAppStateConstants - -template -struct NativeAppStateAppStateConstants { - P0 initialAppState; - bool operator==(const NativeAppStateAppStateConstants &other) const { - return initialAppState == other.initialAppState; - } -}; - -template -struct NativeAppStateAppStateConstantsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "initialAppState"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String initialAppStateToJs(jsi::Runtime &rt, decltype(types.initialAppState) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "initialAppState", bridging::toJs(rt, value.initialAppState, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeAppStateCxxSpecJSI : public TurboModule { -protected: - NativeAppStateCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void getCurrentAppState(jsi::Runtime &rt, jsi::Function success, jsi::Function error) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeAppStateCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "AppState"; - -protected: - NativeAppStateCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAppStateCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAppStateCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAppStateCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void getCurrentAppState(jsi::Runtime &rt, jsi::Function success, jsi::Function error) override { - static_assert( - bridging::getParameterCount(&T::getCurrentAppState) == 3, - "Expected getCurrentAppState(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getCurrentAppState, jsInvoker_, instance_, std::move(success), std::move(error)); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeAppStateCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeAppThemeAppThemeData - -template -struct NativeAppThemeAppThemeData { - P0 isHighContrast; - P1 highContrastColors; - bool operator==(const NativeAppThemeAppThemeData &other) const { - return isHighContrast == other.isHighContrast && highContrastColors == other.highContrastColors; - } -}; - -template -struct NativeAppThemeAppThemeDataBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "isHighContrast"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "highContrastColors"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool isHighContrastToJs(jsi::Runtime &rt, decltype(types.isHighContrast) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object highContrastColorsToJs(jsi::Runtime &rt, decltype(types.highContrastColors) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "isHighContrast", bridging::toJs(rt, value.isHighContrast, jsInvoker)); - result.setProperty(rt, "highContrastColors", bridging::toJs(rt, value.highContrastColors, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativeAppThemeHighContrastColors - -template -struct NativeAppThemeHighContrastColors { - P0 ButtonFaceColor; - P1 ButtonTextColor; - P2 GrayTextColor; - P3 HighlightColor; - P4 HighlightTextColor; - P5 HotlightColor; - P6 WindowColor; - P7 WindowTextColor; - bool operator==(const NativeAppThemeHighContrastColors &other) const { - return ButtonFaceColor == other.ButtonFaceColor && ButtonTextColor == other.ButtonTextColor && GrayTextColor == other.GrayTextColor && HighlightColor == other.HighlightColor && HighlightTextColor == other.HighlightTextColor && HotlightColor == other.HotlightColor && WindowColor == other.WindowColor && WindowTextColor == other.WindowTextColor; - } -}; - -template -struct NativeAppThemeHighContrastColorsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "ButtonFaceColor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "ButtonTextColor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "GrayTextColor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "HighlightColor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "HighlightTextColor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "HotlightColor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "WindowColor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "WindowTextColor"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String ButtonFaceColorToJs(jsi::Runtime &rt, decltype(types.ButtonFaceColor) value) { - return bridging::toJs(rt, value); - } - - static jsi::String ButtonTextColorToJs(jsi::Runtime &rt, decltype(types.ButtonTextColor) value) { - return bridging::toJs(rt, value); - } - - static jsi::String GrayTextColorToJs(jsi::Runtime &rt, decltype(types.GrayTextColor) value) { - return bridging::toJs(rt, value); - } - - static jsi::String HighlightColorToJs(jsi::Runtime &rt, decltype(types.HighlightColor) value) { - return bridging::toJs(rt, value); - } - - static jsi::String HighlightTextColorToJs(jsi::Runtime &rt, decltype(types.HighlightTextColor) value) { - return bridging::toJs(rt, value); - } - - static jsi::String HotlightColorToJs(jsi::Runtime &rt, decltype(types.HotlightColor) value) { - return bridging::toJs(rt, value); - } - - static jsi::String WindowColorToJs(jsi::Runtime &rt, decltype(types.WindowColor) value) { - return bridging::toJs(rt, value); - } - - static jsi::String WindowTextColorToJs(jsi::Runtime &rt, decltype(types.WindowTextColor) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "ButtonFaceColor", bridging::toJs(rt, value.ButtonFaceColor, jsInvoker)); - result.setProperty(rt, "ButtonTextColor", bridging::toJs(rt, value.ButtonTextColor, jsInvoker)); - result.setProperty(rt, "GrayTextColor", bridging::toJs(rt, value.GrayTextColor, jsInvoker)); - result.setProperty(rt, "HighlightColor", bridging::toJs(rt, value.HighlightColor, jsInvoker)); - result.setProperty(rt, "HighlightTextColor", bridging::toJs(rt, value.HighlightTextColor, jsInvoker)); - result.setProperty(rt, "HotlightColor", bridging::toJs(rt, value.HotlightColor, jsInvoker)); - result.setProperty(rt, "WindowColor", bridging::toJs(rt, value.WindowColor, jsInvoker)); - result.setProperty(rt, "WindowTextColor", bridging::toJs(rt, value.WindowTextColor, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeAppThemeCxxSpecJSI : public TurboModule { -protected: - NativeAppThemeCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeAppThemeCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "AppTheme"; - -protected: - NativeAppThemeCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeAppThemeCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeAppThemeCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeAppThemeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - - private: - friend class NativeAppThemeCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeBlobModuleConstants - -template -struct NativeBlobModuleConstants { - P0 BLOB_URI_SCHEME; - P1 BLOB_URI_HOST; - bool operator==(const NativeBlobModuleConstants &other) const { - return BLOB_URI_SCHEME == other.BLOB_URI_SCHEME && BLOB_URI_HOST == other.BLOB_URI_HOST; - } -}; - -template -struct NativeBlobModuleConstantsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "BLOB_URI_SCHEME"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "BLOB_URI_HOST"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static std::optional BLOB_URI_SCHEMEToJs(jsi::Runtime &rt, decltype(types.BLOB_URI_SCHEME) value) { - return bridging::toJs(rt, value); - } - - static std::optional BLOB_URI_HOSTToJs(jsi::Runtime &rt, decltype(types.BLOB_URI_HOST) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "BLOB_URI_SCHEME", bridging::toJs(rt, value.BLOB_URI_SCHEME, jsInvoker)); - result.setProperty(rt, "BLOB_URI_HOST", bridging::toJs(rt, value.BLOB_URI_HOST, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeBlobModuleCxxSpecJSI : public TurboModule { -protected: - NativeBlobModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void addNetworkingHandler(jsi::Runtime &rt) = 0; - virtual void addWebSocketHandler(jsi::Runtime &rt, double id) = 0; - virtual void removeWebSocketHandler(jsi::Runtime &rt, double id) = 0; - virtual void sendOverSocket(jsi::Runtime &rt, jsi::Object blob, double socketID) = 0; - virtual void createFromParts(jsi::Runtime &rt, jsi::Array parts, jsi::String withId) = 0; - virtual void release(jsi::Runtime &rt, jsi::String blobId) = 0; - -}; - -template -class JSI_EXPORT NativeBlobModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "BlobModule"; - -protected: - NativeBlobModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeBlobModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeBlobModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeBlobModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void addNetworkingHandler(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::addNetworkingHandler) == 1, - "Expected addNetworkingHandler(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::addNetworkingHandler, jsInvoker_, instance_); - } - void addWebSocketHandler(jsi::Runtime &rt, double id) override { - static_assert( - bridging::getParameterCount(&T::addWebSocketHandler) == 2, - "Expected addWebSocketHandler(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addWebSocketHandler, jsInvoker_, instance_, std::move(id)); - } - void removeWebSocketHandler(jsi::Runtime &rt, double id) override { - static_assert( - bridging::getParameterCount(&T::removeWebSocketHandler) == 2, - "Expected removeWebSocketHandler(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeWebSocketHandler, jsInvoker_, instance_, std::move(id)); - } - void sendOverSocket(jsi::Runtime &rt, jsi::Object blob, double socketID) override { - static_assert( - bridging::getParameterCount(&T::sendOverSocket) == 3, - "Expected sendOverSocket(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::sendOverSocket, jsInvoker_, instance_, std::move(blob), std::move(socketID)); - } - void createFromParts(jsi::Runtime &rt, jsi::Array parts, jsi::String withId) override { - static_assert( - bridging::getParameterCount(&T::createFromParts) == 3, - "Expected createFromParts(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::createFromParts, jsInvoker_, instance_, std::move(parts), std::move(withId)); - } - void release(jsi::Runtime &rt, jsi::String blobId) override { - static_assert( - bridging::getParameterCount(&T::release) == 2, - "Expected release(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::release, jsInvoker_, instance_, std::move(blobId)); - } - - private: - friend class NativeBlobModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeClipboardCxxSpecJSI : public TurboModule { -protected: - NativeClipboardCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual jsi::Value getString(jsi::Runtime &rt) = 0; - virtual void setString(jsi::Runtime &rt, jsi::String content) = 0; - -}; - -template -class JSI_EXPORT NativeClipboardCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "Clipboard"; - -protected: - NativeClipboardCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeClipboardCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeClipboardCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeClipboardCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - jsi::Value getString(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getString) == 1, - "Expected getString(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getString, jsInvoker_, instance_); - } - void setString(jsi::Runtime &rt, jsi::String content) override { - static_assert( - bridging::getParameterCount(&T::setString) == 2, - "Expected setString(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setString, jsInvoker_, instance_, std::move(content)); - } - - private: - friend class NativeClipboardCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeDeviceEventManagerCxxSpecJSI : public TurboModule { -protected: - NativeDeviceEventManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void invokeDefaultBackPressHandler(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeDeviceEventManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "DeviceEventManager"; - -protected: - NativeDeviceEventManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDeviceEventManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDeviceEventManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDeviceEventManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void invokeDefaultBackPressHandler(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::invokeDefaultBackPressHandler) == 1, - "Expected invokeDefaultBackPressHandler(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::invokeDefaultBackPressHandler, jsInvoker_, instance_); - } - - private: - friend class NativeDeviceEventManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeDeviceInfoDeviceInfoConstants - -template -struct NativeDeviceInfoDeviceInfoConstants { - P0 Dimensions; - P1 isEdgeToEdge; - P2 isIPhoneX_deprecated; - bool operator==(const NativeDeviceInfoDeviceInfoConstants &other) const { - return Dimensions == other.Dimensions && isEdgeToEdge == other.isEdgeToEdge && isIPhoneX_deprecated == other.isIPhoneX_deprecated; - } -}; - -template -struct NativeDeviceInfoDeviceInfoConstantsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "Dimensions"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isEdgeToEdge"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isIPhoneX_deprecated"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::Object DimensionsToJs(jsi::Runtime &rt, decltype(types.Dimensions) value) { - return bridging::toJs(rt, value); - } - - static bool isEdgeToEdgeToJs(jsi::Runtime &rt, decltype(types.isEdgeToEdge) value) { - return bridging::toJs(rt, value); - } - - static bool isIPhoneX_deprecatedToJs(jsi::Runtime &rt, decltype(types.isIPhoneX_deprecated) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "Dimensions", bridging::toJs(rt, value.Dimensions, jsInvoker)); - if (value.isEdgeToEdge) { - result.setProperty(rt, "isEdgeToEdge", bridging::toJs(rt, value.isEdgeToEdge.value(), jsInvoker)); - } - if (value.isIPhoneX_deprecated) { - result.setProperty(rt, "isIPhoneX_deprecated", bridging::toJs(rt, value.isIPhoneX_deprecated.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativeDeviceInfoDimensionsPayload - -template -struct NativeDeviceInfoDimensionsPayload { - P0 window; - P1 screen; - P2 windowPhysicalPixels; - P3 screenPhysicalPixels; - bool operator==(const NativeDeviceInfoDimensionsPayload &other) const { - return window == other.window && screen == other.screen && windowPhysicalPixels == other.windowPhysicalPixels && screenPhysicalPixels == other.screenPhysicalPixels; - } -}; - -template -struct NativeDeviceInfoDimensionsPayloadBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "window"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "screen"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "windowPhysicalPixels"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "screenPhysicalPixels"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::Object windowToJs(jsi::Runtime &rt, decltype(types.window) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object screenToJs(jsi::Runtime &rt, decltype(types.screen) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object windowPhysicalPixelsToJs(jsi::Runtime &rt, decltype(types.windowPhysicalPixels) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object screenPhysicalPixelsToJs(jsi::Runtime &rt, decltype(types.screenPhysicalPixels) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.window) { - result.setProperty(rt, "window", bridging::toJs(rt, value.window.value(), jsInvoker)); - } - if (value.screen) { - result.setProperty(rt, "screen", bridging::toJs(rt, value.screen.value(), jsInvoker)); - } - if (value.windowPhysicalPixels) { - result.setProperty(rt, "windowPhysicalPixels", bridging::toJs(rt, value.windowPhysicalPixels.value(), jsInvoker)); - } - if (value.screenPhysicalPixels) { - result.setProperty(rt, "screenPhysicalPixels", bridging::toJs(rt, value.screenPhysicalPixels.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativeDeviceInfoDisplayMetrics - -template -struct NativeDeviceInfoDisplayMetrics { - P0 width; - P1 height; - P2 scale; - P3 fontScale; - bool operator==(const NativeDeviceInfoDisplayMetrics &other) const { - return width == other.width && height == other.height && scale == other.scale && fontScale == other.fontScale; - } -}; - -template -struct NativeDeviceInfoDisplayMetricsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "width"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "height"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "scale"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "fontScale"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double widthToJs(jsi::Runtime &rt, decltype(types.width) value) { - return bridging::toJs(rt, value); - } - - static double heightToJs(jsi::Runtime &rt, decltype(types.height) value) { - return bridging::toJs(rt, value); - } - - static double scaleToJs(jsi::Runtime &rt, decltype(types.scale) value) { - return bridging::toJs(rt, value); - } - - static double fontScaleToJs(jsi::Runtime &rt, decltype(types.fontScale) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "width", bridging::toJs(rt, value.width, jsInvoker)); - result.setProperty(rt, "height", bridging::toJs(rt, value.height, jsInvoker)); - result.setProperty(rt, "scale", bridging::toJs(rt, value.scale, jsInvoker)); - result.setProperty(rt, "fontScale", bridging::toJs(rt, value.fontScale, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativeDeviceInfoDisplayMetricsAndroid - -template -struct NativeDeviceInfoDisplayMetricsAndroid { - P0 width; - P1 height; - P2 scale; - P3 fontScale; - P4 densityDpi; - bool operator==(const NativeDeviceInfoDisplayMetricsAndroid &other) const { - return width == other.width && height == other.height && scale == other.scale && fontScale == other.fontScale && densityDpi == other.densityDpi; - } -}; - -template -struct NativeDeviceInfoDisplayMetricsAndroidBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "width"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "height"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "scale"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "fontScale"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "densityDpi"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double widthToJs(jsi::Runtime &rt, decltype(types.width) value) { - return bridging::toJs(rt, value); - } - - static double heightToJs(jsi::Runtime &rt, decltype(types.height) value) { - return bridging::toJs(rt, value); - } - - static double scaleToJs(jsi::Runtime &rt, decltype(types.scale) value) { - return bridging::toJs(rt, value); - } - - static double fontScaleToJs(jsi::Runtime &rt, decltype(types.fontScale) value) { - return bridging::toJs(rt, value); - } - - static double densityDpiToJs(jsi::Runtime &rt, decltype(types.densityDpi) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "width", bridging::toJs(rt, value.width, jsInvoker)); - result.setProperty(rt, "height", bridging::toJs(rt, value.height, jsInvoker)); - result.setProperty(rt, "scale", bridging::toJs(rt, value.scale, jsInvoker)); - result.setProperty(rt, "fontScale", bridging::toJs(rt, value.fontScale, jsInvoker)); - result.setProperty(rt, "densityDpi", bridging::toJs(rt, value.densityDpi, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeDeviceInfoCxxSpecJSI : public TurboModule { -protected: - NativeDeviceInfoCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeDeviceInfoCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "DeviceInfo"; - -protected: - NativeDeviceInfoCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDeviceInfoCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDeviceInfoCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDeviceInfoCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - - private: - friend class NativeDeviceInfoCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeDevLoadingViewCxxSpecJSI : public TurboModule { -protected: - NativeDevLoadingViewCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void showMessage(jsi::Runtime &rt, jsi::String message, std::optional withColor, std::optional withBackgroundColor) = 0; - virtual void hide(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeDevLoadingViewCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "DevLoadingView"; - -protected: - NativeDevLoadingViewCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDevLoadingViewCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDevLoadingViewCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDevLoadingViewCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void showMessage(jsi::Runtime &rt, jsi::String message, std::optional withColor, std::optional withBackgroundColor) override { - static_assert( - bridging::getParameterCount(&T::showMessage) == 4, - "Expected showMessage(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::showMessage, jsInvoker_, instance_, std::move(message), std::move(withColor), std::move(withBackgroundColor)); - } - void hide(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::hide) == 1, - "Expected hide(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::hide, jsInvoker_, instance_); - } - - private: - friend class NativeDevLoadingViewCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeDevSettingsCxxSpecJSI : public TurboModule { -protected: - NativeDevSettingsCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void reload(jsi::Runtime &rt) = 0; - virtual void reloadWithReason(jsi::Runtime &rt, jsi::String reason) = 0; - virtual void onFastRefresh(jsi::Runtime &rt) = 0; - virtual void setHotLoadingEnabled(jsi::Runtime &rt, bool isHotLoadingEnabled) = 0; - virtual void setProfilingEnabled(jsi::Runtime &rt, bool isProfilingEnabled) = 0; - virtual void toggleElementInspector(jsi::Runtime &rt) = 0; - virtual void addMenuItem(jsi::Runtime &rt, jsi::String title) = 0; - virtual void openDebugger(jsi::Runtime &rt) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - virtual void setIsShakeToShowDevMenuEnabled(jsi::Runtime &rt, bool enabled) = 0; - -}; - -template -class JSI_EXPORT NativeDevSettingsCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "DevSettings"; - -protected: - NativeDevSettingsCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDevSettingsCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDevSettingsCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDevSettingsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void reload(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::reload) == 1, - "Expected reload(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::reload, jsInvoker_, instance_); - } - void reloadWithReason(jsi::Runtime &rt, jsi::String reason) override { - static_assert( - bridging::getParameterCount(&T::reloadWithReason) == 2, - "Expected reloadWithReason(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::reloadWithReason, jsInvoker_, instance_, std::move(reason)); - } - void onFastRefresh(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::onFastRefresh) == 1, - "Expected onFastRefresh(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::onFastRefresh, jsInvoker_, instance_); - } - void setHotLoadingEnabled(jsi::Runtime &rt, bool isHotLoadingEnabled) override { - static_assert( - bridging::getParameterCount(&T::setHotLoadingEnabled) == 2, - "Expected setHotLoadingEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setHotLoadingEnabled, jsInvoker_, instance_, std::move(isHotLoadingEnabled)); - } - void setProfilingEnabled(jsi::Runtime &rt, bool isProfilingEnabled) override { - static_assert( - bridging::getParameterCount(&T::setProfilingEnabled) == 2, - "Expected setProfilingEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setProfilingEnabled, jsInvoker_, instance_, std::move(isProfilingEnabled)); - } - void toggleElementInspector(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::toggleElementInspector) == 1, - "Expected toggleElementInspector(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::toggleElementInspector, jsInvoker_, instance_); - } - void addMenuItem(jsi::Runtime &rt, jsi::String title) override { - static_assert( - bridging::getParameterCount(&T::addMenuItem) == 2, - "Expected addMenuItem(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addMenuItem, jsInvoker_, instance_, std::move(title)); - } - void openDebugger(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::openDebugger) == 1, - "Expected openDebugger(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::openDebugger, jsInvoker_, instance_); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - void setIsShakeToShowDevMenuEnabled(jsi::Runtime &rt, bool enabled) override { - static_assert( - bridging::getParameterCount(&T::setIsShakeToShowDevMenuEnabled) == 2, - "Expected setIsShakeToShowDevMenuEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setIsShakeToShowDevMenuEnabled, jsInvoker_, instance_, std::move(enabled)); - } - - private: - friend class NativeDevSettingsCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeDialogManagerAndroidDialogOptions - -template -struct NativeDialogManagerAndroidDialogOptions { - P0 title; - P1 message; - P2 buttonPositive; - P3 buttonNegative; - P4 buttonNeutral; - P5 items; - P6 cancelable; - bool operator==(const NativeDialogManagerAndroidDialogOptions &other) const { - return title == other.title && message == other.message && buttonPositive == other.buttonPositive && buttonNegative == other.buttonNegative && buttonNeutral == other.buttonNeutral && items == other.items && cancelable == other.cancelable; - } -}; - -template -struct NativeDialogManagerAndroidDialogOptionsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "title"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buttonPositive"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buttonNegative"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buttonNeutral"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "items"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "cancelable"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String titleToJs(jsi::Runtime &rt, decltype(types.title) value) { - return bridging::toJs(rt, value); - } - - static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { - return bridging::toJs(rt, value); - } - - static jsi::String buttonPositiveToJs(jsi::Runtime &rt, decltype(types.buttonPositive) value) { - return bridging::toJs(rt, value); - } - - static jsi::String buttonNegativeToJs(jsi::Runtime &rt, decltype(types.buttonNegative) value) { - return bridging::toJs(rt, value); - } - - static jsi::String buttonNeutralToJs(jsi::Runtime &rt, decltype(types.buttonNeutral) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array itemsToJs(jsi::Runtime &rt, decltype(types.items) value) { - return bridging::toJs(rt, value); - } - - static bool cancelableToJs(jsi::Runtime &rt, decltype(types.cancelable) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.title) { - result.setProperty(rt, "title", bridging::toJs(rt, value.title.value(), jsInvoker)); - } - if (value.message) { - result.setProperty(rt, "message", bridging::toJs(rt, value.message.value(), jsInvoker)); - } - if (value.buttonPositive) { - result.setProperty(rt, "buttonPositive", bridging::toJs(rt, value.buttonPositive.value(), jsInvoker)); - } - if (value.buttonNegative) { - result.setProperty(rt, "buttonNegative", bridging::toJs(rt, value.buttonNegative.value(), jsInvoker)); - } - if (value.buttonNeutral) { - result.setProperty(rt, "buttonNeutral", bridging::toJs(rt, value.buttonNeutral.value(), jsInvoker)); - } - if (value.items) { - result.setProperty(rt, "items", bridging::toJs(rt, value.items.value(), jsInvoker)); - } - if (value.cancelable) { - result.setProperty(rt, "cancelable", bridging::toJs(rt, value.cancelable.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeDialogManagerAndroidCxxSpecJSI : public TurboModule { -protected: - NativeDialogManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) = 0; - -}; - -template -class JSI_EXPORT NativeDialogManagerAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "DialogManagerAndroid"; - -protected: - NativeDialogManagerAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDialogManagerAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDialogManagerAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDialogManagerAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) override { - static_assert( - bridging::getParameterCount(&T::showAlert) == 4, - "Expected showAlert(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::showAlert, jsInvoker_, instance_, std::move(config), std::move(onError), std::move(onAction)); - } - - private: - friend class NativeDialogManagerAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeDialogManagerWindowsDialogOptions - -template -struct NativeDialogManagerWindowsDialogOptions { - P0 title; - P1 message; - P2 buttonPositive; - P3 buttonNegative; - P4 buttonNeutral; - P5 items; - P6 cancelable; - P7 defaultButton; - P8 rootTag; - bool operator==(const NativeDialogManagerWindowsDialogOptions &other) const { - return title == other.title && message == other.message && buttonPositive == other.buttonPositive && buttonNegative == other.buttonNegative && buttonNeutral == other.buttonNeutral && items == other.items && cancelable == other.cancelable && defaultButton == other.defaultButton && rootTag == other.rootTag; - } -}; - -template -struct NativeDialogManagerWindowsDialogOptionsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "title"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buttonPositive"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buttonNegative"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buttonNeutral"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "items"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "cancelable"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "defaultButton"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "rootTag"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String titleToJs(jsi::Runtime &rt, decltype(types.title) value) { - return bridging::toJs(rt, value); - } - - static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { - return bridging::toJs(rt, value); - } - - static jsi::String buttonPositiveToJs(jsi::Runtime &rt, decltype(types.buttonPositive) value) { - return bridging::toJs(rt, value); - } - - static jsi::String buttonNegativeToJs(jsi::Runtime &rt, decltype(types.buttonNegative) value) { - return bridging::toJs(rt, value); - } - - static jsi::String buttonNeutralToJs(jsi::Runtime &rt, decltype(types.buttonNeutral) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array itemsToJs(jsi::Runtime &rt, decltype(types.items) value) { - return bridging::toJs(rt, value); - } - - static bool cancelableToJs(jsi::Runtime &rt, decltype(types.cancelable) value) { - return bridging::toJs(rt, value); - } - - static int defaultButtonToJs(jsi::Runtime &rt, decltype(types.defaultButton) value) { - return bridging::toJs(rt, value); - } - - static int rootTagToJs(jsi::Runtime &rt, decltype(types.rootTag) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.title) { - result.setProperty(rt, "title", bridging::toJs(rt, value.title.value(), jsInvoker)); - } - if (value.message) { - result.setProperty(rt, "message", bridging::toJs(rt, value.message.value(), jsInvoker)); - } - if (value.buttonPositive) { - result.setProperty(rt, "buttonPositive", bridging::toJs(rt, value.buttonPositive.value(), jsInvoker)); - } - if (value.buttonNegative) { - result.setProperty(rt, "buttonNegative", bridging::toJs(rt, value.buttonNegative.value(), jsInvoker)); - } - if (value.buttonNeutral) { - result.setProperty(rt, "buttonNeutral", bridging::toJs(rt, value.buttonNeutral.value(), jsInvoker)); - } - if (value.items) { - result.setProperty(rt, "items", bridging::toJs(rt, value.items.value(), jsInvoker)); - } - if (value.cancelable) { - result.setProperty(rt, "cancelable", bridging::toJs(rt, value.cancelable.value(), jsInvoker)); - } - if (value.defaultButton) { - result.setProperty(rt, "defaultButton", bridging::toJs(rt, value.defaultButton.value(), jsInvoker)); - } - if (value.rootTag) { - result.setProperty(rt, "rootTag", bridging::toJs(rt, value.rootTag.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeDialogManagerWindowsCxxSpecJSI : public TurboModule { -protected: - NativeDialogManagerWindowsCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) = 0; - -}; - -template -class JSI_EXPORT NativeDialogManagerWindowsCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "Alert"; - -protected: - NativeDialogManagerWindowsCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDialogManagerWindowsCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDialogManagerWindowsCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDialogManagerWindowsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) override { - static_assert( - bridging::getParameterCount(&T::showAlert) == 4, - "Expected showAlert(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::showAlert, jsInvoker_, instance_, std::move(config), std::move(onError), std::move(onAction)); - } - - private: - friend class NativeDialogManagerWindowsCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeExceptionsManagerExceptionData - -template -struct NativeExceptionsManagerExceptionData { - P0 message; - P1 originalMessage; - P2 name; - P3 componentStack; - P4 stack; - P5 id; - P6 isFatal; - P7 extraData; - bool operator==(const NativeExceptionsManagerExceptionData &other) const { - return message == other.message && originalMessage == other.originalMessage && name == other.name && componentStack == other.componentStack && stack == other.stack && id == other.id && isFatal == other.isFatal && extraData == other.extraData; - } -}; - -template -struct NativeExceptionsManagerExceptionDataBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "originalMessage"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "name"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "componentStack"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "stack"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "id"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isFatal"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "extraData"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { - return bridging::toJs(rt, value); - } - - static std::optional originalMessageToJs(jsi::Runtime &rt, decltype(types.originalMessage) value) { - return bridging::toJs(rt, value); - } - - static std::optional nameToJs(jsi::Runtime &rt, decltype(types.name) value) { - return bridging::toJs(rt, value); - } - - static std::optional componentStackToJs(jsi::Runtime &rt, decltype(types.componentStack) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array stackToJs(jsi::Runtime &rt, decltype(types.stack) value) { - return bridging::toJs(rt, value); - } - - static double idToJs(jsi::Runtime &rt, decltype(types.id) value) { - return bridging::toJs(rt, value); - } - - static bool isFatalToJs(jsi::Runtime &rt, decltype(types.isFatal) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object extraDataToJs(jsi::Runtime &rt, decltype(types.extraData) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "message", bridging::toJs(rt, value.message, jsInvoker)); - result.setProperty(rt, "originalMessage", bridging::toJs(rt, value.originalMessage, jsInvoker)); - result.setProperty(rt, "name", bridging::toJs(rt, value.name, jsInvoker)); - result.setProperty(rt, "componentStack", bridging::toJs(rt, value.componentStack, jsInvoker)); - result.setProperty(rt, "stack", bridging::toJs(rt, value.stack, jsInvoker)); - result.setProperty(rt, "id", bridging::toJs(rt, value.id, jsInvoker)); - result.setProperty(rt, "isFatal", bridging::toJs(rt, value.isFatal, jsInvoker)); - if (value.extraData) { - result.setProperty(rt, "extraData", bridging::toJs(rt, value.extraData.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativeExceptionsManagerStackFrame - -template -struct NativeExceptionsManagerStackFrame { - P0 column; - P1 file; - P2 lineNumber; - P3 methodName; - P4 collapse; - bool operator==(const NativeExceptionsManagerStackFrame &other) const { - return column == other.column && file == other.file && lineNumber == other.lineNumber && methodName == other.methodName && collapse == other.collapse; - } -}; - -template -struct NativeExceptionsManagerStackFrameBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "column"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "file"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "lineNumber"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "methodName"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "collapse"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static std::optional columnToJs(jsi::Runtime &rt, decltype(types.column) value) { - return bridging::toJs(rt, value); - } - - static std::optional fileToJs(jsi::Runtime &rt, decltype(types.file) value) { - return bridging::toJs(rt, value); - } - - static std::optional lineNumberToJs(jsi::Runtime &rt, decltype(types.lineNumber) value) { - return bridging::toJs(rt, value); - } - - static jsi::String methodNameToJs(jsi::Runtime &rt, decltype(types.methodName) value) { - return bridging::toJs(rt, value); - } - - static bool collapseToJs(jsi::Runtime &rt, decltype(types.collapse) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "column", bridging::toJs(rt, value.column, jsInvoker)); - result.setProperty(rt, "file", bridging::toJs(rt, value.file, jsInvoker)); - result.setProperty(rt, "lineNumber", bridging::toJs(rt, value.lineNumber, jsInvoker)); - result.setProperty(rt, "methodName", bridging::toJs(rt, value.methodName, jsInvoker)); - if (value.collapse) { - result.setProperty(rt, "collapse", bridging::toJs(rt, value.collapse.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeExceptionsManagerCxxSpecJSI : public TurboModule { -protected: - NativeExceptionsManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void reportFatalException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) = 0; - virtual void reportSoftException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) = 0; - virtual void reportException(jsi::Runtime &rt, jsi::Object data) = 0; - virtual void dismissRedbox(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeExceptionsManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ExceptionsManager"; - -protected: - NativeExceptionsManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeExceptionsManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeExceptionsManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeExceptionsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void reportFatalException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) override { - static_assert( - bridging::getParameterCount(&T::reportFatalException) == 4, - "Expected reportFatalException(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::reportFatalException, jsInvoker_, instance_, std::move(message), std::move(stack), std::move(exceptionId)); - } - void reportSoftException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) override { - static_assert( - bridging::getParameterCount(&T::reportSoftException) == 4, - "Expected reportSoftException(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::reportSoftException, jsInvoker_, instance_, std::move(message), std::move(stack), std::move(exceptionId)); - } - void reportException(jsi::Runtime &rt, jsi::Object data) override { - static_assert( - bridging::getParameterCount(&T::reportException) == 2, - "Expected reportException(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::reportException, jsInvoker_, instance_, std::move(data)); - } - void dismissRedbox(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::dismissRedbox) == 1, - "Expected dismissRedbox(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::dismissRedbox, jsInvoker_, instance_); - } - - private: - friend class NativeExceptionsManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeFileReaderModuleCxxSpecJSI : public TurboModule { -protected: - NativeFileReaderModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Value readAsDataURL(jsi::Runtime &rt, jsi::Object data) = 0; - virtual jsi::Value readAsText(jsi::Runtime &rt, jsi::Object data, jsi::String encoding) = 0; - -}; - -template -class JSI_EXPORT NativeFileReaderModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "FileReaderModule"; - -protected: - NativeFileReaderModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeFileReaderModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeFileReaderModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeFileReaderModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Value readAsDataURL(jsi::Runtime &rt, jsi::Object data) override { - static_assert( - bridging::getParameterCount(&T::readAsDataURL) == 2, - "Expected readAsDataURL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::readAsDataURL, jsInvoker_, instance_, std::move(data)); - } - jsi::Value readAsText(jsi::Runtime &rt, jsi::Object data, jsi::String encoding) override { - static_assert( - bridging::getParameterCount(&T::readAsText) == 3, - "Expected readAsText(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::readAsText, jsInvoker_, instance_, std::move(data), std::move(encoding)); - } - - private: - friend class NativeFileReaderModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeFrameRateLoggerCxxSpecJSI : public TurboModule { -protected: - NativeFrameRateLoggerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void setGlobalOptions(jsi::Runtime &rt, jsi::Object options) = 0; - virtual void setContext(jsi::Runtime &rt, jsi::String context) = 0; - virtual void beginScroll(jsi::Runtime &rt) = 0; - virtual void endScroll(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeFrameRateLoggerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "FrameRateLogger"; - -protected: - NativeFrameRateLoggerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeFrameRateLoggerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeFrameRateLoggerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeFrameRateLoggerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void setGlobalOptions(jsi::Runtime &rt, jsi::Object options) override { - static_assert( - bridging::getParameterCount(&T::setGlobalOptions) == 2, - "Expected setGlobalOptions(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setGlobalOptions, jsInvoker_, instance_, std::move(options)); - } - void setContext(jsi::Runtime &rt, jsi::String context) override { - static_assert( - bridging::getParameterCount(&T::setContext) == 2, - "Expected setContext(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setContext, jsInvoker_, instance_, std::move(context)); - } - void beginScroll(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::beginScroll) == 1, - "Expected beginScroll(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::beginScroll, jsInvoker_, instance_); - } - void endScroll(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::endScroll) == 1, - "Expected endScroll(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::endScroll, jsInvoker_, instance_); - } - - private: - friend class NativeFrameRateLoggerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeHeadlessJsTaskSupportCxxSpecJSI : public TurboModule { -protected: - NativeHeadlessJsTaskSupportCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void notifyTaskFinished(jsi::Runtime &rt, double taskId) = 0; - virtual jsi::Value notifyTaskRetry(jsi::Runtime &rt, double taskId) = 0; - -}; - -template -class JSI_EXPORT NativeHeadlessJsTaskSupportCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "HeadlessJsTaskSupport"; - -protected: - NativeHeadlessJsTaskSupportCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeHeadlessJsTaskSupportCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeHeadlessJsTaskSupportCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeHeadlessJsTaskSupportCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void notifyTaskFinished(jsi::Runtime &rt, double taskId) override { - static_assert( - bridging::getParameterCount(&T::notifyTaskFinished) == 2, - "Expected notifyTaskFinished(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::notifyTaskFinished, jsInvoker_, instance_, std::move(taskId)); - } - jsi::Value notifyTaskRetry(jsi::Runtime &rt, double taskId) override { - static_assert( - bridging::getParameterCount(&T::notifyTaskRetry) == 2, - "Expected notifyTaskRetry(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::notifyTaskRetry, jsInvoker_, instance_, std::move(taskId)); - } - - private: - friend class NativeHeadlessJsTaskSupportCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeI18nManagerI18nManagerConstants - -template -struct NativeI18nManagerI18nManagerConstants { - P0 doLeftAndRightSwapInRTL; - P1 isRTL; - P2 localeIdentifier; - bool operator==(const NativeI18nManagerI18nManagerConstants &other) const { - return doLeftAndRightSwapInRTL == other.doLeftAndRightSwapInRTL && isRTL == other.isRTL && localeIdentifier == other.localeIdentifier; - } -}; - -template -struct NativeI18nManagerI18nManagerConstantsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "doLeftAndRightSwapInRTL"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isRTL"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "localeIdentifier"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool doLeftAndRightSwapInRTLToJs(jsi::Runtime &rt, decltype(types.doLeftAndRightSwapInRTL) value) { - return bridging::toJs(rt, value); - } - - static bool isRTLToJs(jsi::Runtime &rt, decltype(types.isRTL) value) { - return bridging::toJs(rt, value); - } - - static std::optional localeIdentifierToJs(jsi::Runtime &rt, decltype(types.localeIdentifier) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "doLeftAndRightSwapInRTL", bridging::toJs(rt, value.doLeftAndRightSwapInRTL, jsInvoker)); - result.setProperty(rt, "isRTL", bridging::toJs(rt, value.isRTL, jsInvoker)); - if (value.localeIdentifier) { - result.setProperty(rt, "localeIdentifier", bridging::toJs(rt, value.localeIdentifier.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeI18nManagerCxxSpecJSI : public TurboModule { -protected: - NativeI18nManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void allowRTL(jsi::Runtime &rt, bool allowRTL) = 0; - virtual void forceRTL(jsi::Runtime &rt, bool forceRTL) = 0; - virtual void swapLeftAndRightInRTL(jsi::Runtime &rt, bool flipStyles) = 0; - -}; - -template -class JSI_EXPORT NativeI18nManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "I18nManager"; - -protected: - NativeI18nManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeI18nManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeI18nManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeI18nManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void allowRTL(jsi::Runtime &rt, bool allowRTL) override { - static_assert( - bridging::getParameterCount(&T::allowRTL) == 2, - "Expected allowRTL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::allowRTL, jsInvoker_, instance_, std::move(allowRTL)); - } - void forceRTL(jsi::Runtime &rt, bool forceRTL) override { - static_assert( - bridging::getParameterCount(&T::forceRTL) == 2, - "Expected forceRTL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::forceRTL, jsInvoker_, instance_, std::move(forceRTL)); - } - void swapLeftAndRightInRTL(jsi::Runtime &rt, bool flipStyles) override { - static_assert( - bridging::getParameterCount(&T::swapLeftAndRightInRTL) == 2, - "Expected swapLeftAndRightInRTL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::swapLeftAndRightInRTL, jsInvoker_, instance_, std::move(flipStyles)); - } - - private: - friend class NativeI18nManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeImageEditorOptions - -template -struct NativeImageEditorOptions { - P0 offset; - P1 size; - P2 displaySize; - P3 resizeMode; - P4 allowExternalStorage; - bool operator==(const NativeImageEditorOptions &other) const { - return offset == other.offset && size == other.size && displaySize == other.displaySize && resizeMode == other.resizeMode && allowExternalStorage == other.allowExternalStorage; - } -}; - -template -struct NativeImageEditorOptionsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "offset"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "size"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "displaySize"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "resizeMode"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "allowExternalStorage"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::Object offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object sizeToJs(jsi::Runtime &rt, decltype(types.size) value) { - return bridging::toJs(rt, value); - } - - static std::optional displaySizeToJs(jsi::Runtime &rt, decltype(types.displaySize) value) { - return bridging::toJs(rt, value); - } - - static std::optional resizeModeToJs(jsi::Runtime &rt, decltype(types.resizeMode) value) { - return bridging::toJs(rt, value); - } - - static bool allowExternalStorageToJs(jsi::Runtime &rt, decltype(types.allowExternalStorage) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "offset", bridging::toJs(rt, value.offset, jsInvoker)); - result.setProperty(rt, "size", bridging::toJs(rt, value.size, jsInvoker)); - if (value.displaySize) { - result.setProperty(rt, "displaySize", bridging::toJs(rt, value.displaySize.value(), jsInvoker)); - } - if (value.resizeMode) { - result.setProperty(rt, "resizeMode", bridging::toJs(rt, value.resizeMode.value(), jsInvoker)); - } - if (value.allowExternalStorage) { - result.setProperty(rt, "allowExternalStorage", bridging::toJs(rt, value.allowExternalStorage.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeImageEditorCxxSpecJSI : public TurboModule { -protected: - NativeImageEditorCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void cropImage(jsi::Runtime &rt, jsi::String uri, jsi::Object cropData, jsi::Function successCallback, jsi::Function errorCallback) = 0; - -}; - -template -class JSI_EXPORT NativeImageEditorCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ImageEditingManager"; - -protected: - NativeImageEditorCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeImageEditorCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeImageEditorCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeImageEditorCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void cropImage(jsi::Runtime &rt, jsi::String uri, jsi::Object cropData, jsi::Function successCallback, jsi::Function errorCallback) override { - static_assert( - bridging::getParameterCount(&T::cropImage) == 5, - "Expected cropImage(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::cropImage, jsInvoker_, instance_, std::move(uri), std::move(cropData), std::move(successCallback), std::move(errorCallback)); - } - - private: - friend class NativeImageEditorCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeImageLoaderAndroidImageSize - -template -struct NativeImageLoaderAndroidImageSize { - P0 width; - P1 height; - bool operator==(const NativeImageLoaderAndroidImageSize &other) const { - return width == other.width && height == other.height; - } -}; - -template -struct NativeImageLoaderAndroidImageSizeBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "width"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "height"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double widthToJs(jsi::Runtime &rt, decltype(types.width) value) { - return bridging::toJs(rt, value); - } - - static double heightToJs(jsi::Runtime &rt, decltype(types.height) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "width", bridging::toJs(rt, value.width, jsInvoker)); - result.setProperty(rt, "height", bridging::toJs(rt, value.height, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeImageLoaderAndroidCxxSpecJSI : public TurboModule { -protected: - NativeImageLoaderAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void abortRequest(jsi::Runtime &rt, double requestId) = 0; - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) = 0; - virtual jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) = 0; - virtual jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri, double requestId) = 0; - virtual jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) = 0; - -}; - -template -class JSI_EXPORT NativeImageLoaderAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ImageLoader"; - -protected: - NativeImageLoaderAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeImageLoaderAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeImageLoaderAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeImageLoaderAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void abortRequest(jsi::Runtime &rt, double requestId) override { - static_assert( - bridging::getParameterCount(&T::abortRequest) == 2, - "Expected abortRequest(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::abortRequest, jsInvoker_, instance_, std::move(requestId)); - } - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) override { - static_assert( - bridging::getParameterCount(&T::getSize) == 2, - "Expected getSize(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getSize, jsInvoker_, instance_, std::move(uri)); - } - jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) override { - static_assert( - bridging::getParameterCount(&T::getSizeWithHeaders) == 3, - "Expected getSizeWithHeaders(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getSizeWithHeaders, jsInvoker_, instance_, std::move(uri), std::move(headers)); - } - jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri, double requestId) override { - static_assert( - bridging::getParameterCount(&T::prefetchImage) == 3, - "Expected prefetchImage(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::prefetchImage, jsInvoker_, instance_, std::move(uri), std::move(requestId)); - } - jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) override { - static_assert( - bridging::getParameterCount(&T::queryCache) == 2, - "Expected queryCache(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::queryCache, jsInvoker_, instance_, std::move(uris)); - } - - private: - friend class NativeImageLoaderAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeImageLoaderIOSCxxSpecJSI : public TurboModule { -protected: - NativeImageLoaderIOSCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) = 0; - virtual jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) = 0; - virtual jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri) = 0; - virtual jsi::Value prefetchImageWithMetadata(jsi::Runtime &rt, jsi::String uri, jsi::String queryRootName, double rootTag) = 0; - virtual jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) = 0; - -}; - -template -class JSI_EXPORT NativeImageLoaderIOSCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ImageLoader"; - -protected: - NativeImageLoaderIOSCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeImageLoaderIOSCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeImageLoaderIOSCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeImageLoaderIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) override { - static_assert( - bridging::getParameterCount(&T::getSize) == 2, - "Expected getSize(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getSize, jsInvoker_, instance_, std::move(uri)); - } - jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) override { - static_assert( - bridging::getParameterCount(&T::getSizeWithHeaders) == 3, - "Expected getSizeWithHeaders(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getSizeWithHeaders, jsInvoker_, instance_, std::move(uri), std::move(headers)); - } - jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri) override { - static_assert( - bridging::getParameterCount(&T::prefetchImage) == 2, - "Expected prefetchImage(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::prefetchImage, jsInvoker_, instance_, std::move(uri)); - } - jsi::Value prefetchImageWithMetadata(jsi::Runtime &rt, jsi::String uri, jsi::String queryRootName, double rootTag) override { - static_assert( - bridging::getParameterCount(&T::prefetchImageWithMetadata) == 4, - "Expected prefetchImageWithMetadata(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::prefetchImageWithMetadata, jsInvoker_, instance_, std::move(uri), std::move(queryRootName), std::move(rootTag)); - } - jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) override { - static_assert( - bridging::getParameterCount(&T::queryCache) == 2, - "Expected queryCache(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::queryCache, jsInvoker_, instance_, std::move(uris)); - } - - private: - friend class NativeImageLoaderIOSCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeImageStoreAndroidCxxSpecJSI : public TurboModule { -protected: - NativeImageStoreAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) = 0; - -}; - -template -class JSI_EXPORT NativeImageStoreAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ImageStoreManager"; - -protected: - NativeImageStoreAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeImageStoreAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeImageStoreAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeImageStoreAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) override { - static_assert( - bridging::getParameterCount(&T::getBase64ForTag) == 4, - "Expected getBase64ForTag(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::getBase64ForTag, jsInvoker_, instance_, std::move(uri), std::move(successCallback), std::move(errorCallback)); - } - - private: - friend class NativeImageStoreAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeImageStoreIOSCxxSpecJSI : public TurboModule { -protected: - NativeImageStoreIOSCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) = 0; - virtual void hasImageForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function callback) = 0; - virtual void removeImageForTag(jsi::Runtime &rt, jsi::String uri) = 0; - virtual void addImageFromBase64(jsi::Runtime &rt, jsi::String base64ImageData, jsi::Function successCallback, jsi::Function errorCallback) = 0; - -}; - -template -class JSI_EXPORT NativeImageStoreIOSCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ImageStoreManager"; - -protected: - NativeImageStoreIOSCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeImageStoreIOSCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeImageStoreIOSCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeImageStoreIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) override { - static_assert( - bridging::getParameterCount(&T::getBase64ForTag) == 4, - "Expected getBase64ForTag(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::getBase64ForTag, jsInvoker_, instance_, std::move(uri), std::move(successCallback), std::move(errorCallback)); - } - void hasImageForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::hasImageForTag) == 3, - "Expected hasImageForTag(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::hasImageForTag, jsInvoker_, instance_, std::move(uri), std::move(callback)); - } - void removeImageForTag(jsi::Runtime &rt, jsi::String uri) override { - static_assert( - bridging::getParameterCount(&T::removeImageForTag) == 2, - "Expected removeImageForTag(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeImageForTag, jsInvoker_, instance_, std::move(uri)); - } - void addImageFromBase64(jsi::Runtime &rt, jsi::String base64ImageData, jsi::Function successCallback, jsi::Function errorCallback) override { - static_assert( - bridging::getParameterCount(&T::addImageFromBase64) == 4, - "Expected addImageFromBase64(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::addImageFromBase64, jsInvoker_, instance_, std::move(base64ImageData), std::move(successCallback), std::move(errorCallback)); - } - - private: - friend class NativeImageStoreIOSCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeIntentAndroidCxxSpecJSI : public TurboModule { -protected: - NativeIntentAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Value getInitialURL(jsi::Runtime &rt) = 0; - virtual jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) = 0; - virtual jsi::Value openURL(jsi::Runtime &rt, jsi::String url) = 0; - virtual jsi::Value openSettings(jsi::Runtime &rt) = 0; - virtual jsi::Value sendIntent(jsi::Runtime &rt, jsi::String action, std::optional extras) = 0; - -}; - -template -class JSI_EXPORT NativeIntentAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "IntentAndroid"; - -protected: - NativeIntentAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeIntentAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeIntentAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeIntentAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Value getInitialURL(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getInitialURL) == 1, - "Expected getInitialURL(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getInitialURL, jsInvoker_, instance_); - } - jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) override { - static_assert( - bridging::getParameterCount(&T::canOpenURL) == 2, - "Expected canOpenURL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::canOpenURL, jsInvoker_, instance_, std::move(url)); - } - jsi::Value openURL(jsi::Runtime &rt, jsi::String url) override { - static_assert( - bridging::getParameterCount(&T::openURL) == 2, - "Expected openURL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::openURL, jsInvoker_, instance_, std::move(url)); - } - jsi::Value openSettings(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::openSettings) == 1, - "Expected openSettings(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::openSettings, jsInvoker_, instance_); - } - jsi::Value sendIntent(jsi::Runtime &rt, jsi::String action, std::optional extras) override { - static_assert( - bridging::getParameterCount(&T::sendIntent) == 3, - "Expected sendIntent(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::sendIntent, jsInvoker_, instance_, std::move(action), std::move(extras)); - } - - private: - friend class NativeIntentAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeJSCHeapCaptureCxxSpecJSI : public TurboModule { -protected: - NativeJSCHeapCaptureCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void captureComplete(jsi::Runtime &rt, jsi::String path, std::optional error) = 0; - -}; - -template -class JSI_EXPORT NativeJSCHeapCaptureCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "JSCHeapCapture"; - -protected: - NativeJSCHeapCaptureCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeJSCHeapCaptureCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeJSCHeapCaptureCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeJSCHeapCaptureCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void captureComplete(jsi::Runtime &rt, jsi::String path, std::optional error) override { - static_assert( - bridging::getParameterCount(&T::captureComplete) == 3, - "Expected captureComplete(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::captureComplete, jsInvoker_, instance_, std::move(path), std::move(error)); - } - - private: - friend class NativeJSCHeapCaptureCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeKeyboardObserverCxxSpecJSI : public TurboModule { -protected: - NativeKeyboardObserverCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeKeyboardObserverCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "KeyboardObserver"; - -protected: - NativeKeyboardObserverCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeKeyboardObserverCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeKeyboardObserverCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeKeyboardObserverCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeKeyboardObserverCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeLinkingManagerCxxSpecJSI : public TurboModule { -protected: - NativeLinkingManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Value getInitialURL(jsi::Runtime &rt) = 0; - virtual jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) = 0; - virtual jsi::Value openURL(jsi::Runtime &rt, jsi::String url) = 0; - virtual jsi::Value openSettings(jsi::Runtime &rt) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeLinkingManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "LinkingManager"; - -protected: - NativeLinkingManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeLinkingManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeLinkingManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeLinkingManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Value getInitialURL(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getInitialURL) == 1, - "Expected getInitialURL(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getInitialURL, jsInvoker_, instance_); - } - jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) override { - static_assert( - bridging::getParameterCount(&T::canOpenURL) == 2, - "Expected canOpenURL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::canOpenURL, jsInvoker_, instance_, std::move(url)); - } - jsi::Value openURL(jsi::Runtime &rt, jsi::String url) override { - static_assert( - bridging::getParameterCount(&T::openURL) == 2, - "Expected openURL(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::openURL, jsInvoker_, instance_, std::move(url)); - } - jsi::Value openSettings(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::openSettings) == 1, - "Expected openSettings(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::openSettings, jsInvoker_, instance_); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeLinkingManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeLogBoxCxxSpecJSI : public TurboModule { -protected: - NativeLogBoxCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void show(jsi::Runtime &rt) = 0; - virtual void hide(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeLogBoxCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "LogBox"; - -protected: - NativeLogBoxCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeLogBoxCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeLogBoxCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeLogBoxCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void show(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::show) == 1, - "Expected show(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::show, jsInvoker_, instance_); - } - void hide(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::hide) == 1, - "Expected hide(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::hide, jsInvoker_, instance_); - } - - private: - friend class NativeLogBoxCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeModalManagerCxxSpecJSI : public TurboModule { -protected: - NativeModalManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeModalManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ModalManager"; - -protected: - NativeModalManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeModalManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeModalManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeModalManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeModalManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeNetworkingAndroidCxxSpecJSI : public TurboModule { -protected: - NativeNetworkingAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void sendRequest(jsi::Runtime &rt, jsi::String method, jsi::String url, double requestId, jsi::Array headers, jsi::Object data, jsi::String responseType, bool useIncrementalUpdates, double timeout, bool withCredentials) = 0; - virtual void abortRequest(jsi::Runtime &rt, double requestId) = 0; - virtual void clearCookies(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeNetworkingAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "Networking"; - -protected: - NativeNetworkingAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeNetworkingAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeNetworkingAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeNetworkingAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void sendRequest(jsi::Runtime &rt, jsi::String method, jsi::String url, double requestId, jsi::Array headers, jsi::Object data, jsi::String responseType, bool useIncrementalUpdates, double timeout, bool withCredentials) override { - static_assert( - bridging::getParameterCount(&T::sendRequest) == 10, - "Expected sendRequest(...) to have 10 parameters"); - - return bridging::callFromJs( - rt, &T::sendRequest, jsInvoker_, instance_, std::move(method), std::move(url), std::move(requestId), std::move(headers), std::move(data), std::move(responseType), std::move(useIncrementalUpdates), std::move(timeout), std::move(withCredentials)); - } - void abortRequest(jsi::Runtime &rt, double requestId) override { - static_assert( - bridging::getParameterCount(&T::abortRequest) == 2, - "Expected abortRequest(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::abortRequest, jsInvoker_, instance_, std::move(requestId)); - } - void clearCookies(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::clearCookies) == 2, - "Expected clearCookies(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::clearCookies, jsInvoker_, instance_, std::move(callback)); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeNetworkingAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeNetworkingIOSCxxSpecJSI : public TurboModule { -protected: - NativeNetworkingIOSCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void sendRequest(jsi::Runtime &rt, jsi::Object query, jsi::Function callback) = 0; - virtual void abortRequest(jsi::Runtime &rt, double requestId) = 0; - virtual void clearCookies(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeNetworkingIOSCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "Networking"; - -protected: - NativeNetworkingIOSCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeNetworkingIOSCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeNetworkingIOSCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeNetworkingIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void sendRequest(jsi::Runtime &rt, jsi::Object query, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::sendRequest) == 3, - "Expected sendRequest(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::sendRequest, jsInvoker_, instance_, std::move(query), std::move(callback)); - } - void abortRequest(jsi::Runtime &rt, double requestId) override { - static_assert( - bridging::getParameterCount(&T::abortRequest) == 2, - "Expected abortRequest(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::abortRequest, jsInvoker_, instance_, std::move(requestId)); - } - void clearCookies(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::clearCookies) == 2, - "Expected clearCookies(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::clearCookies, jsInvoker_, instance_, std::move(callback)); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeNetworkingIOSCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativePermissionsAndroidCxxSpecJSI : public TurboModule { -protected: - NativePermissionsAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Value checkPermission(jsi::Runtime &rt, jsi::String permission) = 0; - virtual jsi::Value requestPermission(jsi::Runtime &rt, jsi::String permission) = 0; - virtual jsi::Value shouldShowRequestPermissionRationale(jsi::Runtime &rt, jsi::String permission) = 0; - virtual jsi::Value requestMultiplePermissions(jsi::Runtime &rt, jsi::Array permissions) = 0; - -}; - -template -class JSI_EXPORT NativePermissionsAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "PermissionsAndroid"; - -protected: - NativePermissionsAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativePermissionsAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativePermissionsAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativePermissionsAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Value checkPermission(jsi::Runtime &rt, jsi::String permission) override { - static_assert( - bridging::getParameterCount(&T::checkPermission) == 2, - "Expected checkPermission(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::checkPermission, jsInvoker_, instance_, std::move(permission)); - } - jsi::Value requestPermission(jsi::Runtime &rt, jsi::String permission) override { - static_assert( - bridging::getParameterCount(&T::requestPermission) == 2, - "Expected requestPermission(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::requestPermission, jsInvoker_, instance_, std::move(permission)); - } - jsi::Value shouldShowRequestPermissionRationale(jsi::Runtime &rt, jsi::String permission) override { - static_assert( - bridging::getParameterCount(&T::shouldShowRequestPermissionRationale) == 2, - "Expected shouldShowRequestPermissionRationale(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::shouldShowRequestPermissionRationale, jsInvoker_, instance_, std::move(permission)); - } - jsi::Value requestMultiplePermissions(jsi::Runtime &rt, jsi::Array permissions) override { - static_assert( - bridging::getParameterCount(&T::requestMultiplePermissions) == 2, - "Expected requestMultiplePermissions(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::requestMultiplePermissions, jsInvoker_, instance_, std::move(permissions)); - } - - private: - friend class NativePermissionsAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativePlatformConstantsAndroidPlatformConstantsAndroid - -template -struct NativePlatformConstantsAndroidPlatformConstantsAndroid { - P0 isTesting; - P1 isDisableAnimations; - P2 reactNativeVersion; - P3 Version; - P4 Release; - P5 Serial; - P6 Fingerprint; - P7 Model; - P8 ServerHost; - P9 uiMode; - P10 Brand; - P11 Manufacturer; - bool operator==(const NativePlatformConstantsAndroidPlatformConstantsAndroid &other) const { - return isTesting == other.isTesting && isDisableAnimations == other.isDisableAnimations && reactNativeVersion == other.reactNativeVersion && Version == other.Version && Release == other.Release && Serial == other.Serial && Fingerprint == other.Fingerprint && Model == other.Model && ServerHost == other.ServerHost && uiMode == other.uiMode && Brand == other.Brand && Manufacturer == other.Manufacturer; - } -}; - -template -struct NativePlatformConstantsAndroidPlatformConstantsAndroidBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "isTesting"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isDisableAnimations"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "reactNativeVersion"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "Version"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "Release"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "Serial"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "Fingerprint"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "Model"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "ServerHost"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "uiMode"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "Brand"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "Manufacturer"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool isTestingToJs(jsi::Runtime &rt, decltype(types.isTesting) value) { - return bridging::toJs(rt, value); - } - - static bool isDisableAnimationsToJs(jsi::Runtime &rt, decltype(types.isDisableAnimations) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object reactNativeVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeVersion) value) { - return bridging::toJs(rt, value); - } - - static double VersionToJs(jsi::Runtime &rt, decltype(types.Version) value) { - return bridging::toJs(rt, value); - } - - static jsi::String ReleaseToJs(jsi::Runtime &rt, decltype(types.Release) value) { - return bridging::toJs(rt, value); - } - - static jsi::String SerialToJs(jsi::Runtime &rt, decltype(types.Serial) value) { - return bridging::toJs(rt, value); - } - - static jsi::String FingerprintToJs(jsi::Runtime &rt, decltype(types.Fingerprint) value) { - return bridging::toJs(rt, value); - } - - static jsi::String ModelToJs(jsi::Runtime &rt, decltype(types.Model) value) { - return bridging::toJs(rt, value); - } - - static jsi::String ServerHostToJs(jsi::Runtime &rt, decltype(types.ServerHost) value) { - return bridging::toJs(rt, value); - } - - static jsi::String uiModeToJs(jsi::Runtime &rt, decltype(types.uiMode) value) { - return bridging::toJs(rt, value); - } - - static jsi::String BrandToJs(jsi::Runtime &rt, decltype(types.Brand) value) { - return bridging::toJs(rt, value); - } - - static jsi::String ManufacturerToJs(jsi::Runtime &rt, decltype(types.Manufacturer) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "isTesting", bridging::toJs(rt, value.isTesting, jsInvoker)); - if (value.isDisableAnimations) { - result.setProperty(rt, "isDisableAnimations", bridging::toJs(rt, value.isDisableAnimations.value(), jsInvoker)); - } - result.setProperty(rt, "reactNativeVersion", bridging::toJs(rt, value.reactNativeVersion, jsInvoker)); - result.setProperty(rt, "Version", bridging::toJs(rt, value.Version, jsInvoker)); - result.setProperty(rt, "Release", bridging::toJs(rt, value.Release, jsInvoker)); - result.setProperty(rt, "Serial", bridging::toJs(rt, value.Serial, jsInvoker)); - result.setProperty(rt, "Fingerprint", bridging::toJs(rt, value.Fingerprint, jsInvoker)); - result.setProperty(rt, "Model", bridging::toJs(rt, value.Model, jsInvoker)); - if (value.ServerHost) { - result.setProperty(rt, "ServerHost", bridging::toJs(rt, value.ServerHost.value(), jsInvoker)); - } - result.setProperty(rt, "uiMode", bridging::toJs(rt, value.uiMode, jsInvoker)); - result.setProperty(rt, "Brand", bridging::toJs(rt, value.Brand, jsInvoker)); - result.setProperty(rt, "Manufacturer", bridging::toJs(rt, value.Manufacturer, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativePlatformConstantsAndroidReactNativeVersionAndroid - -template -struct NativePlatformConstantsAndroidReactNativeVersionAndroid { - P0 major; - P1 minor; - P2 patch; - P3 prerelease; - bool operator==(const NativePlatformConstantsAndroidReactNativeVersionAndroid &other) const { - return major == other.major && minor == other.minor && patch == other.patch && prerelease == other.prerelease; - } -}; - -template -struct NativePlatformConstantsAndroidReactNativeVersionAndroidBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "major"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "minor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "patch"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "prerelease"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double majorToJs(jsi::Runtime &rt, decltype(types.major) value) { - return bridging::toJs(rt, value); - } - - static double minorToJs(jsi::Runtime &rt, decltype(types.minor) value) { - return bridging::toJs(rt, value); - } - - static double patchToJs(jsi::Runtime &rt, decltype(types.patch) value) { - return bridging::toJs(rt, value); - } - - static std::optional prereleaseToJs(jsi::Runtime &rt, decltype(types.prerelease) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "major", bridging::toJs(rt, value.major, jsInvoker)); - result.setProperty(rt, "minor", bridging::toJs(rt, value.minor, jsInvoker)); - result.setProperty(rt, "patch", bridging::toJs(rt, value.patch, jsInvoker)); - result.setProperty(rt, "prerelease", bridging::toJs(rt, value.prerelease, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativePlatformConstantsAndroidCxxSpecJSI : public TurboModule { -protected: - NativePlatformConstantsAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual jsi::String getAndroidID(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativePlatformConstantsAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "PlatformConstants"; - -protected: - NativePlatformConstantsAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativePlatformConstantsAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativePlatformConstantsAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativePlatformConstantsAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - jsi::String getAndroidID(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getAndroidID) == 1, - "Expected getAndroidID(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getAndroidID, jsInvoker_, instance_); - } - - private: - friend class NativePlatformConstantsAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativePlatformConstantsIOSPlatformConstantsIOS - -template -struct NativePlatformConstantsIOSPlatformConstantsIOS { - P0 isTesting; - P1 isDisableAnimations; - P2 reactNativeVersion; - P3 forceTouchAvailable; - P4 osVersion; - P5 systemName; - P6 interfaceIdiom; - P7 isMacCatalyst; - bool operator==(const NativePlatformConstantsIOSPlatformConstantsIOS &other) const { - return isTesting == other.isTesting && isDisableAnimations == other.isDisableAnimations && reactNativeVersion == other.reactNativeVersion && forceTouchAvailable == other.forceTouchAvailable && osVersion == other.osVersion && systemName == other.systemName && interfaceIdiom == other.interfaceIdiom && isMacCatalyst == other.isMacCatalyst; - } -}; - -template -struct NativePlatformConstantsIOSPlatformConstantsIOSBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "isTesting"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isDisableAnimations"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "reactNativeVersion"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "forceTouchAvailable"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "osVersion"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "systemName"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "interfaceIdiom"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isMacCatalyst"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool isTestingToJs(jsi::Runtime &rt, decltype(types.isTesting) value) { - return bridging::toJs(rt, value); - } - - static bool isDisableAnimationsToJs(jsi::Runtime &rt, decltype(types.isDisableAnimations) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object reactNativeVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeVersion) value) { - return bridging::toJs(rt, value); - } - - static bool forceTouchAvailableToJs(jsi::Runtime &rt, decltype(types.forceTouchAvailable) value) { - return bridging::toJs(rt, value); - } - - static jsi::String osVersionToJs(jsi::Runtime &rt, decltype(types.osVersion) value) { - return bridging::toJs(rt, value); - } - - static jsi::String systemNameToJs(jsi::Runtime &rt, decltype(types.systemName) value) { - return bridging::toJs(rt, value); - } - - static jsi::String interfaceIdiomToJs(jsi::Runtime &rt, decltype(types.interfaceIdiom) value) { - return bridging::toJs(rt, value); - } - - static bool isMacCatalystToJs(jsi::Runtime &rt, decltype(types.isMacCatalyst) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "isTesting", bridging::toJs(rt, value.isTesting, jsInvoker)); - if (value.isDisableAnimations) { - result.setProperty(rt, "isDisableAnimations", bridging::toJs(rt, value.isDisableAnimations.value(), jsInvoker)); - } - result.setProperty(rt, "reactNativeVersion", bridging::toJs(rt, value.reactNativeVersion, jsInvoker)); - result.setProperty(rt, "forceTouchAvailable", bridging::toJs(rt, value.forceTouchAvailable, jsInvoker)); - result.setProperty(rt, "osVersion", bridging::toJs(rt, value.osVersion, jsInvoker)); - result.setProperty(rt, "systemName", bridging::toJs(rt, value.systemName, jsInvoker)); - result.setProperty(rt, "interfaceIdiom", bridging::toJs(rt, value.interfaceIdiom, jsInvoker)); - if (value.isMacCatalyst) { - result.setProperty(rt, "isMacCatalyst", bridging::toJs(rt, value.isMacCatalyst.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativePlatformConstantsIOSCxxSpecJSI : public TurboModule { -protected: - NativePlatformConstantsIOSCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativePlatformConstantsIOSCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "PlatformConstants"; - -protected: - NativePlatformConstantsIOSCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativePlatformConstantsIOSCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativePlatformConstantsIOSCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativePlatformConstantsIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - - private: - friend class NativePlatformConstantsIOSCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativePlatformConstantsWindowsPlatformConstantsWindows - -template -struct NativePlatformConstantsWindowsPlatformConstantsWindows { - P0 isTesting; - P1 isDisableAnimations; - P2 reactNativeVersion; - P3 reactNativeWindowsVersion; - P4 osVersion; - bool operator==(const NativePlatformConstantsWindowsPlatformConstantsWindows &other) const { - return isTesting == other.isTesting && isDisableAnimations == other.isDisableAnimations && reactNativeVersion == other.reactNativeVersion && reactNativeWindowsVersion == other.reactNativeWindowsVersion && osVersion == other.osVersion; - } -}; - -template -struct NativePlatformConstantsWindowsPlatformConstantsWindowsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "isTesting"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isDisableAnimations"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "reactNativeVersion"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "reactNativeWindowsVersion"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "osVersion"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool isTestingToJs(jsi::Runtime &rt, decltype(types.isTesting) value) { - return bridging::toJs(rt, value); - } - - static bool isDisableAnimationsToJs(jsi::Runtime &rt, decltype(types.isDisableAnimations) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object reactNativeVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeVersion) value) { - return bridging::toJs(rt, value); - } - - static jsi::Object reactNativeWindowsVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeWindowsVersion) value) { - return bridging::toJs(rt, value); - } - - static double osVersionToJs(jsi::Runtime &rt, decltype(types.osVersion) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "isTesting", bridging::toJs(rt, value.isTesting, jsInvoker)); - if (value.isDisableAnimations) { - result.setProperty(rt, "isDisableAnimations", bridging::toJs(rt, value.isDisableAnimations.value(), jsInvoker)); - } - result.setProperty(rt, "reactNativeVersion", bridging::toJs(rt, value.reactNativeVersion, jsInvoker)); - result.setProperty(rt, "reactNativeWindowsVersion", bridging::toJs(rt, value.reactNativeWindowsVersion, jsInvoker)); - result.setProperty(rt, "osVersion", bridging::toJs(rt, value.osVersion, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativePlatformConstantsWindowsReactNativeVersionAndroid - -template -struct NativePlatformConstantsWindowsReactNativeVersionAndroid { - P0 major; - P1 minor; - P2 patch; - P3 prerelease; - bool operator==(const NativePlatformConstantsWindowsReactNativeVersionAndroid &other) const { - return major == other.major && minor == other.minor && patch == other.patch && prerelease == other.prerelease; - } -}; - -template -struct NativePlatformConstantsWindowsReactNativeVersionAndroidBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "major"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "minor"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "patch"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "prerelease"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double majorToJs(jsi::Runtime &rt, decltype(types.major) value) { - return bridging::toJs(rt, value); - } - - static double minorToJs(jsi::Runtime &rt, decltype(types.minor) value) { - return bridging::toJs(rt, value); - } - - static double patchToJs(jsi::Runtime &rt, decltype(types.patch) value) { - return bridging::toJs(rt, value); - } - - static std::optional prereleaseToJs(jsi::Runtime &rt, decltype(types.prerelease) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "major", bridging::toJs(rt, value.major, jsInvoker)); - result.setProperty(rt, "minor", bridging::toJs(rt, value.minor, jsInvoker)); - result.setProperty(rt, "patch", bridging::toJs(rt, value.patch, jsInvoker)); - result.setProperty(rt, "prerelease", bridging::toJs(rt, value.prerelease, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativePlatformConstantsWindowsCxxSpecJSI : public TurboModule { -protected: - NativePlatformConstantsWindowsCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativePlatformConstantsWindowsCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "PlatformConstants"; - -protected: - NativePlatformConstantsWindowsCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativePlatformConstantsWindowsCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativePlatformConstantsWindowsCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativePlatformConstantsWindowsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - - private: - friend class NativePlatformConstantsWindowsCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativePushNotificationManagerIOSNotification - -template -struct NativePushNotificationManagerIOSNotification { - P0 alertTitle; - P1 alertBody; - P2 userInfo; - P3 category; - P4 fireDate; - P5 fireIntervalSeconds; - P6 applicationIconBadgeNumber; - P7 isSilent; - P8 soundName; - bool operator==(const NativePushNotificationManagerIOSNotification &other) const { - return alertTitle == other.alertTitle && alertBody == other.alertBody && userInfo == other.userInfo && category == other.category && fireDate == other.fireDate && fireIntervalSeconds == other.fireIntervalSeconds && applicationIconBadgeNumber == other.applicationIconBadgeNumber && isSilent == other.isSilent && soundName == other.soundName; - } -}; - -template -struct NativePushNotificationManagerIOSNotificationBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "alertTitle"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "alertBody"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "userInfo"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "category"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "fireDate"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "fireIntervalSeconds"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "applicationIconBadgeNumber"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isSilent"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "soundName"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static std::optional alertTitleToJs(jsi::Runtime &rt, decltype(types.alertTitle) value) { - return bridging::toJs(rt, value); - } - - static std::optional alertBodyToJs(jsi::Runtime &rt, decltype(types.alertBody) value) { - return bridging::toJs(rt, value); - } - - static std::optional userInfoToJs(jsi::Runtime &rt, decltype(types.userInfo) value) { - return bridging::toJs(rt, value); - } - - static std::optional categoryToJs(jsi::Runtime &rt, decltype(types.category) value) { - return bridging::toJs(rt, value); - } - - static std::optional fireDateToJs(jsi::Runtime &rt, decltype(types.fireDate) value) { - return bridging::toJs(rt, value); - } - - static std::optional fireIntervalSecondsToJs(jsi::Runtime &rt, decltype(types.fireIntervalSeconds) value) { - return bridging::toJs(rt, value); - } - - static std::optional applicationIconBadgeNumberToJs(jsi::Runtime &rt, decltype(types.applicationIconBadgeNumber) value) { - return bridging::toJs(rt, value); - } - - static std::optional isSilentToJs(jsi::Runtime &rt, decltype(types.isSilent) value) { - return bridging::toJs(rt, value); - } - - static std::optional soundNameToJs(jsi::Runtime &rt, decltype(types.soundName) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.alertTitle) { - result.setProperty(rt, "alertTitle", bridging::toJs(rt, value.alertTitle.value(), jsInvoker)); - } - if (value.alertBody) { - result.setProperty(rt, "alertBody", bridging::toJs(rt, value.alertBody.value(), jsInvoker)); - } - if (value.userInfo) { - result.setProperty(rt, "userInfo", bridging::toJs(rt, value.userInfo.value(), jsInvoker)); - } - if (value.category) { - result.setProperty(rt, "category", bridging::toJs(rt, value.category.value(), jsInvoker)); - } - if (value.fireDate) { - result.setProperty(rt, "fireDate", bridging::toJs(rt, value.fireDate.value(), jsInvoker)); - } - if (value.fireIntervalSeconds) { - result.setProperty(rt, "fireIntervalSeconds", bridging::toJs(rt, value.fireIntervalSeconds.value(), jsInvoker)); - } - if (value.applicationIconBadgeNumber) { - result.setProperty(rt, "applicationIconBadgeNumber", bridging::toJs(rt, value.applicationIconBadgeNumber.value(), jsInvoker)); - } - if (value.isSilent) { - result.setProperty(rt, "isSilent", bridging::toJs(rt, value.isSilent.value(), jsInvoker)); - } - if (value.soundName) { - result.setProperty(rt, "soundName", bridging::toJs(rt, value.soundName.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativePushNotificationManagerIOSPermissions - -template -struct NativePushNotificationManagerIOSPermissions { - P0 alert; - P1 badge; - P2 sound; - bool operator==(const NativePushNotificationManagerIOSPermissions &other) const { - return alert == other.alert && badge == other.badge && sound == other.sound; - } -}; - -template -struct NativePushNotificationManagerIOSPermissionsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "alert"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "badge"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "sound"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool alertToJs(jsi::Runtime &rt, decltype(types.alert) value) { - return bridging::toJs(rt, value); - } - - static bool badgeToJs(jsi::Runtime &rt, decltype(types.badge) value) { - return bridging::toJs(rt, value); - } - - static bool soundToJs(jsi::Runtime &rt, decltype(types.sound) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "alert", bridging::toJs(rt, value.alert, jsInvoker)); - result.setProperty(rt, "badge", bridging::toJs(rt, value.badge, jsInvoker)); - result.setProperty(rt, "sound", bridging::toJs(rt, value.sound, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativePushNotificationManagerIOSCxxSpecJSI : public TurboModule { -protected: - NativePushNotificationManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void onFinishRemoteNotification(jsi::Runtime &rt, jsi::String notificationId, jsi::String fetchResult) = 0; - virtual void setApplicationIconBadgeNumber(jsi::Runtime &rt, double num) = 0; - virtual void getApplicationIconBadgeNumber(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual jsi::Value requestPermissions(jsi::Runtime &rt, jsi::Object permission) = 0; - virtual void abandonPermissions(jsi::Runtime &rt) = 0; - virtual void checkPermissions(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual void presentLocalNotification(jsi::Runtime &rt, jsi::Object notification) = 0; - virtual void scheduleLocalNotification(jsi::Runtime &rt, jsi::Object notification) = 0; - virtual void cancelAllLocalNotifications(jsi::Runtime &rt) = 0; - virtual void cancelLocalNotifications(jsi::Runtime &rt, jsi::Object userInfo) = 0; - virtual jsi::Value getInitialNotification(jsi::Runtime &rt) = 0; - virtual void getScheduledLocalNotifications(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual void removeAllDeliveredNotifications(jsi::Runtime &rt) = 0; - virtual void removeDeliveredNotifications(jsi::Runtime &rt, jsi::Array identifiers) = 0; - virtual void getDeliveredNotifications(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual void getAuthorizationStatus(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventType) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativePushNotificationManagerIOSCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "PushNotificationManager"; - -protected: - NativePushNotificationManagerIOSCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativePushNotificationManagerIOSCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativePushNotificationManagerIOSCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativePushNotificationManagerIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void onFinishRemoteNotification(jsi::Runtime &rt, jsi::String notificationId, jsi::String fetchResult) override { - static_assert( - bridging::getParameterCount(&T::onFinishRemoteNotification) == 3, - "Expected onFinishRemoteNotification(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::onFinishRemoteNotification, jsInvoker_, instance_, std::move(notificationId), std::move(fetchResult)); - } - void setApplicationIconBadgeNumber(jsi::Runtime &rt, double num) override { - static_assert( - bridging::getParameterCount(&T::setApplicationIconBadgeNumber) == 2, - "Expected setApplicationIconBadgeNumber(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setApplicationIconBadgeNumber, jsInvoker_, instance_, std::move(num)); - } - void getApplicationIconBadgeNumber(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::getApplicationIconBadgeNumber) == 2, - "Expected getApplicationIconBadgeNumber(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getApplicationIconBadgeNumber, jsInvoker_, instance_, std::move(callback)); - } - jsi::Value requestPermissions(jsi::Runtime &rt, jsi::Object permission) override { - static_assert( - bridging::getParameterCount(&T::requestPermissions) == 2, - "Expected requestPermissions(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::requestPermissions, jsInvoker_, instance_, std::move(permission)); - } - void abandonPermissions(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::abandonPermissions) == 1, - "Expected abandonPermissions(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::abandonPermissions, jsInvoker_, instance_); - } - void checkPermissions(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::checkPermissions) == 2, - "Expected checkPermissions(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::checkPermissions, jsInvoker_, instance_, std::move(callback)); - } - void presentLocalNotification(jsi::Runtime &rt, jsi::Object notification) override { - static_assert( - bridging::getParameterCount(&T::presentLocalNotification) == 2, - "Expected presentLocalNotification(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::presentLocalNotification, jsInvoker_, instance_, std::move(notification)); - } - void scheduleLocalNotification(jsi::Runtime &rt, jsi::Object notification) override { - static_assert( - bridging::getParameterCount(&T::scheduleLocalNotification) == 2, - "Expected scheduleLocalNotification(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::scheduleLocalNotification, jsInvoker_, instance_, std::move(notification)); - } - void cancelAllLocalNotifications(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::cancelAllLocalNotifications) == 1, - "Expected cancelAllLocalNotifications(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::cancelAllLocalNotifications, jsInvoker_, instance_); - } - void cancelLocalNotifications(jsi::Runtime &rt, jsi::Object userInfo) override { - static_assert( - bridging::getParameterCount(&T::cancelLocalNotifications) == 2, - "Expected cancelLocalNotifications(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::cancelLocalNotifications, jsInvoker_, instance_, std::move(userInfo)); - } - jsi::Value getInitialNotification(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getInitialNotification) == 1, - "Expected getInitialNotification(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getInitialNotification, jsInvoker_, instance_); - } - void getScheduledLocalNotifications(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::getScheduledLocalNotifications) == 2, - "Expected getScheduledLocalNotifications(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getScheduledLocalNotifications, jsInvoker_, instance_, std::move(callback)); - } - void removeAllDeliveredNotifications(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::removeAllDeliveredNotifications) == 1, - "Expected removeAllDeliveredNotifications(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::removeAllDeliveredNotifications, jsInvoker_, instance_); - } - void removeDeliveredNotifications(jsi::Runtime &rt, jsi::Array identifiers) override { - static_assert( - bridging::getParameterCount(&T::removeDeliveredNotifications) == 2, - "Expected removeDeliveredNotifications(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeDeliveredNotifications, jsInvoker_, instance_, std::move(identifiers)); - } - void getDeliveredNotifications(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::getDeliveredNotifications) == 2, - "Expected getDeliveredNotifications(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getDeliveredNotifications, jsInvoker_, instance_, std::move(callback)); - } - void getAuthorizationStatus(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::getAuthorizationStatus) == 2, - "Expected getAuthorizationStatus(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getAuthorizationStatus, jsInvoker_, instance_, std::move(callback)); - } - void addListener(jsi::Runtime &rt, jsi::String eventType) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventType)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativePushNotificationManagerIOSCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeRedBoxCxxSpecJSI : public TurboModule { -protected: - NativeRedBoxCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void setExtraData(jsi::Runtime &rt, jsi::Object extraData, jsi::String forIdentifier) = 0; - virtual void dismiss(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeRedBoxCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "RedBox"; - -protected: - NativeRedBoxCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeRedBoxCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeRedBoxCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeRedBoxCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void setExtraData(jsi::Runtime &rt, jsi::Object extraData, jsi::String forIdentifier) override { - static_assert( - bridging::getParameterCount(&T::setExtraData) == 3, - "Expected setExtraData(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setExtraData, jsInvoker_, instance_, std::move(extraData), std::move(forIdentifier)); - } - void dismiss(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::dismiss) == 1, - "Expected dismiss(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::dismiss, jsInvoker_, instance_); - } - - private: - friend class NativeRedBoxCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - -#pragma mark - NativeSampleTurboModuleEnumInt - -enum class NativeSampleTurboModuleEnumInt { A, B }; - -template <> -struct Bridging { - static NativeSampleTurboModuleEnumInt fromJs(jsi::Runtime &rt, const jsi::Value &rawValue) { - double value = (double)rawValue.asNumber(); - if (value == 23) { - return NativeSampleTurboModuleEnumInt::A; - } else if (value == 42) { - return NativeSampleTurboModuleEnumInt::B; - } else { - throw jsi::JSError(rt, "No appropriate enum member found for value in NativeSampleTurboModuleEnumInt"); - } - } - - static jsi::Value toJs(jsi::Runtime &rt, NativeSampleTurboModuleEnumInt value) { - if (value == NativeSampleTurboModuleEnumInt::A) { - return bridging::toJs(rt, 23); - } else if (value == NativeSampleTurboModuleEnumInt::B) { - return bridging::toJs(rt, 42); - } else { - throw jsi::JSError(rt, "No appropriate enum member found for enum value in NativeSampleTurboModuleEnumInt"); - } - } -}; - -#pragma mark - NativeSampleTurboModuleObjectStruct - -template -struct NativeSampleTurboModuleObjectStruct { - P0 a; - P1 b; - P2 c; - bool operator==(const NativeSampleTurboModuleObjectStruct &other) const { - return a == other.a && b == other.b && c == other.c; - } -}; - -template -struct NativeSampleTurboModuleObjectStructBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "a"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "b"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "c"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double aToJs(jsi::Runtime &rt, decltype(types.a) value) { - return bridging::toJs(rt, value); - } - - static jsi::String bToJs(jsi::Runtime &rt, decltype(types.b) value) { - return bridging::toJs(rt, value); - } - - static std::optional cToJs(jsi::Runtime &rt, decltype(types.c) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "a", bridging::toJs(rt, value.a, jsInvoker)); - result.setProperty(rt, "b", bridging::toJs(rt, value.b, jsInvoker)); - if (value.c) { - result.setProperty(rt, "c", bridging::toJs(rt, value.c.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeSampleTurboModuleCxxSpecJSI : public TurboModule { -protected: - NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void voidFunc(jsi::Runtime &rt) = 0; - virtual bool getBool(jsi::Runtime &rt, bool arg) = 0; - virtual jsi::Value getEnum(jsi::Runtime &rt, jsi::Value arg) = 0; - virtual double getNumber(jsi::Runtime &rt, double arg) = 0; - virtual jsi::String getString(jsi::Runtime &rt, jsi::String arg) = 0; - virtual jsi::Array getArray(jsi::Runtime &rt, jsi::Array arg) = 0; - virtual jsi::Object getObject(jsi::Runtime &rt, jsi::Object arg) = 0; - virtual jsi::Object getUnsafeObject(jsi::Runtime &rt, jsi::Object arg) = 0; - virtual double getRootTag(jsi::Runtime &rt, double arg) = 0; - virtual jsi::Object getValue(jsi::Runtime &rt, double x, jsi::String y, jsi::Object z) = 0; - virtual void getValueWithCallback(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual jsi::Value getValueWithPromise(jsi::Runtime &rt, bool error) = 0; - virtual void voidFuncThrows(jsi::Runtime &rt) = 0; - virtual jsi::Object getObjectThrows(jsi::Runtime &rt, jsi::Object arg) = 0; - virtual jsi::Value promiseThrows(jsi::Runtime &rt) = 0; - virtual void voidFuncAssert(jsi::Runtime &rt) = 0; - virtual jsi::Object getObjectAssert(jsi::Runtime &rt, jsi::Object arg) = 0; - virtual jsi::Value promiseAssert(jsi::Runtime &rt) = 0; - virtual jsi::Value getImageUrl(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeSampleTurboModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "SampleTurboModule"; - -protected: - NativeSampleTurboModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeSampleTurboModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - void emitOnPress() { - static_cast&>(*delegate_.eventEmitterMap_["onPress"]).emit(); - } - - template void emitOnClick(OnClickType value) { - static_assert(bridging::supportsFromJs, "value cannnot be converted to jsi::String"); - static_cast&>(*delegate_.eventEmitterMap_["onClick"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value { - return bridging::toJs(rt, eventValue, jsInvoker); - }); - } - - template void emitOnChange(OnChangeType value) { - static_assert(bridging::supportsFromJs, "value cannnot be converted to jsi::Object"); - static_cast&>(*delegate_.eventEmitterMap_["onChange"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value { - return bridging::toJs(rt, eventValue, jsInvoker); - }); - } - - template void emitOnSubmit(std::vector value) { - static_assert(bridging::supportsFromJs, jsi::Array>, "value cannnot be converted to jsi::Array"); - static_cast&>(*delegate_.eventEmitterMap_["onSubmit"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value { - return bridging::toJs(rt, eventValue, jsInvoker); - }); - } - -private: - class Delegate : public NativeSampleTurboModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeSampleTurboModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - eventEmitterMap_["onPress"] = std::make_shared>(); - eventEmitterMap_["onClick"] = std::make_shared>(); - eventEmitterMap_["onChange"] = std::make_shared>(); - eventEmitterMap_["onSubmit"] = std::make_shared>(); - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void voidFunc(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::voidFunc) == 1, - "Expected voidFunc(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::voidFunc, jsInvoker_, instance_); - } - bool getBool(jsi::Runtime &rt, bool arg) override { - static_assert( - bridging::getParameterCount(&T::getBool) == 2, - "Expected getBool(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getBool, jsInvoker_, instance_, std::move(arg)); - } - jsi::Value getEnum(jsi::Runtime &rt, jsi::Value arg) override { - static_assert( - bridging::getParameterCount(&T::getEnum) == 2, - "Expected getEnum(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getEnum, jsInvoker_, instance_, std::move(arg)); - } - double getNumber(jsi::Runtime &rt, double arg) override { - static_assert( - bridging::getParameterCount(&T::getNumber) == 2, - "Expected getNumber(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getNumber, jsInvoker_, instance_, std::move(arg)); - } - jsi::String getString(jsi::Runtime &rt, jsi::String arg) override { - static_assert( - bridging::getParameterCount(&T::getString) == 2, - "Expected getString(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getString, jsInvoker_, instance_, std::move(arg)); - } - jsi::Array getArray(jsi::Runtime &rt, jsi::Array arg) override { - static_assert( - bridging::getParameterCount(&T::getArray) == 2, - "Expected getArray(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getArray, jsInvoker_, instance_, std::move(arg)); - } - jsi::Object getObject(jsi::Runtime &rt, jsi::Object arg) override { - static_assert( - bridging::getParameterCount(&T::getObject) == 2, - "Expected getObject(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getObject, jsInvoker_, instance_, std::move(arg)); - } - jsi::Object getUnsafeObject(jsi::Runtime &rt, jsi::Object arg) override { - static_assert( - bridging::getParameterCount(&T::getUnsafeObject) == 2, - "Expected getUnsafeObject(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getUnsafeObject, jsInvoker_, instance_, std::move(arg)); - } - double getRootTag(jsi::Runtime &rt, double arg) override { - static_assert( - bridging::getParameterCount(&T::getRootTag) == 2, - "Expected getRootTag(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getRootTag, jsInvoker_, instance_, std::move(arg)); - } - jsi::Object getValue(jsi::Runtime &rt, double x, jsi::String y, jsi::Object z) override { - static_assert( - bridging::getParameterCount(&T::getValue) == 4, - "Expected getValue(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::getValue, jsInvoker_, instance_, std::move(x), std::move(y), std::move(z)); - } - void getValueWithCallback(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::getValueWithCallback) == 2, - "Expected getValueWithCallback(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getValueWithCallback, jsInvoker_, instance_, std::move(callback)); - } - jsi::Value getValueWithPromise(jsi::Runtime &rt, bool error) override { - static_assert( - bridging::getParameterCount(&T::getValueWithPromise) == 2, - "Expected getValueWithPromise(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getValueWithPromise, jsInvoker_, instance_, std::move(error)); - } - void voidFuncThrows(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::voidFuncThrows) == 1, - "Expected voidFuncThrows(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::voidFuncThrows, jsInvoker_, instance_); - } - jsi::Object getObjectThrows(jsi::Runtime &rt, jsi::Object arg) override { - static_assert( - bridging::getParameterCount(&T::getObjectThrows) == 2, - "Expected getObjectThrows(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getObjectThrows, jsInvoker_, instance_, std::move(arg)); - } - jsi::Value promiseThrows(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::promiseThrows) == 1, - "Expected promiseThrows(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::promiseThrows, jsInvoker_, instance_); - } - void voidFuncAssert(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::voidFuncAssert) == 1, - "Expected voidFuncAssert(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::voidFuncAssert, jsInvoker_, instance_); - } - jsi::Object getObjectAssert(jsi::Runtime &rt, jsi::Object arg) override { - static_assert( - bridging::getParameterCount(&T::getObjectAssert) == 2, - "Expected getObjectAssert(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getObjectAssert, jsInvoker_, instance_, std::move(arg)); - } - jsi::Value promiseAssert(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::promiseAssert) == 1, - "Expected promiseAssert(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::promiseAssert, jsInvoker_, instance_); - } - jsi::Value getImageUrl(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getImageUrl) == 1, - "Expected getImageUrl(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getImageUrl, jsInvoker_, instance_); - } - - private: - friend class NativeSampleTurboModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeSegmentFetcherCxxSpecJSI : public TurboModule { -protected: - NativeSegmentFetcherCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void fetchSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) = 0; - virtual void getSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) = 0; - -}; - -template -class JSI_EXPORT NativeSegmentFetcherCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "SegmentFetcher"; - -protected: - NativeSegmentFetcherCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeSegmentFetcherCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeSegmentFetcherCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeSegmentFetcherCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void fetchSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::fetchSegment) == 4, - "Expected fetchSegment(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::fetchSegment, jsInvoker_, instance_, std::move(segmentId), std::move(options), std::move(callback)); - } - void getSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::getSegment) == 4, - "Expected getSegment(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::getSegment, jsInvoker_, instance_, std::move(segmentId), std::move(options), std::move(callback)); - } - - private: - friend class NativeSegmentFetcherCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeSettingsManagerCxxSpecJSI : public TurboModule { -protected: - NativeSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void setValues(jsi::Runtime &rt, jsi::Object values) = 0; - virtual void deleteValues(jsi::Runtime &rt, jsi::Array values) = 0; - -}; - -template -class JSI_EXPORT NativeSettingsManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "SettingsManager"; - -protected: - NativeSettingsManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeSettingsManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeSettingsManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeSettingsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void setValues(jsi::Runtime &rt, jsi::Object values) override { - static_assert( - bridging::getParameterCount(&T::setValues) == 2, - "Expected setValues(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setValues, jsInvoker_, instance_, std::move(values)); - } - void deleteValues(jsi::Runtime &rt, jsi::Array values) override { - static_assert( - bridging::getParameterCount(&T::deleteValues) == 2, - "Expected deleteValues(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::deleteValues, jsInvoker_, instance_, std::move(values)); - } - - private: - friend class NativeSettingsManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeShareModuleCxxSpecJSI : public TurboModule { -protected: - NativeShareModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual jsi::Value share(jsi::Runtime &rt, jsi::Object content, std::optional dialogTitle) = 0; - -}; - -template -class JSI_EXPORT NativeShareModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ShareModule"; - -protected: - NativeShareModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeShareModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeShareModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeShareModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - jsi::Value share(jsi::Runtime &rt, jsi::Object content, std::optional dialogTitle) override { - static_assert( - bridging::getParameterCount(&T::share) == 3, - "Expected share(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::share, jsInvoker_, instance_, std::move(content), std::move(dialogTitle)); - } - - private: - friend class NativeShareModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeSoundManagerCxxSpecJSI : public TurboModule { -protected: - NativeSoundManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void playTouchSound(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeSoundManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "SoundManager"; - -protected: - NativeSoundManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeSoundManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeSoundManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeSoundManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void playTouchSound(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::playTouchSound) == 1, - "Expected playTouchSound(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::playTouchSound, jsInvoker_, instance_); - } - - private: - friend class NativeSoundManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeSourceCodeSourceCodeConstants - -template -struct NativeSourceCodeSourceCodeConstants { - P0 scriptURL; - bool operator==(const NativeSourceCodeSourceCodeConstants &other) const { - return scriptURL == other.scriptURL; - } -}; - -template -struct NativeSourceCodeSourceCodeConstantsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "scriptURL"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String scriptURLToJs(jsi::Runtime &rt, decltype(types.scriptURL) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "scriptURL", bridging::toJs(rt, value.scriptURL, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeSourceCodeCxxSpecJSI : public TurboModule { -protected: - NativeSourceCodeCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeSourceCodeCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "SourceCode"; - -protected: - NativeSourceCodeCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeSourceCodeCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeSourceCodeCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeSourceCodeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - - private: - friend class NativeSourceCodeCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeStatusBarManagerAndroidCxxSpecJSI : public TurboModule { -protected: - NativeStatusBarManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void setColor(jsi::Runtime &rt, double color, bool animated) = 0; - virtual void setTranslucent(jsi::Runtime &rt, bool translucent) = 0; - virtual void setStyle(jsi::Runtime &rt, std::optional statusBarStyle) = 0; - virtual void setHidden(jsi::Runtime &rt, bool hidden) = 0; - -}; - -template -class JSI_EXPORT NativeStatusBarManagerAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "StatusBarManager"; - -protected: - NativeStatusBarManagerAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeStatusBarManagerAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeStatusBarManagerAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeStatusBarManagerAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void setColor(jsi::Runtime &rt, double color, bool animated) override { - static_assert( - bridging::getParameterCount(&T::setColor) == 3, - "Expected setColor(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setColor, jsInvoker_, instance_, std::move(color), std::move(animated)); - } - void setTranslucent(jsi::Runtime &rt, bool translucent) override { - static_assert( - bridging::getParameterCount(&T::setTranslucent) == 2, - "Expected setTranslucent(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setTranslucent, jsInvoker_, instance_, std::move(translucent)); - } - void setStyle(jsi::Runtime &rt, std::optional statusBarStyle) override { - static_assert( - bridging::getParameterCount(&T::setStyle) == 2, - "Expected setStyle(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setStyle, jsInvoker_, instance_, std::move(statusBarStyle)); - } - void setHidden(jsi::Runtime &rt, bool hidden) override { - static_assert( - bridging::getParameterCount(&T::setHidden) == 2, - "Expected setHidden(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setHidden, jsInvoker_, instance_, std::move(hidden)); - } - - private: - friend class NativeStatusBarManagerAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeStatusBarManagerIOSCxxSpecJSI : public TurboModule { -protected: - NativeStatusBarManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void getHeight(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual void setNetworkActivityIndicatorVisible(jsi::Runtime &rt, bool visible) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventType) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - virtual void setStyle(jsi::Runtime &rt, std::optional statusBarStyle, bool animated) = 0; - virtual void setHidden(jsi::Runtime &rt, bool hidden, jsi::String withAnimation) = 0; - -}; - -template -class JSI_EXPORT NativeStatusBarManagerIOSCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "StatusBarManager"; - -protected: - NativeStatusBarManagerIOSCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeStatusBarManagerIOSCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeStatusBarManagerIOSCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeStatusBarManagerIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void getHeight(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::getHeight) == 2, - "Expected getHeight(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getHeight, jsInvoker_, instance_, std::move(callback)); - } - void setNetworkActivityIndicatorVisible(jsi::Runtime &rt, bool visible) override { - static_assert( - bridging::getParameterCount(&T::setNetworkActivityIndicatorVisible) == 2, - "Expected setNetworkActivityIndicatorVisible(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setNetworkActivityIndicatorVisible, jsInvoker_, instance_, std::move(visible)); - } - void addListener(jsi::Runtime &rt, jsi::String eventType) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventType)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - void setStyle(jsi::Runtime &rt, std::optional statusBarStyle, bool animated) override { - static_assert( - bridging::getParameterCount(&T::setStyle) == 3, - "Expected setStyle(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setStyle, jsInvoker_, instance_, std::move(statusBarStyle), std::move(animated)); - } - void setHidden(jsi::Runtime &rt, bool hidden, jsi::String withAnimation) override { - static_assert( - bridging::getParameterCount(&T::setHidden) == 3, - "Expected setHidden(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setHidden, jsInvoker_, instance_, std::move(hidden), std::move(withAnimation)); - } - - private: - friend class NativeStatusBarManagerIOSCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeTimingCxxSpecJSI : public TurboModule { -protected: - NativeTimingCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void createTimer(jsi::Runtime &rt, double callbackID, double duration, double jsSchedulingTime, bool repeats) = 0; - virtual void deleteTimer(jsi::Runtime &rt, double timerID) = 0; - virtual void setSendIdleEvents(jsi::Runtime &rt, bool sendIdleEvents) = 0; - -}; - -template -class JSI_EXPORT NativeTimingCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "Timing"; - -protected: - NativeTimingCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeTimingCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeTimingCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeTimingCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void createTimer(jsi::Runtime &rt, double callbackID, double duration, double jsSchedulingTime, bool repeats) override { - static_assert( - bridging::getParameterCount(&T::createTimer) == 5, - "Expected createTimer(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::createTimer, jsInvoker_, instance_, std::move(callbackID), std::move(duration), std::move(jsSchedulingTime), std::move(repeats)); - } - void deleteTimer(jsi::Runtime &rt, double timerID) override { - static_assert( - bridging::getParameterCount(&T::deleteTimer) == 2, - "Expected deleteTimer(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::deleteTimer, jsInvoker_, instance_, std::move(timerID)); - } - void setSendIdleEvents(jsi::Runtime &rt, bool sendIdleEvents) override { - static_assert( - bridging::getParameterCount(&T::setSendIdleEvents) == 2, - "Expected setSendIdleEvents(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setSendIdleEvents, jsInvoker_, instance_, std::move(sendIdleEvents)); - } - - private: - friend class NativeTimingCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeToastAndroidCxxSpecJSI : public TurboModule { -protected: - NativeToastAndroidCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void show(jsi::Runtime &rt, jsi::String message, double duration) = 0; - virtual void showWithGravity(jsi::Runtime &rt, jsi::String message, double duration, double gravity) = 0; - virtual void showWithGravityAndOffset(jsi::Runtime &rt, jsi::String message, double duration, double gravity, double xOffset, double yOffset) = 0; - -}; - -template -class JSI_EXPORT NativeToastAndroidCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ToastAndroid"; - -protected: - NativeToastAndroidCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeToastAndroidCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeToastAndroidCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeToastAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void show(jsi::Runtime &rt, jsi::String message, double duration) override { - static_assert( - bridging::getParameterCount(&T::show) == 3, - "Expected show(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::show, jsInvoker_, instance_, std::move(message), std::move(duration)); - } - void showWithGravity(jsi::Runtime &rt, jsi::String message, double duration, double gravity) override { - static_assert( - bridging::getParameterCount(&T::showWithGravity) == 4, - "Expected showWithGravity(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::showWithGravity, jsInvoker_, instance_, std::move(message), std::move(duration), std::move(gravity)); - } - void showWithGravityAndOffset(jsi::Runtime &rt, jsi::String message, double duration, double gravity, double xOffset, double yOffset) override { - static_assert( - bridging::getParameterCount(&T::showWithGravityAndOffset) == 6, - "Expected showWithGravityAndOffset(...) to have 6 parameters"); - - return bridging::callFromJs( - rt, &T::showWithGravityAndOffset, jsInvoker_, instance_, std::move(message), std::move(duration), std::move(gravity), std::move(xOffset), std::move(yOffset)); - } - - private: - friend class NativeToastAndroidCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeUIManagerCxxSpecJSI : public TurboModule { -protected: - NativeUIManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void createView(jsi::Runtime &rt, double reactTag, jsi::String viewName, double rootTag, jsi::Object props) = 0; - virtual void updateView(jsi::Runtime &rt, double reactTag, jsi::String viewName, jsi::Object props) = 0; - virtual void findSubviewIn(jsi::Runtime &rt, double reactTag, jsi::Array point, jsi::Function callback) = 0; - virtual void dispatchViewManagerCommand(jsi::Runtime &rt, double reactTag, double commandID, std::optional commandArgs) = 0; - virtual void measure(jsi::Runtime &rt, double reactTag, jsi::Function callback) = 0; - virtual void measureInWindow(jsi::Runtime &rt, double reactTag, jsi::Function callback) = 0; - virtual void viewIsDescendantOf(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function callback) = 0; - virtual void measureLayout(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function errorCallback, jsi::Function callback) = 0; - virtual void measureLayoutRelativeToParent(jsi::Runtime &rt, double reactTag, jsi::Function errorCallback, jsi::Function callback) = 0; - virtual void setJSResponder(jsi::Runtime &rt, double reactTag, bool blockNativeResponder) = 0; - virtual void clearJSResponder(jsi::Runtime &rt) = 0; - virtual void configureNextLayoutAnimation(jsi::Runtime &rt, jsi::Object config, jsi::Function callback, jsi::Function errorCallback) = 0; - virtual void setChildren(jsi::Runtime &rt, double containerTag, jsi::Array reactTags) = 0; - virtual void manageChildren(jsi::Runtime &rt, double containerTag, jsi::Array moveFromIndices, jsi::Array moveToIndices, jsi::Array addChildReactTags, jsi::Array addAtIndices, jsi::Array removeAtIndices) = 0; - virtual std::optional getConstantsForViewManager(jsi::Runtime &rt, jsi::String viewManagerName) = 0; - virtual jsi::Array getDefaultEventTypes(jsi::Runtime &rt) = 0; - virtual void setLayoutAnimationEnabledExperimental(jsi::Runtime &rt, bool enabled) = 0; - virtual void sendAccessibilityEvent(jsi::Runtime &rt, double reactTag, double eventType) = 0; - virtual jsi::Object lazilyLoadView(jsi::Runtime &rt, jsi::String name) = 0; - virtual void focus(jsi::Runtime &rt, double reactTag) = 0; - virtual void blur(jsi::Runtime &rt, double reactTag) = 0; - -}; - -template -class JSI_EXPORT NativeUIManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "UIManager"; - -protected: - NativeUIManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeUIManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeUIManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeUIManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void createView(jsi::Runtime &rt, double reactTag, jsi::String viewName, double rootTag, jsi::Object props) override { - static_assert( - bridging::getParameterCount(&T::createView) == 5, - "Expected createView(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::createView, jsInvoker_, instance_, std::move(reactTag), std::move(viewName), std::move(rootTag), std::move(props)); - } - void updateView(jsi::Runtime &rt, double reactTag, jsi::String viewName, jsi::Object props) override { - static_assert( - bridging::getParameterCount(&T::updateView) == 4, - "Expected updateView(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::updateView, jsInvoker_, instance_, std::move(reactTag), std::move(viewName), std::move(props)); - } - void findSubviewIn(jsi::Runtime &rt, double reactTag, jsi::Array point, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::findSubviewIn) == 4, - "Expected findSubviewIn(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::findSubviewIn, jsInvoker_, instance_, std::move(reactTag), std::move(point), std::move(callback)); - } - void dispatchViewManagerCommand(jsi::Runtime &rt, double reactTag, double commandID, std::optional commandArgs) override { - static_assert( - bridging::getParameterCount(&T::dispatchViewManagerCommand) == 4, - "Expected dispatchViewManagerCommand(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::dispatchViewManagerCommand, jsInvoker_, instance_, std::move(reactTag), std::move(commandID), std::move(commandArgs)); - } - void measure(jsi::Runtime &rt, double reactTag, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::measure) == 3, - "Expected measure(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::measure, jsInvoker_, instance_, std::move(reactTag), std::move(callback)); - } - void measureInWindow(jsi::Runtime &rt, double reactTag, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::measureInWindow) == 3, - "Expected measureInWindow(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::measureInWindow, jsInvoker_, instance_, std::move(reactTag), std::move(callback)); - } - void viewIsDescendantOf(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::viewIsDescendantOf) == 4, - "Expected viewIsDescendantOf(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::viewIsDescendantOf, jsInvoker_, instance_, std::move(reactTag), std::move(ancestorReactTag), std::move(callback)); - } - void measureLayout(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function errorCallback, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::measureLayout) == 5, - "Expected measureLayout(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::measureLayout, jsInvoker_, instance_, std::move(reactTag), std::move(ancestorReactTag), std::move(errorCallback), std::move(callback)); - } - void measureLayoutRelativeToParent(jsi::Runtime &rt, double reactTag, jsi::Function errorCallback, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::measureLayoutRelativeToParent) == 4, - "Expected measureLayoutRelativeToParent(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::measureLayoutRelativeToParent, jsInvoker_, instance_, std::move(reactTag), std::move(errorCallback), std::move(callback)); - } - void setJSResponder(jsi::Runtime &rt, double reactTag, bool blockNativeResponder) override { - static_assert( - bridging::getParameterCount(&T::setJSResponder) == 3, - "Expected setJSResponder(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setJSResponder, jsInvoker_, instance_, std::move(reactTag), std::move(blockNativeResponder)); - } - void clearJSResponder(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::clearJSResponder) == 1, - "Expected clearJSResponder(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::clearJSResponder, jsInvoker_, instance_); - } - void configureNextLayoutAnimation(jsi::Runtime &rt, jsi::Object config, jsi::Function callback, jsi::Function errorCallback) override { - static_assert( - bridging::getParameterCount(&T::configureNextLayoutAnimation) == 4, - "Expected configureNextLayoutAnimation(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::configureNextLayoutAnimation, jsInvoker_, instance_, std::move(config), std::move(callback), std::move(errorCallback)); - } - void setChildren(jsi::Runtime &rt, double containerTag, jsi::Array reactTags) override { - static_assert( - bridging::getParameterCount(&T::setChildren) == 3, - "Expected setChildren(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setChildren, jsInvoker_, instance_, std::move(containerTag), std::move(reactTags)); - } - void manageChildren(jsi::Runtime &rt, double containerTag, jsi::Array moveFromIndices, jsi::Array moveToIndices, jsi::Array addChildReactTags, jsi::Array addAtIndices, jsi::Array removeAtIndices) override { - static_assert( - bridging::getParameterCount(&T::manageChildren) == 7, - "Expected manageChildren(...) to have 7 parameters"); - - return bridging::callFromJs( - rt, &T::manageChildren, jsInvoker_, instance_, std::move(containerTag), std::move(moveFromIndices), std::move(moveToIndices), std::move(addChildReactTags), std::move(addAtIndices), std::move(removeAtIndices)); - } - std::optional getConstantsForViewManager(jsi::Runtime &rt, jsi::String viewManagerName) override { - static_assert( - bridging::getParameterCount(&T::getConstantsForViewManager) == 2, - "Expected getConstantsForViewManager(...) to have 2 parameters"); - - return bridging::callFromJs>( - rt, &T::getConstantsForViewManager, jsInvoker_, instance_, std::move(viewManagerName)); - } - jsi::Array getDefaultEventTypes(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getDefaultEventTypes) == 1, - "Expected getDefaultEventTypes(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getDefaultEventTypes, jsInvoker_, instance_); - } - void setLayoutAnimationEnabledExperimental(jsi::Runtime &rt, bool enabled) override { - static_assert( - bridging::getParameterCount(&T::setLayoutAnimationEnabledExperimental) == 2, - "Expected setLayoutAnimationEnabledExperimental(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setLayoutAnimationEnabledExperimental, jsInvoker_, instance_, std::move(enabled)); - } - void sendAccessibilityEvent(jsi::Runtime &rt, double reactTag, double eventType) override { - static_assert( - bridging::getParameterCount(&T::sendAccessibilityEvent) == 3, - "Expected sendAccessibilityEvent(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::sendAccessibilityEvent, jsInvoker_, instance_, std::move(reactTag), std::move(eventType)); - } - jsi::Object lazilyLoadView(jsi::Runtime &rt, jsi::String name) override { - static_assert( - bridging::getParameterCount(&T::lazilyLoadView) == 2, - "Expected lazilyLoadView(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::lazilyLoadView, jsInvoker_, instance_, std::move(name)); - } - void focus(jsi::Runtime &rt, double reactTag) override { - static_assert( - bridging::getParameterCount(&T::focus) == 2, - "Expected focus(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::focus, jsInvoker_, instance_, std::move(reactTag)); - } - void blur(jsi::Runtime &rt, double reactTag) override { - static_assert( - bridging::getParameterCount(&T::blur) == 2, - "Expected blur(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::blur, jsInvoker_, instance_, std::move(reactTag)); - } - - private: - friend class NativeUIManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeVibrationCxxSpecJSI : public TurboModule { -protected: - NativeVibrationCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; - virtual void vibrate(jsi::Runtime &rt, double pattern) = 0; - virtual void vibrateByPattern(jsi::Runtime &rt, jsi::Array pattern, double repeat) = 0; - virtual void cancel(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeVibrationCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "Vibration"; - -protected: - NativeVibrationCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeVibrationCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeVibrationCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeVibrationCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Object getConstants(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getConstants) == 1, - "Expected getConstants(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getConstants, jsInvoker_, instance_); - } - void vibrate(jsi::Runtime &rt, double pattern) override { - static_assert( - bridging::getParameterCount(&T::vibrate) == 2, - "Expected vibrate(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::vibrate, jsInvoker_, instance_, std::move(pattern)); - } - void vibrateByPattern(jsi::Runtime &rt, jsi::Array pattern, double repeat) override { - static_assert( - bridging::getParameterCount(&T::vibrateByPattern) == 3, - "Expected vibrateByPattern(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::vibrateByPattern, jsInvoker_, instance_, std::move(pattern), std::move(repeat)); - } - void cancel(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::cancel) == 1, - "Expected cancel(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::cancel, jsInvoker_, instance_); - } - - private: - friend class NativeVibrationCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeWebSocketModuleCxxSpecJSI : public TurboModule { -protected: - NativeWebSocketModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void connect(jsi::Runtime &rt, jsi::String url, std::optional protocols, jsi::Object options, double socketID) = 0; - virtual void send(jsi::Runtime &rt, jsi::String message, double forSocketID) = 0; - virtual void sendBinary(jsi::Runtime &rt, jsi::String base64String, double forSocketID) = 0; - virtual void ping(jsi::Runtime &rt, double socketID) = 0; - virtual void close(jsi::Runtime &rt, double code, jsi::String reason, double socketID) = 0; - virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; - virtual void removeListeners(jsi::Runtime &rt, double count) = 0; - -}; - -template -class JSI_EXPORT NativeWebSocketModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "WebSocketModule"; - -protected: - NativeWebSocketModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeWebSocketModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeWebSocketModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeWebSocketModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void connect(jsi::Runtime &rt, jsi::String url, std::optional protocols, jsi::Object options, double socketID) override { - static_assert( - bridging::getParameterCount(&T::connect) == 5, - "Expected connect(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::connect, jsInvoker_, instance_, std::move(url), std::move(protocols), std::move(options), std::move(socketID)); - } - void send(jsi::Runtime &rt, jsi::String message, double forSocketID) override { - static_assert( - bridging::getParameterCount(&T::send) == 3, - "Expected send(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::send, jsInvoker_, instance_, std::move(message), std::move(forSocketID)); - } - void sendBinary(jsi::Runtime &rt, jsi::String base64String, double forSocketID) override { - static_assert( - bridging::getParameterCount(&T::sendBinary) == 3, - "Expected sendBinary(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::sendBinary, jsInvoker_, instance_, std::move(base64String), std::move(forSocketID)); - } - void ping(jsi::Runtime &rt, double socketID) override { - static_assert( - bridging::getParameterCount(&T::ping) == 2, - "Expected ping(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::ping, jsInvoker_, instance_, std::move(socketID)); - } - void close(jsi::Runtime &rt, double code, jsi::String reason, double socketID) override { - static_assert( - bridging::getParameterCount(&T::close) == 4, - "Expected close(...) to have 4 parameters"); - - return bridging::callFromJs( - rt, &T::close, jsInvoker_, instance_, std::move(code), std::move(reason), std::move(socketID)); - } - void addListener(jsi::Runtime &rt, jsi::String eventName) override { - static_assert( - bridging::getParameterCount(&T::addListener) == 2, - "Expected addListener(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); - } - void removeListeners(jsi::Runtime &rt, double count) override { - static_assert( - bridging::getParameterCount(&T::removeListeners) == 2, - "Expected removeListeners(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); - } - - private: - friend class NativeWebSocketModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeDevMenuCxxSpecJSI : public TurboModule { -protected: - NativeDevMenuCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void show(jsi::Runtime &rt) = 0; - virtual void reload(jsi::Runtime &rt) = 0; - virtual void setProfilingEnabled(jsi::Runtime &rt, bool enabled) = 0; - virtual void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) = 0; - -}; - -template -class JSI_EXPORT NativeDevMenuCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "DevMenu"; - -protected: - NativeDevMenuCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDevMenuCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDevMenuCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDevMenuCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void show(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::show) == 1, - "Expected show(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::show, jsInvoker_, instance_); - } - void reload(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::reload) == 1, - "Expected reload(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::reload, jsInvoker_, instance_); - } - void setProfilingEnabled(jsi::Runtime &rt, bool enabled) override { - static_assert( - bridging::getParameterCount(&T::setProfilingEnabled) == 2, - "Expected setProfilingEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setProfilingEnabled, jsInvoker_, instance_, std::move(enabled)); - } - void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) override { - static_assert( - bridging::getParameterCount(&T::setHotLoadingEnabled) == 2, - "Expected setHotLoadingEnabled(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setHotLoadingEnabled, jsInvoker_, instance_, std::move(enabled)); - } - - private: - friend class NativeDevMenuCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig - -template -struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig { - P0 shouldReloadAndProfile; - P1 recordChangeDescriptions; - bool operator==(const NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig &other) const { - return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions; - } -}; - -template -struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfigBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) { - return bridging::toJs(rt, value); - } - - static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.shouldReloadAndProfile) { - result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile.value(), jsInvoker)); - } - if (value.recordChangeDescriptions) { - result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig - -template -struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig { - P0 shouldReloadAndProfile; - P1 recordChangeDescriptions; - bool operator==(const NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig &other) const { - return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions; - } -}; - -template -struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfigBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) { - return bridging::toJs(rt, value); - } - - static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile, jsInvoker)); - result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI : public TurboModule { -protected: - NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) = 0; - virtual jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ReactDevToolsRuntimeSettingsModule"; - -protected: - NativeReactDevToolsRuntimeSettingsModuleCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeReactDevToolsRuntimeSettingsModuleCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) override { - static_assert( - bridging::getParameterCount(&T::setReloadAndProfileConfig) == 2, - "Expected setReloadAndProfileConfig(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setReloadAndProfileConfig, jsInvoker_, instance_, std::move(config)); - } - jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getReloadAndProfileConfig) == 1, - "Expected getReloadAndProfileConfig(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getReloadAndProfileConfig, jsInvoker_, instance_); - } - - private: - friend class NativeReactDevToolsRuntimeSettingsModuleCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpecJSI : public TurboModule { -protected: - NativeReactDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) = 0; - virtual std::optional getGlobalHookSettings(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "ReactDevToolsSettingsManager"; - -protected: - NativeReactDevToolsSettingsManagerCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeReactDevToolsSettingsManagerCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeReactDevToolsSettingsManagerCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeReactDevToolsSettingsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) override { - static_assert( - bridging::getParameterCount(&T::setGlobalHookSettings) == 2, - "Expected setGlobalHookSettings(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::setGlobalHookSettings, jsInvoker_, instance_, std::move(settings)); - } - std::optional getGlobalHookSettings(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getGlobalHookSettings) == 1, - "Expected getGlobalHookSettings(...) to have 1 parameters"); - - return bridging::callFromJs>( - rt, &T::getGlobalHookSettings, jsInvoker_, instance_); - } - - private: - friend class NativeReactDevToolsSettingsManagerCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeIdleCallbacksIdleDeadline - -template -struct NativeIdleCallbacksIdleDeadline { - P0 didTimeout; - P1 timeRemaining; - bool operator==(const NativeIdleCallbacksIdleDeadline &other) const { - return didTimeout == other.didTimeout && timeRemaining == other.timeRemaining; - } -}; - -template -struct NativeIdleCallbacksIdleDeadlineBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "didTimeout"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "timeRemaining"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static bool didTimeoutToJs(jsi::Runtime &rt, decltype(types.didTimeout) value) { - return bridging::toJs(rt, value); - } - - static jsi::Function timeRemainingToJs(jsi::Runtime &rt, decltype(types.timeRemaining) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "didTimeout", bridging::toJs(rt, value.didTimeout, jsInvoker)); - result.setProperty(rt, "timeRemaining", bridging::toJs(rt, value.timeRemaining, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativeIdleCallbacksRequestIdleCallbackOptions - -template -struct NativeIdleCallbacksRequestIdleCallbackOptions { - P0 timeout; - bool operator==(const NativeIdleCallbacksRequestIdleCallbackOptions &other) const { - return timeout == other.timeout; - } -}; - -template -struct NativeIdleCallbacksRequestIdleCallbackOptionsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "timeout"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double timeoutToJs(jsi::Runtime &rt, decltype(types.timeout) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.timeout) { - result.setProperty(rt, "timeout", bridging::toJs(rt, value.timeout.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeIdleCallbacksCxxSpecJSI : public TurboModule { -protected: - NativeIdleCallbacksCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual jsi::Value requestIdleCallback(jsi::Runtime &rt, jsi::Function callback, std::optional options) = 0; - virtual void cancelIdleCallback(jsi::Runtime &rt, jsi::Value handle) = 0; - -}; - -template -class JSI_EXPORT NativeIdleCallbacksCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeIdleCallbacksCxx"; - -protected: - NativeIdleCallbacksCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeIdleCallbacksCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeIdleCallbacksCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeIdleCallbacksCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - jsi::Value requestIdleCallback(jsi::Runtime &rt, jsi::Function callback, std::optional options) override { - static_assert( - bridging::getParameterCount(&T::requestIdleCallback) == 3, - "Expected requestIdleCallback(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::requestIdleCallback, jsInvoker_, instance_, std::move(callback), std::move(options)); - } - void cancelIdleCallback(jsi::Runtime &rt, jsi::Value handle) override { - static_assert( - bridging::getParameterCount(&T::cancelIdleCallback) == 2, - "Expected cancelIdleCallback(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::cancelIdleCallback, jsInvoker_, instance_, std::move(handle)); - } - - private: - friend class NativeIdleCallbacksCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeIntersectionObserverNativeIntersectionObserverEntry - -template -struct NativeIntersectionObserverNativeIntersectionObserverEntry { - P0 intersectionObserverId; - P1 targetInstanceHandle; - P2 targetRect; - P3 rootRect; - P4 intersectionRect; - P5 isIntersectingAboveThresholds; - P6 time; - bool operator==(const NativeIntersectionObserverNativeIntersectionObserverEntry &other) const { - return intersectionObserverId == other.intersectionObserverId && targetInstanceHandle == other.targetInstanceHandle && targetRect == other.targetRect && rootRect == other.rootRect && intersectionRect == other.intersectionRect && isIntersectingAboveThresholds == other.isIntersectingAboveThresholds && time == other.time; - } -}; - -template -struct NativeIntersectionObserverNativeIntersectionObserverEntryBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "intersectionObserverId"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "targetInstanceHandle"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "targetRect"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "rootRect"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "intersectionRect"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "isIntersectingAboveThresholds"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "time"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double intersectionObserverIdToJs(jsi::Runtime &rt, decltype(types.intersectionObserverId) value) { - return bridging::toJs(rt, value); - } - - static jsi::Value targetInstanceHandleToJs(jsi::Runtime &rt, decltype(types.targetInstanceHandle) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array targetRectToJs(jsi::Runtime &rt, decltype(types.targetRect) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array rootRectToJs(jsi::Runtime &rt, decltype(types.rootRect) value) { - return bridging::toJs(rt, value); - } - - static std::optional intersectionRectToJs(jsi::Runtime &rt, decltype(types.intersectionRect) value) { - return bridging::toJs(rt, value); - } - - static bool isIntersectingAboveThresholdsToJs(jsi::Runtime &rt, decltype(types.isIntersectingAboveThresholds) value) { - return bridging::toJs(rt, value); - } - - static double timeToJs(jsi::Runtime &rt, decltype(types.time) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "intersectionObserverId", bridging::toJs(rt, value.intersectionObserverId, jsInvoker)); - result.setProperty(rt, "targetInstanceHandle", bridging::toJs(rt, value.targetInstanceHandle, jsInvoker)); - result.setProperty(rt, "targetRect", bridging::toJs(rt, value.targetRect, jsInvoker)); - result.setProperty(rt, "rootRect", bridging::toJs(rt, value.rootRect, jsInvoker)); - result.setProperty(rt, "intersectionRect", bridging::toJs(rt, value.intersectionRect, jsInvoker)); - result.setProperty(rt, "isIntersectingAboveThresholds", bridging::toJs(rt, value.isIntersectingAboveThresholds, jsInvoker)); - result.setProperty(rt, "time", bridging::toJs(rt, value.time, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativeIntersectionObserverNativeIntersectionObserverObserveOptions - -template -struct NativeIntersectionObserverNativeIntersectionObserverObserveOptions { - P0 intersectionObserverId; - P1 rootShadowNode; - P2 targetShadowNode; - P3 thresholds; - P4 rootThresholds; - bool operator==(const NativeIntersectionObserverNativeIntersectionObserverObserveOptions &other) const { - return intersectionObserverId == other.intersectionObserverId && rootShadowNode == other.rootShadowNode && targetShadowNode == other.targetShadowNode && thresholds == other.thresholds && rootThresholds == other.rootThresholds; - } -}; - -template -struct NativeIntersectionObserverNativeIntersectionObserverObserveOptionsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "intersectionObserverId"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "rootShadowNode"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "targetShadowNode"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "thresholds"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "rootThresholds"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double intersectionObserverIdToJs(jsi::Runtime &rt, decltype(types.intersectionObserverId) value) { - return bridging::toJs(rt, value); - } - - static std::optional rootShadowNodeToJs(jsi::Runtime &rt, decltype(types.rootShadowNode) value) { - return bridging::toJs(rt, value); - } - - static jsi::Value targetShadowNodeToJs(jsi::Runtime &rt, decltype(types.targetShadowNode) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array thresholdsToJs(jsi::Runtime &rt, decltype(types.thresholds) value) { - return bridging::toJs(rt, value); - } - - static std::optional rootThresholdsToJs(jsi::Runtime &rt, decltype(types.rootThresholds) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "intersectionObserverId", bridging::toJs(rt, value.intersectionObserverId, jsInvoker)); - if (value.rootShadowNode) { - result.setProperty(rt, "rootShadowNode", bridging::toJs(rt, value.rootShadowNode.value(), jsInvoker)); - } - result.setProperty(rt, "targetShadowNode", bridging::toJs(rt, value.targetShadowNode, jsInvoker)); - result.setProperty(rt, "thresholds", bridging::toJs(rt, value.thresholds, jsInvoker)); - if (value.rootThresholds) { - result.setProperty(rt, "rootThresholds", bridging::toJs(rt, value.rootThresholds.value(), jsInvoker)); - } - return result; - } -}; - -class JSI_EXPORT NativeIntersectionObserverCxxSpecJSI : public TurboModule { -protected: - NativeIntersectionObserverCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void observe(jsi::Runtime &rt, jsi::Object options) = 0; - virtual void unobserve(jsi::Runtime &rt, double intersectionObserverId, jsi::Value targetShadowNode) = 0; - virtual jsi::Value observeV2(jsi::Runtime &rt, jsi::Object options) = 0; - virtual void unobserveV2(jsi::Runtime &rt, double intersectionObserverId, jsi::Value token) = 0; - virtual void connect(jsi::Runtime &rt, jsi::Function notifyIntersectionObserversCallback) = 0; - virtual void disconnect(jsi::Runtime &rt) = 0; - virtual jsi::Array takeRecords(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeIntersectionObserverCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeIntersectionObserverCxx"; - -protected: - NativeIntersectionObserverCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeIntersectionObserverCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeIntersectionObserverCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeIntersectionObserverCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void observe(jsi::Runtime &rt, jsi::Object options) override { - static_assert( - bridging::getParameterCount(&T::observe) == 2, - "Expected observe(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::observe, jsInvoker_, instance_, std::move(options)); - } - void unobserve(jsi::Runtime &rt, double intersectionObserverId, jsi::Value targetShadowNode) override { - static_assert( - bridging::getParameterCount(&T::unobserve) == 3, - "Expected unobserve(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::unobserve, jsInvoker_, instance_, std::move(intersectionObserverId), std::move(targetShadowNode)); - } - jsi::Value observeV2(jsi::Runtime &rt, jsi::Object options) override { - static_assert( - bridging::getParameterCount(&T::observeV2) == 2, - "Expected observeV2(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::observeV2, jsInvoker_, instance_, std::move(options)); - } - void unobserveV2(jsi::Runtime &rt, double intersectionObserverId, jsi::Value token) override { - static_assert( - bridging::getParameterCount(&T::unobserveV2) == 3, - "Expected unobserveV2(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::unobserveV2, jsInvoker_, instance_, std::move(intersectionObserverId), std::move(token)); - } - void connect(jsi::Runtime &rt, jsi::Function notifyIntersectionObserversCallback) override { - static_assert( - bridging::getParameterCount(&T::connect) == 2, - "Expected connect(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::connect, jsInvoker_, instance_, std::move(notifyIntersectionObserversCallback)); - } - void disconnect(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::disconnect) == 1, - "Expected disconnect(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::disconnect, jsInvoker_, instance_); - } - jsi::Array takeRecords(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::takeRecords) == 1, - "Expected takeRecords(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::takeRecords, jsInvoker_, instance_); - } - - private: - friend class NativeIntersectionObserverCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeMicrotasksCxxSpecJSI : public TurboModule { -protected: - NativeMicrotasksCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void queueMicrotask(jsi::Runtime &rt, jsi::Function callback) = 0; - -}; - -template -class JSI_EXPORT NativeMicrotasksCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeMicrotasksCxx"; - -protected: - NativeMicrotasksCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeMicrotasksCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeMicrotasksCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeMicrotasksCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void queueMicrotask(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::queueMicrotask) == 2, - "Expected queueMicrotask(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::queueMicrotask, jsInvoker_, instance_, std::move(callback)); - } - - private: - friend class NativeMicrotasksCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - -#pragma mark - NativeMutationObserverNativeMutationObserverObserveOptions - -template -struct NativeMutationObserverNativeMutationObserverObserveOptions { - P0 mutationObserverId; - P1 targetShadowNode; - P2 subtree; - bool operator==(const NativeMutationObserverNativeMutationObserverObserveOptions &other) const { - return mutationObserverId == other.mutationObserverId && targetShadowNode == other.targetShadowNode && subtree == other.subtree; - } -}; - -template -struct NativeMutationObserverNativeMutationObserverObserveOptionsBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "mutationObserverId"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "targetShadowNode"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "subtree"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double mutationObserverIdToJs(jsi::Runtime &rt, decltype(types.mutationObserverId) value) { - return bridging::toJs(rt, value); - } - - static jsi::Value targetShadowNodeToJs(jsi::Runtime &rt, decltype(types.targetShadowNode) value) { - return bridging::toJs(rt, value); - } - - static bool subtreeToJs(jsi::Runtime &rt, decltype(types.subtree) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "mutationObserverId", bridging::toJs(rt, value.mutationObserverId, jsInvoker)); - result.setProperty(rt, "targetShadowNode", bridging::toJs(rt, value.targetShadowNode, jsInvoker)); - result.setProperty(rt, "subtree", bridging::toJs(rt, value.subtree, jsInvoker)); - return result; - } -}; - - - -#pragma mark - NativeMutationObserverNativeMutationRecord - -template -struct NativeMutationObserverNativeMutationRecord { - P0 mutationObserverId; - P1 target; - P2 addedNodes; - P3 removedNodes; - bool operator==(const NativeMutationObserverNativeMutationRecord &other) const { - return mutationObserverId == other.mutationObserverId && target == other.target && addedNodes == other.addedNodes && removedNodes == other.removedNodes; - } -}; - -template -struct NativeMutationObserverNativeMutationRecordBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "mutationObserverId"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "target"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "addedNodes"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "removedNodes"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static double mutationObserverIdToJs(jsi::Runtime &rt, decltype(types.mutationObserverId) value) { - return bridging::toJs(rt, value); - } - - static jsi::Value targetToJs(jsi::Runtime &rt, decltype(types.target) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array addedNodesToJs(jsi::Runtime &rt, decltype(types.addedNodes) value) { - return bridging::toJs(rt, value); - } - - static jsi::Array removedNodesToJs(jsi::Runtime &rt, decltype(types.removedNodes) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "mutationObserverId", bridging::toJs(rt, value.mutationObserverId, jsInvoker)); - result.setProperty(rt, "target", bridging::toJs(rt, value.target, jsInvoker)); - result.setProperty(rt, "addedNodes", bridging::toJs(rt, value.addedNodes, jsInvoker)); - result.setProperty(rt, "removedNodes", bridging::toJs(rt, value.removedNodes, jsInvoker)); - return result; - } -}; - -class JSI_EXPORT NativeMutationObserverCxxSpecJSI : public TurboModule { -protected: - NativeMutationObserverCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual void observe(jsi::Runtime &rt, jsi::Object options) = 0; - virtual void unobserveAll(jsi::Runtime &rt, double mutationObserverId) = 0; - virtual void connect(jsi::Runtime &rt, jsi::Function notifyMutationObservers, jsi::Function getPublicInstanceFromInstanceHandle) = 0; - virtual void disconnect(jsi::Runtime &rt) = 0; - virtual jsi::Array takeRecords(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativeMutationObserverCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeMutationObserverCxx"; - -protected: - NativeMutationObserverCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeMutationObserverCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeMutationObserverCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeMutationObserverCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - void observe(jsi::Runtime &rt, jsi::Object options) override { - static_assert( - bridging::getParameterCount(&T::observe) == 2, - "Expected observe(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::observe, jsInvoker_, instance_, std::move(options)); - } - void unobserveAll(jsi::Runtime &rt, double mutationObserverId) override { - static_assert( - bridging::getParameterCount(&T::unobserveAll) == 2, - "Expected unobserveAll(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::unobserveAll, jsInvoker_, instance_, std::move(mutationObserverId)); - } - void connect(jsi::Runtime &rt, jsi::Function notifyMutationObservers, jsi::Function getPublicInstanceFromInstanceHandle) override { - static_assert( - bridging::getParameterCount(&T::connect) == 3, - "Expected connect(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::connect, jsInvoker_, instance_, std::move(notifyMutationObservers), std::move(getPublicInstanceFromInstanceHandle)); - } - void disconnect(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::disconnect) == 1, - "Expected disconnect(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::disconnect, jsInvoker_, instance_); - } - jsi::Array takeRecords(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::takeRecords) == 1, - "Expected takeRecords(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::takeRecords, jsInvoker_, instance_); - } - - private: - friend class NativeMutationObserverCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - - -#pragma mark - NativePerformancePerformanceObserverInit - -template -struct NativePerformancePerformanceObserverInit { - P0 entryTypes; - P1 type; - P2 buffered; - P3 durationThreshold; - bool operator==(const NativePerformancePerformanceObserverInit &other) const { - return entryTypes == other.entryTypes && type == other.type && buffered == other.buffered && durationThreshold == other.durationThreshold; - } -}; - -template -struct NativePerformancePerformanceObserverInitBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "entryTypes"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "type"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "buffered"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "durationThreshold"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::Array entryTypesToJs(jsi::Runtime &rt, decltype(types.entryTypes) value) { - return bridging::toJs(rt, value); - } - - static double typeToJs(jsi::Runtime &rt, decltype(types.type) value) { - return bridging::toJs(rt, value); - } - - static bool bufferedToJs(jsi::Runtime &rt, decltype(types.buffered) value) { - return bridging::toJs(rt, value); - } - - static double durationThresholdToJs(jsi::Runtime &rt, decltype(types.durationThreshold) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - if (value.entryTypes) { - result.setProperty(rt, "entryTypes", bridging::toJs(rt, value.entryTypes.value(), jsInvoker)); - } - if (value.type) { - result.setProperty(rt, "type", bridging::toJs(rt, value.type.value(), jsInvoker)); - } - if (value.buffered) { - result.setProperty(rt, "buffered", bridging::toJs(rt, value.buffered.value(), jsInvoker)); - } - if (value.durationThreshold) { - result.setProperty(rt, "durationThreshold", bridging::toJs(rt, value.durationThreshold.value(), jsInvoker)); - } - return result; - } -}; - - - -#pragma mark - NativePerformanceRawPerformanceEntry - -template -struct NativePerformanceRawPerformanceEntry { - P0 name; - P1 entryType; - P2 startTime; - P3 duration; - P4 processingStart; - P5 processingEnd; - P6 interactionId; - P7 fetchStart; - P8 requestStart; - P9 connectStart; - P10 connectEnd; - P11 responseStart; - P12 responseEnd; - P13 responseStatus; - bool operator==(const NativePerformanceRawPerformanceEntry &other) const { - return name == other.name && entryType == other.entryType && startTime == other.startTime && duration == other.duration && processingStart == other.processingStart && processingEnd == other.processingEnd && interactionId == other.interactionId && fetchStart == other.fetchStart && requestStart == other.requestStart && connectStart == other.connectStart && connectEnd == other.connectEnd && responseStart == other.responseStart && responseEnd == other.responseEnd && responseStatus == other.responseStatus; - } -}; - -template -struct NativePerformanceRawPerformanceEntryBridging { - static T types; - - static T fromJs( - jsi::Runtime &rt, - const jsi::Object &value, - const std::shared_ptr &jsInvoker) { - T result{ - bridging::fromJs(rt, value.getProperty(rt, "name"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "entryType"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "startTime"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "duration"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "processingStart"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "processingEnd"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "interactionId"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "fetchStart"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "requestStart"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "connectStart"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "connectEnd"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "responseStart"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "responseEnd"), jsInvoker), - bridging::fromJs(rt, value.getProperty(rt, "responseStatus"), jsInvoker)}; - return result; - } - -#ifdef DEBUG - static jsi::String nameToJs(jsi::Runtime &rt, decltype(types.name) value) { - return bridging::toJs(rt, value); - } - - static double entryTypeToJs(jsi::Runtime &rt, decltype(types.entryType) value) { - return bridging::toJs(rt, value); - } - - static double startTimeToJs(jsi::Runtime &rt, decltype(types.startTime) value) { - return bridging::toJs(rt, value); - } - - static double durationToJs(jsi::Runtime &rt, decltype(types.duration) value) { - return bridging::toJs(rt, value); - } - - static double processingStartToJs(jsi::Runtime &rt, decltype(types.processingStart) value) { - return bridging::toJs(rt, value); - } - - static double processingEndToJs(jsi::Runtime &rt, decltype(types.processingEnd) value) { - return bridging::toJs(rt, value); - } - - static double interactionIdToJs(jsi::Runtime &rt, decltype(types.interactionId) value) { - return bridging::toJs(rt, value); - } - - static double fetchStartToJs(jsi::Runtime &rt, decltype(types.fetchStart) value) { - return bridging::toJs(rt, value); - } - - static double requestStartToJs(jsi::Runtime &rt, decltype(types.requestStart) value) { - return bridging::toJs(rt, value); - } - - static double connectStartToJs(jsi::Runtime &rt, decltype(types.connectStart) value) { - return bridging::toJs(rt, value); - } - - static double connectEndToJs(jsi::Runtime &rt, decltype(types.connectEnd) value) { - return bridging::toJs(rt, value); - } - - static double responseStartToJs(jsi::Runtime &rt, decltype(types.responseStart) value) { - return bridging::toJs(rt, value); - } - - static double responseEndToJs(jsi::Runtime &rt, decltype(types.responseEnd) value) { - return bridging::toJs(rt, value); - } - - static double responseStatusToJs(jsi::Runtime &rt, decltype(types.responseStatus) value) { - return bridging::toJs(rt, value); - } -#endif - - static jsi::Object toJs( - jsi::Runtime &rt, - const T &value, - const std::shared_ptr &jsInvoker) { - auto result = facebook::jsi::Object(rt); - result.setProperty(rt, "name", bridging::toJs(rt, value.name, jsInvoker)); - result.setProperty(rt, "entryType", bridging::toJs(rt, value.entryType, jsInvoker)); - result.setProperty(rt, "startTime", bridging::toJs(rt, value.startTime, jsInvoker)); - result.setProperty(rt, "duration", bridging::toJs(rt, value.duration, jsInvoker)); - if (value.processingStart) { - result.setProperty(rt, "processingStart", bridging::toJs(rt, value.processingStart.value(), jsInvoker)); - } - if (value.processingEnd) { - result.setProperty(rt, "processingEnd", bridging::toJs(rt, value.processingEnd.value(), jsInvoker)); - } - if (value.interactionId) { - result.setProperty(rt, "interactionId", bridging::toJs(rt, value.interactionId.value(), jsInvoker)); - } - if (value.fetchStart) { - result.setProperty(rt, "fetchStart", bridging::toJs(rt, value.fetchStart.value(), jsInvoker)); - } - if (value.requestStart) { - result.setProperty(rt, "requestStart", bridging::toJs(rt, value.requestStart.value(), jsInvoker)); - } - if (value.connectStart) { - result.setProperty(rt, "connectStart", bridging::toJs(rt, value.connectStart.value(), jsInvoker)); - } - if (value.connectEnd) { - result.setProperty(rt, "connectEnd", bridging::toJs(rt, value.connectEnd.value(), jsInvoker)); - } - if (value.responseStart) { - result.setProperty(rt, "responseStart", bridging::toJs(rt, value.responseStart.value(), jsInvoker)); - } - if (value.responseEnd) { - result.setProperty(rt, "responseEnd", bridging::toJs(rt, value.responseEnd.value(), jsInvoker)); - } - if (value.responseStatus) { - result.setProperty(rt, "responseStatus", bridging::toJs(rt, value.responseStatus.value(), jsInvoker)); - } - return result; - } -}; - - -class JSI_EXPORT NativePerformanceCxxSpecJSI : public TurboModule { -protected: - NativePerformanceCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual double now(jsi::Runtime &rt) = 0; - virtual double markWithResult(jsi::Runtime &rt, jsi::String name, std::optional startTime) = 0; - virtual jsi::Array measureWithResult(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional duration, std::optional startMark, std::optional endMark) = 0; - virtual void clearMarks(jsi::Runtime &rt, std::optional entryName) = 0; - virtual void clearMeasures(jsi::Runtime &rt, std::optional entryName) = 0; - virtual jsi::Array getEntries(jsi::Runtime &rt) = 0; - virtual jsi::Array getEntriesByName(jsi::Runtime &rt, jsi::String entryName, std::optional entryType) = 0; - virtual jsi::Array getEntriesByType(jsi::Runtime &rt, double entryType) = 0; - virtual jsi::Array getEventCounts(jsi::Runtime &rt) = 0; - virtual jsi::Object getSimpleMemoryInfo(jsi::Runtime &rt) = 0; - virtual jsi::Object getReactNativeStartupTiming(jsi::Runtime &rt) = 0; - virtual jsi::Value createObserver(jsi::Runtime &rt, jsi::Function callback) = 0; - virtual double getDroppedEntriesCount(jsi::Runtime &rt, jsi::Value observer) = 0; - virtual void observe(jsi::Runtime &rt, jsi::Value observer, jsi::Object options) = 0; - virtual void disconnect(jsi::Runtime &rt, jsi::Value observer) = 0; - virtual jsi::Array takeRecords(jsi::Runtime &rt, jsi::Value observer, bool sort) = 0; - virtual jsi::Array getSupportedPerformanceEntryTypes(jsi::Runtime &rt) = 0; - -}; - -template -class JSI_EXPORT NativePerformanceCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativePerformanceCxx"; - -protected: - NativePerformanceCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativePerformanceCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativePerformanceCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativePerformanceCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - double now(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::now) == 1, - "Expected now(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::now, jsInvoker_, instance_); - } - double markWithResult(jsi::Runtime &rt, jsi::String name, std::optional startTime) override { - static_assert( - bridging::getParameterCount(&T::markWithResult) == 3, - "Expected markWithResult(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::markWithResult, jsInvoker_, instance_, std::move(name), std::move(startTime)); - } - jsi::Array measureWithResult(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional duration, std::optional startMark, std::optional endMark) override { - static_assert( - bridging::getParameterCount(&T::measureWithResult) == 7, - "Expected measureWithResult(...) to have 7 parameters"); - - return bridging::callFromJs( - rt, &T::measureWithResult, jsInvoker_, instance_, std::move(name), std::move(startTime), std::move(endTime), std::move(duration), std::move(startMark), std::move(endMark)); - } - void clearMarks(jsi::Runtime &rt, std::optional entryName) override { - static_assert( - bridging::getParameterCount(&T::clearMarks) == 2, - "Expected clearMarks(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::clearMarks, jsInvoker_, instance_, std::move(entryName)); - } - void clearMeasures(jsi::Runtime &rt, std::optional entryName) override { - static_assert( - bridging::getParameterCount(&T::clearMeasures) == 2, - "Expected clearMeasures(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::clearMeasures, jsInvoker_, instance_, std::move(entryName)); - } - jsi::Array getEntries(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getEntries) == 1, - "Expected getEntries(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getEntries, jsInvoker_, instance_); - } - jsi::Array getEntriesByName(jsi::Runtime &rt, jsi::String entryName, std::optional entryType) override { - static_assert( - bridging::getParameterCount(&T::getEntriesByName) == 3, - "Expected getEntriesByName(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getEntriesByName, jsInvoker_, instance_, std::move(entryName), std::move(entryType)); - } - jsi::Array getEntriesByType(jsi::Runtime &rt, double entryType) override { - static_assert( - bridging::getParameterCount(&T::getEntriesByType) == 2, - "Expected getEntriesByType(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getEntriesByType, jsInvoker_, instance_, std::move(entryType)); - } - jsi::Array getEventCounts(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getEventCounts) == 1, - "Expected getEventCounts(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getEventCounts, jsInvoker_, instance_); - } - jsi::Object getSimpleMemoryInfo(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getSimpleMemoryInfo) == 1, - "Expected getSimpleMemoryInfo(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getSimpleMemoryInfo, jsInvoker_, instance_); - } - jsi::Object getReactNativeStartupTiming(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getReactNativeStartupTiming) == 1, - "Expected getReactNativeStartupTiming(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getReactNativeStartupTiming, jsInvoker_, instance_); - } - jsi::Value createObserver(jsi::Runtime &rt, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::createObserver) == 2, - "Expected createObserver(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::createObserver, jsInvoker_, instance_, std::move(callback)); - } - double getDroppedEntriesCount(jsi::Runtime &rt, jsi::Value observer) override { - static_assert( - bridging::getParameterCount(&T::getDroppedEntriesCount) == 2, - "Expected getDroppedEntriesCount(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getDroppedEntriesCount, jsInvoker_, instance_, std::move(observer)); - } - void observe(jsi::Runtime &rt, jsi::Value observer, jsi::Object options) override { - static_assert( - bridging::getParameterCount(&T::observe) == 3, - "Expected observe(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::observe, jsInvoker_, instance_, std::move(observer), std::move(options)); - } - void disconnect(jsi::Runtime &rt, jsi::Value observer) override { - static_assert( - bridging::getParameterCount(&T::disconnect) == 2, - "Expected disconnect(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::disconnect, jsInvoker_, instance_, std::move(observer)); - } - jsi::Array takeRecords(jsi::Runtime &rt, jsi::Value observer, bool sort) override { - static_assert( - bridging::getParameterCount(&T::takeRecords) == 3, - "Expected takeRecords(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::takeRecords, jsInvoker_, instance_, std::move(observer), std::move(sort)); - } - jsi::Array getSupportedPerformanceEntryTypes(jsi::Runtime &rt) override { - static_assert( - bridging::getParameterCount(&T::getSupportedPerformanceEntryTypes) == 1, - "Expected getSupportedPerformanceEntryTypes(...) to have 1 parameters"); - - return bridging::callFromJs( - rt, &T::getSupportedPerformanceEntryTypes, jsInvoker_, instance_); - } - - private: - friend class NativePerformanceCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; - - - class JSI_EXPORT NativeDOMCxxSpecJSI : public TurboModule { -protected: - NativeDOMCxxSpecJSI(std::shared_ptr jsInvoker); - -public: - virtual double compareDocumentPosition(jsi::Runtime &rt, jsi::Value nativeNodeReference, jsi::Value otherNativeNodeReference) = 0; - virtual jsi::Array getChildNodes(jsi::Runtime &rt, jsi::Value nativeNodeReference) = 0; - virtual jsi::Value getParentNode(jsi::Runtime &rt, jsi::Value nativeNodeReference) = 0; - virtual bool isConnected(jsi::Runtime &rt, jsi::Value nativeNodeReference) = 0; - virtual jsi::Array getBorderWidth(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; - virtual jsi::Array getBoundingClientRect(jsi::Runtime &rt, jsi::Value nativeElementReference, bool includeTransform) = 0; - virtual jsi::Array getInnerSize(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; - virtual jsi::Array getScrollPosition(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; - virtual jsi::Array getScrollSize(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; - virtual jsi::String getTagName(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; - virtual jsi::String getTextContent(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; - virtual bool hasPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) = 0; - virtual void releasePointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) = 0; - virtual void setPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) = 0; - virtual jsi::Array getOffset(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; - virtual jsi::Value linkRootNode(jsi::Runtime &rt, double rootTag, jsi::Value instanceHandle) = 0; - virtual void measure(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) = 0; - virtual void measureInWindow(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) = 0; - virtual void measureLayout(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value relativeNode, jsi::Function onFail, jsi::Function onSuccess) = 0; - virtual void setNativeProps(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value updatePayload) = 0; - -}; - -template -class JSI_EXPORT NativeDOMCxxSpec : public TurboModule { -public: - jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { - return delegate_.create(rt, propName); - } - - std::vector getPropertyNames(jsi::Runtime& runtime) override { - return delegate_.getPropertyNames(runtime); - } - - static constexpr std::string_view kModuleName = "NativeDOMCxx"; - -protected: - NativeDOMCxxSpec(std::shared_ptr jsInvoker) - : TurboModule(std::string{NativeDOMCxxSpec::kModuleName}, jsInvoker), - delegate_(reinterpret_cast(this), jsInvoker) {} - - -private: - class Delegate : public NativeDOMCxxSpecJSI { - public: - Delegate(T *instance, std::shared_ptr jsInvoker) : - NativeDOMCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { - - } - - double compareDocumentPosition(jsi::Runtime &rt, jsi::Value nativeNodeReference, jsi::Value otherNativeNodeReference) override { - static_assert( - bridging::getParameterCount(&T::compareDocumentPosition) == 3, - "Expected compareDocumentPosition(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::compareDocumentPosition, jsInvoker_, instance_, std::move(nativeNodeReference), std::move(otherNativeNodeReference)); - } - jsi::Array getChildNodes(jsi::Runtime &rt, jsi::Value nativeNodeReference) override { - static_assert( - bridging::getParameterCount(&T::getChildNodes) == 2, - "Expected getChildNodes(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getChildNodes, jsInvoker_, instance_, std::move(nativeNodeReference)); - } - jsi::Value getParentNode(jsi::Runtime &rt, jsi::Value nativeNodeReference) override { - static_assert( - bridging::getParameterCount(&T::getParentNode) == 2, - "Expected getParentNode(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getParentNode, jsInvoker_, instance_, std::move(nativeNodeReference)); - } - bool isConnected(jsi::Runtime &rt, jsi::Value nativeNodeReference) override { - static_assert( - bridging::getParameterCount(&T::isConnected) == 2, - "Expected isConnected(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::isConnected, jsInvoker_, instance_, std::move(nativeNodeReference)); - } - jsi::Array getBorderWidth(jsi::Runtime &rt, jsi::Value nativeElementReference) override { - static_assert( - bridging::getParameterCount(&T::getBorderWidth) == 2, - "Expected getBorderWidth(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getBorderWidth, jsInvoker_, instance_, std::move(nativeElementReference)); - } - jsi::Array getBoundingClientRect(jsi::Runtime &rt, jsi::Value nativeElementReference, bool includeTransform) override { - static_assert( - bridging::getParameterCount(&T::getBoundingClientRect) == 3, - "Expected getBoundingClientRect(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::getBoundingClientRect, jsInvoker_, instance_, std::move(nativeElementReference), std::move(includeTransform)); - } - jsi::Array getInnerSize(jsi::Runtime &rt, jsi::Value nativeElementReference) override { - static_assert( - bridging::getParameterCount(&T::getInnerSize) == 2, - "Expected getInnerSize(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getInnerSize, jsInvoker_, instance_, std::move(nativeElementReference)); - } - jsi::Array getScrollPosition(jsi::Runtime &rt, jsi::Value nativeElementReference) override { - static_assert( - bridging::getParameterCount(&T::getScrollPosition) == 2, - "Expected getScrollPosition(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getScrollPosition, jsInvoker_, instance_, std::move(nativeElementReference)); - } - jsi::Array getScrollSize(jsi::Runtime &rt, jsi::Value nativeElementReference) override { - static_assert( - bridging::getParameterCount(&T::getScrollSize) == 2, - "Expected getScrollSize(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getScrollSize, jsInvoker_, instance_, std::move(nativeElementReference)); - } - jsi::String getTagName(jsi::Runtime &rt, jsi::Value nativeElementReference) override { - static_assert( - bridging::getParameterCount(&T::getTagName) == 2, - "Expected getTagName(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getTagName, jsInvoker_, instance_, std::move(nativeElementReference)); - } - jsi::String getTextContent(jsi::Runtime &rt, jsi::Value nativeElementReference) override { - static_assert( - bridging::getParameterCount(&T::getTextContent) == 2, - "Expected getTextContent(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getTextContent, jsInvoker_, instance_, std::move(nativeElementReference)); - } - bool hasPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) override { - static_assert( - bridging::getParameterCount(&T::hasPointerCapture) == 3, - "Expected hasPointerCapture(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::hasPointerCapture, jsInvoker_, instance_, std::move(nativeElementReference), std::move(pointerId)); - } - void releasePointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) override { - static_assert( - bridging::getParameterCount(&T::releasePointerCapture) == 3, - "Expected releasePointerCapture(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::releasePointerCapture, jsInvoker_, instance_, std::move(nativeElementReference), std::move(pointerId)); - } - void setPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) override { - static_assert( - bridging::getParameterCount(&T::setPointerCapture) == 3, - "Expected setPointerCapture(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setPointerCapture, jsInvoker_, instance_, std::move(nativeElementReference), std::move(pointerId)); - } - jsi::Array getOffset(jsi::Runtime &rt, jsi::Value nativeElementReference) override { - static_assert( - bridging::getParameterCount(&T::getOffset) == 2, - "Expected getOffset(...) to have 2 parameters"); - - return bridging::callFromJs( - rt, &T::getOffset, jsInvoker_, instance_, std::move(nativeElementReference)); - } - jsi::Value linkRootNode(jsi::Runtime &rt, double rootTag, jsi::Value instanceHandle) override { - static_assert( - bridging::getParameterCount(&T::linkRootNode) == 3, - "Expected linkRootNode(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::linkRootNode, jsInvoker_, instance_, std::move(rootTag), std::move(instanceHandle)); - } - void measure(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::measure) == 3, - "Expected measure(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::measure, jsInvoker_, instance_, std::move(nativeElementReference), std::move(callback)); - } - void measureInWindow(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) override { - static_assert( - bridging::getParameterCount(&T::measureInWindow) == 3, - "Expected measureInWindow(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::measureInWindow, jsInvoker_, instance_, std::move(nativeElementReference), std::move(callback)); - } - void measureLayout(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value relativeNode, jsi::Function onFail, jsi::Function onSuccess) override { - static_assert( - bridging::getParameterCount(&T::measureLayout) == 5, - "Expected measureLayout(...) to have 5 parameters"); - - return bridging::callFromJs( - rt, &T::measureLayout, jsInvoker_, instance_, std::move(nativeElementReference), std::move(relativeNode), std::move(onFail), std::move(onSuccess)); - } - void setNativeProps(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value updatePayload) override { - static_assert( - bridging::getParameterCount(&T::setNativeProps) == 3, - "Expected setNativeProps(...) to have 3 parameters"); - - return bridging::callFromJs( - rt, &T::setNativeProps, jsInvoker_, instance_, std::move(nativeElementReference), std::move(updatePayload)); - } - - private: - friend class NativeDOMCxxSpec; - T *instance_; - }; - - Delegate delegate_; -}; } // namespace facebook::react From 94105bd90600d9b5e27d72b91ac0cae879f5ed55 Mon Sep 17 00:00:00 2001 From: Vineeth <66076509+vineethkuttan@users.noreply.github.com> Date: Tue, 20 Jan 2026 09:20:20 +0530 Subject: [PATCH 23/38] [0.82] E2Ex86 CI failure fix (#15549) * forking GenerateModuleCpp * Change files * review changes (cherry picked from commit 8b6a19d8917b49a69a6747f4ec7f08fa7043e714) --- ...-8977b235-04fe-4aff-a06e-c6b3f481de6e.json | 7 + ...-83578d60-30a3-4822-a835-4f85d5359b12.json | 7 + .../src/generators/GenerateModuleCpp.js | 245 ++++++++++++++++++ .../codegen/src/index.ts | 8 +- .../codegen/tsconfig.json | 13 +- .../msrnIntegrationTestsJSI-generated.cpp | 24 +- 6 files changed, 285 insertions(+), 19 deletions(-) create mode 100644 change/@react-native-windows-codegen-8977b235-04fe-4aff-a06e-c6b3f481de6e.json create mode 100644 change/react-native-windows-83578d60-30a3-4822-a835-4f85d5359b12.json create mode 100644 packages/@react-native-windows/codegen/src/generators/GenerateModuleCpp.js diff --git a/change/@react-native-windows-codegen-8977b235-04fe-4aff-a06e-c6b3f481de6e.json b/change/@react-native-windows-codegen-8977b235-04fe-4aff-a06e-c6b3f481de6e.json new file mode 100644 index 00000000000..c1fe60afbeb --- /dev/null +++ b/change/@react-native-windows-codegen-8977b235-04fe-4aff-a06e-c6b3f481de6e.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "forking GenerateModuleCpp", + "packageName": "@react-native-windows/codegen", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-83578d60-30a3-4822-a835-4f85d5359b12.json b/change/react-native-windows-83578d60-30a3-4822-a835-4f85d5359b12.json new file mode 100644 index 00000000000..5731798d676 --- /dev/null +++ b/change/react-native-windows-83578d60-30a3-4822-a835-4f85d5359b12.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "forking GenerateModuleCpp", + "packageName": "react-native-windows", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/@react-native-windows/codegen/src/generators/GenerateModuleCpp.js b/packages/@react-native-windows/codegen/src/generators/GenerateModuleCpp.js new file mode 100644 index 00000000000..97e63c85c3c --- /dev/null +++ b/packages/@react-native-windows/codegen/src/generators/GenerateModuleCpp.js @@ -0,0 +1,245 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + * @format + */ + +'use strict'; + +const path = require('path'); + +// Load dependencies from @react-native/codegen +const rnPath = path.dirname(require.resolve('react-native/package.json')); +const rncodegenPath = path.dirname( + require.resolve('@react-native/codegen/package.json', {paths: [rnPath]}), +); + +const {unwrapNullable} = require( + path.resolve(rncodegenPath, 'lib/parsers/parsers-commons'), +); +const {createAliasResolver, getModules} = require( + path.resolve(rncodegenPath, 'lib/generators/modules/Utils'), +); +const HostFunctionTemplate = ({ + hasteModuleName, + methodName, + returnTypeAnnotation, + args, +}) => { + const isNullable = returnTypeAnnotation.type === 'NullableTypeAnnotation'; + const isVoid = returnTypeAnnotation.type === 'VoidTypeAnnotation'; + const methodCallArgs = [' rt', ...args].join(',\n '); + const methodCall = `static_cast<${hasteModuleName}CxxSpecJSI *>(&turboModule)->${methodName}(\n${methodCallArgs}\n )`; + return `static jsi::Value __hostFunction_${hasteModuleName}CxxSpecJSI_${methodName}(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {${isVoid ? `\n ${methodCall};` : isNullable ? `\n auto result = ${methodCall};` : ''} + return ${isVoid ? 'jsi::Value::undefined()' : isNullable ? 'result ? jsi::Value(std::move(*result)) : jsi::Value::null()' : methodCall}; +}`; +}; +const ModuleTemplate = ({ + hasteModuleName, + hostFunctions, + moduleName, + methods, +}) => { + return `${hostFunctions.join('\n')} + +${hasteModuleName}CxxSpecJSI::${hasteModuleName}CxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("${moduleName}", jsInvoker) { +${methods + .map(({methodName, paramCount}) => { + return ` methodMap_["${methodName}"] = MethodMetadata {${paramCount}, __hostFunction_${hasteModuleName}CxxSpecJSI_${methodName}};`; + }) + .join('\n')} +}`; +}; +const FileTemplate = ({libraryName, modules}) => { + return `/** + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). + * + * Do not edit this file as changes may cause incorrect behavior and will be lost + * once the code is regenerated. + * + * ${'@'}generated by codegen project: GenerateModuleCpp.js + */ + +#include "${libraryName}JSI.h" + +namespace facebook::react { + +${modules} + + +} // namespace facebook::react +`; +}; +function serializeArg(moduleName, arg, index, resolveAlias, enumMap) { + const {typeAnnotation: nullableTypeAnnotation, optional} = arg; + const [typeAnnotation, nullable] = unwrapNullable(nullableTypeAnnotation); + let realTypeAnnotation = typeAnnotation; + if (realTypeAnnotation.type === 'TypeAliasTypeAnnotation') { + realTypeAnnotation = resolveAlias(realTypeAnnotation.name); + } + function wrap(callback) { + const val = `args[${index}]`; + const expression = callback(val); + + // param?: T + if (optional && !nullable) { + // throw new Error('are we hitting this case? ' + moduleName); + return `count <= ${index} || ${val}.isUndefined() ? std::nullopt : std::make_optional(${expression})`; + } + + // param: ?T + // param?: ?T + if (nullable || optional) { + return `count <= ${index} || ${val}.isNull() || ${val}.isUndefined() ? std::nullopt : std::make_optional(${expression})`; + } + + // param: T + //return `count <= ${index} ? throw jsi::JSError(rt, "Expected argument in position ${index} to be passed") : ${expression}`; + //Windows #15545 + return `(count > ${index} || (throw jsi::JSError(rt, "Expected argument in position ${index} to be passed"), false), ${expression})`; + //Windows + } + switch (realTypeAnnotation.type) { + case 'ReservedTypeAnnotation': + switch (realTypeAnnotation.name) { + case 'RootTag': + return wrap(val => `${val}.asNumber()`); + default: + realTypeAnnotation.name; + throw new Error( + `Unknown prop type for "${arg.name}, found: ${realTypeAnnotation.name}"`, + ); + } + case 'StringTypeAnnotation': + return wrap(val => `${val}.asString(rt)`); + case 'StringLiteralTypeAnnotation': + return wrap(val => `${val}.asString(rt)`); + case 'StringLiteralUnionTypeAnnotation': + return wrap(val => `${val}.asString(rt)`); + case 'BooleanTypeAnnotation': + return wrap(val => `${val}.asBool()`); + case 'EnumDeclaration': + switch (realTypeAnnotation.memberType) { + case 'NumberTypeAnnotation': + return wrap(val => `${val}.asNumber()`); + case 'StringTypeAnnotation': + return wrap(val => `${val}.asString(rt)`); + default: + throw new Error( + `Unknown enum type for "${arg.name}, found: ${realTypeAnnotation.type}"`, + ); + } + case 'NumberTypeAnnotation': + return wrap(val => `${val}.asNumber()`); + case 'FloatTypeAnnotation': + return wrap(val => `${val}.asNumber()`); + case 'DoubleTypeAnnotation': + return wrap(val => `${val}.asNumber()`); + case 'Int32TypeAnnotation': + return wrap(val => `${val}.asNumber()`); + case 'NumberLiteralTypeAnnotation': + return wrap(val => `${val}.asNumber()`); + case 'ArrayTypeAnnotation': + return wrap(val => `${val}.asObject(rt).asArray(rt)`); + case 'FunctionTypeAnnotation': + return wrap(val => `${val}.asObject(rt).asFunction(rt)`); + case 'GenericObjectTypeAnnotation': + return wrap(val => `${val}.asObject(rt)`); + case 'UnionTypeAnnotation': + switch (typeAnnotation.memberType) { + case 'NumberTypeAnnotation': + return wrap(val => `${val}.asNumber()`); + case 'ObjectTypeAnnotation': + return wrap(val => `${val}.asObject(rt)`); + case 'StringTypeAnnotation': + return wrap(val => `${val}.asString(rt)`); + default: + throw new Error( + `Unsupported union member type for param "${arg.name}, found: ${realTypeAnnotation.memberType}"`, + ); + } + case 'ObjectTypeAnnotation': + return wrap(val => `${val}.asObject(rt)`); + case 'MixedTypeAnnotation': + return wrap(val => `jsi::Value(rt, ${val})`); + default: + realTypeAnnotation.type; + throw new Error( + `Unknown prop type for "${arg.name}, found: ${realTypeAnnotation.type}"`, + ); + } +} +function serializePropertyIntoHostFunction( + moduleName, + hasteModuleName, + property, + resolveAlias, + enumMap, +) { + const [propertyTypeAnnotation] = unwrapNullable(property.typeAnnotation); + return HostFunctionTemplate({ + hasteModuleName, + methodName: property.name, + returnTypeAnnotation: propertyTypeAnnotation.returnTypeAnnotation, + args: propertyTypeAnnotation.params.map((p, i) => + serializeArg(moduleName, p, i, resolveAlias, enumMap), + ), + }); +} +module.exports = { + generate( + libraryName, + schema, + packageName, + assumeNonnull = false, + headerPrefix, + ) { + const nativeModules = getModules(schema); + const modules = Object.keys(nativeModules) + .map(hasteModuleName => { + const nativeModule = nativeModules[hasteModuleName]; + const { + aliasMap, + enumMap, + spec: {methods}, + moduleName, + } = nativeModule; + const resolveAlias = createAliasResolver(aliasMap); + const hostFunctions = methods.map(property => + serializePropertyIntoHostFunction( + moduleName, + hasteModuleName, + property, + resolveAlias, + enumMap, + ), + ); + return ModuleTemplate({ + hasteModuleName, + hostFunctions, + moduleName, + methods: methods.map( + ({name: propertyName, typeAnnotation: nullableTypeAnnotation}) => { + const [{params}] = unwrapNullable(nullableTypeAnnotation); + return { + methodName: propertyName, + paramCount: params.length, + }; + }, + ), + }); + }) + .join('\n'); + const fileName = `${libraryName}JSI-generated.cpp`; + const replacedTemplate = FileTemplate({ + modules, + libraryName, + }); + return new Map([[fileName, replacedTemplate]]); + }, +}; diff --git a/packages/@react-native-windows/codegen/src/index.ts b/packages/@react-native-windows/codegen/src/index.ts index 79a7968f520..fad71379db0 100644 --- a/packages/@react-native-windows/codegen/src/index.ts +++ b/packages/@react-native-windows/codegen/src/index.ts @@ -256,10 +256,10 @@ export function generate( rncodegenPath, 'lib/generators/modules/GenerateModuleH', )).generate; - const generateJsiModuleCpp = require(path.resolve( - rncodegenPath, - 'lib/generators/modules/GenerateModuleCpp', - )).generate; + // Use local fixed version instead of upstream to fix x86 union padding issue + // with MixedTypeAnnotation. See GenerateModuleCpp.js for details. + const generateJsiModuleCpp = + require('./generators/GenerateModuleCpp').generate; const generatorPropsH = require(path.resolve( rncodegenPath, 'lib/generators/components/GeneratePropsH', diff --git a/packages/@react-native-windows/codegen/tsconfig.json b/packages/@react-native-windows/codegen/tsconfig.json index c62faa78baf..acd6f9e9cdd 100644 --- a/packages/@react-native-windows/codegen/tsconfig.json +++ b/packages/@react-native-windows/codegen/tsconfig.json @@ -1,5 +1,12 @@ { "extends": "@rnw-scripts/ts-config", - "include": ["src"], - "exclude": ["node_modules"] -} + "compilerOptions": { + "allowJs": true + }, + "include": [ + "src" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/vnext/Microsoft.ReactNative.IntegrationTests/codegen/msrnIntegrationTestsJSI-generated.cpp b/vnext/Microsoft.ReactNative.IntegrationTests/codegen/msrnIntegrationTestsJSI-generated.cpp index f0e68494f24..ba16c78b52f 100644 --- a/vnext/Microsoft.ReactNative.IntegrationTests/codegen/msrnIntegrationTestsJSI-generated.cpp +++ b/vnext/Microsoft.ReactNative.IntegrationTests/codegen/msrnIntegrationTestsJSI-generated.cpp @@ -19,8 +19,8 @@ static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getConst static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_logAction(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { static_cast(&turboModule)->logAction( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : jsi::Value(rt, args[1]) + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), jsi::Value(rt, args[1])) ); return jsi::Value::undefined(); } @@ -33,52 +33,52 @@ static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_voidFunc static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getBool(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { return static_cast(&turboModule)->getBool( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) ); } static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { return static_cast(&turboModule)->getNumber( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber() + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) ); } static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { return static_cast(&turboModule)->getString( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt) + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) ); } static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getArray(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { return static_cast(&turboModule)->getArray( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt) + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) ); } static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getObject(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { return static_cast(&turboModule)->getObject( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt) + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) ); } static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { return static_cast(&turboModule)->getValue( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(), - count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt), - count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt) + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)) ); } static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getValueWithCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { static_cast(&turboModule)->getValueWithCallback( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt) + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) ); return jsi::Value::undefined(); } static jsi::Value __hostFunction_NativeMySimpleTurboModuleCxxCxxSpecJSI_getValueWithPromise(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { return static_cast(&turboModule)->getValueWithPromise( rt, - count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool() + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) ); } From 073bccbcf408595883fbecc135f46b7d11c126f7 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 05:41:40 -0700 Subject: [PATCH 24/38] Update rnwcoreJSI-generated --- vnext/codegen/rnwcoreJSI-generated.cpp | 3386 +++++++++ vnext/codegen/rnwcoreJSI.h | 9377 ++++++++++++++++++++++++ 2 files changed, 12763 insertions(+) diff --git a/vnext/codegen/rnwcoreJSI-generated.cpp b/vnext/codegen/rnwcoreJSI-generated.cpp index 5ade867ef0f..f06dba25a63 100644 --- a/vnext/codegen/rnwcoreJSI-generated.cpp +++ b/vnext/codegen/rnwcoreJSI-generated.cpp @@ -11,7 +11,3393 @@ namespace facebook::react { +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->commonTestFlag( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlagWithoutNativeImplementation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->commonTestFlagWithoutNativeImplementation( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_animatedShouldSignalBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->animatedShouldSignalBatch( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->cxxNativeAnimatedEnabled( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedRemoveJsSync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->cxxNativeAnimatedRemoveJsSync( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMainQueueSyncDispatchIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->disableMainQueueSyncDispatchIOS( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMountItemReorderingAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->disableMountItemReorderingAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableTextLayoutManagerCacheAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->disableTextLayoutManagerCacheAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccessibilityOrder(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableAccessibilityOrder( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableAccumulatedUpdatesInRawPropsAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAndroidTextMeasurementOptimizations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableAndroidTextMeasurementOptimizations( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableBridgelessArchitecture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableBridgelessArchitecture( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCppPropsIteratorSetter(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableCppPropsIteratorSetter( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableCustomFocusSearchOnClippedElementsAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableDestroyShadowTreeRevisionAsync( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDoubleMeasurementFixAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableDoubleMeasurementFixAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableEagerRootViewAttachment(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableEagerRootViewAttachment( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricLogs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableFabricLogs( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricRenderer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableFabricRenderer( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFixForParentTagDuringReparenting(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableFixForParentTagDuringReparenting( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableFontScaleChangesUpdatingLayout( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSTextBaselineOffsetPerLine(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableIOSTextBaselineOffsetPerLine( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSViewClipToPaddingBox(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableIOSViewClipToPaddingBox( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableInteropViewManagerClassLookUpOptimizationIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableInteropViewManagerClassLookUpOptimizationIOS( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableLayoutAnimationsOnAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableLayoutAnimationsOnIOS( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueCoordinatorOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableMainQueueCoordinatorOnIOS( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueModulesOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableMainQueueModulesOnIOS( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableModuleArgumentNSNullConversionIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableModuleArgumentNSNullConversionIOS( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNativeCSSParsing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableNativeCSSParsing( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNetworkEventReporting(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableNetworkEventReporting( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableNewBackgroundAndBorderDrawables( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePreparedTextLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enablePreparedTextLayout( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enablePropsUpdateReconciliationAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableResourceTimingAPI(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableResourceTimingAPI( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableSynchronousStateUpdates(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableSynchronousStateUpdates( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewCulling(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableViewCulling( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecycling(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableViewRecycling( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForText(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableViewRecyclingForText( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableViewRecyclingForView( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewDebugFeatures(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableVirtualViewDebugFeatures( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewRenderState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableVirtualViewRenderState( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewWindowFocusDetection(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->enableVirtualViewWindowFocusDetection( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->fixMappingOfEventPrioritiesBetweenFabricAndReact( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxEnabledRelease(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->fuseboxEnabledRelease( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxNetworkInspectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->fuseboxNetworkInspectionEnabled( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->hideOffscreenVirtualViewsOnIOS( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preparedTextCacheSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->preparedTextCacheSize( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->preventShadowTreeCommitExhaustion( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->traceTurboModulePromiseRejectionsOnAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->updateRuntimeShadowNodeReferencesOnCommit( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useAlwaysAvailableJSErrorHandling( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useFabricInterop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useFabricInterop( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useNativeEqualsInNativeReadableArrayAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeTransformHelperAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useNativeTransformHelperAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useNativeViewConfigsInBridgelessMode( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useOptimizedEventBatchingOnAndroid( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useRawPropsJsiValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useRawPropsJsiValue( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useShadowNodeStateOnClone(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useShadowNodeStateOnClone( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModuleInterop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useTurboModuleInterop( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModules(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->useTurboModules( + rt + ); +} +static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_virtualViewPrerenderRatio(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->virtualViewPrerenderRatio( + rt + ); +} +NativeReactNativeFeatureFlagsCxxSpecJSI::NativeReactNativeFeatureFlagsCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeReactNativeFeatureFlagsCxx", jsInvoker) { + methodMap_["commonTestFlag"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlag}; + methodMap_["commonTestFlagWithoutNativeImplementation"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_commonTestFlagWithoutNativeImplementation}; + methodMap_["animatedShouldSignalBatch"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_animatedShouldSignalBatch}; + methodMap_["cxxNativeAnimatedEnabled"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedEnabled}; + methodMap_["cxxNativeAnimatedRemoveJsSync"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_cxxNativeAnimatedRemoveJsSync}; + methodMap_["disableMainQueueSyncDispatchIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMainQueueSyncDispatchIOS}; + methodMap_["disableMountItemReorderingAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableMountItemReorderingAndroid}; + methodMap_["disableTextLayoutManagerCacheAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_disableTextLayoutManagerCacheAndroid}; + methodMap_["enableAccessibilityOrder"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccessibilityOrder}; + methodMap_["enableAccumulatedUpdatesInRawPropsAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAccumulatedUpdatesInRawPropsAndroid}; + methodMap_["enableAndroidTextMeasurementOptimizations"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableAndroidTextMeasurementOptimizations}; + methodMap_["enableBridgelessArchitecture"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableBridgelessArchitecture}; + methodMap_["enableCppPropsIteratorSetter"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCppPropsIteratorSetter}; + methodMap_["enableCustomFocusSearchOnClippedElementsAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableCustomFocusSearchOnClippedElementsAndroid}; + methodMap_["enableDestroyShadowTreeRevisionAsync"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDestroyShadowTreeRevisionAsync}; + methodMap_["enableDoubleMeasurementFixAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableDoubleMeasurementFixAndroid}; + methodMap_["enableEagerRootViewAttachment"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableEagerRootViewAttachment}; + methodMap_["enableFabricLogs"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricLogs}; + methodMap_["enableFabricRenderer"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFabricRenderer}; + methodMap_["enableFixForParentTagDuringReparenting"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFixForParentTagDuringReparenting}; + methodMap_["enableFontScaleChangesUpdatingLayout"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableFontScaleChangesUpdatingLayout}; + methodMap_["enableIOSTextBaselineOffsetPerLine"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSTextBaselineOffsetPerLine}; + methodMap_["enableIOSViewClipToPaddingBox"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableIOSViewClipToPaddingBox}; + methodMap_["enableInteropViewManagerClassLookUpOptimizationIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableInteropViewManagerClassLookUpOptimizationIOS}; + methodMap_["enableLayoutAnimationsOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnAndroid}; + methodMap_["enableLayoutAnimationsOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableLayoutAnimationsOnIOS}; + methodMap_["enableMainQueueCoordinatorOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueCoordinatorOnIOS}; + methodMap_["enableMainQueueModulesOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableMainQueueModulesOnIOS}; + methodMap_["enableModuleArgumentNSNullConversionIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableModuleArgumentNSNullConversionIOS}; + methodMap_["enableNativeCSSParsing"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNativeCSSParsing}; + methodMap_["enableNetworkEventReporting"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNetworkEventReporting}; + methodMap_["enableNewBackgroundAndBorderDrawables"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableNewBackgroundAndBorderDrawables}; + methodMap_["enablePreparedTextLayout"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePreparedTextLayout}; + methodMap_["enablePropsUpdateReconciliationAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enablePropsUpdateReconciliationAndroid}; + methodMap_["enableResourceTimingAPI"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableResourceTimingAPI}; + methodMap_["enableSynchronousStateUpdates"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableSynchronousStateUpdates}; + methodMap_["enableViewCulling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewCulling}; + methodMap_["enableViewRecycling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecycling}; + methodMap_["enableViewRecyclingForText"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForText}; + methodMap_["enableViewRecyclingForView"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableViewRecyclingForView}; + methodMap_["enableVirtualViewDebugFeatures"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewDebugFeatures}; + methodMap_["enableVirtualViewRenderState"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewRenderState}; + methodMap_["enableVirtualViewWindowFocusDetection"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_enableVirtualViewWindowFocusDetection}; + methodMap_["fixMappingOfEventPrioritiesBetweenFabricAndReact"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fixMappingOfEventPrioritiesBetweenFabricAndReact}; + methodMap_["fuseboxEnabledRelease"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxEnabledRelease}; + methodMap_["fuseboxNetworkInspectionEnabled"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxNetworkInspectionEnabled}; + methodMap_["hideOffscreenVirtualViewsOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_hideOffscreenVirtualViewsOnIOS}; + methodMap_["preparedTextCacheSize"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preparedTextCacheSize}; + methodMap_["preventShadowTreeCommitExhaustion"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion}; + methodMap_["traceTurboModulePromiseRejectionsOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid}; + methodMap_["updateRuntimeShadowNodeReferencesOnCommit"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_updateRuntimeShadowNodeReferencesOnCommit}; + methodMap_["useAlwaysAvailableJSErrorHandling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useAlwaysAvailableJSErrorHandling}; + methodMap_["useFabricInterop"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useFabricInterop}; + methodMap_["useNativeEqualsInNativeReadableArrayAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeEqualsInNativeReadableArrayAndroid}; + methodMap_["useNativeTransformHelperAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeTransformHelperAndroid}; + methodMap_["useNativeViewConfigsInBridgelessMode"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeViewConfigsInBridgelessMode}; + methodMap_["useOptimizedEventBatchingOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useOptimizedEventBatchingOnAndroid}; + methodMap_["useRawPropsJsiValue"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useRawPropsJsiValue}; + methodMap_["useShadowNodeStateOnClone"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useShadowNodeStateOnClone}; + methodMap_["useTurboModuleInterop"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModuleInterop}; + methodMap_["useTurboModules"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useTurboModules}; + methodMap_["virtualViewPrerenderRatio"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_virtualViewPrerenderRatio}; +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isReduceMotionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->isReduceMotionEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isInvertColorsEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->isInvertColorsEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isHighTextContrastEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->isHighTextContrastEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isTouchExplorationEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->isTouchExplorationEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isAccessibilityServiceEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->isAccessibilityServiceEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_setAccessibilityFocus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setAccessibilityFocus( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_announceForAccessibility(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->announceForAccessibility( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_getRecommendedTimeoutMillis(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getRecommendedTimeoutMillis( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isGrayscaleEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->isGrayscaleEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeAccessibilityInfoCxxSpecJSI::NativeAccessibilityInfoCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("AccessibilityInfo", jsInvoker) { + methodMap_["isReduceMotionEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isReduceMotionEnabled}; + methodMap_["isInvertColorsEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isInvertColorsEnabled}; + methodMap_["isHighTextContrastEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isHighTextContrastEnabled}; + methodMap_["isTouchExplorationEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isTouchExplorationEnabled}; + methodMap_["isAccessibilityServiceEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isAccessibilityServiceEnabled}; + methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_setAccessibilityFocus}; + methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_announceForAccessibility}; + methodMap_["getRecommendedTimeoutMillis"] = MethodMetadata {2, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_getRecommendedTimeoutMillis}; + methodMap_["isGrayscaleEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoCxxSpecJSI_isGrayscaleEnabled}; +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentBoldTextState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentBoldTextState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentGrayscaleState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentGrayscaleState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentInvertColorsState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentInvertColorsState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceMotionState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentReduceMotionState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentDarkerSystemColorsState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentDarkerSystemColorsState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentPrefersCrossFadeTransitionsState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentPrefersCrossFadeTransitionsState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceTransparencyState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentReduceTransparencyState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentVoiceOverState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentVoiceOverState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityContentSizeMultipliers(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setAccessibilityContentSizeMultipliers( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityFocus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setAccessibilityFocus( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibility(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->announceForAccessibility( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibilityWithOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->announceForAccessibilityWithOptions( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); + return jsi::Value::undefined(); +} + +NativeAccessibilityManagerCxxSpecJSI::NativeAccessibilityManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("AccessibilityManager", jsInvoker) { + methodMap_["getCurrentBoldTextState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentBoldTextState}; + methodMap_["getCurrentGrayscaleState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentGrayscaleState}; + methodMap_["getCurrentInvertColorsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentInvertColorsState}; + methodMap_["getCurrentReduceMotionState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceMotionState}; + methodMap_["getCurrentDarkerSystemColorsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentDarkerSystemColorsState}; + methodMap_["getCurrentPrefersCrossFadeTransitionsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentPrefersCrossFadeTransitionsState}; + methodMap_["getCurrentReduceTransparencyState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentReduceTransparencyState}; + methodMap_["getCurrentVoiceOverState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_getCurrentVoiceOverState}; + methodMap_["setAccessibilityContentSizeMultipliers"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityContentSizeMultipliers}; + methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_setAccessibilityFocus}; + methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibility}; + methodMap_["announceForAccessibilityWithOptions"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerCxxSpecJSI_announceForAccessibilityWithOptions}; +} +static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_showActionSheetWithOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showActionSheetWithOptions( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_showShareActionSheetWithOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showShareActionSheetWithOptions( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeActionSheetManagerCxxSpecJSI_dismissActionSheet(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->dismissActionSheet( + rt + ); + return jsi::Value::undefined(); +} + +NativeActionSheetManagerCxxSpecJSI::NativeActionSheetManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ActionSheetManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeActionSheetManagerCxxSpecJSI_getConstants}; + methodMap_["showActionSheetWithOptions"] = MethodMetadata {2, __hostFunction_NativeActionSheetManagerCxxSpecJSI_showActionSheetWithOptions}; + methodMap_["showShareActionSheetWithOptions"] = MethodMetadata {3, __hostFunction_NativeActionSheetManagerCxxSpecJSI_showShareActionSheetWithOptions}; + methodMap_["dismissActionSheet"] = MethodMetadata {0, __hostFunction_NativeActionSheetManagerCxxSpecJSI_dismissActionSheet}; +} +static jsi::Value __hostFunction_NativeAlertManagerCxxSpecJSI_alertWithArgs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->alertWithArgs( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeAlertManagerCxxSpecJSI::NativeAlertManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("AlertManager", jsInvoker) { + methodMap_["alertWithArgs"] = MethodMetadata {2, __hostFunction_NativeAlertManagerCxxSpecJSI_alertWithArgs}; +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_startOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startOperationBatch( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_finishOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->finishOperationBatch( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_createAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->createAnimatedNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_updateAnimatedNodeConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->updateAnimatedNodeConfig( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_getValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_startListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startListeningToAnimatedNodeValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->stopListeningToAnimatedNodeValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connectAnimatedNodes( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->disconnectAnimatedNodes( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_startAnimatingNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startAnimatingNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopAnimation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->stopAnimation( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setAnimatedNodeValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setAnimatedNodeOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_flattenAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->flattenAnimatedNodeOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_extractAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->extractAnimatedNodeOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodeToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connectAnimatedNodeToView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodeFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->disconnectAnimatedNodeFromView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_restoreDefaultValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->restoreDefaultValues( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_dropAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->dropAnimatedNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_addAnimatedEventToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addAnimatedEventToView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeAnimatedEventFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeAnimatedEventFromView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedModuleCxxSpecJSI_queueAndExecuteBatchedOperations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->queueAndExecuteBatchedOperations( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); + return jsi::Value::undefined(); +} + +NativeAnimatedModuleCxxSpecJSI::NativeAnimatedModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeAnimatedModule", jsInvoker) { + methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleCxxSpecJSI_startOperationBatch}; + methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleCxxSpecJSI_finishOperationBatch}; + methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_createAnimatedNode}; + methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_updateAnimatedNodeConfig}; + methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_getValue}; + methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_startListeningToAnimatedNodeValue}; + methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopListeningToAnimatedNodeValue}; + methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodes}; + methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodes}; + methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedModuleCxxSpecJSI_startAnimatingNode}; + methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_stopAnimation}; + methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeValue}; + methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_setAnimatedNodeOffset}; + methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_flattenAnimatedNodeOffset}; + methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_extractAnimatedNodeOffset}; + methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_connectAnimatedNodeToView}; + methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleCxxSpecJSI_disconnectAnimatedNodeFromView}; + methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_restoreDefaultValues}; + methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_dropAnimatedNode}; + methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleCxxSpecJSI_addAnimatedEventToView}; + methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeAnimatedEventFromView}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_removeListeners}; + methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleCxxSpecJSI_queueAndExecuteBatchedOperations}; +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startOperationBatch( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_finishOperationBatch(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->finishOperationBatch( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_createAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->createAnimatedNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_updateAnimatedNodeConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->updateAnimatedNodeConfig( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_getValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startListeningToAnimatedNodeValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopListeningToAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->stopListeningToAnimatedNodeValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connectAnimatedNodes( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->disconnectAnimatedNodes( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startAnimatingNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startAnimatingNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopAnimation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->stopAnimation( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setAnimatedNodeValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setAnimatedNodeOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_flattenAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->flattenAnimatedNodeOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_extractAnimatedNodeOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->extractAnimatedNodeOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodeToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connectAnimatedNodeToView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodeFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->disconnectAnimatedNodeFromView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_restoreDefaultValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->restoreDefaultValues( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_dropAnimatedNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->dropAnimatedNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addAnimatedEventToView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addAnimatedEventToView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeAnimatedEventFromView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeAnimatedEventFromView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_queueAndExecuteBatchedOperations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->queueAndExecuteBatchedOperations( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); + return jsi::Value::undefined(); +} + +NativeAnimatedTurboModuleCxxSpecJSI::NativeAnimatedTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeAnimatedTurboModule", jsInvoker) { + methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startOperationBatch}; + methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_finishOperationBatch}; + methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_createAnimatedNode}; + methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_updateAnimatedNodeConfig}; + methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_getValue}; + methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startListeningToAnimatedNodeValue}; + methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopListeningToAnimatedNodeValue}; + methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodes}; + methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodes}; + methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_startAnimatingNode}; + methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_stopAnimation}; + methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeValue}; + methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_setAnimatedNodeOffset}; + methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_flattenAnimatedNodeOffset}; + methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_extractAnimatedNodeOffset}; + methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_connectAnimatedNodeToView}; + methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_disconnectAnimatedNodeFromView}; + methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_restoreDefaultValues}; + methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_dropAnimatedNode}; + methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addAnimatedEventToView}; + methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeAnimatedEventFromView}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeListeners}; + methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_queueAndExecuteBatchedOperations}; +} +static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + auto result = static_cast(&turboModule)->getColorScheme( + rt + ); + return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); +} +static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setColorScheme( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeAppearanceCxxSpecJSI::NativeAppearanceCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("Appearance", jsInvoker) { + methodMap_["getColorScheme"] = MethodMetadata {0, __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme}; + methodMap_["setColorScheme"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_getCurrentAppState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentAppState( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeAppStateCxxSpecJSI::NativeAppStateCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("AppState", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppStateCxxSpecJSI_getConstants}; + methodMap_["getCurrentAppState"] = MethodMetadata {2, __hostFunction_NativeAppStateCxxSpecJSI_getCurrentAppState}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppStateCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppStateCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeAppThemeCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} + +NativeAppThemeCxxSpecJSI::NativeAppThemeCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("AppTheme", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppThemeCxxSpecJSI_getConstants}; +} +static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_addNetworkingHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addNetworkingHandler( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_addWebSocketHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addWebSocketHandler( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_removeWebSocketHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeWebSocketHandler( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_sendOverSocket(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->sendOverSocket( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_createFromParts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->createFromParts( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_release(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->release( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} + +NativeBlobModuleCxxSpecJSI::NativeBlobModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("BlobModule", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeBlobModuleCxxSpecJSI_getConstants}; + methodMap_["addNetworkingHandler"] = MethodMetadata {0, __hostFunction_NativeBlobModuleCxxSpecJSI_addNetworkingHandler}; + methodMap_["addWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleCxxSpecJSI_addWebSocketHandler}; + methodMap_["removeWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleCxxSpecJSI_removeWebSocketHandler}; + methodMap_["sendOverSocket"] = MethodMetadata {2, __hostFunction_NativeBlobModuleCxxSpecJSI_sendOverSocket}; + methodMap_["createFromParts"] = MethodMetadata {2, __hostFunction_NativeBlobModuleCxxSpecJSI_createFromParts}; + methodMap_["release"] = MethodMetadata {1, __hostFunction_NativeBlobModuleCxxSpecJSI_release}; +} +static jsi::Value __hostFunction_NativeClipboardCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeClipboardCxxSpecJSI_getString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getString( + rt + ); +} +static jsi::Value __hostFunction_NativeClipboardCxxSpecJSI_setString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setString( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} + +NativeClipboardCxxSpecJSI::NativeClipboardCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("Clipboard", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeClipboardCxxSpecJSI_getConstants}; + methodMap_["getString"] = MethodMetadata {0, __hostFunction_NativeClipboardCxxSpecJSI_getString}; + methodMap_["setString"] = MethodMetadata {1, __hostFunction_NativeClipboardCxxSpecJSI_setString}; +} +static jsi::Value __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->invokeDefaultBackPressHandler( + rt + ); + return jsi::Value::undefined(); +} + +NativeDeviceEventManagerCxxSpecJSI::NativeDeviceEventManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DeviceEventManager", jsInvoker) { + methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler}; +} +static jsi::Value __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} + +NativeDeviceInfoCxxSpecJSI::NativeDeviceInfoCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DeviceInfo", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants}; +} +static jsi::Value __hostFunction_NativeDevLoadingViewCxxSpecJSI_showMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showMessage( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asNumber()), + count <= 2 || args[2].isNull() || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevLoadingViewCxxSpecJSI_hide(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->hide( + rt + ); + return jsi::Value::undefined(); +} + +NativeDevLoadingViewCxxSpecJSI::NativeDevLoadingViewCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DevLoadingView", jsInvoker) { + methodMap_["showMessage"] = MethodMetadata {3, __hostFunction_NativeDevLoadingViewCxxSpecJSI_showMessage}; + methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeDevLoadingViewCxxSpecJSI_hide}; +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_reload(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->reload( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_reloadWithReason(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->reloadWithReason( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_onFastRefresh(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->onFastRefresh( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_setHotLoadingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setHotLoadingEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_setProfilingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setProfilingEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_toggleElementInspector(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->toggleElementInspector( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_addMenuItem(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addMenuItem( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_openDebugger(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->openDebugger( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_setIsShakeToShowDevMenuEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setIsShakeToShowDevMenuEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} + +NativeDevSettingsCxxSpecJSI::NativeDevSettingsCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DevSettings", jsInvoker) { + methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_reload}; + methodMap_["reloadWithReason"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_reloadWithReason}; + methodMap_["onFastRefresh"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_onFastRefresh}; + methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setHotLoadingEnabled}; + methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setProfilingEnabled}; + methodMap_["toggleElementInspector"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_toggleElementInspector}; + methodMap_["addMenuItem"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_addMenuItem}; + methodMap_["openDebugger"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_openDebugger}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_removeListeners}; + methodMap_["setIsShakeToShowDevMenuEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setIsShakeToShowDevMenuEnabled}; +} +static jsi::Value __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_showAlert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showAlert( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeDialogManagerAndroidCxxSpecJSI::NativeDialogManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DialogManagerAndroid", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_getConstants}; + methodMap_["showAlert"] = MethodMetadata {3, __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_showAlert}; +} +static jsi::Value __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_showAlert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showAlert( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeDialogManagerWindowsCxxSpecJSI::NativeDialogManagerWindowsCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("Alert", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_getConstants}; + methodMap_["showAlert"] = MethodMetadata {3, __hostFunction_NativeDialogManagerWindowsCxxSpecJSI_showAlert}; +} +static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportFatalException(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->reportFatalException( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asArray(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportSoftException(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->reportSoftException( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asArray(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportException(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->reportException( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_dismissRedbox(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->dismissRedbox( + rt + ); + return jsi::Value::undefined(); +} + +NativeExceptionsManagerCxxSpecJSI::NativeExceptionsManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ExceptionsManager", jsInvoker) { + methodMap_["reportFatalException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportFatalException}; + methodMap_["reportSoftException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportSoftException}; + methodMap_["reportException"] = MethodMetadata {1, __hostFunction_NativeExceptionsManagerCxxSpecJSI_reportException}; + methodMap_["dismissRedbox"] = MethodMetadata {0, __hostFunction_NativeExceptionsManagerCxxSpecJSI_dismissRedbox}; +} +static jsi::Value __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsDataURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->readAsDataURL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsText(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->readAsText( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)) + ); +} + +NativeFileReaderModuleCxxSpecJSI::NativeFileReaderModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("FileReaderModule", jsInvoker) { + methodMap_["readAsDataURL"] = MethodMetadata {1, __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsDataURL}; + methodMap_["readAsText"] = MethodMetadata {2, __hostFunction_NativeFileReaderModuleCxxSpecJSI_readAsText}; +} +static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setGlobalOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setGlobalOptions( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setContext(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setContext( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_beginScroll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->beginScroll( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeFrameRateLoggerCxxSpecJSI_endScroll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->endScroll( + rt + ); + return jsi::Value::undefined(); +} + +NativeFrameRateLoggerCxxSpecJSI::NativeFrameRateLoggerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("FrameRateLogger", jsInvoker) { + methodMap_["setGlobalOptions"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setGlobalOptions}; + methodMap_["setContext"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_setContext}; + methodMap_["beginScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_beginScroll}; + methodMap_["endScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerCxxSpecJSI_endScroll}; +} +static jsi::Value __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskFinished(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->notifyTaskFinished( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskRetry(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->notifyTaskRetry( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); +} + +NativeHeadlessJsTaskSupportCxxSpecJSI::NativeHeadlessJsTaskSupportCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("HeadlessJsTaskSupport", jsInvoker) { + methodMap_["notifyTaskFinished"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskFinished}; + methodMap_["notifyTaskRetry"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskRetry}; +} +static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_allowRTL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->allowRTL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_forceRTL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->forceRTL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeI18nManagerCxxSpecJSI_swapLeftAndRightInRTL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->swapLeftAndRightInRTL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} + +NativeI18nManagerCxxSpecJSI::NativeI18nManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("I18nManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeI18nManagerCxxSpecJSI_getConstants}; + methodMap_["allowRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerCxxSpecJSI_allowRTL}; + methodMap_["forceRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerCxxSpecJSI_forceRTL}; + methodMap_["swapLeftAndRightInRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerCxxSpecJSI_swapLeftAndRightInRTL}; +} +static jsi::Value __hostFunction_NativeImageEditorCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeImageEditorCxxSpecJSI_cropImage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->cropImage( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeImageEditorCxxSpecJSI::NativeImageEditorCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ImageEditingManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageEditorCxxSpecJSI_getConstants}; + methodMap_["cropImage"] = MethodMetadata {4, __hostFunction_NativeImageEditorCxxSpecJSI_cropImage}; +} +static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_abortRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->abortRequest( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getSize( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSizeWithHeaders(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getSizeWithHeaders( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_prefetchImage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->prefetchImage( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); +} +static jsi::Value __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_queryCache(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->queryCache( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); +} + +NativeImageLoaderAndroidCxxSpecJSI::NativeImageLoaderAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ImageLoader", jsInvoker) { + methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_abortRequest}; + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getConstants}; + methodMap_["getSize"] = MethodMetadata {1, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSize}; + methodMap_["getSizeWithHeaders"] = MethodMetadata {2, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_getSizeWithHeaders}; + methodMap_["prefetchImage"] = MethodMetadata {2, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_prefetchImage}; + methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderAndroidCxxSpecJSI_queryCache}; +} +static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getSize( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSizeWithHeaders(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getSizeWithHeaders( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->prefetchImage( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImageWithMetadata(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->prefetchImageWithMetadata( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()) + ); +} +static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_queryCache(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->queryCache( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); +} + +NativeImageLoaderIOSCxxSpecJSI::NativeImageLoaderIOSCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ImageLoader", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getConstants}; + methodMap_["getSize"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSize}; + methodMap_["getSizeWithHeaders"] = MethodMetadata {2, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_getSizeWithHeaders}; + methodMap_["prefetchImage"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImage}; + methodMap_["prefetchImageWithMetadata"] = MethodMetadata {3, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_prefetchImageWithMetadata}; + methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSCxxSpecJSI_queryCache}; +} +static jsi::Value __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getBase64ForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getBase64ForTag( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeImageStoreAndroidCxxSpecJSI::NativeImageStoreAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ImageStoreManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getConstants}; + methodMap_["getBase64ForTag"] = MethodMetadata {3, __hostFunction_NativeImageStoreAndroidCxxSpecJSI_getBase64ForTag}; +} +static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_getBase64ForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getBase64ForTag( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_hasImageForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->hasImageForTag( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_removeImageForTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeImageForTag( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeImageStoreIOSCxxSpecJSI_addImageFromBase64(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addImageFromBase64( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeImageStoreIOSCxxSpecJSI::NativeImageStoreIOSCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ImageStoreManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeImageStoreIOSCxxSpecJSI_getConstants}; + methodMap_["getBase64ForTag"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSCxxSpecJSI_getBase64ForTag}; + methodMap_["hasImageForTag"] = MethodMetadata {2, __hostFunction_NativeImageStoreIOSCxxSpecJSI_hasImageForTag}; + methodMap_["removeImageForTag"] = MethodMetadata {1, __hostFunction_NativeImageStoreIOSCxxSpecJSI_removeImageForTag}; + methodMap_["addImageFromBase64"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSCxxSpecJSI_addImageFromBase64}; +} +static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_getInitialURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getInitialURL( + rt + ); +} +static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_canOpenURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->canOpenURL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_openURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->openURL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_openSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->openSettings( + rt + ); +} +static jsi::Value __hostFunction_NativeIntentAndroidCxxSpecJSI_sendIntent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->sendIntent( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt).asArray(rt)) + ); +} + +NativeIntentAndroidCxxSpecJSI::NativeIntentAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("IntentAndroid", jsInvoker) { + methodMap_["getInitialURL"] = MethodMetadata {0, __hostFunction_NativeIntentAndroidCxxSpecJSI_getInitialURL}; + methodMap_["canOpenURL"] = MethodMetadata {1, __hostFunction_NativeIntentAndroidCxxSpecJSI_canOpenURL}; + methodMap_["openURL"] = MethodMetadata {1, __hostFunction_NativeIntentAndroidCxxSpecJSI_openURL}; + methodMap_["openSettings"] = MethodMetadata {0, __hostFunction_NativeIntentAndroidCxxSpecJSI_openSettings}; + methodMap_["sendIntent"] = MethodMetadata {2, __hostFunction_NativeIntentAndroidCxxSpecJSI_sendIntent}; +} +static jsi::Value __hostFunction_NativeJSCHeapCaptureCxxSpecJSI_captureComplete(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->captureComplete( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)) + ); + return jsi::Value::undefined(); +} + +NativeJSCHeapCaptureCxxSpecJSI::NativeJSCHeapCaptureCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("JSCHeapCapture", jsInvoker) { + methodMap_["captureComplete"] = MethodMetadata {2, __hostFunction_NativeJSCHeapCaptureCxxSpecJSI_captureComplete}; +} +static jsi::Value __hostFunction_NativeKeyboardObserverCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeKeyboardObserverCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeKeyboardObserverCxxSpecJSI::NativeKeyboardObserverCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("KeyboardObserver", jsInvoker) { + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_getInitialURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getInitialURL( + rt + ); +} +static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_canOpenURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->canOpenURL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_openURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->openURL( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_openSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->openSettings( + rt + ); +} +static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeLinkingManagerCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeLinkingManagerCxxSpecJSI::NativeLinkingManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("LinkingManager", jsInvoker) { + methodMap_["getInitialURL"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerCxxSpecJSI_getInitialURL}; + methodMap_["canOpenURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_canOpenURL}; + methodMap_["openURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_openURL}; + methodMap_["openSettings"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerCxxSpecJSI_openSettings}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeLogBoxCxxSpecJSI_show(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->show( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeLogBoxCxxSpecJSI_hide(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->hide( + rt + ); + return jsi::Value::undefined(); +} + +NativeLogBoxCxxSpecJSI::NativeLogBoxCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("LogBox", jsInvoker) { + methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeLogBoxCxxSpecJSI_show}; + methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeLogBoxCxxSpecJSI_hide}; +} +static jsi::Value __hostFunction_NativeModalManagerCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeModalManagerCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeModalManagerCxxSpecJSI::NativeModalManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ModalManager", jsInvoker) { + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeModalManagerCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeModalManagerCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_sendRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->sendRequest( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt).asArray(rt)), + (count > 4 || (throw jsi::JSError(rt, "Expected argument in position 4 to be passed"), false), args[4].asObject(rt)), + (count > 5 || (throw jsi::JSError(rt, "Expected argument in position 5 to be passed"), false), args[5].asString(rt)), + (count > 6 || (throw jsi::JSError(rt, "Expected argument in position 6 to be passed"), false), args[6].asBool()), + (count > 7 || (throw jsi::JSError(rt, "Expected argument in position 7 to be passed"), false), args[7].asNumber()), + (count > 8 || (throw jsi::JSError(rt, "Expected argument in position 8 to be passed"), false), args[8].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_abortRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->abortRequest( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_clearCookies(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->clearCookies( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingAndroidCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeNetworkingAndroidCxxSpecJSI::NativeNetworkingAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("Networking", jsInvoker) { + methodMap_["sendRequest"] = MethodMetadata {9, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_sendRequest}; + methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_abortRequest}; + methodMap_["clearCookies"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_clearCookies}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_sendRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->sendRequest( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_abortRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->abortRequest( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_clearCookies(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->clearCookies( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeNetworkingIOSCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeNetworkingIOSCxxSpecJSI::NativeNetworkingIOSCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("Networking", jsInvoker) { + methodMap_["sendRequest"] = MethodMetadata {2, __hostFunction_NativeNetworkingIOSCxxSpecJSI_sendRequest}; + methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_abortRequest}; + methodMap_["clearCookies"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_clearCookies}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_checkPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->checkPermission( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->requestPermission( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_shouldShowRequestPermissionRationale(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->shouldShowRequestPermissionRationale( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestMultiplePermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->requestMultiplePermissions( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); +} + +NativePermissionsAndroidCxxSpecJSI::NativePermissionsAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("PermissionsAndroid", jsInvoker) { + methodMap_["checkPermission"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_checkPermission}; + methodMap_["requestPermission"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestPermission}; + methodMap_["shouldShowRequestPermissionRationale"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_shouldShowRequestPermissionRationale}; + methodMap_["requestMultiplePermissions"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidCxxSpecJSI_requestMultiplePermissions}; +} +static jsi::Value __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getAndroidID(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getAndroidID( + rt + ); +} + +NativePlatformConstantsAndroidCxxSpecJSI::NativePlatformConstantsAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("PlatformConstants", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getConstants}; + methodMap_["getAndroidID"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsAndroidCxxSpecJSI_getAndroidID}; +} +static jsi::Value __hostFunction_NativePlatformConstantsIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} + +NativePlatformConstantsIOSCxxSpecJSI::NativePlatformConstantsIOSCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("PlatformConstants", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsIOSCxxSpecJSI_getConstants}; +} +static jsi::Value __hostFunction_NativePlatformConstantsWindowsCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} + +NativePlatformConstantsWindowsCxxSpecJSI::NativePlatformConstantsWindowsCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("PlatformConstants", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsWindowsCxxSpecJSI_getConstants}; +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_onFinishRemoteNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->onFinishRemoteNotification( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_setApplicationIconBadgeNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setApplicationIconBadgeNumber( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getApplicationIconBadgeNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getApplicationIconBadgeNumber( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_requestPermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->requestPermissions( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_abandonPermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->abandonPermissions( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_checkPermissions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->checkPermissions( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_presentLocalNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->presentLocalNotification( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_scheduleLocalNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->scheduleLocalNotification( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelAllLocalNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->cancelAllLocalNotifications( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelLocalNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->cancelLocalNotifications( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getInitialNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getInitialNotification( + rt + ); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getScheduledLocalNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getScheduledLocalNotifications( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeAllDeliveredNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeAllDeliveredNotifications( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeDeliveredNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeDeliveredNotifications( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getDeliveredNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getDeliveredNotifications( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getAuthorizationStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getAuthorizationStatus( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativePushNotificationManagerIOSCxxSpecJSI::NativePushNotificationManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("PushNotificationManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getConstants}; + methodMap_["onFinishRemoteNotification"] = MethodMetadata {2, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_onFinishRemoteNotification}; + methodMap_["setApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_setApplicationIconBadgeNumber}; + methodMap_["getApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getApplicationIconBadgeNumber}; + methodMap_["requestPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_requestPermissions}; + methodMap_["abandonPermissions"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_abandonPermissions}; + methodMap_["checkPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_checkPermissions}; + methodMap_["presentLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_presentLocalNotification}; + methodMap_["scheduleLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_scheduleLocalNotification}; + methodMap_["cancelAllLocalNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelAllLocalNotifications}; + methodMap_["cancelLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_cancelLocalNotifications}; + methodMap_["getInitialNotification"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getInitialNotification}; + methodMap_["getScheduledLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getScheduledLocalNotifications}; + methodMap_["removeAllDeliveredNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeAllDeliveredNotifications}; + methodMap_["removeDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeDeliveredNotifications}; + methodMap_["getDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getDeliveredNotifications}; + methodMap_["getAuthorizationStatus"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_getAuthorizationStatus}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeRedBoxCxxSpecJSI_setExtraData(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setExtraData( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeRedBoxCxxSpecJSI_dismiss(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->dismiss( + rt + ); + return jsi::Value::undefined(); +} + +NativeRedBoxCxxSpecJSI::NativeRedBoxCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("RedBox", jsInvoker) { + methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeRedBoxCxxSpecJSI_setExtraData}; + methodMap_["dismiss"] = MethodMetadata {0, __hostFunction_NativeRedBoxCxxSpecJSI_dismiss}; +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->voidFunc( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getBool(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getBool( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getEnum(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getEnum( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getNumber( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getString( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getArray(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getArray( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObject(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getObject( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getUnsafeObject(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getUnsafeObject( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getRootTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getRootTag( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getValue( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getValueWithCallback( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithPromise(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getValueWithPromise( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncThrows(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->voidFuncThrows( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectThrows(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getObjectThrows( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseThrows(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->promiseThrows( + rt + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncAssert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->voidFuncAssert( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectAssert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getObjectAssert( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseAssert(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->promiseAssert( + rt + ); +} +static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getImageUrl(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getImageUrl( + rt + ); +} + +NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("SampleTurboModule", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getConstants}; + methodMap_["voidFunc"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc}; + methodMap_["getBool"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getBool}; + methodMap_["getEnum"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getEnum}; + methodMap_["getNumber"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getNumber}; + methodMap_["getString"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getString}; + methodMap_["getArray"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getArray}; + methodMap_["getObject"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObject}; + methodMap_["getUnsafeObject"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getUnsafeObject}; + methodMap_["getRootTag"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getRootTag}; + methodMap_["getValue"] = MethodMetadata {3, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValue}; + methodMap_["getValueWithCallback"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithCallback}; + methodMap_["getValueWithPromise"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithPromise}; + methodMap_["voidFuncThrows"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncThrows}; + methodMap_["getObjectThrows"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectThrows}; + methodMap_["promiseThrows"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseThrows}; + methodMap_["voidFuncAssert"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFuncAssert}; + methodMap_["getObjectAssert"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getObjectAssert}; + methodMap_["promiseAssert"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_promiseAssert}; + methodMap_["getImageUrl"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getImageUrl}; +} +static jsi::Value __hostFunction_NativeSegmentFetcherCxxSpecJSI_fetchSegment(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->fetchSegment( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeSegmentFetcherCxxSpecJSI_getSegment(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getSegment( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeSegmentFetcherCxxSpecJSI::NativeSegmentFetcherCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("SegmentFetcher", jsInvoker) { + methodMap_["fetchSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherCxxSpecJSI_fetchSegment}; + methodMap_["getSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherCxxSpecJSI_getSegment}; +} +static jsi::Value __hostFunction_NativeSettingsManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeSettingsManagerCxxSpecJSI_setValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setValues( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeSettingsManagerCxxSpecJSI_deleteValues(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->deleteValues( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)) + ); + return jsi::Value::undefined(); +} + +NativeSettingsManagerCxxSpecJSI::NativeSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("SettingsManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSettingsManagerCxxSpecJSI_getConstants}; + methodMap_["setValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerCxxSpecJSI_setValues}; + methodMap_["deleteValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerCxxSpecJSI_deleteValues}; +} +static jsi::Value __hostFunction_NativeShareModuleCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeShareModuleCxxSpecJSI_share(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->share( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)) + ); +} + +NativeShareModuleCxxSpecJSI::NativeShareModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ShareModule", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeShareModuleCxxSpecJSI_getConstants}; + methodMap_["share"] = MethodMetadata {2, __hostFunction_NativeShareModuleCxxSpecJSI_share}; +} +static jsi::Value __hostFunction_NativeSoundManagerCxxSpecJSI_playTouchSound(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->playTouchSound( + rt + ); + return jsi::Value::undefined(); +} + +NativeSoundManagerCxxSpecJSI::NativeSoundManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("SoundManager", jsInvoker) { + methodMap_["playTouchSound"] = MethodMetadata {0, __hostFunction_NativeSoundManagerCxxSpecJSI_playTouchSound}; +} +static jsi::Value __hostFunction_NativeSourceCodeCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} + +NativeSourceCodeCxxSpecJSI::NativeSourceCodeCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("SourceCode", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSourceCodeCxxSpecJSI_getConstants}; +} +static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setColor(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setColor( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setTranslucent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setTranslucent( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setStyle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setStyle( + rt, + count <= 0 || args[0].isNull() || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setHidden(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setHidden( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} + +NativeStatusBarManagerAndroidCxxSpecJSI::NativeStatusBarManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("StatusBarManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_getConstants}; + methodMap_["setColor"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setColor}; + methodMap_["setTranslucent"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setTranslucent}; + methodMap_["setStyle"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setStyle}; + methodMap_["setHidden"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerAndroidCxxSpecJSI_setHidden}; +} +static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getHeight(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getHeight( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setNetworkActivityIndicatorVisible(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setNetworkActivityIndicatorVisible( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setStyle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setStyle( + rt, + count <= 0 || args[0].isNull() || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setHidden(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setHidden( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)) + ); + return jsi::Value::undefined(); +} + +NativeStatusBarManagerIOSCxxSpecJSI::NativeStatusBarManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("StatusBarManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getConstants}; + methodMap_["getHeight"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_getHeight}; + methodMap_["setNetworkActivityIndicatorVisible"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setNetworkActivityIndicatorVisible}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_removeListeners}; + methodMap_["setStyle"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setStyle}; + methodMap_["setHidden"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSCxxSpecJSI_setHidden}; +} +static jsi::Value __hostFunction_NativeTimingCxxSpecJSI_createTimer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->createTimer( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeTimingCxxSpecJSI_deleteTimer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->deleteTimer( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeTimingCxxSpecJSI_setSendIdleEvents(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setSendIdleEvents( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} + +NativeTimingCxxSpecJSI::NativeTimingCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("Timing", jsInvoker) { + methodMap_["createTimer"] = MethodMetadata {4, __hostFunction_NativeTimingCxxSpecJSI_createTimer}; + methodMap_["deleteTimer"] = MethodMetadata {1, __hostFunction_NativeTimingCxxSpecJSI_deleteTimer}; + methodMap_["setSendIdleEvents"] = MethodMetadata {1, __hostFunction_NativeTimingCxxSpecJSI_setSendIdleEvents}; +} +static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_show(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->show( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravity(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showWithGravity( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravityAndOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showWithGravityAndOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asNumber()), + (count > 4 || (throw jsi::JSError(rt, "Expected argument in position 4 to be passed"), false), args[4].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeToastAndroidCxxSpecJSI::NativeToastAndroidCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ToastAndroid", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeToastAndroidCxxSpecJSI_getConstants}; + methodMap_["show"] = MethodMetadata {2, __hostFunction_NativeToastAndroidCxxSpecJSI_show}; + methodMap_["showWithGravity"] = MethodMetadata {3, __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravity}; + methodMap_["showWithGravityAndOffset"] = MethodMetadata {5, __hostFunction_NativeToastAndroidCxxSpecJSI_showWithGravityAndOffset}; +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_createView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->createView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_updateView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->updateView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_findSubviewIn(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->findSubviewIn( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asArray(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_dispatchViewManagerCommand(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->dispatchViewManagerCommand( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + count <= 2 || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asObject(rt).asArray(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measure(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measure( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measureInWindow(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measureInWindow( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_viewIsDescendantOf(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->viewIsDescendantOf( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measureLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measureLayout( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_measureLayoutRelativeToParent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measureLayoutRelativeToParent( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_setJSResponder(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setJSResponder( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_clearJSResponder(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->clearJSResponder( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_configureNextLayoutAnimation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->configureNextLayoutAnimation( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_setChildren(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setChildren( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asArray(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_manageChildren(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->manageChildren( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asArray(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asArray(rt)), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt).asArray(rt)), + (count > 4 || (throw jsi::JSError(rt, "Expected argument in position 4 to be passed"), false), args[4].asObject(rt).asArray(rt)), + (count > 5 || (throw jsi::JSError(rt, "Expected argument in position 5 to be passed"), false), args[5].asObject(rt).asArray(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_getConstantsForViewManager(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + auto result = static_cast(&turboModule)->getConstantsForViewManager( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_getDefaultEventTypes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getDefaultEventTypes( + rt + ); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_setLayoutAnimationEnabledExperimental(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setLayoutAnimationEnabledExperimental( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_sendAccessibilityEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->sendAccessibilityEvent( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_lazilyLoadView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->lazilyLoadView( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_focus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->focus( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeUIManagerCxxSpecJSI_blur(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->blur( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeUIManagerCxxSpecJSI::NativeUIManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("UIManager", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeUIManagerCxxSpecJSI_getConstants}; + methodMap_["createView"] = MethodMetadata {4, __hostFunction_NativeUIManagerCxxSpecJSI_createView}; + methodMap_["updateView"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_updateView}; + methodMap_["findSubviewIn"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_findSubviewIn}; + methodMap_["dispatchViewManagerCommand"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_dispatchViewManagerCommand}; + methodMap_["measure"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_measure}; + methodMap_["measureInWindow"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_measureInWindow}; + methodMap_["viewIsDescendantOf"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_viewIsDescendantOf}; + methodMap_["measureLayout"] = MethodMetadata {4, __hostFunction_NativeUIManagerCxxSpecJSI_measureLayout}; + methodMap_["measureLayoutRelativeToParent"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_measureLayoutRelativeToParent}; + methodMap_["setJSResponder"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_setJSResponder}; + methodMap_["clearJSResponder"] = MethodMetadata {0, __hostFunction_NativeUIManagerCxxSpecJSI_clearJSResponder}; + methodMap_["configureNextLayoutAnimation"] = MethodMetadata {3, __hostFunction_NativeUIManagerCxxSpecJSI_configureNextLayoutAnimation}; + methodMap_["setChildren"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_setChildren}; + methodMap_["manageChildren"] = MethodMetadata {6, __hostFunction_NativeUIManagerCxxSpecJSI_manageChildren}; + methodMap_["getConstantsForViewManager"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_getConstantsForViewManager}; + methodMap_["getDefaultEventTypes"] = MethodMetadata {0, __hostFunction_NativeUIManagerCxxSpecJSI_getDefaultEventTypes}; + methodMap_["setLayoutAnimationEnabledExperimental"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_setLayoutAnimationEnabledExperimental}; + methodMap_["sendAccessibilityEvent"] = MethodMetadata {2, __hostFunction_NativeUIManagerCxxSpecJSI_sendAccessibilityEvent}; + methodMap_["lazilyLoadView"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_lazilyLoadView}; + methodMap_["focus"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_focus}; + methodMap_["blur"] = MethodMetadata {1, __hostFunction_NativeUIManagerCxxSpecJSI_blur}; +} +static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getConstants( + rt + ); +} +static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_vibrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->vibrate( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_vibrateByPattern(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->vibrateByPattern( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asArray(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeVibrationCxxSpecJSI_cancel(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->cancel( + rt + ); + return jsi::Value::undefined(); +} + +NativeVibrationCxxSpecJSI::NativeVibrationCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("Vibration", jsInvoker) { + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeVibrationCxxSpecJSI_getConstants}; + methodMap_["vibrate"] = MethodMetadata {1, __hostFunction_NativeVibrationCxxSpecJSI_vibrate}; + methodMap_["vibrateByPattern"] = MethodMetadata {2, __hostFunction_NativeVibrationCxxSpecJSI_vibrateByPattern}; + methodMap_["cancel"] = MethodMetadata {0, __hostFunction_NativeVibrationCxxSpecJSI_cancel}; +} +static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_connect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connect( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt).asArray(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt)), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_send(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->send( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_sendBinary(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->sendBinary( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_ping(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->ping( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_close(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->close( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asString(rt)), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeWebSocketModuleCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->removeListeners( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} + +NativeWebSocketModuleCxxSpecJSI::NativeWebSocketModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("WebSocketModule", jsInvoker) { + methodMap_["connect"] = MethodMetadata {4, __hostFunction_NativeWebSocketModuleCxxSpecJSI_connect}; + methodMap_["send"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleCxxSpecJSI_send}; + methodMap_["sendBinary"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleCxxSpecJSI_sendBinary}; + methodMap_["ping"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleCxxSpecJSI_ping}; + methodMap_["close"] = MethodMetadata {3, __hostFunction_NativeWebSocketModuleCxxSpecJSI_close}; + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleCxxSpecJSI_addListener}; + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleCxxSpecJSI_removeListeners}; +} +static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_show(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->show( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_reload(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->reload( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_setProfilingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setProfilingEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevMenuCxxSpecJSI_setHotLoadingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setHotLoadingEnabled( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asBool()) + ); + return jsi::Value::undefined(); +} + +NativeDevMenuCxxSpecJSI::NativeDevMenuCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DevMenu", jsInvoker) { + methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeDevMenuCxxSpecJSI_show}; + methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevMenuCxxSpecJSI_reload}; + methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuCxxSpecJSI_setProfilingEnabled}; + methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuCxxSpecJSI_setHotLoadingEnabled}; +} +static jsi::Value __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_setReloadAndProfileConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setReloadAndProfileConfig( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_getReloadAndProfileConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getReloadAndProfileConfig( + rt + ); +} + +NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI::NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ReactDevToolsRuntimeSettingsModule", jsInvoker) { + methodMap_["setReloadAndProfileConfig"] = MethodMetadata {1, __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_setReloadAndProfileConfig}; + methodMap_["getReloadAndProfileConfig"] = MethodMetadata {0, __hostFunction_NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI_getReloadAndProfileConfig}; +} +static jsi::Value __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_setGlobalHookSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setGlobalHookSettings( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_getGlobalHookSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + auto result = static_cast(&turboModule)->getGlobalHookSettings( + rt + ); + return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); +} + +NativeReactDevToolsSettingsManagerCxxSpecJSI::NativeReactDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("ReactDevToolsSettingsManager", jsInvoker) { + methodMap_["setGlobalHookSettings"] = MethodMetadata {1, __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_setGlobalHookSettings}; + methodMap_["getGlobalHookSettings"] = MethodMetadata {0, __hostFunction_NativeReactDevToolsSettingsManagerCxxSpecJSI_getGlobalHookSettings}; +} +static jsi::Value __hostFunction_NativeIdleCallbacksCxxSpecJSI_requestIdleCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->requestIdleCallback( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeIdleCallbacksCxxSpecJSI_cancelIdleCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->cancelIdleCallback( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); + return jsi::Value::undefined(); +} + +NativeIdleCallbacksCxxSpecJSI::NativeIdleCallbacksCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeIdleCallbacksCxx", jsInvoker) { + methodMap_["requestIdleCallback"] = MethodMetadata {2, __hostFunction_NativeIdleCallbacksCxxSpecJSI_requestIdleCallback}; + methodMap_["cancelIdleCallback"] = MethodMetadata {1, __hostFunction_NativeIdleCallbacksCxxSpecJSI_cancelIdleCallback}; +} +static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_observe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->observe( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserve(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->unobserve( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), jsi::Value(rt, args[1])) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_observeV2(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->observeV2( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); +} +static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserveV2(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->unobserveV2( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), jsi::Value(rt, args[1])) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_connect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connect( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_disconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->disconnect( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeIntersectionObserverCxxSpecJSI_takeRecords(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->takeRecords( + rt + ); +} + +NativeIntersectionObserverCxxSpecJSI::NativeIntersectionObserverCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeIntersectionObserverCxx", jsInvoker) { + methodMap_["observe"] = MethodMetadata {1, __hostFunction_NativeIntersectionObserverCxxSpecJSI_observe}; + methodMap_["unobserve"] = MethodMetadata {2, __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserve}; + methodMap_["observeV2"] = MethodMetadata {1, __hostFunction_NativeIntersectionObserverCxxSpecJSI_observeV2}; + methodMap_["unobserveV2"] = MethodMetadata {2, __hostFunction_NativeIntersectionObserverCxxSpecJSI_unobserveV2}; + methodMap_["connect"] = MethodMetadata {1, __hostFunction_NativeIntersectionObserverCxxSpecJSI_connect}; + methodMap_["disconnect"] = MethodMetadata {0, __hostFunction_NativeIntersectionObserverCxxSpecJSI_disconnect}; + methodMap_["takeRecords"] = MethodMetadata {0, __hostFunction_NativeIntersectionObserverCxxSpecJSI_takeRecords}; +} +static jsi::Value __hostFunction_NativeMicrotasksCxxSpecJSI_queueMicrotask(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->queueMicrotask( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} + +NativeMicrotasksCxxSpecJSI::NativeMicrotasksCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeMicrotasksCxx", jsInvoker) { + methodMap_["queueMicrotask"] = MethodMetadata {1, __hostFunction_NativeMicrotasksCxxSpecJSI_queueMicrotask}; +} +static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_observe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->observe( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_unobserveAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->unobserveAll( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_connect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connect( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_disconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->disconnect( + rt + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeMutationObserverCxxSpecJSI_takeRecords(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->takeRecords( + rt + ); +} + +NativeMutationObserverCxxSpecJSI::NativeMutationObserverCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeMutationObserverCxx", jsInvoker) { + methodMap_["observe"] = MethodMetadata {1, __hostFunction_NativeMutationObserverCxxSpecJSI_observe}; + methodMap_["unobserveAll"] = MethodMetadata {1, __hostFunction_NativeMutationObserverCxxSpecJSI_unobserveAll}; + methodMap_["connect"] = MethodMetadata {2, __hostFunction_NativeMutationObserverCxxSpecJSI_connect}; + methodMap_["disconnect"] = MethodMetadata {0, __hostFunction_NativeMutationObserverCxxSpecJSI_disconnect}; + methodMap_["takeRecords"] = MethodMetadata {0, __hostFunction_NativeMutationObserverCxxSpecJSI_takeRecords}; +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_now(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->now( + rt + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_markWithResult(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->markWithResult( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asNumber()) + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_measureWithResult(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->measureWithResult( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asNumber()), + count <= 3 || args[3].isUndefined() ? std::nullopt : std::make_optional(args[3].asNumber()), + count <= 4 || args[4].isUndefined() ? std::nullopt : std::make_optional(args[4].asString(rt)), + count <= 5 || args[5].isUndefined() ? std::nullopt : std::make_optional(args[5].asString(rt)) + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_clearMarks(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->clearMarks( + rt, + count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_clearMeasures(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->clearMeasures( + rt, + count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEntries(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getEntries( + rt + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByName(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getEntriesByName( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asString(rt)), + count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asNumber()) + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByType(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getEntriesByType( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()) + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getEventCounts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getEventCounts( + rt + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getSimpleMemoryInfo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getSimpleMemoryInfo( + rt + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getReactNativeStartupTiming(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getReactNativeStartupTiming( + rt + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_createObserver(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->createObserver( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asObject(rt).asFunction(rt)) + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getDroppedEntriesCount(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getDroppedEntriesCount( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_observe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->observe( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_disconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->disconnect( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_takeRecords(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->takeRecords( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asBool()) + ); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_getSupportedPerformanceEntryTypes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getSupportedPerformanceEntryTypes( + rt + ); +} + +NativePerformanceCxxSpecJSI::NativePerformanceCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativePerformanceCxx", jsInvoker) { + methodMap_["now"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_now}; + methodMap_["markWithResult"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_markWithResult}; + methodMap_["measureWithResult"] = MethodMetadata {6, __hostFunction_NativePerformanceCxxSpecJSI_measureWithResult}; + methodMap_["clearMarks"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_clearMarks}; + methodMap_["clearMeasures"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_clearMeasures}; + methodMap_["getEntries"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getEntries}; + methodMap_["getEntriesByName"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByName}; + methodMap_["getEntriesByType"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_getEntriesByType}; + methodMap_["getEventCounts"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getEventCounts}; + methodMap_["getSimpleMemoryInfo"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getSimpleMemoryInfo}; + methodMap_["getReactNativeStartupTiming"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getReactNativeStartupTiming}; + methodMap_["createObserver"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_createObserver}; + methodMap_["getDroppedEntriesCount"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_getDroppedEntriesCount}; + methodMap_["observe"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_observe}; + methodMap_["disconnect"] = MethodMetadata {1, __hostFunction_NativePerformanceCxxSpecJSI_disconnect}; + methodMap_["takeRecords"] = MethodMetadata {2, __hostFunction_NativePerformanceCxxSpecJSI_takeRecords}; + methodMap_["getSupportedPerformanceEntryTypes"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getSupportedPerformanceEntryTypes}; +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_compareDocumentPosition(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->compareDocumentPosition( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), jsi::Value(rt, args[1])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getChildNodes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getChildNodes( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getParentNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getParentNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_isConnected(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->isConnected( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getBorderWidth(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getBorderWidth( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getBoundingClientRect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getBoundingClientRect( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asBool()) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getInnerSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getInnerSize( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getScrollPosition(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getScrollPosition( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getScrollSize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getScrollSize( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getTagName(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getTagName( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getTextContent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getTextContent( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_hasPointerCapture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->hasPointerCapture( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_releasePointerCapture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->releasePointerCapture( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_setPointerCapture(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setPointerCapture( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asNumber()) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_getOffset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getOffset( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_linkRootNode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->linkRootNode( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), args[0].asNumber()), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), jsi::Value(rt, args[1])) + ); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_measure(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measure( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_measureInWindow(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measureInWindow( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), args[1].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_measureLayout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measureLayout( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), jsi::Value(rt, args[1])), + (count > 2 || (throw jsi::JSError(rt, "Expected argument in position 2 to be passed"), false), args[2].asObject(rt).asFunction(rt)), + (count > 3 || (throw jsi::JSError(rt, "Expected argument in position 3 to be passed"), false), args[3].asObject(rt).asFunction(rt)) + ); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDOMCxxSpecJSI_setNativeProps(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setNativeProps( + rt, + (count > 0 || (throw jsi::JSError(rt, "Expected argument in position 0 to be passed"), false), jsi::Value(rt, args[0])), + (count > 1 || (throw jsi::JSError(rt, "Expected argument in position 1 to be passed"), false), jsi::Value(rt, args[1])) + ); + return jsi::Value::undefined(); +} + +NativeDOMCxxSpecJSI::NativeDOMCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativeDOMCxx", jsInvoker) { + methodMap_["compareDocumentPosition"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_compareDocumentPosition}; + methodMap_["getChildNodes"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getChildNodes}; + methodMap_["getParentNode"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getParentNode}; + methodMap_["isConnected"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_isConnected}; + methodMap_["getBorderWidth"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getBorderWidth}; + methodMap_["getBoundingClientRect"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_getBoundingClientRect}; + methodMap_["getInnerSize"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getInnerSize}; + methodMap_["getScrollPosition"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getScrollPosition}; + methodMap_["getScrollSize"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getScrollSize}; + methodMap_["getTagName"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getTagName}; + methodMap_["getTextContent"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getTextContent}; + methodMap_["hasPointerCapture"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_hasPointerCapture}; + methodMap_["releasePointerCapture"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_releasePointerCapture}; + methodMap_["setPointerCapture"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_setPointerCapture}; + methodMap_["getOffset"] = MethodMetadata {1, __hostFunction_NativeDOMCxxSpecJSI_getOffset}; + methodMap_["linkRootNode"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_linkRootNode}; + methodMap_["measure"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_measure}; + methodMap_["measureInWindow"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_measureInWindow}; + methodMap_["measureLayout"] = MethodMetadata {4, __hostFunction_NativeDOMCxxSpecJSI_measureLayout}; + methodMap_["setNativeProps"] = MethodMetadata {2, __hostFunction_NativeDOMCxxSpecJSI_setNativeProps}; +} } // namespace facebook::react diff --git a/vnext/codegen/rnwcoreJSI.h b/vnext/codegen/rnwcoreJSI.h index ec162608dab..c015ba34574 100644 --- a/vnext/codegen/rnwcoreJSI.h +++ b/vnext/codegen/rnwcoreJSI.h @@ -15,5 +15,9382 @@ namespace facebook::react { + class JSI_EXPORT NativeReactNativeFeatureFlagsCxxSpecJSI : public TurboModule { +protected: + NativeReactNativeFeatureFlagsCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual bool commonTestFlag(jsi::Runtime &rt) = 0; + virtual bool commonTestFlagWithoutNativeImplementation(jsi::Runtime &rt) = 0; + virtual bool animatedShouldSignalBatch(jsi::Runtime &rt) = 0; + virtual bool cxxNativeAnimatedEnabled(jsi::Runtime &rt) = 0; + virtual bool cxxNativeAnimatedRemoveJsSync(jsi::Runtime &rt) = 0; + virtual bool disableMainQueueSyncDispatchIOS(jsi::Runtime &rt) = 0; + virtual bool disableMountItemReorderingAndroid(jsi::Runtime &rt) = 0; + virtual bool disableTextLayoutManagerCacheAndroid(jsi::Runtime &rt) = 0; + virtual bool enableAccessibilityOrder(jsi::Runtime &rt) = 0; + virtual bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) = 0; + virtual bool enableAndroidTextMeasurementOptimizations(jsi::Runtime &rt) = 0; + virtual bool enableBridgelessArchitecture(jsi::Runtime &rt) = 0; + virtual bool enableCppPropsIteratorSetter(jsi::Runtime &rt) = 0; + virtual bool enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt) = 0; + virtual bool enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt) = 0; + virtual bool enableDoubleMeasurementFixAndroid(jsi::Runtime &rt) = 0; + virtual bool enableEagerRootViewAttachment(jsi::Runtime &rt) = 0; + virtual bool enableFabricLogs(jsi::Runtime &rt) = 0; + virtual bool enableFabricRenderer(jsi::Runtime &rt) = 0; + virtual bool enableFixForParentTagDuringReparenting(jsi::Runtime &rt) = 0; + virtual bool enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt) = 0; + virtual bool enableIOSTextBaselineOffsetPerLine(jsi::Runtime &rt) = 0; + virtual bool enableIOSViewClipToPaddingBox(jsi::Runtime &rt) = 0; + virtual bool enableInteropViewManagerClassLookUpOptimizationIOS(jsi::Runtime &rt) = 0; + virtual bool enableLayoutAnimationsOnAndroid(jsi::Runtime &rt) = 0; + virtual bool enableLayoutAnimationsOnIOS(jsi::Runtime &rt) = 0; + virtual bool enableMainQueueCoordinatorOnIOS(jsi::Runtime &rt) = 0; + virtual bool enableMainQueueModulesOnIOS(jsi::Runtime &rt) = 0; + virtual bool enableModuleArgumentNSNullConversionIOS(jsi::Runtime &rt) = 0; + virtual bool enableNativeCSSParsing(jsi::Runtime &rt) = 0; + virtual bool enableNetworkEventReporting(jsi::Runtime &rt) = 0; + virtual bool enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt) = 0; + virtual bool enablePreparedTextLayout(jsi::Runtime &rt) = 0; + virtual bool enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt) = 0; + virtual bool enableResourceTimingAPI(jsi::Runtime &rt) = 0; + virtual bool enableSynchronousStateUpdates(jsi::Runtime &rt) = 0; + virtual bool enableViewCulling(jsi::Runtime &rt) = 0; + virtual bool enableViewRecycling(jsi::Runtime &rt) = 0; + virtual bool enableViewRecyclingForText(jsi::Runtime &rt) = 0; + virtual bool enableViewRecyclingForView(jsi::Runtime &rt) = 0; + virtual bool enableVirtualViewDebugFeatures(jsi::Runtime &rt) = 0; + virtual bool enableVirtualViewRenderState(jsi::Runtime &rt) = 0; + virtual bool enableVirtualViewWindowFocusDetection(jsi::Runtime &rt) = 0; + virtual bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) = 0; + virtual bool fuseboxEnabledRelease(jsi::Runtime &rt) = 0; + virtual bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) = 0; + virtual bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt) = 0; + virtual double preparedTextCacheSize(jsi::Runtime &rt) = 0; + virtual bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) = 0; + virtual bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) = 0; + virtual bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) = 0; + virtual bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) = 0; + virtual bool useFabricInterop(jsi::Runtime &rt) = 0; + virtual bool useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt) = 0; + virtual bool useNativeTransformHelperAndroid(jsi::Runtime &rt) = 0; + virtual bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) = 0; + virtual bool useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt) = 0; + virtual bool useRawPropsJsiValue(jsi::Runtime &rt) = 0; + virtual bool useShadowNodeStateOnClone(jsi::Runtime &rt) = 0; + virtual bool useTurboModuleInterop(jsi::Runtime &rt) = 0; + virtual bool useTurboModules(jsi::Runtime &rt) = 0; + virtual double virtualViewPrerenderRatio(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeReactNativeFeatureFlagsCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeReactNativeFeatureFlagsCxx"; + +protected: + NativeReactNativeFeatureFlagsCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeReactNativeFeatureFlagsCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeReactNativeFeatureFlagsCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeReactNativeFeatureFlagsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + bool commonTestFlag(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::commonTestFlag) == 1, + "Expected commonTestFlag(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::commonTestFlag, jsInvoker_, instance_); + } + bool commonTestFlagWithoutNativeImplementation(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::commonTestFlagWithoutNativeImplementation) == 1, + "Expected commonTestFlagWithoutNativeImplementation(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::commonTestFlagWithoutNativeImplementation, jsInvoker_, instance_); + } + bool animatedShouldSignalBatch(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::animatedShouldSignalBatch) == 1, + "Expected animatedShouldSignalBatch(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::animatedShouldSignalBatch, jsInvoker_, instance_); + } + bool cxxNativeAnimatedEnabled(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::cxxNativeAnimatedEnabled) == 1, + "Expected cxxNativeAnimatedEnabled(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::cxxNativeAnimatedEnabled, jsInvoker_, instance_); + } + bool cxxNativeAnimatedRemoveJsSync(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::cxxNativeAnimatedRemoveJsSync) == 1, + "Expected cxxNativeAnimatedRemoveJsSync(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::cxxNativeAnimatedRemoveJsSync, jsInvoker_, instance_); + } + bool disableMainQueueSyncDispatchIOS(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::disableMainQueueSyncDispatchIOS) == 1, + "Expected disableMainQueueSyncDispatchIOS(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::disableMainQueueSyncDispatchIOS, jsInvoker_, instance_); + } + bool disableMountItemReorderingAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::disableMountItemReorderingAndroid) == 1, + "Expected disableMountItemReorderingAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::disableMountItemReorderingAndroid, jsInvoker_, instance_); + } + bool disableTextLayoutManagerCacheAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::disableTextLayoutManagerCacheAndroid) == 1, + "Expected disableTextLayoutManagerCacheAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::disableTextLayoutManagerCacheAndroid, jsInvoker_, instance_); + } + bool enableAccessibilityOrder(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableAccessibilityOrder) == 1, + "Expected enableAccessibilityOrder(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableAccessibilityOrder, jsInvoker_, instance_); + } + bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableAccumulatedUpdatesInRawPropsAndroid) == 1, + "Expected enableAccumulatedUpdatesInRawPropsAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableAccumulatedUpdatesInRawPropsAndroid, jsInvoker_, instance_); + } + bool enableAndroidTextMeasurementOptimizations(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableAndroidTextMeasurementOptimizations) == 1, + "Expected enableAndroidTextMeasurementOptimizations(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableAndroidTextMeasurementOptimizations, jsInvoker_, instance_); + } + bool enableBridgelessArchitecture(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableBridgelessArchitecture) == 1, + "Expected enableBridgelessArchitecture(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableBridgelessArchitecture, jsInvoker_, instance_); + } + bool enableCppPropsIteratorSetter(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableCppPropsIteratorSetter) == 1, + "Expected enableCppPropsIteratorSetter(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableCppPropsIteratorSetter, jsInvoker_, instance_); + } + bool enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableCustomFocusSearchOnClippedElementsAndroid) == 1, + "Expected enableCustomFocusSearchOnClippedElementsAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableCustomFocusSearchOnClippedElementsAndroid, jsInvoker_, instance_); + } + bool enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableDestroyShadowTreeRevisionAsync) == 1, + "Expected enableDestroyShadowTreeRevisionAsync(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableDestroyShadowTreeRevisionAsync, jsInvoker_, instance_); + } + bool enableDoubleMeasurementFixAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableDoubleMeasurementFixAndroid) == 1, + "Expected enableDoubleMeasurementFixAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableDoubleMeasurementFixAndroid, jsInvoker_, instance_); + } + bool enableEagerRootViewAttachment(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableEagerRootViewAttachment) == 1, + "Expected enableEagerRootViewAttachment(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableEagerRootViewAttachment, jsInvoker_, instance_); + } + bool enableFabricLogs(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableFabricLogs) == 1, + "Expected enableFabricLogs(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableFabricLogs, jsInvoker_, instance_); + } + bool enableFabricRenderer(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableFabricRenderer) == 1, + "Expected enableFabricRenderer(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableFabricRenderer, jsInvoker_, instance_); + } + bool enableFixForParentTagDuringReparenting(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableFixForParentTagDuringReparenting) == 1, + "Expected enableFixForParentTagDuringReparenting(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableFixForParentTagDuringReparenting, jsInvoker_, instance_); + } + bool enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableFontScaleChangesUpdatingLayout) == 1, + "Expected enableFontScaleChangesUpdatingLayout(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableFontScaleChangesUpdatingLayout, jsInvoker_, instance_); + } + bool enableIOSTextBaselineOffsetPerLine(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableIOSTextBaselineOffsetPerLine) == 1, + "Expected enableIOSTextBaselineOffsetPerLine(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableIOSTextBaselineOffsetPerLine, jsInvoker_, instance_); + } + bool enableIOSViewClipToPaddingBox(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableIOSViewClipToPaddingBox) == 1, + "Expected enableIOSViewClipToPaddingBox(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableIOSViewClipToPaddingBox, jsInvoker_, instance_); + } + bool enableInteropViewManagerClassLookUpOptimizationIOS(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableInteropViewManagerClassLookUpOptimizationIOS) == 1, + "Expected enableInteropViewManagerClassLookUpOptimizationIOS(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableInteropViewManagerClassLookUpOptimizationIOS, jsInvoker_, instance_); + } + bool enableLayoutAnimationsOnAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableLayoutAnimationsOnAndroid) == 1, + "Expected enableLayoutAnimationsOnAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableLayoutAnimationsOnAndroid, jsInvoker_, instance_); + } + bool enableLayoutAnimationsOnIOS(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableLayoutAnimationsOnIOS) == 1, + "Expected enableLayoutAnimationsOnIOS(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableLayoutAnimationsOnIOS, jsInvoker_, instance_); + } + bool enableMainQueueCoordinatorOnIOS(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableMainQueueCoordinatorOnIOS) == 1, + "Expected enableMainQueueCoordinatorOnIOS(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableMainQueueCoordinatorOnIOS, jsInvoker_, instance_); + } + bool enableMainQueueModulesOnIOS(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableMainQueueModulesOnIOS) == 1, + "Expected enableMainQueueModulesOnIOS(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableMainQueueModulesOnIOS, jsInvoker_, instance_); + } + bool enableModuleArgumentNSNullConversionIOS(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableModuleArgumentNSNullConversionIOS) == 1, + "Expected enableModuleArgumentNSNullConversionIOS(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableModuleArgumentNSNullConversionIOS, jsInvoker_, instance_); + } + bool enableNativeCSSParsing(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableNativeCSSParsing) == 1, + "Expected enableNativeCSSParsing(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableNativeCSSParsing, jsInvoker_, instance_); + } + bool enableNetworkEventReporting(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableNetworkEventReporting) == 1, + "Expected enableNetworkEventReporting(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableNetworkEventReporting, jsInvoker_, instance_); + } + bool enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableNewBackgroundAndBorderDrawables) == 1, + "Expected enableNewBackgroundAndBorderDrawables(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableNewBackgroundAndBorderDrawables, jsInvoker_, instance_); + } + bool enablePreparedTextLayout(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enablePreparedTextLayout) == 1, + "Expected enablePreparedTextLayout(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enablePreparedTextLayout, jsInvoker_, instance_); + } + bool enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enablePropsUpdateReconciliationAndroid) == 1, + "Expected enablePropsUpdateReconciliationAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enablePropsUpdateReconciliationAndroid, jsInvoker_, instance_); + } + bool enableResourceTimingAPI(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableResourceTimingAPI) == 1, + "Expected enableResourceTimingAPI(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableResourceTimingAPI, jsInvoker_, instance_); + } + bool enableSynchronousStateUpdates(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableSynchronousStateUpdates) == 1, + "Expected enableSynchronousStateUpdates(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableSynchronousStateUpdates, jsInvoker_, instance_); + } + bool enableViewCulling(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableViewCulling) == 1, + "Expected enableViewCulling(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableViewCulling, jsInvoker_, instance_); + } + bool enableViewRecycling(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableViewRecycling) == 1, + "Expected enableViewRecycling(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableViewRecycling, jsInvoker_, instance_); + } + bool enableViewRecyclingForText(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableViewRecyclingForText) == 1, + "Expected enableViewRecyclingForText(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableViewRecyclingForText, jsInvoker_, instance_); + } + bool enableViewRecyclingForView(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableViewRecyclingForView) == 1, + "Expected enableViewRecyclingForView(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableViewRecyclingForView, jsInvoker_, instance_); + } + bool enableVirtualViewDebugFeatures(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableVirtualViewDebugFeatures) == 1, + "Expected enableVirtualViewDebugFeatures(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableVirtualViewDebugFeatures, jsInvoker_, instance_); + } + bool enableVirtualViewRenderState(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableVirtualViewRenderState) == 1, + "Expected enableVirtualViewRenderState(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableVirtualViewRenderState, jsInvoker_, instance_); + } + bool enableVirtualViewWindowFocusDetection(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::enableVirtualViewWindowFocusDetection) == 1, + "Expected enableVirtualViewWindowFocusDetection(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::enableVirtualViewWindowFocusDetection, jsInvoker_, instance_); + } + bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::fixMappingOfEventPrioritiesBetweenFabricAndReact) == 1, + "Expected fixMappingOfEventPrioritiesBetweenFabricAndReact(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::fixMappingOfEventPrioritiesBetweenFabricAndReact, jsInvoker_, instance_); + } + bool fuseboxEnabledRelease(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::fuseboxEnabledRelease) == 1, + "Expected fuseboxEnabledRelease(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::fuseboxEnabledRelease, jsInvoker_, instance_); + } + bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::fuseboxNetworkInspectionEnabled) == 1, + "Expected fuseboxNetworkInspectionEnabled(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::fuseboxNetworkInspectionEnabled, jsInvoker_, instance_); + } + bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::hideOffscreenVirtualViewsOnIOS) == 1, + "Expected hideOffscreenVirtualViewsOnIOS(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::hideOffscreenVirtualViewsOnIOS, jsInvoker_, instance_); + } + double preparedTextCacheSize(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::preparedTextCacheSize) == 1, + "Expected preparedTextCacheSize(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::preparedTextCacheSize, jsInvoker_, instance_); + } + bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::preventShadowTreeCommitExhaustion) == 1, + "Expected preventShadowTreeCommitExhaustion(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::preventShadowTreeCommitExhaustion, jsInvoker_, instance_); + } + bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::traceTurboModulePromiseRejectionsOnAndroid) == 1, + "Expected traceTurboModulePromiseRejectionsOnAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::traceTurboModulePromiseRejectionsOnAndroid, jsInvoker_, instance_); + } + bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::updateRuntimeShadowNodeReferencesOnCommit) == 1, + "Expected updateRuntimeShadowNodeReferencesOnCommit(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::updateRuntimeShadowNodeReferencesOnCommit, jsInvoker_, instance_); + } + bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useAlwaysAvailableJSErrorHandling) == 1, + "Expected useAlwaysAvailableJSErrorHandling(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useAlwaysAvailableJSErrorHandling, jsInvoker_, instance_); + } + bool useFabricInterop(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useFabricInterop) == 1, + "Expected useFabricInterop(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useFabricInterop, jsInvoker_, instance_); + } + bool useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useNativeEqualsInNativeReadableArrayAndroid) == 1, + "Expected useNativeEqualsInNativeReadableArrayAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useNativeEqualsInNativeReadableArrayAndroid, jsInvoker_, instance_); + } + bool useNativeTransformHelperAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useNativeTransformHelperAndroid) == 1, + "Expected useNativeTransformHelperAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useNativeTransformHelperAndroid, jsInvoker_, instance_); + } + bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useNativeViewConfigsInBridgelessMode) == 1, + "Expected useNativeViewConfigsInBridgelessMode(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useNativeViewConfigsInBridgelessMode, jsInvoker_, instance_); + } + bool useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useOptimizedEventBatchingOnAndroid) == 1, + "Expected useOptimizedEventBatchingOnAndroid(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useOptimizedEventBatchingOnAndroid, jsInvoker_, instance_); + } + bool useRawPropsJsiValue(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useRawPropsJsiValue) == 1, + "Expected useRawPropsJsiValue(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useRawPropsJsiValue, jsInvoker_, instance_); + } + bool useShadowNodeStateOnClone(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useShadowNodeStateOnClone) == 1, + "Expected useShadowNodeStateOnClone(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useShadowNodeStateOnClone, jsInvoker_, instance_); + } + bool useTurboModuleInterop(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useTurboModuleInterop) == 1, + "Expected useTurboModuleInterop(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useTurboModuleInterop, jsInvoker_, instance_); + } + bool useTurboModules(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::useTurboModules) == 1, + "Expected useTurboModules(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::useTurboModules, jsInvoker_, instance_); + } + double virtualViewPrerenderRatio(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::virtualViewPrerenderRatio) == 1, + "Expected virtualViewPrerenderRatio(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::virtualViewPrerenderRatio, jsInvoker_, instance_); + } + + private: + friend class NativeReactNativeFeatureFlagsCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeAccessibilityInfoCxxSpecJSI : public TurboModule { +protected: + NativeAccessibilityInfoCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void isReduceMotionEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; + virtual void isInvertColorsEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; + virtual void isHighTextContrastEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; + virtual void isTouchExplorationEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; + virtual void isAccessibilityServiceEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; + virtual void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) = 0; + virtual void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) = 0; + virtual void getRecommendedTimeoutMillis(jsi::Runtime &rt, double mSec, jsi::Function onSuccess) = 0; + virtual void isGrayscaleEnabled(jsi::Runtime &rt, jsi::Function onSuccess) = 0; + +}; + +template +class JSI_EXPORT NativeAccessibilityInfoCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "AccessibilityInfo"; + +protected: + NativeAccessibilityInfoCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAccessibilityInfoCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAccessibilityInfoCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAccessibilityInfoCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void isReduceMotionEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::isReduceMotionEnabled) == 2, + "Expected isReduceMotionEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::isReduceMotionEnabled, jsInvoker_, instance_, std::move(onSuccess)); + } + void isInvertColorsEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::isInvertColorsEnabled) == 2, + "Expected isInvertColorsEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::isInvertColorsEnabled, jsInvoker_, instance_, std::move(onSuccess)); + } + void isHighTextContrastEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::isHighTextContrastEnabled) == 2, + "Expected isHighTextContrastEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::isHighTextContrastEnabled, jsInvoker_, instance_, std::move(onSuccess)); + } + void isTouchExplorationEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::isTouchExplorationEnabled) == 2, + "Expected isTouchExplorationEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::isTouchExplorationEnabled, jsInvoker_, instance_, std::move(onSuccess)); + } + void isAccessibilityServiceEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::isAccessibilityServiceEnabled) == 2, + "Expected isAccessibilityServiceEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::isAccessibilityServiceEnabled, jsInvoker_, instance_, std::move(onSuccess)); + } + void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) override { + static_assert( + bridging::getParameterCount(&T::setAccessibilityFocus) == 2, + "Expected setAccessibilityFocus(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setAccessibilityFocus, jsInvoker_, instance_, std::move(reactTag)); + } + void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) override { + static_assert( + bridging::getParameterCount(&T::announceForAccessibility) == 2, + "Expected announceForAccessibility(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::announceForAccessibility, jsInvoker_, instance_, std::move(announcement)); + } + void getRecommendedTimeoutMillis(jsi::Runtime &rt, double mSec, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::getRecommendedTimeoutMillis) == 3, + "Expected getRecommendedTimeoutMillis(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getRecommendedTimeoutMillis, jsInvoker_, instance_, std::move(mSec), std::move(onSuccess)); + } + void isGrayscaleEnabled(jsi::Runtime &rt, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::isGrayscaleEnabled) == 2, + "Expected isGrayscaleEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::isGrayscaleEnabled, jsInvoker_, instance_, std::move(onSuccess)); + } + + private: + friend class NativeAccessibilityInfoCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeAccessibilityManagerCxxSpecJSI : public TurboModule { +protected: + NativeAccessibilityManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void getCurrentBoldTextState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void getCurrentGrayscaleState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void getCurrentInvertColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void getCurrentReduceMotionState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void getCurrentDarkerSystemColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void getCurrentPrefersCrossFadeTransitionsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void getCurrentReduceTransparencyState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void getCurrentVoiceOverState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) = 0; + virtual void setAccessibilityContentSizeMultipliers(jsi::Runtime &rt, jsi::Object JSMultipliers) = 0; + virtual void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) = 0; + virtual void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) = 0; + virtual void announceForAccessibilityWithOptions(jsi::Runtime &rt, jsi::String announcement, jsi::Object options) = 0; + +}; + +template +class JSI_EXPORT NativeAccessibilityManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "AccessibilityManager"; + +protected: + NativeAccessibilityManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAccessibilityManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAccessibilityManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAccessibilityManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void getCurrentBoldTextState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentBoldTextState) == 3, + "Expected getCurrentBoldTextState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentBoldTextState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void getCurrentGrayscaleState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentGrayscaleState) == 3, + "Expected getCurrentGrayscaleState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentGrayscaleState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void getCurrentInvertColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentInvertColorsState) == 3, + "Expected getCurrentInvertColorsState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentInvertColorsState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void getCurrentReduceMotionState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentReduceMotionState) == 3, + "Expected getCurrentReduceMotionState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentReduceMotionState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void getCurrentDarkerSystemColorsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentDarkerSystemColorsState) == 3, + "Expected getCurrentDarkerSystemColorsState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentDarkerSystemColorsState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void getCurrentPrefersCrossFadeTransitionsState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentPrefersCrossFadeTransitionsState) == 3, + "Expected getCurrentPrefersCrossFadeTransitionsState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentPrefersCrossFadeTransitionsState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void getCurrentReduceTransparencyState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentReduceTransparencyState) == 3, + "Expected getCurrentReduceTransparencyState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentReduceTransparencyState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void getCurrentVoiceOverState(jsi::Runtime &rt, jsi::Function onSuccess, jsi::Function onError) override { + static_assert( + bridging::getParameterCount(&T::getCurrentVoiceOverState) == 3, + "Expected getCurrentVoiceOverState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentVoiceOverState, jsInvoker_, instance_, std::move(onSuccess), std::move(onError)); + } + void setAccessibilityContentSizeMultipliers(jsi::Runtime &rt, jsi::Object JSMultipliers) override { + static_assert( + bridging::getParameterCount(&T::setAccessibilityContentSizeMultipliers) == 2, + "Expected setAccessibilityContentSizeMultipliers(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setAccessibilityContentSizeMultipliers, jsInvoker_, instance_, std::move(JSMultipliers)); + } + void setAccessibilityFocus(jsi::Runtime &rt, double reactTag) override { + static_assert( + bridging::getParameterCount(&T::setAccessibilityFocus) == 2, + "Expected setAccessibilityFocus(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setAccessibilityFocus, jsInvoker_, instance_, std::move(reactTag)); + } + void announceForAccessibility(jsi::Runtime &rt, jsi::String announcement) override { + static_assert( + bridging::getParameterCount(&T::announceForAccessibility) == 2, + "Expected announceForAccessibility(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::announceForAccessibility, jsInvoker_, instance_, std::move(announcement)); + } + void announceForAccessibilityWithOptions(jsi::Runtime &rt, jsi::String announcement, jsi::Object options) override { + static_assert( + bridging::getParameterCount(&T::announceForAccessibilityWithOptions) == 3, + "Expected announceForAccessibilityWithOptions(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::announceForAccessibilityWithOptions, jsInvoker_, instance_, std::move(announcement), std::move(options)); + } + + private: + friend class NativeAccessibilityManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeActionSheetManagerCxxSpecJSI : public TurboModule { +protected: + NativeActionSheetManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void showActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function callback) = 0; + virtual void showShareActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function failureCallback, jsi::Function successCallback) = 0; + virtual void dismissActionSheet(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeActionSheetManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ActionSheetManager"; + +protected: + NativeActionSheetManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeActionSheetManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeActionSheetManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeActionSheetManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void showActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::showActionSheetWithOptions) == 3, + "Expected showActionSheetWithOptions(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::showActionSheetWithOptions, jsInvoker_, instance_, std::move(options), std::move(callback)); + } + void showShareActionSheetWithOptions(jsi::Runtime &rt, jsi::Object options, jsi::Function failureCallback, jsi::Function successCallback) override { + static_assert( + bridging::getParameterCount(&T::showShareActionSheetWithOptions) == 4, + "Expected showShareActionSheetWithOptions(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::showShareActionSheetWithOptions, jsInvoker_, instance_, std::move(options), std::move(failureCallback), std::move(successCallback)); + } + void dismissActionSheet(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::dismissActionSheet) == 1, + "Expected dismissActionSheet(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::dismissActionSheet, jsInvoker_, instance_); + } + + private: + friend class NativeActionSheetManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeAlertManagerArgs + +template +struct NativeAlertManagerArgs { + P0 title; + P1 message; + P2 buttons; + P3 type; + P4 defaultValue; + P5 cancelButtonKey; + P6 destructiveButtonKey; + P7 preferredButtonKey; + P8 keyboardType; + P9 userInterfaceStyle; + bool operator==(const NativeAlertManagerArgs &other) const { + return title == other.title && message == other.message && buttons == other.buttons && type == other.type && defaultValue == other.defaultValue && cancelButtonKey == other.cancelButtonKey && destructiveButtonKey == other.destructiveButtonKey && preferredButtonKey == other.preferredButtonKey && keyboardType == other.keyboardType && userInterfaceStyle == other.userInterfaceStyle; + } +}; + +template +struct NativeAlertManagerArgsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "title"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buttons"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "type"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "defaultValue"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "cancelButtonKey"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "destructiveButtonKey"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "preferredButtonKey"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "keyboardType"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "userInterfaceStyle"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String titleToJs(jsi::Runtime &rt, decltype(types.title) value) { + return bridging::toJs(rt, value); + } + + static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array buttonsToJs(jsi::Runtime &rt, decltype(types.buttons) value) { + return bridging::toJs(rt, value); + } + + static jsi::String typeToJs(jsi::Runtime &rt, decltype(types.type) value) { + return bridging::toJs(rt, value); + } + + static jsi::String defaultValueToJs(jsi::Runtime &rt, decltype(types.defaultValue) value) { + return bridging::toJs(rt, value); + } + + static jsi::String cancelButtonKeyToJs(jsi::Runtime &rt, decltype(types.cancelButtonKey) value) { + return bridging::toJs(rt, value); + } + + static jsi::String destructiveButtonKeyToJs(jsi::Runtime &rt, decltype(types.destructiveButtonKey) value) { + return bridging::toJs(rt, value); + } + + static jsi::String preferredButtonKeyToJs(jsi::Runtime &rt, decltype(types.preferredButtonKey) value) { + return bridging::toJs(rt, value); + } + + static jsi::String keyboardTypeToJs(jsi::Runtime &rt, decltype(types.keyboardType) value) { + return bridging::toJs(rt, value); + } + + static jsi::String userInterfaceStyleToJs(jsi::Runtime &rt, decltype(types.userInterfaceStyle) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.title) { + result.setProperty(rt, "title", bridging::toJs(rt, value.title.value(), jsInvoker)); + } + if (value.message) { + result.setProperty(rt, "message", bridging::toJs(rt, value.message.value(), jsInvoker)); + } + if (value.buttons) { + result.setProperty(rt, "buttons", bridging::toJs(rt, value.buttons.value(), jsInvoker)); + } + if (value.type) { + result.setProperty(rt, "type", bridging::toJs(rt, value.type.value(), jsInvoker)); + } + if (value.defaultValue) { + result.setProperty(rt, "defaultValue", bridging::toJs(rt, value.defaultValue.value(), jsInvoker)); + } + if (value.cancelButtonKey) { + result.setProperty(rt, "cancelButtonKey", bridging::toJs(rt, value.cancelButtonKey.value(), jsInvoker)); + } + if (value.destructiveButtonKey) { + result.setProperty(rt, "destructiveButtonKey", bridging::toJs(rt, value.destructiveButtonKey.value(), jsInvoker)); + } + if (value.preferredButtonKey) { + result.setProperty(rt, "preferredButtonKey", bridging::toJs(rt, value.preferredButtonKey.value(), jsInvoker)); + } + if (value.keyboardType) { + result.setProperty(rt, "keyboardType", bridging::toJs(rt, value.keyboardType.value(), jsInvoker)); + } + if (value.userInterfaceStyle) { + result.setProperty(rt, "userInterfaceStyle", bridging::toJs(rt, value.userInterfaceStyle.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeAlertManagerCxxSpecJSI : public TurboModule { +protected: + NativeAlertManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void alertWithArgs(jsi::Runtime &rt, jsi::Object args, jsi::Function callback) = 0; + +}; + +template +class JSI_EXPORT NativeAlertManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "AlertManager"; + +protected: + NativeAlertManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAlertManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAlertManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAlertManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void alertWithArgs(jsi::Runtime &rt, jsi::Object args, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::alertWithArgs) == 3, + "Expected alertWithArgs(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::alertWithArgs, jsInvoker_, instance_, std::move(args), std::move(callback)); + } + + private: + friend class NativeAlertManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeAnimatedModuleEndResult + +template +struct NativeAnimatedModuleEndResult { + P0 finished; + P1 value; + P2 offset; + bool operator==(const NativeAnimatedModuleEndResult &other) const { + return finished == other.finished && value == other.value && offset == other.offset; + } +}; + +template +struct NativeAnimatedModuleEndResultBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "finished"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "value"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "offset"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool finishedToJs(jsi::Runtime &rt, decltype(types.finished) value) { + return bridging::toJs(rt, value); + } + + static double valueToJs(jsi::Runtime &rt, decltype(types.value) value) { + return bridging::toJs(rt, value); + } + + static double offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "finished", bridging::toJs(rt, value.finished, jsInvoker)); + if (value.value) { + result.setProperty(rt, "value", bridging::toJs(rt, value.value.value(), jsInvoker)); + } + if (value.offset) { + result.setProperty(rt, "offset", bridging::toJs(rt, value.offset.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativeAnimatedModuleEventMapping + +template +struct NativeAnimatedModuleEventMapping { + P0 nativeEventPath; + P1 animatedValueTag; + bool operator==(const NativeAnimatedModuleEventMapping &other) const { + return nativeEventPath == other.nativeEventPath && animatedValueTag == other.animatedValueTag; + } +}; + +template +struct NativeAnimatedModuleEventMappingBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "nativeEventPath"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "animatedValueTag"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::Array nativeEventPathToJs(jsi::Runtime &rt, decltype(types.nativeEventPath) value) { + return bridging::toJs(rt, value); + } + + static std::optional animatedValueTagToJs(jsi::Runtime &rt, decltype(types.animatedValueTag) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "nativeEventPath", bridging::toJs(rt, value.nativeEventPath, jsInvoker)); + result.setProperty(rt, "animatedValueTag", bridging::toJs(rt, value.animatedValueTag, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeAnimatedModuleCxxSpecJSI : public TurboModule { +protected: + NativeAnimatedModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void startOperationBatch(jsi::Runtime &rt) = 0; + virtual void finishOperationBatch(jsi::Runtime &rt) = 0; + virtual void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) = 0; + virtual void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) = 0; + virtual void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) = 0; + virtual void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; + virtual void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; + virtual void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; + virtual void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; + virtual void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) = 0; + virtual void stopAnimation(jsi::Runtime &rt, double animationId) = 0; + virtual void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) = 0; + virtual void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) = 0; + virtual void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; + virtual void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; + virtual void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; + virtual void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; + virtual void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) = 0; + virtual void dropAnimatedNode(jsi::Runtime &rt, double tag) = 0; + virtual void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) = 0; + virtual void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + virtual void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) = 0; + +}; + +template +class JSI_EXPORT NativeAnimatedModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeAnimatedModule"; + +protected: + NativeAnimatedModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAnimatedModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAnimatedModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAnimatedModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void startOperationBatch(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::startOperationBatch) == 1, + "Expected startOperationBatch(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::startOperationBatch, jsInvoker_, instance_); + } + void finishOperationBatch(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::finishOperationBatch) == 1, + "Expected finishOperationBatch(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::finishOperationBatch, jsInvoker_, instance_); + } + void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) override { + static_assert( + bridging::getParameterCount(&T::createAnimatedNode) == 3, + "Expected createAnimatedNode(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::createAnimatedNode, jsInvoker_, instance_, std::move(tag), std::move(config)); + } + void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) override { + static_assert( + bridging::getParameterCount(&T::updateAnimatedNodeConfig) == 3, + "Expected updateAnimatedNodeConfig(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::updateAnimatedNodeConfig, jsInvoker_, instance_, std::move(tag), std::move(config)); + } + void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) override { + static_assert( + bridging::getParameterCount(&T::getValue) == 3, + "Expected getValue(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getValue, jsInvoker_, instance_, std::move(tag), std::move(saveValueCallback)); + } + void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { + static_assert( + bridging::getParameterCount(&T::startListeningToAnimatedNodeValue) == 2, + "Expected startListeningToAnimatedNodeValue(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::startListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); + } + void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { + static_assert( + bridging::getParameterCount(&T::stopListeningToAnimatedNodeValue) == 2, + "Expected stopListeningToAnimatedNodeValue(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::stopListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); + } + void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { + static_assert( + bridging::getParameterCount(&T::connectAnimatedNodes) == 3, + "Expected connectAnimatedNodes(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::connectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); + } + void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { + static_assert( + bridging::getParameterCount(&T::disconnectAnimatedNodes) == 3, + "Expected disconnectAnimatedNodes(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::disconnectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); + } + void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) override { + static_assert( + bridging::getParameterCount(&T::startAnimatingNode) == 5, + "Expected startAnimatingNode(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::startAnimatingNode, jsInvoker_, instance_, std::move(animationId), std::move(nodeTag), std::move(config), std::move(endCallback)); + } + void stopAnimation(jsi::Runtime &rt, double animationId) override { + static_assert( + bridging::getParameterCount(&T::stopAnimation) == 2, + "Expected stopAnimation(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::stopAnimation, jsInvoker_, instance_, std::move(animationId)); + } + void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) override { + static_assert( + bridging::getParameterCount(&T::setAnimatedNodeValue) == 3, + "Expected setAnimatedNodeValue(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setAnimatedNodeValue, jsInvoker_, instance_, std::move(nodeTag), std::move(value)); + } + void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) override { + static_assert( + bridging::getParameterCount(&T::setAnimatedNodeOffset) == 3, + "Expected setAnimatedNodeOffset(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag), std::move(offset)); + } + void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { + static_assert( + bridging::getParameterCount(&T::flattenAnimatedNodeOffset) == 2, + "Expected flattenAnimatedNodeOffset(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::flattenAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); + } + void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { + static_assert( + bridging::getParameterCount(&T::extractAnimatedNodeOffset) == 2, + "Expected extractAnimatedNodeOffset(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::extractAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); + } + void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) override { + static_assert( + bridging::getParameterCount(&T::connectAnimatedNodeToView) == 3, + "Expected connectAnimatedNodeToView(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::connectAnimatedNodeToView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); + } + void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) override { + static_assert( + bridging::getParameterCount(&T::disconnectAnimatedNodeFromView) == 3, + "Expected disconnectAnimatedNodeFromView(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::disconnectAnimatedNodeFromView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); + } + void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) override { + static_assert( + bridging::getParameterCount(&T::restoreDefaultValues) == 2, + "Expected restoreDefaultValues(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::restoreDefaultValues, jsInvoker_, instance_, std::move(nodeTag)); + } + void dropAnimatedNode(jsi::Runtime &rt, double tag) override { + static_assert( + bridging::getParameterCount(&T::dropAnimatedNode) == 2, + "Expected dropAnimatedNode(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::dropAnimatedNode, jsInvoker_, instance_, std::move(tag)); + } + void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) override { + static_assert( + bridging::getParameterCount(&T::addAnimatedEventToView) == 4, + "Expected addAnimatedEventToView(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::addAnimatedEventToView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(eventMapping)); + } + void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) override { + static_assert( + bridging::getParameterCount(&T::removeAnimatedEventFromView) == 4, + "Expected removeAnimatedEventFromView(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::removeAnimatedEventFromView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(animatedNodeTag)); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) override { + static_assert( + bridging::getParameterCount(&T::queueAndExecuteBatchedOperations) == 2, + "Expected queueAndExecuteBatchedOperations(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::queueAndExecuteBatchedOperations, jsInvoker_, instance_, std::move(operationsAndArgs)); + } + + private: + friend class NativeAnimatedModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeAnimatedTurboModuleEndResult + +template +struct NativeAnimatedTurboModuleEndResult { + P0 finished; + P1 value; + P2 offset; + bool operator==(const NativeAnimatedTurboModuleEndResult &other) const { + return finished == other.finished && value == other.value && offset == other.offset; + } +}; + +template +struct NativeAnimatedTurboModuleEndResultBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "finished"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "value"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "offset"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool finishedToJs(jsi::Runtime &rt, decltype(types.finished) value) { + return bridging::toJs(rt, value); + } + + static double valueToJs(jsi::Runtime &rt, decltype(types.value) value) { + return bridging::toJs(rt, value); + } + + static double offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "finished", bridging::toJs(rt, value.finished, jsInvoker)); + if (value.value) { + result.setProperty(rt, "value", bridging::toJs(rt, value.value.value(), jsInvoker)); + } + if (value.offset) { + result.setProperty(rt, "offset", bridging::toJs(rt, value.offset.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativeAnimatedTurboModuleEventMapping + +template +struct NativeAnimatedTurboModuleEventMapping { + P0 nativeEventPath; + P1 animatedValueTag; + bool operator==(const NativeAnimatedTurboModuleEventMapping &other) const { + return nativeEventPath == other.nativeEventPath && animatedValueTag == other.animatedValueTag; + } +}; + +template +struct NativeAnimatedTurboModuleEventMappingBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "nativeEventPath"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "animatedValueTag"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::Array nativeEventPathToJs(jsi::Runtime &rt, decltype(types.nativeEventPath) value) { + return bridging::toJs(rt, value); + } + + static std::optional animatedValueTagToJs(jsi::Runtime &rt, decltype(types.animatedValueTag) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "nativeEventPath", bridging::toJs(rt, value.nativeEventPath, jsInvoker)); + result.setProperty(rt, "animatedValueTag", bridging::toJs(rt, value.animatedValueTag, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeAnimatedTurboModuleCxxSpecJSI : public TurboModule { +protected: + NativeAnimatedTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void startOperationBatch(jsi::Runtime &rt) = 0; + virtual void finishOperationBatch(jsi::Runtime &rt) = 0; + virtual void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) = 0; + virtual void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) = 0; + virtual void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) = 0; + virtual void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; + virtual void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) = 0; + virtual void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; + virtual void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) = 0; + virtual void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) = 0; + virtual void stopAnimation(jsi::Runtime &rt, double animationId) = 0; + virtual void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) = 0; + virtual void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) = 0; + virtual void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; + virtual void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) = 0; + virtual void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; + virtual void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) = 0; + virtual void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) = 0; + virtual void dropAnimatedNode(jsi::Runtime &rt, double tag) = 0; + virtual void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) = 0; + virtual void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + virtual void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) = 0; + +}; + +template +class JSI_EXPORT NativeAnimatedTurboModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeAnimatedTurboModule"; + +protected: + NativeAnimatedTurboModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAnimatedTurboModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAnimatedTurboModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAnimatedTurboModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void startOperationBatch(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::startOperationBatch) == 1, + "Expected startOperationBatch(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::startOperationBatch, jsInvoker_, instance_); + } + void finishOperationBatch(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::finishOperationBatch) == 1, + "Expected finishOperationBatch(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::finishOperationBatch, jsInvoker_, instance_); + } + void createAnimatedNode(jsi::Runtime &rt, double tag, jsi::Object config) override { + static_assert( + bridging::getParameterCount(&T::createAnimatedNode) == 3, + "Expected createAnimatedNode(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::createAnimatedNode, jsInvoker_, instance_, std::move(tag), std::move(config)); + } + void updateAnimatedNodeConfig(jsi::Runtime &rt, double tag, jsi::Object config) override { + static_assert( + bridging::getParameterCount(&T::updateAnimatedNodeConfig) == 3, + "Expected updateAnimatedNodeConfig(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::updateAnimatedNodeConfig, jsInvoker_, instance_, std::move(tag), std::move(config)); + } + void getValue(jsi::Runtime &rt, double tag, jsi::Function saveValueCallback) override { + static_assert( + bridging::getParameterCount(&T::getValue) == 3, + "Expected getValue(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getValue, jsInvoker_, instance_, std::move(tag), std::move(saveValueCallback)); + } + void startListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { + static_assert( + bridging::getParameterCount(&T::startListeningToAnimatedNodeValue) == 2, + "Expected startListeningToAnimatedNodeValue(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::startListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); + } + void stopListeningToAnimatedNodeValue(jsi::Runtime &rt, double tag) override { + static_assert( + bridging::getParameterCount(&T::stopListeningToAnimatedNodeValue) == 2, + "Expected stopListeningToAnimatedNodeValue(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::stopListeningToAnimatedNodeValue, jsInvoker_, instance_, std::move(tag)); + } + void connectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { + static_assert( + bridging::getParameterCount(&T::connectAnimatedNodes) == 3, + "Expected connectAnimatedNodes(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::connectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); + } + void disconnectAnimatedNodes(jsi::Runtime &rt, double parentTag, double childTag) override { + static_assert( + bridging::getParameterCount(&T::disconnectAnimatedNodes) == 3, + "Expected disconnectAnimatedNodes(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::disconnectAnimatedNodes, jsInvoker_, instance_, std::move(parentTag), std::move(childTag)); + } + void startAnimatingNode(jsi::Runtime &rt, double animationId, double nodeTag, jsi::Object config, jsi::Function endCallback) override { + static_assert( + bridging::getParameterCount(&T::startAnimatingNode) == 5, + "Expected startAnimatingNode(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::startAnimatingNode, jsInvoker_, instance_, std::move(animationId), std::move(nodeTag), std::move(config), std::move(endCallback)); + } + void stopAnimation(jsi::Runtime &rt, double animationId) override { + static_assert( + bridging::getParameterCount(&T::stopAnimation) == 2, + "Expected stopAnimation(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::stopAnimation, jsInvoker_, instance_, std::move(animationId)); + } + void setAnimatedNodeValue(jsi::Runtime &rt, double nodeTag, double value) override { + static_assert( + bridging::getParameterCount(&T::setAnimatedNodeValue) == 3, + "Expected setAnimatedNodeValue(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setAnimatedNodeValue, jsInvoker_, instance_, std::move(nodeTag), std::move(value)); + } + void setAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag, double offset) override { + static_assert( + bridging::getParameterCount(&T::setAnimatedNodeOffset) == 3, + "Expected setAnimatedNodeOffset(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag), std::move(offset)); + } + void flattenAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { + static_assert( + bridging::getParameterCount(&T::flattenAnimatedNodeOffset) == 2, + "Expected flattenAnimatedNodeOffset(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::flattenAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); + } + void extractAnimatedNodeOffset(jsi::Runtime &rt, double nodeTag) override { + static_assert( + bridging::getParameterCount(&T::extractAnimatedNodeOffset) == 2, + "Expected extractAnimatedNodeOffset(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::extractAnimatedNodeOffset, jsInvoker_, instance_, std::move(nodeTag)); + } + void connectAnimatedNodeToView(jsi::Runtime &rt, double nodeTag, double viewTag) override { + static_assert( + bridging::getParameterCount(&T::connectAnimatedNodeToView) == 3, + "Expected connectAnimatedNodeToView(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::connectAnimatedNodeToView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); + } + void disconnectAnimatedNodeFromView(jsi::Runtime &rt, double nodeTag, double viewTag) override { + static_assert( + bridging::getParameterCount(&T::disconnectAnimatedNodeFromView) == 3, + "Expected disconnectAnimatedNodeFromView(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::disconnectAnimatedNodeFromView, jsInvoker_, instance_, std::move(nodeTag), std::move(viewTag)); + } + void restoreDefaultValues(jsi::Runtime &rt, double nodeTag) override { + static_assert( + bridging::getParameterCount(&T::restoreDefaultValues) == 2, + "Expected restoreDefaultValues(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::restoreDefaultValues, jsInvoker_, instance_, std::move(nodeTag)); + } + void dropAnimatedNode(jsi::Runtime &rt, double tag) override { + static_assert( + bridging::getParameterCount(&T::dropAnimatedNode) == 2, + "Expected dropAnimatedNode(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::dropAnimatedNode, jsInvoker_, instance_, std::move(tag)); + } + void addAnimatedEventToView(jsi::Runtime &rt, double viewTag, jsi::String eventName, jsi::Object eventMapping) override { + static_assert( + bridging::getParameterCount(&T::addAnimatedEventToView) == 4, + "Expected addAnimatedEventToView(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::addAnimatedEventToView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(eventMapping)); + } + void removeAnimatedEventFromView(jsi::Runtime &rt, double viewTag, jsi::String eventName, double animatedNodeTag) override { + static_assert( + bridging::getParameterCount(&T::removeAnimatedEventFromView) == 4, + "Expected removeAnimatedEventFromView(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::removeAnimatedEventFromView, jsInvoker_, instance_, std::move(viewTag), std::move(eventName), std::move(animatedNodeTag)); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + void queueAndExecuteBatchedOperations(jsi::Runtime &rt, jsi::Array operationsAndArgs) override { + static_assert( + bridging::getParameterCount(&T::queueAndExecuteBatchedOperations) == 2, + "Expected queueAndExecuteBatchedOperations(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::queueAndExecuteBatchedOperations, jsInvoker_, instance_, std::move(operationsAndArgs)); + } + + private: + friend class NativeAnimatedTurboModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeAppearanceCxxSpecJSI : public TurboModule { +protected: + NativeAppearanceCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual std::optional getColorScheme(jsi::Runtime &rt) = 0; + virtual void setColorScheme(jsi::Runtime &rt, jsi::String colorScheme) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeAppearanceCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "Appearance"; + +protected: + NativeAppearanceCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAppearanceCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAppearanceCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAppearanceCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + std::optional getColorScheme(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getColorScheme) == 1, + "Expected getColorScheme(...) to have 1 parameters"); + + return bridging::callFromJs>( + rt, &T::getColorScheme, jsInvoker_, instance_); + } + void setColorScheme(jsi::Runtime &rt, jsi::String colorScheme) override { + static_assert( + bridging::getParameterCount(&T::setColorScheme) == 2, + "Expected setColorScheme(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setColorScheme, jsInvoker_, instance_, std::move(colorScheme)); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeAppearanceCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeAppStateAppState + +template +struct NativeAppStateAppState { + P0 app_state; + bool operator==(const NativeAppStateAppState &other) const { + return app_state == other.app_state; + } +}; + +template +struct NativeAppStateAppStateBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "app_state"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String app_stateToJs(jsi::Runtime &rt, decltype(types.app_state) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "app_state", bridging::toJs(rt, value.app_state, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativeAppStateAppStateConstants + +template +struct NativeAppStateAppStateConstants { + P0 initialAppState; + bool operator==(const NativeAppStateAppStateConstants &other) const { + return initialAppState == other.initialAppState; + } +}; + +template +struct NativeAppStateAppStateConstantsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "initialAppState"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String initialAppStateToJs(jsi::Runtime &rt, decltype(types.initialAppState) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "initialAppState", bridging::toJs(rt, value.initialAppState, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeAppStateCxxSpecJSI : public TurboModule { +protected: + NativeAppStateCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void getCurrentAppState(jsi::Runtime &rt, jsi::Function success, jsi::Function error) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeAppStateCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "AppState"; + +protected: + NativeAppStateCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAppStateCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAppStateCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAppStateCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void getCurrentAppState(jsi::Runtime &rt, jsi::Function success, jsi::Function error) override { + static_assert( + bridging::getParameterCount(&T::getCurrentAppState) == 3, + "Expected getCurrentAppState(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getCurrentAppState, jsInvoker_, instance_, std::move(success), std::move(error)); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeAppStateCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeAppThemeAppThemeData + +template +struct NativeAppThemeAppThemeData { + P0 isHighContrast; + P1 highContrastColors; + bool operator==(const NativeAppThemeAppThemeData &other) const { + return isHighContrast == other.isHighContrast && highContrastColors == other.highContrastColors; + } +}; + +template +struct NativeAppThemeAppThemeDataBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "isHighContrast"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "highContrastColors"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool isHighContrastToJs(jsi::Runtime &rt, decltype(types.isHighContrast) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object highContrastColorsToJs(jsi::Runtime &rt, decltype(types.highContrastColors) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "isHighContrast", bridging::toJs(rt, value.isHighContrast, jsInvoker)); + result.setProperty(rt, "highContrastColors", bridging::toJs(rt, value.highContrastColors, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativeAppThemeHighContrastColors + +template +struct NativeAppThemeHighContrastColors { + P0 ButtonFaceColor; + P1 ButtonTextColor; + P2 GrayTextColor; + P3 HighlightColor; + P4 HighlightTextColor; + P5 HotlightColor; + P6 WindowColor; + P7 WindowTextColor; + bool operator==(const NativeAppThemeHighContrastColors &other) const { + return ButtonFaceColor == other.ButtonFaceColor && ButtonTextColor == other.ButtonTextColor && GrayTextColor == other.GrayTextColor && HighlightColor == other.HighlightColor && HighlightTextColor == other.HighlightTextColor && HotlightColor == other.HotlightColor && WindowColor == other.WindowColor && WindowTextColor == other.WindowTextColor; + } +}; + +template +struct NativeAppThemeHighContrastColorsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "ButtonFaceColor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "ButtonTextColor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "GrayTextColor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "HighlightColor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "HighlightTextColor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "HotlightColor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "WindowColor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "WindowTextColor"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String ButtonFaceColorToJs(jsi::Runtime &rt, decltype(types.ButtonFaceColor) value) { + return bridging::toJs(rt, value); + } + + static jsi::String ButtonTextColorToJs(jsi::Runtime &rt, decltype(types.ButtonTextColor) value) { + return bridging::toJs(rt, value); + } + + static jsi::String GrayTextColorToJs(jsi::Runtime &rt, decltype(types.GrayTextColor) value) { + return bridging::toJs(rt, value); + } + + static jsi::String HighlightColorToJs(jsi::Runtime &rt, decltype(types.HighlightColor) value) { + return bridging::toJs(rt, value); + } + + static jsi::String HighlightTextColorToJs(jsi::Runtime &rt, decltype(types.HighlightTextColor) value) { + return bridging::toJs(rt, value); + } + + static jsi::String HotlightColorToJs(jsi::Runtime &rt, decltype(types.HotlightColor) value) { + return bridging::toJs(rt, value); + } + + static jsi::String WindowColorToJs(jsi::Runtime &rt, decltype(types.WindowColor) value) { + return bridging::toJs(rt, value); + } + + static jsi::String WindowTextColorToJs(jsi::Runtime &rt, decltype(types.WindowTextColor) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "ButtonFaceColor", bridging::toJs(rt, value.ButtonFaceColor, jsInvoker)); + result.setProperty(rt, "ButtonTextColor", bridging::toJs(rt, value.ButtonTextColor, jsInvoker)); + result.setProperty(rt, "GrayTextColor", bridging::toJs(rt, value.GrayTextColor, jsInvoker)); + result.setProperty(rt, "HighlightColor", bridging::toJs(rt, value.HighlightColor, jsInvoker)); + result.setProperty(rt, "HighlightTextColor", bridging::toJs(rt, value.HighlightTextColor, jsInvoker)); + result.setProperty(rt, "HotlightColor", bridging::toJs(rt, value.HotlightColor, jsInvoker)); + result.setProperty(rt, "WindowColor", bridging::toJs(rt, value.WindowColor, jsInvoker)); + result.setProperty(rt, "WindowTextColor", bridging::toJs(rt, value.WindowTextColor, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeAppThemeCxxSpecJSI : public TurboModule { +protected: + NativeAppThemeCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeAppThemeCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "AppTheme"; + +protected: + NativeAppThemeCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeAppThemeCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeAppThemeCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAppThemeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + + private: + friend class NativeAppThemeCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeBlobModuleConstants + +template +struct NativeBlobModuleConstants { + P0 BLOB_URI_SCHEME; + P1 BLOB_URI_HOST; + bool operator==(const NativeBlobModuleConstants &other) const { + return BLOB_URI_SCHEME == other.BLOB_URI_SCHEME && BLOB_URI_HOST == other.BLOB_URI_HOST; + } +}; + +template +struct NativeBlobModuleConstantsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "BLOB_URI_SCHEME"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "BLOB_URI_HOST"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static std::optional BLOB_URI_SCHEMEToJs(jsi::Runtime &rt, decltype(types.BLOB_URI_SCHEME) value) { + return bridging::toJs(rt, value); + } + + static std::optional BLOB_URI_HOSTToJs(jsi::Runtime &rt, decltype(types.BLOB_URI_HOST) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "BLOB_URI_SCHEME", bridging::toJs(rt, value.BLOB_URI_SCHEME, jsInvoker)); + result.setProperty(rt, "BLOB_URI_HOST", bridging::toJs(rt, value.BLOB_URI_HOST, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeBlobModuleCxxSpecJSI : public TurboModule { +protected: + NativeBlobModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void addNetworkingHandler(jsi::Runtime &rt) = 0; + virtual void addWebSocketHandler(jsi::Runtime &rt, double id) = 0; + virtual void removeWebSocketHandler(jsi::Runtime &rt, double id) = 0; + virtual void sendOverSocket(jsi::Runtime &rt, jsi::Object blob, double socketID) = 0; + virtual void createFromParts(jsi::Runtime &rt, jsi::Array parts, jsi::String withId) = 0; + virtual void release(jsi::Runtime &rt, jsi::String blobId) = 0; + +}; + +template +class JSI_EXPORT NativeBlobModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "BlobModule"; + +protected: + NativeBlobModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeBlobModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeBlobModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeBlobModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void addNetworkingHandler(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::addNetworkingHandler) == 1, + "Expected addNetworkingHandler(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::addNetworkingHandler, jsInvoker_, instance_); + } + void addWebSocketHandler(jsi::Runtime &rt, double id) override { + static_assert( + bridging::getParameterCount(&T::addWebSocketHandler) == 2, + "Expected addWebSocketHandler(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addWebSocketHandler, jsInvoker_, instance_, std::move(id)); + } + void removeWebSocketHandler(jsi::Runtime &rt, double id) override { + static_assert( + bridging::getParameterCount(&T::removeWebSocketHandler) == 2, + "Expected removeWebSocketHandler(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeWebSocketHandler, jsInvoker_, instance_, std::move(id)); + } + void sendOverSocket(jsi::Runtime &rt, jsi::Object blob, double socketID) override { + static_assert( + bridging::getParameterCount(&T::sendOverSocket) == 3, + "Expected sendOverSocket(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::sendOverSocket, jsInvoker_, instance_, std::move(blob), std::move(socketID)); + } + void createFromParts(jsi::Runtime &rt, jsi::Array parts, jsi::String withId) override { + static_assert( + bridging::getParameterCount(&T::createFromParts) == 3, + "Expected createFromParts(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::createFromParts, jsInvoker_, instance_, std::move(parts), std::move(withId)); + } + void release(jsi::Runtime &rt, jsi::String blobId) override { + static_assert( + bridging::getParameterCount(&T::release) == 2, + "Expected release(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::release, jsInvoker_, instance_, std::move(blobId)); + } + + private: + friend class NativeBlobModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeClipboardCxxSpecJSI : public TurboModule { +protected: + NativeClipboardCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual jsi::Value getString(jsi::Runtime &rt) = 0; + virtual void setString(jsi::Runtime &rt, jsi::String content) = 0; + +}; + +template +class JSI_EXPORT NativeClipboardCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "Clipboard"; + +protected: + NativeClipboardCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeClipboardCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeClipboardCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeClipboardCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + jsi::Value getString(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getString) == 1, + "Expected getString(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getString, jsInvoker_, instance_); + } + void setString(jsi::Runtime &rt, jsi::String content) override { + static_assert( + bridging::getParameterCount(&T::setString) == 2, + "Expected setString(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setString, jsInvoker_, instance_, std::move(content)); + } + + private: + friend class NativeClipboardCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeDeviceEventManagerCxxSpecJSI : public TurboModule { +protected: + NativeDeviceEventManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void invokeDefaultBackPressHandler(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeDeviceEventManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "DeviceEventManager"; + +protected: + NativeDeviceEventManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDeviceEventManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDeviceEventManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDeviceEventManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void invokeDefaultBackPressHandler(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::invokeDefaultBackPressHandler) == 1, + "Expected invokeDefaultBackPressHandler(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::invokeDefaultBackPressHandler, jsInvoker_, instance_); + } + + private: + friend class NativeDeviceEventManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeDeviceInfoDeviceInfoConstants + +template +struct NativeDeviceInfoDeviceInfoConstants { + P0 Dimensions; + P1 isEdgeToEdge; + P2 isIPhoneX_deprecated; + bool operator==(const NativeDeviceInfoDeviceInfoConstants &other) const { + return Dimensions == other.Dimensions && isEdgeToEdge == other.isEdgeToEdge && isIPhoneX_deprecated == other.isIPhoneX_deprecated; + } +}; + +template +struct NativeDeviceInfoDeviceInfoConstantsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "Dimensions"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isEdgeToEdge"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isIPhoneX_deprecated"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::Object DimensionsToJs(jsi::Runtime &rt, decltype(types.Dimensions) value) { + return bridging::toJs(rt, value); + } + + static bool isEdgeToEdgeToJs(jsi::Runtime &rt, decltype(types.isEdgeToEdge) value) { + return bridging::toJs(rt, value); + } + + static bool isIPhoneX_deprecatedToJs(jsi::Runtime &rt, decltype(types.isIPhoneX_deprecated) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "Dimensions", bridging::toJs(rt, value.Dimensions, jsInvoker)); + if (value.isEdgeToEdge) { + result.setProperty(rt, "isEdgeToEdge", bridging::toJs(rt, value.isEdgeToEdge.value(), jsInvoker)); + } + if (value.isIPhoneX_deprecated) { + result.setProperty(rt, "isIPhoneX_deprecated", bridging::toJs(rt, value.isIPhoneX_deprecated.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativeDeviceInfoDimensionsPayload + +template +struct NativeDeviceInfoDimensionsPayload { + P0 window; + P1 screen; + P2 windowPhysicalPixels; + P3 screenPhysicalPixels; + bool operator==(const NativeDeviceInfoDimensionsPayload &other) const { + return window == other.window && screen == other.screen && windowPhysicalPixels == other.windowPhysicalPixels && screenPhysicalPixels == other.screenPhysicalPixels; + } +}; + +template +struct NativeDeviceInfoDimensionsPayloadBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "window"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "screen"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "windowPhysicalPixels"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "screenPhysicalPixels"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::Object windowToJs(jsi::Runtime &rt, decltype(types.window) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object screenToJs(jsi::Runtime &rt, decltype(types.screen) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object windowPhysicalPixelsToJs(jsi::Runtime &rt, decltype(types.windowPhysicalPixels) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object screenPhysicalPixelsToJs(jsi::Runtime &rt, decltype(types.screenPhysicalPixels) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.window) { + result.setProperty(rt, "window", bridging::toJs(rt, value.window.value(), jsInvoker)); + } + if (value.screen) { + result.setProperty(rt, "screen", bridging::toJs(rt, value.screen.value(), jsInvoker)); + } + if (value.windowPhysicalPixels) { + result.setProperty(rt, "windowPhysicalPixels", bridging::toJs(rt, value.windowPhysicalPixels.value(), jsInvoker)); + } + if (value.screenPhysicalPixels) { + result.setProperty(rt, "screenPhysicalPixels", bridging::toJs(rt, value.screenPhysicalPixels.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativeDeviceInfoDisplayMetrics + +template +struct NativeDeviceInfoDisplayMetrics { + P0 width; + P1 height; + P2 scale; + P3 fontScale; + bool operator==(const NativeDeviceInfoDisplayMetrics &other) const { + return width == other.width && height == other.height && scale == other.scale && fontScale == other.fontScale; + } +}; + +template +struct NativeDeviceInfoDisplayMetricsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "width"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "height"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "scale"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "fontScale"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double widthToJs(jsi::Runtime &rt, decltype(types.width) value) { + return bridging::toJs(rt, value); + } + + static double heightToJs(jsi::Runtime &rt, decltype(types.height) value) { + return bridging::toJs(rt, value); + } + + static double scaleToJs(jsi::Runtime &rt, decltype(types.scale) value) { + return bridging::toJs(rt, value); + } + + static double fontScaleToJs(jsi::Runtime &rt, decltype(types.fontScale) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "width", bridging::toJs(rt, value.width, jsInvoker)); + result.setProperty(rt, "height", bridging::toJs(rt, value.height, jsInvoker)); + result.setProperty(rt, "scale", bridging::toJs(rt, value.scale, jsInvoker)); + result.setProperty(rt, "fontScale", bridging::toJs(rt, value.fontScale, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativeDeviceInfoDisplayMetricsAndroid + +template +struct NativeDeviceInfoDisplayMetricsAndroid { + P0 width; + P1 height; + P2 scale; + P3 fontScale; + P4 densityDpi; + bool operator==(const NativeDeviceInfoDisplayMetricsAndroid &other) const { + return width == other.width && height == other.height && scale == other.scale && fontScale == other.fontScale && densityDpi == other.densityDpi; + } +}; + +template +struct NativeDeviceInfoDisplayMetricsAndroidBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "width"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "height"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "scale"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "fontScale"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "densityDpi"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double widthToJs(jsi::Runtime &rt, decltype(types.width) value) { + return bridging::toJs(rt, value); + } + + static double heightToJs(jsi::Runtime &rt, decltype(types.height) value) { + return bridging::toJs(rt, value); + } + + static double scaleToJs(jsi::Runtime &rt, decltype(types.scale) value) { + return bridging::toJs(rt, value); + } + + static double fontScaleToJs(jsi::Runtime &rt, decltype(types.fontScale) value) { + return bridging::toJs(rt, value); + } + + static double densityDpiToJs(jsi::Runtime &rt, decltype(types.densityDpi) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "width", bridging::toJs(rt, value.width, jsInvoker)); + result.setProperty(rt, "height", bridging::toJs(rt, value.height, jsInvoker)); + result.setProperty(rt, "scale", bridging::toJs(rt, value.scale, jsInvoker)); + result.setProperty(rt, "fontScale", bridging::toJs(rt, value.fontScale, jsInvoker)); + result.setProperty(rt, "densityDpi", bridging::toJs(rt, value.densityDpi, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeDeviceInfoCxxSpecJSI : public TurboModule { +protected: + NativeDeviceInfoCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeDeviceInfoCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "DeviceInfo"; + +protected: + NativeDeviceInfoCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDeviceInfoCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDeviceInfoCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDeviceInfoCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + + private: + friend class NativeDeviceInfoCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeDevLoadingViewCxxSpecJSI : public TurboModule { +protected: + NativeDevLoadingViewCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void showMessage(jsi::Runtime &rt, jsi::String message, std::optional withColor, std::optional withBackgroundColor) = 0; + virtual void hide(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeDevLoadingViewCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "DevLoadingView"; + +protected: + NativeDevLoadingViewCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDevLoadingViewCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDevLoadingViewCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDevLoadingViewCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void showMessage(jsi::Runtime &rt, jsi::String message, std::optional withColor, std::optional withBackgroundColor) override { + static_assert( + bridging::getParameterCount(&T::showMessage) == 4, + "Expected showMessage(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::showMessage, jsInvoker_, instance_, std::move(message), std::move(withColor), std::move(withBackgroundColor)); + } + void hide(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::hide) == 1, + "Expected hide(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::hide, jsInvoker_, instance_); + } + + private: + friend class NativeDevLoadingViewCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeDevSettingsCxxSpecJSI : public TurboModule { +protected: + NativeDevSettingsCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void reload(jsi::Runtime &rt) = 0; + virtual void reloadWithReason(jsi::Runtime &rt, jsi::String reason) = 0; + virtual void onFastRefresh(jsi::Runtime &rt) = 0; + virtual void setHotLoadingEnabled(jsi::Runtime &rt, bool isHotLoadingEnabled) = 0; + virtual void setProfilingEnabled(jsi::Runtime &rt, bool isProfilingEnabled) = 0; + virtual void toggleElementInspector(jsi::Runtime &rt) = 0; + virtual void addMenuItem(jsi::Runtime &rt, jsi::String title) = 0; + virtual void openDebugger(jsi::Runtime &rt) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + virtual void setIsShakeToShowDevMenuEnabled(jsi::Runtime &rt, bool enabled) = 0; + +}; + +template +class JSI_EXPORT NativeDevSettingsCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "DevSettings"; + +protected: + NativeDevSettingsCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDevSettingsCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDevSettingsCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDevSettingsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void reload(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::reload) == 1, + "Expected reload(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::reload, jsInvoker_, instance_); + } + void reloadWithReason(jsi::Runtime &rt, jsi::String reason) override { + static_assert( + bridging::getParameterCount(&T::reloadWithReason) == 2, + "Expected reloadWithReason(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::reloadWithReason, jsInvoker_, instance_, std::move(reason)); + } + void onFastRefresh(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::onFastRefresh) == 1, + "Expected onFastRefresh(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::onFastRefresh, jsInvoker_, instance_); + } + void setHotLoadingEnabled(jsi::Runtime &rt, bool isHotLoadingEnabled) override { + static_assert( + bridging::getParameterCount(&T::setHotLoadingEnabled) == 2, + "Expected setHotLoadingEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setHotLoadingEnabled, jsInvoker_, instance_, std::move(isHotLoadingEnabled)); + } + void setProfilingEnabled(jsi::Runtime &rt, bool isProfilingEnabled) override { + static_assert( + bridging::getParameterCount(&T::setProfilingEnabled) == 2, + "Expected setProfilingEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setProfilingEnabled, jsInvoker_, instance_, std::move(isProfilingEnabled)); + } + void toggleElementInspector(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::toggleElementInspector) == 1, + "Expected toggleElementInspector(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::toggleElementInspector, jsInvoker_, instance_); + } + void addMenuItem(jsi::Runtime &rt, jsi::String title) override { + static_assert( + bridging::getParameterCount(&T::addMenuItem) == 2, + "Expected addMenuItem(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addMenuItem, jsInvoker_, instance_, std::move(title)); + } + void openDebugger(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::openDebugger) == 1, + "Expected openDebugger(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::openDebugger, jsInvoker_, instance_); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + void setIsShakeToShowDevMenuEnabled(jsi::Runtime &rt, bool enabled) override { + static_assert( + bridging::getParameterCount(&T::setIsShakeToShowDevMenuEnabled) == 2, + "Expected setIsShakeToShowDevMenuEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setIsShakeToShowDevMenuEnabled, jsInvoker_, instance_, std::move(enabled)); + } + + private: + friend class NativeDevSettingsCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeDialogManagerAndroidDialogOptions + +template +struct NativeDialogManagerAndroidDialogOptions { + P0 title; + P1 message; + P2 buttonPositive; + P3 buttonNegative; + P4 buttonNeutral; + P5 items; + P6 cancelable; + bool operator==(const NativeDialogManagerAndroidDialogOptions &other) const { + return title == other.title && message == other.message && buttonPositive == other.buttonPositive && buttonNegative == other.buttonNegative && buttonNeutral == other.buttonNeutral && items == other.items && cancelable == other.cancelable; + } +}; + +template +struct NativeDialogManagerAndroidDialogOptionsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "title"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buttonPositive"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buttonNegative"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buttonNeutral"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "items"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "cancelable"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String titleToJs(jsi::Runtime &rt, decltype(types.title) value) { + return bridging::toJs(rt, value); + } + + static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { + return bridging::toJs(rt, value); + } + + static jsi::String buttonPositiveToJs(jsi::Runtime &rt, decltype(types.buttonPositive) value) { + return bridging::toJs(rt, value); + } + + static jsi::String buttonNegativeToJs(jsi::Runtime &rt, decltype(types.buttonNegative) value) { + return bridging::toJs(rt, value); + } + + static jsi::String buttonNeutralToJs(jsi::Runtime &rt, decltype(types.buttonNeutral) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array itemsToJs(jsi::Runtime &rt, decltype(types.items) value) { + return bridging::toJs(rt, value); + } + + static bool cancelableToJs(jsi::Runtime &rt, decltype(types.cancelable) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.title) { + result.setProperty(rt, "title", bridging::toJs(rt, value.title.value(), jsInvoker)); + } + if (value.message) { + result.setProperty(rt, "message", bridging::toJs(rt, value.message.value(), jsInvoker)); + } + if (value.buttonPositive) { + result.setProperty(rt, "buttonPositive", bridging::toJs(rt, value.buttonPositive.value(), jsInvoker)); + } + if (value.buttonNegative) { + result.setProperty(rt, "buttonNegative", bridging::toJs(rt, value.buttonNegative.value(), jsInvoker)); + } + if (value.buttonNeutral) { + result.setProperty(rt, "buttonNeutral", bridging::toJs(rt, value.buttonNeutral.value(), jsInvoker)); + } + if (value.items) { + result.setProperty(rt, "items", bridging::toJs(rt, value.items.value(), jsInvoker)); + } + if (value.cancelable) { + result.setProperty(rt, "cancelable", bridging::toJs(rt, value.cancelable.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeDialogManagerAndroidCxxSpecJSI : public TurboModule { +protected: + NativeDialogManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) = 0; + +}; + +template +class JSI_EXPORT NativeDialogManagerAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "DialogManagerAndroid"; + +protected: + NativeDialogManagerAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDialogManagerAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDialogManagerAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDialogManagerAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) override { + static_assert( + bridging::getParameterCount(&T::showAlert) == 4, + "Expected showAlert(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::showAlert, jsInvoker_, instance_, std::move(config), std::move(onError), std::move(onAction)); + } + + private: + friend class NativeDialogManagerAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeDialogManagerWindowsDialogOptions + +template +struct NativeDialogManagerWindowsDialogOptions { + P0 title; + P1 message; + P2 buttonPositive; + P3 buttonNegative; + P4 buttonNeutral; + P5 items; + P6 cancelable; + P7 defaultButton; + P8 rootTag; + bool operator==(const NativeDialogManagerWindowsDialogOptions &other) const { + return title == other.title && message == other.message && buttonPositive == other.buttonPositive && buttonNegative == other.buttonNegative && buttonNeutral == other.buttonNeutral && items == other.items && cancelable == other.cancelable && defaultButton == other.defaultButton && rootTag == other.rootTag; + } +}; + +template +struct NativeDialogManagerWindowsDialogOptionsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "title"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buttonPositive"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buttonNegative"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buttonNeutral"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "items"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "cancelable"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "defaultButton"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "rootTag"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String titleToJs(jsi::Runtime &rt, decltype(types.title) value) { + return bridging::toJs(rt, value); + } + + static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { + return bridging::toJs(rt, value); + } + + static jsi::String buttonPositiveToJs(jsi::Runtime &rt, decltype(types.buttonPositive) value) { + return bridging::toJs(rt, value); + } + + static jsi::String buttonNegativeToJs(jsi::Runtime &rt, decltype(types.buttonNegative) value) { + return bridging::toJs(rt, value); + } + + static jsi::String buttonNeutralToJs(jsi::Runtime &rt, decltype(types.buttonNeutral) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array itemsToJs(jsi::Runtime &rt, decltype(types.items) value) { + return bridging::toJs(rt, value); + } + + static bool cancelableToJs(jsi::Runtime &rt, decltype(types.cancelable) value) { + return bridging::toJs(rt, value); + } + + static int defaultButtonToJs(jsi::Runtime &rt, decltype(types.defaultButton) value) { + return bridging::toJs(rt, value); + } + + static int rootTagToJs(jsi::Runtime &rt, decltype(types.rootTag) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.title) { + result.setProperty(rt, "title", bridging::toJs(rt, value.title.value(), jsInvoker)); + } + if (value.message) { + result.setProperty(rt, "message", bridging::toJs(rt, value.message.value(), jsInvoker)); + } + if (value.buttonPositive) { + result.setProperty(rt, "buttonPositive", bridging::toJs(rt, value.buttonPositive.value(), jsInvoker)); + } + if (value.buttonNegative) { + result.setProperty(rt, "buttonNegative", bridging::toJs(rt, value.buttonNegative.value(), jsInvoker)); + } + if (value.buttonNeutral) { + result.setProperty(rt, "buttonNeutral", bridging::toJs(rt, value.buttonNeutral.value(), jsInvoker)); + } + if (value.items) { + result.setProperty(rt, "items", bridging::toJs(rt, value.items.value(), jsInvoker)); + } + if (value.cancelable) { + result.setProperty(rt, "cancelable", bridging::toJs(rt, value.cancelable.value(), jsInvoker)); + } + if (value.defaultButton) { + result.setProperty(rt, "defaultButton", bridging::toJs(rt, value.defaultButton.value(), jsInvoker)); + } + if (value.rootTag) { + result.setProperty(rt, "rootTag", bridging::toJs(rt, value.rootTag.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeDialogManagerWindowsCxxSpecJSI : public TurboModule { +protected: + NativeDialogManagerWindowsCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) = 0; + +}; + +template +class JSI_EXPORT NativeDialogManagerWindowsCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "Alert"; + +protected: + NativeDialogManagerWindowsCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDialogManagerWindowsCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDialogManagerWindowsCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDialogManagerWindowsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void showAlert(jsi::Runtime &rt, jsi::Object config, jsi::Function onError, jsi::Function onAction) override { + static_assert( + bridging::getParameterCount(&T::showAlert) == 4, + "Expected showAlert(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::showAlert, jsInvoker_, instance_, std::move(config), std::move(onError), std::move(onAction)); + } + + private: + friend class NativeDialogManagerWindowsCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeExceptionsManagerExceptionData + +template +struct NativeExceptionsManagerExceptionData { + P0 message; + P1 originalMessage; + P2 name; + P3 componentStack; + P4 stack; + P5 id; + P6 isFatal; + P7 extraData; + bool operator==(const NativeExceptionsManagerExceptionData &other) const { + return message == other.message && originalMessage == other.originalMessage && name == other.name && componentStack == other.componentStack && stack == other.stack && id == other.id && isFatal == other.isFatal && extraData == other.extraData; + } +}; + +template +struct NativeExceptionsManagerExceptionDataBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "message"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "originalMessage"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "name"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "componentStack"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "stack"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "id"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isFatal"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "extraData"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String messageToJs(jsi::Runtime &rt, decltype(types.message) value) { + return bridging::toJs(rt, value); + } + + static std::optional originalMessageToJs(jsi::Runtime &rt, decltype(types.originalMessage) value) { + return bridging::toJs(rt, value); + } + + static std::optional nameToJs(jsi::Runtime &rt, decltype(types.name) value) { + return bridging::toJs(rt, value); + } + + static std::optional componentStackToJs(jsi::Runtime &rt, decltype(types.componentStack) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array stackToJs(jsi::Runtime &rt, decltype(types.stack) value) { + return bridging::toJs(rt, value); + } + + static double idToJs(jsi::Runtime &rt, decltype(types.id) value) { + return bridging::toJs(rt, value); + } + + static bool isFatalToJs(jsi::Runtime &rt, decltype(types.isFatal) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object extraDataToJs(jsi::Runtime &rt, decltype(types.extraData) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "message", bridging::toJs(rt, value.message, jsInvoker)); + result.setProperty(rt, "originalMessage", bridging::toJs(rt, value.originalMessage, jsInvoker)); + result.setProperty(rt, "name", bridging::toJs(rt, value.name, jsInvoker)); + result.setProperty(rt, "componentStack", bridging::toJs(rt, value.componentStack, jsInvoker)); + result.setProperty(rt, "stack", bridging::toJs(rt, value.stack, jsInvoker)); + result.setProperty(rt, "id", bridging::toJs(rt, value.id, jsInvoker)); + result.setProperty(rt, "isFatal", bridging::toJs(rt, value.isFatal, jsInvoker)); + if (value.extraData) { + result.setProperty(rt, "extraData", bridging::toJs(rt, value.extraData.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativeExceptionsManagerStackFrame + +template +struct NativeExceptionsManagerStackFrame { + P0 column; + P1 file; + P2 lineNumber; + P3 methodName; + P4 collapse; + bool operator==(const NativeExceptionsManagerStackFrame &other) const { + return column == other.column && file == other.file && lineNumber == other.lineNumber && methodName == other.methodName && collapse == other.collapse; + } +}; + +template +struct NativeExceptionsManagerStackFrameBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "column"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "file"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "lineNumber"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "methodName"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "collapse"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static std::optional columnToJs(jsi::Runtime &rt, decltype(types.column) value) { + return bridging::toJs(rt, value); + } + + static std::optional fileToJs(jsi::Runtime &rt, decltype(types.file) value) { + return bridging::toJs(rt, value); + } + + static std::optional lineNumberToJs(jsi::Runtime &rt, decltype(types.lineNumber) value) { + return bridging::toJs(rt, value); + } + + static jsi::String methodNameToJs(jsi::Runtime &rt, decltype(types.methodName) value) { + return bridging::toJs(rt, value); + } + + static bool collapseToJs(jsi::Runtime &rt, decltype(types.collapse) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "column", bridging::toJs(rt, value.column, jsInvoker)); + result.setProperty(rt, "file", bridging::toJs(rt, value.file, jsInvoker)); + result.setProperty(rt, "lineNumber", bridging::toJs(rt, value.lineNumber, jsInvoker)); + result.setProperty(rt, "methodName", bridging::toJs(rt, value.methodName, jsInvoker)); + if (value.collapse) { + result.setProperty(rt, "collapse", bridging::toJs(rt, value.collapse.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeExceptionsManagerCxxSpecJSI : public TurboModule { +protected: + NativeExceptionsManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void reportFatalException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) = 0; + virtual void reportSoftException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) = 0; + virtual void reportException(jsi::Runtime &rt, jsi::Object data) = 0; + virtual void dismissRedbox(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeExceptionsManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ExceptionsManager"; + +protected: + NativeExceptionsManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeExceptionsManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeExceptionsManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeExceptionsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void reportFatalException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) override { + static_assert( + bridging::getParameterCount(&T::reportFatalException) == 4, + "Expected reportFatalException(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::reportFatalException, jsInvoker_, instance_, std::move(message), std::move(stack), std::move(exceptionId)); + } + void reportSoftException(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) override { + static_assert( + bridging::getParameterCount(&T::reportSoftException) == 4, + "Expected reportSoftException(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::reportSoftException, jsInvoker_, instance_, std::move(message), std::move(stack), std::move(exceptionId)); + } + void reportException(jsi::Runtime &rt, jsi::Object data) override { + static_assert( + bridging::getParameterCount(&T::reportException) == 2, + "Expected reportException(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::reportException, jsInvoker_, instance_, std::move(data)); + } + void dismissRedbox(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::dismissRedbox) == 1, + "Expected dismissRedbox(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::dismissRedbox, jsInvoker_, instance_); + } + + private: + friend class NativeExceptionsManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeFileReaderModuleCxxSpecJSI : public TurboModule { +protected: + NativeFileReaderModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Value readAsDataURL(jsi::Runtime &rt, jsi::Object data) = 0; + virtual jsi::Value readAsText(jsi::Runtime &rt, jsi::Object data, jsi::String encoding) = 0; + +}; + +template +class JSI_EXPORT NativeFileReaderModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "FileReaderModule"; + +protected: + NativeFileReaderModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeFileReaderModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeFileReaderModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeFileReaderModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Value readAsDataURL(jsi::Runtime &rt, jsi::Object data) override { + static_assert( + bridging::getParameterCount(&T::readAsDataURL) == 2, + "Expected readAsDataURL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::readAsDataURL, jsInvoker_, instance_, std::move(data)); + } + jsi::Value readAsText(jsi::Runtime &rt, jsi::Object data, jsi::String encoding) override { + static_assert( + bridging::getParameterCount(&T::readAsText) == 3, + "Expected readAsText(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::readAsText, jsInvoker_, instance_, std::move(data), std::move(encoding)); + } + + private: + friend class NativeFileReaderModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeFrameRateLoggerCxxSpecJSI : public TurboModule { +protected: + NativeFrameRateLoggerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void setGlobalOptions(jsi::Runtime &rt, jsi::Object options) = 0; + virtual void setContext(jsi::Runtime &rt, jsi::String context) = 0; + virtual void beginScroll(jsi::Runtime &rt) = 0; + virtual void endScroll(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeFrameRateLoggerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "FrameRateLogger"; + +protected: + NativeFrameRateLoggerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeFrameRateLoggerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeFrameRateLoggerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeFrameRateLoggerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void setGlobalOptions(jsi::Runtime &rt, jsi::Object options) override { + static_assert( + bridging::getParameterCount(&T::setGlobalOptions) == 2, + "Expected setGlobalOptions(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setGlobalOptions, jsInvoker_, instance_, std::move(options)); + } + void setContext(jsi::Runtime &rt, jsi::String context) override { + static_assert( + bridging::getParameterCount(&T::setContext) == 2, + "Expected setContext(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setContext, jsInvoker_, instance_, std::move(context)); + } + void beginScroll(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::beginScroll) == 1, + "Expected beginScroll(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::beginScroll, jsInvoker_, instance_); + } + void endScroll(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::endScroll) == 1, + "Expected endScroll(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::endScroll, jsInvoker_, instance_); + } + + private: + friend class NativeFrameRateLoggerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeHeadlessJsTaskSupportCxxSpecJSI : public TurboModule { +protected: + NativeHeadlessJsTaskSupportCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void notifyTaskFinished(jsi::Runtime &rt, double taskId) = 0; + virtual jsi::Value notifyTaskRetry(jsi::Runtime &rt, double taskId) = 0; + +}; + +template +class JSI_EXPORT NativeHeadlessJsTaskSupportCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "HeadlessJsTaskSupport"; + +protected: + NativeHeadlessJsTaskSupportCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeHeadlessJsTaskSupportCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeHeadlessJsTaskSupportCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeHeadlessJsTaskSupportCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void notifyTaskFinished(jsi::Runtime &rt, double taskId) override { + static_assert( + bridging::getParameterCount(&T::notifyTaskFinished) == 2, + "Expected notifyTaskFinished(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::notifyTaskFinished, jsInvoker_, instance_, std::move(taskId)); + } + jsi::Value notifyTaskRetry(jsi::Runtime &rt, double taskId) override { + static_assert( + bridging::getParameterCount(&T::notifyTaskRetry) == 2, + "Expected notifyTaskRetry(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::notifyTaskRetry, jsInvoker_, instance_, std::move(taskId)); + } + + private: + friend class NativeHeadlessJsTaskSupportCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeI18nManagerI18nManagerConstants + +template +struct NativeI18nManagerI18nManagerConstants { + P0 doLeftAndRightSwapInRTL; + P1 isRTL; + P2 localeIdentifier; + bool operator==(const NativeI18nManagerI18nManagerConstants &other) const { + return doLeftAndRightSwapInRTL == other.doLeftAndRightSwapInRTL && isRTL == other.isRTL && localeIdentifier == other.localeIdentifier; + } +}; + +template +struct NativeI18nManagerI18nManagerConstantsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "doLeftAndRightSwapInRTL"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isRTL"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "localeIdentifier"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool doLeftAndRightSwapInRTLToJs(jsi::Runtime &rt, decltype(types.doLeftAndRightSwapInRTL) value) { + return bridging::toJs(rt, value); + } + + static bool isRTLToJs(jsi::Runtime &rt, decltype(types.isRTL) value) { + return bridging::toJs(rt, value); + } + + static std::optional localeIdentifierToJs(jsi::Runtime &rt, decltype(types.localeIdentifier) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "doLeftAndRightSwapInRTL", bridging::toJs(rt, value.doLeftAndRightSwapInRTL, jsInvoker)); + result.setProperty(rt, "isRTL", bridging::toJs(rt, value.isRTL, jsInvoker)); + if (value.localeIdentifier) { + result.setProperty(rt, "localeIdentifier", bridging::toJs(rt, value.localeIdentifier.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeI18nManagerCxxSpecJSI : public TurboModule { +protected: + NativeI18nManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void allowRTL(jsi::Runtime &rt, bool allowRTL) = 0; + virtual void forceRTL(jsi::Runtime &rt, bool forceRTL) = 0; + virtual void swapLeftAndRightInRTL(jsi::Runtime &rt, bool flipStyles) = 0; + +}; + +template +class JSI_EXPORT NativeI18nManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "I18nManager"; + +protected: + NativeI18nManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeI18nManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeI18nManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeI18nManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void allowRTL(jsi::Runtime &rt, bool allowRTL) override { + static_assert( + bridging::getParameterCount(&T::allowRTL) == 2, + "Expected allowRTL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::allowRTL, jsInvoker_, instance_, std::move(allowRTL)); + } + void forceRTL(jsi::Runtime &rt, bool forceRTL) override { + static_assert( + bridging::getParameterCount(&T::forceRTL) == 2, + "Expected forceRTL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::forceRTL, jsInvoker_, instance_, std::move(forceRTL)); + } + void swapLeftAndRightInRTL(jsi::Runtime &rt, bool flipStyles) override { + static_assert( + bridging::getParameterCount(&T::swapLeftAndRightInRTL) == 2, + "Expected swapLeftAndRightInRTL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::swapLeftAndRightInRTL, jsInvoker_, instance_, std::move(flipStyles)); + } + + private: + friend class NativeI18nManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeImageEditorOptions + +template +struct NativeImageEditorOptions { + P0 offset; + P1 size; + P2 displaySize; + P3 resizeMode; + P4 allowExternalStorage; + bool operator==(const NativeImageEditorOptions &other) const { + return offset == other.offset && size == other.size && displaySize == other.displaySize && resizeMode == other.resizeMode && allowExternalStorage == other.allowExternalStorage; + } +}; + +template +struct NativeImageEditorOptionsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "offset"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "size"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "displaySize"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "resizeMode"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "allowExternalStorage"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::Object offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object sizeToJs(jsi::Runtime &rt, decltype(types.size) value) { + return bridging::toJs(rt, value); + } + + static std::optional displaySizeToJs(jsi::Runtime &rt, decltype(types.displaySize) value) { + return bridging::toJs(rt, value); + } + + static std::optional resizeModeToJs(jsi::Runtime &rt, decltype(types.resizeMode) value) { + return bridging::toJs(rt, value); + } + + static bool allowExternalStorageToJs(jsi::Runtime &rt, decltype(types.allowExternalStorage) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "offset", bridging::toJs(rt, value.offset, jsInvoker)); + result.setProperty(rt, "size", bridging::toJs(rt, value.size, jsInvoker)); + if (value.displaySize) { + result.setProperty(rt, "displaySize", bridging::toJs(rt, value.displaySize.value(), jsInvoker)); + } + if (value.resizeMode) { + result.setProperty(rt, "resizeMode", bridging::toJs(rt, value.resizeMode.value(), jsInvoker)); + } + if (value.allowExternalStorage) { + result.setProperty(rt, "allowExternalStorage", bridging::toJs(rt, value.allowExternalStorage.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeImageEditorCxxSpecJSI : public TurboModule { +protected: + NativeImageEditorCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void cropImage(jsi::Runtime &rt, jsi::String uri, jsi::Object cropData, jsi::Function successCallback, jsi::Function errorCallback) = 0; + +}; + +template +class JSI_EXPORT NativeImageEditorCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ImageEditingManager"; + +protected: + NativeImageEditorCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeImageEditorCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeImageEditorCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeImageEditorCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void cropImage(jsi::Runtime &rt, jsi::String uri, jsi::Object cropData, jsi::Function successCallback, jsi::Function errorCallback) override { + static_assert( + bridging::getParameterCount(&T::cropImage) == 5, + "Expected cropImage(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::cropImage, jsInvoker_, instance_, std::move(uri), std::move(cropData), std::move(successCallback), std::move(errorCallback)); + } + + private: + friend class NativeImageEditorCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeImageLoaderAndroidImageSize + +template +struct NativeImageLoaderAndroidImageSize { + P0 width; + P1 height; + bool operator==(const NativeImageLoaderAndroidImageSize &other) const { + return width == other.width && height == other.height; + } +}; + +template +struct NativeImageLoaderAndroidImageSizeBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "width"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "height"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double widthToJs(jsi::Runtime &rt, decltype(types.width) value) { + return bridging::toJs(rt, value); + } + + static double heightToJs(jsi::Runtime &rt, decltype(types.height) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "width", bridging::toJs(rt, value.width, jsInvoker)); + result.setProperty(rt, "height", bridging::toJs(rt, value.height, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeImageLoaderAndroidCxxSpecJSI : public TurboModule { +protected: + NativeImageLoaderAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void abortRequest(jsi::Runtime &rt, double requestId) = 0; + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) = 0; + virtual jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) = 0; + virtual jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri, double requestId) = 0; + virtual jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) = 0; + +}; + +template +class JSI_EXPORT NativeImageLoaderAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ImageLoader"; + +protected: + NativeImageLoaderAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeImageLoaderAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeImageLoaderAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeImageLoaderAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void abortRequest(jsi::Runtime &rt, double requestId) override { + static_assert( + bridging::getParameterCount(&T::abortRequest) == 2, + "Expected abortRequest(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::abortRequest, jsInvoker_, instance_, std::move(requestId)); + } + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) override { + static_assert( + bridging::getParameterCount(&T::getSize) == 2, + "Expected getSize(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getSize, jsInvoker_, instance_, std::move(uri)); + } + jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) override { + static_assert( + bridging::getParameterCount(&T::getSizeWithHeaders) == 3, + "Expected getSizeWithHeaders(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getSizeWithHeaders, jsInvoker_, instance_, std::move(uri), std::move(headers)); + } + jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri, double requestId) override { + static_assert( + bridging::getParameterCount(&T::prefetchImage) == 3, + "Expected prefetchImage(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::prefetchImage, jsInvoker_, instance_, std::move(uri), std::move(requestId)); + } + jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) override { + static_assert( + bridging::getParameterCount(&T::queryCache) == 2, + "Expected queryCache(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::queryCache, jsInvoker_, instance_, std::move(uris)); + } + + private: + friend class NativeImageLoaderAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeImageLoaderIOSCxxSpecJSI : public TurboModule { +protected: + NativeImageLoaderIOSCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) = 0; + virtual jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) = 0; + virtual jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri) = 0; + virtual jsi::Value prefetchImageWithMetadata(jsi::Runtime &rt, jsi::String uri, jsi::String queryRootName, double rootTag) = 0; + virtual jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) = 0; + +}; + +template +class JSI_EXPORT NativeImageLoaderIOSCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ImageLoader"; + +protected: + NativeImageLoaderIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeImageLoaderIOSCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeImageLoaderIOSCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeImageLoaderIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + jsi::Value getSize(jsi::Runtime &rt, jsi::String uri) override { + static_assert( + bridging::getParameterCount(&T::getSize) == 2, + "Expected getSize(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getSize, jsInvoker_, instance_, std::move(uri)); + } + jsi::Value getSizeWithHeaders(jsi::Runtime &rt, jsi::String uri, jsi::Object headers) override { + static_assert( + bridging::getParameterCount(&T::getSizeWithHeaders) == 3, + "Expected getSizeWithHeaders(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getSizeWithHeaders, jsInvoker_, instance_, std::move(uri), std::move(headers)); + } + jsi::Value prefetchImage(jsi::Runtime &rt, jsi::String uri) override { + static_assert( + bridging::getParameterCount(&T::prefetchImage) == 2, + "Expected prefetchImage(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::prefetchImage, jsInvoker_, instance_, std::move(uri)); + } + jsi::Value prefetchImageWithMetadata(jsi::Runtime &rt, jsi::String uri, jsi::String queryRootName, double rootTag) override { + static_assert( + bridging::getParameterCount(&T::prefetchImageWithMetadata) == 4, + "Expected prefetchImageWithMetadata(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::prefetchImageWithMetadata, jsInvoker_, instance_, std::move(uri), std::move(queryRootName), std::move(rootTag)); + } + jsi::Value queryCache(jsi::Runtime &rt, jsi::Array uris) override { + static_assert( + bridging::getParameterCount(&T::queryCache) == 2, + "Expected queryCache(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::queryCache, jsInvoker_, instance_, std::move(uris)); + } + + private: + friend class NativeImageLoaderIOSCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeImageStoreAndroidCxxSpecJSI : public TurboModule { +protected: + NativeImageStoreAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) = 0; + +}; + +template +class JSI_EXPORT NativeImageStoreAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ImageStoreManager"; + +protected: + NativeImageStoreAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeImageStoreAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeImageStoreAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeImageStoreAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) override { + static_assert( + bridging::getParameterCount(&T::getBase64ForTag) == 4, + "Expected getBase64ForTag(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::getBase64ForTag, jsInvoker_, instance_, std::move(uri), std::move(successCallback), std::move(errorCallback)); + } + + private: + friend class NativeImageStoreAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeImageStoreIOSCxxSpecJSI : public TurboModule { +protected: + NativeImageStoreIOSCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) = 0; + virtual void hasImageForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function callback) = 0; + virtual void removeImageForTag(jsi::Runtime &rt, jsi::String uri) = 0; + virtual void addImageFromBase64(jsi::Runtime &rt, jsi::String base64ImageData, jsi::Function successCallback, jsi::Function errorCallback) = 0; + +}; + +template +class JSI_EXPORT NativeImageStoreIOSCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ImageStoreManager"; + +protected: + NativeImageStoreIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeImageStoreIOSCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeImageStoreIOSCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeImageStoreIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void getBase64ForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function successCallback, jsi::Function errorCallback) override { + static_assert( + bridging::getParameterCount(&T::getBase64ForTag) == 4, + "Expected getBase64ForTag(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::getBase64ForTag, jsInvoker_, instance_, std::move(uri), std::move(successCallback), std::move(errorCallback)); + } + void hasImageForTag(jsi::Runtime &rt, jsi::String uri, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::hasImageForTag) == 3, + "Expected hasImageForTag(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::hasImageForTag, jsInvoker_, instance_, std::move(uri), std::move(callback)); + } + void removeImageForTag(jsi::Runtime &rt, jsi::String uri) override { + static_assert( + bridging::getParameterCount(&T::removeImageForTag) == 2, + "Expected removeImageForTag(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeImageForTag, jsInvoker_, instance_, std::move(uri)); + } + void addImageFromBase64(jsi::Runtime &rt, jsi::String base64ImageData, jsi::Function successCallback, jsi::Function errorCallback) override { + static_assert( + bridging::getParameterCount(&T::addImageFromBase64) == 4, + "Expected addImageFromBase64(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::addImageFromBase64, jsInvoker_, instance_, std::move(base64ImageData), std::move(successCallback), std::move(errorCallback)); + } + + private: + friend class NativeImageStoreIOSCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeIntentAndroidCxxSpecJSI : public TurboModule { +protected: + NativeIntentAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Value getInitialURL(jsi::Runtime &rt) = 0; + virtual jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) = 0; + virtual jsi::Value openURL(jsi::Runtime &rt, jsi::String url) = 0; + virtual jsi::Value openSettings(jsi::Runtime &rt) = 0; + virtual jsi::Value sendIntent(jsi::Runtime &rt, jsi::String action, std::optional extras) = 0; + +}; + +template +class JSI_EXPORT NativeIntentAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "IntentAndroid"; + +protected: + NativeIntentAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeIntentAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeIntentAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeIntentAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Value getInitialURL(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getInitialURL) == 1, + "Expected getInitialURL(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getInitialURL, jsInvoker_, instance_); + } + jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) override { + static_assert( + bridging::getParameterCount(&T::canOpenURL) == 2, + "Expected canOpenURL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::canOpenURL, jsInvoker_, instance_, std::move(url)); + } + jsi::Value openURL(jsi::Runtime &rt, jsi::String url) override { + static_assert( + bridging::getParameterCount(&T::openURL) == 2, + "Expected openURL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::openURL, jsInvoker_, instance_, std::move(url)); + } + jsi::Value openSettings(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::openSettings) == 1, + "Expected openSettings(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::openSettings, jsInvoker_, instance_); + } + jsi::Value sendIntent(jsi::Runtime &rt, jsi::String action, std::optional extras) override { + static_assert( + bridging::getParameterCount(&T::sendIntent) == 3, + "Expected sendIntent(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::sendIntent, jsInvoker_, instance_, std::move(action), std::move(extras)); + } + + private: + friend class NativeIntentAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeJSCHeapCaptureCxxSpecJSI : public TurboModule { +protected: + NativeJSCHeapCaptureCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void captureComplete(jsi::Runtime &rt, jsi::String path, std::optional error) = 0; + +}; + +template +class JSI_EXPORT NativeJSCHeapCaptureCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "JSCHeapCapture"; + +protected: + NativeJSCHeapCaptureCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeJSCHeapCaptureCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeJSCHeapCaptureCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeJSCHeapCaptureCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void captureComplete(jsi::Runtime &rt, jsi::String path, std::optional error) override { + static_assert( + bridging::getParameterCount(&T::captureComplete) == 3, + "Expected captureComplete(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::captureComplete, jsInvoker_, instance_, std::move(path), std::move(error)); + } + + private: + friend class NativeJSCHeapCaptureCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeKeyboardObserverCxxSpecJSI : public TurboModule { +protected: + NativeKeyboardObserverCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeKeyboardObserverCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "KeyboardObserver"; + +protected: + NativeKeyboardObserverCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeKeyboardObserverCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeKeyboardObserverCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeKeyboardObserverCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeKeyboardObserverCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeLinkingManagerCxxSpecJSI : public TurboModule { +protected: + NativeLinkingManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Value getInitialURL(jsi::Runtime &rt) = 0; + virtual jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) = 0; + virtual jsi::Value openURL(jsi::Runtime &rt, jsi::String url) = 0; + virtual jsi::Value openSettings(jsi::Runtime &rt) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeLinkingManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "LinkingManager"; + +protected: + NativeLinkingManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeLinkingManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeLinkingManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeLinkingManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Value getInitialURL(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getInitialURL) == 1, + "Expected getInitialURL(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getInitialURL, jsInvoker_, instance_); + } + jsi::Value canOpenURL(jsi::Runtime &rt, jsi::String url) override { + static_assert( + bridging::getParameterCount(&T::canOpenURL) == 2, + "Expected canOpenURL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::canOpenURL, jsInvoker_, instance_, std::move(url)); + } + jsi::Value openURL(jsi::Runtime &rt, jsi::String url) override { + static_assert( + bridging::getParameterCount(&T::openURL) == 2, + "Expected openURL(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::openURL, jsInvoker_, instance_, std::move(url)); + } + jsi::Value openSettings(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::openSettings) == 1, + "Expected openSettings(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::openSettings, jsInvoker_, instance_); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeLinkingManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeLogBoxCxxSpecJSI : public TurboModule { +protected: + NativeLogBoxCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void show(jsi::Runtime &rt) = 0; + virtual void hide(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeLogBoxCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "LogBox"; + +protected: + NativeLogBoxCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeLogBoxCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeLogBoxCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeLogBoxCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void show(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::show) == 1, + "Expected show(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::show, jsInvoker_, instance_); + } + void hide(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::hide) == 1, + "Expected hide(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::hide, jsInvoker_, instance_); + } + + private: + friend class NativeLogBoxCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeModalManagerCxxSpecJSI : public TurboModule { +protected: + NativeModalManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeModalManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ModalManager"; + +protected: + NativeModalManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeModalManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeModalManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeModalManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeModalManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeNetworkingAndroidCxxSpecJSI : public TurboModule { +protected: + NativeNetworkingAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void sendRequest(jsi::Runtime &rt, jsi::String method, jsi::String url, double requestId, jsi::Array headers, jsi::Object data, jsi::String responseType, bool useIncrementalUpdates, double timeout, bool withCredentials) = 0; + virtual void abortRequest(jsi::Runtime &rt, double requestId) = 0; + virtual void clearCookies(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeNetworkingAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "Networking"; + +protected: + NativeNetworkingAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeNetworkingAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeNetworkingAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeNetworkingAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void sendRequest(jsi::Runtime &rt, jsi::String method, jsi::String url, double requestId, jsi::Array headers, jsi::Object data, jsi::String responseType, bool useIncrementalUpdates, double timeout, bool withCredentials) override { + static_assert( + bridging::getParameterCount(&T::sendRequest) == 10, + "Expected sendRequest(...) to have 10 parameters"); + + return bridging::callFromJs( + rt, &T::sendRequest, jsInvoker_, instance_, std::move(method), std::move(url), std::move(requestId), std::move(headers), std::move(data), std::move(responseType), std::move(useIncrementalUpdates), std::move(timeout), std::move(withCredentials)); + } + void abortRequest(jsi::Runtime &rt, double requestId) override { + static_assert( + bridging::getParameterCount(&T::abortRequest) == 2, + "Expected abortRequest(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::abortRequest, jsInvoker_, instance_, std::move(requestId)); + } + void clearCookies(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::clearCookies) == 2, + "Expected clearCookies(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::clearCookies, jsInvoker_, instance_, std::move(callback)); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeNetworkingAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeNetworkingIOSCxxSpecJSI : public TurboModule { +protected: + NativeNetworkingIOSCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void sendRequest(jsi::Runtime &rt, jsi::Object query, jsi::Function callback) = 0; + virtual void abortRequest(jsi::Runtime &rt, double requestId) = 0; + virtual void clearCookies(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeNetworkingIOSCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "Networking"; + +protected: + NativeNetworkingIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeNetworkingIOSCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeNetworkingIOSCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeNetworkingIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void sendRequest(jsi::Runtime &rt, jsi::Object query, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::sendRequest) == 3, + "Expected sendRequest(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::sendRequest, jsInvoker_, instance_, std::move(query), std::move(callback)); + } + void abortRequest(jsi::Runtime &rt, double requestId) override { + static_assert( + bridging::getParameterCount(&T::abortRequest) == 2, + "Expected abortRequest(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::abortRequest, jsInvoker_, instance_, std::move(requestId)); + } + void clearCookies(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::clearCookies) == 2, + "Expected clearCookies(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::clearCookies, jsInvoker_, instance_, std::move(callback)); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeNetworkingIOSCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativePermissionsAndroidCxxSpecJSI : public TurboModule { +protected: + NativePermissionsAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Value checkPermission(jsi::Runtime &rt, jsi::String permission) = 0; + virtual jsi::Value requestPermission(jsi::Runtime &rt, jsi::String permission) = 0; + virtual jsi::Value shouldShowRequestPermissionRationale(jsi::Runtime &rt, jsi::String permission) = 0; + virtual jsi::Value requestMultiplePermissions(jsi::Runtime &rt, jsi::Array permissions) = 0; + +}; + +template +class JSI_EXPORT NativePermissionsAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "PermissionsAndroid"; + +protected: + NativePermissionsAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativePermissionsAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativePermissionsAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePermissionsAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Value checkPermission(jsi::Runtime &rt, jsi::String permission) override { + static_assert( + bridging::getParameterCount(&T::checkPermission) == 2, + "Expected checkPermission(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::checkPermission, jsInvoker_, instance_, std::move(permission)); + } + jsi::Value requestPermission(jsi::Runtime &rt, jsi::String permission) override { + static_assert( + bridging::getParameterCount(&T::requestPermission) == 2, + "Expected requestPermission(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::requestPermission, jsInvoker_, instance_, std::move(permission)); + } + jsi::Value shouldShowRequestPermissionRationale(jsi::Runtime &rt, jsi::String permission) override { + static_assert( + bridging::getParameterCount(&T::shouldShowRequestPermissionRationale) == 2, + "Expected shouldShowRequestPermissionRationale(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::shouldShowRequestPermissionRationale, jsInvoker_, instance_, std::move(permission)); + } + jsi::Value requestMultiplePermissions(jsi::Runtime &rt, jsi::Array permissions) override { + static_assert( + bridging::getParameterCount(&T::requestMultiplePermissions) == 2, + "Expected requestMultiplePermissions(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::requestMultiplePermissions, jsInvoker_, instance_, std::move(permissions)); + } + + private: + friend class NativePermissionsAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativePlatformConstantsAndroidPlatformConstantsAndroid + +template +struct NativePlatformConstantsAndroidPlatformConstantsAndroid { + P0 isTesting; + P1 isDisableAnimations; + P2 reactNativeVersion; + P3 Version; + P4 Release; + P5 Serial; + P6 Fingerprint; + P7 Model; + P8 ServerHost; + P9 uiMode; + P10 Brand; + P11 Manufacturer; + bool operator==(const NativePlatformConstantsAndroidPlatformConstantsAndroid &other) const { + return isTesting == other.isTesting && isDisableAnimations == other.isDisableAnimations && reactNativeVersion == other.reactNativeVersion && Version == other.Version && Release == other.Release && Serial == other.Serial && Fingerprint == other.Fingerprint && Model == other.Model && ServerHost == other.ServerHost && uiMode == other.uiMode && Brand == other.Brand && Manufacturer == other.Manufacturer; + } +}; + +template +struct NativePlatformConstantsAndroidPlatformConstantsAndroidBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "isTesting"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isDisableAnimations"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "reactNativeVersion"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "Version"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "Release"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "Serial"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "Fingerprint"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "Model"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "ServerHost"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "uiMode"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "Brand"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "Manufacturer"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool isTestingToJs(jsi::Runtime &rt, decltype(types.isTesting) value) { + return bridging::toJs(rt, value); + } + + static bool isDisableAnimationsToJs(jsi::Runtime &rt, decltype(types.isDisableAnimations) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object reactNativeVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeVersion) value) { + return bridging::toJs(rt, value); + } + + static double VersionToJs(jsi::Runtime &rt, decltype(types.Version) value) { + return bridging::toJs(rt, value); + } + + static jsi::String ReleaseToJs(jsi::Runtime &rt, decltype(types.Release) value) { + return bridging::toJs(rt, value); + } + + static jsi::String SerialToJs(jsi::Runtime &rt, decltype(types.Serial) value) { + return bridging::toJs(rt, value); + } + + static jsi::String FingerprintToJs(jsi::Runtime &rt, decltype(types.Fingerprint) value) { + return bridging::toJs(rt, value); + } + + static jsi::String ModelToJs(jsi::Runtime &rt, decltype(types.Model) value) { + return bridging::toJs(rt, value); + } + + static jsi::String ServerHostToJs(jsi::Runtime &rt, decltype(types.ServerHost) value) { + return bridging::toJs(rt, value); + } + + static jsi::String uiModeToJs(jsi::Runtime &rt, decltype(types.uiMode) value) { + return bridging::toJs(rt, value); + } + + static jsi::String BrandToJs(jsi::Runtime &rt, decltype(types.Brand) value) { + return bridging::toJs(rt, value); + } + + static jsi::String ManufacturerToJs(jsi::Runtime &rt, decltype(types.Manufacturer) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "isTesting", bridging::toJs(rt, value.isTesting, jsInvoker)); + if (value.isDisableAnimations) { + result.setProperty(rt, "isDisableAnimations", bridging::toJs(rt, value.isDisableAnimations.value(), jsInvoker)); + } + result.setProperty(rt, "reactNativeVersion", bridging::toJs(rt, value.reactNativeVersion, jsInvoker)); + result.setProperty(rt, "Version", bridging::toJs(rt, value.Version, jsInvoker)); + result.setProperty(rt, "Release", bridging::toJs(rt, value.Release, jsInvoker)); + result.setProperty(rt, "Serial", bridging::toJs(rt, value.Serial, jsInvoker)); + result.setProperty(rt, "Fingerprint", bridging::toJs(rt, value.Fingerprint, jsInvoker)); + result.setProperty(rt, "Model", bridging::toJs(rt, value.Model, jsInvoker)); + if (value.ServerHost) { + result.setProperty(rt, "ServerHost", bridging::toJs(rt, value.ServerHost.value(), jsInvoker)); + } + result.setProperty(rt, "uiMode", bridging::toJs(rt, value.uiMode, jsInvoker)); + result.setProperty(rt, "Brand", bridging::toJs(rt, value.Brand, jsInvoker)); + result.setProperty(rt, "Manufacturer", bridging::toJs(rt, value.Manufacturer, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativePlatformConstantsAndroidReactNativeVersionAndroid + +template +struct NativePlatformConstantsAndroidReactNativeVersionAndroid { + P0 major; + P1 minor; + P2 patch; + P3 prerelease; + bool operator==(const NativePlatformConstantsAndroidReactNativeVersionAndroid &other) const { + return major == other.major && minor == other.minor && patch == other.patch && prerelease == other.prerelease; + } +}; + +template +struct NativePlatformConstantsAndroidReactNativeVersionAndroidBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "major"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "minor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "patch"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "prerelease"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double majorToJs(jsi::Runtime &rt, decltype(types.major) value) { + return bridging::toJs(rt, value); + } + + static double minorToJs(jsi::Runtime &rt, decltype(types.minor) value) { + return bridging::toJs(rt, value); + } + + static double patchToJs(jsi::Runtime &rt, decltype(types.patch) value) { + return bridging::toJs(rt, value); + } + + static std::optional prereleaseToJs(jsi::Runtime &rt, decltype(types.prerelease) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "major", bridging::toJs(rt, value.major, jsInvoker)); + result.setProperty(rt, "minor", bridging::toJs(rt, value.minor, jsInvoker)); + result.setProperty(rt, "patch", bridging::toJs(rt, value.patch, jsInvoker)); + result.setProperty(rt, "prerelease", bridging::toJs(rt, value.prerelease, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativePlatformConstantsAndroidCxxSpecJSI : public TurboModule { +protected: + NativePlatformConstantsAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual jsi::String getAndroidID(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativePlatformConstantsAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "PlatformConstants"; + +protected: + NativePlatformConstantsAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativePlatformConstantsAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativePlatformConstantsAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePlatformConstantsAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + jsi::String getAndroidID(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getAndroidID) == 1, + "Expected getAndroidID(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getAndroidID, jsInvoker_, instance_); + } + + private: + friend class NativePlatformConstantsAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativePlatformConstantsIOSPlatformConstantsIOS + +template +struct NativePlatformConstantsIOSPlatformConstantsIOS { + P0 isTesting; + P1 isDisableAnimations; + P2 reactNativeVersion; + P3 forceTouchAvailable; + P4 osVersion; + P5 systemName; + P6 interfaceIdiom; + P7 isMacCatalyst; + bool operator==(const NativePlatformConstantsIOSPlatformConstantsIOS &other) const { + return isTesting == other.isTesting && isDisableAnimations == other.isDisableAnimations && reactNativeVersion == other.reactNativeVersion && forceTouchAvailable == other.forceTouchAvailable && osVersion == other.osVersion && systemName == other.systemName && interfaceIdiom == other.interfaceIdiom && isMacCatalyst == other.isMacCatalyst; + } +}; + +template +struct NativePlatformConstantsIOSPlatformConstantsIOSBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "isTesting"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isDisableAnimations"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "reactNativeVersion"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "forceTouchAvailable"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "osVersion"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "systemName"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "interfaceIdiom"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isMacCatalyst"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool isTestingToJs(jsi::Runtime &rt, decltype(types.isTesting) value) { + return bridging::toJs(rt, value); + } + + static bool isDisableAnimationsToJs(jsi::Runtime &rt, decltype(types.isDisableAnimations) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object reactNativeVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeVersion) value) { + return bridging::toJs(rt, value); + } + + static bool forceTouchAvailableToJs(jsi::Runtime &rt, decltype(types.forceTouchAvailable) value) { + return bridging::toJs(rt, value); + } + + static jsi::String osVersionToJs(jsi::Runtime &rt, decltype(types.osVersion) value) { + return bridging::toJs(rt, value); + } + + static jsi::String systemNameToJs(jsi::Runtime &rt, decltype(types.systemName) value) { + return bridging::toJs(rt, value); + } + + static jsi::String interfaceIdiomToJs(jsi::Runtime &rt, decltype(types.interfaceIdiom) value) { + return bridging::toJs(rt, value); + } + + static bool isMacCatalystToJs(jsi::Runtime &rt, decltype(types.isMacCatalyst) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "isTesting", bridging::toJs(rt, value.isTesting, jsInvoker)); + if (value.isDisableAnimations) { + result.setProperty(rt, "isDisableAnimations", bridging::toJs(rt, value.isDisableAnimations.value(), jsInvoker)); + } + result.setProperty(rt, "reactNativeVersion", bridging::toJs(rt, value.reactNativeVersion, jsInvoker)); + result.setProperty(rt, "forceTouchAvailable", bridging::toJs(rt, value.forceTouchAvailable, jsInvoker)); + result.setProperty(rt, "osVersion", bridging::toJs(rt, value.osVersion, jsInvoker)); + result.setProperty(rt, "systemName", bridging::toJs(rt, value.systemName, jsInvoker)); + result.setProperty(rt, "interfaceIdiom", bridging::toJs(rt, value.interfaceIdiom, jsInvoker)); + if (value.isMacCatalyst) { + result.setProperty(rt, "isMacCatalyst", bridging::toJs(rt, value.isMacCatalyst.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativePlatformConstantsIOSCxxSpecJSI : public TurboModule { +protected: + NativePlatformConstantsIOSCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativePlatformConstantsIOSCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "PlatformConstants"; + +protected: + NativePlatformConstantsIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativePlatformConstantsIOSCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativePlatformConstantsIOSCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePlatformConstantsIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + + private: + friend class NativePlatformConstantsIOSCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativePlatformConstantsWindowsPlatformConstantsWindows + +template +struct NativePlatformConstantsWindowsPlatformConstantsWindows { + P0 isTesting; + P1 isDisableAnimations; + P2 reactNativeVersion; + P3 reactNativeWindowsVersion; + P4 osVersion; + bool operator==(const NativePlatformConstantsWindowsPlatformConstantsWindows &other) const { + return isTesting == other.isTesting && isDisableAnimations == other.isDisableAnimations && reactNativeVersion == other.reactNativeVersion && reactNativeWindowsVersion == other.reactNativeWindowsVersion && osVersion == other.osVersion; + } +}; + +template +struct NativePlatformConstantsWindowsPlatformConstantsWindowsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "isTesting"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isDisableAnimations"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "reactNativeVersion"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "reactNativeWindowsVersion"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "osVersion"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool isTestingToJs(jsi::Runtime &rt, decltype(types.isTesting) value) { + return bridging::toJs(rt, value); + } + + static bool isDisableAnimationsToJs(jsi::Runtime &rt, decltype(types.isDisableAnimations) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object reactNativeVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeVersion) value) { + return bridging::toJs(rt, value); + } + + static jsi::Object reactNativeWindowsVersionToJs(jsi::Runtime &rt, decltype(types.reactNativeWindowsVersion) value) { + return bridging::toJs(rt, value); + } + + static double osVersionToJs(jsi::Runtime &rt, decltype(types.osVersion) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "isTesting", bridging::toJs(rt, value.isTesting, jsInvoker)); + if (value.isDisableAnimations) { + result.setProperty(rt, "isDisableAnimations", bridging::toJs(rt, value.isDisableAnimations.value(), jsInvoker)); + } + result.setProperty(rt, "reactNativeVersion", bridging::toJs(rt, value.reactNativeVersion, jsInvoker)); + result.setProperty(rt, "reactNativeWindowsVersion", bridging::toJs(rt, value.reactNativeWindowsVersion, jsInvoker)); + result.setProperty(rt, "osVersion", bridging::toJs(rt, value.osVersion, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativePlatformConstantsWindowsReactNativeVersionAndroid + +template +struct NativePlatformConstantsWindowsReactNativeVersionAndroid { + P0 major; + P1 minor; + P2 patch; + P3 prerelease; + bool operator==(const NativePlatformConstantsWindowsReactNativeVersionAndroid &other) const { + return major == other.major && minor == other.minor && patch == other.patch && prerelease == other.prerelease; + } +}; + +template +struct NativePlatformConstantsWindowsReactNativeVersionAndroidBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "major"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "minor"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "patch"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "prerelease"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double majorToJs(jsi::Runtime &rt, decltype(types.major) value) { + return bridging::toJs(rt, value); + } + + static double minorToJs(jsi::Runtime &rt, decltype(types.minor) value) { + return bridging::toJs(rt, value); + } + + static double patchToJs(jsi::Runtime &rt, decltype(types.patch) value) { + return bridging::toJs(rt, value); + } + + static std::optional prereleaseToJs(jsi::Runtime &rt, decltype(types.prerelease) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "major", bridging::toJs(rt, value.major, jsInvoker)); + result.setProperty(rt, "minor", bridging::toJs(rt, value.minor, jsInvoker)); + result.setProperty(rt, "patch", bridging::toJs(rt, value.patch, jsInvoker)); + result.setProperty(rt, "prerelease", bridging::toJs(rt, value.prerelease, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativePlatformConstantsWindowsCxxSpecJSI : public TurboModule { +protected: + NativePlatformConstantsWindowsCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativePlatformConstantsWindowsCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "PlatformConstants"; + +protected: + NativePlatformConstantsWindowsCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativePlatformConstantsWindowsCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativePlatformConstantsWindowsCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePlatformConstantsWindowsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + + private: + friend class NativePlatformConstantsWindowsCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativePushNotificationManagerIOSNotification + +template +struct NativePushNotificationManagerIOSNotification { + P0 alertTitle; + P1 alertBody; + P2 userInfo; + P3 category; + P4 fireDate; + P5 fireIntervalSeconds; + P6 applicationIconBadgeNumber; + P7 isSilent; + P8 soundName; + bool operator==(const NativePushNotificationManagerIOSNotification &other) const { + return alertTitle == other.alertTitle && alertBody == other.alertBody && userInfo == other.userInfo && category == other.category && fireDate == other.fireDate && fireIntervalSeconds == other.fireIntervalSeconds && applicationIconBadgeNumber == other.applicationIconBadgeNumber && isSilent == other.isSilent && soundName == other.soundName; + } +}; + +template +struct NativePushNotificationManagerIOSNotificationBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "alertTitle"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "alertBody"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "userInfo"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "category"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "fireDate"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "fireIntervalSeconds"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "applicationIconBadgeNumber"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isSilent"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "soundName"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static std::optional alertTitleToJs(jsi::Runtime &rt, decltype(types.alertTitle) value) { + return bridging::toJs(rt, value); + } + + static std::optional alertBodyToJs(jsi::Runtime &rt, decltype(types.alertBody) value) { + return bridging::toJs(rt, value); + } + + static std::optional userInfoToJs(jsi::Runtime &rt, decltype(types.userInfo) value) { + return bridging::toJs(rt, value); + } + + static std::optional categoryToJs(jsi::Runtime &rt, decltype(types.category) value) { + return bridging::toJs(rt, value); + } + + static std::optional fireDateToJs(jsi::Runtime &rt, decltype(types.fireDate) value) { + return bridging::toJs(rt, value); + } + + static std::optional fireIntervalSecondsToJs(jsi::Runtime &rt, decltype(types.fireIntervalSeconds) value) { + return bridging::toJs(rt, value); + } + + static std::optional applicationIconBadgeNumberToJs(jsi::Runtime &rt, decltype(types.applicationIconBadgeNumber) value) { + return bridging::toJs(rt, value); + } + + static std::optional isSilentToJs(jsi::Runtime &rt, decltype(types.isSilent) value) { + return bridging::toJs(rt, value); + } + + static std::optional soundNameToJs(jsi::Runtime &rt, decltype(types.soundName) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.alertTitle) { + result.setProperty(rt, "alertTitle", bridging::toJs(rt, value.alertTitle.value(), jsInvoker)); + } + if (value.alertBody) { + result.setProperty(rt, "alertBody", bridging::toJs(rt, value.alertBody.value(), jsInvoker)); + } + if (value.userInfo) { + result.setProperty(rt, "userInfo", bridging::toJs(rt, value.userInfo.value(), jsInvoker)); + } + if (value.category) { + result.setProperty(rt, "category", bridging::toJs(rt, value.category.value(), jsInvoker)); + } + if (value.fireDate) { + result.setProperty(rt, "fireDate", bridging::toJs(rt, value.fireDate.value(), jsInvoker)); + } + if (value.fireIntervalSeconds) { + result.setProperty(rt, "fireIntervalSeconds", bridging::toJs(rt, value.fireIntervalSeconds.value(), jsInvoker)); + } + if (value.applicationIconBadgeNumber) { + result.setProperty(rt, "applicationIconBadgeNumber", bridging::toJs(rt, value.applicationIconBadgeNumber.value(), jsInvoker)); + } + if (value.isSilent) { + result.setProperty(rt, "isSilent", bridging::toJs(rt, value.isSilent.value(), jsInvoker)); + } + if (value.soundName) { + result.setProperty(rt, "soundName", bridging::toJs(rt, value.soundName.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativePushNotificationManagerIOSPermissions + +template +struct NativePushNotificationManagerIOSPermissions { + P0 alert; + P1 badge; + P2 sound; + bool operator==(const NativePushNotificationManagerIOSPermissions &other) const { + return alert == other.alert && badge == other.badge && sound == other.sound; + } +}; + +template +struct NativePushNotificationManagerIOSPermissionsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "alert"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "badge"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "sound"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool alertToJs(jsi::Runtime &rt, decltype(types.alert) value) { + return bridging::toJs(rt, value); + } + + static bool badgeToJs(jsi::Runtime &rt, decltype(types.badge) value) { + return bridging::toJs(rt, value); + } + + static bool soundToJs(jsi::Runtime &rt, decltype(types.sound) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "alert", bridging::toJs(rt, value.alert, jsInvoker)); + result.setProperty(rt, "badge", bridging::toJs(rt, value.badge, jsInvoker)); + result.setProperty(rt, "sound", bridging::toJs(rt, value.sound, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativePushNotificationManagerIOSCxxSpecJSI : public TurboModule { +protected: + NativePushNotificationManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void onFinishRemoteNotification(jsi::Runtime &rt, jsi::String notificationId, jsi::String fetchResult) = 0; + virtual void setApplicationIconBadgeNumber(jsi::Runtime &rt, double num) = 0; + virtual void getApplicationIconBadgeNumber(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual jsi::Value requestPermissions(jsi::Runtime &rt, jsi::Object permission) = 0; + virtual void abandonPermissions(jsi::Runtime &rt) = 0; + virtual void checkPermissions(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual void presentLocalNotification(jsi::Runtime &rt, jsi::Object notification) = 0; + virtual void scheduleLocalNotification(jsi::Runtime &rt, jsi::Object notification) = 0; + virtual void cancelAllLocalNotifications(jsi::Runtime &rt) = 0; + virtual void cancelLocalNotifications(jsi::Runtime &rt, jsi::Object userInfo) = 0; + virtual jsi::Value getInitialNotification(jsi::Runtime &rt) = 0; + virtual void getScheduledLocalNotifications(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual void removeAllDeliveredNotifications(jsi::Runtime &rt) = 0; + virtual void removeDeliveredNotifications(jsi::Runtime &rt, jsi::Array identifiers) = 0; + virtual void getDeliveredNotifications(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual void getAuthorizationStatus(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventType) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativePushNotificationManagerIOSCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "PushNotificationManager"; + +protected: + NativePushNotificationManagerIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativePushNotificationManagerIOSCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativePushNotificationManagerIOSCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePushNotificationManagerIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void onFinishRemoteNotification(jsi::Runtime &rt, jsi::String notificationId, jsi::String fetchResult) override { + static_assert( + bridging::getParameterCount(&T::onFinishRemoteNotification) == 3, + "Expected onFinishRemoteNotification(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::onFinishRemoteNotification, jsInvoker_, instance_, std::move(notificationId), std::move(fetchResult)); + } + void setApplicationIconBadgeNumber(jsi::Runtime &rt, double num) override { + static_assert( + bridging::getParameterCount(&T::setApplicationIconBadgeNumber) == 2, + "Expected setApplicationIconBadgeNumber(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setApplicationIconBadgeNumber, jsInvoker_, instance_, std::move(num)); + } + void getApplicationIconBadgeNumber(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::getApplicationIconBadgeNumber) == 2, + "Expected getApplicationIconBadgeNumber(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getApplicationIconBadgeNumber, jsInvoker_, instance_, std::move(callback)); + } + jsi::Value requestPermissions(jsi::Runtime &rt, jsi::Object permission) override { + static_assert( + bridging::getParameterCount(&T::requestPermissions) == 2, + "Expected requestPermissions(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::requestPermissions, jsInvoker_, instance_, std::move(permission)); + } + void abandonPermissions(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::abandonPermissions) == 1, + "Expected abandonPermissions(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::abandonPermissions, jsInvoker_, instance_); + } + void checkPermissions(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::checkPermissions) == 2, + "Expected checkPermissions(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::checkPermissions, jsInvoker_, instance_, std::move(callback)); + } + void presentLocalNotification(jsi::Runtime &rt, jsi::Object notification) override { + static_assert( + bridging::getParameterCount(&T::presentLocalNotification) == 2, + "Expected presentLocalNotification(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::presentLocalNotification, jsInvoker_, instance_, std::move(notification)); + } + void scheduleLocalNotification(jsi::Runtime &rt, jsi::Object notification) override { + static_assert( + bridging::getParameterCount(&T::scheduleLocalNotification) == 2, + "Expected scheduleLocalNotification(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::scheduleLocalNotification, jsInvoker_, instance_, std::move(notification)); + } + void cancelAllLocalNotifications(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::cancelAllLocalNotifications) == 1, + "Expected cancelAllLocalNotifications(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::cancelAllLocalNotifications, jsInvoker_, instance_); + } + void cancelLocalNotifications(jsi::Runtime &rt, jsi::Object userInfo) override { + static_assert( + bridging::getParameterCount(&T::cancelLocalNotifications) == 2, + "Expected cancelLocalNotifications(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::cancelLocalNotifications, jsInvoker_, instance_, std::move(userInfo)); + } + jsi::Value getInitialNotification(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getInitialNotification) == 1, + "Expected getInitialNotification(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getInitialNotification, jsInvoker_, instance_); + } + void getScheduledLocalNotifications(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::getScheduledLocalNotifications) == 2, + "Expected getScheduledLocalNotifications(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getScheduledLocalNotifications, jsInvoker_, instance_, std::move(callback)); + } + void removeAllDeliveredNotifications(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::removeAllDeliveredNotifications) == 1, + "Expected removeAllDeliveredNotifications(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::removeAllDeliveredNotifications, jsInvoker_, instance_); + } + void removeDeliveredNotifications(jsi::Runtime &rt, jsi::Array identifiers) override { + static_assert( + bridging::getParameterCount(&T::removeDeliveredNotifications) == 2, + "Expected removeDeliveredNotifications(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeDeliveredNotifications, jsInvoker_, instance_, std::move(identifiers)); + } + void getDeliveredNotifications(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::getDeliveredNotifications) == 2, + "Expected getDeliveredNotifications(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getDeliveredNotifications, jsInvoker_, instance_, std::move(callback)); + } + void getAuthorizationStatus(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::getAuthorizationStatus) == 2, + "Expected getAuthorizationStatus(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getAuthorizationStatus, jsInvoker_, instance_, std::move(callback)); + } + void addListener(jsi::Runtime &rt, jsi::String eventType) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventType)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativePushNotificationManagerIOSCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeRedBoxCxxSpecJSI : public TurboModule { +protected: + NativeRedBoxCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void setExtraData(jsi::Runtime &rt, jsi::Object extraData, jsi::String forIdentifier) = 0; + virtual void dismiss(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeRedBoxCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "RedBox"; + +protected: + NativeRedBoxCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeRedBoxCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeRedBoxCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeRedBoxCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void setExtraData(jsi::Runtime &rt, jsi::Object extraData, jsi::String forIdentifier) override { + static_assert( + bridging::getParameterCount(&T::setExtraData) == 3, + "Expected setExtraData(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setExtraData, jsInvoker_, instance_, std::move(extraData), std::move(forIdentifier)); + } + void dismiss(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::dismiss) == 1, + "Expected dismiss(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::dismiss, jsInvoker_, instance_); + } + + private: + friend class NativeRedBoxCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + +#pragma mark - NativeSampleTurboModuleEnumInt + +enum class NativeSampleTurboModuleEnumInt { A, B }; + +template <> +struct Bridging { + static NativeSampleTurboModuleEnumInt fromJs(jsi::Runtime &rt, const jsi::Value &rawValue) { + double value = (double)rawValue.asNumber(); + if (value == 23) { + return NativeSampleTurboModuleEnumInt::A; + } else if (value == 42) { + return NativeSampleTurboModuleEnumInt::B; + } else { + throw jsi::JSError(rt, "No appropriate enum member found for value in NativeSampleTurboModuleEnumInt"); + } + } + + static jsi::Value toJs(jsi::Runtime &rt, NativeSampleTurboModuleEnumInt value) { + if (value == NativeSampleTurboModuleEnumInt::A) { + return bridging::toJs(rt, 23); + } else if (value == NativeSampleTurboModuleEnumInt::B) { + return bridging::toJs(rt, 42); + } else { + throw jsi::JSError(rt, "No appropriate enum member found for enum value in NativeSampleTurboModuleEnumInt"); + } + } +}; + +#pragma mark - NativeSampleTurboModuleObjectStruct + +template +struct NativeSampleTurboModuleObjectStruct { + P0 a; + P1 b; + P2 c; + bool operator==(const NativeSampleTurboModuleObjectStruct &other) const { + return a == other.a && b == other.b && c == other.c; + } +}; + +template +struct NativeSampleTurboModuleObjectStructBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "a"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "b"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "c"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double aToJs(jsi::Runtime &rt, decltype(types.a) value) { + return bridging::toJs(rt, value); + } + + static jsi::String bToJs(jsi::Runtime &rt, decltype(types.b) value) { + return bridging::toJs(rt, value); + } + + static std::optional cToJs(jsi::Runtime &rt, decltype(types.c) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "a", bridging::toJs(rt, value.a, jsInvoker)); + result.setProperty(rt, "b", bridging::toJs(rt, value.b, jsInvoker)); + if (value.c) { + result.setProperty(rt, "c", bridging::toJs(rt, value.c.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeSampleTurboModuleCxxSpecJSI : public TurboModule { +protected: + NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void voidFunc(jsi::Runtime &rt) = 0; + virtual bool getBool(jsi::Runtime &rt, bool arg) = 0; + virtual jsi::Value getEnum(jsi::Runtime &rt, jsi::Value arg) = 0; + virtual double getNumber(jsi::Runtime &rt, double arg) = 0; + virtual jsi::String getString(jsi::Runtime &rt, jsi::String arg) = 0; + virtual jsi::Array getArray(jsi::Runtime &rt, jsi::Array arg) = 0; + virtual jsi::Object getObject(jsi::Runtime &rt, jsi::Object arg) = 0; + virtual jsi::Object getUnsafeObject(jsi::Runtime &rt, jsi::Object arg) = 0; + virtual double getRootTag(jsi::Runtime &rt, double arg) = 0; + virtual jsi::Object getValue(jsi::Runtime &rt, double x, jsi::String y, jsi::Object z) = 0; + virtual void getValueWithCallback(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual jsi::Value getValueWithPromise(jsi::Runtime &rt, bool error) = 0; + virtual void voidFuncThrows(jsi::Runtime &rt) = 0; + virtual jsi::Object getObjectThrows(jsi::Runtime &rt, jsi::Object arg) = 0; + virtual jsi::Value promiseThrows(jsi::Runtime &rt) = 0; + virtual void voidFuncAssert(jsi::Runtime &rt) = 0; + virtual jsi::Object getObjectAssert(jsi::Runtime &rt, jsi::Object arg) = 0; + virtual jsi::Value promiseAssert(jsi::Runtime &rt) = 0; + virtual jsi::Value getImageUrl(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeSampleTurboModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "SampleTurboModule"; + +protected: + NativeSampleTurboModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeSampleTurboModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + void emitOnPress() { + static_cast&>(*delegate_.eventEmitterMap_["onPress"]).emit(); + } + + template void emitOnClick(OnClickType value) { + static_assert(bridging::supportsFromJs, "value cannnot be converted to jsi::String"); + static_cast&>(*delegate_.eventEmitterMap_["onClick"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value { + return bridging::toJs(rt, eventValue, jsInvoker); + }); + } + + template void emitOnChange(OnChangeType value) { + static_assert(bridging::supportsFromJs, "value cannnot be converted to jsi::Object"); + static_cast&>(*delegate_.eventEmitterMap_["onChange"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value { + return bridging::toJs(rt, eventValue, jsInvoker); + }); + } + + template void emitOnSubmit(std::vector value) { + static_assert(bridging::supportsFromJs, jsi::Array>, "value cannnot be converted to jsi::Array"); + static_cast&>(*delegate_.eventEmitterMap_["onSubmit"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value { + return bridging::toJs(rt, eventValue, jsInvoker); + }); + } + +private: + class Delegate : public NativeSampleTurboModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeSampleTurboModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + eventEmitterMap_["onPress"] = std::make_shared>(); + eventEmitterMap_["onClick"] = std::make_shared>(); + eventEmitterMap_["onChange"] = std::make_shared>(); + eventEmitterMap_["onSubmit"] = std::make_shared>(); + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void voidFunc(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::voidFunc) == 1, + "Expected voidFunc(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::voidFunc, jsInvoker_, instance_); + } + bool getBool(jsi::Runtime &rt, bool arg) override { + static_assert( + bridging::getParameterCount(&T::getBool) == 2, + "Expected getBool(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getBool, jsInvoker_, instance_, std::move(arg)); + } + jsi::Value getEnum(jsi::Runtime &rt, jsi::Value arg) override { + static_assert( + bridging::getParameterCount(&T::getEnum) == 2, + "Expected getEnum(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getEnum, jsInvoker_, instance_, std::move(arg)); + } + double getNumber(jsi::Runtime &rt, double arg) override { + static_assert( + bridging::getParameterCount(&T::getNumber) == 2, + "Expected getNumber(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getNumber, jsInvoker_, instance_, std::move(arg)); + } + jsi::String getString(jsi::Runtime &rt, jsi::String arg) override { + static_assert( + bridging::getParameterCount(&T::getString) == 2, + "Expected getString(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getString, jsInvoker_, instance_, std::move(arg)); + } + jsi::Array getArray(jsi::Runtime &rt, jsi::Array arg) override { + static_assert( + bridging::getParameterCount(&T::getArray) == 2, + "Expected getArray(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getArray, jsInvoker_, instance_, std::move(arg)); + } + jsi::Object getObject(jsi::Runtime &rt, jsi::Object arg) override { + static_assert( + bridging::getParameterCount(&T::getObject) == 2, + "Expected getObject(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getObject, jsInvoker_, instance_, std::move(arg)); + } + jsi::Object getUnsafeObject(jsi::Runtime &rt, jsi::Object arg) override { + static_assert( + bridging::getParameterCount(&T::getUnsafeObject) == 2, + "Expected getUnsafeObject(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getUnsafeObject, jsInvoker_, instance_, std::move(arg)); + } + double getRootTag(jsi::Runtime &rt, double arg) override { + static_assert( + bridging::getParameterCount(&T::getRootTag) == 2, + "Expected getRootTag(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getRootTag, jsInvoker_, instance_, std::move(arg)); + } + jsi::Object getValue(jsi::Runtime &rt, double x, jsi::String y, jsi::Object z) override { + static_assert( + bridging::getParameterCount(&T::getValue) == 4, + "Expected getValue(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::getValue, jsInvoker_, instance_, std::move(x), std::move(y), std::move(z)); + } + void getValueWithCallback(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::getValueWithCallback) == 2, + "Expected getValueWithCallback(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getValueWithCallback, jsInvoker_, instance_, std::move(callback)); + } + jsi::Value getValueWithPromise(jsi::Runtime &rt, bool error) override { + static_assert( + bridging::getParameterCount(&T::getValueWithPromise) == 2, + "Expected getValueWithPromise(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getValueWithPromise, jsInvoker_, instance_, std::move(error)); + } + void voidFuncThrows(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::voidFuncThrows) == 1, + "Expected voidFuncThrows(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::voidFuncThrows, jsInvoker_, instance_); + } + jsi::Object getObjectThrows(jsi::Runtime &rt, jsi::Object arg) override { + static_assert( + bridging::getParameterCount(&T::getObjectThrows) == 2, + "Expected getObjectThrows(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getObjectThrows, jsInvoker_, instance_, std::move(arg)); + } + jsi::Value promiseThrows(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::promiseThrows) == 1, + "Expected promiseThrows(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::promiseThrows, jsInvoker_, instance_); + } + void voidFuncAssert(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::voidFuncAssert) == 1, + "Expected voidFuncAssert(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::voidFuncAssert, jsInvoker_, instance_); + } + jsi::Object getObjectAssert(jsi::Runtime &rt, jsi::Object arg) override { + static_assert( + bridging::getParameterCount(&T::getObjectAssert) == 2, + "Expected getObjectAssert(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getObjectAssert, jsInvoker_, instance_, std::move(arg)); + } + jsi::Value promiseAssert(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::promiseAssert) == 1, + "Expected promiseAssert(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::promiseAssert, jsInvoker_, instance_); + } + jsi::Value getImageUrl(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getImageUrl) == 1, + "Expected getImageUrl(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getImageUrl, jsInvoker_, instance_); + } + + private: + friend class NativeSampleTurboModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeSegmentFetcherCxxSpecJSI : public TurboModule { +protected: + NativeSegmentFetcherCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void fetchSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) = 0; + virtual void getSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) = 0; + +}; + +template +class JSI_EXPORT NativeSegmentFetcherCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "SegmentFetcher"; + +protected: + NativeSegmentFetcherCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeSegmentFetcherCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeSegmentFetcherCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeSegmentFetcherCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void fetchSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::fetchSegment) == 4, + "Expected fetchSegment(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::fetchSegment, jsInvoker_, instance_, std::move(segmentId), std::move(options), std::move(callback)); + } + void getSegment(jsi::Runtime &rt, double segmentId, jsi::Object options, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::getSegment) == 4, + "Expected getSegment(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::getSegment, jsInvoker_, instance_, std::move(segmentId), std::move(options), std::move(callback)); + } + + private: + friend class NativeSegmentFetcherCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeSettingsManagerCxxSpecJSI : public TurboModule { +protected: + NativeSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void setValues(jsi::Runtime &rt, jsi::Object values) = 0; + virtual void deleteValues(jsi::Runtime &rt, jsi::Array values) = 0; + +}; + +template +class JSI_EXPORT NativeSettingsManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "SettingsManager"; + +protected: + NativeSettingsManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeSettingsManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeSettingsManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeSettingsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void setValues(jsi::Runtime &rt, jsi::Object values) override { + static_assert( + bridging::getParameterCount(&T::setValues) == 2, + "Expected setValues(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setValues, jsInvoker_, instance_, std::move(values)); + } + void deleteValues(jsi::Runtime &rt, jsi::Array values) override { + static_assert( + bridging::getParameterCount(&T::deleteValues) == 2, + "Expected deleteValues(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::deleteValues, jsInvoker_, instance_, std::move(values)); + } + + private: + friend class NativeSettingsManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeShareModuleCxxSpecJSI : public TurboModule { +protected: + NativeShareModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual jsi::Value share(jsi::Runtime &rt, jsi::Object content, std::optional dialogTitle) = 0; + +}; + +template +class JSI_EXPORT NativeShareModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ShareModule"; + +protected: + NativeShareModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeShareModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeShareModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeShareModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + jsi::Value share(jsi::Runtime &rt, jsi::Object content, std::optional dialogTitle) override { + static_assert( + bridging::getParameterCount(&T::share) == 3, + "Expected share(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::share, jsInvoker_, instance_, std::move(content), std::move(dialogTitle)); + } + + private: + friend class NativeShareModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeSoundManagerCxxSpecJSI : public TurboModule { +protected: + NativeSoundManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void playTouchSound(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeSoundManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "SoundManager"; + +protected: + NativeSoundManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeSoundManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeSoundManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeSoundManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void playTouchSound(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::playTouchSound) == 1, + "Expected playTouchSound(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::playTouchSound, jsInvoker_, instance_); + } + + private: + friend class NativeSoundManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeSourceCodeSourceCodeConstants + +template +struct NativeSourceCodeSourceCodeConstants { + P0 scriptURL; + bool operator==(const NativeSourceCodeSourceCodeConstants &other) const { + return scriptURL == other.scriptURL; + } +}; + +template +struct NativeSourceCodeSourceCodeConstantsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "scriptURL"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String scriptURLToJs(jsi::Runtime &rt, decltype(types.scriptURL) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "scriptURL", bridging::toJs(rt, value.scriptURL, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeSourceCodeCxxSpecJSI : public TurboModule { +protected: + NativeSourceCodeCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeSourceCodeCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "SourceCode"; + +protected: + NativeSourceCodeCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeSourceCodeCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeSourceCodeCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeSourceCodeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + + private: + friend class NativeSourceCodeCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeStatusBarManagerAndroidCxxSpecJSI : public TurboModule { +protected: + NativeStatusBarManagerAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void setColor(jsi::Runtime &rt, double color, bool animated) = 0; + virtual void setTranslucent(jsi::Runtime &rt, bool translucent) = 0; + virtual void setStyle(jsi::Runtime &rt, std::optional statusBarStyle) = 0; + virtual void setHidden(jsi::Runtime &rt, bool hidden) = 0; + +}; + +template +class JSI_EXPORT NativeStatusBarManagerAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "StatusBarManager"; + +protected: + NativeStatusBarManagerAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeStatusBarManagerAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeStatusBarManagerAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeStatusBarManagerAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void setColor(jsi::Runtime &rt, double color, bool animated) override { + static_assert( + bridging::getParameterCount(&T::setColor) == 3, + "Expected setColor(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setColor, jsInvoker_, instance_, std::move(color), std::move(animated)); + } + void setTranslucent(jsi::Runtime &rt, bool translucent) override { + static_assert( + bridging::getParameterCount(&T::setTranslucent) == 2, + "Expected setTranslucent(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setTranslucent, jsInvoker_, instance_, std::move(translucent)); + } + void setStyle(jsi::Runtime &rt, std::optional statusBarStyle) override { + static_assert( + bridging::getParameterCount(&T::setStyle) == 2, + "Expected setStyle(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setStyle, jsInvoker_, instance_, std::move(statusBarStyle)); + } + void setHidden(jsi::Runtime &rt, bool hidden) override { + static_assert( + bridging::getParameterCount(&T::setHidden) == 2, + "Expected setHidden(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setHidden, jsInvoker_, instance_, std::move(hidden)); + } + + private: + friend class NativeStatusBarManagerAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeStatusBarManagerIOSCxxSpecJSI : public TurboModule { +protected: + NativeStatusBarManagerIOSCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void getHeight(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual void setNetworkActivityIndicatorVisible(jsi::Runtime &rt, bool visible) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventType) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + virtual void setStyle(jsi::Runtime &rt, std::optional statusBarStyle, bool animated) = 0; + virtual void setHidden(jsi::Runtime &rt, bool hidden, jsi::String withAnimation) = 0; + +}; + +template +class JSI_EXPORT NativeStatusBarManagerIOSCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "StatusBarManager"; + +protected: + NativeStatusBarManagerIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeStatusBarManagerIOSCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeStatusBarManagerIOSCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeStatusBarManagerIOSCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void getHeight(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::getHeight) == 2, + "Expected getHeight(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getHeight, jsInvoker_, instance_, std::move(callback)); + } + void setNetworkActivityIndicatorVisible(jsi::Runtime &rt, bool visible) override { + static_assert( + bridging::getParameterCount(&T::setNetworkActivityIndicatorVisible) == 2, + "Expected setNetworkActivityIndicatorVisible(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setNetworkActivityIndicatorVisible, jsInvoker_, instance_, std::move(visible)); + } + void addListener(jsi::Runtime &rt, jsi::String eventType) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventType)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + void setStyle(jsi::Runtime &rt, std::optional statusBarStyle, bool animated) override { + static_assert( + bridging::getParameterCount(&T::setStyle) == 3, + "Expected setStyle(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setStyle, jsInvoker_, instance_, std::move(statusBarStyle), std::move(animated)); + } + void setHidden(jsi::Runtime &rt, bool hidden, jsi::String withAnimation) override { + static_assert( + bridging::getParameterCount(&T::setHidden) == 3, + "Expected setHidden(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setHidden, jsInvoker_, instance_, std::move(hidden), std::move(withAnimation)); + } + + private: + friend class NativeStatusBarManagerIOSCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeTimingCxxSpecJSI : public TurboModule { +protected: + NativeTimingCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void createTimer(jsi::Runtime &rt, double callbackID, double duration, double jsSchedulingTime, bool repeats) = 0; + virtual void deleteTimer(jsi::Runtime &rt, double timerID) = 0; + virtual void setSendIdleEvents(jsi::Runtime &rt, bool sendIdleEvents) = 0; + +}; + +template +class JSI_EXPORT NativeTimingCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "Timing"; + +protected: + NativeTimingCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeTimingCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeTimingCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeTimingCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void createTimer(jsi::Runtime &rt, double callbackID, double duration, double jsSchedulingTime, bool repeats) override { + static_assert( + bridging::getParameterCount(&T::createTimer) == 5, + "Expected createTimer(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::createTimer, jsInvoker_, instance_, std::move(callbackID), std::move(duration), std::move(jsSchedulingTime), std::move(repeats)); + } + void deleteTimer(jsi::Runtime &rt, double timerID) override { + static_assert( + bridging::getParameterCount(&T::deleteTimer) == 2, + "Expected deleteTimer(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::deleteTimer, jsInvoker_, instance_, std::move(timerID)); + } + void setSendIdleEvents(jsi::Runtime &rt, bool sendIdleEvents) override { + static_assert( + bridging::getParameterCount(&T::setSendIdleEvents) == 2, + "Expected setSendIdleEvents(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setSendIdleEvents, jsInvoker_, instance_, std::move(sendIdleEvents)); + } + + private: + friend class NativeTimingCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeToastAndroidCxxSpecJSI : public TurboModule { +protected: + NativeToastAndroidCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void show(jsi::Runtime &rt, jsi::String message, double duration) = 0; + virtual void showWithGravity(jsi::Runtime &rt, jsi::String message, double duration, double gravity) = 0; + virtual void showWithGravityAndOffset(jsi::Runtime &rt, jsi::String message, double duration, double gravity, double xOffset, double yOffset) = 0; + +}; + +template +class JSI_EXPORT NativeToastAndroidCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ToastAndroid"; + +protected: + NativeToastAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeToastAndroidCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeToastAndroidCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeToastAndroidCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void show(jsi::Runtime &rt, jsi::String message, double duration) override { + static_assert( + bridging::getParameterCount(&T::show) == 3, + "Expected show(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::show, jsInvoker_, instance_, std::move(message), std::move(duration)); + } + void showWithGravity(jsi::Runtime &rt, jsi::String message, double duration, double gravity) override { + static_assert( + bridging::getParameterCount(&T::showWithGravity) == 4, + "Expected showWithGravity(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::showWithGravity, jsInvoker_, instance_, std::move(message), std::move(duration), std::move(gravity)); + } + void showWithGravityAndOffset(jsi::Runtime &rt, jsi::String message, double duration, double gravity, double xOffset, double yOffset) override { + static_assert( + bridging::getParameterCount(&T::showWithGravityAndOffset) == 6, + "Expected showWithGravityAndOffset(...) to have 6 parameters"); + + return bridging::callFromJs( + rt, &T::showWithGravityAndOffset, jsInvoker_, instance_, std::move(message), std::move(duration), std::move(gravity), std::move(xOffset), std::move(yOffset)); + } + + private: + friend class NativeToastAndroidCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeUIManagerCxxSpecJSI : public TurboModule { +protected: + NativeUIManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void createView(jsi::Runtime &rt, double reactTag, jsi::String viewName, double rootTag, jsi::Object props) = 0; + virtual void updateView(jsi::Runtime &rt, double reactTag, jsi::String viewName, jsi::Object props) = 0; + virtual void findSubviewIn(jsi::Runtime &rt, double reactTag, jsi::Array point, jsi::Function callback) = 0; + virtual void dispatchViewManagerCommand(jsi::Runtime &rt, double reactTag, double commandID, std::optional commandArgs) = 0; + virtual void measure(jsi::Runtime &rt, double reactTag, jsi::Function callback) = 0; + virtual void measureInWindow(jsi::Runtime &rt, double reactTag, jsi::Function callback) = 0; + virtual void viewIsDescendantOf(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function callback) = 0; + virtual void measureLayout(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function errorCallback, jsi::Function callback) = 0; + virtual void measureLayoutRelativeToParent(jsi::Runtime &rt, double reactTag, jsi::Function errorCallback, jsi::Function callback) = 0; + virtual void setJSResponder(jsi::Runtime &rt, double reactTag, bool blockNativeResponder) = 0; + virtual void clearJSResponder(jsi::Runtime &rt) = 0; + virtual void configureNextLayoutAnimation(jsi::Runtime &rt, jsi::Object config, jsi::Function callback, jsi::Function errorCallback) = 0; + virtual void setChildren(jsi::Runtime &rt, double containerTag, jsi::Array reactTags) = 0; + virtual void manageChildren(jsi::Runtime &rt, double containerTag, jsi::Array moveFromIndices, jsi::Array moveToIndices, jsi::Array addChildReactTags, jsi::Array addAtIndices, jsi::Array removeAtIndices) = 0; + virtual std::optional getConstantsForViewManager(jsi::Runtime &rt, jsi::String viewManagerName) = 0; + virtual jsi::Array getDefaultEventTypes(jsi::Runtime &rt) = 0; + virtual void setLayoutAnimationEnabledExperimental(jsi::Runtime &rt, bool enabled) = 0; + virtual void sendAccessibilityEvent(jsi::Runtime &rt, double reactTag, double eventType) = 0; + virtual jsi::Object lazilyLoadView(jsi::Runtime &rt, jsi::String name) = 0; + virtual void focus(jsi::Runtime &rt, double reactTag) = 0; + virtual void blur(jsi::Runtime &rt, double reactTag) = 0; + +}; + +template +class JSI_EXPORT NativeUIManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "UIManager"; + +protected: + NativeUIManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeUIManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeUIManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeUIManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void createView(jsi::Runtime &rt, double reactTag, jsi::String viewName, double rootTag, jsi::Object props) override { + static_assert( + bridging::getParameterCount(&T::createView) == 5, + "Expected createView(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::createView, jsInvoker_, instance_, std::move(reactTag), std::move(viewName), std::move(rootTag), std::move(props)); + } + void updateView(jsi::Runtime &rt, double reactTag, jsi::String viewName, jsi::Object props) override { + static_assert( + bridging::getParameterCount(&T::updateView) == 4, + "Expected updateView(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::updateView, jsInvoker_, instance_, std::move(reactTag), std::move(viewName), std::move(props)); + } + void findSubviewIn(jsi::Runtime &rt, double reactTag, jsi::Array point, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::findSubviewIn) == 4, + "Expected findSubviewIn(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::findSubviewIn, jsInvoker_, instance_, std::move(reactTag), std::move(point), std::move(callback)); + } + void dispatchViewManagerCommand(jsi::Runtime &rt, double reactTag, double commandID, std::optional commandArgs) override { + static_assert( + bridging::getParameterCount(&T::dispatchViewManagerCommand) == 4, + "Expected dispatchViewManagerCommand(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::dispatchViewManagerCommand, jsInvoker_, instance_, std::move(reactTag), std::move(commandID), std::move(commandArgs)); + } + void measure(jsi::Runtime &rt, double reactTag, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::measure) == 3, + "Expected measure(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::measure, jsInvoker_, instance_, std::move(reactTag), std::move(callback)); + } + void measureInWindow(jsi::Runtime &rt, double reactTag, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::measureInWindow) == 3, + "Expected measureInWindow(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::measureInWindow, jsInvoker_, instance_, std::move(reactTag), std::move(callback)); + } + void viewIsDescendantOf(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::viewIsDescendantOf) == 4, + "Expected viewIsDescendantOf(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::viewIsDescendantOf, jsInvoker_, instance_, std::move(reactTag), std::move(ancestorReactTag), std::move(callback)); + } + void measureLayout(jsi::Runtime &rt, double reactTag, double ancestorReactTag, jsi::Function errorCallback, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::measureLayout) == 5, + "Expected measureLayout(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::measureLayout, jsInvoker_, instance_, std::move(reactTag), std::move(ancestorReactTag), std::move(errorCallback), std::move(callback)); + } + void measureLayoutRelativeToParent(jsi::Runtime &rt, double reactTag, jsi::Function errorCallback, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::measureLayoutRelativeToParent) == 4, + "Expected measureLayoutRelativeToParent(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::measureLayoutRelativeToParent, jsInvoker_, instance_, std::move(reactTag), std::move(errorCallback), std::move(callback)); + } + void setJSResponder(jsi::Runtime &rt, double reactTag, bool blockNativeResponder) override { + static_assert( + bridging::getParameterCount(&T::setJSResponder) == 3, + "Expected setJSResponder(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setJSResponder, jsInvoker_, instance_, std::move(reactTag), std::move(blockNativeResponder)); + } + void clearJSResponder(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::clearJSResponder) == 1, + "Expected clearJSResponder(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::clearJSResponder, jsInvoker_, instance_); + } + void configureNextLayoutAnimation(jsi::Runtime &rt, jsi::Object config, jsi::Function callback, jsi::Function errorCallback) override { + static_assert( + bridging::getParameterCount(&T::configureNextLayoutAnimation) == 4, + "Expected configureNextLayoutAnimation(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::configureNextLayoutAnimation, jsInvoker_, instance_, std::move(config), std::move(callback), std::move(errorCallback)); + } + void setChildren(jsi::Runtime &rt, double containerTag, jsi::Array reactTags) override { + static_assert( + bridging::getParameterCount(&T::setChildren) == 3, + "Expected setChildren(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setChildren, jsInvoker_, instance_, std::move(containerTag), std::move(reactTags)); + } + void manageChildren(jsi::Runtime &rt, double containerTag, jsi::Array moveFromIndices, jsi::Array moveToIndices, jsi::Array addChildReactTags, jsi::Array addAtIndices, jsi::Array removeAtIndices) override { + static_assert( + bridging::getParameterCount(&T::manageChildren) == 7, + "Expected manageChildren(...) to have 7 parameters"); + + return bridging::callFromJs( + rt, &T::manageChildren, jsInvoker_, instance_, std::move(containerTag), std::move(moveFromIndices), std::move(moveToIndices), std::move(addChildReactTags), std::move(addAtIndices), std::move(removeAtIndices)); + } + std::optional getConstantsForViewManager(jsi::Runtime &rt, jsi::String viewManagerName) override { + static_assert( + bridging::getParameterCount(&T::getConstantsForViewManager) == 2, + "Expected getConstantsForViewManager(...) to have 2 parameters"); + + return bridging::callFromJs>( + rt, &T::getConstantsForViewManager, jsInvoker_, instance_, std::move(viewManagerName)); + } + jsi::Array getDefaultEventTypes(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getDefaultEventTypes) == 1, + "Expected getDefaultEventTypes(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getDefaultEventTypes, jsInvoker_, instance_); + } + void setLayoutAnimationEnabledExperimental(jsi::Runtime &rt, bool enabled) override { + static_assert( + bridging::getParameterCount(&T::setLayoutAnimationEnabledExperimental) == 2, + "Expected setLayoutAnimationEnabledExperimental(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setLayoutAnimationEnabledExperimental, jsInvoker_, instance_, std::move(enabled)); + } + void sendAccessibilityEvent(jsi::Runtime &rt, double reactTag, double eventType) override { + static_assert( + bridging::getParameterCount(&T::sendAccessibilityEvent) == 3, + "Expected sendAccessibilityEvent(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::sendAccessibilityEvent, jsInvoker_, instance_, std::move(reactTag), std::move(eventType)); + } + jsi::Object lazilyLoadView(jsi::Runtime &rt, jsi::String name) override { + static_assert( + bridging::getParameterCount(&T::lazilyLoadView) == 2, + "Expected lazilyLoadView(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::lazilyLoadView, jsInvoker_, instance_, std::move(name)); + } + void focus(jsi::Runtime &rt, double reactTag) override { + static_assert( + bridging::getParameterCount(&T::focus) == 2, + "Expected focus(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::focus, jsInvoker_, instance_, std::move(reactTag)); + } + void blur(jsi::Runtime &rt, double reactTag) override { + static_assert( + bridging::getParameterCount(&T::blur) == 2, + "Expected blur(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::blur, jsInvoker_, instance_, std::move(reactTag)); + } + + private: + friend class NativeUIManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeVibrationCxxSpecJSI : public TurboModule { +protected: + NativeVibrationCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Object getConstants(jsi::Runtime &rt) = 0; + virtual void vibrate(jsi::Runtime &rt, double pattern) = 0; + virtual void vibrateByPattern(jsi::Runtime &rt, jsi::Array pattern, double repeat) = 0; + virtual void cancel(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeVibrationCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "Vibration"; + +protected: + NativeVibrationCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeVibrationCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeVibrationCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeVibrationCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Object getConstants(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConstants) == 1, + "Expected getConstants(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getConstants, jsInvoker_, instance_); + } + void vibrate(jsi::Runtime &rt, double pattern) override { + static_assert( + bridging::getParameterCount(&T::vibrate) == 2, + "Expected vibrate(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::vibrate, jsInvoker_, instance_, std::move(pattern)); + } + void vibrateByPattern(jsi::Runtime &rt, jsi::Array pattern, double repeat) override { + static_assert( + bridging::getParameterCount(&T::vibrateByPattern) == 3, + "Expected vibrateByPattern(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::vibrateByPattern, jsInvoker_, instance_, std::move(pattern), std::move(repeat)); + } + void cancel(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::cancel) == 1, + "Expected cancel(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::cancel, jsInvoker_, instance_); + } + + private: + friend class NativeVibrationCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeWebSocketModuleCxxSpecJSI : public TurboModule { +protected: + NativeWebSocketModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void connect(jsi::Runtime &rt, jsi::String url, std::optional protocols, jsi::Object options, double socketID) = 0; + virtual void send(jsi::Runtime &rt, jsi::String message, double forSocketID) = 0; + virtual void sendBinary(jsi::Runtime &rt, jsi::String base64String, double forSocketID) = 0; + virtual void ping(jsi::Runtime &rt, double socketID) = 0; + virtual void close(jsi::Runtime &rt, double code, jsi::String reason, double socketID) = 0; + virtual void addListener(jsi::Runtime &rt, jsi::String eventName) = 0; + virtual void removeListeners(jsi::Runtime &rt, double count) = 0; + +}; + +template +class JSI_EXPORT NativeWebSocketModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "WebSocketModule"; + +protected: + NativeWebSocketModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeWebSocketModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeWebSocketModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeWebSocketModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void connect(jsi::Runtime &rt, jsi::String url, std::optional protocols, jsi::Object options, double socketID) override { + static_assert( + bridging::getParameterCount(&T::connect) == 5, + "Expected connect(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::connect, jsInvoker_, instance_, std::move(url), std::move(protocols), std::move(options), std::move(socketID)); + } + void send(jsi::Runtime &rt, jsi::String message, double forSocketID) override { + static_assert( + bridging::getParameterCount(&T::send) == 3, + "Expected send(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::send, jsInvoker_, instance_, std::move(message), std::move(forSocketID)); + } + void sendBinary(jsi::Runtime &rt, jsi::String base64String, double forSocketID) override { + static_assert( + bridging::getParameterCount(&T::sendBinary) == 3, + "Expected sendBinary(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::sendBinary, jsInvoker_, instance_, std::move(base64String), std::move(forSocketID)); + } + void ping(jsi::Runtime &rt, double socketID) override { + static_assert( + bridging::getParameterCount(&T::ping) == 2, + "Expected ping(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::ping, jsInvoker_, instance_, std::move(socketID)); + } + void close(jsi::Runtime &rt, double code, jsi::String reason, double socketID) override { + static_assert( + bridging::getParameterCount(&T::close) == 4, + "Expected close(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::close, jsInvoker_, instance_, std::move(code), std::move(reason), std::move(socketID)); + } + void addListener(jsi::Runtime &rt, jsi::String eventName) override { + static_assert( + bridging::getParameterCount(&T::addListener) == 2, + "Expected addListener(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::addListener, jsInvoker_, instance_, std::move(eventName)); + } + void removeListeners(jsi::Runtime &rt, double count) override { + static_assert( + bridging::getParameterCount(&T::removeListeners) == 2, + "Expected removeListeners(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::removeListeners, jsInvoker_, instance_, std::move(count)); + } + + private: + friend class NativeWebSocketModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeDevMenuCxxSpecJSI : public TurboModule { +protected: + NativeDevMenuCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void show(jsi::Runtime &rt) = 0; + virtual void reload(jsi::Runtime &rt) = 0; + virtual void setProfilingEnabled(jsi::Runtime &rt, bool enabled) = 0; + virtual void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) = 0; + +}; + +template +class JSI_EXPORT NativeDevMenuCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "DevMenu"; + +protected: + NativeDevMenuCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDevMenuCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDevMenuCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDevMenuCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void show(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::show) == 1, + "Expected show(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::show, jsInvoker_, instance_); + } + void reload(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::reload) == 1, + "Expected reload(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::reload, jsInvoker_, instance_); + } + void setProfilingEnabled(jsi::Runtime &rt, bool enabled) override { + static_assert( + bridging::getParameterCount(&T::setProfilingEnabled) == 2, + "Expected setProfilingEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setProfilingEnabled, jsInvoker_, instance_, std::move(enabled)); + } + void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) override { + static_assert( + bridging::getParameterCount(&T::setHotLoadingEnabled) == 2, + "Expected setHotLoadingEnabled(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setHotLoadingEnabled, jsInvoker_, instance_, std::move(enabled)); + } + + private: + friend class NativeDevMenuCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig + +template +struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig { + P0 shouldReloadAndProfile; + P1 recordChangeDescriptions; + bool operator==(const NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig &other) const { + return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions; + } +}; + +template +struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfigBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) { + return bridging::toJs(rt, value); + } + + static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.shouldReloadAndProfile) { + result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile.value(), jsInvoker)); + } + if (value.recordChangeDescriptions) { + result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig + +template +struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig { + P0 shouldReloadAndProfile; + P1 recordChangeDescriptions; + bool operator==(const NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig &other) const { + return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions; + } +}; + +template +struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfigBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) { + return bridging::toJs(rt, value); + } + + static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile, jsInvoker)); + result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI : public TurboModule { +protected: + NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) = 0; + virtual jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ReactDevToolsRuntimeSettingsModule"; + +protected: + NativeReactDevToolsRuntimeSettingsModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeReactDevToolsRuntimeSettingsModuleCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) override { + static_assert( + bridging::getParameterCount(&T::setReloadAndProfileConfig) == 2, + "Expected setReloadAndProfileConfig(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setReloadAndProfileConfig, jsInvoker_, instance_, std::move(config)); + } + jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getReloadAndProfileConfig) == 1, + "Expected getReloadAndProfileConfig(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getReloadAndProfileConfig, jsInvoker_, instance_); + } + + private: + friend class NativeReactDevToolsRuntimeSettingsModuleCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpecJSI : public TurboModule { +protected: + NativeReactDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) = 0; + virtual std::optional getGlobalHookSettings(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "ReactDevToolsSettingsManager"; + +protected: + NativeReactDevToolsSettingsManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeReactDevToolsSettingsManagerCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeReactDevToolsSettingsManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeReactDevToolsSettingsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) override { + static_assert( + bridging::getParameterCount(&T::setGlobalHookSettings) == 2, + "Expected setGlobalHookSettings(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setGlobalHookSettings, jsInvoker_, instance_, std::move(settings)); + } + std::optional getGlobalHookSettings(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getGlobalHookSettings) == 1, + "Expected getGlobalHookSettings(...) to have 1 parameters"); + + return bridging::callFromJs>( + rt, &T::getGlobalHookSettings, jsInvoker_, instance_); + } + + private: + friend class NativeReactDevToolsSettingsManagerCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeIdleCallbacksIdleDeadline + +template +struct NativeIdleCallbacksIdleDeadline { + P0 didTimeout; + P1 timeRemaining; + bool operator==(const NativeIdleCallbacksIdleDeadline &other) const { + return didTimeout == other.didTimeout && timeRemaining == other.timeRemaining; + } +}; + +template +struct NativeIdleCallbacksIdleDeadlineBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "didTimeout"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "timeRemaining"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool didTimeoutToJs(jsi::Runtime &rt, decltype(types.didTimeout) value) { + return bridging::toJs(rt, value); + } + + static jsi::Function timeRemainingToJs(jsi::Runtime &rt, decltype(types.timeRemaining) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "didTimeout", bridging::toJs(rt, value.didTimeout, jsInvoker)); + result.setProperty(rt, "timeRemaining", bridging::toJs(rt, value.timeRemaining, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativeIdleCallbacksRequestIdleCallbackOptions + +template +struct NativeIdleCallbacksRequestIdleCallbackOptions { + P0 timeout; + bool operator==(const NativeIdleCallbacksRequestIdleCallbackOptions &other) const { + return timeout == other.timeout; + } +}; + +template +struct NativeIdleCallbacksRequestIdleCallbackOptionsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "timeout"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double timeoutToJs(jsi::Runtime &rt, decltype(types.timeout) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.timeout) { + result.setProperty(rt, "timeout", bridging::toJs(rt, value.timeout.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeIdleCallbacksCxxSpecJSI : public TurboModule { +protected: + NativeIdleCallbacksCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Value requestIdleCallback(jsi::Runtime &rt, jsi::Function callback, std::optional options) = 0; + virtual void cancelIdleCallback(jsi::Runtime &rt, jsi::Value handle) = 0; + +}; + +template +class JSI_EXPORT NativeIdleCallbacksCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeIdleCallbacksCxx"; + +protected: + NativeIdleCallbacksCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeIdleCallbacksCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeIdleCallbacksCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeIdleCallbacksCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + jsi::Value requestIdleCallback(jsi::Runtime &rt, jsi::Function callback, std::optional options) override { + static_assert( + bridging::getParameterCount(&T::requestIdleCallback) == 3, + "Expected requestIdleCallback(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::requestIdleCallback, jsInvoker_, instance_, std::move(callback), std::move(options)); + } + void cancelIdleCallback(jsi::Runtime &rt, jsi::Value handle) override { + static_assert( + bridging::getParameterCount(&T::cancelIdleCallback) == 2, + "Expected cancelIdleCallback(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::cancelIdleCallback, jsInvoker_, instance_, std::move(handle)); + } + + private: + friend class NativeIdleCallbacksCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeIntersectionObserverNativeIntersectionObserverEntry + +template +struct NativeIntersectionObserverNativeIntersectionObserverEntry { + P0 intersectionObserverId; + P1 targetInstanceHandle; + P2 targetRect; + P3 rootRect; + P4 intersectionRect; + P5 isIntersectingAboveThresholds; + P6 time; + bool operator==(const NativeIntersectionObserverNativeIntersectionObserverEntry &other) const { + return intersectionObserverId == other.intersectionObserverId && targetInstanceHandle == other.targetInstanceHandle && targetRect == other.targetRect && rootRect == other.rootRect && intersectionRect == other.intersectionRect && isIntersectingAboveThresholds == other.isIntersectingAboveThresholds && time == other.time; + } +}; + +template +struct NativeIntersectionObserverNativeIntersectionObserverEntryBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "intersectionObserverId"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "targetInstanceHandle"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "targetRect"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "rootRect"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "intersectionRect"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "isIntersectingAboveThresholds"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "time"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double intersectionObserverIdToJs(jsi::Runtime &rt, decltype(types.intersectionObserverId) value) { + return bridging::toJs(rt, value); + } + + static jsi::Value targetInstanceHandleToJs(jsi::Runtime &rt, decltype(types.targetInstanceHandle) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array targetRectToJs(jsi::Runtime &rt, decltype(types.targetRect) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array rootRectToJs(jsi::Runtime &rt, decltype(types.rootRect) value) { + return bridging::toJs(rt, value); + } + + static std::optional intersectionRectToJs(jsi::Runtime &rt, decltype(types.intersectionRect) value) { + return bridging::toJs(rt, value); + } + + static bool isIntersectingAboveThresholdsToJs(jsi::Runtime &rt, decltype(types.isIntersectingAboveThresholds) value) { + return bridging::toJs(rt, value); + } + + static double timeToJs(jsi::Runtime &rt, decltype(types.time) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "intersectionObserverId", bridging::toJs(rt, value.intersectionObserverId, jsInvoker)); + result.setProperty(rt, "targetInstanceHandle", bridging::toJs(rt, value.targetInstanceHandle, jsInvoker)); + result.setProperty(rt, "targetRect", bridging::toJs(rt, value.targetRect, jsInvoker)); + result.setProperty(rt, "rootRect", bridging::toJs(rt, value.rootRect, jsInvoker)); + result.setProperty(rt, "intersectionRect", bridging::toJs(rt, value.intersectionRect, jsInvoker)); + result.setProperty(rt, "isIntersectingAboveThresholds", bridging::toJs(rt, value.isIntersectingAboveThresholds, jsInvoker)); + result.setProperty(rt, "time", bridging::toJs(rt, value.time, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativeIntersectionObserverNativeIntersectionObserverObserveOptions + +template +struct NativeIntersectionObserverNativeIntersectionObserverObserveOptions { + P0 intersectionObserverId; + P1 rootShadowNode; + P2 targetShadowNode; + P3 thresholds; + P4 rootThresholds; + bool operator==(const NativeIntersectionObserverNativeIntersectionObserverObserveOptions &other) const { + return intersectionObserverId == other.intersectionObserverId && rootShadowNode == other.rootShadowNode && targetShadowNode == other.targetShadowNode && thresholds == other.thresholds && rootThresholds == other.rootThresholds; + } +}; + +template +struct NativeIntersectionObserverNativeIntersectionObserverObserveOptionsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "intersectionObserverId"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "rootShadowNode"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "targetShadowNode"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "thresholds"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "rootThresholds"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double intersectionObserverIdToJs(jsi::Runtime &rt, decltype(types.intersectionObserverId) value) { + return bridging::toJs(rt, value); + } + + static std::optional rootShadowNodeToJs(jsi::Runtime &rt, decltype(types.rootShadowNode) value) { + return bridging::toJs(rt, value); + } + + static jsi::Value targetShadowNodeToJs(jsi::Runtime &rt, decltype(types.targetShadowNode) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array thresholdsToJs(jsi::Runtime &rt, decltype(types.thresholds) value) { + return bridging::toJs(rt, value); + } + + static std::optional rootThresholdsToJs(jsi::Runtime &rt, decltype(types.rootThresholds) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "intersectionObserverId", bridging::toJs(rt, value.intersectionObserverId, jsInvoker)); + if (value.rootShadowNode) { + result.setProperty(rt, "rootShadowNode", bridging::toJs(rt, value.rootShadowNode.value(), jsInvoker)); + } + result.setProperty(rt, "targetShadowNode", bridging::toJs(rt, value.targetShadowNode, jsInvoker)); + result.setProperty(rt, "thresholds", bridging::toJs(rt, value.thresholds, jsInvoker)); + if (value.rootThresholds) { + result.setProperty(rt, "rootThresholds", bridging::toJs(rt, value.rootThresholds.value(), jsInvoker)); + } + return result; + } +}; + +class JSI_EXPORT NativeIntersectionObserverCxxSpecJSI : public TurboModule { +protected: + NativeIntersectionObserverCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void observe(jsi::Runtime &rt, jsi::Object options) = 0; + virtual void unobserve(jsi::Runtime &rt, double intersectionObserverId, jsi::Value targetShadowNode) = 0; + virtual jsi::Value observeV2(jsi::Runtime &rt, jsi::Object options) = 0; + virtual void unobserveV2(jsi::Runtime &rt, double intersectionObserverId, jsi::Value token) = 0; + virtual void connect(jsi::Runtime &rt, jsi::Function notifyIntersectionObserversCallback) = 0; + virtual void disconnect(jsi::Runtime &rt) = 0; + virtual jsi::Array takeRecords(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeIntersectionObserverCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeIntersectionObserverCxx"; + +protected: + NativeIntersectionObserverCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeIntersectionObserverCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeIntersectionObserverCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeIntersectionObserverCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void observe(jsi::Runtime &rt, jsi::Object options) override { + static_assert( + bridging::getParameterCount(&T::observe) == 2, + "Expected observe(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::observe, jsInvoker_, instance_, std::move(options)); + } + void unobserve(jsi::Runtime &rt, double intersectionObserverId, jsi::Value targetShadowNode) override { + static_assert( + bridging::getParameterCount(&T::unobserve) == 3, + "Expected unobserve(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::unobserve, jsInvoker_, instance_, std::move(intersectionObserverId), std::move(targetShadowNode)); + } + jsi::Value observeV2(jsi::Runtime &rt, jsi::Object options) override { + static_assert( + bridging::getParameterCount(&T::observeV2) == 2, + "Expected observeV2(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::observeV2, jsInvoker_, instance_, std::move(options)); + } + void unobserveV2(jsi::Runtime &rt, double intersectionObserverId, jsi::Value token) override { + static_assert( + bridging::getParameterCount(&T::unobserveV2) == 3, + "Expected unobserveV2(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::unobserveV2, jsInvoker_, instance_, std::move(intersectionObserverId), std::move(token)); + } + void connect(jsi::Runtime &rt, jsi::Function notifyIntersectionObserversCallback) override { + static_assert( + bridging::getParameterCount(&T::connect) == 2, + "Expected connect(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::connect, jsInvoker_, instance_, std::move(notifyIntersectionObserversCallback)); + } + void disconnect(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::disconnect) == 1, + "Expected disconnect(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::disconnect, jsInvoker_, instance_); + } + jsi::Array takeRecords(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::takeRecords) == 1, + "Expected takeRecords(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::takeRecords, jsInvoker_, instance_); + } + + private: + friend class NativeIntersectionObserverCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeMicrotasksCxxSpecJSI : public TurboModule { +protected: + NativeMicrotasksCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void queueMicrotask(jsi::Runtime &rt, jsi::Function callback) = 0; + +}; + +template +class JSI_EXPORT NativeMicrotasksCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeMicrotasksCxx"; + +protected: + NativeMicrotasksCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeMicrotasksCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeMicrotasksCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeMicrotasksCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void queueMicrotask(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::queueMicrotask) == 2, + "Expected queueMicrotask(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::queueMicrotask, jsInvoker_, instance_, std::move(callback)); + } + + private: + friend class NativeMicrotasksCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + +#pragma mark - NativeMutationObserverNativeMutationObserverObserveOptions + +template +struct NativeMutationObserverNativeMutationObserverObserveOptions { + P0 mutationObserverId; + P1 targetShadowNode; + P2 subtree; + bool operator==(const NativeMutationObserverNativeMutationObserverObserveOptions &other) const { + return mutationObserverId == other.mutationObserverId && targetShadowNode == other.targetShadowNode && subtree == other.subtree; + } +}; + +template +struct NativeMutationObserverNativeMutationObserverObserveOptionsBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "mutationObserverId"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "targetShadowNode"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "subtree"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double mutationObserverIdToJs(jsi::Runtime &rt, decltype(types.mutationObserverId) value) { + return bridging::toJs(rt, value); + } + + static jsi::Value targetShadowNodeToJs(jsi::Runtime &rt, decltype(types.targetShadowNode) value) { + return bridging::toJs(rt, value); + } + + static bool subtreeToJs(jsi::Runtime &rt, decltype(types.subtree) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "mutationObserverId", bridging::toJs(rt, value.mutationObserverId, jsInvoker)); + result.setProperty(rt, "targetShadowNode", bridging::toJs(rt, value.targetShadowNode, jsInvoker)); + result.setProperty(rt, "subtree", bridging::toJs(rt, value.subtree, jsInvoker)); + return result; + } +}; + + + +#pragma mark - NativeMutationObserverNativeMutationRecord + +template +struct NativeMutationObserverNativeMutationRecord { + P0 mutationObserverId; + P1 target; + P2 addedNodes; + P3 removedNodes; + bool operator==(const NativeMutationObserverNativeMutationRecord &other) const { + return mutationObserverId == other.mutationObserverId && target == other.target && addedNodes == other.addedNodes && removedNodes == other.removedNodes; + } +}; + +template +struct NativeMutationObserverNativeMutationRecordBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "mutationObserverId"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "target"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "addedNodes"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "removedNodes"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double mutationObserverIdToJs(jsi::Runtime &rt, decltype(types.mutationObserverId) value) { + return bridging::toJs(rt, value); + } + + static jsi::Value targetToJs(jsi::Runtime &rt, decltype(types.target) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array addedNodesToJs(jsi::Runtime &rt, decltype(types.addedNodes) value) { + return bridging::toJs(rt, value); + } + + static jsi::Array removedNodesToJs(jsi::Runtime &rt, decltype(types.removedNodes) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "mutationObserverId", bridging::toJs(rt, value.mutationObserverId, jsInvoker)); + result.setProperty(rt, "target", bridging::toJs(rt, value.target, jsInvoker)); + result.setProperty(rt, "addedNodes", bridging::toJs(rt, value.addedNodes, jsInvoker)); + result.setProperty(rt, "removedNodes", bridging::toJs(rt, value.removedNodes, jsInvoker)); + return result; + } +}; + +class JSI_EXPORT NativeMutationObserverCxxSpecJSI : public TurboModule { +protected: + NativeMutationObserverCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void observe(jsi::Runtime &rt, jsi::Object options) = 0; + virtual void unobserveAll(jsi::Runtime &rt, double mutationObserverId) = 0; + virtual void connect(jsi::Runtime &rt, jsi::Function notifyMutationObservers, jsi::Function getPublicInstanceFromInstanceHandle) = 0; + virtual void disconnect(jsi::Runtime &rt) = 0; + virtual jsi::Array takeRecords(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeMutationObserverCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeMutationObserverCxx"; + +protected: + NativeMutationObserverCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeMutationObserverCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeMutationObserverCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeMutationObserverCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + void observe(jsi::Runtime &rt, jsi::Object options) override { + static_assert( + bridging::getParameterCount(&T::observe) == 2, + "Expected observe(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::observe, jsInvoker_, instance_, std::move(options)); + } + void unobserveAll(jsi::Runtime &rt, double mutationObserverId) override { + static_assert( + bridging::getParameterCount(&T::unobserveAll) == 2, + "Expected unobserveAll(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::unobserveAll, jsInvoker_, instance_, std::move(mutationObserverId)); + } + void connect(jsi::Runtime &rt, jsi::Function notifyMutationObservers, jsi::Function getPublicInstanceFromInstanceHandle) override { + static_assert( + bridging::getParameterCount(&T::connect) == 3, + "Expected connect(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::connect, jsInvoker_, instance_, std::move(notifyMutationObservers), std::move(getPublicInstanceFromInstanceHandle)); + } + void disconnect(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::disconnect) == 1, + "Expected disconnect(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::disconnect, jsInvoker_, instance_); + } + jsi::Array takeRecords(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::takeRecords) == 1, + "Expected takeRecords(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::takeRecords, jsInvoker_, instance_); + } + + private: + friend class NativeMutationObserverCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + + +#pragma mark - NativePerformancePerformanceObserverInit + +template +struct NativePerformancePerformanceObserverInit { + P0 entryTypes; + P1 type; + P2 buffered; + P3 durationThreshold; + bool operator==(const NativePerformancePerformanceObserverInit &other) const { + return entryTypes == other.entryTypes && type == other.type && buffered == other.buffered && durationThreshold == other.durationThreshold; + } +}; + +template +struct NativePerformancePerformanceObserverInitBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "entryTypes"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "type"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "buffered"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "durationThreshold"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::Array entryTypesToJs(jsi::Runtime &rt, decltype(types.entryTypes) value) { + return bridging::toJs(rt, value); + } + + static double typeToJs(jsi::Runtime &rt, decltype(types.type) value) { + return bridging::toJs(rt, value); + } + + static bool bufferedToJs(jsi::Runtime &rt, decltype(types.buffered) value) { + return bridging::toJs(rt, value); + } + + static double durationThresholdToJs(jsi::Runtime &rt, decltype(types.durationThreshold) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + if (value.entryTypes) { + result.setProperty(rt, "entryTypes", bridging::toJs(rt, value.entryTypes.value(), jsInvoker)); + } + if (value.type) { + result.setProperty(rt, "type", bridging::toJs(rt, value.type.value(), jsInvoker)); + } + if (value.buffered) { + result.setProperty(rt, "buffered", bridging::toJs(rt, value.buffered.value(), jsInvoker)); + } + if (value.durationThreshold) { + result.setProperty(rt, "durationThreshold", bridging::toJs(rt, value.durationThreshold.value(), jsInvoker)); + } + return result; + } +}; + + + +#pragma mark - NativePerformanceRawPerformanceEntry + +template +struct NativePerformanceRawPerformanceEntry { + P0 name; + P1 entryType; + P2 startTime; + P3 duration; + P4 processingStart; + P5 processingEnd; + P6 interactionId; + P7 fetchStart; + P8 requestStart; + P9 connectStart; + P10 connectEnd; + P11 responseStart; + P12 responseEnd; + P13 responseStatus; + bool operator==(const NativePerformanceRawPerformanceEntry &other) const { + return name == other.name && entryType == other.entryType && startTime == other.startTime && duration == other.duration && processingStart == other.processingStart && processingEnd == other.processingEnd && interactionId == other.interactionId && fetchStart == other.fetchStart && requestStart == other.requestStart && connectStart == other.connectStart && connectEnd == other.connectEnd && responseStart == other.responseStart && responseEnd == other.responseEnd && responseStatus == other.responseStatus; + } +}; + +template +struct NativePerformanceRawPerformanceEntryBridging { + static T types; + + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result{ + bridging::fromJs(rt, value.getProperty(rt, "name"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "entryType"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "startTime"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "duration"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "processingStart"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "processingEnd"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "interactionId"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "fetchStart"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "requestStart"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "connectStart"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "connectEnd"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "responseStart"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "responseEnd"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "responseStatus"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::String nameToJs(jsi::Runtime &rt, decltype(types.name) value) { + return bridging::toJs(rt, value); + } + + static double entryTypeToJs(jsi::Runtime &rt, decltype(types.entryType) value) { + return bridging::toJs(rt, value); + } + + static double startTimeToJs(jsi::Runtime &rt, decltype(types.startTime) value) { + return bridging::toJs(rt, value); + } + + static double durationToJs(jsi::Runtime &rt, decltype(types.duration) value) { + return bridging::toJs(rt, value); + } + + static double processingStartToJs(jsi::Runtime &rt, decltype(types.processingStart) value) { + return bridging::toJs(rt, value); + } + + static double processingEndToJs(jsi::Runtime &rt, decltype(types.processingEnd) value) { + return bridging::toJs(rt, value); + } + + static double interactionIdToJs(jsi::Runtime &rt, decltype(types.interactionId) value) { + return bridging::toJs(rt, value); + } + + static double fetchStartToJs(jsi::Runtime &rt, decltype(types.fetchStart) value) { + return bridging::toJs(rt, value); + } + + static double requestStartToJs(jsi::Runtime &rt, decltype(types.requestStart) value) { + return bridging::toJs(rt, value); + } + + static double connectStartToJs(jsi::Runtime &rt, decltype(types.connectStart) value) { + return bridging::toJs(rt, value); + } + + static double connectEndToJs(jsi::Runtime &rt, decltype(types.connectEnd) value) { + return bridging::toJs(rt, value); + } + + static double responseStartToJs(jsi::Runtime &rt, decltype(types.responseStart) value) { + return bridging::toJs(rt, value); + } + + static double responseEndToJs(jsi::Runtime &rt, decltype(types.responseEnd) value) { + return bridging::toJs(rt, value); + } + + static double responseStatusToJs(jsi::Runtime &rt, decltype(types.responseStatus) value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "name", bridging::toJs(rt, value.name, jsInvoker)); + result.setProperty(rt, "entryType", bridging::toJs(rt, value.entryType, jsInvoker)); + result.setProperty(rt, "startTime", bridging::toJs(rt, value.startTime, jsInvoker)); + result.setProperty(rt, "duration", bridging::toJs(rt, value.duration, jsInvoker)); + if (value.processingStart) { + result.setProperty(rt, "processingStart", bridging::toJs(rt, value.processingStart.value(), jsInvoker)); + } + if (value.processingEnd) { + result.setProperty(rt, "processingEnd", bridging::toJs(rt, value.processingEnd.value(), jsInvoker)); + } + if (value.interactionId) { + result.setProperty(rt, "interactionId", bridging::toJs(rt, value.interactionId.value(), jsInvoker)); + } + if (value.fetchStart) { + result.setProperty(rt, "fetchStart", bridging::toJs(rt, value.fetchStart.value(), jsInvoker)); + } + if (value.requestStart) { + result.setProperty(rt, "requestStart", bridging::toJs(rt, value.requestStart.value(), jsInvoker)); + } + if (value.connectStart) { + result.setProperty(rt, "connectStart", bridging::toJs(rt, value.connectStart.value(), jsInvoker)); + } + if (value.connectEnd) { + result.setProperty(rt, "connectEnd", bridging::toJs(rt, value.connectEnd.value(), jsInvoker)); + } + if (value.responseStart) { + result.setProperty(rt, "responseStart", bridging::toJs(rt, value.responseStart.value(), jsInvoker)); + } + if (value.responseEnd) { + result.setProperty(rt, "responseEnd", bridging::toJs(rt, value.responseEnd.value(), jsInvoker)); + } + if (value.responseStatus) { + result.setProperty(rt, "responseStatus", bridging::toJs(rt, value.responseStatus.value(), jsInvoker)); + } + return result; + } +}; + + +class JSI_EXPORT NativePerformanceCxxSpecJSI : public TurboModule { +protected: + NativePerformanceCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual double now(jsi::Runtime &rt) = 0; + virtual double markWithResult(jsi::Runtime &rt, jsi::String name, std::optional startTime) = 0; + virtual jsi::Array measureWithResult(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional duration, std::optional startMark, std::optional endMark) = 0; + virtual void clearMarks(jsi::Runtime &rt, std::optional entryName) = 0; + virtual void clearMeasures(jsi::Runtime &rt, std::optional entryName) = 0; + virtual jsi::Array getEntries(jsi::Runtime &rt) = 0; + virtual jsi::Array getEntriesByName(jsi::Runtime &rt, jsi::String entryName, std::optional entryType) = 0; + virtual jsi::Array getEntriesByType(jsi::Runtime &rt, double entryType) = 0; + virtual jsi::Array getEventCounts(jsi::Runtime &rt) = 0; + virtual jsi::Object getSimpleMemoryInfo(jsi::Runtime &rt) = 0; + virtual jsi::Object getReactNativeStartupTiming(jsi::Runtime &rt) = 0; + virtual jsi::Value createObserver(jsi::Runtime &rt, jsi::Function callback) = 0; + virtual double getDroppedEntriesCount(jsi::Runtime &rt, jsi::Value observer) = 0; + virtual void observe(jsi::Runtime &rt, jsi::Value observer, jsi::Object options) = 0; + virtual void disconnect(jsi::Runtime &rt, jsi::Value observer) = 0; + virtual jsi::Array takeRecords(jsi::Runtime &rt, jsi::Value observer, bool sort) = 0; + virtual jsi::Array getSupportedPerformanceEntryTypes(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativePerformanceCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativePerformanceCxx"; + +protected: + NativePerformanceCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativePerformanceCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativePerformanceCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePerformanceCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + double now(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::now) == 1, + "Expected now(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::now, jsInvoker_, instance_); + } + double markWithResult(jsi::Runtime &rt, jsi::String name, std::optional startTime) override { + static_assert( + bridging::getParameterCount(&T::markWithResult) == 3, + "Expected markWithResult(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::markWithResult, jsInvoker_, instance_, std::move(name), std::move(startTime)); + } + jsi::Array measureWithResult(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional duration, std::optional startMark, std::optional endMark) override { + static_assert( + bridging::getParameterCount(&T::measureWithResult) == 7, + "Expected measureWithResult(...) to have 7 parameters"); + + return bridging::callFromJs( + rt, &T::measureWithResult, jsInvoker_, instance_, std::move(name), std::move(startTime), std::move(endTime), std::move(duration), std::move(startMark), std::move(endMark)); + } + void clearMarks(jsi::Runtime &rt, std::optional entryName) override { + static_assert( + bridging::getParameterCount(&T::clearMarks) == 2, + "Expected clearMarks(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::clearMarks, jsInvoker_, instance_, std::move(entryName)); + } + void clearMeasures(jsi::Runtime &rt, std::optional entryName) override { + static_assert( + bridging::getParameterCount(&T::clearMeasures) == 2, + "Expected clearMeasures(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::clearMeasures, jsInvoker_, instance_, std::move(entryName)); + } + jsi::Array getEntries(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getEntries) == 1, + "Expected getEntries(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getEntries, jsInvoker_, instance_); + } + jsi::Array getEntriesByName(jsi::Runtime &rt, jsi::String entryName, std::optional entryType) override { + static_assert( + bridging::getParameterCount(&T::getEntriesByName) == 3, + "Expected getEntriesByName(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getEntriesByName, jsInvoker_, instance_, std::move(entryName), std::move(entryType)); + } + jsi::Array getEntriesByType(jsi::Runtime &rt, double entryType) override { + static_assert( + bridging::getParameterCount(&T::getEntriesByType) == 2, + "Expected getEntriesByType(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getEntriesByType, jsInvoker_, instance_, std::move(entryType)); + } + jsi::Array getEventCounts(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getEventCounts) == 1, + "Expected getEventCounts(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getEventCounts, jsInvoker_, instance_); + } + jsi::Object getSimpleMemoryInfo(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getSimpleMemoryInfo) == 1, + "Expected getSimpleMemoryInfo(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getSimpleMemoryInfo, jsInvoker_, instance_); + } + jsi::Object getReactNativeStartupTiming(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getReactNativeStartupTiming) == 1, + "Expected getReactNativeStartupTiming(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getReactNativeStartupTiming, jsInvoker_, instance_); + } + jsi::Value createObserver(jsi::Runtime &rt, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::createObserver) == 2, + "Expected createObserver(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::createObserver, jsInvoker_, instance_, std::move(callback)); + } + double getDroppedEntriesCount(jsi::Runtime &rt, jsi::Value observer) override { + static_assert( + bridging::getParameterCount(&T::getDroppedEntriesCount) == 2, + "Expected getDroppedEntriesCount(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getDroppedEntriesCount, jsInvoker_, instance_, std::move(observer)); + } + void observe(jsi::Runtime &rt, jsi::Value observer, jsi::Object options) override { + static_assert( + bridging::getParameterCount(&T::observe) == 3, + "Expected observe(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::observe, jsInvoker_, instance_, std::move(observer), std::move(options)); + } + void disconnect(jsi::Runtime &rt, jsi::Value observer) override { + static_assert( + bridging::getParameterCount(&T::disconnect) == 2, + "Expected disconnect(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::disconnect, jsInvoker_, instance_, std::move(observer)); + } + jsi::Array takeRecords(jsi::Runtime &rt, jsi::Value observer, bool sort) override { + static_assert( + bridging::getParameterCount(&T::takeRecords) == 3, + "Expected takeRecords(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::takeRecords, jsInvoker_, instance_, std::move(observer), std::move(sort)); + } + jsi::Array getSupportedPerformanceEntryTypes(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getSupportedPerformanceEntryTypes) == 1, + "Expected getSupportedPerformanceEntryTypes(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::getSupportedPerformanceEntryTypes, jsInvoker_, instance_); + } + + private: + friend class NativePerformanceCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeDOMCxxSpecJSI : public TurboModule { +protected: + NativeDOMCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual double compareDocumentPosition(jsi::Runtime &rt, jsi::Value nativeNodeReference, jsi::Value otherNativeNodeReference) = 0; + virtual jsi::Array getChildNodes(jsi::Runtime &rt, jsi::Value nativeNodeReference) = 0; + virtual jsi::Value getParentNode(jsi::Runtime &rt, jsi::Value nativeNodeReference) = 0; + virtual bool isConnected(jsi::Runtime &rt, jsi::Value nativeNodeReference) = 0; + virtual jsi::Array getBorderWidth(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; + virtual jsi::Array getBoundingClientRect(jsi::Runtime &rt, jsi::Value nativeElementReference, bool includeTransform) = 0; + virtual jsi::Array getInnerSize(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; + virtual jsi::Array getScrollPosition(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; + virtual jsi::Array getScrollSize(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; + virtual jsi::String getTagName(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; + virtual jsi::String getTextContent(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; + virtual bool hasPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) = 0; + virtual void releasePointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) = 0; + virtual void setPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) = 0; + virtual jsi::Array getOffset(jsi::Runtime &rt, jsi::Value nativeElementReference) = 0; + virtual jsi::Value linkRootNode(jsi::Runtime &rt, double rootTag, jsi::Value instanceHandle) = 0; + virtual void measure(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) = 0; + virtual void measureInWindow(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) = 0; + virtual void measureLayout(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value relativeNode, jsi::Function onFail, jsi::Function onSuccess) = 0; + virtual void setNativeProps(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value updatePayload) = 0; + +}; + +template +class JSI_EXPORT NativeDOMCxxSpec : public TurboModule { +public: + jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.create(rt, propName); + } + + std::vector getPropertyNames(jsi::Runtime& runtime) override { + return delegate_.getPropertyNames(runtime); + } + + static constexpr std::string_view kModuleName = "NativeDOMCxx"; + +protected: + NativeDOMCxxSpec(std::shared_ptr jsInvoker) + : TurboModule(std::string{NativeDOMCxxSpec::kModuleName}, jsInvoker), + delegate_(reinterpret_cast(this), jsInvoker) {} + + +private: + class Delegate : public NativeDOMCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDOMCxxSpecJSI(std::move(jsInvoker)), instance_(instance) { + + } + + double compareDocumentPosition(jsi::Runtime &rt, jsi::Value nativeNodeReference, jsi::Value otherNativeNodeReference) override { + static_assert( + bridging::getParameterCount(&T::compareDocumentPosition) == 3, + "Expected compareDocumentPosition(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::compareDocumentPosition, jsInvoker_, instance_, std::move(nativeNodeReference), std::move(otherNativeNodeReference)); + } + jsi::Array getChildNodes(jsi::Runtime &rt, jsi::Value nativeNodeReference) override { + static_assert( + bridging::getParameterCount(&T::getChildNodes) == 2, + "Expected getChildNodes(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getChildNodes, jsInvoker_, instance_, std::move(nativeNodeReference)); + } + jsi::Value getParentNode(jsi::Runtime &rt, jsi::Value nativeNodeReference) override { + static_assert( + bridging::getParameterCount(&T::getParentNode) == 2, + "Expected getParentNode(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getParentNode, jsInvoker_, instance_, std::move(nativeNodeReference)); + } + bool isConnected(jsi::Runtime &rt, jsi::Value nativeNodeReference) override { + static_assert( + bridging::getParameterCount(&T::isConnected) == 2, + "Expected isConnected(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::isConnected, jsInvoker_, instance_, std::move(nativeNodeReference)); + } + jsi::Array getBorderWidth(jsi::Runtime &rt, jsi::Value nativeElementReference) override { + static_assert( + bridging::getParameterCount(&T::getBorderWidth) == 2, + "Expected getBorderWidth(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getBorderWidth, jsInvoker_, instance_, std::move(nativeElementReference)); + } + jsi::Array getBoundingClientRect(jsi::Runtime &rt, jsi::Value nativeElementReference, bool includeTransform) override { + static_assert( + bridging::getParameterCount(&T::getBoundingClientRect) == 3, + "Expected getBoundingClientRect(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getBoundingClientRect, jsInvoker_, instance_, std::move(nativeElementReference), std::move(includeTransform)); + } + jsi::Array getInnerSize(jsi::Runtime &rt, jsi::Value nativeElementReference) override { + static_assert( + bridging::getParameterCount(&T::getInnerSize) == 2, + "Expected getInnerSize(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getInnerSize, jsInvoker_, instance_, std::move(nativeElementReference)); + } + jsi::Array getScrollPosition(jsi::Runtime &rt, jsi::Value nativeElementReference) override { + static_assert( + bridging::getParameterCount(&T::getScrollPosition) == 2, + "Expected getScrollPosition(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getScrollPosition, jsInvoker_, instance_, std::move(nativeElementReference)); + } + jsi::Array getScrollSize(jsi::Runtime &rt, jsi::Value nativeElementReference) override { + static_assert( + bridging::getParameterCount(&T::getScrollSize) == 2, + "Expected getScrollSize(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getScrollSize, jsInvoker_, instance_, std::move(nativeElementReference)); + } + jsi::String getTagName(jsi::Runtime &rt, jsi::Value nativeElementReference) override { + static_assert( + bridging::getParameterCount(&T::getTagName) == 2, + "Expected getTagName(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getTagName, jsInvoker_, instance_, std::move(nativeElementReference)); + } + jsi::String getTextContent(jsi::Runtime &rt, jsi::Value nativeElementReference) override { + static_assert( + bridging::getParameterCount(&T::getTextContent) == 2, + "Expected getTextContent(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getTextContent, jsInvoker_, instance_, std::move(nativeElementReference)); + } + bool hasPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) override { + static_assert( + bridging::getParameterCount(&T::hasPointerCapture) == 3, + "Expected hasPointerCapture(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::hasPointerCapture, jsInvoker_, instance_, std::move(nativeElementReference), std::move(pointerId)); + } + void releasePointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) override { + static_assert( + bridging::getParameterCount(&T::releasePointerCapture) == 3, + "Expected releasePointerCapture(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::releasePointerCapture, jsInvoker_, instance_, std::move(nativeElementReference), std::move(pointerId)); + } + void setPointerCapture(jsi::Runtime &rt, jsi::Value nativeElementReference, double pointerId) override { + static_assert( + bridging::getParameterCount(&T::setPointerCapture) == 3, + "Expected setPointerCapture(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setPointerCapture, jsInvoker_, instance_, std::move(nativeElementReference), std::move(pointerId)); + } + jsi::Array getOffset(jsi::Runtime &rt, jsi::Value nativeElementReference) override { + static_assert( + bridging::getParameterCount(&T::getOffset) == 2, + "Expected getOffset(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::getOffset, jsInvoker_, instance_, std::move(nativeElementReference)); + } + jsi::Value linkRootNode(jsi::Runtime &rt, double rootTag, jsi::Value instanceHandle) override { + static_assert( + bridging::getParameterCount(&T::linkRootNode) == 3, + "Expected linkRootNode(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::linkRootNode, jsInvoker_, instance_, std::move(rootTag), std::move(instanceHandle)); + } + void measure(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::measure) == 3, + "Expected measure(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::measure, jsInvoker_, instance_, std::move(nativeElementReference), std::move(callback)); + } + void measureInWindow(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Function callback) override { + static_assert( + bridging::getParameterCount(&T::measureInWindow) == 3, + "Expected measureInWindow(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::measureInWindow, jsInvoker_, instance_, std::move(nativeElementReference), std::move(callback)); + } + void measureLayout(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value relativeNode, jsi::Function onFail, jsi::Function onSuccess) override { + static_assert( + bridging::getParameterCount(&T::measureLayout) == 5, + "Expected measureLayout(...) to have 5 parameters"); + + return bridging::callFromJs( + rt, &T::measureLayout, jsInvoker_, instance_, std::move(nativeElementReference), std::move(relativeNode), std::move(onFail), std::move(onSuccess)); + } + void setNativeProps(jsi::Runtime &rt, jsi::Value nativeElementReference, jsi::Value updatePayload) override { + static_assert( + bridging::getParameterCount(&T::setNativeProps) == 3, + "Expected setNativeProps(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setNativeProps, jsInvoker_, instance_, std::move(nativeElementReference), std::move(updatePayload)); + } + + private: + friend class NativeDOMCxxSpec; + T *instance_; + }; + + Delegate delegate_; +}; } // namespace facebook::react From 1d6b1f9a8629dd278f82207d82eb0b7dfb3d0faa Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 05:45:03 -0700 Subject: [PATCH 25/38] prettier --- .../automation/src/AutomationEnvironment.ts | 2 +- .../@react-native-windows/cli/src/utils/commandWithProgress.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@react-native-windows/automation/src/AutomationEnvironment.ts b/packages/@react-native-windows/automation/src/AutomationEnvironment.ts index b93438c04d6..63f32862b1d 100644 --- a/packages/@react-native-windows/automation/src/AutomationEnvironment.ts +++ b/packages/@react-native-windows/automation/src/AutomationEnvironment.ts @@ -243,7 +243,7 @@ export default class AutomationEnvironment extends NodeEnvironment { if (this.breakOnStart) { readlineSync.question( chalk.bold.yellow('Breaking before tests start\n') + - 'Press Enter to resume...', + 'Press Enter to resume...', ); } diff --git a/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts b/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts index b78eed125b6..98a99520265 100644 --- a/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts +++ b/packages/@react-native-windows/cli/src/utils/commandWithProgress.ts @@ -95,7 +95,7 @@ export function commandWithProgress( errorCategory: CodedErrorType, ) { return new Promise((resolve, reject) => { - const spawnOptions: SpawnOptions = verbose ? { stdio: 'inherit' } : {}; + const spawnOptions: SpawnOptions = verbose ? {stdio: 'inherit'} : {}; if (verbose) { spinner.stop(); From 944099cfcf6985c68b4a9217fe227b47096052fa Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 09:14:17 -0700 Subject: [PATCH 26/38] Update NuGet restore script --- .../NuGetRestoreForceEvaluateAllSolutions.ps1 | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/vnext/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 b/vnext/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 index df0adb0f8e3..cf4f26487c6 100644 --- a/vnext/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 +++ b/vnext/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 @@ -1,4 +1,5 @@ param( + [switch] $SkipLockDeletion ) [string] $RepoRoot = Resolve-Path "$PSScriptRoot\..\.." @@ -6,16 +7,17 @@ param( $StartingLocation = Get-Location Set-Location -Path $RepoRoot -try -{ - # Delete existing lock files - $existingLockFiles = (Get-ChildItem -File -Recurse -Path $RepoRoot -Filter *.lock.json) - $existingLockFiles | Foreach-Object { - Write-Host Deleting $_.FullName - Remove-Item $_.FullName +try { + if (-not $SkipLockDeletion) { + # Delete existing lock files + $existingLockFiles = (Get-ChildItem -File -Recurse -Path $RepoRoot -Filter *.lock.json) + $existingLockFiles | Foreach-Object { + Write-Host Deleting $_.FullName + Remove-Item $_.FullName + } } - $packagesSolutions = (Get-ChildItem -File -Recurse -Path $RepoRoot\packages -Filter *.sln )| Where-Object { !$_.FullName.Contains('node_modules') -and !$_.FullName.Contains('e2etest') } + $packagesSolutions = (Get-ChildItem -File -Recurse -Path $RepoRoot\packages -Filter *.sln ) | Where-Object { !$_.FullName.Contains('node_modules') -and !$_.FullName.Contains('e2etest') } $vnextSolutions = (Get-ChildItem -File -Path $RepoRoot\vnext -Filter *.sln) # Run all solutions with their defaults @@ -25,20 +27,12 @@ try } # Re-run solutions that build with UseExperimentalWinUI3 - $experimentalSolutions = @("playground-composition.sln", "Microsoft.ReactNative.sln", "Microsoft.ReactNative.NewArch.sln", "ReactWindows-Desktop.sln"); + $experimentalSolutions = @("playground-composition.sln", "Microsoft.ReactNative.NewArch.sln", "ReactWindows-Desktop.sln"); $($packagesSolutions; $vnextSolutions) | Where-Object { $experimentalSolutions -contains $_.Name } | Foreach-Object { Write-Host Restoring $_.FullName with UseExperimentalWinUI3=true & msbuild /t:Restore /p:RestoreForceEvaluate=true /p:UseExperimentalWinUI3=true $_.FullName } - - # Re-run solutions that build with Chakra - $chakraSolutions = @("ReactUWPTestApp.sln", "integrationtest.sln"); - $($packagesSolutions; $vnextSolutions) | Where-Object { $chakraSolutions -contains $_.Name } | Foreach-Object { - Write-Host Restoring $_.FullName with UseHermes=false - & msbuild /t:Restore /p:RestoreForceEvaluate=true /p:UseHermes=false $_.FullName - } } -finally -{ +finally { Set-Location -Path "$StartingLocation" } \ No newline at end of file From 2db733e5db58f80aef5691318ae8d006d7478c20 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 09:14:36 -0700 Subject: [PATCH 27/38] Update package locks --- .../AutomationChannel/packages.lock.json | 2 +- .../packages.newarch.lock.json | 144 +- .../packages.lock.json | 150 +- .../RNTesterApp-Fabric/packages.lock.json | 126 +- .../packages.lock.json | 148 +- .../playground-composition/packages.lock.json | 92 +- .../packages.lock.json | 146 +- .../SampleAppFabric/packages.lock.json | 122 +- .../SampleCustomComponent/packages.lock.json | 90 +- .../packages.experimentalwinui3.lock.json | 3 +- .../packages.lock.json | 2 +- ...kages.newarch.experimentalwinui3.lock.json | 6 +- .../packages.lock.json | 1824 +----------- .../packages.lock.json | 2614 +---------------- .../Microsoft.ReactNative/packages.lock.json | 2 +- vnext/Mso.UnitTests/packages.lock.json | 2 +- ...kages.newarch.experimentalwinui3.lock.json | 6 +- .../packages.experimentalwinui3.lock.json | 6 +- 18 files changed, 538 insertions(+), 4947 deletions(-) diff --git a/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.lock.json b/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.lock.json index 0ddfeeb61d9..bffe46cffed 100644 --- a/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.lock.json +++ b/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.lock.json @@ -137,4 +137,4 @@ } } } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.newarch.lock.json b/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.newarch.lock.json index de2a5d7fc7c..8cd18a63447 100644 --- a/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.newarch.lock.json +++ b/packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.newarch.lock.json @@ -22,19 +22,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Build.Tasks.Git": { @@ -78,17 +78,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -96,63 +96,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -178,7 +178,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -205,11 +205,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -227,11 +227,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -249,11 +249,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -271,11 +271,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -293,11 +293,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -315,11 +315,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -337,11 +337,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } diff --git a/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric.Package/packages.lock.json b/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric.Package/packages.lock.json index f53593e7c48..40610bbc2df 100644 --- a/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric.Package/packages.lock.json +++ b/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric.Package/packages.lock.json @@ -53,33 +53,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -87,63 +87,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "automationchannel": { @@ -151,7 +151,7 @@ "dependencies": { "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "boost": "[1.84.0, )" } }, @@ -178,7 +178,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -197,7 +197,7 @@ "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "SampleCustomComponent": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -207,7 +207,7 @@ "dependencies": { "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "boost": "[1.84.0, )" } } @@ -225,11 +225,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -246,11 +246,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -267,11 +267,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -288,11 +288,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -309,11 +309,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -330,11 +330,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -351,13 +351,13 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } } -} +} \ No newline at end of file diff --git a/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/packages.lock.json b/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/packages.lock.json index 4cd07c87e6a..80011e3c6ef 100644 --- a/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/packages.lock.json +++ b/packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/packages.lock.json @@ -28,19 +28,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Build.Tasks.Git": { @@ -79,17 +79,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -97,63 +97,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "automationchannel": { @@ -161,7 +161,7 @@ "dependencies": { "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "boost": "[1.84.0, )" } }, @@ -188,7 +188,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -205,7 +205,7 @@ "dependencies": { "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "boost": "[1.84.0, )" } } @@ -224,11 +224,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -246,11 +246,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -268,11 +268,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -290,13 +290,13 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } } -} +} \ No newline at end of file diff --git a/packages/playground/windows/playground-composition.Package/packages.lock.json b/packages/playground/windows/playground-composition.Package/packages.lock.json index bf11cb13115..168bd992c6d 100644 --- a/packages/playground/windows/playground-composition.Package/packages.lock.json +++ b/packages/playground/windows/playground-composition.Package/packages.lock.json @@ -53,33 +53,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -87,63 +87,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -169,7 +169,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -180,7 +180,7 @@ "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "SampleCustomComponent": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -197,7 +197,7 @@ "dependencies": { "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "boost": "[1.84.0, )" } } @@ -215,11 +215,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -236,11 +236,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -257,11 +257,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -278,11 +278,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -299,11 +299,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -320,11 +320,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -341,13 +341,13 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } } -} +} \ No newline at end of file diff --git a/packages/playground/windows/playground-composition/packages.lock.json b/packages/playground/windows/playground-composition/packages.lock.json index 4ab8de54643..02132e4d882 100644 --- a/packages/playground/windows/playground-composition/packages.lock.json +++ b/packages/playground/windows/playground-composition/packages.lock.json @@ -28,19 +28,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Build.Tasks.Git": { @@ -79,17 +79,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -97,63 +97,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -179,7 +179,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -196,10 +196,10 @@ "dependencies": { "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "boost": "[1.84.0, )" } } } } -} +} \ No newline at end of file diff --git a/packages/sample-app-fabric/windows/SampleAppFabric.Package/packages.lock.json b/packages/sample-app-fabric/windows/SampleAppFabric.Package/packages.lock.json index d86420f528e..dbf58cdedde 100644 --- a/packages/sample-app-fabric/windows/SampleAppFabric.Package/packages.lock.json +++ b/packages/sample-app-fabric/windows/SampleAppFabric.Package/packages.lock.json @@ -53,33 +53,33 @@ }, "Microsoft.WindowsAppSDK": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -87,63 +87,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -169,7 +169,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -187,7 +187,7 @@ "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.ReactNative": "[1.0.0, )", "Microsoft.VCRTForwarders.140": "[1.0.2-rc, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "boost": "[1.84.0, )" } } @@ -205,11 +205,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -226,11 +226,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -247,11 +247,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -268,11 +268,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -289,11 +289,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -310,11 +310,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -331,13 +331,13 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } } -} +} \ No newline at end of file diff --git a/packages/sample-app-fabric/windows/SampleAppFabric/packages.lock.json b/packages/sample-app-fabric/windows/SampleAppFabric/packages.lock.json index be7fe2eb151..a1ad7720d65 100644 --- a/packages/sample-app-fabric/windows/SampleAppFabric/packages.lock.json +++ b/packages/sample-app-fabric/windows/SampleAppFabric/packages.lock.json @@ -28,19 +28,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Build.Tasks.Git": { @@ -79,17 +79,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -97,63 +97,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -179,7 +179,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -206,11 +206,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -228,11 +228,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -250,11 +250,11 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } }, @@ -272,13 +272,13 @@ }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } } } } -} +} \ No newline at end of file diff --git a/packages/sample-custom-component/windows/SampleCustomComponent/packages.lock.json b/packages/sample-custom-component/windows/SampleCustomComponent/packages.lock.json index e9139ab9372..d241f75cc29 100644 --- a/packages/sample-custom-component/windows/SampleCustomComponent/packages.lock.json +++ b/packages/sample-custom-component/windows/SampleCustomComponent/packages.lock.json @@ -22,19 +22,19 @@ }, "Microsoft.WindowsAppSDK": { "type": "Direct", - "requested": "[1.8.251106002, )", - "resolved": "1.8.251106002", - "contentHash": "IiDYOHJahku9GuajXLCNWkrhsG+Fbd2GsWpINLXhm3nF8mXzGPmFtateotJWnE0BKCa4Ua1+O4nYJ4gUC9+NXg==", + "requested": "[1.8.260508005, )", + "resolved": "1.8.260508005", + "contentHash": "+aA+zrvqJKgsn/1TPOSR0Uy7dkMO5jI/+cDWPu2pWmXe4KQxYkR8gQFY9IrfbgCxxSd/yl1zMcAKD/4HBbNqaw==", "dependencies": { - "Microsoft.WindowsAppSDK.AI": "[1.8.39]", - "Microsoft.WindowsAppSDK.Base": "[1.8.250831001]", - "Microsoft.WindowsAppSDK.DWrite": "[1.8.25090401]", - "Microsoft.WindowsAppSDK.Foundation": "[1.8.251104000]", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.251104001]", - "Microsoft.WindowsAppSDK.ML": "[1.8.2109]", - "Microsoft.WindowsAppSDK.Runtime": "[1.8.251106002]", - "Microsoft.WindowsAppSDK.Widgets": "[1.8.250904007]", - "Microsoft.WindowsAppSDK.WinUI": "[1.8.251105000]" + "Microsoft.WindowsAppSDK.AI": "[1.8.76]", + "Microsoft.WindowsAppSDK.Base": "[1.8.251216001]", + "Microsoft.WindowsAppSDK.DWrite": "[1.8.25122902]", + "Microsoft.WindowsAppSDK.Foundation": "[1.8.260505001]", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "[1.8.260430001]", + "Microsoft.WindowsAppSDK.ML": "[1.8.2197]", + "Microsoft.WindowsAppSDK.Runtime": "[1.8.260508005]", + "Microsoft.WindowsAppSDK.Widgets": "[1.8.251231004]", + "Microsoft.WindowsAppSDK.WinUI": "[1.8.260505002]" } }, "Microsoft.Build.Tasks.Git": { @@ -78,17 +78,17 @@ }, "Microsoft.WindowsAppSDK.AI": { "type": "Transitive", - "resolved": "1.8.39", - "contentHash": "jYx8PqQZjB59MU+/IcelwWa0iUnNYkSIWyirDLb50/6uaSVK+FMKsdvV5ZxVuQmBIBUjqReOLRAdlsxxOVAE1Q==", + "resolved": "1.8.76", + "contentHash": "Ayn9QybcwzH+c8eQlE7dm2oO3Jrcn2uohLcsHJpCbLOAfcisjzwtSBe0oyulbaJ86R4eDSX3RDS25tsjGpIqyQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260501000" } }, "Microsoft.WindowsAppSDK.Base": { "type": "Transitive", - "resolved": "1.8.250831001", - "contentHash": "8LlfXBS2Hpw+OoVXViJmIOPXl0nMbqMaFR3j6+QHFNc62VULwPEcXiMRcP2WbV/+mtC7W2LH6yx6uu/Hrr9lVw==", + "resolved": "1.8.251216001", + "contentHash": "PS1wriuFknz3W2F2P/e6RvOTM35w89Lsj/f0QmUEPrJjKnc+jM0JLX1vfdytI14y1gNRUTm9uclwP0aH/SVU5w==", "dependencies": { "Microsoft.Windows.SDK.BuildTools": "10.0.26100.4654", "Microsoft.Windows.SDK.BuildTools.MSIX": "1.7.20250829.1" @@ -96,63 +96,63 @@ }, "Microsoft.WindowsAppSDK.DWrite": { "type": "Transitive", - "resolved": "1.8.25090401", - "contentHash": "WJ0p9yMgiNYqU2O5ZKCXcb7FBjryIUUopgeYMvnlf1yBUYgdjMFMkoJqYVqkz866wnntiB2IZhLxEzhFzvVs1A==", + "resolved": "1.8.25122902", + "contentHash": "zFNn07i7Cyz62Y8FnPQAyzeZK7ww3m9t42i9pzy4C04pNbyUDQ4fG7pB6VSh6n4EyFuYtuFQuDzt4mKmXFrkrg==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Foundation": { "type": "Transitive", - "resolved": "1.8.251104000", - "contentHash": "vvL3zpC8klGcaxUA7RbMuUMVAABD7jEMFhNKGAewOvey18i64mslbU0aIQM3+Bu4tQKsaGXSWYrJFsAU/Op4OA==", + "resolved": "1.8.260505001", + "contentHash": "41SSoEn3sKKCAVPA/w18zVJwV1C7aDEkPS2f6Zyp19m27tDEmteEp0XS3Ln3b0ElYR4FfPEPvIDbJPSA9vePGw==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "Microsoft.WindowsAppSDK.InteractiveExperiences": { "type": "Transitive", - "resolved": "1.8.251104001", - "contentHash": "t4Vs1eMJqUpa5CbZ5SvO4j5VdyhNwtarNfYJAWar8dHejpNol3g+/t0l0ovKye+DKQpinWdGkuQSUX8Oc8M3ug==", + "resolved": "1.8.260430001", + "contentHash": "fTPCnQb3ZarMh9khlEfbLDllcZzK0tSP+2S6W/T4cPyLLSAmARm8Gd3AC5kqubnDjzTvG+1lNZ1bZGFsIHplJQ==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.ML": { "type": "Transitive", - "resolved": "1.8.2109", - "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", + "resolved": "1.8.2197", + "contentHash": "6Bc1SOLd5HicY3GbF+zr76YBfH4iZOKeEGxTK/lHKAK2ExZTWavOADxB2CKSi/irF4dWSngUdRFopWPmckJ6fA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001" } }, "Microsoft.WindowsAppSDK.Runtime": { "type": "Transitive", - "resolved": "1.8.251106002", - "contentHash": "5piaqsoXOTFXdtiGoqLhVPkG0HE3UD0g/S4D2i7I8MPO48eoaESJ4y/oUHzZFmSaqLQROWe8NJ9rXXNxxiL/gw==", + "resolved": "1.8.260508005", + "contentHash": "2JqXzA4heHSkkaXJNyEvYtpv2wsEUMhwQzgXmZsFmYSkUXSdeVc6hdHcWoBK1SY9l1Sjd1brLt7h16kIpgh2kA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.Widgets": { "type": "Transitive", - "resolved": "1.8.250904007", - "contentHash": "sgwdXYhb8S4JjBmWWiFxALT1xK0fJeAbisolctmodMX7tlvBXDgUyvl/GHfTQ61DGIiW+kokX61WR46L2YlhAA==", + "resolved": "1.8.251231004", + "contentHash": "bIWqQYR8DCoB1SoPOMil5AtgtkTn438wJTdpsHgyO/6o7Eh7PMP5BzrR0KbDsFqy+4LhPWQ4vtwko5k93fECcA==", "dependencies": { - "Microsoft.WindowsAppSDK.Base": "1.8.250831001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001" } }, "Microsoft.WindowsAppSDK.WinUI": { "type": "Transitive", - "resolved": "1.8.251105000", - "contentHash": "G/f0Z27ALjjrrfjCUPxPSBkG6eLB20pBja8AFIOI87oYMGUKGwuMuZn7LqPkeQJMFPo04FonfljdJCIpsfnnbw==", + "resolved": "1.8.260505002", + "contentHash": "/hGl6EOmo8aeJR2bYbOmGhOicnJK4EY+u+cQI+jm8H1uXThfMX32DsfKOt9LkOcu8AKX3j5FpiBay8ObUSytIw==", "dependencies": { "Microsoft.Web.WebView2": "1.0.3179.45", - "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", - "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.251104001" + "Microsoft.WindowsAppSDK.Base": "1.8.251216001", + "Microsoft.WindowsAppSDK.Foundation": "1.8.260505001", + "Microsoft.WindowsAppSDK.InteractiveExperiences": "1.8.260430001" } }, "common": { @@ -178,7 +178,7 @@ "Folly": "[1.0.0, )", "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )", "Microsoft.SourceLink.GitHub": "[1.1.1, )", - "Microsoft.WindowsAppSDK": "[1.8.251106002, )", + "Microsoft.WindowsAppSDK": "[1.8.260508005, )", "ReactCommon": "[1.0.0, )", "boost": "[1.84.0, )" } @@ -192,4 +192,4 @@ } } } -} +} \ No newline at end of file diff --git a/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json b/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json index 20cb2765475..af9f6b2441d 100644 --- a/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json +++ b/vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json @@ -118,7 +118,8 @@ "contentHash": "gfsSXBJrlsfnl1IID3AEasUvZXFFZk6n4iD2JP5BfheySaoWr/1JJVbqKYyRr7APe2kRzyztVW3eaj7KMfgR5A==", "dependencies": { "Microsoft.WindowsAppSDK.Base": "1.8.250831001", - "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000" + "Microsoft.WindowsAppSDK.Foundation": "1.8.251104000", + "System.Numerics.Tensors": "9.0.0" } }, "Microsoft.WindowsAppSDK.Runtime": { diff --git a/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json b/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json index dd6b19cb880..896d01c88ca 100644 --- a/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json +++ b/vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json @@ -152,4 +152,4 @@ } } } -} +} \ No newline at end of file diff --git a/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.experimentalwinui3.lock.json b/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.experimentalwinui3.lock.json index fb8e2581f47..6d20aeb086c 100644 --- a/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.experimentalwinui3.lock.json +++ b/vnext/Microsoft.ReactNative.IntegrationTests/packages.newarch.experimentalwinui3.lock.json @@ -10,9 +10,9 @@ }, "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.VCRTForwarders.140": { "type": "Direct", diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json index b30300df4cc..bf54594810f 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json @@ -1,7 +1,7 @@ { "version": 1, "dependencies": { - "net8.0": { + "net10.0": { "coverlet.collector": { "type": "Direct", "requested": "[3.1.2, )", @@ -45,8 +45,7 @@ "resolved": "2.2.10", "contentHash": "KOc7XVNM0Q5GrTAx4RhxTgwdt9O5gOqSzmLpUMyl9ywa6vvUNFVQ9nCjtEE7qDQW54MZdc82e287PzZDc7yQtA==", "dependencies": { - "Newtonsoft.Json": "10.0.3", - "System.Diagnostics.TextWriterTraceListener": "4.3.0" + "Newtonsoft.Json": "10.0.3" } }, "MSTest.TestFramework": { @@ -530,13 +529,7 @@ "resolved": "4.3.1", "contentHash": "wexpJffSEEwptwe6UTMxRDZCCtz+XubI4Qewl4JECnNhcQrtb0anhSUEV9Nz7WkoNfWkx1fptR8xh1egoxYrqw==", "dependencies": { - "Microsoft.CodeAnalysis.Analyzers": "3.3.3", - "System.Collections.Immutable": "6.0.0", - "System.Memory": "4.5.4", - "System.Reflection.Metadata": "5.0.0", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encoding.CodePages": "6.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" + "Microsoft.CodeAnalysis.Analyzers": "3.3.3" } }, "Microsoft.CodeAnalysis.Workspaces.Common": { @@ -547,8 +540,7 @@ "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "[4.3.1]", - "System.Composition": "6.0.0", - "System.IO.Pipelines": "6.0.3" + "System.Composition": "6.0.0" } }, "Microsoft.CodeCoverage": { @@ -571,8 +563,7 @@ "resolved": "17.3.2", "contentHash": "DJEIfSA2GDC+2m42vKGNR2hm+Uhta4SpCsLZVVvYIiYMjxtk7GzNnv82qvE4SCW3kIYllMg2D0rr8juuj/f7AA==", "dependencies": { - "NuGet.Frameworks": "5.11.0", - "System.Reflection.Metadata": "1.6.0" + "NuGet.Frameworks": "5.11.0" } }, "Microsoft.TestPlatform.TestHost": { @@ -584,65 +575,12 @@ "Newtonsoft.Json": "9.0.1" } }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, "NETStandard.Library": { "type": "Transitive", "resolved": "1.6.1", "contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==", "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Net.Http": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Net.Sockets": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Timer": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0" + "Microsoft.NETCore.Platforms": "1.1.0" } }, "NuGet.Frameworks": { @@ -650,113 +588,6 @@ "resolved": "5.11.0", "contentHash": "eaiXkUjC4NPcquGWzAGMXjuxvLwc6XGKMptSyOGQeT0X70BUZObuybJFZLA0OfTdueLd3US23NBPTBb6iF3V1Q==" }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, "RuntimeContracts": { "type": "Transitive", "resolved": "0.3.0", @@ -771,61 +602,6 @@ "resolved": "0.3.0", "contentHash": "dcNFLPRXqdzKK/upZqMZFoKgXrA3q/b2uq84aIMI1tRCyyaT6+/4n/eY/0FIhKHhfTBLjMfOzBVVhTDC6o4TmQ==" }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Collections.Immutable": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, "System.Composition": { "type": "Transitive", "resolved": "6.0.0", @@ -874,1600 +650,16 @@ "System.Composition.Runtime": "6.0.0" } }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Diagnostics.TextWriterTraceListener": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "F11kHWeiwYjFWto+kr8tt9ULMH0k8MsT1XmdCGPTLYHhWgN+2g7JsIZiXDrxlFGccSNkbjfwQy4xIS38gzUiZA==", - "dependencies": { - "System.Diagnostics.TraceSource": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.TraceSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VnYp1NxGx8Ww731y2LJ1vpfb/DKVNKEZ8Jsh5SgQTZREL/YpWRArgh9pI8CDLmgHspZmLL697CaLvH85qQpRiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.IO.Pipelines": { - "type": "Transitive", - "resolved": "6.0.3", - "contentHash": "ryTgF+iFkpGZY1vRQhfCzX0xTdlV3pyaTTqRu2ETbEv+HlV7O6y7hyQURnghNIXvctl5DuZ//Dpks6HdL/Txgw==" - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==" - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sYg+FtILtRQuYWSIAuNOELwVuVsxVyJGWQyOnlAzhV4xvhyFnON1bAzYYC+jjRW8JREM45R0R5Dgi8MTC5sEwA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==" - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.CodePages": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==" - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, "microsoft.reactnative.managed.codegen": { "type": "Project", "dependencies": { "Humanizer": "[2.14.1, )", "Microsoft.CodeAnalysis.CSharp": "[4.3.1, )", "Microsoft.CodeAnalysis.CSharp.Workspaces": "[4.3.1, )", - "RuntimeContracts": "[0.3.0, )", - "System.Private.Uri": "[4.3.2, )" + "RuntimeContracts": "[0.3.0, )" } } }, - "net8.0/win-x64": { - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.Microsoft.Win32.Primitives": "4.3.0" - } - }, - "runtime.any.System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "23g6rqftKmovn2cLeGsuHUYm0FD7pdutb0uQMJpZ3qTvq+zHkgmt6J65VtRry4WDGYlmkMa4xDACtaQ94alNag==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "runtime.any.System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "S/GPBmfPBB48ZghLxdDR7kDAJVAqgAuThyDJho3OLP5OS4tWD2ydyL8LKm8lhiBxce10OKe9X2zZ6DUjAqEbPg==" - }, - "runtime.any.System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1lpifymjGDzoYIaam6/Hyqf8GhBI3xXYLK2TgEvTtuZMorG3Kb9QnMTIKhLjJYXIiu1JvxjngHvtVFQQlpQ3HQ==" - }, - "runtime.any.System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sMDBnad4rp4t7GY442Jux0MCUuKL4otn5BK6Ni0ARTXTSpRNBzZ7hpMfKSvnVSED5kYJm96YOWsqV0JH0d2uuw==" - }, - "runtime.any.System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "M1r+760j1CNA6M/ZaW6KX8gOS8nxPRqloqDcJYVidRG566Ykwcs29AweZs2JF+nMOCgWDiMfPSTMfvwOI9F77w==" - }, - "runtime.any.System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "SDZ5AD1DtyRoxYtEcqQ3HDlcrorMYXZeCt7ZhG9US9I5Vva+gpIWDGMkcwa5XiKL0ceQKRZIX2x0XEjLX7PDzQ==" - }, - "runtime.any.System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "hLC3A3rI8jipR5d9k7+f0MgRCW6texsAp0MWkN/ci18FMtQ9KH7E2vDn/DH2LkxsszlpJpOn9qy6Z6/69rH6eQ==" - }, - "runtime.any.System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cPhT+Vqu52+cQQrDai/V91gubXUnDKNRvlBnH+hOgtGyHdC17aQIU64EaehwAQymd7kJA5rSrVRNfDYrbhnzyA==" - }, - "runtime.any.System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Nrm1p3armp6TTf2xuvaa+jGTTmncALWFq22CpmwRvhDf6dE9ZmH40EbOswD4GnFLrMRS0Ki6Kx5aUPmKK/hZBg==" - }, - "runtime.any.System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lxb89SMvf8w9p9+keBLyL6H6x/TEmc6QVsIIA0T36IuyOY3kNvIdyGddA2qt35cRamzxF8K5p0Opq4G4HjNbhQ==" - }, - "runtime.any.System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fRS7zJgaG9NkifaAxGGclDDoRn9HC7hXACl52Or06a/fxdzDajWb5wov3c6a+gVSlekRoexfjwQSK9sh5um5LQ==", - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, - "runtime.any.System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GG84X6vufoEzqx8PbeBKheE4srOhimv+yLtGb/JkR3Y2FmoqmueLNFU4Xx8Y67plFpltQSdK74x0qlEhIpv/CQ==" - }, - "runtime.any.System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "lBoFeQfxe/4eqjPi46E0LU/YaCMdNkQ8B4MZu/mkzdIAZh8RQ1NYZSj0egrQKdgdvlPFtP4STtob40r4o2DBAw==" - }, - "runtime.any.System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+ihI5VaXFCMVPJNstG4O4eo1CfbrByLxRrQQTqOTp1ttK0kUKDqOdBSTaCB2IBk/QtjDrs6+x4xuezyMXdm0HQ==" - }, - "runtime.any.System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NLrxmLsfRrOuVqPWG+2lrQZnE53MLVeo+w9c54EV+TUo4c8rILpsDXfY8pPiOy9kHpUHHP07ugKmtsU3vVW5Jg==" - }, - "runtime.any.System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OhBAVBQG5kFj1S+hCEQ3TUHBAEtZ3fbEMgZMRNdN8A0Pj4x+5nTELEqL59DU0TjKVE6II3dqKw4Dklb3szT65w==" - }, - "runtime.any.System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "w4ehZJ+AwXYmGwYu+rMvym6RvMaRiUEQR1u6dwcyuKHxz8Heu/mO9AG1MquEgTyucnhv3M43X0iKpDOoN17C0w==" - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "runtime.win.Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NU51SEt/ZaD2MF48sJ17BIqx7rjeNNLXUevfMOjqQIetdndXwYjZfZsT6jD+rSWp/FYxjesdK4xUSl4OTEI0jw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "runtime.win.System.Console": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "vHPXC3B18dxhyipVce8xQT1MQv1o5srYZqBlCNu9p9MNjhgGOntdQh/Xh2X4o7M2F839YUcQiGwu8Q498FyDjg==", - "dependencies": { - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "hHHP0WCStene2jjeYcuDkETozUYF/3sHVRHAEOgS3L15hlip24ssqCTnJC28Z03Wpo078oMcJd0H4egD2aJI8g==" - }, - "runtime.win.System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z37zcSCpXuGCYtFbqYO0TwOVXxS2d+BXgSoDFZmRg8BC4Cuy54edjyIvhhcfCrDQA9nl+EPFTgHN54dRAK7mNA==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "lkXXykakvXUU+Zq2j0pC6EO20lEhijjqMc01XXpp1CJN+DeCwl3nsj4t5Xbpz3kA7yQyTqw6d9SyIzsyLsV3zA==", - "dependencies": { - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "runtime.win.System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FK/2gX6MmuLIKNCGsV59Fe4IYrLrI5n9pQ1jh477wiivEM/NCXDT2dRetH5FSfY0bQ+VgTLcS3zcmjQ8my3nxQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Net.NameResolution": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RkgHVhUPvzZxuUubiZe8yr/6CypRVXj0VBzaR8hsqQ8f+rUo7e4PWrHTLOCjd8fBMGWCrY//fi7Ku3qXD7oHRw==", - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Collections": "4.3.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.win.System.Console": "4.3.1" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Diagnostics.Debug": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tools": "4.3.0" - } - }, - "System.Diagnostics.TraceSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VnYp1NxGx8Ww731y2LJ1vpfb/DKVNKEZ8Jsh5SgQTZREL/YpWRArgh9pI8CDLmgHspZmLL697CaLvH85qQpRiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tracing": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization.Calendars": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.any.System.IO": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.IO.FileSystem": "4.3.0" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sYg+FtILtRQuYWSIAuNOELwVuVsxVyJGWQyOnlAzhV4xvhyFnON1bAzYYC+jjRW8JREM45R0R5Dgi8MTC5sEwA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.NameResolution": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "AFYl08R7MrsrEjqpQWTZWBadqXyTzNDaWpMqyxhb0d6sGhV6xMDKueuBXlLL30gz+DIRY6MpdgnHWlCh5wmq9w==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.win.System.Net.Primitives": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.Net.Sockets": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Extensions": "4.3.0" - } - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Primitives": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Resources.ResourceManager": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "runtime.any.System.Runtime": "4.3.0" - } - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Runtime.Extensions": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.any.System.Runtime.InteropServices": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Security.Claims": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "P/+BR/2lnc4PNDHt/TPBAWHVMLMRHsyYZbU1NphW4HIWzCggz8mJbTQQ3MKljFE7LS3WagmVFuBgoLcFzYXlkA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Security.Principal": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Principal": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I1tkfQlAoMM2URscUtpcRo/hX0jinXx6a/KUtEQoz3owaYwl3qwsO8cbzYVVnjxrzxjHo3nJC+62uolgeGIS9A==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Security.Principal.Windows": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HVL1rvqYtnRCxFsYag/2le/ZfKLK4yMw79+s6FmKXbSCNN0JeAhrYxnRAHFoWRa0dEojsDcbBSpH3l22QxAVyw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Claims": "4.3.0", - "System.Security.Principal": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encoding.CodePages": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.any.System.Text.Encoding.Extensions": "4.3.0" - } - }, - "System.Threading.Overlapped": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m3HQ2dPiX/DSTpf+yJt8B0c+SRvzfqAJKx+QDWi+VLhz8svLT23MVjEOHPF/KiSLeArKU/iHescrbLd3yVgyNg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Timer": "4.3.0" - } - } - } + "net10.0/win-x64": {} } } \ No newline at end of file diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json b/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json index 6854d1fe363..969ea3c0bb4 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json @@ -1,7 +1,7 @@ { "version": 1, "dependencies": { - "net8.0": { + "net10.0": { "Humanizer": { "type": "Direct", "requested": "[2.14.1, )", @@ -503,13 +503,7 @@ "resolved": "4.3.1", "contentHash": "wexpJffSEEwptwe6UTMxRDZCCtz+XubI4Qewl4JECnNhcQrtb0anhSUEV9Nz7WkoNfWkx1fptR8xh1egoxYrqw==", "dependencies": { - "Microsoft.CodeAnalysis.Analyzers": "3.3.3", - "System.Collections.Immutable": "6.0.0", - "System.Memory": "4.5.4", - "System.Reflection.Metadata": "5.0.0", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encoding.CodePages": "6.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" + "Microsoft.CodeAnalysis.Analyzers": "3.3.3" } }, "Microsoft.CodeAnalysis.Workspaces.Common": { @@ -520,8 +514,7 @@ "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "[4.3.1]", - "System.Composition": "6.0.0", - "System.IO.Pipelines": "6.0.3" + "System.Composition": "6.0.0" } }, "Microsoft.NETCore.Platforms": { @@ -534,234 +527,19 @@ "resolved": "1.1.3", "contentHash": "3Wrmi0kJDzClwAC+iBdUBpEKmEle8FQNsCs77fkiOIw/9oYA07bL1EZNX0kQ2OMN3xpwvl0vAtOCYY3ndDNlhQ==" }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, "NETStandard.Library": { "type": "Transitive", "resolved": "1.6.1", "contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==", "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Net.Http": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Net.Sockets": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Timer": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" + "Microsoft.NETCore.Platforms": "1.1.0" } }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, "RuntimeContracts.Analyzer": { "type": "Transitive", "resolved": "0.3.0", "contentHash": "dcNFLPRXqdzKK/upZqMZFoKgXrA3q/b2uq84aIMI1tRCyyaT6+/4n/eY/0FIhKHhfTBLjMfOzBVVhTDC6o4TmQ==" }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Collections.Immutable": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, "System.Composition": { "type": "Transitive", "resolved": "6.0.0", @@ -809,2389 +587,9 @@ "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.IO.Pipelines": { - "type": "Transitive", - "resolved": "6.0.3", - "contentHash": "ryTgF+iFkpGZY1vRQhfCzX0xTdlV3pyaTTqRu2ETbEv+HlV7O6y7hyQURnghNIXvctl5DuZ//Dpks6HdL/Txgw==" - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==" - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sYg+FtILtRQuYWSIAuNOELwVuVsxVyJGWQyOnlAzhV4xvhyFnON1bAzYYC+jjRW8JREM45R0R5Dgi8MTC5sEwA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==" - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.CodePages": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==" - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - } - }, - "net8.0/win-x64": { - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.Microsoft.Win32.Primitives": "4.3.0" - } - }, - "runtime.any.System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "23g6rqftKmovn2cLeGsuHUYm0FD7pdutb0uQMJpZ3qTvq+zHkgmt6J65VtRry4WDGYlmkMa4xDACtaQ94alNag==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "runtime.any.System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "S/GPBmfPBB48ZghLxdDR7kDAJVAqgAuThyDJho3OLP5OS4tWD2ydyL8LKm8lhiBxce10OKe9X2zZ6DUjAqEbPg==" - }, - "runtime.any.System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1lpifymjGDzoYIaam6/Hyqf8GhBI3xXYLK2TgEvTtuZMorG3Kb9QnMTIKhLjJYXIiu1JvxjngHvtVFQQlpQ3HQ==" - }, - "runtime.any.System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sMDBnad4rp4t7GY442Jux0MCUuKL4otn5BK6Ni0ARTXTSpRNBzZ7hpMfKSvnVSED5kYJm96YOWsqV0JH0d2uuw==" - }, - "runtime.any.System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "M1r+760j1CNA6M/ZaW6KX8gOS8nxPRqloqDcJYVidRG566Ykwcs29AweZs2JF+nMOCgWDiMfPSTMfvwOI9F77w==" - }, - "runtime.any.System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "SDZ5AD1DtyRoxYtEcqQ3HDlcrorMYXZeCt7ZhG9US9I5Vva+gpIWDGMkcwa5XiKL0ceQKRZIX2x0XEjLX7PDzQ==" - }, - "runtime.any.System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "hLC3A3rI8jipR5d9k7+f0MgRCW6texsAp0MWkN/ci18FMtQ9KH7E2vDn/DH2LkxsszlpJpOn9qy6Z6/69rH6eQ==" - }, - "runtime.any.System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cPhT+Vqu52+cQQrDai/V91gubXUnDKNRvlBnH+hOgtGyHdC17aQIU64EaehwAQymd7kJA5rSrVRNfDYrbhnzyA==" - }, - "runtime.any.System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Nrm1p3armp6TTf2xuvaa+jGTTmncALWFq22CpmwRvhDf6dE9ZmH40EbOswD4GnFLrMRS0Ki6Kx5aUPmKK/hZBg==" - }, - "runtime.any.System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lxb89SMvf8w9p9+keBLyL6H6x/TEmc6QVsIIA0T36IuyOY3kNvIdyGddA2qt35cRamzxF8K5p0Opq4G4HjNbhQ==" - }, - "runtime.any.System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fRS7zJgaG9NkifaAxGGclDDoRn9HC7hXACl52Or06a/fxdzDajWb5wov3c6a+gVSlekRoexfjwQSK9sh5um5LQ==", - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, - "runtime.any.System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GG84X6vufoEzqx8PbeBKheE4srOhimv+yLtGb/JkR3Y2FmoqmueLNFU4Xx8Y67plFpltQSdK74x0qlEhIpv/CQ==" - }, - "runtime.any.System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "lBoFeQfxe/4eqjPi46E0LU/YaCMdNkQ8B4MZu/mkzdIAZh8RQ1NYZSj0egrQKdgdvlPFtP4STtob40r4o2DBAw==" - }, - "runtime.any.System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+ihI5VaXFCMVPJNstG4O4eo1CfbrByLxRrQQTqOTp1ttK0kUKDqOdBSTaCB2IBk/QtjDrs6+x4xuezyMXdm0HQ==" - }, - "runtime.any.System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NLrxmLsfRrOuVqPWG+2lrQZnE53MLVeo+w9c54EV+TUo4c8rILpsDXfY8pPiOy9kHpUHHP07ugKmtsU3vVW5Jg==" - }, - "runtime.any.System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OhBAVBQG5kFj1S+hCEQ3TUHBAEtZ3fbEMgZMRNdN8A0Pj4x+5nTELEqL59DU0TjKVE6II3dqKw4Dklb3szT65w==" - }, - "runtime.any.System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "w4ehZJ+AwXYmGwYu+rMvym6RvMaRiUEQR1u6dwcyuKHxz8Heu/mO9AG1MquEgTyucnhv3M43X0iKpDOoN17C0w==" - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "runtime.win.Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NU51SEt/ZaD2MF48sJ17BIqx7rjeNNLXUevfMOjqQIetdndXwYjZfZsT6jD+rSWp/FYxjesdK4xUSl4OTEI0jw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "runtime.win.System.Console": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "vHPXC3B18dxhyipVce8xQT1MQv1o5srYZqBlCNu9p9MNjhgGOntdQh/Xh2X4o7M2F839YUcQiGwu8Q498FyDjg==", - "dependencies": { - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "hHHP0WCStene2jjeYcuDkETozUYF/3sHVRHAEOgS3L15hlip24ssqCTnJC28Z03Wpo078oMcJd0H4egD2aJI8g==" - }, - "runtime.win.System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z37zcSCpXuGCYtFbqYO0TwOVXxS2d+BXgSoDFZmRg8BC4Cuy54edjyIvhhcfCrDQA9nl+EPFTgHN54dRAK7mNA==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "lkXXykakvXUU+Zq2j0pC6EO20lEhijjqMc01XXpp1CJN+DeCwl3nsj4t5Xbpz3kA7yQyTqw6d9SyIzsyLsV3zA==", - "dependencies": { - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "runtime.win.System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FK/2gX6MmuLIKNCGsV59Fe4IYrLrI5n9pQ1jh477wiivEM/NCXDT2dRetH5FSfY0bQ+VgTLcS3zcmjQ8my3nxQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Net.NameResolution": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RkgHVhUPvzZxuUubiZe8yr/6CypRVXj0VBzaR8hsqQ8f+rUo7e4PWrHTLOCjd8fBMGWCrY//fi7Ku3qXD7oHRw==", - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Collections": "4.3.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.win.System.Console": "4.3.1" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Diagnostics.Debug": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tools": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tracing": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization.Calendars": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.any.System.IO": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.IO.FileSystem": "4.3.0" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sYg+FtILtRQuYWSIAuNOELwVuVsxVyJGWQyOnlAzhV4xvhyFnON1bAzYYC+jjRW8JREM45R0R5Dgi8MTC5sEwA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.NameResolution": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "AFYl08R7MrsrEjqpQWTZWBadqXyTzNDaWpMqyxhb0d6sGhV6xMDKueuBXlLL30gz+DIRY6MpdgnHWlCh5wmq9w==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.win.System.Net.Primitives": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.Net.Sockets": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Extensions": "4.3.0" - } - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Primitives": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Resources.ResourceManager": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "runtime.any.System.Runtime": "4.3.0" - } - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Runtime.Extensions": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.any.System.Runtime.InteropServices": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Security.Claims": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "P/+BR/2lnc4PNDHt/TPBAWHVMLMRHsyYZbU1NphW4HIWzCggz8mJbTQQ3MKljFE7LS3WagmVFuBgoLcFzYXlkA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Security.Principal": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Principal": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I1tkfQlAoMM2URscUtpcRo/hX0jinXx6a/KUtEQoz3owaYwl3qwsO8cbzYVVnjxrzxjHo3nJC+62uolgeGIS9A==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Security.Principal.Windows": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HVL1rvqYtnRCxFsYag/2le/ZfKLK4yMw79+s6FmKXbSCNN0JeAhrYxnRAHFoWRa0dEojsDcbBSpH3l22QxAVyw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Claims": "4.3.0", - "System.Security.Principal": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encoding.CodePages": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.any.System.Text.Encoding.Extensions": "4.3.0" - } - }, - "System.Threading.Overlapped": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m3HQ2dPiX/DSTpf+yJt8B0c+SRvzfqAJKx+QDWi+VLhz8svLT23MVjEOHPF/KiSLeArKU/iHescrbLd3yVgyNg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Timer": "4.3.0" - } } }, - "net8.0/win-x86": { - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.Microsoft.Win32.Primitives": "4.3.0" - } - }, - "runtime.any.System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "23g6rqftKmovn2cLeGsuHUYm0FD7pdutb0uQMJpZ3qTvq+zHkgmt6J65VtRry4WDGYlmkMa4xDACtaQ94alNag==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "runtime.any.System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "S/GPBmfPBB48ZghLxdDR7kDAJVAqgAuThyDJho3OLP5OS4tWD2ydyL8LKm8lhiBxce10OKe9X2zZ6DUjAqEbPg==" - }, - "runtime.any.System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1lpifymjGDzoYIaam6/Hyqf8GhBI3xXYLK2TgEvTtuZMorG3Kb9QnMTIKhLjJYXIiu1JvxjngHvtVFQQlpQ3HQ==" - }, - "runtime.any.System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sMDBnad4rp4t7GY442Jux0MCUuKL4otn5BK6Ni0ARTXTSpRNBzZ7hpMfKSvnVSED5kYJm96YOWsqV0JH0d2uuw==" - }, - "runtime.any.System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "M1r+760j1CNA6M/ZaW6KX8gOS8nxPRqloqDcJYVidRG566Ykwcs29AweZs2JF+nMOCgWDiMfPSTMfvwOI9F77w==" - }, - "runtime.any.System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "SDZ5AD1DtyRoxYtEcqQ3HDlcrorMYXZeCt7ZhG9US9I5Vva+gpIWDGMkcwa5XiKL0ceQKRZIX2x0XEjLX7PDzQ==" - }, - "runtime.any.System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "hLC3A3rI8jipR5d9k7+f0MgRCW6texsAp0MWkN/ci18FMtQ9KH7E2vDn/DH2LkxsszlpJpOn9qy6Z6/69rH6eQ==" - }, - "runtime.any.System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cPhT+Vqu52+cQQrDai/V91gubXUnDKNRvlBnH+hOgtGyHdC17aQIU64EaehwAQymd7kJA5rSrVRNfDYrbhnzyA==" - }, - "runtime.any.System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Nrm1p3armp6TTf2xuvaa+jGTTmncALWFq22CpmwRvhDf6dE9ZmH40EbOswD4GnFLrMRS0Ki6Kx5aUPmKK/hZBg==" - }, - "runtime.any.System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lxb89SMvf8w9p9+keBLyL6H6x/TEmc6QVsIIA0T36IuyOY3kNvIdyGddA2qt35cRamzxF8K5p0Opq4G4HjNbhQ==" - }, - "runtime.any.System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fRS7zJgaG9NkifaAxGGclDDoRn9HC7hXACl52Or06a/fxdzDajWb5wov3c6a+gVSlekRoexfjwQSK9sh5um5LQ==", - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, - "runtime.any.System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GG84X6vufoEzqx8PbeBKheE4srOhimv+yLtGb/JkR3Y2FmoqmueLNFU4Xx8Y67plFpltQSdK74x0qlEhIpv/CQ==" - }, - "runtime.any.System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "lBoFeQfxe/4eqjPi46E0LU/YaCMdNkQ8B4MZu/mkzdIAZh8RQ1NYZSj0egrQKdgdvlPFtP4STtob40r4o2DBAw==" - }, - "runtime.any.System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+ihI5VaXFCMVPJNstG4O4eo1CfbrByLxRrQQTqOTp1ttK0kUKDqOdBSTaCB2IBk/QtjDrs6+x4xuezyMXdm0HQ==" - }, - "runtime.any.System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NLrxmLsfRrOuVqPWG+2lrQZnE53MLVeo+w9c54EV+TUo4c8rILpsDXfY8pPiOy9kHpUHHP07ugKmtsU3vVW5Jg==" - }, - "runtime.any.System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OhBAVBQG5kFj1S+hCEQ3TUHBAEtZ3fbEMgZMRNdN8A0Pj4x+5nTELEqL59DU0TjKVE6II3dqKw4Dklb3szT65w==" - }, - "runtime.any.System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "w4ehZJ+AwXYmGwYu+rMvym6RvMaRiUEQR1u6dwcyuKHxz8Heu/mO9AG1MquEgTyucnhv3M43X0iKpDOoN17C0w==" - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "runtime.win.Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NU51SEt/ZaD2MF48sJ17BIqx7rjeNNLXUevfMOjqQIetdndXwYjZfZsT6jD+rSWp/FYxjesdK4xUSl4OTEI0jw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "runtime.win.System.Console": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "vHPXC3B18dxhyipVce8xQT1MQv1o5srYZqBlCNu9p9MNjhgGOntdQh/Xh2X4o7M2F839YUcQiGwu8Q498FyDjg==", - "dependencies": { - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "hHHP0WCStene2jjeYcuDkETozUYF/3sHVRHAEOgS3L15hlip24ssqCTnJC28Z03Wpo078oMcJd0H4egD2aJI8g==" - }, - "runtime.win.System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z37zcSCpXuGCYtFbqYO0TwOVXxS2d+BXgSoDFZmRg8BC4Cuy54edjyIvhhcfCrDQA9nl+EPFTgHN54dRAK7mNA==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "lkXXykakvXUU+Zq2j0pC6EO20lEhijjqMc01XXpp1CJN+DeCwl3nsj4t5Xbpz3kA7yQyTqw6d9SyIzsyLsV3zA==", - "dependencies": { - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "runtime.win.System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FK/2gX6MmuLIKNCGsV59Fe4IYrLrI5n9pQ1jh477wiivEM/NCXDT2dRetH5FSfY0bQ+VgTLcS3zcmjQ8my3nxQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Net.NameResolution": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RkgHVhUPvzZxuUubiZe8yr/6CypRVXj0VBzaR8hsqQ8f+rUo7e4PWrHTLOCjd8fBMGWCrY//fi7Ku3qXD7oHRw==", - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Collections": "4.3.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.win.System.Console": "4.3.1" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Diagnostics.Debug": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tools": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tracing": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization.Calendars": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.any.System.IO": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.IO.FileSystem": "4.3.0" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "sYg+FtILtRQuYWSIAuNOELwVuVsxVyJGWQyOnlAzhV4xvhyFnON1bAzYYC+jjRW8JREM45R0R5Dgi8MTC5sEwA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.NameResolution": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "AFYl08R7MrsrEjqpQWTZWBadqXyTzNDaWpMqyxhb0d6sGhV6xMDKueuBXlLL30gz+DIRY6MpdgnHWlCh5wmq9w==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.win.System.Net.Primitives": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.Net.Sockets": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Extensions": "4.3.0" - } - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Primitives": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Resources.ResourceManager": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "runtime.any.System.Runtime": "4.3.0" - } - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Runtime.Extensions": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.any.System.Runtime.InteropServices": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Security.Claims": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "P/+BR/2lnc4PNDHt/TPBAWHVMLMRHsyYZbU1NphW4HIWzCggz8mJbTQQ3MKljFE7LS3WagmVFuBgoLcFzYXlkA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Security.Principal": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Principal": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I1tkfQlAoMM2URscUtpcRo/hX0jinXx6a/KUtEQoz3owaYwl3qwsO8cbzYVVnjxrzxjHo3nJC+62uolgeGIS9A==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Security.Principal.Windows": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HVL1rvqYtnRCxFsYag/2le/ZfKLK4yMw79+s6FmKXbSCNN0JeAhrYxnRAHFoWRa0dEojsDcbBSpH3l22QxAVyw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Claims": "4.3.0", - "System.Security.Principal": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encoding.CodePages": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.any.System.Text.Encoding.Extensions": "4.3.0" - } - }, - "System.Threading.Overlapped": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m3HQ2dPiX/DSTpf+yJt8B0c+SRvzfqAJKx+QDWi+VLhz8svLT23MVjEOHPF/KiSLeArKU/iHescrbLd3yVgyNg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Timer": "4.3.0" - } - } - } + "net10.0/win-x64": {}, + "net10.0/win-x86": {} } } \ No newline at end of file diff --git a/vnext/Microsoft.ReactNative/packages.lock.json b/vnext/Microsoft.ReactNative/packages.lock.json index 2a8eef8d22a..741a7cdadbf 100644 --- a/vnext/Microsoft.ReactNative/packages.lock.json +++ b/vnext/Microsoft.ReactNative/packages.lock.json @@ -128,4 +128,4 @@ } } } -} +} \ No newline at end of file diff --git a/vnext/Mso.UnitTests/packages.lock.json b/vnext/Mso.UnitTests/packages.lock.json index 974db2ebb33..63fd769e7f2 100644 --- a/vnext/Mso.UnitTests/packages.lock.json +++ b/vnext/Mso.UnitTests/packages.lock.json @@ -20,4 +20,4 @@ "native,Version=v0.0/win-x64": {}, "native,Version=v0.0/win-x86": {} } -} +} \ No newline at end of file diff --git a/vnext/Mso.UnitTests/packages.newarch.experimentalwinui3.lock.json b/vnext/Mso.UnitTests/packages.newarch.experimentalwinui3.lock.json index 0d89dcb297e..8718c97365b 100644 --- a/vnext/Mso.UnitTests/packages.newarch.experimentalwinui3.lock.json +++ b/vnext/Mso.UnitTests/packages.newarch.experimentalwinui3.lock.json @@ -4,9 +4,9 @@ "native,Version=v0.0": { "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "FxNwT4YpsGdqforqFSTGc5f/e+qfRJ+1wf5G1w0nEEkT5pr5M95E5+fOuswpPUGXPZIXM+M7BSVGnCRcQZjomA==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "RHZUuFTnYzkHPRM5muZfw4SRL/EIHFz7nIkKl1mJKPISvzi1wWtK7k/oJIpw3pWVkdFyEfnBQP8vX1fFpe7Mpw==" }, "Microsoft.Windows.CppWinRT": { "type": "Direct", diff --git a/vnext/ReactCommon.UnitTests/packages.experimentalwinui3.lock.json b/vnext/ReactCommon.UnitTests/packages.experimentalwinui3.lock.json index 6f133559530..1c6c70390b3 100644 --- a/vnext/ReactCommon.UnitTests/packages.experimentalwinui3.lock.json +++ b/vnext/ReactCommon.UnitTests/packages.experimentalwinui3.lock.json @@ -10,9 +10,9 @@ }, "Microsoft.googletest.v140.windesktop.msvcstl.static.rt-static": { "type": "Direct", - "requested": "[1.8.1.7, )", - "resolved": "1.8.1.7", - "contentHash": "Yk78bz9F/6wDjOiM3ZeyErqsHsAbHYLZ2ptB1DdOriMPZATsDy3nMridgbc4+IrtEo7+eAUVdyMkWYNyf/X34g==" + "requested": "[1.8.1.8, )", + "resolved": "1.8.1.8", + "contentHash": "8ERSAJiqTgn9EEwGqWR0Sj9Pt7Cm9eYsqnjRDTj/ihopPmZsOsrLnwgGMLe9VV9+uDoKeJ1Y46WJ9zAizSkQ8g==" }, "ReactNative.V8Jsi.Windows": { "type": "Direct", From dc38d493b4a9e9fbc3dba10b5953bdbbff4f9488 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 09:25:08 -0700 Subject: [PATCH 28/38] prettier --- vnext/src-win/IntegrationTests/XHRTest.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vnext/src-win/IntegrationTests/XHRTest.js b/vnext/src-win/IntegrationTests/XHRTest.js index 2b85a9a0f3d..18d7d3be27d 100644 --- a/vnext/src-win/IntegrationTests/XHRTest.js +++ b/vnext/src-win/IntegrationTests/XHRTest.js @@ -19,8 +19,7 @@ const EXPECTED_CONTENT = 'Sample Static Text File'; const xhr = new XMLHttpRequest(); xhr.onloadend = () => { const responseText = xhr.responseText || ''; - const passed = - xhr.status === 200 && responseText === EXPECTED_CONTENT; + const passed = xhr.status === 200 && responseText === EXPECTED_CONTENT; TestModule.markTestPassed(passed); }; xhr.onerror = () => { From f8866003d7b9c1cecea21fd464617e74a4a253fb Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 17:29:04 -0700 Subject: [PATCH 29/38] prettier --- vnext/src-win/IntegrationTests/XHRTest.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vnext/src-win/IntegrationTests/XHRTest.js b/vnext/src-win/IntegrationTests/XHRTest.js index 2b85a9a0f3d..18d7d3be27d 100644 --- a/vnext/src-win/IntegrationTests/XHRTest.js +++ b/vnext/src-win/IntegrationTests/XHRTest.js @@ -19,8 +19,7 @@ const EXPECTED_CONTENT = 'Sample Static Text File'; const xhr = new XMLHttpRequest(); xhr.onloadend = () => { const responseText = xhr.responseText || ''; - const passed = - xhr.status === 200 && responseText === EXPECTED_CONTENT; + const passed = xhr.status === 200 && responseText === EXPECTED_CONTENT; TestModule.markTestPassed(passed); }; xhr.onerror = () => { From 753d8f525b115c291e284ad89035f7785d6f6ac3 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 18:41:24 -0700 Subject: [PATCH 30/38] Address warnings as errors: - Added missing template disambiguator for dependent try_as call - Added missing template disambiguator for dependent as calls in generic lambdas - Rewrote assignment-in-condition to explicit candidate check to remove C4874 --- .../Microsoft.ReactNative/Modules/NativeUIManager.cpp | 3 ++- vnext/Microsoft.ReactNative/Utils/PropertyUtils.h | 2 +- .../Views/FrameworkElementViewManager.cpp | 2 +- .../Microsoft.ReactNative/Views/ScrollViewManager.cpp | 10 +++++----- vnext/Microsoft.ReactNative/Views/TextViewManager.cpp | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/vnext/Microsoft.ReactNative/Modules/NativeUIManager.cpp b/vnext/Microsoft.ReactNative/Modules/NativeUIManager.cpp index e0a18d9544e..777023e502d 100644 --- a/vnext/Microsoft.ReactNative/Modules/NativeUIManager.cpp +++ b/vnext/Microsoft.ReactNative/Modules/NativeUIManager.cpp @@ -1108,7 +1108,8 @@ void NativeUIManager::findSubviewIn( xaml::FrameworkElement foundElement = nullptr; for (const auto &elem : hitTestElements) { - if (foundElement = elem.try_as()) { + if (const auto candidate = elem.try_as()) { + foundElement = candidate; auto tag = GetTag(foundElement); if (tag != InvalidTag) { foundTag = tag; diff --git a/vnext/Microsoft.ReactNative/Utils/PropertyUtils.h b/vnext/Microsoft.ReactNative/Utils/PropertyUtils.h index c9c5e87f27d..d08e57d7b0f 100644 --- a/vnext/Microsoft.ReactNative/Utils/PropertyUtils.h +++ b/vnext/Microsoft.ReactNative/Utils/PropertyUtils.h @@ -161,7 +161,7 @@ bool TryUpdateForeground( const std::string &propertyName, const winrt::Microsoft::ReactNative::JSValue &propertyValue) { if (propertyName == "color") { - auto uielement = element.try_as(); + auto uielement = element.template try_as(); if (IsValidColorValue(propertyValue)) { const auto brush = BrushFrom(propertyValue); element.Foreground(brush); diff --git a/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp b/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp index 99792880b7e..67bb789717e 100644 --- a/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +++ b/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp @@ -250,7 +250,7 @@ bool FrameworkElementViewManager::UpdateProperty( if (!element.IsLoaded()) { element.Loaded([=](auto sender, auto &&) -> auto{ - ApplyTransformMatrix(sender.as(), nodeToUpdate, transformMatrix); + ApplyTransformMatrix(sender.template as(), nodeToUpdate, transformMatrix); }); } else { ApplyTransformMatrix(element, nodeToUpdate, transformMatrix); diff --git a/vnext/Microsoft.ReactNative/Views/ScrollViewManager.cpp b/vnext/Microsoft.ReactNative/Views/ScrollViewManager.cpp index 51bf507196a..1ee9d8fec79 100644 --- a/vnext/Microsoft.ReactNative/Views/ScrollViewManager.cpp +++ b/vnext/Microsoft.ReactNative/Views/ScrollViewManager.cpp @@ -115,7 +115,7 @@ void ScrollViewShadowNode::createView(const winrt::Microsoft::ReactNative::JSVal m_scrollViewerViewChangedRevoker = scrollViewer.ViewChanged( winrt::auto_revoke, [this, scrollViewUWPImplementation](const auto &sender, const auto & /*args*/) { - const auto scrollViewerNotNull{sender.as()}; + const auto scrollViewerNotNull{sender.template as()}; const auto zoomFactor{scrollViewerNotNull.ZoomFactor()}; if (m_zoomFactor != zoomFactor) { m_zoomFactor = zoomFactor; @@ -238,7 +238,7 @@ void ScrollViewShadowNode::updateProperties(winrt::Microsoft::ReactNative::JSVal void ScrollViewShadowNode::AddHandlers(const winrt::ScrollViewer &scrollViewer) { m_scrollViewerViewChangingRevoker = scrollViewer.ViewChanging(winrt::auto_revoke, [this](const auto &sender, const auto &args) { - const auto scrollViewerNotNull = sender.as(); + const auto scrollViewerNotNull = sender.template as(); // If we are transitioning to inertial scrolling. if (m_isScrolling && !m_isScrollingFromInertia && args.IsInertial()) { @@ -281,7 +281,7 @@ void ScrollViewShadowNode::AddHandlers(const winrt::ScrollViewer &scrollViewer) m_SIPEventHandler->TryHide(); } - const auto scrollViewer = sender.as(); + const auto scrollViewer = sender.template as(); EmitScrollEvent( scrollViewer, m_tag, @@ -294,7 +294,7 @@ void ScrollViewShadowNode::AddHandlers(const winrt::ScrollViewer &scrollViewer) m_scrollViewerDirectManipulationCompletedRevoker = scrollViewer.DirectManipulationCompleted(winrt::auto_revoke, [this](const auto &sender, const auto &) { - const auto scrollViewer = sender.as(); + const auto scrollViewer = sender.template as(); if (m_isScrollingFromInertia) { EmitScrollEvent( scrollViewer, @@ -320,7 +320,7 @@ void ScrollViewShadowNode::AddHandlers(const winrt::ScrollViewer &scrollViewer) }); m_controlLoadedRevoker = scrollViewer.Loaded(winrt::auto_revoke, [this](const auto &sender, const auto &) { if (m_changeViewAfterLoaded) { - const auto scrollViewer = sender.as(); + const auto scrollViewer = sender.template as(); scrollViewer.ChangeView(nullptr, nullptr, static_cast(m_zoomFactor)); m_changeViewAfterLoaded = false; } diff --git a/vnext/Microsoft.ReactNative/Views/TextViewManager.cpp b/vnext/Microsoft.ReactNative/Views/TextViewManager.cpp index 3215cd49637..1d5ad45cc70 100644 --- a/vnext/Microsoft.ReactNative/Views/TextViewManager.cpp +++ b/vnext/Microsoft.ReactNative/Views/TextViewManager.cpp @@ -166,7 +166,7 @@ class TextShadowNode final : public ShadowNodeBase { m_selectionChangedRevoker = xamlView.as().SelectionChanged( winrt::auto_revoke, [selectionChanged = this->selectionChanged](const auto &sender, auto &&) { - const auto textBlock = sender.as(); + const auto textBlock = sender.template as(); *selectionChanged = *selectionChanged || textBlock.SelectionStart().Offset() != textBlock.SelectionEnd().Offset(); }); From 3dc0abdcc85ccda0030e0082ed7328b5da48d5d9 Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 22:35:08 -0700 Subject: [PATCH 31/38] prettier --- .../babel-node-config/babel.config.js | 6 +- .../babel-react-native-config/babel.config.js | 6 +- .../@rnw-scripts/eslint-config/eslintrc.js | 90 +++++++++++++------ .../jest-debug-config/jest.debug.config.js | 2 +- .../jest-e2e-config/jest.e2e.config.js | 2 +- .../jest.unittest.config.js | 2 +- packages/@rnw-scripts/just-task/just-task.js | 16 +++- 7 files changed, 87 insertions(+), 37 deletions(-) diff --git a/packages/@rnw-scripts/babel-node-config/babel.config.js b/packages/@rnw-scripts/babel-node-config/babel.config.js index 343ee99ffaf..fcaf7b62d97 100644 --- a/packages/@rnw-scripts/babel-node-config/babel.config.js +++ b/packages/@rnw-scripts/babel-node-config/babel.config.js @@ -17,7 +17,7 @@ module.exports = { '@babel/preset-typescript', ], plugins: [ - ["@babel/plugin-transform-private-methods", { "loose": true }], - ["@babel/plugin-transform-private-property-in-object", { "loose": true }] - ] + ['@babel/plugin-transform-private-methods', {loose: true}], + ['@babel/plugin-transform-private-property-in-object', {loose: true}], + ], }; diff --git a/packages/@rnw-scripts/babel-react-native-config/babel.config.js b/packages/@rnw-scripts/babel-react-native-config/babel.config.js index f03f91b29c3..46393e4ff42 100644 --- a/packages/@rnw-scripts/babel-react-native-config/babel.config.js +++ b/packages/@rnw-scripts/babel-react-native-config/babel.config.js @@ -8,9 +8,7 @@ module.exports = () => ({ presets: [ - ['module:@react-native/babel-preset', { disableDeepImportWarnings: true }] + ['module:@react-native/babel-preset', {disableDeepImportWarnings: true}], ], - plugins: [ - "babel-plugin-transform-flow-enums", - ] + plugins: ['babel-plugin-transform-flow-enums'], }); diff --git a/packages/@rnw-scripts/eslint-config/eslintrc.js b/packages/@rnw-scripts/eslint-config/eslintrc.js index a26b260fdaf..7d51f59d02f 100644 --- a/packages/@rnw-scripts/eslint-config/eslintrc.js +++ b/packages/@rnw-scripts/eslint-config/eslintrc.js @@ -12,7 +12,7 @@ module.exports = { 'jest/no-disabled-tests': 'off', 'react-native/no-inline-styles': 'off', 'no-void': 'off', - 'no-undef': 'off' + 'no-undef': 'off', }, env: { node: true, @@ -24,7 +24,7 @@ module.exports = { parserOptions: { parser: '@babel/eslint-parser', requireConfigFile: false, - } + }, }, { files: ['*.js', '*.js.flow', '*.jsx'], @@ -52,7 +52,7 @@ module.exports = { '@typescript-eslint/no-extra-non-null-assertion': 'error', '@typescript-eslint/no-floating-promises': [ 'error', - { ignoreIIFE: true }, + {ignoreIIFE: true}, ], '@typescript-eslint/no-for-in-array': 'error', '@typescript-eslint/no-misused-new': 'error', @@ -62,7 +62,7 @@ module.exports = { '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', '@typescript-eslint/no-unnecessary-condition': [ 'error', - { allowConstantLoopConditions: true }, + {allowConstantLoopConditions: true}, ], '@typescript-eslint/prefer-for-of': 'error', '@typescript-eslint/prefer-includes': 'error', @@ -70,28 +70,30 @@ module.exports = { '@typescript-eslint/prefer-string-starts-ends-with': 'error', '@typescript-eslint/switch-exhaustiveness-check': 'error', 'no-restricted-syntax': [ - 'error', { + 'error', + { selector: 'TSEnumDeclaration', - message: `Prefer union types (e.g. type Foo = 'bar' | 'baz') to TypeScript enums` - } + message: `Prefer union types (e.g. type Foo = 'bar' | 'baz') to TypeScript enums`, + }, ], 'block-scoped-var': 'error', - 'complexity': 'warn', - 'eqeqeq': [ 'error', 'allow-null' ], + complexity: 'warn', + eqeqeq: ['error', 'allow-null'], 'guard-for-in': 'error', 'no-constructor-return': 'error', 'no-useless-concat': 'error', 'no-restricted-imports': [ - 'error', { + 'error', + { name: 'fs', - message: 'Please use `@react-native-windows/fs` instead of `fs`' - } + message: 'Please use `@react-native-windows/fs` instead of `fs`', + }, ], 'no-var': 'error', 'prefer-arrow-callback': 'error', 'prefer-const': 'error', 'prefer-rest-params': 'error', - 'radix': 'error', + radix: 'error', }, }, { @@ -100,13 +102,32 @@ module.exports = { rules: { '@typescript-eslint/naming-convention': [ 'error', - { 'selector': 'typeLike', 'format': ['PascalCase'] }, - { 'selector': 'variable', 'format': ['camelCase', 'PascalCase', 'UPPER_CASE'] }, - { 'selector': 'method', 'format': ['camelCase'], leadingUnderscore: 'allow' }, - { 'selector': 'accessor', 'format': ['camelCase'], leadingUnderscore: 'allow' }, + {selector: 'typeLike', format: ['PascalCase']}, + { + selector: 'variable', + format: ['camelCase', 'PascalCase', 'UPPER_CASE'], + }, + { + selector: 'method', + format: ['camelCase'], + leadingUnderscore: 'allow', + }, + { + selector: 'accessor', + format: ['camelCase'], + leadingUnderscore: 'allow', + }, // Don't allow PascalCase functions or params in normal TS files - { 'selector': 'parameter', 'format': ['camelCase'], leadingUnderscore: 'allow' }, - { 'selector': 'function', 'format': ['camelCase'], leadingUnderscore: 'allow' }, + { + selector: 'parameter', + format: ['camelCase'], + leadingUnderscore: 'allow', + }, + { + selector: 'function', + format: ['camelCase'], + leadingUnderscore: 'allow', + }, ], }, }, @@ -115,13 +136,32 @@ module.exports = { rules: { '@typescript-eslint/naming-convention': [ 'error', - { 'selector': 'typeLike', 'format': ['PascalCase'] }, - { 'selector': 'variable', 'format': ['camelCase', 'PascalCase', 'UPPER_CASE'] }, - { 'selector': 'method', 'format': ['camelCase'], leadingUnderscore: 'allow' }, - { 'selector': 'accessor', 'format': ['camelCase'], leadingUnderscore: 'allow' }, + {selector: 'typeLike', format: ['PascalCase']}, + { + selector: 'variable', + format: ['camelCase', 'PascalCase', 'UPPER_CASE'], + }, + { + selector: 'method', + format: ['camelCase'], + leadingUnderscore: 'allow', + }, + { + selector: 'accessor', + format: ['camelCase'], + leadingUnderscore: 'allow', + }, // Allow PascalCase functions and params in TSX files for function components - { 'selector': 'parameter', 'format': ['camelCase', 'PascalCase'], leadingUnderscore: 'allow' }, - { 'selector': 'function', 'format': ['camelCase', 'PascalCase'], leadingUnderscore: 'allow' }, + { + selector: 'parameter', + format: ['camelCase', 'PascalCase'], + leadingUnderscore: 'allow', + }, + { + selector: 'function', + format: ['camelCase', 'PascalCase'], + leadingUnderscore: 'allow', + }, ], }, }, diff --git a/packages/@rnw-scripts/jest-debug-config/jest.debug.config.js b/packages/@rnw-scripts/jest-debug-config/jest.debug.config.js index 1a812c34b1a..e389da845ca 100644 --- a/packages/@rnw-scripts/jest-debug-config/jest.debug.config.js +++ b/packages/@rnw-scripts/jest-debug-config/jest.debug.config.js @@ -20,7 +20,7 @@ module.exports = { testEnvironment: 'node', // The pattern or patterns Jest uses to detect test files - testRegex: '/(test|e2etest)/.*\\.test\.ts$', + testRegex: '/(test|e2etest)/.*\\.test.ts$', // Default timeout of a test in milliseconds testTimeout: 600000, diff --git a/packages/@rnw-scripts/jest-e2e-config/jest.e2e.config.js b/packages/@rnw-scripts/jest-e2e-config/jest.e2e.config.js index c32a67939e9..208e1089e96 100644 --- a/packages/@rnw-scripts/jest-e2e-config/jest.e2e.config.js +++ b/packages/@rnw-scripts/jest-e2e-config/jest.e2e.config.js @@ -20,7 +20,7 @@ module.exports = { testEnvironment: 'node', // The pattern or patterns Jest uses to detect test files - testRegex: '/e2etest/.*\\.test\.ts$', + testRegex: '/e2etest/.*\\.test.ts$', // Default timeout of a test in milliseconds testTimeout: 300000, diff --git a/packages/@rnw-scripts/jest-unittest-config/jest.unittest.config.js b/packages/@rnw-scripts/jest-unittest-config/jest.unittest.config.js index 0ae3c168a44..a71fbb2b10b 100644 --- a/packages/@rnw-scripts/jest-unittest-config/jest.unittest.config.js +++ b/packages/@rnw-scripts/jest-unittest-config/jest.unittest.config.js @@ -20,7 +20,7 @@ module.exports = { testEnvironment: 'node', // The pattern or patterns Jest uses to detect test files - testRegex: '/test/.*\\.test\.ts$', + testRegex: '/test/.*\\.test.ts$', // Specifies the maximum number of workers the worker-pool will spawn for running tests. maxWorkers: 1, diff --git a/packages/@rnw-scripts/just-task/just-task.js b/packages/@rnw-scripts/just-task/just-task.js index 637d30733e0..40c2802d0f0 100644 --- a/packages/@rnw-scripts/just-task/just-task.js +++ b/packages/@rnw-scripts/just-task/just-task.js @@ -69,8 +69,20 @@ task('depcheck', async () => { } }); -task('prettier', prettierCheckTask({ files: path.resolve(process.cwd(), '**', '*.{ts,tsx,js,jsx}'), ignorePath: findUp.sync('.prettierignore', {cwd: __dirname}) })); -task('prettier:fix', prettierTask({ files: path.resolve(process.cwd(), '**', '*.{ts,tsx,js,jsx}'), ignorePath: findUp.sync('.prettierignore', {cwd: __dirname}) })); +task( + 'prettier', + prettierCheckTask({ + files: path.resolve(process.cwd(), '**', '*.{ts,tsx,js,jsx}'), + ignorePath: findUp.sync('.prettierignore', {cwd: __dirname}), + }), +); +task( + 'prettier:fix', + prettierTask({ + files: path.resolve(process.cwd(), '**', '*.{ts,tsx,js,jsx}'), + ignorePath: findUp.sync('.prettierignore', {cwd: __dirname}), + }), +); task('eslint', eslintTask()); task('eslint:fix', eslintTask({fix: true})); From 553c5e393eca012f9c71ec33a61b242403c408bd Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Tue, 9 Jun 2026 23:13:25 -0700 Subject: [PATCH 32/38] Remove System.Private.Uri --- ...actNative.Managed.CodeGen.UnitTests.csproj | 10 ---------- .../packages.lock.json | 19 ++----------------- ...crosoft.ReactNative.Managed.CodeGen.csproj | 10 ---------- .../packages.lock.json | 19 ++----------------- 4 files changed, 4 insertions(+), 54 deletions(-) diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj index 4e3c069ddf6..0e0bbb34e46 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj @@ -21,16 +21,6 @@ - - - diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json index bf54594810f..3367559525a 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json @@ -60,16 +60,6 @@ "resolved": "13.0.1", "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" }, - "System.Private.Uri": { - "type": "Direct", - "requested": "[4.3.2, )", - "resolved": "4.3.2", - "contentHash": "o1+7RJnu3Ik3PazR7Z7tJhjPdE000Eq2KGLLWhqJJKXj04wrS8lwb1OFtDF9jzXXADhUuZNJZlPc98uwwqmpFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.1", - "Microsoft.NETCore.Targets": "1.1.3" - } - }, "Humanizer": { "type": "Transitive", "resolved": "2.14.1", @@ -550,13 +540,8 @@ }, "Microsoft.NETCore.Platforms": { "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "TMBuzAHpTenGbGgk0SMTwyEkyijY/Eae4ZGsFNYJvAr/LDn1ku3Etp3FPxChmDp5HHF3kzJuoaa08N0xjqAJfQ==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.3", - "contentHash": "3Wrmi0kJDzClwAC+iBdUBpEKmEle8FQNsCs77fkiOIw/9oYA07bL1EZNX0kQ2OMN3xpwvl0vAtOCYY3ndDNlhQ==" + "resolved": "1.1.0", + "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" }, "Microsoft.TestPlatform.ObjectModel": { "type": "Transitive", diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj b/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj index bccc8d80bdf..b461aeed019 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj @@ -30,16 +30,6 @@ - - -