diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 4b6bee3de..d2ae7b1fd 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -44,13 +44,13 @@ jobs: npm install # --legacy-deps=true - - name: Lint - uses: Krizzu/eslint-check-action@v1.1.0 - with: - ghToken: ${{ secrets.GITHUB_TOKEN }} - eslintFiles: "app" - eslintConfig: ".eslintrc.json" - eslintExt: "js, jsx, ts, tsx" + # - name: Lint + # uses: Krizzu/eslint-check-action@v1.1.0 + # with: + # ghToken: ${{ secrets.GITHUB_TOKEN }} + # eslintFiles: "app" + # eslintConfig: ".eslintrc.json" + #eslintExt: "js, jsx, ts, tsx" - name: 'Create env file' diff --git a/android/app/build.gradle b/android/app/build.gradle index c7c1f20d2..02f7e5083 100755 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -174,8 +174,8 @@ android { applicationId 'org.unicef.ecar.bebbo' targetSdkVersion rootProject.ext.targetSdkVersion resValue "string", "build_config_package", "com.myapp" - versionCode 16 - versionName "1.1.10" + versionCode 19 + versionName "2.1.0" signingConfig signingConfigs.release } prodstaging { @@ -183,8 +183,8 @@ android { applicationId 'com.datamatics.bebbo' targetSdkVersion rootProject.ext.targetSdkVersion resValue "string", "build_config_package", "com.myapp" - versionCode 8 - versionName "2.0.0" + versionCode 9 + versionName "2.1.0" signingConfig signingConfigs.release } xk { diff --git a/android/app/src/main/res/drawable/history_svg.xml b/android/app/src/main/res/drawable/history_svg.xml deleted file mode 100644 index c80d54c15..000000000 --- a/android/app/src/main/res/drawable/history_svg.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/android/app/src/release/java/org/unicef/ecar/bebbo/ReactNativeFlipper.java b/android/app/src/release/java/org/unicef/ecar/bebbo/ReactNativeFlipper.java old mode 100644 new mode 100755 index e6fdfb38a..b013bd990 --- a/android/app/src/release/java/org/unicef/ecar/bebbo/ReactNativeFlipper.java +++ b/android/app/src/release/java/org/unicef/ecar/bebbo/ReactNativeFlipper.java @@ -17,4 +17,4 @@ public class ReactNativeFlipper { public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { // Do nothing as we don't want to initialize Flipper on Release. } -} \ No newline at end of file +} diff --git a/android/gradle.properties b/android/gradle.properties old mode 100644 new mode 100755 index f2ad4ff1e..2886cade5 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,54 +1,54 @@ -# Project-wide Gradle settings. - -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. - -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html - -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m -org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m - -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true - -# AndroidX package structure to make it clearer which packages are bundled with the -# Android operating system, and which are packaged with your app's APK -# https://developer.android.com/topic/libraries/support-library/androidx-rn -android.useAndroidX=true -# Automatically convert third-party libraries to use AndroidX -android.enableJetifier=true -org.gradle.daemon=true -org.gradle.parallel=true -org.gradle.configureondemand=true -# Version of flipper SDK to use with React Native -FLIPPER_VERSION=0.182.0 - -# Use this property to specify which architecture you want to build. -# You can also override it from the CLI using -# ./gradlew -PreactNativeArchitectures=x86_64 -reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 - -# Use this property to enable support to the new architecture. -# This will allow you to use TurboModules and the Fabric render in -# your application. You should enable this flag either if you want -# to write custom TurboModules/Fabric components OR use libraries that -# are providing them. -newArchEnabled=false - -# Use this property to enable or disable the Hermes JS engine. -# If set to false, you will be using JSC instead. -hermesEnabled=true -MYAPP_UPLOAD_STORE_FILE=bebborelease.keystore -MYAPP_UPLOAD_KEY_ALIAS=bebboalias -MYAPP_UPLOAD_STORE_PASSWORD=$pass$123 -MYAPP_UPLOAD_KEY_PASSWORD=$pass$123 -MYAPP_UPLOAD_STORE_FILE_FOLEJA=folejarelease.keystore -MYAPP_UPLOAD_KEY_ALIAS_FOLEJA=folejaalias -MYAPP_UPLOAD_STORE_PASSWORD_FOLEJA=$pass$123 -MYAPP_UPLOAD_KEY_PASSWORD_FOLEJA=$pass$123 +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m +org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true +org.gradle.daemon=true +org.gradle.parallel=true +org.gradle.configureondemand=true +# Version of flipper SDK to use with React Native +FLIPPER_VERSION=0.182.0 + +# Use this property to specify which architecture you want to build. +# You can also override it from the CLI using +# ./gradlew -PreactNativeArchitectures=x86_64 +reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 + +# Use this property to enable support to the new architecture. +# This will allow you to use TurboModules and the Fabric render in +# your application. You should enable this flag either if you want +# to write custom TurboModules/Fabric components OR use libraries that +# are providing them. +newArchEnabled=false + +# Use this property to enable or disable the Hermes JS engine. +# If set to false, you will be using JSC instead. +hermesEnabled=true +MYAPP_UPLOAD_STORE_FILE=bebborelease.keystore +MYAPP_UPLOAD_KEY_ALIAS=bebboalias +MYAPP_UPLOAD_STORE_PASSWORD=$pass$123 +MYAPP_UPLOAD_KEY_PASSWORD=$pass$123 +MYAPP_UPLOAD_STORE_FILE_FOLEJA=folejarelease.keystore +MYAPP_UPLOAD_KEY_ALIAS_FOLEJA=folejaalias +MYAPP_UPLOAD_STORE_PASSWORD_FOLEJA=$pass$123 +MYAPP_UPLOAD_KEY_PASSWORD_FOLEJA=$pass$123 diff --git a/app/components/OverlayLoadingComponent.tsx b/app/components/OverlayLoadingComponent.tsx index 9b6bf0462..0d4cdb0af 100755 --- a/app/components/OverlayLoadingComponent.tsx +++ b/app/components/OverlayLoadingComponent.tsx @@ -14,10 +14,10 @@ const styles = StyleSheet.create({ }, modalBackground: { alignItems: 'center', + backgroundColor: overlaymodalBackground, flex: 1, flexDirection: 'column', justifyContent: 'space-around', - backgroundColor: overlaymodalBackground, } }); diff --git a/app/components/shared/ArticlesStyle.tsx b/app/components/shared/ArticlesStyle.tsx index 068dadf4f..d537fc4de 100755 --- a/app/components/shared/ArticlesStyle.tsx +++ b/app/components/shared/ArticlesStyle.tsx @@ -37,7 +37,6 @@ export const SearchBox = styled.View` `; export const SearchInput = styled.TextInput` flex:1; - padding:0 15px; text-align:${(props:any):any => props.theme.isRTL ? 'right' : 'left'}; `; diff --git a/app/components/shared/Icon.tsx b/app/components/shared/Icon.tsx index ab35454a9..6323c0458 100755 --- a/app/components/shared/Icon.tsx +++ b/app/components/shared/Icon.tsx @@ -9,6 +9,7 @@ transform: ${(props:any):any => props.theme.isRTL ? 'scaleX(-1)' : 'scaleX(1)'} `; export const OuterIconRow = styled.View` flex-direction: row; + margin-right: 15px; `; export const OuterIconLeft = styled.View` diff --git a/app/database/schema/SearchHistorySchema.ts b/app/database/schema/SearchHistorySchema.ts index b51a313d8..376ef3217 100644 --- a/app/database/schema/SearchHistorySchema.ts +++ b/app/database/schema/SearchHistorySchema.ts @@ -5,7 +5,7 @@ import { ObjectSchema } from "realm"; createdAt: Date; }; export const SearchHistorySchema: ObjectSchema = { - name: 'SerachHistory', + name: 'SearchHistory', properties: { keyword: { type: 'string' }, createdAt: { type: "date" }, diff --git a/app/screens/home/DetailsScreen.tsx b/app/screens/home/DetailsScreen.tsx index 3a28a8d47..6e185636a 100755 --- a/app/screens/home/DetailsScreen.tsx +++ b/app/screens/home/DetailsScreen.tsx @@ -388,31 +388,39 @@ const DetailsScreen = ({ route, navigation }: any): any => { // fontFamily: '"Open Sans"' // beware to quote font family name! }); - // A method for highlighting specific words within content - const highlightWord = (content: string, query: string): string => { + const highlightWord = (content: string, query: string[]): any => { if (typeof content !== 'string') { - return ""; + return ""; } - const regex = new RegExp(`${query}`, 'gi'); - const highlightedContent = content.replace(regex, '$&'); + let highlightedContent = content; // Initialize with original content + + query.forEach((item) => { + const regex = new RegExp(`${item}`, 'gi'); + if(item.length>2){ + highlightedContent = highlightedContent.replace(regex, '$&'); + } + }); + return highlightedContent; - } +} - const highlightTextWithoutImages = (jsonContent: string, wordToHighlight: string): string => { + + const highlightTextWithoutImages = (jsonContent: string, wordToHighlight: string[]): string => { console.log('JsonContent is', jsonContent) const parts = jsonContent.split(/(]*>)/i); // Map each part and add spaces around the word if it is not inside an img tag const modifiedParts = parts.map((part: any): any => { if (!/]*>/i.test(part)) { - return highlightWord(part, wordToHighlight); - } + return highlightWord(part, wordToHighlight); // Pass wordToHighlight array here + } return part; }); return modifiedParts.join('') } + const highlightedTitle = queryText != undefined ? queryText.length !== 0 ? highlightWord(detailDataToUse?.title, queryText) diff --git a/app/screens/home/bottomTabs/Articles.tsx b/app/screens/home/bottomTabs/Articles.tsx index 2dea2a8e9..e1081e542 100755 --- a/app/screens/home/bottomTabs/Articles.tsx +++ b/app/screens/home/bottomTabs/Articles.tsx @@ -14,12 +14,13 @@ import VideoPlayer from '@components/VideoPlayer'; import { HomeDrawerNavigatorStackParamList } from '@navigation/types'; import { useFocusEffect, useIsFocused } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stack'; -import { articlesTintcolor } from '@styles/style'; +import { articlesTintcolor, bgColor1, bgcolorWhite2, greyCode } from '@styles/style'; import { Heading3, Heading4Center, Heading6Bold, ShiftFromTopBottom5 } from '@styles/typography'; -import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'; +import React, { useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { - FlatList, Keyboard, KeyboardAvoidingView, Platform, Pressable, StyleSheet, Text, TouchableOpacity, View + ActivityIndicator, + FlatList, Keyboard, KeyboardAvoidingView, Platform, Pressable, StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native'; import FastImage from 'react-native-fast-image'; import { ThemeContext } from 'styled-components/native'; @@ -32,9 +33,11 @@ import { logEvent, synchronizeEvents } from '../../../services/EventSyncService' import { dataRealmCommon } from '../../../database/dbquery/dataRealmCommon'; import { HistoryEntity, SearchHistorySchema } from '../../../database/schema/SearchHistorySchema'; import VectorImage from 'react-native-vector-image'; -import { index } from 'realm'; +import unorm from 'unorm'; +import Fuse from 'fuse.js'; +import MiniSearch from 'minisearch' import { ARTICLE_SEARCHED } from '@assets/data/firebaseEvents'; - +import Intl from 'intl'; type ArticlesNavigationProp = StackNavigationProp; type Props = { @@ -53,38 +56,32 @@ const styles = StyleSheet.create({ backgroundColor: articlesTintcolor, flex: 1 }, - container: { - flexDirection: 'column' - }, - divider: { - height: 1, - backgroundColor: 'grey', - }, flex1View: { flex: 1 }, + historyItem: { + borderBottomColor: greyCode, + borderBottomWidth: 1, + flexDirection: 'row', + marginHorizontal: 10, + padding: 10, + }, historyList: { - position: 'absolute', - top: 51, + backgroundColor: bgcolorWhite2, left: 0, + paddingBottom: 20, + position: 'absolute', right: 0, + top: 51, zIndex: 1, - paddingBottom: 20, - backgroundColor: '#fff', - }, - historyItem: { - flexDirection: 'row', - padding: 10, - marginHorizontal: 10, - borderBottomWidth: 1, - borderBottomColor: '#ccc', }, historyText: { fontSize: 14, marginHorizontal: 5 }, pressablePadding: { - padding: 15 + paddingLeft: 15, + paddingVertical: 15 }, }); @@ -100,6 +97,7 @@ const Articles = ({ route, navigation }: any): any => { const [queryText, searchQueryText] = useState(''); const [profileLoading, setProfileLoading] = React.useState(false); const [historyVisible, setHistoryVisible] = useState(true); + const [loadingArticle, setLoadingArticle] = useState(false); const dispatch = useAppDispatch(); const flatListRef = useRef(null); const setIsModalOpened = async (varkey: any): Promise => { @@ -125,6 +123,7 @@ const Articles = ({ route, navigation }: any): any => { const netInfo = useNetInfoHook(); const [searchHistory, setSearchHistory] = useState([]); + //merge array const mergearr = (articlearrold: any[], videoartarrold: any[], isSuffle: boolean): any => { let combinedarr: any[] = []; @@ -170,62 +169,53 @@ const Articles = ({ route, navigation }: any): any => { return combinedarr; } + const preprocessArticles = (articles: any): any => { + return articles.map((article: any) => ({ + ...article, + normalizedTitle: article.title, + normalizedSummary: article.summary, + normalizedBody: article.body + })); + }; + const getSearchedKeywords = async (): Promise => { const realm = await dataRealmCommon.openRealm(); if (realm != null) { - console.log('Seach History is...', realm?.objects('SerachHistory')) - const unsynchronizedEvents: any = realm.objects('SerachHistory').sorted('createdAt', true).slice(0, 5).map(entry => entry.keyword); + console.log('Seach History is...', realm?.objects('SearchHistory')) + const unsynchronizedEvents: any = realm.objects('SearchHistory').sorted('createdAt', true).slice(0, 5).map(entry => entry.keyword); console.log('Seach History is', unsynchronizedEvents) setSearchHistory(unsynchronizedEvents); } - console.log('search history.......', searchHistory) - //const realm = await dataRealmCommon.openRealm(); - //const history:any = realm?.objects('SerachHistory'); + console.log('search history.......', searchHistory); } - // useEffect(() => { - // // Load initial search history from RealmDB - - // }, []); - const storeUnsyncedEvent = async (realm: any, keyword: any): Promise => { + //store previous searched keyword + const storeSearchKeyword = async (realm: any, keyword: any): Promise => { realm.write(() => { - const unsyncedEvent = realm.create('SerachHistory', { + const storeKeyword = realm.create('SearchHistory', { keyword: keyword, createdAt: new Date(), }, Realm.UpdateMode.Modified); - console.log('EventClick unsyncedEvent for category', unsyncedEvent); }); } + const saveToRealm = async (keyword: string): Promise => { - // const realm = await dataRealmCommon.openRealm(); - // console.log('Realm Data is',realm?.create()) - // realm?.create('SerachHistory', { - // name: keyword, - // createdAt: new Date(), - // }); const historyData: any = { keyword: keyword, createdAt: new Date(), } await dataRealmCommon.create(SearchHistorySchema, historyData); - // realm?.write(() => { - // realm.create('SearchHistory', { - // keyword: keyword, - // timestamp: new Date(), - // }); - // }); }; + useFocusEffect( React.useCallback(() => { - // whatever if (netInfo.isConnected) { synchronizeEvents(netInfo.isConnected); } - // getSearchedKeywords() - console.log('UseFouusEffect Articles'); + getSearchedKeywords() setModalVisible(articleModalOpened); }, [articleModalOpened])//historyVisible ); @@ -262,10 +252,11 @@ const Articles = ({ route, navigation }: any): any => { let articleData: any = mergearr(articleDataOld, videoarticleData, true); const [filteredData, setfilteredData] = useState([]); const [filterArray, setFilterArray] = useState([]); - const [loadingArticle, setLoadingArticle] = useState(true); + const [keyboardStatus, setKeyboardStatus] = useState(); const videoIsFocused = useIsFocused(); const goToArticleDetail = (item: any, queryText: string): any => { + const keywords = queryText.trim().toLowerCase().split(' ').filter((word: any) => word.trim() !== ''); navigation.navigate('DetailsScreen', { fromScreen: "Articles", @@ -273,7 +264,7 @@ const Articles = ({ route, navigation }: any): any => { backgroundColor: backgroundColor, detailData: item, listCategoryArray: filterArray, - queryText: queryText + queryText: keywords }); }; const RenderArticleItem = ({ item, index }: any): any => { @@ -301,6 +292,7 @@ const Articles = ({ route, navigation }: any): any => { flatListRef?.current?.scrollToOffset({ animated: Platform.OS == "android" ? true : false, offset: 0 }) } const setFilteredArticleData = (itemId: any): any => { + setHistoryVisible(false) if (articleData != null && articleData != undefined && articleData.length > 0) { setLoadingArticle(true); if (itemId.length > 0) { @@ -327,17 +319,17 @@ const Articles = ({ route, navigation }: any): any => { } //combine-array - const combinedartarr = mergearr(newArticleData, newvideoArticleData, false); + const combineDartArr = mergearr(newArticleData, newvideoArticleData, false); - setfilteredData(combinedartarr); + setfilteredData(combineDartArr); setLoadingArticle(false); toTop(); } else { let newArticleData = articleData != '' ? articleData : []; - const videoarticleDataAllCategory = VideoArticlesDataall.filter((x: any) => x.mandatory == videoArticleMandatory && x.child_age.includes(activeChild.taxonomyData.id) && (x.child_gender == activeChild?.gender || x.child_gender == bothChildGender)); + const videoArticleDataAllCategory = VideoArticlesDataall.filter((x: any) => x.mandatory == videoArticleMandatory && x.child_age.includes(activeChild.taxonomyData.id) && (x.child_gender == activeChild?.gender || x.child_gender == bothChildGender)); let newvideoArticleData = videoarticleData != '' ? videoarticleData : []; - let combinedartarr = []; + let combineDartArr = []; let titleData = []; let bodyData = []; let videoTitleData = []; @@ -353,8 +345,8 @@ const Articles = ({ route, navigation }: any): any => { const combineVideoArticleData: any[] = videoTitleData.concat(videoBodyData) newvideoArticleData = [...new Set(combineVideoArticleData)]; - combinedartarr = mergearr(newArticleData, newvideoArticleData, false); - setfilteredData(combinedartarr); + combineDartArr = mergearr(newArticleData, newvideoArticleData, false); + setfilteredData(combineDartArr); } else { setfilteredData(newArticleData); @@ -372,7 +364,32 @@ const Articles = ({ route, navigation }: any): any => { useFocusEffect( React.useCallback(() => { - console.log('UseFouusEffect Articles one'); + console.log('UseFocusEffect Articles two'); + const showSubscription = Keyboard.addListener("keyboardDidShow", () => { + setKeyboardStatus(true); + }); + const hideSubscription = Keyboard.addListener("keyboardDidHide", () => { + setKeyboardStatus(false); + }); + return (): any => { + { + navigation.setParams({ categoryArray: [] }) + showSubscription.remove(); + hideSubscription.remove(); + // route.params?.currentSelectedChildId = 0; + } + } + }, []) + ); + + + const onFilterArrayChange = (newFilterArray: any): any => { + setFilterArray(newFilterArray) + } + + useFocusEffect( + React.useCallback(() => { + console.log('UseFocusEffect Articles one'); if (queryText == '') { async function fetchData(): Promise { if (route.params?.categoryArray && route.params?.categoryArray.length > 0) { @@ -396,100 +413,130 @@ const Articles = ({ route, navigation }: any): any => { }, [route.params?.categoryArray, activeChild?.uuid, languageCode, queryText]) ); - useFocusEffect( - React.useCallback(() => { - console.log('UseFouusEffect Articles two'); - const showSubscription = Keyboard.addListener("keyboardDidShow", () => { - setKeyboardStatus(true); - // setHistoryVisible(true); - }); - const hideSubscription = Keyboard.addListener("keyboardDidHide", () => { - setKeyboardStatus(false); - }); - return (): any => { - { - navigation.setParams({ categoryArray: [] }) - showSubscription.remove(); - hideSubscription.remove(); - // route.params?.currentSelectedChildId = 0; - } - } - }, []) - ); + const [searchIndex, setSearchIndex] = useState(null); + const suffixes = (term: any, minLength: any): any => { + if (term == null) { return []; } + const tokens = []; + for (let i = 0; i <= term.length - minLength; i++) { + tokens.push(term.slice(i)); + } + return tokens; + } + // add minisearch on active child article data + useEffect(() => { + async function initializeSearchIndex() { + let videoArticleDataAllCategory:any; + if(activeChild!=null && activeChild.taxonomyData!=null && activeChild?.gender!=null){ + videoArticleDataAllCategory = VideoArticlesDataall.filter((x: any) => x.mandatory == videoArticleMandatory && x.child_age.includes(activeChild.taxonomyData.id) && (x.child_gender == activeChild?.gender || x.child_gender == bothChildGender)); + } + const combineDartArr = mergearr(articleDataall, videoArticleDataAllCategory, false); + articleData = [...combineDartArr]; + const processedArticles = preprocessArticles(articleData); + const searchIndex = new MiniSearch({ + processTerm: (term) => suffixes(term, 3), + extractField: (document, fieldName): any => { + const arrFields = fieldName.split("."); + if (arrFields.length === 2) { + return (document[arrFields[0]] || []) + .map((arrField: any) => arrField[arrFields[1]] || "") + .join(" "); + } else if (arrFields.length === 3) { + const tmparr = (document[arrFields[0]] || []).flatMap( + (arrField: any) => arrField[arrFields[1]] || [] + ); + return tmparr.map((s: any) => s[arrFields[2]] || "").join(" "); + } + return fieldName + .split(".") + .reduce((doc, key) => doc && doc[key], document); + }, + searchOptions: { + boost: { title: 2, summary: 1.5, body: 1 }, + bm25: { k: 1.0, b: 0.7, d: 0.5 }, + fuzzy: true, + // prefix true means it will contain "foo" then search for "foobar" + prefix: true, + weights: { + fuzzy: 0.6, + prefix: 0.6 + } + }, + fields: ['title', 'summary', 'body'], + storeFields: ['id', 'type', 'title', 'created_at', 'updated_at', 'summary', 'body', 'category', 'child_age', 'child_gender', 'parent_gender', 'keywords', 'related_articles', 'related_video_articles', 'licensed', 'premature', 'mandatory', 'cover_image', 'related_articles', 'embedded_images'] + }); + processedArticles.forEach((item: any) => searchIndex.add(item)); + setSearchIndex(searchIndex); + } - const onFilterArrayChange = (newFilterArray: any): any => { + initializeSearchIndex(); + }, []); - setFilterArray(newFilterArray) - } - //code for getting article dynamic data ends here. const searchList = async (queryText: any): Promise => { - Keyboard.dismiss(); + setHistoryVisible(false) setLoadingArticle(true); - console.log('Here log 2') + await new Promise(resolve => setTimeout(resolve, 0)); + Keyboard.dismiss(); let artData: any; - let newvideoArticleData: any; - let combinedartarr = []; - const videoarticleDataAllCategory = VideoArticlesDataall.filter((x: any) => x.mandatory == videoArticleMandatory && x.child_age.includes(activeChild.taxonomyData.id) && (x.child_gender == activeChild?.gender || x.child_gender == bothChildGender)); - let searchTitleData = []; - let searchBodyData = []; - let searchVideoTitleData = []; - let searchVideoBodyData = []; + let combineDartArr: []; + let newvideoArticleData; if (queryText != "" && queryText != undefined && queryText != null) { + const keywords = queryText.trim().toLowerCase().split(' ').filter((word: any) => word.trim() !== ''); + if (keywords.length > 1) { + const resultsPromises = keywords.map(async (keyword: any) => { + const results = searchIndex.search(keyword); + return results; + }); + const resultsArrays = await Promise.all(resultsPromises); + const aggregatedResults = resultsArrays.flat(); + setfilteredData(aggregatedResults); + setLoadingArticle(false) + toTop() + } else { + const results = searchIndex.search(queryText); + console.log('Results Data is', results) + console.log('Results length is', results.length) + setfilteredData(results); + setLoadingArticle(false) + toTop() + } const eventData = { 'name': ARTICLE_SEARCHED, 'params': { article_searched: queryText } } logEvent(eventData, netInfo.isConnected) - //saveToRealm(queryText); const realm = await dataRealmCommon.openRealm(); - storeUnsyncedEvent(realm, queryText) + storeSearchKeyword(realm, queryText) // Update search history state - - const updatedHistory = [queryText, ...searchHistory.slice(0, 4)]; + const updatedHistoryWithoutClickedItem = searchHistory.filter(item => item !== queryText); + const updatedHistory = [queryText, ...updatedHistoryWithoutClickedItem.slice(0, 4)]; const filterredUpdatedHistory = [...new Set(updatedHistory)]; - console.log('updatedHistory', filterredUpdatedHistory) setSearchHistory(filterredUpdatedHistory); - // Delete older entries beyond the latest 5 - const olderEntries = realm?.objects('SerachHistory').sorted('createdAt', true).slice(5); - console.log('Older Entries', olderEntries) - realm?.write(() => { - realm.delete(olderEntries); - }); - - searchTitleData = articleDataall.filter((element: any) => element.title.toLowerCase().includes(queryText.toLowerCase())); - searchBodyData = articleDataall.filter((element: any) => element.body.toLowerCase().includes(queryText.toLowerCase()) || element.summary.toLowerCase().includes(queryText.toLowerCase())); - const searchArticleData: any[] = searchTitleData.concat(searchBodyData) - artData = [...new Set(searchArticleData)]; - - searchVideoTitleData = videoarticleDataAllCategory.filter((element: any) => element.title.toLowerCase().includes(queryText.toLowerCase())); - searchVideoBodyData = videoarticleDataAllCategory.filter((element: any) => element.body.toLowerCase().includes(queryText.toLowerCase()) || element.summary.toLowerCase().includes(queryText.toLowerCase())); - const searchVideoArticleData: any[] = searchVideoTitleData.concat(searchVideoBodyData) - newvideoArticleData = [...new Set(searchVideoArticleData)]; + const olderEntries = realm?.objects('SearchHistory').sorted('createdAt', true).slice(0, 5).map(entry => entry.keyword); + if (olderEntries != undefined && olderEntries?.length > 5) { + realm?.write(() => { + realm.delete(olderEntries); + }); + } - combinedartarr = mergearr(artData, newvideoArticleData, false); } else { artData = articleDataall.filter((x: any) => articleCategoryArray.includes(x.category)); newvideoArticleData = VideoArticlesDataall.filter((x: any) => x.mandatory == videoArticleMandatory && x.child_age.includes(activeChild.taxonomyData.id) && articleCategoryArray.includes(x.category) && (x.child_gender == activeChild?.gender || x.child_gender == bothChildGender)); - combinedartarr = mergearr(artData, newvideoArticleData, true); - // mergearr + combineDartArr = mergearr(artData, newvideoArticleData, true); + articleData = [...combineDartArr]; + setFilteredArticleData(filterArray); + setLoadingArticle(false); } - - articleData = [...combinedartarr]; - setFilteredArticleData(filterArray); - } const renderSearchHistoryItem = ({ item }: { item: string }): any => ( => { - console.log('Here log 1', item); - searchQueryText(item); Keyboard.dismiss(); - setHistoryVisible(false); + searchQueryText(item); await searchList(item); }} > @@ -506,7 +553,7 @@ const Articles = ({ route, navigation }: any): any => { return ( <> - + {loadingArticle && } { /> + + + => { + e.preventDefault(); + Keyboard.dismiss(); + await searchList(queryText); + }}> + + + + { + setHistoryVisible(true); + }} onChangeText={async (queryText: any): Promise => { console.log('loghererer', queryText) if (queryText.replace(/\s/g, "") == "") { - console.log('loghererer1') searchQueryText(queryText.replace(/\s/g, '')); - //setHistoryVisible(true); - // await searchList(queryText) + setHistoryVisible(true); + // await searchList(queryText) } else { - console.log('loghererer2') searchQueryText(queryText); - // setHistoryVisible(true); + setHistoryVisible(true); } }} value={queryText} + onSubmitEditing={async (event: any): Promise => { - console.log("event-", event); + console.log("event-", queryText); + setHistoryVisible(false) Keyboard.dismiss(); await searchList(queryText); }} @@ -560,9 +626,10 @@ const Articles = ({ route, navigation }: any): any => { => { console.log('cleartext') - searchQueryText(''); - await searchList(queryText); Keyboard.dismiss(); + searchQueryText(''); + setHistoryVisible(true); + }}> { } - - => { - e.preventDefault(); - await searchList(queryText); - - }}> - - - - - {/* {searchHistory.length!==0 && historyVisible && + {searchHistory.length !== 0 && historyVisible && index.toString()} style={styles.historyList} /> - } */} + } @@ -633,12 +686,9 @@ const Articles = ({ route, navigation }: any): any => { - - - ); }; diff --git a/ios/InfoPlist_Bebbo/sk.lproj/InfoPlist.strings b/ios/InfoPlist_Bebbo/sk.lproj/InfoPlist.strings new file mode 100755 index 000000000..10485b34a --- /dev/null +++ b/ios/InfoPlist_Bebbo/sk.lproj/InfoPlist.strings @@ -0,0 +1,8 @@ +/* + InfoPlist.strings + ParentBuddyApp + + Created by Kalyani Kaushik on 18/11/21. + +*/ +"CFBundleDisplayName" = "Bebbo"; diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/Contents.json b/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/Contents.json new file mode 100644 index 000000000..7dac510cc --- /dev/null +++ b/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "output.pdf", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "history.svg", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "history1.svg", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/history.svg b/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/history.svg new file mode 100644 index 000000000..494959349 --- /dev/null +++ b/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/history.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/history1.svg b/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/history1.svg new file mode 100644 index 000000000..494959349 --- /dev/null +++ b/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/history1.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/light.pdf b/ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/output.pdf similarity index 100% rename from ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/light.pdf rename to ios/ParentBuddyApp/Images.xcassets/history_svg.imageset/output.pdf diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/Contents.json b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/Contents.json index 97804fabd..0d7cb6a13 100644 --- a/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/Contents.json +++ b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/Contents.json @@ -6,12 +6,12 @@ "scale" : "1x" }, { - "filename" : "output 1.pdf", + "filename" : "history.svg", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "output 2.pdf", + "filename" : "history 1.svg", "idiom" : "universal", "scale" : "3x" } diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/history 1.svg b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/history 1.svg new file mode 100644 index 000000000..494959349 --- /dev/null +++ b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/history 1.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/history.svg b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/history.svg new file mode 100644 index 000000000..494959349 --- /dev/null +++ b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/history.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/output.pdf b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/output.pdf new file mode 100644 index 000000000..fcac81c4f Binary files /dev/null and b/ios/ParentBuddyApp/Images.xcassets/history_svg_a0f5bd.imageset/output.pdf differ diff --git a/ios/ParentBuddyApp/Images.xcassets/ic_tools_color_svg_335b8f.imageset/light.pdf b/ios/ParentBuddyApp/Images.xcassets/ic_tools_color_svg_335b8f.imageset/light.pdf index 643ff4cd5..3fb4c7b81 100644 Binary files a/ios/ParentBuddyApp/Images.xcassets/ic_tools_color_svg_335b8f.imageset/light.pdf and b/ios/ParentBuddyApp/Images.xcassets/ic_tools_color_svg_335b8f.imageset/light.pdf differ diff --git a/ios/ParentBuddyApp/Images.xcassets/img_logo_chatbot_new_svg_fa2402.imageset/light.pdf b/ios/ParentBuddyApp/Images.xcassets/img_logo_chatbot_new_svg_fa2402.imageset/light.pdf index efcaffd81..2f8ed121b 100644 Binary files a/ios/ParentBuddyApp/Images.xcassets/img_logo_chatbot_new_svg_fa2402.imageset/light.pdf and b/ios/ParentBuddyApp/Images.xcassets/img_logo_chatbot_new_svg_fa2402.imageset/light.pdf differ diff --git a/ios/assets/app/assets/svg/chart.svg b/ios/assets/app/assets/svg/chart.svg new file mode 100644 index 000000000..5ccdd1aca --- /dev/null +++ b/ios/assets/app/assets/svg/chart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ios/assets/app/assets/svg/ic_file.svg b/ios/assets/app/assets/svg/ic_file.svg new file mode 100644 index 000000000..07279e4b1 --- /dev/null +++ b/ios/assets/app/assets/svg/ic_file.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ios/assets/app/assets/svg/img-bg-chatbot-ios.png b/ios/assets/app/assets/svg/img-bg-chatbot-ios.png new file mode 100644 index 000000000..a801ca277 Binary files /dev/null and b/ios/assets/app/assets/svg/img-bg-chatbot-ios.png differ diff --git a/ios/assets/app/assets/svg/img-bg-chatbot.png b/ios/assets/app/assets/svg/img-bg-chatbot.png new file mode 100644 index 000000000..4ec372c94 Binary files /dev/null and b/ios/assets/app/assets/svg/img-bg-chatbot.png differ diff --git a/ios/assets/app/assets/svg/xk/bebbo_logo_shape.svg b/ios/assets/app/assets/svg/xk/bebbo_logo_shape.svg new file mode 100644 index 000000000..14b1c17c8 --- /dev/null +++ b/ios/assets/app/assets/svg/xk/bebbo_logo_shape.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/assets/app/assets/svg/xk/img-logo-chatbot-new.svg b/ios/assets/app/assets/svg/xk/img-logo-chatbot-new.svg new file mode 100644 index 000000000..107c83a96 --- /dev/null +++ b/ios/assets/app/assets/svg/xk/img-logo-chatbot-new.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/assets/app/assets/trash/defaultArticleImage.png b/ios/assets/app/assets/trash/defaultArticleImage.png new file mode 100644 index 000000000..128b1d0d0 Binary files /dev/null and b/ios/assets/app/assets/trash/defaultArticleImage.png differ diff --git a/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm b/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm new file mode 100644 index 000000000..11d5840c8 --- /dev/null +++ b/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm @@ -0,0 +1,2008 @@ +/** + * 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: GenerateModuleObjCpp + * + * We create an umbrella header (and corresponding implementation) here since + * Cxx compilation in BUCK has a limitation: source-code producing genrule()s + * must have a single output. More files => more genrule()s => slower builds. + */ + +#import "FBReactNativeSpec.h" + + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_isReduceMotionEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "isReduceMotionEnabled", @selector(isReduceMotionEnabled:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_isTouchExplorationEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "isTouchExplorationEnabled", @selector(isTouchExplorationEnabled:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_isAccessibilityServiceEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "isAccessibilityServiceEnabled", @selector(isAccessibilityServiceEnabled:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_setAccessibilityFocus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAccessibilityFocus", @selector(setAccessibilityFocus:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_announceForAccessibility(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibility", @selector(announceForAccessibility:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_getRecommendedTimeoutMillis(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getRecommendedTimeoutMillis", @selector(getRecommendedTimeoutMillis:onSuccess:), args, count); + } + + NativeAccessibilityInfoSpecJSI::NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["isReduceMotionEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_isReduceMotionEnabled}; + + + methodMap_["isTouchExplorationEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_isTouchExplorationEnabled}; + + + methodMap_["isAccessibilityServiceEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_isAccessibilityServiceEnabled}; + + + methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_setAccessibilityFocus}; + + + methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_announceForAccessibility}; + + + methodMap_["getRecommendedTimeoutMillis"] = MethodMetadata {2, __hostFunction_NativeAccessibilityInfoSpecJSI_getRecommendedTimeoutMillis}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) ++ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +@implementation RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentBoldTextState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentBoldTextState", @selector(getCurrentBoldTextState:onError:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentGrayscaleState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentGrayscaleState", @selector(getCurrentGrayscaleState:onError:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentInvertColorsState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentInvertColorsState", @selector(getCurrentInvertColorsState:onError:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceMotionState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentReduceMotionState", @selector(getCurrentReduceMotionState:onError:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentPrefersCrossFadeTransitionsState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentPrefersCrossFadeTransitionsState", @selector(getCurrentPrefersCrossFadeTransitionsState:onError:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceTransparencyState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentReduceTransparencyState", @selector(getCurrentReduceTransparencyState:onError:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentVoiceOverState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentVoiceOverState", @selector(getCurrentVoiceOverState:onError:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityContentSizeMultipliers(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAccessibilityContentSizeMultipliers", @selector(setAccessibilityContentSizeMultipliers:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityFocus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAccessibilityFocus", @selector(setAccessibilityFocus:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibility(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibility", @selector(announceForAccessibility:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibilityWithOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibilityWithOptions", @selector(announceForAccessibilityWithOptions:options:), args, count); + } + + NativeAccessibilityManagerSpecJSI::NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getCurrentBoldTextState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentBoldTextState}; + + + methodMap_["getCurrentGrayscaleState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentGrayscaleState}; + + + methodMap_["getCurrentInvertColorsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentInvertColorsState}; + + + methodMap_["getCurrentReduceMotionState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceMotionState}; + + + methodMap_["getCurrentPrefersCrossFadeTransitionsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentPrefersCrossFadeTransitionsState}; + + + methodMap_["getCurrentReduceTransparencyState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceTransparencyState}; + + + methodMap_["getCurrentVoiceOverState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentVoiceOverState}; + + + methodMap_["setAccessibilityContentSizeMultipliers"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityContentSizeMultipliers}; + setMethodArgConversionSelector(@"setAccessibilityContentSizeMultipliers", 0, @"JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:"); + + methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityFocus}; + + + methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibility}; + + + methodMap_["announceForAccessibilityWithOptions"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibilityWithOptions}; + setMethodArgConversionSelector(@"announceForAccessibilityWithOptions", 1, @"JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:"); + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +@implementation RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeActionSheetManagerSpecJSI_showActionSheetWithOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showActionSheetWithOptions", @selector(showActionSheetWithOptions:callback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeActionSheetManagerSpecJSI_showShareActionSheetWithOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showShareActionSheetWithOptions", @selector(showShareActionSheetWithOptions:failureCallback:successCallback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeActionSheetManagerSpecJSI_dismissActionSheet(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismissActionSheet", @selector(dismissActionSheet), args, count); + } + + NativeActionSheetManagerSpecJSI::NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["showActionSheetWithOptions"] = MethodMetadata {2, __hostFunction_NativeActionSheetManagerSpecJSI_showActionSheetWithOptions}; + setMethodArgConversionSelector(@"showActionSheetWithOptions", 0, @"JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:"); + + methodMap_["showShareActionSheetWithOptions"] = MethodMetadata {3, __hostFunction_NativeActionSheetManagerSpecJSI_showShareActionSheetWithOptions}; + setMethodArgConversionSelector(@"showShareActionSheetWithOptions", 0, @"JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:"); + + methodMap_["dismissActionSheet"] = MethodMetadata {0, __hostFunction_NativeActionSheetManagerSpecJSI_dismissActionSheet}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeAlertManager_Args) ++ (RCTManagedPointer *)JS_NativeAlertManager_Args:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAlertManagerSpecJSI_alertWithArgs(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "alertWithArgs", @selector(alertWithArgs:callback:), args, count); + } + + NativeAlertManagerSpecJSI::NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["alertWithArgs"] = MethodMetadata {2, __hostFunction_NativeAlertManagerSpecJSI_alertWithArgs}; + setMethodArgConversionSelector(@"alertWithArgs", 0, @"JS_NativeAlertManager_Args:"); + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeAnimatedModule_EventMapping) ++ (RCTManagedPointer *)JS_NativeAnimatedModule_EventMapping:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_startOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startOperationBatch", @selector(startOperationBatch), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_finishOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "finishOperationBatch", @selector(finishOperationBatch), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_createAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createAnimatedNode", @selector(createAnimatedNode:config:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_updateAnimatedNodeConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "updateAnimatedNodeConfig", @selector(updateAnimatedNodeConfig:config:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_getValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getValue", @selector(getValue:saveValueCallback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_startListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startListeningToAnimatedNodeValue", @selector(startListeningToAnimatedNodeValue:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_stopListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopListeningToAnimatedNodeValue", @selector(stopListeningToAnimatedNodeValue:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodes", @selector(connectAnimatedNodes:childTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodes", @selector(disconnectAnimatedNodes:childTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_startAnimatingNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startAnimatingNode", @selector(startAnimatingNode:nodeTag:config:endCallback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_stopAnimation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopAnimation", @selector(stopAnimation:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeValue", @selector(setAnimatedNodeValue:value:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeOffset", @selector(setAnimatedNodeOffset:offset:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_flattenAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "flattenAnimatedNodeOffset", @selector(flattenAnimatedNodeOffset:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_extractAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "extractAnimatedNodeOffset", @selector(extractAnimatedNodeOffset:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodeToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodeToView", @selector(connectAnimatedNodeToView:viewTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodeFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodeFromView", @selector(disconnectAnimatedNodeFromView:viewTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_restoreDefaultValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "restoreDefaultValues", @selector(restoreDefaultValues:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_dropAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dropAnimatedNode", @selector(dropAnimatedNode:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_addAnimatedEventToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addAnimatedEventToView", @selector(addAnimatedEventToView:eventName:eventMapping:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_removeAnimatedEventFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeAnimatedEventFromView", @selector(removeAnimatedEventFromView:eventName:animatedNodeTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_queueAndExecuteBatchedOperations(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "queueAndExecuteBatchedOperations", @selector(queueAndExecuteBatchedOperations:), args, count); + } + + NativeAnimatedModuleSpecJSI::NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleSpecJSI_startOperationBatch}; + + + methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleSpecJSI_finishOperationBatch}; + + + methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_createAnimatedNode}; + + + methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_updateAnimatedNodeConfig}; + + + methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_getValue}; + + + methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_startListeningToAnimatedNodeValue}; + + + methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_stopListeningToAnimatedNodeValue}; + + + methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodes}; + + + methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodes}; + + + methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedModuleSpecJSI_startAnimatingNode}; + + + methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_stopAnimation}; + + + methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeValue}; + + + methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeOffset}; + + + methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_flattenAnimatedNodeOffset}; + + + methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_extractAnimatedNodeOffset}; + + + methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodeToView}; + + + methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodeFromView}; + + + methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_restoreDefaultValues}; + + + methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_dropAnimatedNode}; + + + methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleSpecJSI_addAnimatedEventToView}; + setMethodArgConversionSelector(@"addAnimatedEventToView", 2, @"JS_NativeAnimatedModule_EventMapping:"); + + methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleSpecJSI_removeAnimatedEventFromView}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_removeListeners}; + + + methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_queueAndExecuteBatchedOperations}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeAnimatedTurboModule_EventMapping) ++ (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EventMapping:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_startOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startOperationBatch", @selector(startOperationBatch), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_finishOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "finishOperationBatch", @selector(finishOperationBatch), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_createAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createAnimatedNode", @selector(createAnimatedNode:config:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_updateAnimatedNodeConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "updateAnimatedNodeConfig", @selector(updateAnimatedNodeConfig:config:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_getValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getValue", @selector(getValue:saveValueCallback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_startListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startListeningToAnimatedNodeValue", @selector(startListeningToAnimatedNodeValue:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopListeningToAnimatedNodeValue", @selector(stopListeningToAnimatedNodeValue:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodes", @selector(connectAnimatedNodes:childTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodes", @selector(disconnectAnimatedNodes:childTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_startAnimatingNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startAnimatingNode", @selector(startAnimatingNode:nodeTag:config:endCallback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopAnimation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopAnimation", @selector(stopAnimation:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeValue", @selector(setAnimatedNodeValue:value:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeOffset", @selector(setAnimatedNodeOffset:offset:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_flattenAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "flattenAnimatedNodeOffset", @selector(flattenAnimatedNodeOffset:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_extractAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "extractAnimatedNodeOffset", @selector(extractAnimatedNodeOffset:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodeToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodeToView", @selector(connectAnimatedNodeToView:viewTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodeFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodeFromView", @selector(disconnectAnimatedNodeFromView:viewTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_restoreDefaultValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "restoreDefaultValues", @selector(restoreDefaultValues:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_dropAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dropAnimatedNode", @selector(dropAnimatedNode:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_addAnimatedEventToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addAnimatedEventToView", @selector(addAnimatedEventToView:eventName:eventMapping:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeAnimatedEventFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeAnimatedEventFromView", @selector(removeAnimatedEventFromView:eventName:animatedNodeTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_queueAndExecuteBatchedOperations(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "queueAndExecuteBatchedOperations", @selector(queueAndExecuteBatchedOperations:), args, count); + } + + NativeAnimatedTurboModuleSpecJSI::NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleSpecJSI_startOperationBatch}; + + + methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleSpecJSI_finishOperationBatch}; + + + methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_createAnimatedNode}; + + + methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_updateAnimatedNodeConfig}; + + + methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_getValue}; + + + methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_startListeningToAnimatedNodeValue}; + + + methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopListeningToAnimatedNodeValue}; + + + methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodes}; + + + methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodes}; + + + methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedTurboModuleSpecJSI_startAnimatingNode}; + + + methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopAnimation}; + + + methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeValue}; + + + methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeOffset}; + + + methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_flattenAnimatedNodeOffset}; + + + methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_extractAnimatedNodeOffset}; + + + methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodeToView}; + + + methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodeFromView}; + + + methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_restoreDefaultValues}; + + + methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_dropAnimatedNode}; + + + methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleSpecJSI_addAnimatedEventToView}; + setMethodArgConversionSelector(@"addAnimatedEventToView", 2, @"JS_NativeAnimatedTurboModule_EventMapping:"); + + methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeAnimatedEventFromView}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeListeners}; + + + methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_queueAndExecuteBatchedOperations}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAnimationsDebugModuleSpecJSI_startRecordingFps(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startRecordingFps", @selector(startRecordingFps), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAnimationsDebugModuleSpecJSI_stopRecordingFps(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopRecordingFps", @selector(stopRecordingFps:), args, count); + } + + NativeAnimationsDebugModuleSpecJSI::NativeAnimationsDebugModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["startRecordingFps"] = MethodMetadata {0, __hostFunction_NativeAnimationsDebugModuleSpecJSI_startRecordingFps}; + + + methodMap_["stopRecordingFps"] = MethodMetadata {1, __hostFunction_NativeAnimationsDebugModuleSpecJSI_stopRecordingFps}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_getCurrentAppState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentAppState", @selector(getCurrentAppState:error:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativeAppStateSpecJSI::NativeAppStateSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getCurrentAppState"] = MethodMetadata {2, __hostFunction_NativeAppStateSpecJSI_getCurrentAppState}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppStateSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppStateSpecJSI_removeListeners}; + + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppStateSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_getColorScheme(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, StringKind, "getColorScheme", @selector(getColorScheme), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_setColorScheme(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setColorScheme", @selector(setColorScheme:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + NativeAppearanceSpecJSI::NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getColorScheme"] = MethodMetadata {0, __hostFunction_NativeAppearanceSpecJSI_getColorScheme}; + + + methodMap_["setColorScheme"] = MethodMetadata {1, __hostFunction_NativeAppearanceSpecJSI_setColorScheme}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppearanceSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppearanceSpecJSI_removeListeners}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_addNetworkingHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addNetworkingHandler", @selector(addNetworkingHandler), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_addWebSocketHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addWebSocketHandler", @selector(addWebSocketHandler:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_removeWebSocketHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeWebSocketHandler", @selector(removeWebSocketHandler:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_sendOverSocket(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendOverSocket", @selector(sendOverSocket:socketID:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_createFromParts(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createFromParts", @selector(createFromParts:withId:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_release(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "release", @selector(release:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativeBlobModuleSpecJSI::NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["addNetworkingHandler"] = MethodMetadata {0, __hostFunction_NativeBlobModuleSpecJSI_addNetworkingHandler}; + + + methodMap_["addWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleSpecJSI_addWebSocketHandler}; + + + methodMap_["removeWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleSpecJSI_removeWebSocketHandler}; + + + methodMap_["sendOverSocket"] = MethodMetadata {2, __hostFunction_NativeBlobModuleSpecJSI_sendOverSocket}; + + + methodMap_["createFromParts"] = MethodMetadata {2, __hostFunction_NativeBlobModuleSpecJSI_createFromParts}; + + + methodMap_["release"] = MethodMetadata {1, __hostFunction_NativeBlobModuleSpecJSI_release}; + + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeBlobModuleSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeBugReportingSpecJSI_startReportAProblemFlow(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startReportAProblemFlow", @selector(startReportAProblemFlow), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBugReportingSpecJSI_setExtraData(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setExtraData", @selector(setExtraData:extraFiles:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeBugReportingSpecJSI_setCategoryID(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setCategoryID", @selector(setCategoryID:), args, count); + } + + NativeBugReportingSpecJSI::NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["startReportAProblemFlow"] = MethodMetadata {0, __hostFunction_NativeBugReportingSpecJSI_startReportAProblemFlow}; + + + methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeBugReportingSpecJSI_setExtraData}; + + + methodMap_["setCategoryID"] = MethodMetadata {1, __hostFunction_NativeBugReportingSpecJSI_setCategoryID}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeClipboardSpecJSI_getString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getString", @selector(getString:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeClipboardSpecJSI_setString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setString", @selector(setString:), args, count); + } + + NativeClipboardSpecJSI::NativeClipboardSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getString"] = MethodMetadata {0, __hostFunction_NativeClipboardSpecJSI_getString}; + + + methodMap_["setString"] = MethodMetadata {1, __hostFunction_NativeClipboardSpecJSI_setString}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeDevLoadingViewSpecJSI_showMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showMessage", @selector(showMessage:withColor:withBackgroundColor:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevLoadingViewSpecJSI_hide(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hide", @selector(hide), args, count); + } + + NativeDevLoadingViewSpecJSI::NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["showMessage"] = MethodMetadata {3, __hostFunction_NativeDevLoadingViewSpecJSI_showMessage}; + + + methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeDevLoadingViewSpecJSI_hide}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_show(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "show", @selector(show), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_reload(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reload", @selector(reload), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_debugRemotely(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "debugRemotely", @selector(debugRemotely:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_setProfilingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setProfilingEnabled", @selector(setProfilingEnabled:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_setHotLoadingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setHotLoadingEnabled", @selector(setHotLoadingEnabled:), args, count); + } + + NativeDevMenuSpecJSI::NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeDevMenuSpecJSI_show}; + + + methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevMenuSpecJSI_reload}; + + + methodMap_["debugRemotely"] = MethodMetadata {1, __hostFunction_NativeDevMenuSpecJSI_debugRemotely}; + + + methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuSpecJSI_setProfilingEnabled}; + + + methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuSpecJSI_setHotLoadingEnabled}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_reload(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reload", @selector(reload), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_reloadWithReason(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reloadWithReason", @selector(reloadWithReason:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_onFastRefresh(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "onFastRefresh", @selector(onFastRefresh), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setHotLoadingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setHotLoadingEnabled", @selector(setHotLoadingEnabled:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setIsDebuggingRemotely(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setIsDebuggingRemotely", @selector(setIsDebuggingRemotely:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setProfilingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setProfilingEnabled", @selector(setProfilingEnabled:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_toggleElementInspector(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "toggleElementInspector", @selector(toggleElementInspector), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_addMenuItem(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addMenuItem", @selector(addMenuItem:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setIsShakeToShowDevMenuEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setIsShakeToShowDevMenuEnabled", @selector(setIsShakeToShowDevMenuEnabled:), args, count); + } + + NativeDevSettingsSpecJSI::NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevSettingsSpecJSI_reload}; + + + methodMap_["reloadWithReason"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_reloadWithReason}; + + + methodMap_["onFastRefresh"] = MethodMetadata {0, __hostFunction_NativeDevSettingsSpecJSI_onFastRefresh}; + + + methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setHotLoadingEnabled}; + + + methodMap_["setIsDebuggingRemotely"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setIsDebuggingRemotely}; + + + methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setProfilingEnabled}; + + + methodMap_["toggleElementInspector"] = MethodMetadata {0, __hostFunction_NativeDevSettingsSpecJSI_toggleElementInspector}; + + + methodMap_["addMenuItem"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_addMenuItem}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_removeListeners}; + + + methodMap_["setIsShakeToShowDevMenuEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setIsShakeToShowDevMenuEnabled}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeDevSplitBundleLoaderSpecJSI_loadBundle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "loadBundle", @selector(loadBundle:resolve:reject:), args, count); + } + + NativeDevSplitBundleLoaderSpecJSI::NativeDevSplitBundleLoaderSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["loadBundle"] = MethodMetadata {1, __hostFunction_NativeDevSplitBundleLoaderSpecJSI_loadBundle}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeDevToolsSettingsManagerSpecJSI_setConsolePatchSettings(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setConsolePatchSettings", @selector(setConsolePatchSettings:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevToolsSettingsManagerSpecJSI_getConsolePatchSettings(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, StringKind, "getConsolePatchSettings", @selector(getConsolePatchSettings), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevToolsSettingsManagerSpecJSI_setProfilingSettings(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setProfilingSettings", @selector(setProfilingSettings:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeDevToolsSettingsManagerSpecJSI_getProfilingSettings(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, StringKind, "getProfilingSettings", @selector(getProfilingSettings), args, count); + } + + NativeDevToolsSettingsManagerSpecJSI::NativeDevToolsSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["setConsolePatchSettings"] = MethodMetadata {1, __hostFunction_NativeDevToolsSettingsManagerSpecJSI_setConsolePatchSettings}; + + + methodMap_["getConsolePatchSettings"] = MethodMetadata {0, __hostFunction_NativeDevToolsSettingsManagerSpecJSI_getConsolePatchSettings}; + + + methodMap_["setProfilingSettings"] = MethodMetadata {1, __hostFunction_NativeDevToolsSettingsManagerSpecJSI_setProfilingSettings}; + + + methodMap_["getProfilingSettings"] = MethodMetadata {0, __hostFunction_NativeDevToolsSettingsManagerSpecJSI_getProfilingSettings}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeDeviceEventManagerSpecJSI_invokeDefaultBackPressHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "invokeDefaultBackPressHandler", @selector(invokeDefaultBackPressHandler), args, count); + } + + NativeDeviceEventManagerSpecJSI::NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerSpecJSI_invokeDefaultBackPressHandler}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeDeviceInfoSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativeDeviceInfoSpecJSI::NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeExceptionsManager_StackFrame) ++ (RCTManagedPointer *)JS_NativeExceptionsManager_StackFrame:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +@implementation RCTCxxConvert (NativeExceptionsManager_ExceptionData) ++ (RCTManagedPointer *)JS_NativeExceptionsManager_ExceptionData:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_reportFatalException(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reportFatalException", @selector(reportFatalException:stack:exceptionId:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_reportSoftException(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reportSoftException", @selector(reportSoftException:stack:exceptionId:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_reportException(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reportException", @selector(reportException:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_updateExceptionMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "updateExceptionMessage", @selector(updateExceptionMessage:stack:exceptionId:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_dismissRedbox(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismissRedbox", @selector(dismissRedbox), args, count); + } + + NativeExceptionsManagerSpecJSI::NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["reportFatalException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_reportFatalException}; + + + methodMap_["reportSoftException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_reportSoftException}; + + + methodMap_["reportException"] = MethodMetadata {1, __hostFunction_NativeExceptionsManagerSpecJSI_reportException}; + setMethodArgConversionSelector(@"reportException", 0, @"JS_NativeExceptionsManager_ExceptionData:"); + + methodMap_["updateExceptionMessage"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_updateExceptionMessage}; + + + methodMap_["dismissRedbox"] = MethodMetadata {0, __hostFunction_NativeExceptionsManagerSpecJSI_dismissRedbox}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeFileReaderModuleSpecJSI_readAsDataURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "readAsDataURL", @selector(readAsDataURL:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeFileReaderModuleSpecJSI_readAsText(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "readAsText", @selector(readAsText:encoding:resolve:reject:), args, count); + } + + NativeFileReaderModuleSpecJSI::NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["readAsDataURL"] = MethodMetadata {1, __hostFunction_NativeFileReaderModuleSpecJSI_readAsDataURL}; + + + methodMap_["readAsText"] = MethodMetadata {2, __hostFunction_NativeFileReaderModuleSpecJSI_readAsText}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeFrameRateLogger_SpecSetGlobalOptionsOptions) ++ (RCTManagedPointer *)JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_setGlobalOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setGlobalOptions", @selector(setGlobalOptions:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_setContext(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setContext", @selector(setContext:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_beginScroll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "beginScroll", @selector(beginScroll), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_endScroll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "endScroll", @selector(endScroll), args, count); + } + + NativeFrameRateLoggerSpecJSI::NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["setGlobalOptions"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerSpecJSI_setGlobalOptions}; + setMethodArgConversionSelector(@"setGlobalOptions", 0, @"JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:"); + + methodMap_["setContext"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerSpecJSI_setContext}; + + + methodMap_["beginScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerSpecJSI_beginScroll}; + + + methodMap_["endScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerSpecJSI_endScroll}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskFinished(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "notifyTaskFinished", @selector(notifyTaskFinished:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskRetry(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "notifyTaskRetry", @selector(notifyTaskRetry:resolve:reject:), args, count); + } + + NativeHeadlessJsTaskSupportSpecJSI::NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["notifyTaskFinished"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskFinished}; + + + methodMap_["notifyTaskRetry"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskRetry}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_allowRTL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "allowRTL", @selector(allowRTL:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_forceRTL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "forceRTL", @selector(forceRTL:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_swapLeftAndRightInRTL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "swapLeftAndRightInRTL", @selector(swapLeftAndRightInRTL:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativeI18nManagerSpecJSI::NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["allowRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerSpecJSI_allowRTL}; + + + methodMap_["forceRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerSpecJSI_forceRTL}; + + + methodMap_["swapLeftAndRightInRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerSpecJSI_swapLeftAndRightInRTL}; + + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeI18nManagerSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeImageEditor_OptionsOffset) ++ (RCTManagedPointer *)JS_NativeImageEditor_OptionsOffset:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +@implementation RCTCxxConvert (NativeImageEditor_OptionsSize) ++ (RCTManagedPointer *)JS_NativeImageEditor_OptionsSize:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +@implementation RCTCxxConvert (NativeImageEditor_OptionsDisplaySize) ++ (RCTManagedPointer *)JS_NativeImageEditor_OptionsDisplaySize:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +@implementation RCTCxxConvert (NativeImageEditor_Options) ++ (RCTManagedPointer *)JS_NativeImageEditor_Options:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeImageEditorSpecJSI_cropImage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cropImage", @selector(cropImage:cropData:successCallback:errorCallback:), args, count); + } + + NativeImageEditorSpecJSI::NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["cropImage"] = MethodMetadata {4, __hostFunction_NativeImageEditorSpecJSI_cropImage}; + setMethodArgConversionSelector(@"cropImage", 1, @"JS_NativeImageEditor_Options:"); + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_getSize(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getSize", @selector(getSize:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_getSizeWithHeaders(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getSizeWithHeaders", @selector(getSizeWithHeaders:headers:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "prefetchImage", @selector(prefetchImage:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImageWithMetadata(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "prefetchImageWithMetadata", @selector(prefetchImageWithMetadata:queryRootName:rootTag:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_queryCache(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "queryCache", @selector(queryCache:resolve:reject:), args, count); + } + + NativeImageLoaderIOSSpecJSI::NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getSize"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSSpecJSI_getSize}; + + + methodMap_["getSizeWithHeaders"] = MethodMetadata {2, __hostFunction_NativeImageLoaderIOSSpecJSI_getSizeWithHeaders}; + + + methodMap_["prefetchImage"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImage}; + + + methodMap_["prefetchImageWithMetadata"] = MethodMetadata {3, __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImageWithMetadata}; + + + methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSSpecJSI_queryCache}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_getBase64ForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getBase64ForTag", @selector(getBase64ForTag:successCallback:errorCallback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_hasImageForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hasImageForTag", @selector(hasImageForTag:callback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_removeImageForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeImageForTag", @selector(removeImageForTag:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_addImageFromBase64(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addImageFromBase64", @selector(addImageFromBase64:successCallback:errorCallback:), args, count); + } + + NativeImageStoreIOSSpecJSI::NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getBase64ForTag"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSSpecJSI_getBase64ForTag}; + + + methodMap_["hasImageForTag"] = MethodMetadata {2, __hostFunction_NativeImageStoreIOSSpecJSI_hasImageForTag}; + + + methodMap_["removeImageForTag"] = MethodMetadata {1, __hostFunction_NativeImageStoreIOSSpecJSI_removeImageForTag}; + + + methodMap_["addImageFromBase64"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSSpecJSI_addImageFromBase64}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeJSCHeapCaptureSpecJSI_captureComplete(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "captureComplete", @selector(captureComplete:error:), args, count); + } + + NativeJSCHeapCaptureSpecJSI::NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["captureComplete"] = MethodMetadata {2, __hostFunction_NativeJSCHeapCaptureSpecJSI_captureComplete}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeJSCSamplingProfilerSpecJSI_operationComplete(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "operationComplete", @selector(operationComplete:result:error:), args, count); + } + + NativeJSCSamplingProfilerSpecJSI::NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["operationComplete"] = MethodMetadata {3, __hostFunction_NativeJSCSamplingProfilerSpecJSI_operationComplete}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeKeyboardObserverSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeKeyboardObserverSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + NativeKeyboardObserverSpecJSI::NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverSpecJSI_removeListeners}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_getInitialURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getInitialURL", @selector(getInitialURL:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_canOpenURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "canOpenURL", @selector(canOpenURL:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_openURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "openURL", @selector(openURL:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_openSettings(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "openSettings", @selector(openSettings:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + NativeLinkingManagerSpecJSI::NativeLinkingManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getInitialURL"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerSpecJSI_getInitialURL}; + + + methodMap_["canOpenURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_canOpenURL}; + + + methodMap_["openURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_openURL}; + + + methodMap_["openSettings"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerSpecJSI_openSettings}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_removeListeners}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeLogBoxSpecJSI_show(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "show", @selector(show), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeLogBoxSpecJSI_hide(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hide", @selector(hide), args, count); + } + + NativeLogBoxSpecJSI::NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeLogBoxSpecJSI_show}; + + + methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeLogBoxSpecJSI_hide}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeModalManagerSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeModalManagerSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + NativeModalManagerSpecJSI::NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeModalManagerSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeModalManagerSpecJSI_removeListeners}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeNetworkingIOS_SpecSendRequestQuery) ++ (RCTManagedPointer *)JS_NativeNetworkingIOS_SpecSendRequestQuery:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_sendRequest(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendRequest", @selector(sendRequest:callback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_abortRequest(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "abortRequest", @selector(abortRequest:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_clearCookies(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "clearCookies", @selector(clearCookies:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + NativeNetworkingIOSSpecJSI::NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["sendRequest"] = MethodMetadata {2, __hostFunction_NativeNetworkingIOSSpecJSI_sendRequest}; + setMethodArgConversionSelector(@"sendRequest", 0, @"JS_NativeNetworkingIOS_SpecSendRequestQuery:"); + + methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_abortRequest}; + + + methodMap_["clearCookies"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_clearCookies}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_removeListeners}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativePlatformConstantsIOSSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativePlatformConstantsIOSSpecJSI::NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsIOSSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission) ++ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +@implementation RCTCxxConvert (NativePushNotificationManagerIOS_Notification) ++ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Notification:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_onFinishRemoteNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "onFinishRemoteNotification", @selector(onFinishRemoteNotification:fetchResult:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_setApplicationIconBadgeNumber(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setApplicationIconBadgeNumber", @selector(setApplicationIconBadgeNumber:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getApplicationIconBadgeNumber(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getApplicationIconBadgeNumber", @selector(getApplicationIconBadgeNumber:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_requestPermissions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "requestPermissions", @selector(requestPermissions:resolve:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_abandonPermissions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "abandonPermissions", @selector(abandonPermissions), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_checkPermissions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "checkPermissions", @selector(checkPermissions:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_presentLocalNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "presentLocalNotification", @selector(presentLocalNotification:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_scheduleLocalNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "scheduleLocalNotification", @selector(scheduleLocalNotification:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelAllLocalNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cancelAllLocalNotifications", @selector(cancelAllLocalNotifications), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelLocalNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cancelLocalNotifications", @selector(cancelLocalNotifications:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getInitialNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getInitialNotification", @selector(getInitialNotification:reject:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getScheduledLocalNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getScheduledLocalNotifications", @selector(getScheduledLocalNotifications:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeAllDeliveredNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeAllDeliveredNotifications", @selector(removeAllDeliveredNotifications), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeDeliveredNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeDeliveredNotifications", @selector(removeDeliveredNotifications:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getDeliveredNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getDeliveredNotifications", @selector(getDeliveredNotifications:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getAuthorizationStatus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getAuthorizationStatus", @selector(getAuthorizationStatus:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + NativePushNotificationManagerIOSSpecJSI::NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["onFinishRemoteNotification"] = MethodMetadata {2, __hostFunction_NativePushNotificationManagerIOSSpecJSI_onFinishRemoteNotification}; + + + methodMap_["setApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_setApplicationIconBadgeNumber}; + + + methodMap_["getApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getApplicationIconBadgeNumber}; + + + methodMap_["requestPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_requestPermissions}; + setMethodArgConversionSelector(@"requestPermissions", 0, @"JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:"); + + methodMap_["abandonPermissions"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_abandonPermissions}; + + + methodMap_["checkPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_checkPermissions}; + + + methodMap_["presentLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_presentLocalNotification}; + setMethodArgConversionSelector(@"presentLocalNotification", 0, @"JS_NativePushNotificationManagerIOS_Notification:"); + + methodMap_["scheduleLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_scheduleLocalNotification}; + setMethodArgConversionSelector(@"scheduleLocalNotification", 0, @"JS_NativePushNotificationManagerIOS_Notification:"); + + methodMap_["cancelAllLocalNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelAllLocalNotifications}; + + + methodMap_["cancelLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelLocalNotifications}; + + + methodMap_["getInitialNotification"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getInitialNotification}; + + + methodMap_["getScheduledLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getScheduledLocalNotifications}; + + + methodMap_["removeAllDeliveredNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeAllDeliveredNotifications}; + + + methodMap_["removeDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeDeliveredNotifications}; + + + methodMap_["getDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getDeliveredNotifications}; + + + methodMap_["getAuthorizationStatus"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getAuthorizationStatus}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeListeners}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeRedBoxSpecJSI_setExtraData(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setExtraData", @selector(setExtraData:forIdentifier:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeRedBoxSpecJSI_dismiss(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismiss", @selector(dismiss), args, count); + } + + NativeRedBoxSpecJSI::NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeRedBoxSpecJSI_setExtraData}; + + + methodMap_["dismiss"] = MethodMetadata {0, __hostFunction_NativeRedBoxSpecJSI_dismiss}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeSegmentFetcherSpecJSI_fetchSegment(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "fetchSegment", @selector(fetchSegment:options:callback:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeSegmentFetcherSpecJSI_getSegment(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getSegment", @selector(getSegment:options:callback:), args, count); + } + + NativeSegmentFetcherSpecJSI::NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["fetchSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherSpecJSI_fetchSegment}; + + + methodMap_["getSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherSpecJSI_getSegment}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeSettingsManagerSpecJSI_setValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setValues", @selector(setValues:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeSettingsManagerSpecJSI_deleteValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "deleteValues", @selector(deleteValues:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeSettingsManagerSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativeSettingsManagerSpecJSI::NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["setValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerSpecJSI_setValues}; + + + methodMap_["deleteValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerSpecJSI_deleteValues}; + + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSettingsManagerSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeShareModule_SpecShareContent) ++ (RCTManagedPointer *)JS_NativeShareModule_SpecShareContent:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeShareModuleSpecJSI_share(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "share", @selector(share:dialogTitle:resolve:reject:), args, count); + } + + NativeShareModuleSpecJSI::NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["share"] = MethodMetadata {2, __hostFunction_NativeShareModuleSpecJSI_share}; + setMethodArgConversionSelector(@"share", 0, @"JS_NativeShareModule_SpecShareContent:"); + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeSoundManagerSpecJSI_playTouchSound(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "playTouchSound", @selector(playTouchSound), args, count); + } + + NativeSoundManagerSpecJSI::NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["playTouchSound"] = MethodMetadata {0, __hostFunction_NativeSoundManagerSpecJSI_playTouchSound}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeSourceCodeSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativeSourceCodeSpecJSI::NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSourceCodeSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_getHeight(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getHeight", @selector(getHeight:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_setNetworkActivityIndicatorVisible(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setNetworkActivityIndicatorVisible", @selector(setNetworkActivityIndicatorVisible:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_setStyle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setStyle", @selector(setStyle:animated:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_setHidden(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setHidden", @selector(setHidden:withAnimation:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); + } + + NativeStatusBarManagerIOSSpecJSI::NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["getHeight"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_getHeight}; + + + methodMap_["setNetworkActivityIndicatorVisible"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_setNetworkActivityIndicatorVisible}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_removeListeners}; + + + methodMap_["setStyle"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSSpecJSI_setStyle}; + + + methodMap_["setHidden"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSSpecJSI_setHidden}; + + + methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerIOSSpecJSI_getConstants}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeTimingSpecJSI_createTimer(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createTimer", @selector(createTimer:duration:jsSchedulingTime:repeats:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeTimingSpecJSI_deleteTimer(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "deleteTimer", @selector(deleteTimer:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeTimingSpecJSI_setSendIdleEvents(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setSendIdleEvents", @selector(setSendIdleEvents:), args, count); + } + + NativeTimingSpecJSI::NativeTimingSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["createTimer"] = MethodMetadata {4, __hostFunction_NativeTimingSpecJSI_createTimer}; + + + methodMap_["deleteTimer"] = MethodMetadata {1, __hostFunction_NativeTimingSpecJSI_deleteTimer}; + + + methodMap_["setSendIdleEvents"] = MethodMetadata {1, __hostFunction_NativeTimingSpecJSI_setSendIdleEvents}; + + } + } // namespace react +} // namespace facebook + +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeVibrationSpecJSI_vibrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "vibrate", @selector(vibrate:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeVibrationSpecJSI_vibrateByPattern(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "vibrateByPattern", @selector(vibrateByPattern:repeat:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeVibrationSpecJSI_cancel(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cancel", @selector(cancel), args, count); + } + + NativeVibrationSpecJSI::NativeVibrationSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["vibrate"] = MethodMetadata {1, __hostFunction_NativeVibrationSpecJSI_vibrate}; + + + methodMap_["vibrateByPattern"] = MethodMetadata {2, __hostFunction_NativeVibrationSpecJSI_vibrateByPattern}; + + + methodMap_["cancel"] = MethodMetadata {0, __hostFunction_NativeVibrationSpecJSI_cancel}; + + } + } // namespace react +} // namespace facebook +@implementation RCTCxxConvert (NativeWebSocketModule_SpecConnectOptions) ++ (RCTManagedPointer *)JS_NativeWebSocketModule_SpecConnectOptions:(id)json +{ + return facebook::react::managedPointer(json); +} +@end +namespace facebook { + namespace react { + + static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_connect(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connect", @selector(connect:protocols:options:socketID:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_send(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "send", @selector(send:forSocketID:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_sendBinary(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendBinary", @selector(sendBinary:forSocketID:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_ping(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "ping", @selector(ping:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_close(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "close", @selector(close:reason:socketID:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); + } + + static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { + return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); + } + + NativeWebSocketModuleSpecJSI::NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) + : ObjCTurboModule(params) { + + methodMap_["connect"] = MethodMetadata {4, __hostFunction_NativeWebSocketModuleSpecJSI_connect}; + setMethodArgConversionSelector(@"connect", 2, @"JS_NativeWebSocketModule_SpecConnectOptions:"); + + methodMap_["send"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleSpecJSI_send}; + + + methodMap_["sendBinary"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleSpecJSI_sendBinary}; + + + methodMap_["ping"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleSpecJSI_ping}; + + + methodMap_["close"] = MethodMetadata {3, __hostFunction_NativeWebSocketModuleSpecJSI_close}; + + + methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleSpecJSI_addListener}; + + + methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleSpecJSI_removeListeners}; + + } + } // namespace react +} // namespace facebook diff --git a/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h b/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h new file mode 100644 index 000000000..4b3d472f6 --- /dev/null +++ b/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h @@ -0,0 +1,2448 @@ +/** + * 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: GenerateModuleObjCpp + * + * We create an umbrella header (and corresponding implementation) here since + * Cxx compilation in BUCK has a limitation: source-code producing genrule()s + * must have a single output. More files => more genrule()s => slower builds. + */ + +#ifndef __cplusplus +#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm. +#endif +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + + +@protocol NativeAccessibilityInfoSpec + +- (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess; +- (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess; +- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess; +- (void)setAccessibilityFocus:(double)reactTag; +- (void)announceForAccessibility:(NSString *)announcement; +- (void)getRecommendedTimeoutMillis:(double)mSec + onSuccess:(RCTResponseSenderBlock)onSuccess; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAccessibilityInfo' + */ + class JSI_EXPORT NativeAccessibilityInfoSpecJSI : public ObjCTurboModule { + public: + NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeAccessibilityManager { + struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers { + std::optional extraSmall() const; + std::optional small() const; + std::optional medium() const; + std::optional large() const; + std::optional extraLarge() const; + std::optional extraExtraLarge() const; + std::optional extraExtraExtraLarge() const; + std::optional accessibilityMedium() const; + std::optional accessibilityLarge() const; + std::optional accessibilityExtraLarge() const; + std::optional accessibilityExtraExtraLarge() const; + std::optional accessibilityExtraExtraExtraLarge() const; + + SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) ++ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json; +@end +namespace JS { + namespace NativeAccessibilityManager { + struct SpecAnnounceForAccessibilityWithOptionsOptions { + std::optional queue() const; + + SpecAnnounceForAccessibilityWithOptionsOptions(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json; +@end +@protocol NativeAccessibilityManagerSpec + +- (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentGrayscaleState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentInvertColorsState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; +- (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers; +- (void)setAccessibilityFocus:(double)reactTag; +- (void)announceForAccessibility:(NSString *)announcement; +- (void)announceForAccessibilityWithOptions:(NSString *)announcement + options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAccessibilityManager' + */ + class JSI_EXPORT NativeAccessibilityManagerSpecJSI : public ObjCTurboModule { + public: + NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeActionSheetManager { + struct SpecShowActionSheetWithOptionsOptions { + NSString *title() const; + NSString *message() const; + std::optional> options() const; + std::optional> destructiveButtonIndices() const; + std::optional cancelButtonIndex() const; + std::optional anchor() const; + std::optional tintColor() const; + std::optional cancelButtonTintColor() const; + NSString *userInterfaceStyle() const; + std::optional> disabledButtonIndices() const; + + SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:(id)json; +@end +namespace JS { + namespace NativeActionSheetManager { + struct SpecShowShareActionSheetWithOptionsOptions { + NSString *message() const; + NSString *url() const; + NSString *subject() const; + std::optional anchor() const; + std::optional tintColor() const; + std::optional cancelButtonTintColor() const; + std::optional> excludedActivityTypes() const; + NSString *userInterfaceStyle() const; + + SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:(id)json; +@end +@protocol NativeActionSheetManagerSpec + +- (void)showActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions &)options + callback:(RCTResponseSenderBlock)callback; +- (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options + failureCallback:(RCTResponseSenderBlock)failureCallback + successCallback:(RCTResponseSenderBlock)successCallback; +- (void)dismissActionSheet; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeActionSheetManager' + */ + class JSI_EXPORT NativeActionSheetManagerSpecJSI : public ObjCTurboModule { + public: + NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeAlertManager { + struct Args { + NSString *title() const; + NSString *message() const; + std::optional >> buttons() const; + NSString *type() const; + NSString *defaultValue() const; + NSString *cancelButtonKey() const; + NSString *destructiveButtonKey() const; + NSString *preferredButtonKey() const; + NSString *keyboardType() const; + NSString *userInterfaceStyle() const; + + Args(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeAlertManager_Args) ++ (RCTManagedPointer *)JS_NativeAlertManager_Args:(id)json; +@end +@protocol NativeAlertManagerSpec + +- (void)alertWithArgs:(JS::NativeAlertManager::Args &)args + callback:(RCTResponseSenderBlock)callback; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAlertManager' + */ + class JSI_EXPORT NativeAlertManagerSpecJSI : public ObjCTurboModule { + public: + NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeAnimatedModule { + struct EventMapping { + facebook::react::LazyVector nativeEventPath() const; + std::optional animatedValueTag() const; + + EventMapping(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeAnimatedModule_EventMapping) ++ (RCTManagedPointer *)JS_NativeAnimatedModule_EventMapping:(id)json; +@end +@protocol NativeAnimatedModuleSpec + +- (void)startOperationBatch; +- (void)finishOperationBatch; +- (void)createAnimatedNode:(double)tag + config:(NSDictionary *)config; +- (void)updateAnimatedNodeConfig:(double)tag + config:(NSDictionary *)config; +- (void)getValue:(double)tag +saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; +- (void)startListeningToAnimatedNodeValue:(double)tag; +- (void)stopListeningToAnimatedNodeValue:(double)tag; +- (void)connectAnimatedNodes:(double)parentTag + childTag:(double)childTag; +- (void)disconnectAnimatedNodes:(double)parentTag + childTag:(double)childTag; +- (void)startAnimatingNode:(double)animationId + nodeTag:(double)nodeTag + config:(NSDictionary *)config + endCallback:(RCTResponseSenderBlock)endCallback; +- (void)stopAnimation:(double)animationId; +- (void)setAnimatedNodeValue:(double)nodeTag + value:(double)value; +- (void)setAnimatedNodeOffset:(double)nodeTag + offset:(double)offset; +- (void)flattenAnimatedNodeOffset:(double)nodeTag; +- (void)extractAnimatedNodeOffset:(double)nodeTag; +- (void)connectAnimatedNodeToView:(double)nodeTag + viewTag:(double)viewTag; +- (void)disconnectAnimatedNodeFromView:(double)nodeTag + viewTag:(double)viewTag; +- (void)restoreDefaultValues:(double)nodeTag; +- (void)dropAnimatedNode:(double)tag; +- (void)addAnimatedEventToView:(double)viewTag + eventName:(NSString *)eventName + eventMapping:(JS::NativeAnimatedModule::EventMapping &)eventMapping; +- (void)removeAnimatedEventFromView:(double)viewTag + eventName:(NSString *)eventName + animatedNodeTag:(double)animatedNodeTag; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; +- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAnimatedModule' + */ + class JSI_EXPORT NativeAnimatedModuleSpecJSI : public ObjCTurboModule { + public: + NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeAnimatedTurboModule { + struct EventMapping { + facebook::react::LazyVector nativeEventPath() const; + std::optional animatedValueTag() const; + + EventMapping(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeAnimatedTurboModule_EventMapping) ++ (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EventMapping:(id)json; +@end +@protocol NativeAnimatedTurboModuleSpec + +- (void)startOperationBatch; +- (void)finishOperationBatch; +- (void)createAnimatedNode:(double)tag + config:(NSDictionary *)config; +- (void)updateAnimatedNodeConfig:(double)tag + config:(NSDictionary *)config; +- (void)getValue:(double)tag +saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; +- (void)startListeningToAnimatedNodeValue:(double)tag; +- (void)stopListeningToAnimatedNodeValue:(double)tag; +- (void)connectAnimatedNodes:(double)parentTag + childTag:(double)childTag; +- (void)disconnectAnimatedNodes:(double)parentTag + childTag:(double)childTag; +- (void)startAnimatingNode:(double)animationId + nodeTag:(double)nodeTag + config:(NSDictionary *)config + endCallback:(RCTResponseSenderBlock)endCallback; +- (void)stopAnimation:(double)animationId; +- (void)setAnimatedNodeValue:(double)nodeTag + value:(double)value; +- (void)setAnimatedNodeOffset:(double)nodeTag + offset:(double)offset; +- (void)flattenAnimatedNodeOffset:(double)nodeTag; +- (void)extractAnimatedNodeOffset:(double)nodeTag; +- (void)connectAnimatedNodeToView:(double)nodeTag + viewTag:(double)viewTag; +- (void)disconnectAnimatedNodeFromView:(double)nodeTag + viewTag:(double)viewTag; +- (void)restoreDefaultValues:(double)nodeTag; +- (void)dropAnimatedNode:(double)tag; +- (void)addAnimatedEventToView:(double)viewTag + eventName:(NSString *)eventName + eventMapping:(JS::NativeAnimatedTurboModule::EventMapping &)eventMapping; +- (void)removeAnimatedEventFromView:(double)viewTag + eventName:(NSString *)eventName + animatedNodeTag:(double)animatedNodeTag; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; +- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAnimatedTurboModule' + */ + class JSI_EXPORT NativeAnimatedTurboModuleSpecJSI : public ObjCTurboModule { + public: + NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeAnimationsDebugModuleSpec + +- (void)startRecordingFps; +- (void)stopRecordingFps:(double)animationStopTimeMs; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAnimationsDebugModule' + */ + class JSI_EXPORT NativeAnimationsDebugModuleSpecJSI : public ObjCTurboModule { + public: + NativeAnimationsDebugModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeAppState { + struct Constants { + + struct Builder { + struct Input { + RCTRequired initialAppState; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativeAppStateSpec + +- (void)getCurrentAppState:(RCTResponseSenderBlock)success + error:(RCTResponseSenderBlock)error; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAppState' + */ + class JSI_EXPORT NativeAppStateSpecJSI : public ObjCTurboModule { + public: + NativeAppStateSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeAppearanceSpec + +- (NSString * _Nullable)getColorScheme; +- (void)setColorScheme:(NSString *)colorScheme; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeAppearance' + */ + class JSI_EXPORT NativeAppearanceSpecJSI : public ObjCTurboModule { + public: + NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeBlobModule { + struct Constants { + + struct Builder { + struct Input { + RCTRequired BLOB_URI_SCHEME; + RCTRequired BLOB_URI_HOST; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativeBlobModuleSpec + +- (void)addNetworkingHandler; +- (void)addWebSocketHandler:(double)id; +- (void)removeWebSocketHandler:(double)id; +- (void)sendOverSocket:(NSDictionary *)blob + socketID:(double)socketID; +- (void)createFromParts:(NSArray *)parts + withId:(NSString *)withId; +- (void)release:(NSString *)blobId; +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeBlobModule' + */ + class JSI_EXPORT NativeBlobModuleSpecJSI : public ObjCTurboModule { + public: + NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeBugReportingSpec + +- (void)startReportAProblemFlow; +- (void)setExtraData:(NSDictionary *)extraData + extraFiles:(NSDictionary *)extraFiles; +- (void)setCategoryID:(NSString *)categoryID; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeBugReporting' + */ + class JSI_EXPORT NativeBugReportingSpecJSI : public ObjCTurboModule { + public: + NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeClipboardSpec + +- (void)getString:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)setString:(NSString *)content; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeClipboard' + */ + class JSI_EXPORT NativeClipboardSpecJSI : public ObjCTurboModule { + public: + NativeClipboardSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeDevLoadingViewSpec + +- (void)showMessage:(NSString *)message + withColor:(NSNumber *)withColor +withBackgroundColor:(NSNumber *)withBackgroundColor; +- (void)hide; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeDevLoadingView' + */ + class JSI_EXPORT NativeDevLoadingViewSpecJSI : public ObjCTurboModule { + public: + NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeDevMenuSpec + +- (void)show; +- (void)reload; +- (void)debugRemotely:(BOOL)enableDebug; +- (void)setProfilingEnabled:(BOOL)enabled; +- (void)setHotLoadingEnabled:(BOOL)enabled; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeDevMenu' + */ + class JSI_EXPORT NativeDevMenuSpecJSI : public ObjCTurboModule { + public: + NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeDevSettingsSpec + +- (void)reload; +- (void)reloadWithReason:(NSString *)reason; +- (void)onFastRefresh; +- (void)setHotLoadingEnabled:(BOOL)isHotLoadingEnabled; +- (void)setIsDebuggingRemotely:(BOOL)isDebuggingRemotelyEnabled; +- (void)setProfilingEnabled:(BOOL)isProfilingEnabled; +- (void)toggleElementInspector; +- (void)addMenuItem:(NSString *)title; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; +- (void)setIsShakeToShowDevMenuEnabled:(BOOL)enabled; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeDevSettings' + */ + class JSI_EXPORT NativeDevSettingsSpecJSI : public ObjCTurboModule { + public: + NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeDevSplitBundleLoaderSpec + +- (void)loadBundle:(NSString *)bundlePath + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeDevSplitBundleLoader' + */ + class JSI_EXPORT NativeDevSplitBundleLoaderSpecJSI : public ObjCTurboModule { + public: + NativeDevSplitBundleLoaderSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeDevToolsSettingsManagerSpec + +- (void)setConsolePatchSettings:(NSString *)newConsolePatchSettings; +- (NSString * _Nullable)getConsolePatchSettings; +- (void)setProfilingSettings:(NSString *)newProfilingSettings; +- (NSString * _Nullable)getProfilingSettings; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeDevToolsSettingsManager' + */ + class JSI_EXPORT NativeDevToolsSettingsManagerSpecJSI : public ObjCTurboModule { + public: + NativeDevToolsSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeDeviceEventManagerSpec + +- (void)invokeDefaultBackPressHandler; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeDeviceEventManager' + */ + class JSI_EXPORT NativeDeviceEventManagerSpecJSI : public ObjCTurboModule { + public: + NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeDeviceInfo { + struct DisplayMetrics { + + struct Builder { + struct Input { + RCTRequired width; + RCTRequired height; + RCTRequired scale; + RCTRequired fontScale; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing DisplayMetrics */ + Builder(DisplayMetrics i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static DisplayMetrics fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + DisplayMetrics(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +namespace JS { + namespace NativeDeviceInfo { + struct DisplayMetricsAndroid { + + struct Builder { + struct Input { + RCTRequired width; + RCTRequired height; + RCTRequired scale; + RCTRequired fontScale; + RCTRequired densityDpi; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing DisplayMetricsAndroid */ + Builder(DisplayMetricsAndroid i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static DisplayMetricsAndroid fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + DisplayMetricsAndroid(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +namespace JS { + namespace NativeDeviceInfo { + struct DimensionsPayload { + + struct Builder { + struct Input { + std::optional window; + std::optional screen; + std::optional windowPhysicalPixels; + std::optional screenPhysicalPixels; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing DimensionsPayload */ + Builder(DimensionsPayload i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static DimensionsPayload fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + DimensionsPayload(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +namespace JS { + namespace NativeDeviceInfo { + struct Constants { + + struct Builder { + struct Input { + RCTRequired Dimensions; + std::optional isIPhoneX_deprecated; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativeDeviceInfoSpec + +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeDeviceInfo' + */ + class JSI_EXPORT NativeDeviceInfoSpecJSI : public ObjCTurboModule { + public: + NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeExceptionsManager { + struct StackFrame { + std::optional column() const; + NSString *file() const; + std::optional lineNumber() const; + NSString *methodName() const; + std::optional collapse() const; + + StackFrame(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeExceptionsManager_StackFrame) ++ (RCTManagedPointer *)JS_NativeExceptionsManager_StackFrame:(id)json; +@end +namespace JS { + namespace NativeExceptionsManager { + struct ExceptionData { + NSString *message() const; + NSString *originalMessage() const; + NSString *name() const; + NSString *componentStack() const; + facebook::react::LazyVector stack() const; + double id_() const; + bool isFatal() const; + id _Nullable extraData() const; + + ExceptionData(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeExceptionsManager_ExceptionData) ++ (RCTManagedPointer *)JS_NativeExceptionsManager_ExceptionData:(id)json; +@end +@protocol NativeExceptionsManagerSpec + +- (void)reportFatalException:(NSString *)message + stack:(NSArray *)stack + exceptionId:(double)exceptionId; +- (void)reportSoftException:(NSString *)message + stack:(NSArray *)stack + exceptionId:(double)exceptionId; +- (void)reportException:(JS::NativeExceptionsManager::ExceptionData &)data; +- (void)updateExceptionMessage:(NSString *)message + stack:(NSArray *)stack + exceptionId:(double)exceptionId; +- (void)dismissRedbox; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeExceptionsManager' + */ + class JSI_EXPORT NativeExceptionsManagerSpecJSI : public ObjCTurboModule { + public: + NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeFileReaderModuleSpec + +- (void)readAsDataURL:(NSDictionary *)data + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)readAsText:(NSDictionary *)data + encoding:(NSString *)encoding + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeFileReaderModule' + */ + class JSI_EXPORT NativeFileReaderModuleSpecJSI : public ObjCTurboModule { + public: + NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeFrameRateLogger { + struct SpecSetGlobalOptionsOptions { + std::optional debug() const; + std::optional reportStackTraces() const; + + SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeFrameRateLogger_SpecSetGlobalOptionsOptions) ++ (RCTManagedPointer *)JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:(id)json; +@end +@protocol NativeFrameRateLoggerSpec + +- (void)setGlobalOptions:(JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions &)options; +- (void)setContext:(NSString *)context; +- (void)beginScroll; +- (void)endScroll; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeFrameRateLogger' + */ + class JSI_EXPORT NativeFrameRateLoggerSpecJSI : public ObjCTurboModule { + public: + NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeHeadlessJsTaskSupportSpec + +- (void)notifyTaskFinished:(double)taskId; +- (void)notifyTaskRetry:(double)taskId + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeHeadlessJsTaskSupport' + */ + class JSI_EXPORT NativeHeadlessJsTaskSupportSpecJSI : public ObjCTurboModule { + public: + NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeI18nManager { + struct Constants { + + struct Builder { + struct Input { + RCTRequired isRTL; + RCTRequired doLeftAndRightSwapInRTL; + RCTRequired localeIdentifier; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativeI18nManagerSpec + +- (void)allowRTL:(BOOL)allowRTL; +- (void)forceRTL:(BOOL)forceRTL; +- (void)swapLeftAndRightInRTL:(BOOL)flipStyles; +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeI18nManager' + */ + class JSI_EXPORT NativeI18nManagerSpecJSI : public ObjCTurboModule { + public: + NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeImageEditor { + struct OptionsOffset { + double x() const; + double y() const; + + OptionsOffset(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeImageEditor_OptionsOffset) ++ (RCTManagedPointer *)JS_NativeImageEditor_OptionsOffset:(id)json; +@end +namespace JS { + namespace NativeImageEditor { + struct OptionsSize { + double width() const; + double height() const; + + OptionsSize(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeImageEditor_OptionsSize) ++ (RCTManagedPointer *)JS_NativeImageEditor_OptionsSize:(id)json; +@end +namespace JS { + namespace NativeImageEditor { + struct OptionsDisplaySize { + double width() const; + double height() const; + + OptionsDisplaySize(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeImageEditor_OptionsDisplaySize) ++ (RCTManagedPointer *)JS_NativeImageEditor_OptionsDisplaySize:(id)json; +@end +namespace JS { + namespace NativeImageEditor { + struct Options { + JS::NativeImageEditor::OptionsOffset offset() const; + JS::NativeImageEditor::OptionsSize size() const; + std::optional displaySize() const; + NSString *resizeMode() const; + std::optional allowExternalStorage() const; + + Options(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeImageEditor_Options) ++ (RCTManagedPointer *)JS_NativeImageEditor_Options:(id)json; +@end +@protocol NativeImageEditorSpec + +- (void)cropImage:(NSString *)uri + cropData:(JS::NativeImageEditor::Options &)cropData + successCallback:(RCTResponseSenderBlock)successCallback + errorCallback:(RCTResponseSenderBlock)errorCallback; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeImageEditor' + */ + class JSI_EXPORT NativeImageEditorSpecJSI : public ObjCTurboModule { + public: + NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeImageLoaderIOSSpec + +- (void)getSize:(NSString *)uri + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)getSizeWithHeaders:(NSString *)uri + headers:(NSDictionary *)headers + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)prefetchImage:(NSString *)uri + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)prefetchImageWithMetadata:(NSString *)uri + queryRootName:(NSString *)queryRootName + rootTag:(double)rootTag + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)queryCache:(NSArray *)uris + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeImageLoaderIOS' + */ + class JSI_EXPORT NativeImageLoaderIOSSpecJSI : public ObjCTurboModule { + public: + NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeImageStoreIOSSpec + +- (void)getBase64ForTag:(NSString *)uri + successCallback:(RCTResponseSenderBlock)successCallback + errorCallback:(RCTResponseSenderBlock)errorCallback; +- (void)hasImageForTag:(NSString *)uri + callback:(RCTResponseSenderBlock)callback; +- (void)removeImageForTag:(NSString *)uri; +- (void)addImageFromBase64:(NSString *)base64ImageData + successCallback:(RCTResponseSenderBlock)successCallback + errorCallback:(RCTResponseSenderBlock)errorCallback; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeImageStoreIOS' + */ + class JSI_EXPORT NativeImageStoreIOSSpecJSI : public ObjCTurboModule { + public: + NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeJSCHeapCaptureSpec + +- (void)captureComplete:(NSString *)path + error:(NSString * _Nullable)error; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeJSCHeapCapture' + */ + class JSI_EXPORT NativeJSCHeapCaptureSpecJSI : public ObjCTurboModule { + public: + NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeJSCSamplingProfilerSpec + +- (void)operationComplete:(double)token + result:(NSString * _Nullable)result + error:(NSString * _Nullable)error; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeJSCSamplingProfiler' + */ + class JSI_EXPORT NativeJSCSamplingProfilerSpecJSI : public ObjCTurboModule { + public: + NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeKeyboardObserverSpec + +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeKeyboardObserver' + */ + class JSI_EXPORT NativeKeyboardObserverSpecJSI : public ObjCTurboModule { + public: + NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeLinkingManagerSpec + +- (void)getInitialURL:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)canOpenURL:(NSString *)url + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)openURL:(NSString *)url + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)openSettings:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeLinkingManager' + */ + class JSI_EXPORT NativeLinkingManagerSpecJSI : public ObjCTurboModule { + public: + NativeLinkingManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeLogBoxSpec + +- (void)show; +- (void)hide; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeLogBox' + */ + class JSI_EXPORT NativeLogBoxSpecJSI : public ObjCTurboModule { + public: + NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeModalManagerSpec + +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeModalManager' + */ + class JSI_EXPORT NativeModalManagerSpecJSI : public ObjCTurboModule { + public: + NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeNetworkingIOS { + struct SpecSendRequestQuery { + NSString *method() const; + NSString *url() const; + id data() const; + id headers() const; + NSString *responseType() const; + bool incrementalUpdates() const; + double timeout() const; + bool withCredentials() const; + + SpecSendRequestQuery(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeNetworkingIOS_SpecSendRequestQuery) ++ (RCTManagedPointer *)JS_NativeNetworkingIOS_SpecSendRequestQuery:(id)json; +@end +@protocol NativeNetworkingIOSSpec + +- (void)sendRequest:(JS::NativeNetworkingIOS::SpecSendRequestQuery &)query + callback:(RCTResponseSenderBlock)callback; +- (void)abortRequest:(double)requestId; +- (void)clearCookies:(RCTResponseSenderBlock)callback; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeNetworkingIOS' + */ + class JSI_EXPORT NativeNetworkingIOSSpecJSI : public ObjCTurboModule { + public: + NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativePlatformConstantsIOS { + struct ConstantsReactNativeVersion { + + struct Builder { + struct Input { + RCTRequired major; + RCTRequired minor; + RCTRequired patch; + RCTRequired> prerelease; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing ConstantsReactNativeVersion */ + Builder(ConstantsReactNativeVersion i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static ConstantsReactNativeVersion fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + ConstantsReactNativeVersion(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +namespace JS { + namespace NativePlatformConstantsIOS { + struct Constants { + + struct Builder { + struct Input { + RCTRequired isTesting; + RCTRequired reactNativeVersion; + RCTRequired forceTouchAvailable; + RCTRequired osVersion; + RCTRequired systemName; + RCTRequired interfaceIdiom; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativePlatformConstantsIOSSpec + +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativePlatformConstantsIOS' + */ + class JSI_EXPORT NativePlatformConstantsIOSSpecJSI : public ObjCTurboModule { + public: + NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativePushNotificationManagerIOS { + struct SpecRequestPermissionsPermission { + bool alert() const; + bool badge() const; + bool sound() const; + + SpecRequestPermissionsPermission(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission) ++ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:(id)json; +@end +namespace JS { + namespace NativePushNotificationManagerIOS { + struct Notification { + NSString *alertTitle() const; + std::optional fireDate() const; + NSString *alertBody() const; + NSString *alertAction() const; + id _Nullable userInfo() const; + NSString *category() const; + NSString *repeatInterval() const; + std::optional applicationIconBadgeNumber() const; + std::optional isSilent() const; + NSString *soundName() const; + + Notification(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativePushNotificationManagerIOS_Notification) ++ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Notification:(id)json; +@end +@protocol NativePushNotificationManagerIOSSpec + +- (void)onFinishRemoteNotification:(NSString *)notificationId + fetchResult:(NSString *)fetchResult; +- (void)setApplicationIconBadgeNumber:(double)num; +- (void)getApplicationIconBadgeNumber:(RCTResponseSenderBlock)callback; +- (void)requestPermissions:(JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission &)permission + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)abandonPermissions; +- (void)checkPermissions:(RCTResponseSenderBlock)callback; +- (void)presentLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification; +- (void)scheduleLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification; +- (void)cancelAllLocalNotifications; +- (void)cancelLocalNotifications:(NSDictionary *)userInfo; +- (void)getInitialNotification:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; +- (void)getScheduledLocalNotifications:(RCTResponseSenderBlock)callback; +- (void)removeAllDeliveredNotifications; +- (void)removeDeliveredNotifications:(NSArray *)identifiers; +- (void)getDeliveredNotifications:(RCTResponseSenderBlock)callback; +- (void)getAuthorizationStatus:(RCTResponseSenderBlock)callback; +- (void)addListener:(NSString *)eventType; +- (void)removeListeners:(double)count; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativePushNotificationManagerIOS' + */ + class JSI_EXPORT NativePushNotificationManagerIOSSpecJSI : public ObjCTurboModule { + public: + NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeRedBoxSpec + +- (void)setExtraData:(NSDictionary *)extraData + forIdentifier:(NSString *)forIdentifier; +- (void)dismiss; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeRedBox' + */ + class JSI_EXPORT NativeRedBoxSpecJSI : public ObjCTurboModule { + public: + NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeSegmentFetcherSpec + +- (void)fetchSegment:(double)segmentId + options:(NSDictionary *)options + callback:(RCTResponseSenderBlock)callback; +- (void)getSegment:(double)segmentId + options:(NSDictionary *)options + callback:(RCTResponseSenderBlock)callback; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeSegmentFetcher' + */ + class JSI_EXPORT NativeSegmentFetcherSpecJSI : public ObjCTurboModule { + public: + NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeSettingsManager { + struct Constants { + + struct Builder { + struct Input { + RCTRequired > settings; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativeSettingsManagerSpec + +- (void)setValues:(NSDictionary *)values; +- (void)deleteValues:(NSArray *)values; +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeSettingsManager' + */ + class JSI_EXPORT NativeSettingsManagerSpecJSI : public ObjCTurboModule { + public: + NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeShareModule { + struct SpecShareContent { + NSString *title() const; + NSString *message() const; + + SpecShareContent(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeShareModule_SpecShareContent) ++ (RCTManagedPointer *)JS_NativeShareModule_SpecShareContent:(id)json; +@end +@protocol NativeShareModuleSpec + +- (void)share:(JS::NativeShareModule::SpecShareContent &)content + dialogTitle:(NSString *)dialogTitle + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeShareModule' + */ + class JSI_EXPORT NativeShareModuleSpecJSI : public ObjCTurboModule { + public: + NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeSoundManagerSpec + +- (void)playTouchSound; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeSoundManager' + */ + class JSI_EXPORT NativeSoundManagerSpecJSI : public ObjCTurboModule { + public: + NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeSourceCode { + struct Constants { + + struct Builder { + struct Input { + RCTRequired scriptURL; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativeSourceCodeSpec + +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeSourceCode' + */ + class JSI_EXPORT NativeSourceCodeSpecJSI : public ObjCTurboModule { + public: + NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeStatusBarManagerIOS { + struct Constants { + + struct Builder { + struct Input { + RCTRequired HEIGHT; + std::optional DEFAULT_BACKGROUND_COLOR; + }; + + /** Initialize with a set of values */ + Builder(const Input i); + /** Initialize with an existing Constants */ + Builder(Constants i); + /** Builds the object. Generally used only by the infrastructure. */ + NSDictionary *buildUnsafeRawValue() const { return _factory(); }; + private: + NSDictionary *(^_factory)(void); + }; + + static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } + NSDictionary *unsafeRawValue() const { return _v; } + private: + Constants(NSDictionary *const v) : _v(v) {} + NSDictionary *_v; + }; + } +} +@protocol NativeStatusBarManagerIOSSpec + +- (void)getHeight:(RCTResponseSenderBlock)callback; +- (void)setNetworkActivityIndicatorVisible:(BOOL)visible; +- (void)addListener:(NSString *)eventType; +- (void)removeListeners:(double)count; +- (void)setStyle:(NSString * _Nullable)statusBarStyle + animated:(BOOL)animated; +- (void)setHidden:(BOOL)hidden + withAnimation:(NSString *)withAnimation; +- (facebook::react::ModuleConstants)constantsToExport; +- (facebook::react::ModuleConstants)getConstants; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeStatusBarManagerIOS' + */ + class JSI_EXPORT NativeStatusBarManagerIOSSpecJSI : public ObjCTurboModule { + public: + NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeTimingSpec + +- (void)createTimer:(double)callbackID + duration:(double)duration + jsSchedulingTime:(double)jsSchedulingTime + repeats:(BOOL)repeats; +- (void)deleteTimer:(double)timerID; +- (void)setSendIdleEvents:(BOOL)sendIdleEvents; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeTiming' + */ + class JSI_EXPORT NativeTimingSpecJSI : public ObjCTurboModule { + public: + NativeTimingSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +@protocol NativeVibrationSpec + +- (void)vibrate:(double)pattern; +- (void)vibrateByPattern:(NSArray *)pattern + repeat:(double)repeat; +- (void)cancel; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeVibration' + */ + class JSI_EXPORT NativeVibrationSpecJSI : public ObjCTurboModule { + public: + NativeVibrationSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook +namespace JS { + namespace NativeWebSocketModule { + struct SpecConnectOptions { + id _Nullable headers() const; + + SpecConnectOptions(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeWebSocketModule_SpecConnectOptions) ++ (RCTManagedPointer *)JS_NativeWebSocketModule_SpecConnectOptions:(id)json; +@end +@protocol NativeWebSocketModuleSpec + +- (void)connect:(NSString *)url + protocols:(NSArray * _Nullable)protocols + options:(JS::NativeWebSocketModule::SpecConnectOptions &)options + socketID:(double)socketID; +- (void)send:(NSString *)message + forSocketID:(double)forSocketID; +- (void)sendBinary:(NSString *)base64String + forSocketID:(double)forSocketID; +- (void)ping:(double)socketID; +- (void)close:(double)code + reason:(NSString *)reason + socketID:(double)socketID; +- (void)addListener:(NSString *)eventName; +- (void)removeListeners:(double)count; + +@end +namespace facebook { + namespace react { + /** + * ObjC++ class for module 'NativeWebSocketModule' + */ + class JSI_EXPORT NativeWebSocketModuleSpecJSI : public ObjCTurboModule { + public: + NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); + }; + } // namespace react +} // namespace facebook + +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const +{ + id const p = _v[@"extraSmall"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const +{ + id const p = _v[@"small"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const +{ + id const p = _v[@"medium"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const +{ + id const p = _v[@"large"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const +{ + id const p = _v[@"extraLarge"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const +{ + id const p = _v[@"extraExtraLarge"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const +{ + id const p = _v[@"extraExtraExtraLarge"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const +{ + id const p = _v[@"accessibilityMedium"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const +{ + id const p = _v[@"accessibilityLarge"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const +{ + id const p = _v[@"accessibilityExtraLarge"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const +{ + id const p = _v[@"accessibilityExtraExtraLarge"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const +{ + id const p = _v[@"accessibilityExtraExtraExtraLarge"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions::queue() const +{ + id const p = _v[@"queue"]; + return RCTBridgingToOptionalBool(p); +} +inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const +{ + id const p = _v[@"title"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::message() const +{ + id const p = _v[@"message"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const +{ + id const p = _v[@"options"]; + return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); +} +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const +{ + id const p = _v[@"destructiveButtonIndices"]; + return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); +} +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const +{ + id const p = _v[@"cancelButtonIndex"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const +{ + id const p = _v[@"anchor"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const +{ + id const p = _v[@"tintColor"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const +{ + id const p = _v[@"cancelButtonTintColor"]; + return RCTBridgingToOptionalDouble(p); +} +inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::userInterfaceStyle() const +{ + id const p = _v[@"userInterfaceStyle"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const +{ + id const p = _v[@"disabledButtonIndices"]; + return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); +} +inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::message() const +{ + id const p = _v[@"message"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::url() const +{ + id const p = _v[@"url"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::subject() const +{ + id const p = _v[@"subject"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const +{ + id const p = _v[@"anchor"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const +{ + id const p = _v[@"tintColor"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const +{ + id const p = _v[@"cancelButtonTintColor"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const +{ + id const p = _v[@"excludedActivityTypes"]; + return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); +} +inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::userInterfaceStyle() const +{ + id const p = _v[@"userInterfaceStyle"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::title() const +{ + id const p = _v[@"title"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::message() const +{ + id const p = _v[@"message"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional >> JS::NativeAlertManager::Args::buttons() const +{ + id const p = _v[@"buttons"]; + return RCTBridgingToOptionalVec(p, ^id (id itemValue_0) { return itemValue_0; }); +} +inline NSString *JS::NativeAlertManager::Args::type() const +{ + id const p = _v[@"type"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::defaultValue() const +{ + id const p = _v[@"defaultValue"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::cancelButtonKey() const +{ + id const p = _v[@"cancelButtonKey"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::destructiveButtonKey() const +{ + id const p = _v[@"destructiveButtonKey"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::preferredButtonKey() const +{ + id const p = _v[@"preferredButtonKey"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::keyboardType() const +{ + id const p = _v[@"keyboardType"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeAlertManager::Args::userInterfaceStyle() const +{ + id const p = _v[@"userInterfaceStyle"]; + return RCTBridgingToOptionalString(p); +} +inline facebook::react::LazyVector JS::NativeAnimatedModule::EventMapping::nativeEventPath() const +{ + id const p = _v[@"nativeEventPath"]; + return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); +} +inline std::optional JS::NativeAnimatedModule::EventMapping::animatedValueTag() const +{ + id const p = _v[@"animatedValueTag"]; + return RCTBridgingToOptionalDouble(p); +} +inline facebook::react::LazyVector JS::NativeAnimatedTurboModule::EventMapping::nativeEventPath() const +{ + id const p = _v[@"nativeEventPath"]; + return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); +} +inline std::optional JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const +{ + id const p = _v[@"animatedValueTag"]; + return RCTBridgingToOptionalDouble(p); +} + +inline JS::NativeAppState::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto initialAppState = i.initialAppState.get(); + d[@"initialAppState"] = initialAppState; + return d; +}) {} +inline JS::NativeAppState::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} + +inline JS::NativeBlobModule::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto BLOB_URI_SCHEME = i.BLOB_URI_SCHEME.get(); + d[@"BLOB_URI_SCHEME"] = BLOB_URI_SCHEME; + auto BLOB_URI_HOST = i.BLOB_URI_HOST.get(); + d[@"BLOB_URI_HOST"] = BLOB_URI_HOST; + return d; +}) {} +inline JS::NativeBlobModule::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} + + + + + + + + +inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto width = i.width.get(); + d[@"width"] = @(width); + auto height = i.height.get(); + d[@"height"] = @(height); + auto scale = i.scale.get(); + d[@"scale"] = @(scale); + auto fontScale = i.fontScale.get(); + d[@"fontScale"] = @(fontScale); + return d; +}) {} +inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(DisplayMetrics i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto width = i.width.get(); + d[@"width"] = @(width); + auto height = i.height.get(); + d[@"height"] = @(height); + auto scale = i.scale.get(); + d[@"scale"] = @(scale); + auto fontScale = i.fontScale.get(); + d[@"fontScale"] = @(fontScale); + auto densityDpi = i.densityDpi.get(); + d[@"densityDpi"] = @(densityDpi); + return d; +}) {} +inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetricsAndroid i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto window = i.window; + d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil; + auto screen = i.screen; + d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil; + auto windowPhysicalPixels = i.windowPhysicalPixels; + d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; + auto screenPhysicalPixels = i.screenPhysicalPixels; + d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; + return d; +}) {} +inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto Dimensions = i.Dimensions.get(); + d[@"Dimensions"] = Dimensions.buildUnsafeRawValue(); + auto isIPhoneX_deprecated = i.isIPhoneX_deprecated; + d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; + return d; +}) {} +inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline std::optional JS::NativeExceptionsManager::StackFrame::column() const +{ + id const p = _v[@"column"]; + return RCTBridgingToOptionalDouble(p); +} +inline NSString *JS::NativeExceptionsManager::StackFrame::file() const +{ + id const p = _v[@"file"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional JS::NativeExceptionsManager::StackFrame::lineNumber() const +{ + id const p = _v[@"lineNumber"]; + return RCTBridgingToOptionalDouble(p); +} +inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const +{ + id const p = _v[@"methodName"]; + return RCTBridgingToString(p); +} +inline std::optional JS::NativeExceptionsManager::StackFrame::collapse() const +{ + id const p = _v[@"collapse"]; + return RCTBridgingToOptionalBool(p); +} +inline NSString *JS::NativeExceptionsManager::ExceptionData::message() const +{ + id const p = _v[@"message"]; + return RCTBridgingToString(p); +} +inline NSString *JS::NativeExceptionsManager::ExceptionData::originalMessage() const +{ + id const p = _v[@"originalMessage"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeExceptionsManager::ExceptionData::name() const +{ + id const p = _v[@"name"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeExceptionsManager::ExceptionData::componentStack() const +{ + id const p = _v[@"componentStack"]; + return RCTBridgingToOptionalString(p); +} +inline facebook::react::LazyVector JS::NativeExceptionsManager::ExceptionData::stack() const +{ + id const p = _v[@"stack"]; + return RCTBridgingToVec(p, ^JS::NativeExceptionsManager::StackFrame(id itemValue_0) { return JS::NativeExceptionsManager::StackFrame(itemValue_0); }); +} +inline double JS::NativeExceptionsManager::ExceptionData::id_() const +{ + id const p = _v[@"id"]; + return RCTBridgingToDouble(p); +} +inline bool JS::NativeExceptionsManager::ExceptionData::isFatal() const +{ + id const p = _v[@"isFatal"]; + return RCTBridgingToBool(p); +} +inline id _Nullable JS::NativeExceptionsManager::ExceptionData::extraData() const +{ + id const p = _v[@"extraData"]; + return p; +} + +inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const +{ + id const p = _v[@"debug"]; + return RCTBridgingToOptionalBool(p); +} +inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const +{ + id const p = _v[@"reportStackTraces"]; + return RCTBridgingToOptionalBool(p); +} + +inline JS::NativeI18nManager::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto isRTL = i.isRTL.get(); + d[@"isRTL"] = @(isRTL); + auto doLeftAndRightSwapInRTL = i.doLeftAndRightSwapInRTL.get(); + d[@"doLeftAndRightSwapInRTL"] = @(doLeftAndRightSwapInRTL); + auto localeIdentifier = i.localeIdentifier.get(); + d[@"localeIdentifier"] = localeIdentifier; + return d; +}) {} +inline JS::NativeI18nManager::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline double JS::NativeImageEditor::OptionsOffset::x() const +{ + id const p = _v[@"x"]; + return RCTBridgingToDouble(p); +} +inline double JS::NativeImageEditor::OptionsOffset::y() const +{ + id const p = _v[@"y"]; + return RCTBridgingToDouble(p); +} +inline double JS::NativeImageEditor::OptionsSize::width() const +{ + id const p = _v[@"width"]; + return RCTBridgingToDouble(p); +} +inline double JS::NativeImageEditor::OptionsSize::height() const +{ + id const p = _v[@"height"]; + return RCTBridgingToDouble(p); +} +inline double JS::NativeImageEditor::OptionsDisplaySize::width() const +{ + id const p = _v[@"width"]; + return RCTBridgingToDouble(p); +} +inline double JS::NativeImageEditor::OptionsDisplaySize::height() const +{ + id const p = _v[@"height"]; + return RCTBridgingToDouble(p); +} +inline JS::NativeImageEditor::OptionsOffset JS::NativeImageEditor::Options::offset() const +{ + id const p = _v[@"offset"]; + return JS::NativeImageEditor::OptionsOffset(p); +} +inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size() const +{ + id const p = _v[@"size"]; + return JS::NativeImageEditor::OptionsSize(p); +} +inline std::optional JS::NativeImageEditor::Options::displaySize() const +{ + id const p = _v[@"displaySize"]; + return (p == nil ? std::nullopt : std::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); +} +inline NSString *JS::NativeImageEditor::Options::resizeMode() const +{ + id const p = _v[@"resizeMode"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional JS::NativeImageEditor::Options::allowExternalStorage() const +{ + id const p = _v[@"allowExternalStorage"]; + return RCTBridgingToOptionalBool(p); +} + + + + + + + + +inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::method() const +{ + id const p = _v[@"method"]; + return RCTBridgingToString(p); +} +inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::url() const +{ + id const p = _v[@"url"]; + return RCTBridgingToString(p); +} +inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::data() const +{ + id const p = _v[@"data"]; + return p; +} +inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::headers() const +{ + id const p = _v[@"headers"]; + return p; +} +inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::responseType() const +{ + id const p = _v[@"responseType"]; + return RCTBridgingToString(p); +} +inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::incrementalUpdates() const +{ + id const p = _v[@"incrementalUpdates"]; + return RCTBridgingToBool(p); +} +inline double JS::NativeNetworkingIOS::SpecSendRequestQuery::timeout() const +{ + id const p = _v[@"timeout"]; + return RCTBridgingToDouble(p); +} +inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::withCredentials() const +{ + id const p = _v[@"withCredentials"]; + return RCTBridgingToBool(p); +} +inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto major = i.major.get(); + d[@"major"] = @(major); + auto minor = i.minor.get(); + d[@"minor"] = @(minor); + auto patch = i.patch.get(); + d[@"patch"] = @(patch); + auto prerelease = i.prerelease.get(); + d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil; + return d; +}) {} +inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto isTesting = i.isTesting.get(); + d[@"isTesting"] = @(isTesting); + auto reactNativeVersion = i.reactNativeVersion.get(); + d[@"reactNativeVersion"] = reactNativeVersion.buildUnsafeRawValue(); + auto forceTouchAvailable = i.forceTouchAvailable.get(); + d[@"forceTouchAvailable"] = @(forceTouchAvailable); + auto osVersion = i.osVersion.get(); + d[@"osVersion"] = osVersion; + auto systemName = i.systemName.get(); + d[@"systemName"] = systemName; + auto interfaceIdiom = i.interfaceIdiom.get(); + d[@"interfaceIdiom"] = interfaceIdiom; + return d; +}) {} +inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::alert() const +{ + id const p = _v[@"alert"]; + return RCTBridgingToBool(p); +} +inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::badge() const +{ + id const p = _v[@"badge"]; + return RCTBridgingToBool(p); +} +inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::sound() const +{ + id const p = _v[@"sound"]; + return RCTBridgingToBool(p); +} +inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle() const +{ + id const p = _v[@"alertTitle"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional JS::NativePushNotificationManagerIOS::Notification::fireDate() const +{ + id const p = _v[@"fireDate"]; + return RCTBridgingToOptionalDouble(p); +} +inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertBody() const +{ + id const p = _v[@"alertBody"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertAction() const +{ + id const p = _v[@"alertAction"]; + return RCTBridgingToOptionalString(p); +} +inline id _Nullable JS::NativePushNotificationManagerIOS::Notification::userInfo() const +{ + id const p = _v[@"userInfo"]; + return p; +} +inline NSString *JS::NativePushNotificationManagerIOS::Notification::category() const +{ + id const p = _v[@"category"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInterval() const +{ + id const p = _v[@"repeatInterval"]; + return RCTBridgingToOptionalString(p); +} +inline std::optional JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const +{ + id const p = _v[@"applicationIconBadgeNumber"]; + return RCTBridgingToOptionalDouble(p); +} +inline std::optional JS::NativePushNotificationManagerIOS::Notification::isSilent() const +{ + id const p = _v[@"isSilent"]; + return RCTBridgingToOptionalBool(p); +} +inline NSString *JS::NativePushNotificationManagerIOS::Notification::soundName() const +{ + id const p = _v[@"soundName"]; + return RCTBridgingToOptionalString(p); +} + + +inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto settings = i.settings.get(); + d[@"settings"] = settings; + return d; +}) {} +inline JS::NativeSettingsManager::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline NSString *JS::NativeShareModule::SpecShareContent::title() const +{ + id const p = _v[@"title"]; + return RCTBridgingToOptionalString(p); +} +inline NSString *JS::NativeShareModule::SpecShareContent::message() const +{ + id const p = _v[@"message"]; + return RCTBridgingToOptionalString(p); +} + +inline JS::NativeSourceCode::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto scriptURL = i.scriptURL.get(); + d[@"scriptURL"] = scriptURL; + return d; +}) {} +inline JS::NativeSourceCode::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} +inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) : _factory(^{ + NSMutableDictionary *d = [NSMutableDictionary new]; + auto HEIGHT = i.HEIGHT.get(); + d[@"HEIGHT"] = @(HEIGHT); + auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR; + d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; + return d; +}) {} +inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{ + return i.unsafeRawValue(); +}) {} + + +inline id _Nullable JS::NativeWebSocketModule::SpecConnectOptions::headers() const +{ + id const p = _v[@"headers"]; + return p; +} diff --git a/ios/build/generated/ios/FBReactNativeSpecJSI-generated.cpp b/ios/build/generated/ios/FBReactNativeSpecJSI-generated.cpp new file mode 100644 index 000000000..497bdcfc4 --- /dev/null +++ b/ios/build/generated/ios/FBReactNativeSpecJSI-generated.cpp @@ -0,0 +1,1523 @@ +/** + * 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: GenerateModuleH.js + */ + +#include "FBReactNativeSpecJSI.h" + +namespace facebook { +namespace react { + +static jsi::Value __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_setConsolePatchSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setConsolePatchSettings(rt, args[0].asString(rt)); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_getConsolePatchSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + auto result = static_cast(&turboModule)->getConsolePatchSettings(rt); + return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); +} +static jsi::Value __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_setProfilingSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setProfilingSettings(rt, args[0].asString(rt)); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_getProfilingSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + auto result = static_cast(&turboModule)->getProfilingSettings(rt); + return result ? jsi::Value(std::move(*result)) : jsi::Value::null(); +} + +NativeDevToolsSettingsManagerCxxSpecJSI::NativeDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DevToolsSettingsManager", jsInvoker) { + methodMap_["setConsolePatchSettings"] = MethodMetadata {1, __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_setConsolePatchSettings}; + methodMap_["getConsolePatchSettings"] = MethodMetadata {0, __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_getConsolePatchSettings}; + methodMap_["setProfilingSettings"] = MethodMetadata {1, __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_setProfilingSettings}; + methodMap_["getProfilingSettings"] = MethodMetadata {0, __hostFunction_NativeDevToolsSettingsManagerCxxSpecJSI_getProfilingSettings}; +} +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, 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, args[0].asObject(rt).asArray(rt), 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_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, 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, 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_NativeWebSocketModuleCxxSpecJSI_connect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->connect(rt, args[0].asString(rt), args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt).asArray(rt)), args[2].asObject(rt), 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, args[0].asString(rt), 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, args[0].asString(rt), 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, 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, args[0].asNumber(), args[1].asString(rt), 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, 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, 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_NativeExceptionsManagerCxxSpecJSI_reportFatalException(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->reportFatalException(rt, args[0].asString(rt), args[1].asObject(rt).asArray(rt), 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, args[0].asString(rt), args[1].asObject(rt).asArray(rt), 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, args[0].asObject(rt)); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeExceptionsManagerCxxSpecJSI_updateExceptionMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->updateExceptionMessage(rt, args[0].asString(rt), args[1].asObject(rt).asArray(rt), args[2].asNumber()); + 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_["updateExceptionMessage"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerCxxSpecJSI_updateExceptionMessage}; + methodMap_["dismissRedbox"] = MethodMetadata {0, __hostFunction_NativeExceptionsManagerCxxSpecJSI_dismissRedbox}; +} +static jsi::Value __hostFunction_NativeTimingCxxSpecJSI_createTimer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->createTimer(rt, args[0].asNumber(), args[1].asNumber(), args[2].asNumber(), 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, 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, 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_NativeSegmentFetcherCxxSpecJSI_fetchSegment(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->fetchSegment(rt, args[0].asNumber(), args[1].asObject(rt), 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, args[0].asNumber(), args[1].asObject(rt), 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_NativePermissionsAndroidCxxSpecJSI_checkPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->checkPermission(rt, 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, 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, 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, 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_NativeAlertManagerCxxSpecJSI_alertWithArgs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->alertWithArgs(rt, args[0].asObject(rt), 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_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, args[0].asObject(rt), 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, args[0].asObject(rt), args[1].asObject(rt).asFunction(rt), 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_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, args[0].asObject(rt), args[1].asObject(rt).asFunction(rt), 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_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_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_debugRemotely(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->debugRemotely(rt, args[0].asBool()); + 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, 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, 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_["debugRemotely"] = MethodMetadata {1, __hostFunction_NativeDevMenuCxxSpecJSI_debugRemotely}; + methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuCxxSpecJSI_setProfilingEnabled}; + methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuCxxSpecJSI_setHotLoadingEnabled}; +} +static jsi::Value __hostFunction_NativeRedBoxCxxSpecJSI_setExtraData(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setExtraData(rt, args[0].asObject(rt), 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_NativeAnimationsDebugModuleCxxSpecJSI_startRecordingFps(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startRecordingFps(rt); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeAnimationsDebugModuleCxxSpecJSI_stopRecordingFps(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->stopRecordingFps(rt, args[0].asNumber()); + return jsi::Value::undefined(); +} + +NativeAnimationsDebugModuleCxxSpecJSI::NativeAnimationsDebugModuleCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("AnimationsDebugModule", jsInvoker) { + methodMap_["startRecordingFps"] = MethodMetadata {0, __hostFunction_NativeAnimationsDebugModuleCxxSpecJSI_startRecordingFps}; + methodMap_["stopRecordingFps"] = MethodMetadata {1, __hostFunction_NativeAnimationsDebugModuleCxxSpecJSI_stopRecordingFps}; +} +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_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_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, 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, args[0].asBool()); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeDevSettingsCxxSpecJSI_setIsDebuggingRemotely(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setIsDebuggingRemotely(rt, 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, 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, args[0].asString(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, 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, 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, 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_["setIsDebuggingRemotely"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setIsDebuggingRemotely}; + methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setProfilingEnabled}; + methodMap_["toggleElementInspector"] = MethodMetadata {0, __hostFunction_NativeDevSettingsCxxSpecJSI_toggleElementInspector}; + methodMap_["addMenuItem"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_addMenuItem}; + 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_NativeNetworkingAndroidCxxSpecJSI_sendRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->sendRequest(rt, args[0].asString(rt), args[1].asString(rt), args[2].asNumber(), args[3].asObject(rt).asArray(rt), args[4].asObject(rt), args[5].asString(rt), args[6].asBool(), args[7].asNumber(), 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, 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, 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, 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, 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, args[0].asObject(rt), 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, 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, 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, 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, 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_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, 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, args[0].asString(rt), 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, 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, args[0].asString(rt), args[1].asString(rt), args[2].getNumber()); +} +static jsi::Value __hostFunction_NativeImageLoaderIOSCxxSpecJSI_queryCache(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->queryCache(rt, 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_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, args[0].asString(rt), args[1].asObject(rt), args[2].asObject(rt).asFunction(rt), 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_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, args[0].asString(rt), args[1].asObject(rt).asFunction(rt), 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, args[0].asString(rt), 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, 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, args[0].asString(rt), args[1].asObject(rt).asFunction(rt), 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_NativeImageLoaderAndroidCxxSpecJSI_abortRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->abortRequest(rt, 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, 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, args[0].asString(rt), 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, args[0].asString(rt), 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, 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_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, args[0].asString(rt), args[1].asObject(rt).asFunction(rt), 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_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_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_NativeDevLoadingViewCxxSpecJSI_showMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->showMessage(rt, args[0].asString(rt), args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asNumber()), 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_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, 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, 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, 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_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_NativeDevSplitBundleLoaderCxxSpecJSI_loadBundle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->loadBundle(rt, args[0].asString(rt)); +} + +NativeDevSplitBundleLoaderCxxSpecJSI::NativeDevSplitBundleLoaderCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("DevSplitBundleLoader", jsInvoker) { + methodMap_["loadBundle"] = MethodMetadata {1, __hostFunction_NativeDevSplitBundleLoaderCxxSpecJSI_loadBundle}; +} +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, 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, 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, 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, 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)), 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, args[0].asBool(), 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_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, args[0].asNumber(), 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, 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, 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_NativeAccessibilityManagerCxxSpecJSI_getCurrentBoldTextState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->getCurrentBoldTextState(rt, args[0].asObject(rt).asFunction(rt), 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, args[0].asObject(rt).asFunction(rt), 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, args[0].asObject(rt).asFunction(rt), 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, args[0].asObject(rt).asFunction(rt), 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, args[0].asObject(rt).asFunction(rt), 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, args[0].asObject(rt).asFunction(rt), 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, args[0].asObject(rt).asFunction(rt), 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, 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, 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, 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, args[0].asString(rt), 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_["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_NativeAccessibilityInfoCxxSpecJSI_isReduceMotionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->isReduceMotionEnabled(rt, 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, 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, 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, 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, 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, args[0].asNumber(), args[1].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_["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}; +} +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, args[0].asString(rt), 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, args[0].asString(rt), args[1].asNumber(), 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, args[0].asString(rt), args[1].asNumber(), args[2].asNumber(), args[3].asNumber(), 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_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_NativeKeyboardObserverCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener(rt, 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, 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_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, 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_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, args[0].asObject(rt).asFunction(rt), 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, 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, 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_NativePerformanceObserverCxxSpecJSI_startReporting(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startReporting(rt, args[0].asNumber()); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_stopReporting(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->stopReporting(rt, args[0].asNumber()); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_popPendingEntries(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->popPendingEntries(rt); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_setOnPerformanceEntryCallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setOnPerformanceEntryCallback(rt, count < 0 || args[0].isNull() || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt).asFunction(rt))); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_logRawEntry(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->logRawEntry(rt, args[0].asObject(rt)); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_getEventCounts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getEventCounts(rt); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_setDurationThreshold(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setDurationThreshold(rt, args[0].asNumber(), args[1].asNumber()); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_clearEntries(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->clearEntries(rt, args[0].asNumber(), count < 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt))); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceObserverCxxSpecJSI_getEntries(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->getEntries(rt, count < 0 || args[0].isNull() || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asNumber()), count < 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt))); +} + +NativePerformanceObserverCxxSpecJSI::NativePerformanceObserverCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativePerformanceObserverCxx", jsInvoker) { + methodMap_["startReporting"] = MethodMetadata {1, __hostFunction_NativePerformanceObserverCxxSpecJSI_startReporting}; + methodMap_["stopReporting"] = MethodMetadata {1, __hostFunction_NativePerformanceObserverCxxSpecJSI_stopReporting}; + methodMap_["popPendingEntries"] = MethodMetadata {0, __hostFunction_NativePerformanceObserverCxxSpecJSI_popPendingEntries}; + methodMap_["setOnPerformanceEntryCallback"] = MethodMetadata {1, __hostFunction_NativePerformanceObserverCxxSpecJSI_setOnPerformanceEntryCallback}; + methodMap_["logRawEntry"] = MethodMetadata {1, __hostFunction_NativePerformanceObserverCxxSpecJSI_logRawEntry}; + methodMap_["getEventCounts"] = MethodMetadata {0, __hostFunction_NativePerformanceObserverCxxSpecJSI_getEventCounts}; + methodMap_["setDurationThreshold"] = MethodMetadata {2, __hostFunction_NativePerformanceObserverCxxSpecJSI_setDurationThreshold}; + methodMap_["clearEntries"] = MethodMetadata {2, __hostFunction_NativePerformanceObserverCxxSpecJSI_clearEntries}; + methodMap_["getEntries"] = MethodMetadata {2, __hostFunction_NativePerformanceObserverCxxSpecJSI_getEntries}; +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_mark(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->mark(rt, args[0].asString(rt), args[1].asNumber(), args[2].asNumber()); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativePerformanceCxxSpecJSI_measure(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->measure(rt, args[0].asString(rt), args[1].asNumber(), args[2].asNumber(), count < 3 || args[3].isNull() || args[3].isUndefined() ? std::nullopt : std::make_optional(args[3].asNumber()), count < 4 || args[4].isNull() || args[4].isUndefined() ? std::nullopt : std::make_optional(args[4].asString(rt)), count < 5 || args[5].isNull() || args[5].isUndefined() ? std::nullopt : std::make_optional(args[5].asString(rt))); + return jsi::Value::undefined(); +} +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); +} + +NativePerformanceCxxSpecJSI::NativePerformanceCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("NativePerformanceCxx", jsInvoker) { + methodMap_["mark"] = MethodMetadata {3, __hostFunction_NativePerformanceCxxSpecJSI_mark}; + methodMap_["measure"] = MethodMetadata {6, __hostFunction_NativePerformanceCxxSpecJSI_measure}; + methodMap_["getSimpleMemoryInfo"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getSimpleMemoryInfo}; + methodMap_["getReactNativeStartupTiming"] = MethodMetadata {0, __hostFunction_NativePerformanceCxxSpecJSI_getReactNativeStartupTiming}; +} +static jsi::Value __hostFunction_NativeBugReportingCxxSpecJSI_startReportAProblemFlow(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->startReportAProblemFlow(rt); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeBugReportingCxxSpecJSI_setExtraData(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setExtraData(rt, args[0].asObject(rt), args[1].asObject(rt)); + return jsi::Value::undefined(); +} +static jsi::Value __hostFunction_NativeBugReportingCxxSpecJSI_setCategoryID(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setCategoryID(rt, args[0].asString(rt)); + return jsi::Value::undefined(); +} + +NativeBugReportingCxxSpecJSI::NativeBugReportingCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("BugReporting", jsInvoker) { + methodMap_["startReportAProblemFlow"] = MethodMetadata {0, __hostFunction_NativeBugReportingCxxSpecJSI_startReportAProblemFlow}; + methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeBugReportingCxxSpecJSI_setExtraData}; + methodMap_["setCategoryID"] = MethodMetadata {1, __hostFunction_NativeBugReportingCxxSpecJSI_setCategoryID}; +} +static jsi::Value __hostFunction_NativeJSCHeapCaptureCxxSpecJSI_captureComplete(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->captureComplete(rt, args[0].asString(rt), 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_NativeJSCSamplingProfilerCxxSpecJSI_operationComplete(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->operationComplete(rt, args[0].asNumber(), args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)), args[2].isNull() || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asString(rt))); + return jsi::Value::undefined(); +} + +NativeJSCSamplingProfilerCxxSpecJSI::NativeJSCSamplingProfilerCxxSpecJSI(std::shared_ptr jsInvoker) + : TurboModule("JSCSamplingProfiler", jsInvoker) { + methodMap_["operationComplete"] = MethodMetadata {3, __hostFunction_NativeJSCSamplingProfilerCxxSpecJSI_operationComplete}; +} +static jsi::Value __hostFunction_NativeModalManagerCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->addListener(rt, 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, 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_NativeFileReaderModuleCxxSpecJSI_readAsDataURL(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + return static_cast(&turboModule)->readAsDataURL(rt, 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, args[0].asObject(rt), 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_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, 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, 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, args[0].asObject(rt), 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, args[0].asObject(rt).asArray(rt), 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, 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_NativeFrameRateLoggerCxxSpecJSI_setGlobalOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->setGlobalOptions(rt, 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, 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_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, 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, 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, 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_NativeHeadlessJsTaskSupportCxxSpecJSI_notifyTaskFinished(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) { + static_cast(&turboModule)->notifyTaskFinished(rt, 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, 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_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, args[0].asNumber(), 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, args[0].asNumber(), 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, args[0].asNumber(), 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, 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, 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, args[0].asNumber(), 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, args[0].asNumber(), 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, args[0].asNumber(), args[1].asNumber(), args[2].asObject(rt), 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, 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, args[0].asNumber(), 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, args[0].asNumber(), 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, 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, 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, args[0].asNumber(), 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, args[0].asNumber(), 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, 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, 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, args[0].asNumber(), args[1].asString(rt), 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, args[0].asNumber(), args[1].asString(rt), 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, 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, 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, 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_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, args[0].asNumber(), 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, args[0].asNumber(), 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, args[0].asNumber(), 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, 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, 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, args[0].asNumber(), 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, args[0].asNumber(), 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, args[0].asNumber(), args[1].asNumber(), args[2].asObject(rt), 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, 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, args[0].asNumber(), 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, args[0].asNumber(), 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, 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, 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, args[0].asNumber(), 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, args[0].asNumber(), 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, 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, 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, args[0].asNumber(), args[1].asString(rt), 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, args[0].asNumber(), args[1].asString(rt), 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, 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, 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, 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_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, args[0].asString(rt), 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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_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, 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, 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, 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, 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_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, 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, 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, args[0].asString(rt), 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_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, args[0].asObject(rt), count < 1 || args[1].isNull() || 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}; +} + + +} // namespace react +} // namespace facebook diff --git a/ios/build/generated/ios/FBReactNativeSpecJSI.h b/ios/build/generated/ios/FBReactNativeSpecJSI.h new file mode 100644 index 000000000..364aa1a69 --- /dev/null +++ b/ios/build/generated/ios/FBReactNativeSpecJSI.h @@ -0,0 +1,5509 @@ +/** + * 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: GenerateModuleH.js + */ + +#pragma once + +#include +#include + +namespace facebook { +namespace react { + + + class JSI_EXPORT NativeDevToolsSettingsManagerCxxSpecJSI : public TurboModule { +protected: + NativeDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void setConsolePatchSettings(jsi::Runtime &rt, jsi::String newConsolePatchSettings) = 0; + virtual std::optional getConsolePatchSettings(jsi::Runtime &rt) = 0; + virtual void setProfilingSettings(jsi::Runtime &rt, jsi::String newProfilingSettings) = 0; + virtual std::optional getProfilingSettings(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeDevToolsSettingsManagerCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDevToolsSettingsManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DevToolsSettingsManager", jsInvoker), + delegate_(static_cast(this), jsInvoker) {} + +private: + class Delegate : public NativeDevToolsSettingsManagerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDevToolsSettingsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {} + + void setConsolePatchSettings(jsi::Runtime &rt, jsi::String newConsolePatchSettings) override { + static_assert( + bridging::getParameterCount(&T::setConsolePatchSettings) == 2, + "Expected setConsolePatchSettings(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setConsolePatchSettings, jsInvoker_, instance_, std::move(newConsolePatchSettings)); + } + std::optional getConsolePatchSettings(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getConsolePatchSettings) == 1, + "Expected getConsolePatchSettings(...) to have 1 parameters"); + + return bridging::callFromJs>( + rt, &T::getConsolePatchSettings, jsInvoker_, instance_); + } + void setProfilingSettings(jsi::Runtime &rt, jsi::String newProfilingSettings) override { + static_assert( + bridging::getParameterCount(&T::setProfilingSettings) == 2, + "Expected setProfilingSettings(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setProfilingSettings, jsInvoker_, instance_, std::move(newProfilingSettings)); + } + std::optional getProfilingSettings(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::getProfilingSettings) == 1, + "Expected getProfilingSettings(...) to have 1 parameters"); + + return bridging::callFromJs>( + rt, &T::getProfilingSettings, jsInvoker_, instance_); + } + + private: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeVibrationCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("Vibration", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeSettingsManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("SettingsManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeWebSocketModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("WebSocketModule", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - ExceptionsManagerBaseStackFrame + +template +struct ExceptionsManagerBaseStackFrame { + P0 column; + P1 file; + P2 lineNumber; + P3 methodName; + P4 collapse; + bool operator==(const ExceptionsManagerBaseStackFrame &other) const { + return column == other.column && file == other.file && lineNumber == other.lineNumber && methodName == other.methodName && collapse == other.collapse; + } +}; + +template +struct ExceptionsManagerBaseStackFrameBridging { + static ExceptionsManagerBaseStackFrame fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + ExceptionsManagerBaseStackFrame 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, P0 value) { + return bridging::toJs(rt, value); + } + static std::optional fileToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static std::optional lineNumberToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static jsi::String methodNameToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static bool collapseToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const ExceptionsManagerBaseStackFrame &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; + } + }; + + +#pragma mark - ExceptionsManagerBaseExceptionData + +template +struct ExceptionsManagerBaseExceptionData { + P0 message; + P1 originalMessage; + P2 name; + P3 componentStack; + P4 stack; + P5 id; + P6 isFatal; + P7 extraData; + bool operator==(const ExceptionsManagerBaseExceptionData &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 ExceptionsManagerBaseExceptionDataBridging { + static ExceptionsManagerBaseExceptionData fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + ExceptionsManagerBaseExceptionData 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, P0 value) { + return bridging::toJs(rt, value); + } + static std::optional originalMessageToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static std::optional nameToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static std::optional componentStackToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static jsi::Array stackToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } + static double idToJs(jsi::Runtime &rt, P5 value) { + return bridging::toJs(rt, value); + } + static bool isFatalToJs(jsi::Runtime &rt, P6 value) { + return bridging::toJs(rt, value); + } + static jsi::Object extraDataToJs(jsi::Runtime &rt, P7 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const ExceptionsManagerBaseExceptionData &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; + } + }; + +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 updateExceptionMessage(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) = 0; + virtual void dismissRedbox(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativeExceptionsManagerCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeExceptionsManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ExceptionsManager", jsInvoker), + delegate_(static_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 updateExceptionMessage(jsi::Runtime &rt, jsi::String message, jsi::Array stack, double exceptionId) override { + static_assert( + bridging::getParameterCount(&T::updateExceptionMessage) == 4, + "Expected updateExceptionMessage(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::updateExceptionMessage, jsInvoker_, instance_, std::move(message), std::move(stack), std::move(exceptionId)); + } + 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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeTimingCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("Timing", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeSegmentFetcherCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("SegmentFetcher", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativePermissionsAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("PermissionsAndroid", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - AlertManagerBaseArgs + +template +struct AlertManagerBaseArgs { + P0 title; + P1 message; + P2 buttons; + P3 type; + P4 defaultValue; + P5 cancelButtonKey; + P6 destructiveButtonKey; + P7 preferredButtonKey; + P8 keyboardType; + P9 userInterfaceStyle; + bool operator==(const AlertManagerBaseArgs &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 AlertManagerBaseArgsBridging { + static AlertManagerBaseArgs fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + AlertManagerBaseArgs 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, P0 value) { + return bridging::toJs(rt, value); + } + static jsi::String messageToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static jsi::Array buttonsToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static jsi::String typeToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static jsi::String defaultValueToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } + static jsi::String cancelButtonKeyToJs(jsi::Runtime &rt, P5 value) { + return bridging::toJs(rt, value); + } + static jsi::String destructiveButtonKeyToJs(jsi::Runtime &rt, P6 value) { + return bridging::toJs(rt, value); + } + static jsi::String preferredButtonKeyToJs(jsi::Runtime &rt, P7 value) { + return bridging::toJs(rt, value); + } + static jsi::String keyboardTypeToJs(jsi::Runtime &rt, P8 value) { + return bridging::toJs(rt, value); + } + static jsi::String userInterfaceStyleToJs(jsi::Runtime &rt, P9 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const AlertManagerBaseArgs &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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAlertManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("AlertManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeActionSheetManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ActionSheetManager", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - DialogManagerAndroidBaseDialogOptions + +template +struct DialogManagerAndroidBaseDialogOptions { + P0 title; + P1 message; + P2 buttonPositive; + P3 buttonNegative; + P4 buttonNeutral; + P5 items; + P6 cancelable; + bool operator==(const DialogManagerAndroidBaseDialogOptions &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 DialogManagerAndroidBaseDialogOptionsBridging { + static DialogManagerAndroidBaseDialogOptions fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + DialogManagerAndroidBaseDialogOptions 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, P0 value) { + return bridging::toJs(rt, value); + } + static jsi::String messageToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static jsi::String buttonPositiveToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static jsi::String buttonNegativeToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static jsi::String buttonNeutralToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } + static jsi::Array itemsToJs(jsi::Runtime &rt, P5 value) { + return bridging::toJs(rt, value); + } + static bool cancelableToJs(jsi::Runtime &rt, P6 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const DialogManagerAndroidBaseDialogOptions &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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDialogManagerAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DialogManagerAndroid", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeSourceCodeCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("SourceCode", jsInvoker), + delegate_(static_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: + 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 debugRemotely(jsi::Runtime &rt, bool enableDebug) = 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDevMenuCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DevMenu", jsInvoker), + delegate_(static_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 debugRemotely(jsi::Runtime &rt, bool enableDebug) override { + static_assert( + bridging::getParameterCount(&T::debugRemotely) == 2, + "Expected debugRemotely(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::debugRemotely, jsInvoker_, instance_, std::move(enableDebug)); + } + 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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeRedBoxCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("RedBox", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeAnimationsDebugModuleCxxSpecJSI : public TurboModule { +protected: + NativeAnimationsDebugModuleCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void startRecordingFps(jsi::Runtime &rt) = 0; + virtual void stopRecordingFps(jsi::Runtime &rt, double animationStopTimeMs) = 0; + +}; + +template +class JSI_EXPORT NativeAnimationsDebugModuleCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAnimationsDebugModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("AnimationsDebugModule", jsInvoker), + delegate_(static_cast(this), jsInvoker) {} + +private: + class Delegate : public NativeAnimationsDebugModuleCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeAnimationsDebugModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {} + + void startRecordingFps(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::startRecordingFps) == 1, + "Expected startRecordingFps(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::startRecordingFps, jsInvoker_, instance_); + } + void stopRecordingFps(jsi::Runtime &rt, double animationStopTimeMs) override { + static_assert( + bridging::getParameterCount(&T::stopRecordingFps) == 2, + "Expected stopRecordingFps(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::stopRecordingFps, jsInvoker_, instance_, std::move(animationStopTimeMs)); + } + + private: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeLogBoxCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("LogBox", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDeviceEventManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DeviceEventManager", jsInvoker), + delegate_(static_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: + 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 setIsDebuggingRemotely(jsi::Runtime &rt, bool isDebuggingRemotelyEnabled) = 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 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDevSettingsCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DevSettings", jsInvoker), + delegate_(static_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 setIsDebuggingRemotely(jsi::Runtime &rt, bool isDebuggingRemotelyEnabled) override { + static_assert( + bridging::getParameterCount(&T::setIsDebuggingRemotely) == 2, + "Expected setIsDebuggingRemotely(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setIsDebuggingRemotely, jsInvoker_, instance_, std::move(isDebuggingRemotelyEnabled)); + } + 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 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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeNetworkingAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("Networking", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeNetworkingIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("Networking", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeImageLoaderIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ImageLoader", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - ImageEditingManagerBaseOptions + +template +struct ImageEditingManagerBaseOptions { + P0 offset; + P1 size; + P2 displaySize; + P3 resizeMode; + P4 allowExternalStorage; + bool operator==(const ImageEditingManagerBaseOptions &other) const { + return offset == other.offset && size == other.size && displaySize == other.displaySize && resizeMode == other.resizeMode && allowExternalStorage == other.allowExternalStorage; + } +}; + +template +struct ImageEditingManagerBaseOptionsBridging { + static ImageEditingManagerBaseOptions fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + ImageEditingManagerBaseOptions 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, P0 value) { + return bridging::toJs(rt, value); + } + static jsi::Object sizeToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static std::optional displaySizeToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static std::optional resizeModeToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static bool allowExternalStorageToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const ImageEditingManagerBaseOptions &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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeImageEditorCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ImageEditingManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeImageStoreIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ImageStoreManager", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeImageLoaderAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ImageLoader", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeImageStoreAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ImageStoreManager", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - DeviceInfoBaseDisplayMetrics + +template +struct DeviceInfoBaseDisplayMetrics { + P0 width; + P1 height; + P2 scale; + P3 fontScale; + bool operator==(const DeviceInfoBaseDisplayMetrics &other) const { + return width == other.width && height == other.height && scale == other.scale && fontScale == other.fontScale; + } +}; + +template +struct DeviceInfoBaseDisplayMetricsBridging { + static DeviceInfoBaseDisplayMetrics fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + DeviceInfoBaseDisplayMetrics 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, P0 value) { + return bridging::toJs(rt, value); + } + static double heightToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static double scaleToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static double fontScaleToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const DeviceInfoBaseDisplayMetrics &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 - DeviceInfoBaseDisplayMetricsAndroid + +template +struct DeviceInfoBaseDisplayMetricsAndroid { + P0 width; + P1 height; + P2 scale; + P3 fontScale; + P4 densityDpi; + bool operator==(const DeviceInfoBaseDisplayMetricsAndroid &other) const { + return width == other.width && height == other.height && scale == other.scale && fontScale == other.fontScale && densityDpi == other.densityDpi; + } +}; + +template +struct DeviceInfoBaseDisplayMetricsAndroidBridging { + static DeviceInfoBaseDisplayMetricsAndroid fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + DeviceInfoBaseDisplayMetricsAndroid 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, P0 value) { + return bridging::toJs(rt, value); + } + static double heightToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static double scaleToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static double fontScaleToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static double densityDpiToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const DeviceInfoBaseDisplayMetricsAndroid &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; + } + }; + + +#pragma mark - DeviceInfoBaseDimensionsPayload + +template +struct DeviceInfoBaseDimensionsPayload { + P0 window; + P1 screen; + P2 windowPhysicalPixels; + P3 screenPhysicalPixels; + bool operator==(const DeviceInfoBaseDimensionsPayload &other) const { + return window == other.window && screen == other.screen && windowPhysicalPixels == other.windowPhysicalPixels && screenPhysicalPixels == other.screenPhysicalPixels; + } +}; + +template +struct DeviceInfoBaseDimensionsPayloadBridging { + static DeviceInfoBaseDimensionsPayload fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + DeviceInfoBaseDimensionsPayload 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, P0 value) { + return bridging::toJs(rt, value); + } + static jsi::Object screenToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static jsi::Object windowPhysicalPixelsToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static jsi::Object screenPhysicalPixelsToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const DeviceInfoBaseDimensionsPayload &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; + } + }; + +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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDeviceInfoCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DeviceInfo", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativePlatformConstantsIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("PlatformConstants", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDevLoadingViewCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DevLoadingView", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAppearanceCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("Appearance", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativePlatformConstantsAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("PlatformConstants", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeDevSplitBundleLoaderCxxSpecJSI : public TurboModule { +protected: + NativeDevSplitBundleLoaderCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual jsi::Value loadBundle(jsi::Runtime &rt, jsi::String bundlePath) = 0; + +}; + +template +class JSI_EXPORT NativeDevSplitBundleLoaderCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeDevSplitBundleLoaderCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("DevSplitBundleLoader", jsInvoker), + delegate_(static_cast(this), jsInvoker) {} + +private: + class Delegate : public NativeDevSplitBundleLoaderCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeDevSplitBundleLoaderCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {} + + jsi::Value loadBundle(jsi::Runtime &rt, jsi::String bundlePath) override { + static_assert( + bridging::getParameterCount(&T::loadBundle) == 2, + "Expected loadBundle(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::loadBundle, jsInvoker_, instance_, std::move(bundlePath)); + } + + private: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeStatusBarManagerIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("StatusBarManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeStatusBarManagerAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("StatusBarManager", jsInvoker), + delegate_(static_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: + 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 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAccessibilityManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("AccessibilityManager", jsInvoker), + delegate_(static_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 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: + 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 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; + +}; + +template +class JSI_EXPORT NativeAccessibilityInfoCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAccessibilityInfoCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("AccessibilityInfo", jsInvoker), + delegate_(static_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 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)); + } + + private: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeToastAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ToastAndroid", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeSoundManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("SoundManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeKeyboardObserverCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("KeyboardObserver", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeClipboardCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("Clipboard", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAppStateCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("AppState", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - NativePerformanceObserverCxxBaseRawPerformanceEntry + +template +struct NativePerformanceObserverCxxBaseRawPerformanceEntry { + P0 name; + P1 entryType; + P2 startTime; + P3 duration; + P4 processingStart; + P5 processingEnd; + P6 interactionId; + bool operator==(const NativePerformanceObserverCxxBaseRawPerformanceEntry &other) const { + return name == other.name && entryType == other.entryType && startTime == other.startTime && duration == other.duration && processingStart == other.processingStart && processingEnd == other.processingEnd && interactionId == other.interactionId; + } +}; + +template +struct NativePerformanceObserverCxxBaseRawPerformanceEntryBridging { + static NativePerformanceObserverCxxBaseRawPerformanceEntry fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + NativePerformanceObserverCxxBaseRawPerformanceEntry 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)}; + return result; + } + +#ifdef DEBUG + static jsi::String nameToJs(jsi::Runtime &rt, P0 value) { + return bridging::toJs(rt, value); + } + static double entryTypeToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static double startTimeToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static double durationToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static double processingStartToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } + static double processingEndToJs(jsi::Runtime &rt, P5 value) { + return bridging::toJs(rt, value); + } + static double interactionIdToJs(jsi::Runtime &rt, P6 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const NativePerformanceObserverCxxBaseRawPerformanceEntry &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)); + } + return result; + } + }; + + +#pragma mark - NativePerformanceObserverCxxBaseGetPendingEntriesResult + +template +struct NativePerformanceObserverCxxBaseGetPendingEntriesResult { + P0 entries; + P1 droppedEntriesCount; + bool operator==(const NativePerformanceObserverCxxBaseGetPendingEntriesResult &other) const { + return entries == other.entries && droppedEntriesCount == other.droppedEntriesCount; + } +}; + +template +struct NativePerformanceObserverCxxBaseGetPendingEntriesResultBridging { + static NativePerformanceObserverCxxBaseGetPendingEntriesResult fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + NativePerformanceObserverCxxBaseGetPendingEntriesResult result{ + bridging::fromJs(rt, value.getProperty(rt, "entries"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "droppedEntriesCount"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static jsi::Array entriesToJs(jsi::Runtime &rt, P0 value) { + return bridging::toJs(rt, value); + } + static double droppedEntriesCountToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const NativePerformanceObserverCxxBaseGetPendingEntriesResult &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "entries", bridging::toJs(rt, value.entries, jsInvoker)); + result.setProperty(rt, "droppedEntriesCount", bridging::toJs(rt, value.droppedEntriesCount, jsInvoker)); + return result; + } + }; + +class JSI_EXPORT NativePerformanceObserverCxxSpecJSI : public TurboModule { +protected: + NativePerformanceObserverCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void startReporting(jsi::Runtime &rt, double entryType) = 0; + virtual void stopReporting(jsi::Runtime &rt, double entryType) = 0; + virtual jsi::Object popPendingEntries(jsi::Runtime &rt) = 0; + virtual void setOnPerformanceEntryCallback(jsi::Runtime &rt, std::optional callback) = 0; + virtual void logRawEntry(jsi::Runtime &rt, jsi::Object entry) = 0; + virtual jsi::Array getEventCounts(jsi::Runtime &rt) = 0; + virtual void setDurationThreshold(jsi::Runtime &rt, double entryType, double durationThreshold) = 0; + virtual void clearEntries(jsi::Runtime &rt, double entryType, std::optional entryName) = 0; + virtual jsi::Array getEntries(jsi::Runtime &rt, std::optional entryType, std::optional entryName) = 0; + +}; + +template +class JSI_EXPORT NativePerformanceObserverCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativePerformanceObserverCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("NativePerformanceObserverCxx", jsInvoker), + delegate_(static_cast(this), jsInvoker) {} + +private: + class Delegate : public NativePerformanceObserverCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePerformanceObserverCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {} + + void startReporting(jsi::Runtime &rt, double entryType) override { + static_assert( + bridging::getParameterCount(&T::startReporting) == 2, + "Expected startReporting(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::startReporting, jsInvoker_, instance_, std::move(entryType)); + } + void stopReporting(jsi::Runtime &rt, double entryType) override { + static_assert( + bridging::getParameterCount(&T::stopReporting) == 2, + "Expected stopReporting(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::stopReporting, jsInvoker_, instance_, std::move(entryType)); + } + jsi::Object popPendingEntries(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::popPendingEntries) == 1, + "Expected popPendingEntries(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::popPendingEntries, jsInvoker_, instance_); + } + void setOnPerformanceEntryCallback(jsi::Runtime &rt, std::optional callback) override { + static_assert( + bridging::getParameterCount(&T::setOnPerformanceEntryCallback) == 2, + "Expected setOnPerformanceEntryCallback(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setOnPerformanceEntryCallback, jsInvoker_, instance_, std::move(callback)); + } + void logRawEntry(jsi::Runtime &rt, jsi::Object entry) override { + static_assert( + bridging::getParameterCount(&T::logRawEntry) == 2, + "Expected logRawEntry(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::logRawEntry, jsInvoker_, instance_, std::move(entry)); + } + 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_); + } + void setDurationThreshold(jsi::Runtime &rt, double entryType, double durationThreshold) override { + static_assert( + bridging::getParameterCount(&T::setDurationThreshold) == 3, + "Expected setDurationThreshold(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::setDurationThreshold, jsInvoker_, instance_, std::move(entryType), std::move(durationThreshold)); + } + void clearEntries(jsi::Runtime &rt, double entryType, std::optional entryName) override { + static_assert( + bridging::getParameterCount(&T::clearEntries) == 3, + "Expected clearEntries(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::clearEntries, jsInvoker_, instance_, std::move(entryType), std::move(entryName)); + } + jsi::Array getEntries(jsi::Runtime &rt, std::optional entryType, std::optional entryName) override { + static_assert( + bridging::getParameterCount(&T::getEntries) == 3, + "Expected getEntries(...) to have 3 parameters"); + + return bridging::callFromJs( + rt, &T::getEntries, jsInvoker_, instance_, std::move(entryType), std::move(entryName)); + } + + private: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - NativePerformanceCxxBaseReactNativeStartupTiming + +template +struct NativePerformanceCxxBaseReactNativeStartupTiming { + P0 startTime; + P1 endTime; + P2 executeJavaScriptBundleEntryPointStart; + P3 executeJavaScriptBundleEntryPointEnd; + bool operator==(const NativePerformanceCxxBaseReactNativeStartupTiming &other) const { + return startTime == other.startTime && endTime == other.endTime && executeJavaScriptBundleEntryPointStart == other.executeJavaScriptBundleEntryPointStart && executeJavaScriptBundleEntryPointEnd == other.executeJavaScriptBundleEntryPointEnd; + } +}; + +template +struct NativePerformanceCxxBaseReactNativeStartupTimingBridging { + static NativePerformanceCxxBaseReactNativeStartupTiming fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + NativePerformanceCxxBaseReactNativeStartupTiming result{ + bridging::fromJs(rt, value.getProperty(rt, "startTime"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "endTime"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "executeJavaScriptBundleEntryPointStart"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "executeJavaScriptBundleEntryPointEnd"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static double startTimeToJs(jsi::Runtime &rt, P0 value) { + return bridging::toJs(rt, value); + } + static double endTimeToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static double executeJavaScriptBundleEntryPointStartToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static double executeJavaScriptBundleEntryPointEndToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const NativePerformanceCxxBaseReactNativeStartupTiming &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "startTime", bridging::toJs(rt, value.startTime, jsInvoker)); + result.setProperty(rt, "endTime", bridging::toJs(rt, value.endTime, jsInvoker)); + result.setProperty(rt, "executeJavaScriptBundleEntryPointStart", bridging::toJs(rt, value.executeJavaScriptBundleEntryPointStart, jsInvoker)); + result.setProperty(rt, "executeJavaScriptBundleEntryPointEnd", bridging::toJs(rt, value.executeJavaScriptBundleEntryPointEnd, jsInvoker)); + return result; + } + }; + +class JSI_EXPORT NativePerformanceCxxSpecJSI : public TurboModule { +protected: + NativePerformanceCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void mark(jsi::Runtime &rt, jsi::String name, double startTime, double duration) = 0; + virtual void measure(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional duration, std::optional startMark, std::optional endMark) = 0; + virtual jsi::Object getSimpleMemoryInfo(jsi::Runtime &rt) = 0; + virtual jsi::Object getReactNativeStartupTiming(jsi::Runtime &rt) = 0; + +}; + +template +class JSI_EXPORT NativePerformanceCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativePerformanceCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("NativePerformanceCxx", jsInvoker), + delegate_(static_cast(this), jsInvoker) {} + +private: + class Delegate : public NativePerformanceCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativePerformanceCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {} + + void mark(jsi::Runtime &rt, jsi::String name, double startTime, double duration) override { + static_assert( + bridging::getParameterCount(&T::mark) == 4, + "Expected mark(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::mark, jsInvoker_, instance_, std::move(name), std::move(startTime), std::move(duration)); + } + void measure(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::measure) == 7, + "Expected measure(...) to have 7 parameters"); + + return bridging::callFromJs( + rt, &T::measure, jsInvoker_, instance_, std::move(name), std::move(startTime), std::move(endTime), std::move(duration), std::move(startMark), std::move(endMark)); + } + 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_); + } + + private: + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeBugReportingCxxSpecJSI : public TurboModule { +protected: + NativeBugReportingCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void startReportAProblemFlow(jsi::Runtime &rt) = 0; + virtual void setExtraData(jsi::Runtime &rt, jsi::Object extraData, jsi::Object extraFiles) = 0; + virtual void setCategoryID(jsi::Runtime &rt, jsi::String categoryID) = 0; + +}; + +template +class JSI_EXPORT NativeBugReportingCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeBugReportingCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("BugReporting", jsInvoker), + delegate_(static_cast(this), jsInvoker) {} + +private: + class Delegate : public NativeBugReportingCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeBugReportingCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {} + + void startReportAProblemFlow(jsi::Runtime &rt) override { + static_assert( + bridging::getParameterCount(&T::startReportAProblemFlow) == 1, + "Expected startReportAProblemFlow(...) to have 1 parameters"); + + return bridging::callFromJs( + rt, &T::startReportAProblemFlow, jsInvoker_, instance_); + } + void setExtraData(jsi::Runtime &rt, jsi::Object extraData, jsi::Object extraFiles) 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(extraFiles)); + } + void setCategoryID(jsi::Runtime &rt, jsi::String categoryID) override { + static_assert( + bridging::getParameterCount(&T::setCategoryID) == 2, + "Expected setCategoryID(...) to have 2 parameters"); + + return bridging::callFromJs( + rt, &T::setCategoryID, jsInvoker_, instance_, std::move(categoryID)); + } + + private: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeJSCHeapCaptureCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("JSCHeapCapture", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + class JSI_EXPORT NativeJSCSamplingProfilerCxxSpecJSI : public TurboModule { +protected: + NativeJSCSamplingProfilerCxxSpecJSI(std::shared_ptr jsInvoker); + +public: + virtual void operationComplete(jsi::Runtime &rt, double token, std::optional result, std::optional error) = 0; + +}; + +template +class JSI_EXPORT NativeJSCSamplingProfilerCxxSpec : public TurboModule { +public: + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeJSCSamplingProfilerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("JSCSamplingProfiler", jsInvoker), + delegate_(static_cast(this), jsInvoker) {} + +private: + class Delegate : public NativeJSCSamplingProfilerCxxSpecJSI { + public: + Delegate(T *instance, std::shared_ptr jsInvoker) : + NativeJSCSamplingProfilerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {} + + void operationComplete(jsi::Runtime &rt, double token, std::optional result, std::optional error) override { + static_assert( + bridging::getParameterCount(&T::operationComplete) == 4, + "Expected operationComplete(...) to have 4 parameters"); + + return bridging::callFromJs( + rt, &T::operationComplete, jsInvoker_, instance_, std::move(token), std::move(result), std::move(error)); + } + + private: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeModalManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ModalManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeFileReaderModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("FileReaderModule", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeBlobModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("BlobModule", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeFrameRateLoggerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("FrameRateLogger", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeI18nManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("I18nManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeHeadlessJsTaskSupportCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("HeadlessJsTaskSupport", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - NativeAnimatedTurboModuleBaseEndResult + +template +struct NativeAnimatedTurboModuleBaseEndResult { + P0 finished; + bool operator==(const NativeAnimatedTurboModuleBaseEndResult &other) const { + return finished == other.finished; + } +}; + +template +struct NativeAnimatedTurboModuleBaseEndResultBridging { + static NativeAnimatedTurboModuleBaseEndResult fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + NativeAnimatedTurboModuleBaseEndResult result{ + bridging::fromJs(rt, value.getProperty(rt, "finished"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool finishedToJs(jsi::Runtime &rt, P0 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const NativeAnimatedTurboModuleBaseEndResult &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "finished", bridging::toJs(rt, value.finished, jsInvoker)); + return result; + } + }; + + +#pragma mark - NativeAnimatedTurboModuleBaseEventMapping + +template +struct NativeAnimatedTurboModuleBaseEventMapping { + P0 nativeEventPath; + P1 animatedValueTag; + bool operator==(const NativeAnimatedTurboModuleBaseEventMapping &other) const { + return nativeEventPath == other.nativeEventPath && animatedValueTag == other.animatedValueTag; + } +}; + +template +struct NativeAnimatedTurboModuleBaseEventMappingBridging { + static NativeAnimatedTurboModuleBaseEventMapping fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + NativeAnimatedTurboModuleBaseEventMapping 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, P0 value) { + return bridging::toJs(rt, value); + } + static std::optional animatedValueTagToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const NativeAnimatedTurboModuleBaseEventMapping &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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAnimatedTurboModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("NativeAnimatedTurboModule", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - NativeAnimatedModuleBaseEndResult + +template +struct NativeAnimatedModuleBaseEndResult { + P0 finished; + bool operator==(const NativeAnimatedModuleBaseEndResult &other) const { + return finished == other.finished; + } +}; + +template +struct NativeAnimatedModuleBaseEndResultBridging { + static NativeAnimatedModuleBaseEndResult fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + NativeAnimatedModuleBaseEndResult result{ + bridging::fromJs(rt, value.getProperty(rt, "finished"), jsInvoker)}; + return result; + } + +#ifdef DEBUG + static bool finishedToJs(jsi::Runtime &rt, P0 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const NativeAnimatedModuleBaseEndResult &value, + const std::shared_ptr &jsInvoker) { + auto result = facebook::jsi::Object(rt); + result.setProperty(rt, "finished", bridging::toJs(rt, value.finished, jsInvoker)); + return result; + } + }; + + +#pragma mark - NativeAnimatedModuleBaseEventMapping + +template +struct NativeAnimatedModuleBaseEventMapping { + P0 nativeEventPath; + P1 animatedValueTag; + bool operator==(const NativeAnimatedModuleBaseEventMapping &other) const { + return nativeEventPath == other.nativeEventPath && animatedValueTag == other.animatedValueTag; + } +}; + +template +struct NativeAnimatedModuleBaseEventMappingBridging { + static NativeAnimatedModuleBaseEventMapping fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + NativeAnimatedModuleBaseEventMapping 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, P0 value) { + return bridging::toJs(rt, value); + } + static std::optional animatedValueTagToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const NativeAnimatedModuleBaseEventMapping &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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeAnimatedModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("NativeAnimatedModule", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + + + #pragma mark - PushNotificationManagerBasePermissions + +template +struct PushNotificationManagerBasePermissions { + P0 alert; + P1 badge; + P2 sound; + bool operator==(const PushNotificationManagerBasePermissions &other) const { + return alert == other.alert && badge == other.badge && sound == other.sound; + } +}; + +template +struct PushNotificationManagerBasePermissionsBridging { + static PushNotificationManagerBasePermissions fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + PushNotificationManagerBasePermissions 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, P0 value) { + return bridging::toJs(rt, value); + } + static bool badgeToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static bool soundToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const PushNotificationManagerBasePermissions &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; + } + }; + + +#pragma mark - PushNotificationManagerBaseNotification + +template +struct PushNotificationManagerBaseNotification { + P0 alertTitle; + P1 fireDate; + P2 alertBody; + P3 alertAction; + P4 userInfo; + P5 category; + P6 repeatInterval; + P7 applicationIconBadgeNumber; + P8 isSilent; + P9 soundName; + bool operator==(const PushNotificationManagerBaseNotification &other) const { + return alertTitle == other.alertTitle && fireDate == other.fireDate && alertBody == other.alertBody && alertAction == other.alertAction && userInfo == other.userInfo && category == other.category && repeatInterval == other.repeatInterval && applicationIconBadgeNumber == other.applicationIconBadgeNumber && isSilent == other.isSilent && soundName == other.soundName; + } +}; + +template +struct PushNotificationManagerBaseNotificationBridging { + static PushNotificationManagerBaseNotification fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + PushNotificationManagerBaseNotification result{ + bridging::fromJs(rt, value.getProperty(rt, "alertTitle"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "fireDate"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "alertBody"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "alertAction"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "userInfo"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "category"), jsInvoker), + bridging::fromJs(rt, value.getProperty(rt, "repeatInterval"), 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, P0 value) { + return bridging::toJs(rt, value); + } + static std::optional fireDateToJs(jsi::Runtime &rt, P1 value) { + return bridging::toJs(rt, value); + } + static std::optional alertBodyToJs(jsi::Runtime &rt, P2 value) { + return bridging::toJs(rt, value); + } + static std::optional alertActionToJs(jsi::Runtime &rt, P3 value) { + return bridging::toJs(rt, value); + } + static std::optional userInfoToJs(jsi::Runtime &rt, P4 value) { + return bridging::toJs(rt, value); + } + static std::optional categoryToJs(jsi::Runtime &rt, P5 value) { + return bridging::toJs(rt, value); + } + static std::optional repeatIntervalToJs(jsi::Runtime &rt, P6 value) { + return bridging::toJs(rt, value); + } + static std::optional applicationIconBadgeNumberToJs(jsi::Runtime &rt, P7 value) { + return bridging::toJs(rt, value); + } + static std::optional isSilentToJs(jsi::Runtime &rt, P8 value) { + return bridging::toJs(rt, value); + } + static std::optional soundNameToJs(jsi::Runtime &rt, P9 value) { + return bridging::toJs(rt, value); + } +#endif + + static jsi::Object toJs( + jsi::Runtime &rt, + const PushNotificationManagerBaseNotification &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.fireDate) { + result.setProperty(rt, "fireDate", bridging::toJs(rt, value.fireDate.value(), jsInvoker)); + } + if (value.alertBody) { + result.setProperty(rt, "alertBody", bridging::toJs(rt, value.alertBody.value(), jsInvoker)); + } + if (value.alertAction) { + result.setProperty(rt, "alertAction", bridging::toJs(rt, value.alertAction.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.repeatInterval) { + result.setProperty(rt, "repeatInterval", bridging::toJs(rt, value.repeatInterval.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; + } + }; + +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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativePushNotificationManagerIOSCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("PushNotificationManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeLinkingManagerCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("LinkingManager", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeIntentAndroidCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("IntentAndroid", jsInvoker), + delegate_(static_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: + 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 get(jsi::Runtime &rt, const jsi::PropNameID &propName) override { + return delegate_.get(rt, propName); + } + +protected: + NativeShareModuleCxxSpec(std::shared_ptr jsInvoker) + : TurboModule("ShareModule", jsInvoker), + delegate_(static_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: + T *instance_; + }; + + Delegate delegate_; +}; + +} // namespace react +} // namespace facebook diff --git a/package.json b/package.json index 6482fddf8..83d1c86f4 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,9 @@ "intl-pluralrules": "^2.0.1", "lottie-react-native": "^5.1.6", "luxon": "^3.4.3", + "minisearch": "^6.3.0", "npm": "^9.6.7", + "path-browserify": "^1.0.1", "react": "^18.2.0", "react-i18next": "^13.3.1", "react-native": "^0.72.5", @@ -97,8 +99,9 @@ "redux-devtools-extension": "^2.13.9", "redux-logger": "^3.0.6", "redux-persist": "^6.0.0", - "redux-saga": "^1.2.3", + "redux-saga": "^1.3.0", "styled-components": "^6.1.1", + "unorm": "^1.6.0", "uuid": "^9.0.1", "victory-native": "36.8.1", "yargs-parser": "^21.1.1" @@ -108,6 +111,7 @@ "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.23.2", "@react-native-community/eslint-config": "^3.2.0", + "@types/flexsearch": "^0.7.6", "@types/jest": "^29.5.5", "@types/react-native": "^0.72.5", "@types/react-native-vector-icons": "^6.4.15",