diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index 8ab0fa77e49f..43adedea1f2b 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -2,6 +2,6 @@ self-hosted-runner: labels: - ubuntu-latest-xl - - macos-12-xl + - macos-13-large - macos-13-xlarge - ubuntu-latest-reassure-tests diff --git a/.github/actions/javascript/awaitStagingDeploys/index.js b/.github/actions/javascript/awaitStagingDeploys/index.js index 4b76cc962968..1cb7934cfb91 100644 --- a/.github/actions/javascript/awaitStagingDeploys/index.js +++ b/.github/actions/javascript/awaitStagingDeploys/index.js @@ -12754,9 +12754,13 @@ function promiseDoWhile(condition, action) { console.info('[promiseWhile] promiseDoWhile() condition', condition); const actionResult = action?.(); console.info('[promiseWhile] promiseDoWhile() actionResult', actionResult); + if (!actionResult) { + resolve(); + return; + } actionResult - ?.then(() => promiseWhile(condition, action)) - .then(() => resolve()) + .then(() => promiseWhile(condition, action)) + .then(resolve) .catch(reject); }); } diff --git a/.github/libs/promiseWhile.ts b/.github/libs/promiseWhile.ts index 7e15b6d69009..2fc53c34fec3 100644 --- a/.github/libs/promiseWhile.ts +++ b/.github/libs/promiseWhile.ts @@ -30,9 +30,14 @@ function promiseDoWhile(condition: () => boolean, action: (() => Promise) console.info('[promiseWhile] promiseDoWhile() condition', condition); const actionResult = action?.(); console.info('[promiseWhile] promiseDoWhile() actionResult', actionResult); + if (!actionResult) { + resolve(); + return; + } + actionResult - ?.then(() => promiseWhile(condition, action)) - .then(() => resolve()) + .then(() => promiseWhile(condition, action)) + .then(resolve) .catch(reject); }); } diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index 91e244a0ed7c..d97ea2b86269 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -134,7 +134,7 @@ jobs: name: Build and deploy Desktop needs: validateActor if: ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) }} - runs-on: macos-12-xl + runs-on: macos-13-large steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/testBuild.yml b/.github/workflows/testBuild.yml index fc9e75e626d3..fe6ea5bfc016 100644 --- a/.github/workflows/testBuild.yml +++ b/.github/workflows/testBuild.yml @@ -228,7 +228,7 @@ jobs: if: ${{ fromJSON(needs.validateActor.outputs.READY_TO_BUILD) }} env: PULL_REQUEST_NUMBER: ${{ github.event.number || github.event.inputs.PULL_REQUEST_NUMBER }} - runs-on: macos-12-xl + runs-on: macos-13-large steps: - name: Checkout uses: actions/checkout@v4 diff --git a/android/app/build.gradle b/android/app/build.gradle index b1538d22de8f..da32fc9cfe36 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -98,8 +98,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1001046100 - versionName "1.4.61-0" + versionCode 1001046105 + versionName "1.4.61-5" } flavorDimensions "default" diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index f393ff66bc25..6d6406551cdd 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -9,6 +9,7 @@ # Add any project specific keep options here: -keep class com.expensify.chat.BuildConfig { *; } +-keep class com.facebook.** { *; } -keep, allowoptimization, allowobfuscation class expo.modules.** { *; } # Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items). diff --git a/android/gradle.properties b/android/gradle.properties index c77d6b16f1b3..139ba429360b 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -32,12 +32,13 @@ AsyncStorage_useNextStorage=true # 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 +newArchEnabled=true # Use this property to enable or disable the Hermes JS engine. # If set to false, you will be using JSC instead. diff --git a/android/settings.gradle b/android/settings.gradle index 40aefc6f2405..eb5a98a85cdd 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -16,6 +16,14 @@ project(':react-native-dev-menu').projectDir = new File(rootProject.projectDir, apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' includeBuild('../node_modules/@react-native/gradle-plugin') +includeBuild('../node_modules/react-native') { + dependencySubstitution { + substitute(module("com.facebook.react:react-android")).using(project(":packages:react-native:ReactAndroid")) + substitute(module("com.facebook.react:react-native")).using(project(":packages:react-native:ReactAndroid")) + substitute(module("com.facebook.react:hermes-android")).using(project(":packages:react-native:ReactAndroid:hermes-engine")) + substitute(module("com.facebook.react:hermes-engine")).using(project(":packages:react-native:ReactAndroid:hermes-engine")) + } +} apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle") useExpoModules() diff --git a/assets/images/integrationicons/qbo-icon-square.svg b/assets/images/integrationicons/qbo-icon-square.svg new file mode 100644 index 000000000000..a8ce3468ffbf --- /dev/null +++ b/assets/images/integrationicons/qbo-icon-square.svg @@ -0,0 +1,14 @@ + + + + + + + diff --git a/assets/images/integrationicons/xero-icon-square.svg b/assets/images/integrationicons/xero-icon-square.svg new file mode 100644 index 000000000000..94b79bb3533d --- /dev/null +++ b/assets/images/integrationicons/xero-icon-square.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 99f4b22b473c..4232c565e715 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -84,6 +84,7 @@

+ {% include CONST.html %}

Didn't find what you were looking for?

Concierge is here to answer all your questions.

diff --git a/docs/articles/expensify-classic/reports/Expense-Types.md b/docs/articles/expensify-classic/reports/Expense-Types.md deleted file mode 100644 index 9d19dbb4f9ba..000000000000 --- a/docs/articles/expensify-classic/reports/Expense-Types.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Expense Types -description: Details of the different Expense filters and Expense Types ---- - -# Overview -Expense types help categorize different expenses for better financial management. While reimbursable and non-reimbursable expenses are common, Expensify offers various other options to suit your needs. Let's explore the available expense types. - -# How To -## Filtering a Report by Expense Type -Organizing a report by expense type can make it easier to review expenses on a report. -- Open the report you're interested in. -- Click the **Details** icon in the upper right corner of the report, -- Change the “View” to **Detailed** and “Split by” **Reimbursable** or **Billable**. -- You’ll also see the option to **Group by Category** or **Tags**. - - -# Deep Dive -Each report will show the total amount for all expenses in the upper right. Under that total, there will be a breakdown of amounts that are reimbursable, billable, and non-reimbursable (depending on which of those expense types exist on the report). - -## Expense Types -- **Reimbursable Expenses:** Employees pay for these expenses out of their pockets on behalf of the business and are usually reimbursed. They often come from cash, debit cards, or personal credit card purchases. -- **Non-reimbursable Expenses:** The business directly covers these expenses, so there's no need to reimburse the employee. Typically, these expenses are company card expenses. -- **Billable Expenses:** Business or employee expenses must be billed to a specific client or vendor. Choose this option if you need to track expenses for invoicing to customers, clients, or other departments. -- **Per Diem Expenses:** These expenses involve a daily or partial daily rate you can configure in your expense Workspace. -- **Time Expenses:** Employees or jobs are billed based on an hourly rate that you can set within Expensify. -- **Distance Expenses:** These expenses are related to travel for work. - -{% include faq-begin.md %} - -## What’s the difference between a receipt, an expense, and a report attachment? - -- **Expense:** Created when you SmartScan or manually upload a receipt from a purchase. -- **Receipt:** Automatically attached to the expense during the SmartScan process. -- **Report Attachments:** Additional documents that need to be submitted to your approver (e.g., supplemental documents to the purchase) can be added to a report anytime by clicking the paperclip icon in the Reports Comments. - -## How are credits or refunds displayed in Expensify? -In Expensify, a credit is displayed as an expense with a minus (ex. -$1.00) in front of it. That’s because Expensify defaults all expenses as something that needs to be paid by the company. So a credit that is returned to the company is displayed as a negative expense. - -If a report includes a credit or a refund expense, it will offset the total amount on the report. -For example, the report has two reimbursable expenses, $400 and $500. The total Reimbursable is $900. -Conversely, a -$400 and $500 will be a total Reimbursable amount of $500 - -{% include faq-end.md %} diff --git a/docs/redirects.csv b/docs/redirects.csv index 5ebccdd4be60..8e9e6350a326 100644 --- a/docs/redirects.csv +++ b/docs/redirects.csv @@ -98,3 +98,7 @@ https://help.expensify.com/articles/expensify-classic/bank-accounts-and-credit-c https://help.expensify.com/articles/expensify-classic/bank-accounts-and-credit-cards/company-cards/Direct-Bank-Connections,https://help.expensify.com/articles/expensify-classic/connect-credit-cards/company-cards/Direct-Bank-Connections https://help.expensify.com/articles/expensify-classic/bank-accounts-and-credit-cards/company-cards/Reconciliation,https://help.expensify.com/articles/expensify-classic/connect-credit-cards/company-cards/Reconciliation https://help.expensify.com/articles/expensify-classic/bank-accounts-and-credit-cards/company-cards/Troubleshooting,https://help.expensify.com/articles/expensify-classic/connect-credit-cards/company-cards/Troubleshooting +https://help.expensify.com/articles/expensify-classic/reports/Expense-Rules,https://help.expensify.com/articles/expensify-classic/expenses/Expense-Rules +https://help.expensify.com/articles/expensify-classic/reports/Currency,https://help.expensify.com/articles/expensify-classic/workspaces/Currency +https://help.expensify.com/articles/expensify-classic/reports/The-Expenses-Page,https://help.expensify.com/articles/expensify-classic/expenses/The-Expenses-Page +https://help.expensify.com/articles/expensify-classic/reports/Attendee-Tracking,https://help.expensify.com/articles/expensify-classic/expenses/Track-group-expenses diff --git a/ios/NewExpensify.xcodeproj/project.pbxproj b/ios/NewExpensify.xcodeproj/project.pbxproj index e39542ef0303..9d09b4dc04f2 100644 --- a/ios/NewExpensify.xcodeproj/project.pbxproj +++ b/ios/NewExpensify.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 059DC4EFD39EF39437E6823D /* libPods-NotificationServiceExtension.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A997AA8204EA3D90907FA80 /* libPods-NotificationServiceExtension.a */; }; 083353EB2B5AB22A00C603C0 /* attention.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 083353E72B5AB22900C603C0 /* attention.mp3 */; }; 083353EC2B5AB22A00C603C0 /* done.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 083353E82B5AB22900C603C0 /* done.mp3 */; }; 083353ED2B5AB22A00C603C0 /* receive.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 083353E92B5AB22900C603C0 /* receive.mp3 */; }; @@ -25,23 +26,24 @@ 26AF3C3540374A9FACB6C19E /* ExpensifyMono-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = DCF33E34FFEC48128CDD41D4 /* ExpensifyMono-Bold.otf */; }; 2A9F8CDA983746B0B9204209 /* ExpensifyNeue-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 52796131E6554494B2DDB056 /* ExpensifyNeue-Bold.otf */; }; 30581EA8AAFD4FCE88C5D191 /* ExpensifyNeue-Italic.otf in Resources */ = {isa = PBXBuildFile; fileRef = BF6A4C5167244B9FB8E4D4E3 /* ExpensifyNeue-Italic.otf */; }; + 3661A1374980E5F6804511FE /* libPods-NewExpensify-NewExpensifyTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 076FD9E41E08971BBF51D580 /* libPods-NewExpensify-NewExpensifyTests.a */; }; 374FB8D728A133FE000D84EF /* OriginImageRequestHandler.mm in Sources */ = {isa = PBXBuildFile; fileRef = 374FB8D628A133FE000D84EF /* OriginImageRequestHandler.mm */; }; - 5B8996A7D8B007ECC41919E1 /* libPods-NewExpensify.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00D7E69E5ADD16FD4C44221B /* libPods-NewExpensify.a */; }; + 383643682B6D4AE2005BB9AE /* DeviceCheck.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 383643672B6D4AE2005BB9AE /* DeviceCheck.framework */; }; 7041848526A8E47D00E09F4D /* RCTStartupTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7041848426A8E47D00E09F4D /* RCTStartupTimer.m */; }; 7041848626A8E47D00E09F4D /* RCTStartupTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7041848426A8E47D00E09F4D /* RCTStartupTimer.m */; }; 70CF6E82262E297300711ADC /* BootSplash.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 70CF6E81262E297300711ADC /* BootSplash.storyboard */; }; - 716815DBCE9F49D420334791 /* libPods-NewExpensify-NewExpensifyTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B68AEB9429D8BB73F25A188C /* libPods-NewExpensify-NewExpensifyTests.a */; }; 7F5E81F06BCCF61AD02CEA06 /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCD444BEDDB0AF1745B39049 /* ExpoModulesProvider.swift */; }; 7F9DD8DA2B2A445B005E3AFA /* ExpError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F9DD8D92B2A445B005E3AFA /* ExpError.swift */; }; 7FD73C9E2B23CE9500420AF3 /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7FD73C9D2B23CE9500420AF3 /* NotificationService.swift */; }; 7FD73CA22B23CE9500420AF3 /* NotificationServiceExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 7FD73C9B2B23CE9500420AF3 /* NotificationServiceExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - B8A1CD44D011AD7AE180DE14 /* libPods-NotificationServiceExtension.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B944D5699A54FD5197A63866 /* libPods-NotificationServiceExtension.a */; }; + 976CCB5F8C921482E6AEAE71 /* libPods-NewExpensify.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AB40AC8872A3DD6EF53D8B94 /* libPods-NewExpensify.a */; }; BDB853621F354EBB84E619C2 /* ExpensifyNewKansas-MediumItalic.otf in Resources */ = {isa = PBXBuildFile; fileRef = D2AFB39EC1D44BF9B91D3227 /* ExpensifyNewKansas-MediumItalic.otf */; }; - DD79042B2792E76D004484B4 /* RCTBootSplash.m in Sources */ = {isa = PBXBuildFile; fileRef = DD79042A2792E76D004484B4 /* RCTBootSplash.m */; }; + DD79042B2792E76D004484B4 /* RCTBootSplash.mm in Sources */ = {isa = PBXBuildFile; fileRef = DD79042A2792E76D004484B4 /* RCTBootSplash.mm */; }; DDCB2E57F334C143AC462B43 /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D20D83B0E39BA6D21761E72 /* ExpoModulesProvider.swift */; }; E51DC681C7DEE40AEBDDFBFE /* BuildFile in Frameworks */ = {isa = PBXBuildFile; }; E9DF872D2525201700607FDC /* AirshipConfig.plist in Resources */ = {isa = PBXBuildFile; fileRef = E9DF872C2525201700607FDC /* AirshipConfig.plist */; }; ED222ED90E074A5481A854FA /* ExpensifyNeue-BoldItalic.otf in Resources */ = {isa = PBXBuildFile; fileRef = 8B28D84EF339436DBD42A203 /* ExpensifyNeue-BoldItalic.otf */; }; + EEAE4F8907465429AA5B5520 /* libPods-NewExpensify.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AEFE6CD54912D427D19133C7 /* libPods-NewExpensify.a */; }; F0C450EA2705020500FD2970 /* colors.json in Resources */ = {isa = PBXBuildFile; fileRef = F0C450E92705020500FD2970 /* colors.json */; }; FF941A8D48F849269AB85C9A /* ExpensifyNewKansas-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = 44BF435285B94E5B95F90994 /* ExpensifyNewKansas-Medium.otf */; }; /* End PBXBuildFile section */ @@ -79,10 +81,9 @@ /* Begin PBXFileReference section */ 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; - 00D7E69E5ADD16FD4C44221B /* libPods-NewExpensify.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NewExpensify.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356EE1AD99517003FC87E /* NewExpensifyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NewExpensifyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 030F99CEB3AEF1F11B001798 /* Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig"; sourceTree = ""; }; + 076FD9E41E08971BBF51D580 /* libPods-NewExpensify-NewExpensifyTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NewExpensify-NewExpensifyTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 083353E72B5AB22900C603C0 /* attention.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; name = attention.mp3; path = ../assets/sounds/attention.mp3; sourceTree = ""; }; 083353E82B5AB22900C603C0 /* done.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; name = done.mp3; path = ../assets/sounds/done.mp3; sourceTree = ""; }; 083353E92B5AB22900C603C0 /* receive.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; name = receive.mp3; path = ../assets/sounds/receive.mp3; sourceTree = ""; }; @@ -92,55 +93,71 @@ 0F5BE0CD252686320097D869 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; 0F5E534E263B73D5004CA14F /* EnvironmentChecker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EnvironmentChecker.h; sourceTree = ""; }; 0F5E534F263B73FD004CA14F /* EnvironmentChecker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EnvironmentChecker.m; sourceTree = ""; }; - 0FF2BC0D01CA2C62CE94229E /* Pods-NewExpensify.debugdevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debugdevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debugdevelopment.xcconfig"; sourceTree = ""; }; - 11B2BA236BB72A603FBB7B99 /* Pods-NotificationServiceExtension.releasedevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.releasedevelopment.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.releasedevelopment.xcconfig"; sourceTree = ""; }; - 12EB734390650799DB8AC627 /* Pods-NotificationServiceExtension.debugdevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.debugdevelopment.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.debugdevelopment.xcconfig"; sourceTree = ""; }; 13B07F961A680F5B00A75B9A /* New Expensify Dev.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "New Expensify Dev.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = NewExpensify/AppDelegate.h; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = NewExpensify/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = NewExpensify/main.m; sourceTree = ""; }; 18D050DF262400AF000D658B /* BridgingFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BridgingFile.swift; sourceTree = ""; }; - 3328C9B8861CA667C42B47F3 /* Pods-NewExpensify.debugproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debugproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debugproduction.xcconfig"; sourceTree = ""; }; + 1A997AA8204EA3D90907FA80 /* libPods-NotificationServiceExtension.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NotificationServiceExtension.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 1DDE5449979A136852B939B5 /* Pods-NewExpensify.release adhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.release adhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.release adhoc.xcconfig"; sourceTree = ""; }; + 25A4587E168FD67CF890B448 /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig"; sourceTree = ""; }; + 30FFBD291B71222A393D9CC9 /* Pods-NewExpensify.releasedevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releasedevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releasedevelopment.xcconfig"; sourceTree = ""; }; + 32181F72DC539FFD1D1F0CA4 /* Pods-NewExpensify.releaseproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releaseproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releaseproduction.xcconfig"; sourceTree = ""; }; + 34A8FDD1F9AA58B8F15C8380 /* Pods-NewExpensify.release production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.release production.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.release production.xcconfig"; sourceTree = ""; }; 374FB8D528A133A7000D84EF /* OriginImageRequestHandler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = OriginImageRequestHandler.h; path = NewExpensify/OriginImageRequestHandler.h; sourceTree = ""; }; 374FB8D628A133FE000D84EF /* OriginImageRequestHandler.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = OriginImageRequestHandler.mm; path = NewExpensify/OriginImageRequestHandler.mm; sourceTree = ""; }; + 383643672B6D4AE2005BB9AE /* DeviceCheck.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DeviceCheck.framework; path = System/Library/Frameworks/DeviceCheck.framework; sourceTree = SDKROOT; }; + 3BBA44B891E03FAB8255E6F1 /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig"; sourceTree = ""; }; 44BF435285B94E5B95F90994 /* ExpensifyNewKansas-Medium.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyNewKansas-Medium.otf"; path = "../assets/fonts/native/ExpensifyNewKansas-Medium.otf"; sourceTree = ""; }; - 466D03D63F4B48E009C04FA3 /* Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig"; sourceTree = ""; }; 4D20D83B0E39BA6D21761E72 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-NewExpensify/ExpoModulesProvider.swift"; sourceTree = ""; }; + 4E9593A0EE1C84B8A8EC062F /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig"; sourceTree = ""; }; 52796131E6554494B2DDB056 /* ExpensifyNeue-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyNeue-Bold.otf"; path = "../assets/fonts/native/ExpensifyNeue-Bold.otf"; sourceTree = ""; }; - 5A1F158A9A6CBE170EC19D9C /* Pods-NewExpensify.debugadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debugadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debugadhoc.xcconfig"; sourceTree = ""; }; + 52E63EFD054926BFEA3EC143 /* Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig"; sourceTree = ""; }; + 68F4F270A8D1414FC14F356F /* Pods-NewExpensify.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releaseadhoc.xcconfig"; sourceTree = ""; }; 7041848326A8E40900E09F4D /* RCTStartupTimer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RCTStartupTimer.h; path = NewExpensify/RCTStartupTimer.h; sourceTree = ""; }; 7041848426A8E47D00E09F4D /* RCTStartupTimer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RCTStartupTimer.m; path = NewExpensify/RCTStartupTimer.m; sourceTree = ""; }; 70CF6E81262E297300711ADC /* BootSplash.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = BootSplash.storyboard; path = NewExpensify/BootSplash.storyboard; sourceTree = ""; }; - 7312B334B72E8BE41A811FAB /* Pods-NewExpensify.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releaseadhoc.xcconfig"; sourceTree = ""; }; + 76BE68DA894BB75DDFE278DC /* Pods-NewExpensify.releasedevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releasedevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releasedevelopment.xcconfig"; sourceTree = ""; }; + 7B318CF669A0F7FE948D5CED /* Pods-NewExpensify.debugadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debugadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debugadhoc.xcconfig"; sourceTree = ""; }; 7F9DD8D92B2A445B005E3AFA /* ExpError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExpError.swift; sourceTree = ""; }; 7FD73C9B2B23CE9500420AF3 /* NotificationServiceExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NotificationServiceExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 7FD73C9D2B23CE9500420AF3 /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = ""; }; 7FD73C9F2B23CE9500420AF3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 802CB9E7554756F188C79554 /* Pods-NotificationServiceExtension.debugadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.debugadhoc.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.debugadhoc.xcconfig"; sourceTree = ""; }; + 8709DF3C8D91F0FC1581CDD7 /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig"; sourceTree = ""; }; 8B28D84EF339436DBD42A203 /* ExpensifyNeue-BoldItalic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyNeue-BoldItalic.otf"; path = "../assets/fonts/native/ExpensifyNeue-BoldItalic.otf"; sourceTree = ""; }; - 96ADA7C82BA6A08C4A56344A /* Pods-NotificationServiceExtension.releaseproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.releaseproduction.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.releaseproduction.xcconfig"; sourceTree = ""; }; - 972584042DB4782F830B063A /* Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig"; sourceTree = ""; }; - 9EADA69D62F2E7B3D96E5B1C /* Pods-NewExpensify.releaseproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releaseproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releaseproduction.xcconfig"; sourceTree = ""; }; - AC9422F6C8A49AE701481721 /* Pods-NotificationServiceExtension.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.releaseadhoc.xcconfig"; sourceTree = ""; }; - B4CF7147C89747459BAC5BB7 /* Pods-NewExpensify.releasedevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releasedevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releasedevelopment.xcconfig"; sourceTree = ""; }; - B68AEB9429D8BB73F25A188C /* libPods-NewExpensify-NewExpensifyTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NewExpensify-NewExpensifyTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - B944D5699A54FD5197A63866 /* libPods-NotificationServiceExtension.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NotificationServiceExtension.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 8D3B36BF88E773E3C1A383FA /* Pods-NewExpensify.debug staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debug staging.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debug staging.xcconfig"; sourceTree = ""; }; + 90E08F0C8C924EDA018C8866 /* Pods-NotificationServiceExtension.releaseproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.releaseproduction.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.releaseproduction.xcconfig"; sourceTree = ""; }; + 96552D489D9F09B6A5ABD81B /* Pods-NewExpensify-NewExpensifyTests.release production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.release production.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.release production.xcconfig"; sourceTree = ""; }; + AB40AC8872A3DD6EF53D8B94 /* libPods-NewExpensify.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NewExpensify.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + AEFE6CD54912D427D19133C7 /* libPods-NewExpensify.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NewExpensify.a"; sourceTree = BUILT_PRODUCTS_DIR; }; BCD444BEDDB0AF1745B39049 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-NewExpensify-NewExpensifyTests/ExpoModulesProvider.swift"; sourceTree = ""; }; + BD6E1BA27D6ABE0AC9D70586 /* Pods-NewExpensify-NewExpensifyTests.release development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.release development.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.release development.xcconfig"; sourceTree = ""; }; + BD8828A882E2D6B51362AAC3 /* Pods-NewExpensify.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releaseadhoc.xcconfig"; sourceTree = ""; }; BF6A4C5167244B9FB8E4D4E3 /* ExpensifyNeue-Italic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyNeue-Italic.otf"; path = "../assets/fonts/native/ExpensifyNeue-Italic.otf"; sourceTree = ""; }; - CB32BB7E082E2450F04DA6E7 /* Pods-NotificationServiceExtension.debugproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.debugproduction.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.debugproduction.xcconfig"; sourceTree = ""; }; - D15262BE5F713CDB4DA576AE /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig"; sourceTree = ""; }; + C3788801E65E896FA7C77298 /* Pods-NewExpensify.debugproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debugproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debugproduction.xcconfig"; sourceTree = ""; }; + C3FF914C045A138C061D306E /* Pods-NotificationServiceExtension.debugproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.debugproduction.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.debugproduction.xcconfig"; sourceTree = ""; }; + CE2F84BEE9A6DCC228AF7E42 /* Pods-NewExpensify.debugproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debugproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debugproduction.xcconfig"; sourceTree = ""; }; D2AFB39EC1D44BF9B91D3227 /* ExpensifyNewKansas-MediumItalic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyNewKansas-MediumItalic.otf"; path = "../assets/fonts/native/ExpensifyNewKansas-MediumItalic.otf"; sourceTree = ""; }; + D3F458C994019E6A571461B7 /* Pods-NotificationServiceExtension.debugadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.debugadhoc.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.debugadhoc.xcconfig"; sourceTree = ""; }; + DB76E0D5C670190A0997C71E /* Pods-NewExpensify-NewExpensifyTests.debug production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debug production.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debug production.xcconfig"; sourceTree = ""; }; DCF33E34FFEC48128CDD41D4 /* ExpensifyMono-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyMono-Bold.otf"; path = "../assets/fonts/native/ExpensifyMono-Bold.otf"; sourceTree = ""; }; DD7904292792E76D004484B4 /* RCTBootSplash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTBootSplash.h; path = NewExpensify/RCTBootSplash.h; sourceTree = ""; }; - DD79042A2792E76D004484B4 /* RCTBootSplash.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RCTBootSplash.m; path = NewExpensify/RCTBootSplash.m; sourceTree = ""; }; + DD79042A2792E76D004484B4 /* RCTBootSplash.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = RCTBootSplash.mm; path = NewExpensify/RCTBootSplash.mm; sourceTree = ""; }; + E2C8555C607612465A7473F8 /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig"; sourceTree = ""; }; + E2F1036F70CBFE39E9352674 /* Pods-NewExpensify-NewExpensifyTests.debug development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debug development.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debug development.xcconfig"; sourceTree = ""; }; + E2F78D2A9B3DB96F0524690B /* Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig"; sourceTree = ""; }; + E61AD6D2DE65B6FB14945CDF /* Pods-NotificationServiceExtension.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.releaseadhoc.xcconfig"; sourceTree = ""; }; + E681F80D97E6E4BB26194246 /* Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig"; sourceTree = ""; }; E704648954784DDFBAADF568 /* ExpensifyMono-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyMono-Regular.otf"; path = "../assets/fonts/native/ExpensifyMono-Regular.otf"; sourceTree = ""; }; - E750C93A45B47BDC5149C5AA /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig"; sourceTree = ""; }; E9DF872C2525201700607FDC /* AirshipConfig.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = AirshipConfig.plist; sourceTree = ""; }; + EA58D43E81BC49541F7FC7E7 /* Pods-NewExpensify.debugdevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.debugdevelopment.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.debugdevelopment.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; + F082D95EE104912B48EA98BA /* Pods-NotificationServiceExtension.releasedevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.releasedevelopment.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.releasedevelopment.xcconfig"; sourceTree = ""; }; F0C450E92705020500FD2970 /* colors.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = colors.json; path = ../colors.json; sourceTree = ""; }; F4F8A052A22040339996324B /* ExpensifyNeue-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyNeue-Regular.otf"; path = "../assets/fonts/native/ExpensifyNeue-Regular.otf"; sourceTree = ""; }; - F98306ABF3F272DF04DF65CC /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig"; sourceTree = ""; }; + FBEBA6FBED49FB41D6F93896 /* Pods-NotificationServiceExtension.debugdevelopment.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.debugdevelopment.xcconfig"; path = "Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.debugdevelopment.xcconfig"; sourceTree = ""; }; + FF0EADDA6099EF76253FA7AB /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -148,7 +165,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 716815DBCE9F49D420334791 /* libPods-NewExpensify-NewExpensifyTests.a in Frameworks */, + 3661A1374980E5F6804511FE /* libPods-NewExpensify-NewExpensifyTests.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -156,9 +173,11 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 383643682B6D4AE2005BB9AE /* DeviceCheck.framework in Frameworks */, E51DC681C7DEE40AEBDDFBFE /* BuildFile in Frameworks */, + 976CCB5F8C921482E6AEAE71 /* libPods-NewExpensify.a in Frameworks */, E51DC681C7DEE40AEBDDFBFE /* BuildFile in Frameworks */, - 5B8996A7D8B007ECC41919E1 /* libPods-NewExpensify.a in Frameworks */, + EEAE4F8907465429AA5B5520 /* libPods-NewExpensify.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -166,7 +185,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - B8A1CD44D011AD7AE180DE14 /* libPods-NotificationServiceExtension.a in Frameworks */, + 059DC4EFD39EF39437E6823D /* libPods-NotificationServiceExtension.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -210,11 +229,13 @@ 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { isa = PBXGroup; children = ( + 383643672B6D4AE2005BB9AE /* DeviceCheck.framework */, ED297162215061F000B7C4FE /* JavaScriptCore.framework */, ED2971642150620600B7C4FE /* JavaScriptCore.framework */, - 00D7E69E5ADD16FD4C44221B /* libPods-NewExpensify.a */, - B68AEB9429D8BB73F25A188C /* libPods-NewExpensify-NewExpensifyTests.a */, - B944D5699A54FD5197A63866 /* libPods-NotificationServiceExtension.a */, + AEFE6CD54912D427D19133C7 /* libPods-NewExpensify.a */, + 1A997AA8204EA3D90907FA80 /* libPods-NotificationServiceExtension.a */, + AB40AC8872A3DD6EF53D8B94 /* libPods-NewExpensify.a */, + 076FD9E41E08971BBF51D580 /* libPods-NewExpensify-NewExpensifyTests.a */, ); name = Frameworks; sourceTree = ""; @@ -260,7 +281,7 @@ 374FB8D628A133FE000D84EF /* OriginImageRequestHandler.mm */, F0C450E92705020500FD2970 /* colors.json */, DD7904292792E76D004484B4 /* RCTBootSplash.h */, - DD79042A2792E76D004484B4 /* RCTBootSplash.m */, + DD79042A2792E76D004484B4 /* RCTBootSplash.mm */, 7041848326A8E40900E09F4D /* RCTStartupTimer.h */, 7041848426A8E47D00E09F4D /* RCTStartupTimer.m */, 18D050DF262400AF000D658B /* BridgingFile.swift */, @@ -319,24 +340,37 @@ EC29677F0A49C2946A495A33 /* Pods */ = { isa = PBXGroup; children = ( - 0FF2BC0D01CA2C62CE94229E /* Pods-NewExpensify.debugdevelopment.xcconfig */, - 5A1F158A9A6CBE170EC19D9C /* Pods-NewExpensify.debugadhoc.xcconfig */, - B4CF7147C89747459BAC5BB7 /* Pods-NewExpensify.releasedevelopment.xcconfig */, - 7312B334B72E8BE41A811FAB /* Pods-NewExpensify.releaseadhoc.xcconfig */, - 9EADA69D62F2E7B3D96E5B1C /* Pods-NewExpensify.releaseproduction.xcconfig */, - E750C93A45B47BDC5149C5AA /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */, - F98306ABF3F272DF04DF65CC /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */, - 972584042DB4782F830B063A /* Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig */, - D15262BE5F713CDB4DA576AE /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */, - 466D03D63F4B48E009C04FA3 /* Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig */, - 12EB734390650799DB8AC627 /* Pods-NotificationServiceExtension.debugdevelopment.xcconfig */, - 802CB9E7554756F188C79554 /* Pods-NotificationServiceExtension.debugadhoc.xcconfig */, - CB32BB7E082E2450F04DA6E7 /* Pods-NotificationServiceExtension.debugproduction.xcconfig */, - 11B2BA236BB72A603FBB7B99 /* Pods-NotificationServiceExtension.releasedevelopment.xcconfig */, - AC9422F6C8A49AE701481721 /* Pods-NotificationServiceExtension.releaseadhoc.xcconfig */, - 96ADA7C82BA6A08C4A56344A /* Pods-NotificationServiceExtension.releaseproduction.xcconfig */, - 3328C9B8861CA667C42B47F3 /* Pods-NewExpensify.debugproduction.xcconfig */, - 030F99CEB3AEF1F11B001798 /* Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig */, + 8D3B36BF88E773E3C1A383FA /* Pods-NewExpensify.debug staging.xcconfig */, + 1DDE5449979A136852B939B5 /* Pods-NewExpensify.release adhoc.xcconfig */, + 34A8FDD1F9AA58B8F15C8380 /* Pods-NewExpensify.release production.xcconfig */, + E2F1036F70CBFE39E9352674 /* Pods-NewExpensify-NewExpensifyTests.debug development.xcconfig */, + DB76E0D5C670190A0997C71E /* Pods-NewExpensify-NewExpensifyTests.debug production.xcconfig */, + BD6E1BA27D6ABE0AC9D70586 /* Pods-NewExpensify-NewExpensifyTests.release development.xcconfig */, + 96552D489D9F09B6A5ABD81B /* Pods-NewExpensify-NewExpensifyTests.release production.xcconfig */, + CE2F84BEE9A6DCC228AF7E42 /* Pods-NewExpensify.debugproduction.xcconfig */, + 30FFBD291B71222A393D9CC9 /* Pods-NewExpensify.releasedevelopment.xcconfig */, + BD8828A882E2D6B51362AAC3 /* Pods-NewExpensify.releaseadhoc.xcconfig */, + 8709DF3C8D91F0FC1581CDD7 /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */, + 25A4587E168FD67CF890B448 /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */, + E2C8555C607612465A7473F8 /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */, + FBEBA6FBED49FB41D6F93896 /* Pods-NotificationServiceExtension.debugdevelopment.xcconfig */, + D3F458C994019E6A571461B7 /* Pods-NotificationServiceExtension.debugadhoc.xcconfig */, + C3FF914C045A138C061D306E /* Pods-NotificationServiceExtension.debugproduction.xcconfig */, + F082D95EE104912B48EA98BA /* Pods-NotificationServiceExtension.releasedevelopment.xcconfig */, + E61AD6D2DE65B6FB14945CDF /* Pods-NotificationServiceExtension.releaseadhoc.xcconfig */, + 90E08F0C8C924EDA018C8866 /* Pods-NotificationServiceExtension.releaseproduction.xcconfig */, + EA58D43E81BC49541F7FC7E7 /* Pods-NewExpensify.debugdevelopment.xcconfig */, + 7B318CF669A0F7FE948D5CED /* Pods-NewExpensify.debugadhoc.xcconfig */, + C3788801E65E896FA7C77298 /* Pods-NewExpensify.debugproduction.xcconfig */, + 76BE68DA894BB75DDFE278DC /* Pods-NewExpensify.releasedevelopment.xcconfig */, + 68F4F270A8D1414FC14F356F /* Pods-NewExpensify.releaseadhoc.xcconfig */, + 32181F72DC539FFD1D1F0CA4 /* Pods-NewExpensify.releaseproduction.xcconfig */, + 3BBA44B891E03FAB8255E6F1 /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */, + 4E9593A0EE1C84B8A8EC062F /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */, + 52E63EFD054926BFEA3EC143 /* Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig */, + E681F80D97E6E4BB26194246 /* Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig */, + FF0EADDA6099EF76253FA7AB /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */, + E2F78D2A9B3DB96F0524690B /* Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig */, ); path = Pods; sourceTree = ""; @@ -348,13 +382,13 @@ isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "NewExpensifyTests" */; buildPhases = ( - D128CAF2A1070B0F2B3F12E4 /* [CP] Check Pods Manifest.lock */, + A3D1E02743106A34295E533A /* [CP] Check Pods Manifest.lock */, 04B99F6AA578E2A877802F05 /* [Expo] Configure project */, 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, - CE4668E6E6809DEA0626B5B3 /* [CP] Copy Pods Resources */, - 47778FAEB28E5E04DCCD0D39 /* [CP] Embed Pods Frameworks */, + 822809AAD6B368BF9F9BA00E /* [CP] Embed Pods Frameworks */, + 5CC6761AF98472E1C710DB80 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -370,7 +404,7 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "NewExpensify" */; buildPhases = ( - 5DDD2A7C43E9B381CD68A232 /* [CP] Check Pods Manifest.lock */, + 468C095F6D4C79E555B55A4F /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 5CF45ABA52C0BB0D7B9D139A /* [Expo] Configure project */, 13B07F871A680F5B00A75B9A /* Sources */, @@ -378,10 +412,10 @@ 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - 50067B6C26F88BAB5F0B478A /* [CP] Embed Pods Frameworks */, - 4E1386759AEE7859543483C9 /* [CP] Copy Pods Resources */, - EEA310C4723D0EF8581FAA1D /* [CP-User] [RNFB] Core Configuration */, - A9A9BDEB11952C562415526C /* [CP-User] [RNFB] Crashlytics Configuration */, + CB8E29994749C6913C3FA05D /* [CP] Embed Pods Frameworks */, + F6E16E41F88F567A8CDD037C /* [CP] Copy Pods Resources */, + 04A2B3BE14CFE4961BE987E8 /* [CP-User] [RNFB] Core Configuration */, + 2D8F47B51A8E72FBA2BA4874 /* [CP-User] [RNFB] Crashlytics Configuration */, ); buildRules = ( ); @@ -397,7 +431,7 @@ isa = PBXNativeTarget; buildConfigurationList = 7FD73CAA2B23CE9500420AF3 /* Build configuration list for PBXNativeTarget "NotificationServiceExtension" */; buildPhases = ( - 7B34459944ACFD30D85D5F85 /* [CP] Check Pods Manifest.lock */, + F3D35ED760B830954BD8A7BB /* [CP] Check Pods Manifest.lock */, 7FD73C972B23CE9500420AF3 /* Sources */, 7FD73C982B23CE9500420AF3 /* Frameworks */, 7FD73C992B23CE9500420AF3 /* Resources */, @@ -515,6 +549,19 @@ shellPath = /bin/sh; shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios relative | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli')\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n"; }; + 04A2B3BE14CFE4961BE987E8 /* [CP-User] [RNFB] Core Configuration */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", + ); + name = "[CP-User] [RNFB] Core Configuration"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\n_MAX_LOOKUPS=2;\n_SEARCH_RESULT=''\n_RN_ROOT_EXISTS=''\n_CURRENT_LOOKUPS=1\n_JSON_ROOT=\"'react-native'\"\n_JSON_FILE_NAME='firebase.json'\n_JSON_OUTPUT_BASE64='e30=' # { }\n_CURRENT_SEARCH_DIR=${PROJECT_DIR}\n_PLIST_BUDDY=/usr/libexec/PlistBuddy\n_TARGET_PLIST=\"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n_DSYM_PLIST=\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist\"\n\n# plist arrays\n_PLIST_ENTRY_KEYS=()\n_PLIST_ENTRY_TYPES=()\n_PLIST_ENTRY_VALUES=()\n\nfunction setPlistValue {\n echo \"info: setting plist entry '$1' of type '$2' in file '$4'\"\n ${_PLIST_BUDDY} -c \"Add :$1 $2 '$3'\" $4 || echo \"info: '$1' already exists\"\n}\n\nfunction getFirebaseJsonKeyValue () {\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n ruby -e \"require 'rubygems';require 'json'; output=JSON.parse('$1'); puts output[$_JSON_ROOT]['$2']\"\n else\n echo \"\"\n fi;\n}\n\nfunction jsonBoolToYesNo () {\n if [[ $1 == \"false\" ]]; then\n echo \"NO\"\n elif [[ $1 == \"true\" ]]; then\n echo \"YES\"\n else echo \"NO\"\n fi\n}\n\necho \"info: -> RNFB build script started\"\necho \"info: 1) Locating ${_JSON_FILE_NAME} file:\"\n\nif [[ -z ${_CURRENT_SEARCH_DIR} ]]; then\n _CURRENT_SEARCH_DIR=$(pwd)\nfi;\n\nwhile true; do\n _CURRENT_SEARCH_DIR=$(dirname \"$_CURRENT_SEARCH_DIR\")\n if [[ \"$_CURRENT_SEARCH_DIR\" == \"/\" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;\n echo \"info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file.\"\n _SEARCH_RESULT=$(find \"$_CURRENT_SEARCH_DIR\" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)\n if [[ ${_SEARCH_RESULT} ]]; then\n echo \"info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT\"\n break;\n fi;\n _CURRENT_LOOKUPS=$((_CURRENT_LOOKUPS+1))\ndone\n\nif [[ ${_SEARCH_RESULT} ]]; then\n _JSON_OUTPUT_RAW=$(cat \"${_SEARCH_RESULT}\")\n _RN_ROOT_EXISTS=$(ruby -e \"require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]\" || echo '')\n\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n _JSON_OUTPUT_BASE64=$(python -c 'import json,sys,base64;print(base64.b64encode(json.dumps(json.loads(open('\"'${_SEARCH_RESULT}'\"').read())['${_JSON_ROOT}'])))' || echo \"e30=\")\n fi\n\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n\n # config.app_data_collection_default_enabled\n _APP_DATA_COLLECTION_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_data_collection_default_enabled\")\n if [[ $_APP_DATA_COLLECTION_ENABLED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseDataCollectionDefaultEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_DATA_COLLECTION_ENABLED\")\")\n fi\n\n # config.analytics_auto_collection_enabled\n _ANALYTICS_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_auto_collection_enabled\")\n if [[ $_ANALYTICS_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_COLLECTION\")\")\n fi\n\n # config.analytics_collection_deactivated\n _ANALYTICS_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_collection_deactivated\")\n if [[ $_ANALYTICS_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_DEACTIVATED\")\")\n fi\n\n # config.analytics_idfv_collection_enabled\n _ANALYTICS_IDFV_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_idfv_collection_enabled\")\n if [[ $_ANALYTICS_IDFV_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_IDFV_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_IDFV_COLLECTION\")\")\n fi\n\n # config.analytics_default_allow_ad_personalization_signals\n _ANALYTICS_PERSONALIZATION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_personalization_signals\")\n if [[ $_ANALYTICS_PERSONALIZATION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_PERSONALIZATION\")\")\n fi\n\n # config.perf_auto_collection_enabled\n _PERF_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_auto_collection_enabled\")\n if [[ $_PERF_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_enabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_AUTO_COLLECTION\")\")\n fi\n\n # config.perf_collection_deactivated\n _PERF_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_collection_deactivated\")\n if [[ $_PERF_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_deactivated\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_DEACTIVATED\")\")\n fi\n\n # config.messaging_auto_init_enabled\n _MESSAGING_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"messaging_auto_init_enabled\")\n if [[ $_MESSAGING_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseMessagingAutoInitEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_MESSAGING_AUTO_INIT\")\")\n fi\n\n # config.in_app_messaging_auto_colllection_enabled\n _FIAM_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"in_app_messaging_auto_collection_enabled\")\n if [[ $_FIAM_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseInAppMessagingAutomaticDataCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_FIAM_AUTO_INIT\")\")\n fi\n\n # config.app_check_token_auto_refresh\n _APP_CHECK_TOKEN_AUTO_REFRESH=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_check_token_auto_refresh\")\n if [[ $_APP_CHECK_TOKEN_AUTO_REFRESH ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAppCheckTokenAutoRefreshEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_CHECK_TOKEN_AUTO_REFRESH\")\")\n fi\n\n # config.crashlytics_disable_auto_disabler - undocumented for now - mainly for debugging, document if becomes useful\n _CRASHLYTICS_AUTO_DISABLE_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"crashlytics_disable_auto_disabler\")\n if [[ $_CRASHLYTICS_AUTO_DISABLE_ENABLED == \"true\" ]]; then\n echo \"Disabled Crashlytics auto disabler.\" # do nothing\n else\n _PLIST_ENTRY_KEYS+=(\"FirebaseCrashlyticsCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"NO\")\n fi\nelse\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n echo \"warning: A firebase.json file was not found, whilst this file is optional it is recommended to include it to configure firebase services in React Native Firebase.\"\nfi;\n\necho \"info: 2) Injecting Info.plist entries: \"\n\n# Log out the keys we're adding\nfor i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n echo \" -> $i) ${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\"\ndone\n\nfor plist in \"${_TARGET_PLIST}\" \"${_DSYM_PLIST}\" ; do\n if [[ -f \"${plist}\" ]]; then\n\n # paths with spaces break the call to setPlistValue. temporarily modify\n # the shell internal field separator variable (IFS), which normally\n # includes spaces, to consist only of line breaks\n oldifs=$IFS\n IFS=\"\n\"\n\n for i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n setPlistValue \"${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\" \"${plist}\"\n done\n\n # restore the original internal field separator value\n IFS=$oldifs\n else\n echo \"warning: A Info.plist build output file was not found (${plist})\"\n fi\ndone\n\necho \"info: <- RNFB build script finished\"\n"; + }; 04B99F6AA578E2A877802F05 /* [Expo] Configure project */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -534,51 +581,59 @@ shellPath = /bin/sh; shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-NewExpensify-NewExpensifyTests/expo-configure-project.sh\"\n"; }; - 47778FAEB28E5E04DCCD0D39 /* [CP] Embed Pods Frameworks */ = { + 2D8F47B51A8E72FBA2BA4874 /* [CP-User] [RNFB] Crashlytics Configuration */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/MapboxMaps/MapboxMaps.framework", - "${BUILT_PRODUCTS_DIR}/Turf/Turf.framework", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/MapboxCommon/MapboxCommon.framework/MapboxCommon", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/MapboxCoreMaps/MapboxCoreMaps.framework/MapboxCoreMaps", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/MapboxMobileEvents/MapboxMobileEvents.framework/MapboxMobileEvents", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/Onfido/Onfido.framework/Onfido", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/Plaid/LinkKit.framework/LinkKit", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes", + "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}", + "$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", + ); + name = "[CP-User] [RNFB] Crashlytics Configuration"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\nif [[ ${PODS_ROOT} ]]; then\n echo \"info: Exec FirebaseCrashlytics Run from Pods\"\n \"${PODS_ROOT}/FirebaseCrashlytics/run\"\nelse\n echo \"info: Exec FirebaseCrashlytics Run from framework\"\n \"${PROJECT_DIR}/FirebaseCrashlytics.framework/run\"\nfi\n"; + }; + 468C095F6D4C79E555B55A4F /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( ); - name = "[CP] Embed Pods Frameworks"; outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxMaps.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Turf.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxCommon.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxCoreMaps.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxMobileEvents.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Onfido.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LinkKit.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", + "$(DERIVED_FILE_DIR)/Pods-NewExpensify-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-frameworks.sh\"\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 4E1386759AEE7859543483C9 /* [CP] Copy Pods Resources */ = { + 5CC6761AF98472E1C710DB80 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-resources.sh", + "${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-resources.sh", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipAutomationResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipCoreResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipExtendedActionsResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipMessageCenterResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipPreferenceCenterResources.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/GoogleDataTransport/GoogleDataTransport_Privacy.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/GoogleSignIn/GoogleSignIn.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/GoogleUtilities/GoogleUtilities_Privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/PromisesObjC/FBLPromises_Privacy.bundle", "${PODS_ROOT}/../../node_modules/@expensify/react-native-live-markdown/parser/react-native-live-markdown-parser.js", "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/RCTI18nStrings.bundle", ); @@ -589,22 +644,45 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AirshipExtendedActionsResources.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AirshipMessageCenterResources.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AirshipPreferenceCenterResources.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMSessionFetcher_Core_Privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleDataTransport_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleSignIn.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleUtilities_Privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FBLPromises_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/react-native-live-markdown-parser.js", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCTI18nStrings.bundle", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-resources.sh\"\n"; showEnvVarsInLog = 0; }; - 50067B6C26F88BAB5F0B478A /* [CP] Embed Pods Frameworks */ = { + 5CF45ABA52C0BB0D7B9D139A /* [Expo] Configure project */ = { isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); + inputFileListPaths = ( + ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-frameworks.sh", + ); + name = "[Expo] Configure project"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-NewExpensify/expo-configure-project.sh\"\n"; + }; + 822809AAD6B368BF9F9BA00E /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-frameworks.sh", "${BUILT_PRODUCTS_DIR}/MapboxMaps/MapboxMaps.framework", "${BUILT_PRODUCTS_DIR}/Turf/Turf.framework", "${PODS_XCFRAMEWORKS_BUILD_DIR}/MapboxCommon/MapboxCommon.framework/MapboxCommon", @@ -627,51 +705,64 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 5CF45ABA52C0BB0D7B9D139A /* [Expo] Configure project */ = { + A3D1E02743106A34295E533A /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( ); inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", ); - name = "[Expo] Configure project"; + name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( ); outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-NewExpensify-NewExpensifyTests-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-NewExpensify/expo-configure-project.sh\"\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; }; - 5DDD2A7C43E9B381CD68A232 /* [CP] Check Pods Manifest.lock */ = { + CB8E29994749C6913C3FA05D /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputFileListPaths = ( - ); inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/MapboxMaps/MapboxMaps.framework", + "${BUILT_PRODUCTS_DIR}/Turf/Turf.framework", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/MapboxCommon/MapboxCommon.framework/MapboxCommon", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/MapboxCoreMaps/MapboxCoreMaps.framework/MapboxCoreMaps", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/MapboxMobileEvents/MapboxMobileEvents.framework/MapboxMobileEvents", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/Onfido/Onfido.framework/Onfido", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/Plaid/LinkKit.framework/LinkKit", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes", ); + name = "[CP] Embed Pods Frameworks"; outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-NewExpensify-checkManifestLockResult.txt", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxMaps.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Turf.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxCommon.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxCoreMaps.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapboxMobileEvents.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Onfido.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LinkKit.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 7B34459944ACFD30D85D5F85 /* [CP] Check Pods Manifest.lock */ = { + F3D35ED760B830954BD8A7BB /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -693,33 +784,23 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - A9A9BDEB11952C562415526C /* [CP-User] [RNFB] Crashlytics Configuration */ = { + F6E16E41F88F567A8CDD037C /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}", - "$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", - ); - name = "[CP-User] [RNFB] Crashlytics Configuration"; - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\nif [[ ${PODS_ROOT} ]]; then\n echo \"info: Exec FirebaseCrashlytics Run from Pods\"\n \"${PODS_ROOT}/FirebaseCrashlytics/run\"\nelse\n echo \"info: Exec FirebaseCrashlytics Run from framework\"\n \"${PROJECT_DIR}/FirebaseCrashlytics.framework/run\"\nfi\n"; - }; - CE4668E6E6809DEA0626B5B3 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-resources.sh", + "${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-resources.sh", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipAutomationResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipCoreResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipExtendedActionsResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipMessageCenterResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/Airship/AirshipPreferenceCenterResources.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/GoogleDataTransport/GoogleDataTransport_Privacy.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/GoogleSignIn/GoogleSignIn.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/GoogleUtilities/GoogleUtilities_Privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/PromisesObjC/FBLPromises_Privacy.bundle", "${PODS_ROOT}/../../node_modules/@expensify/react-native-live-markdown/parser/react-native-live-markdown-parser.js", "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/RCTI18nStrings.bundle", ); @@ -730,50 +811,19 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AirshipExtendedActionsResources.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AirshipMessageCenterResources.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AirshipPreferenceCenterResources.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMSessionFetcher_Core_Privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleDataTransport_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleSignIn.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleUtilities_Privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FBLPromises_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/react-native-live-markdown-parser.js", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCTI18nStrings.bundle", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify-NewExpensifyTests/Pods-NewExpensify-NewExpensifyTests-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - D128CAF2A1070B0F2B3F12E4 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-NewExpensify-NewExpensifyTests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewExpensify/Pods-NewExpensify-resources.sh\"\n"; showEnvVarsInLog = 0; }; - EEA310C4723D0EF8581FAA1D /* [CP-User] [RNFB] Core Configuration */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", - ); - name = "[CP-User] [RNFB] Core Configuration"; - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\n_MAX_LOOKUPS=2;\n_SEARCH_RESULT=''\n_RN_ROOT_EXISTS=''\n_CURRENT_LOOKUPS=1\n_JSON_ROOT=\"'react-native'\"\n_JSON_FILE_NAME='firebase.json'\n_JSON_OUTPUT_BASE64='e30=' # { }\n_CURRENT_SEARCH_DIR=${PROJECT_DIR}\n_PLIST_BUDDY=/usr/libexec/PlistBuddy\n_TARGET_PLIST=\"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n_DSYM_PLIST=\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist\"\n\n# plist arrays\n_PLIST_ENTRY_KEYS=()\n_PLIST_ENTRY_TYPES=()\n_PLIST_ENTRY_VALUES=()\n\nfunction setPlistValue {\n echo \"info: setting plist entry '$1' of type '$2' in file '$4'\"\n ${_PLIST_BUDDY} -c \"Add :$1 $2 '$3'\" $4 || echo \"info: '$1' already exists\"\n}\n\nfunction getFirebaseJsonKeyValue () {\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n ruby -e \"require 'rubygems';require 'json'; output=JSON.parse('$1'); puts output[$_JSON_ROOT]['$2']\"\n else\n echo \"\"\n fi;\n}\n\nfunction jsonBoolToYesNo () {\n if [[ $1 == \"false\" ]]; then\n echo \"NO\"\n elif [[ $1 == \"true\" ]]; then\n echo \"YES\"\n else echo \"NO\"\n fi\n}\n\necho \"info: -> RNFB build script started\"\necho \"info: 1) Locating ${_JSON_FILE_NAME} file:\"\n\nif [[ -z ${_CURRENT_SEARCH_DIR} ]]; then\n _CURRENT_SEARCH_DIR=$(pwd)\nfi;\n\nwhile true; do\n _CURRENT_SEARCH_DIR=$(dirname \"$_CURRENT_SEARCH_DIR\")\n if [[ \"$_CURRENT_SEARCH_DIR\" == \"/\" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;\n echo \"info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file.\"\n _SEARCH_RESULT=$(find \"$_CURRENT_SEARCH_DIR\" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)\n if [[ ${_SEARCH_RESULT} ]]; then\n echo \"info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT\"\n break;\n fi;\n _CURRENT_LOOKUPS=$((_CURRENT_LOOKUPS+1))\ndone\n\nif [[ ${_SEARCH_RESULT} ]]; then\n _JSON_OUTPUT_RAW=$(cat \"${_SEARCH_RESULT}\")\n _RN_ROOT_EXISTS=$(ruby -e \"require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]\" || echo '')\n\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n _JSON_OUTPUT_BASE64=$(python -c 'import json,sys,base64;print(base64.b64encode(json.dumps(json.loads(open('\"'${_SEARCH_RESULT}'\"').read())['${_JSON_ROOT}'])))' || echo \"e30=\")\n fi\n\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n\n # config.app_data_collection_default_enabled\n _APP_DATA_COLLECTION_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_data_collection_default_enabled\")\n if [[ $_APP_DATA_COLLECTION_ENABLED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseDataCollectionDefaultEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_DATA_COLLECTION_ENABLED\")\")\n fi\n\n # config.analytics_auto_collection_enabled\n _ANALYTICS_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_auto_collection_enabled\")\n if [[ $_ANALYTICS_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_COLLECTION\")\")\n fi\n\n # config.analytics_collection_deactivated\n _ANALYTICS_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_collection_deactivated\")\n if [[ $_ANALYTICS_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_DEACTIVATED\")\")\n fi\n\n # config.analytics_idfv_collection_enabled\n _ANALYTICS_IDFV_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_idfv_collection_enabled\")\n if [[ $_ANALYTICS_IDFV_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_IDFV_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_IDFV_COLLECTION\")\")\n fi\n\n # config.analytics_default_allow_ad_personalization_signals\n _ANALYTICS_PERSONALIZATION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_personalization_signals\")\n if [[ $_ANALYTICS_PERSONALIZATION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_PERSONALIZATION\")\")\n fi\n\n # config.perf_auto_collection_enabled\n _PERF_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_auto_collection_enabled\")\n if [[ $_PERF_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_enabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_AUTO_COLLECTION\")\")\n fi\n\n # config.perf_collection_deactivated\n _PERF_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_collection_deactivated\")\n if [[ $_PERF_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_deactivated\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_DEACTIVATED\")\")\n fi\n\n # config.messaging_auto_init_enabled\n _MESSAGING_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"messaging_auto_init_enabled\")\n if [[ $_MESSAGING_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseMessagingAutoInitEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_MESSAGING_AUTO_INIT\")\")\n fi\n\n # config.in_app_messaging_auto_colllection_enabled\n _FIAM_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"in_app_messaging_auto_collection_enabled\")\n if [[ $_FIAM_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseInAppMessagingAutomaticDataCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_FIAM_AUTO_INIT\")\")\n fi\n\n # config.app_check_token_auto_refresh\n _APP_CHECK_TOKEN_AUTO_REFRESH=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_check_token_auto_refresh\")\n if [[ $_APP_CHECK_TOKEN_AUTO_REFRESH ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAppCheckTokenAutoRefreshEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_CHECK_TOKEN_AUTO_REFRESH\")\")\n fi\n\n # config.crashlytics_disable_auto_disabler - undocumented for now - mainly for debugging, document if becomes useful\n _CRASHLYTICS_AUTO_DISABLE_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"crashlytics_disable_auto_disabler\")\n if [[ $_CRASHLYTICS_AUTO_DISABLE_ENABLED == \"true\" ]]; then\n echo \"Disabled Crashlytics auto disabler.\" # do nothing\n else\n _PLIST_ENTRY_KEYS+=(\"FirebaseCrashlyticsCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"NO\")\n fi\nelse\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n echo \"warning: A firebase.json file was not found, whilst this file is optional it is recommended to include it to configure firebase services in React Native Firebase.\"\nfi;\n\necho \"info: 2) Injecting Info.plist entries: \"\n\n# Log out the keys we're adding\nfor i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n echo \" -> $i) ${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\"\ndone\n\nfor plist in \"${_TARGET_PLIST}\" \"${_DSYM_PLIST}\" ; do\n if [[ -f \"${plist}\" ]]; then\n\n # paths with spaces break the call to setPlistValue. temporarily modify\n # the shell internal field separator variable (IFS), which normally\n # includes spaces, to consist only of line breaks\n oldifs=$IFS\n IFS=\"\n\"\n\n for i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n setPlistValue \"${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\" \"${plist}\"\n done\n\n # restore the original internal field separator value\n IFS=$oldifs\n else\n echo \"warning: A Info.plist build output file was not found (${plist})\"\n fi\ndone\n\necho \"info: <- RNFB build script finished\"\n"; - }; FD10A7F022414F080027D42C /* Start Packager */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -815,7 +865,7 @@ 0F5E5350263B73FD004CA14F /* EnvironmentChecker.m in Sources */, 374FB8D728A133FE000D84EF /* OriginImageRequestHandler.mm in Sources */, 7041848526A8E47D00E09F4D /* RCTStartupTimer.m in Sources */, - DD79042B2792E76D004484B4 /* RCTBootSplash.m in Sources */, + DD79042B2792E76D004484B4 /* RCTBootSplash.mm in Sources */, 0CDA8E34287DD650004ECBEC /* AppDelegate.mm in Sources */, 13B07FC11A68108700A75B9A /* main.m in Sources */, DDCB2E57F334C143AC462B43 /* ExpoModulesProvider.swift in Sources */, @@ -849,7 +899,7 @@ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* DebugDevelopment */ = { isa = XCBuildConfiguration; - baseConfigurationReference = E750C93A45B47BDC5149C5AA /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */; + baseConfigurationReference = 3BBA44B891E03FAB8255E6F1 /* Pods-NewExpensify-NewExpensifyTests.debugdevelopment.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; @@ -879,7 +929,7 @@ }; 00E356F71AD99517003FC87E /* ReleaseDevelopment */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 972584042DB4782F830B063A /* Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig */; + baseConfigurationReference = E681F80D97E6E4BB26194246 /* Pods-NewExpensify-NewExpensifyTests.releasedevelopment.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; @@ -906,10 +956,11 @@ }; 13B07F941A680F5B00A75B9A /* DebugDevelopment */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 0FF2BC0D01CA2C62CE94229E /* Pods-NewExpensify.debugdevelopment.xcconfig */; + baseConfigurationReference = EA58D43E81BC49541F7FC7E7 /* Pods-NewExpensify.debugdevelopment.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDev; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = NewExpensify/Chat.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; @@ -945,10 +996,11 @@ }; 13B07F951A680F5B00A75B9A /* ReleaseDevelopment */ = { isa = XCBuildConfiguration; - baseConfigurationReference = B4CF7147C89747459BAC5BB7 /* Pods-NewExpensify.releasedevelopment.xcconfig */; + baseConfigurationReference = 76BE68DA894BB75DDFE278DC /* Pods-NewExpensify.releasedevelopment.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDev; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = NewExpensify/Chat.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; @@ -982,7 +1034,7 @@ }; 7FD73CA42B23CE9500420AF3 /* DebugDevelopment */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 12EB734390650799DB8AC627 /* Pods-NotificationServiceExtension.debugdevelopment.xcconfig */; + baseConfigurationReference = FBEBA6FBED49FB41D6F93896 /* Pods-NotificationServiceExtension.debugdevelopment.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; @@ -1068,7 +1120,7 @@ }; 7FD73CA52B23CE9500420AF3 /* DebugAdHoc */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 802CB9E7554756F188C79554 /* Pods-NotificationServiceExtension.debugadhoc.xcconfig */; + baseConfigurationReference = D3F458C994019E6A571461B7 /* Pods-NotificationServiceExtension.debugadhoc.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; @@ -1153,7 +1205,7 @@ }; 7FD73CA62B23CE9500420AF3 /* DebugProduction */ = { isa = XCBuildConfiguration; - baseConfigurationReference = CB32BB7E082E2450F04DA6E7 /* Pods-NotificationServiceExtension.debugproduction.xcconfig */; + baseConfigurationReference = C3FF914C045A138C061D306E /* Pods-NotificationServiceExtension.debugproduction.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; @@ -1239,7 +1291,7 @@ }; 7FD73CA72B23CE9500420AF3 /* ReleaseDevelopment */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 11B2BA236BB72A603FBB7B99 /* Pods-NotificationServiceExtension.releasedevelopment.xcconfig */; + baseConfigurationReference = F082D95EE104912B48EA98BA /* Pods-NotificationServiceExtension.releasedevelopment.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; @@ -1318,7 +1370,7 @@ }; 7FD73CA82B23CE9500420AF3 /* ReleaseAdHoc */ = { isa = XCBuildConfiguration; - baseConfigurationReference = AC9422F6C8A49AE701481721 /* Pods-NotificationServiceExtension.releaseadhoc.xcconfig */; + baseConfigurationReference = E61AD6D2DE65B6FB14945CDF /* Pods-NotificationServiceExtension.releaseadhoc.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; @@ -1396,7 +1448,7 @@ }; 7FD73CA92B23CE9500420AF3 /* ReleaseProduction */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 96ADA7C82BA6A08C4A56344A /* Pods-NotificationServiceExtension.releaseproduction.xcconfig */; + baseConfigurationReference = 90E08F0C8C924EDA018C8866 /* Pods-NotificationServiceExtension.releaseproduction.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; @@ -1533,13 +1585,15 @@ ); MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = "$(inherited)"; - OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( + OTHER_CFLAGS = ( "$(inherited)", - "-Wl", - "-ld_classic", + "-DRN_FABRIC_ENABLED", ); + OTHER_CPLUSPLUSFLAGS = ( + "$(inherited)", + "-DRN_FABRIC_ENABLED", + ); + OTHER_LDFLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = ""; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; @@ -1599,13 +1653,15 @@ "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; - OTHER_CFLAGS = "$(inherited)"; - OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( + OTHER_CFLAGS = ( "$(inherited)", - "-Wl", - "-ld_classic", + "-DRN_FABRIC_ENABLED", ); + OTHER_CPLUSPLUSFLAGS = ( + "$(inherited)", + "-DRN_FABRIC_ENABLED", + ); + OTHER_LDFLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = ""; PRODUCT_NAME = ""; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; @@ -1675,13 +1731,15 @@ ); MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = "$(inherited)"; - OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( + OTHER_CFLAGS = ( "$(inherited)", - "-Wl", - "-ld_classic", + "-DRN_FABRIC_ENABLED", ); + OTHER_CPLUSPLUSFLAGS = ( + "$(inherited)", + "-DRN_FABRIC_ENABLED", + ); + OTHER_LDFLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = ""; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; @@ -1691,10 +1749,11 @@ }; CF9AF93F29EE9276001FA527 /* DebugProduction */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 3328C9B8861CA667C42B47F3 /* Pods-NewExpensify.debugproduction.xcconfig */; + baseConfigurationReference = C3788801E65E896FA7C77298 /* Pods-NewExpensify.debugproduction.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = NewExpensify/Chat.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; @@ -1729,7 +1788,7 @@ }; CF9AF94029EE9276001FA527 /* DebugProduction */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 030F99CEB3AEF1F11B001798 /* Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig */; + baseConfigurationReference = 52E63EFD054926BFEA3EC143 /* Pods-NewExpensify-NewExpensifyTests.debugproduction.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; @@ -1817,13 +1876,15 @@ ); MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = "$(inherited)"; - OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( + OTHER_CFLAGS = ( "$(inherited)", - "-Wl", - "-ld_classic", + "-DRN_FABRIC_ENABLED", ); + OTHER_CPLUSPLUSFLAGS = ( + "$(inherited)", + "-DRN_FABRIC_ENABLED", + ); + OTHER_LDFLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = ""; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; @@ -1833,10 +1894,11 @@ }; CF9AF94529EE927A001FA527 /* DebugAdHoc */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 5A1F158A9A6CBE170EC19D9C /* Pods-NewExpensify.debugadhoc.xcconfig */; + baseConfigurationReference = 7B318CF669A0F7FE948D5CED /* Pods-NewExpensify.debugadhoc.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIconAdHoc; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = NewExpensify/Chat.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; @@ -1871,7 +1933,7 @@ }; CF9AF94629EE927A001FA527 /* DebugAdHoc */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F98306ABF3F272DF04DF65CC /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */; + baseConfigurationReference = 4E9593A0EE1C84B8A8EC062F /* Pods-NewExpensify-NewExpensifyTests.debugadhoc.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; @@ -1951,13 +2013,15 @@ "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; - OTHER_CFLAGS = "$(inherited)"; - OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( + OTHER_CFLAGS = ( "$(inherited)", - "-Wl", - "-ld_classic", + "-DRN_FABRIC_ENABLED", ); + OTHER_CPLUSPLUSFLAGS = ( + "$(inherited)", + "-DRN_FABRIC_ENABLED", + ); + OTHER_LDFLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = ""; PRODUCT_NAME = ""; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; @@ -1969,10 +2033,11 @@ }; CF9AF94829EE928E001FA527 /* ReleaseProduction */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 9EADA69D62F2E7B3D96E5B1C /* Pods-NewExpensify.releaseproduction.xcconfig */; + baseConfigurationReference = 32181F72DC539FFD1D1F0CA4 /* Pods-NewExpensify.releaseproduction.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = NewExpensify/Chat.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; @@ -2005,7 +2070,7 @@ }; CF9AF94929EE928E001FA527 /* ReleaseProduction */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 466D03D63F4B48E009C04FA3 /* Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig */; + baseConfigurationReference = E2F78D2A9B3DB96F0524690B /* Pods-NewExpensify-NewExpensifyTests.releaseproduction.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; @@ -2083,13 +2148,15 @@ "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; - OTHER_CFLAGS = "$(inherited)"; - OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( + OTHER_CFLAGS = ( + "$(inherited)", + "-DRN_FABRIC_ENABLED", + ); + OTHER_CPLUSPLUSFLAGS = ( "$(inherited)", - "-Wl", - "-ld_classic", + "-DRN_FABRIC_ENABLED", ); + OTHER_LDFLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = ""; PRODUCT_NAME = ""; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; @@ -2101,10 +2168,11 @@ }; CF9AF94E29EE9293001FA527 /* ReleaseAdHoc */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 7312B334B72E8BE41A811FAB /* Pods-NewExpensify.releaseadhoc.xcconfig */; + baseConfigurationReference = 68F4F270A8D1414FC14F356F /* Pods-NewExpensify.releaseadhoc.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIconAdHoc; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = NewExpensify/Chat.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; @@ -2137,7 +2205,7 @@ }; CF9AF94F29EE9293001FA527 /* ReleaseAdHoc */ = { isa = XCBuildConfiguration; - baseConfigurationReference = D15262BE5F713CDB4DA576AE /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */; + baseConfigurationReference = FF0EADDA6099EF76253FA7AB /* Pods-NewExpensify-NewExpensifyTests.releaseadhoc.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; diff --git a/ios/NewExpensify.xcodeproj/xcshareddata/xcschemes/New Expensify.xcscheme b/ios/NewExpensify.xcodeproj/xcshareddata/xcschemes/New Expensify.xcscheme index b6b5874506a8..86124ac1a170 100644 --- a/ios/NewExpensify.xcodeproj/xcshareddata/xcschemes/New Expensify.xcscheme +++ b/ios/NewExpensify.xcodeproj/xcshareddata/xcschemes/New Expensify.xcscheme @@ -57,7 +57,7 @@ diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index ad29816ca2d4..3f9f220b5519 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -40,7 +40,7 @@ CFBundleVersion - 1.4.61.0 + 1.4.61.5 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/NewExpensify/RCTBootSplash.h b/ios/NewExpensify/RCTBootSplash.h index c25c676feb4a..5dc3def635f2 100644 --- a/ios/NewExpensify/RCTBootSplash.h +++ b/ios/NewExpensify/RCTBootSplash.h @@ -12,6 +12,6 @@ + (void)invalidateBootSplash; + (void)initWithStoryboard:(NSString * _Nonnull)storyboardName - rootView:(RCTRootView * _Nullable)rootView; + rootView:(UIView * _Nullable)rootView; @end diff --git a/ios/NewExpensify/RCTBootSplash.m b/ios/NewExpensify/RCTBootSplash.m deleted file mode 100644 index 6c2baaed4ee0..000000000000 --- a/ios/NewExpensify/RCTBootSplash.m +++ /dev/null @@ -1,147 +0,0 @@ -// -// RCTBootSplash.m -// NewExpensify -// -// Created by Mathieu Acthernoene on 07/01/2022. -// - -#import -#import - -#import "RCTBootSplash.h" - -static NSMutableArray *_resolverQueue = nil; -static RCTRootView *_rootView = nil; -static bool _nativeHidden = false; - -@implementation RCTBootSplash - -RCT_EXPORT_MODULE(); - -+ (BOOL)requiresMainQueueSetup { - return NO; -} - -- (dispatch_queue_t)methodQueue { - return dispatch_get_main_queue(); -} - -+ (void)invalidateBootSplash { - _resolverQueue = nil; - _rootView = nil; - _nativeHidden = false; -} - -+ (void)initWithStoryboard:(NSString * _Nonnull)storyboardName - rootView:(RCTRootView * _Nullable)rootView { - if (rootView == nil || _rootView != nil || RCTRunningInAppExtension()) - return; - - _rootView = rootView; - - [[NSNotificationCenter defaultCenter] removeObserver:rootView - name:RCTContentDidAppearNotification - object:rootView]; - - UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil]; - UIView *loadingView = [[storyboard instantiateInitialViewController] view]; - - if ([self resolverQueueExists]) - return; - - [_rootView setLoadingView:loadingView]; - - [NSTimer scheduledTimerWithTimeInterval:0.35 - repeats:NO - block:^(NSTimer * _Nonnull timer) { - // wait for native iOS launch screen to fade out - _nativeHidden = true; - - // hide has been called before native launch screen fade out - if ([self resolverQueueExists]) - [self hideAndClearResolverQueue]; - }]; - - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(onContentDidAppear) - name:RCTContentDidAppearNotification - object:nil]; - - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(onJavaScriptDidFailToLoad) - name:RCTJavaScriptDidFailToLoadNotification - object:nil]; -} - -+ (bool)isHidden { - return _rootView == nil || _rootView.loadingView == nil || [_rootView.loadingView isHidden]; -} - -+ (bool)resolverQueueExists { - return _resolverQueue != nil; -} - -+ (void)clearResolverQueue { - if (![self resolverQueueExists]) - return; - - while ([_resolverQueue count] > 0) { - RCTPromiseResolveBlock resolve = [_resolverQueue objectAtIndex:0]; - [_resolverQueue removeObjectAtIndex:0]; - resolve(@(true)); - } -} - -+ (void)hideAndClearResolverQueue { - if (![self isHidden]) { - _rootView.loadingView.hidden = YES; - [_rootView.loadingView removeFromSuperview]; - _rootView.loadingView = nil; - } - - [RCTBootSplash clearResolverQueue]; -} - -+ (void)onContentDidAppear { - [NSTimer scheduledTimerWithTimeInterval:10.0 // Safety call - repeats:false - block:^(NSTimer * _Nonnull timer) { - [timer invalidate]; - - if (_rootView == nil) - return; - - if (_resolverQueue == nil) - _resolverQueue = [[NSMutableArray alloc] init]; - - [self hideAndClearResolverQueue]; - }]; - - [[NSNotificationCenter defaultCenter] removeObserver:self]; -} - -+ (void)onJavaScriptDidFailToLoad { - [self hideAndClearResolverQueue]; - [[NSNotificationCenter defaultCenter] removeObserver:self]; -} - -RCT_EXPORT_METHOD(hide:(RCTPromiseResolveBlock)resolve - rejecter:(RCTPromiseRejectBlock)reject) { - if (_resolverQueue == nil) - _resolverQueue = [[NSMutableArray alloc] init]; - - [_resolverQueue addObject:resolve]; - - if ([RCTBootSplash isHidden] || RCTRunningInAppExtension()) - return [RCTBootSplash clearResolverQueue]; - - if (_nativeHidden) - return [RCTBootSplash hideAndClearResolverQueue]; -} - -RCT_EXPORT_METHOD(getVisibilityStatus:(RCTPromiseResolveBlock)resolve - rejecter:(RCTPromiseRejectBlock)reject) { - resolve([RCTBootSplash isHidden] ? @"hidden" : @"visible"); -} - -@end diff --git a/ios/NewExpensify/RCTBootSplash.mm b/ios/NewExpensify/RCTBootSplash.mm new file mode 100644 index 000000000000..3e4a086f07b1 --- /dev/null +++ b/ios/NewExpensify/RCTBootSplash.mm @@ -0,0 +1,186 @@ +#import "RCTBootSplash.h" + +#import + +#if RCT_NEW_ARCH_ENABLED +#import +#import +#else +#import +#endif + +static NSMutableArray *_resolveQueue = nil; +static UIView *_loadingView = nil; +static UIView *_rootView = nil; +static float _duration = 0; +static bool _nativeHidden = false; +static bool _transitioning = false; + +@implementation RCTBootSplash + +RCT_EXPORT_MODULE(); + +- (dispatch_queue_t)methodQueue { + return dispatch_get_main_queue(); +} + ++ (void)invalidateBootSplash { + _resolveQueue = nil; + _rootView = nil; + _nativeHidden = false; +} + ++ (bool)isLoadingViewHidden { + return _loadingView == nil || [_loadingView isHidden]; +} + ++ (bool)hasResolveQueue { + return _resolveQueue != nil; +} + ++ (void)clearResolveQueue { + if (![self hasResolveQueue]) + return; + + while ([_resolveQueue count] > 0) { + RCTPromiseResolveBlock resolve = [_resolveQueue objectAtIndex:0]; + [_resolveQueue removeObjectAtIndex:0]; + resolve(@(true)); + } +} + ++ (void)hideLoadingView { + if ([self isLoadingViewHidden]) + return [RCTBootSplash clearResolveQueue]; + + if (_duration > 0) { + dispatch_async(dispatch_get_main_queue(), ^{ + _transitioning = true; + + if (_rootView == nil) + return; + + [UIView transitionWithView:_rootView + duration:_duration / 1000.0 + options:UIViewAnimationOptionTransitionCrossDissolve + animations:^{ + _loadingView.hidden = YES; + } + completion:^(__unused BOOL finished) { + [_loadingView removeFromSuperview]; + _loadingView = nil; + + _transitioning = false; + return [RCTBootSplash clearResolveQueue]; + }]; + }); + } else { + _loadingView.hidden = YES; + [_loadingView removeFromSuperview]; + _loadingView = nil; + + return [RCTBootSplash clearResolveQueue]; + } +} + ++ (void)initWithStoryboard:(NSString * _Nonnull)storyboardName + rootView:(UIView * _Nullable)rootView { + if (rootView == nil +#ifdef RCT_NEW_ARCH_ENABLED + || ![rootView isKindOfClass:[RCTSurfaceHostingProxyRootView class]] +#else + || ![rootView isKindOfClass:[RCTRootView class]] +#endif + || _rootView != nil + || [self hasResolveQueue] // hide has already been called, abort init + || RCTRunningInAppExtension()) + return; + +#ifdef RCT_NEW_ARCH_ENABLED + RCTSurfaceHostingProxyRootView *proxy = (RCTSurfaceHostingProxyRootView *)rootView; + _rootView = (RCTSurfaceHostingView *)proxy.surface.view; +#else + _rootView = (RCTRootView *)rootView; +#endif + + UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil]; + + _loadingView = [[storyboard instantiateInitialViewController] view]; + _loadingView.hidden = NO; + + [_rootView addSubview:_loadingView]; + + [NSTimer scheduledTimerWithTimeInterval:0.35 + repeats:NO + block:^(NSTimer * _Nonnull timer) { + // wait for native iOS launch screen to fade out + _nativeHidden = true; + + // hide has been called before native launch screen fade out + if ([self hasResolveQueue]) + [self hideLoadingView]; + }]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(onJavaScriptDidLoad) + name:RCTJavaScriptDidLoadNotification + object:nil]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(onJavaScriptDidFailToLoad) + name:RCTJavaScriptDidFailToLoadNotification + object:nil]; +} + ++ (void)onJavaScriptDidLoad { + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + ++ (void)onJavaScriptDidFailToLoad { + [self hideLoadingView]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +- (void)hide:(double)duration + resolve:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject { + if (_resolveQueue == nil) + _resolveQueue = [[NSMutableArray alloc] init]; + + [_resolveQueue addObject:resolve]; + + if ([RCTBootSplash isLoadingViewHidden] || RCTRunningInAppExtension()) + return [RCTBootSplash clearResolveQueue]; + + _duration = lroundf((float)duration); + + if (_nativeHidden) + return [RCTBootSplash hideLoadingView]; +} + +- (void)getVisibilityStatus:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject { + if ([RCTBootSplash isLoadingViewHidden]) + return resolve(@"hidden"); + else if (_transitioning) + return resolve(@"transitioning"); + else + return resolve(@"visible"); +} + +RCT_REMAP_METHOD(hide, + resolve:(RCTPromiseResolveBlock)resolve + rejecte:(RCTPromiseRejectBlock)reject) { + [self hide:0 + resolve:resolve + reject:reject]; +} + +RCT_REMAP_METHOD(getVisibilityStatus, + getVisibilityStatusWithResolve:(RCTPromiseResolveBlock)resolve + rejecte:(RCTPromiseRejectBlock)reject) { + [self getVisibilityStatus:resolve + reject:reject]; +} + +@end diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist index 30ebc444e07c..327e10cbdfc1 100644 --- a/ios/NewExpensifyTests/Info.plist +++ b/ios/NewExpensifyTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.4.61.0 + 1.4.61.5 diff --git a/ios/NotificationServiceExtension/Info.plist b/ios/NotificationServiceExtension/Info.plist index 5cfad9bf91a6..45e3ee5f91ae 100644 --- a/ios/NotificationServiceExtension/Info.plist +++ b/ios/NotificationServiceExtension/Info.plist @@ -13,7 +13,7 @@ CFBundleShortVersionString 1.4.61 CFBundleVersion - 1.4.61.0 + 1.4.61.5 NSExtension NSExtensionPointIdentifier diff --git a/ios/Podfile b/ios/Podfile index 83c21797bd0a..4f00eb2adfdd 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -2,6 +2,7 @@ require File.join(File.dirname(`node --print "require.resolve('expo/package.json # Set the type of Mapbox SDK to use # This value is used by $RNMapboxMaps $RNMapboxMapsImpl = 'mapbox' +$VCDisableFrameProcessors = true def node_require(script) # Resolve script with node to allow for hoisting @@ -16,7 +17,7 @@ node_require('react-native/scripts/react_native_pods.rb') node_require('react-native-permissions/scripts/setup.rb') # Our min supported iOS version is higher than the default (min_ios_version_supported) to support libraires such as Airship -platform :ios, 13.4 +platform :ios, 14.0 prepare_react_native_project! setup_permissions([ @@ -73,6 +74,12 @@ target 'NewExpensify' do config = use_native_modules! + # Flags change depending on the env values. + flags = get_default_flags() + + # ENV Variable enables/disables TurboModules + ENV['RCT_NEW_ARCH_ENABLED'] = '1'; + use_react_native!( :path => config[:reactNativePath], # An absolute path to your application root. diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 32a8bca75bcd..2f53f00918bf 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -20,7 +20,7 @@ PODS: - Airship (= 16.12.1) - Airship/MessageCenter (= 16.12.1) - Airship/PreferenceCenter (= 16.12.1) - - AirshipServiceExtension (16.12.5) + - AirshipServiceExtension (17.8.0) - AppAuth (1.6.2): - AppAuth/Core (= 1.6.2) - AppAuth/ExternalUserAgent (= 1.6.2) @@ -50,19 +50,25 @@ PODS: - ExpoModulesCore - ExpoModulesCore (1.11.8): - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager - React-NativeModulesApple - React-RCTAppDelegate + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - FBLazyVector (0.73.2) - - FBReactNativeSpec (0.73.2): - - RCT-Folly (= 2022.05.16.00) - - RCTRequired (= 0.73.2) - - RCTTypeSafety (= 0.73.2) - - React-Core (= 0.73.2) - - React-jsi (= 0.73.2) - - ReactCommon/turbomodule/core (= 0.73.2) + - Yoga + - FBLazyVector (0.73.4) - Firebase/Analytics (8.8.0): - Firebase/Core - Firebase/Core (8.8.0): @@ -154,41 +160,51 @@ PODS: - GoogleUtilities/Network (~> 7.4) - "GoogleUtilities/NSData+zlib (~> 7.4)" - nanopb (~> 2.30908.0) - - GoogleDataTransport (9.3.0): + - GoogleDataTransport (9.4.1): - GoogleUtilities/Environment (~> 7.7) - - nanopb (< 2.30910.0, >= 2.30908.0) + - nanopb (< 2.30911.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - GoogleSignIn (7.0.0): - AppAuth (~> 1.5) - GTMAppAuth (< 3.0, >= 1.3) - GTMSessionFetcher/Core (< 4.0, >= 1.1) - - GoogleUtilities/AppDelegateSwizzler (7.12.0): + - GoogleUtilities/AppDelegateSwizzler (7.13.0): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - - GoogleUtilities/Environment (7.12.0): + - GoogleUtilities/Privacy + - GoogleUtilities/Environment (7.13.0): + - GoogleUtilities/Privacy - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/ISASwizzler (7.12.0) - - GoogleUtilities/Logger (7.12.0): + - GoogleUtilities/ISASwizzler (7.13.0): + - GoogleUtilities/Privacy + - GoogleUtilities/Logger (7.13.0): - GoogleUtilities/Environment - - GoogleUtilities/MethodSwizzler (7.12.0): + - GoogleUtilities/Privacy + - GoogleUtilities/MethodSwizzler (7.13.0): - GoogleUtilities/Logger - - GoogleUtilities/Network (7.12.0): + - GoogleUtilities/Privacy + - GoogleUtilities/Network (7.13.0): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" + - GoogleUtilities/Privacy - GoogleUtilities/Reachability - - "GoogleUtilities/NSData+zlib (7.12.0)" - - GoogleUtilities/Reachability (7.12.0): + - "GoogleUtilities/NSData+zlib (7.13.0)": + - GoogleUtilities/Privacy + - GoogleUtilities/Privacy (7.13.0) + - GoogleUtilities/Reachability (7.13.0): - GoogleUtilities/Logger - - GoogleUtilities/UserDefaults (7.12.0): + - GoogleUtilities/Privacy + - GoogleUtilities/UserDefaults (7.13.0): - GoogleUtilities/Logger + - GoogleUtilities/Privacy - GTMAppAuth (2.0.0): - AppAuth/Core (~> 1.6) - GTMSessionFetcher/Core (< 4.0, >= 1.5) - - GTMSessionFetcher/Core (3.2.0) - - hermes-engine (0.73.2): - - hermes-engine/Pre-built (= 0.73.2) - - hermes-engine/Pre-built (0.73.2) + - GTMSessionFetcher/Core (3.3.1) + - hermes-engine (0.73.4): + - hermes-engine/Pre-built (= 0.73.4) + - hermes-engine/Pre-built (0.73.4) - libaom (3.0.0): - libvmaf (>= 2.2.0) - libavif (0.11.1): @@ -212,29 +228,63 @@ PODS: - libwebp/webp (1.3.2): - libwebp/sharpyuv - lottie-ios (4.3.4) - - lottie-react-native (6.4.1): + - lottie-react-native (6.5.1): + - glog + - hermes-engine - lottie-ios (~> 4.3.3) + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core - - MapboxCommon (23.8.6) - - MapboxCoreMaps (10.16.4): - - MapboxCommon (~> 23.8) - - MapboxMaps (10.16.4): - - MapboxCommon (= 23.8.6) - - MapboxCoreMaps (= 10.16.4) + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - MapboxCommon (23.9.1) + - MapboxCoreMaps (10.16.6): + - MapboxCommon (~> 23.9) + - MapboxMaps (10.16.6): + - MapboxCommon (= 23.9.1) + - MapboxCoreMaps (= 10.16.6) - MapboxMobileEvents (= 1.0.10) - - Turf (~> 2.0) + - Turf (= 2.7.0) - MapboxMobileEvents (1.0.10) - nanopb (2.30908.0): - nanopb/decode (= 2.30908.0) - nanopb/encode (= 2.30908.0) - nanopb/decode (2.30908.0) - nanopb/encode (2.30908.0) - - Onfido (29.6.0) + - Onfido (29.7.1) - onfido-react-native-sdk (10.6.0): - - Onfido (~> 29.6.0) - - React - - Plaid (4.7.0) - - PromisesObjC (2.3.1) + - glog + - hermes-engine + - Onfido (~> 29.7.0) + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - Plaid (5.2.1) + - PromisesObjC (2.4.0) - RCT-Folly (2022.05.16.00): - boost - DoubleConversion @@ -257,45 +307,49 @@ PODS: - fmt (~> 6.2.1) - glog - libevent - - RCTRequired (0.73.2) - - RCTTypeSafety (0.73.2): - - FBLazyVector (= 0.73.2) - - RCTRequired (= 0.73.2) - - React-Core (= 0.73.2) - - React (0.73.2): - - React-Core (= 0.73.2) - - React-Core/DevSupport (= 0.73.2) - - React-Core/RCTWebSocket (= 0.73.2) - - React-RCTActionSheet (= 0.73.2) - - React-RCTAnimation (= 0.73.2) - - React-RCTBlob (= 0.73.2) - - React-RCTImage (= 0.73.2) - - React-RCTLinking (= 0.73.2) - - React-RCTNetwork (= 0.73.2) - - React-RCTSettings (= 0.73.2) - - React-RCTText (= 0.73.2) - - React-RCTVibration (= 0.73.2) - - React-callinvoker (0.73.2) - - React-Codegen (0.73.2): + - RCTRequired (0.73.4) + - RCTTypeSafety (0.73.4): + - FBLazyVector (= 0.73.4) + - RCTRequired (= 0.73.4) + - React-Core (= 0.73.4) + - React (0.73.4): + - React-Core (= 0.73.4) + - React-Core/DevSupport (= 0.73.4) + - React-Core/RCTWebSocket (= 0.73.4) + - React-RCTActionSheet (= 0.73.4) + - React-RCTAnimation (= 0.73.4) + - React-RCTBlob (= 0.73.4) + - React-RCTImage (= 0.73.4) + - React-RCTLinking (= 0.73.4) + - React-RCTNetwork (= 0.73.4) + - React-RCTSettings (= 0.73.4) + - React-RCTText (= 0.73.4) + - React-RCTVibration (= 0.73.4) + - React-callinvoker (0.73.4) + - React-Codegen (0.73.4): - DoubleConversion - - FBReactNativeSpec - glog - hermes-engine - RCT-Folly - RCTRequired - RCTTypeSafety - React-Core + - React-debug + - React-Fabric + - React-FabricImage + - React-graphics - React-jsi - React-jsiexecutor - React-NativeModulesApple - - React-rncore + - React-rendererdebug + - React-utils - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - React-Core (0.73.2): + - React-Core (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-Core/Default (= 0.73.2) + - React-Core/Default (= 0.73.4) - React-cxxreact - React-hermes - React-jsi @@ -305,7 +359,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/CoreModulesHeaders (0.73.2): + - React-Core/CoreModulesHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -319,7 +373,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/Default (0.73.2): + - React-Core/Default (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -332,23 +386,23 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/DevSupport (0.73.2): + - React-Core/DevSupport (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-Core/Default (= 0.73.2) - - React-Core/RCTWebSocket (= 0.73.2) + - React-Core/Default (= 0.73.4) + - React-Core/RCTWebSocket (= 0.73.4) - React-cxxreact - React-hermes - React-jsi - React-jsiexecutor - - React-jsinspector (= 0.73.2) + - React-jsinspector (= 0.73.4) - React-perflogger - React-runtimescheduler - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTActionSheetHeaders (0.73.2): + - React-Core/RCTActionSheetHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -362,7 +416,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTAnimationHeaders (0.73.2): + - React-Core/RCTAnimationHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -376,7 +430,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTBlobHeaders (0.73.2): + - React-Core/RCTBlobHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -390,7 +444,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTImageHeaders (0.73.2): + - React-Core/RCTImageHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -404,7 +458,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTLinkingHeaders (0.73.2): + - React-Core/RCTLinkingHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -418,7 +472,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTNetworkHeaders (0.73.2): + - React-Core/RCTNetworkHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -432,7 +486,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTSettingsHeaders (0.73.2): + - React-Core/RCTSettingsHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -446,7 +500,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTTextHeaders (0.73.2): + - React-Core/RCTTextHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -460,7 +514,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTVibrationHeaders (0.73.2): + - React-Core/RCTVibrationHeaders (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) @@ -474,11 +528,11 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTWebSocket (0.73.2): + - React-Core/RCTWebSocket (0.73.4): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-Core/Default (= 0.73.2) + - React-Core/Default (= 0.73.4) - React-cxxreact - React-hermes - React-jsi @@ -488,33 +542,33 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-CoreModules (0.73.2): + - React-CoreModules (0.73.4): - RCT-Folly (= 2022.05.16.00) - - RCTTypeSafety (= 0.73.2) + - RCTTypeSafety (= 0.73.4) - React-Codegen - - React-Core/CoreModulesHeaders (= 0.73.2) - - React-jsi (= 0.73.2) + - React-Core/CoreModulesHeaders (= 0.73.4) + - React-jsi (= 0.73.4) - React-NativeModulesApple - React-RCTBlob - - React-RCTImage (= 0.73.2) + - React-RCTImage (= 0.73.4) - ReactCommon - SocketRocket (= 0.6.1) - - React-cxxreact (0.73.2): + - React-cxxreact (0.73.4): - boost (= 1.83.0) - DoubleConversion - fmt (~> 6.2.1) - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-callinvoker (= 0.73.2) - - React-debug (= 0.73.2) - - React-jsi (= 0.73.2) - - React-jsinspector (= 0.73.2) - - React-logger (= 0.73.2) - - React-perflogger (= 0.73.2) - - React-runtimeexecutor (= 0.73.2) - - React-debug (0.73.2) - - React-Fabric (0.73.2): + - React-callinvoker (= 0.73.4) + - React-debug (= 0.73.4) + - React-jsi (= 0.73.4) + - React-jsinspector (= 0.73.4) + - React-logger (= 0.73.4) + - React-perflogger (= 0.73.4) + - React-runtimeexecutor (= 0.73.4) + - React-debug (0.73.4) + - React-Fabric (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -525,20 +579,20 @@ PODS: - React-Core - React-cxxreact - React-debug - - React-Fabric/animations (= 0.73.2) - - React-Fabric/attributedstring (= 0.73.2) - - React-Fabric/componentregistry (= 0.73.2) - - React-Fabric/componentregistrynative (= 0.73.2) - - React-Fabric/components (= 0.73.2) - - React-Fabric/core (= 0.73.2) - - React-Fabric/imagemanager (= 0.73.2) - - React-Fabric/leakchecker (= 0.73.2) - - React-Fabric/mounting (= 0.73.2) - - React-Fabric/scheduler (= 0.73.2) - - React-Fabric/telemetry (= 0.73.2) - - React-Fabric/templateprocessor (= 0.73.2) - - React-Fabric/textlayoutmanager (= 0.73.2) - - React-Fabric/uimanager (= 0.73.2) + - React-Fabric/animations (= 0.73.4) + - React-Fabric/attributedstring (= 0.73.4) + - React-Fabric/componentregistry (= 0.73.4) + - React-Fabric/componentregistrynative (= 0.73.4) + - React-Fabric/components (= 0.73.4) + - React-Fabric/core (= 0.73.4) + - React-Fabric/imagemanager (= 0.73.4) + - React-Fabric/leakchecker (= 0.73.4) + - React-Fabric/mounting (= 0.73.4) + - React-Fabric/scheduler (= 0.73.4) + - React-Fabric/telemetry (= 0.73.4) + - React-Fabric/templateprocessor (= 0.73.4) + - React-Fabric/textlayoutmanager (= 0.73.4) + - React-Fabric/uimanager (= 0.73.4) - React-graphics - React-jsi - React-jsiexecutor @@ -547,7 +601,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/animations (0.73.2): + - React-Fabric/animations (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -566,7 +620,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/attributedstring (0.73.2): + - React-Fabric/attributedstring (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -585,7 +639,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/componentregistry (0.73.2): + - React-Fabric/componentregistry (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -604,7 +658,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/componentregistrynative (0.73.2): + - React-Fabric/componentregistrynative (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -623,7 +677,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components (0.73.2): + - React-Fabric/components (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -634,17 +688,17 @@ PODS: - React-Core - React-cxxreact - React-debug - - React-Fabric/components/inputaccessory (= 0.73.2) - - React-Fabric/components/legacyviewmanagerinterop (= 0.73.2) - - React-Fabric/components/modal (= 0.73.2) - - React-Fabric/components/rncore (= 0.73.2) - - React-Fabric/components/root (= 0.73.2) - - React-Fabric/components/safeareaview (= 0.73.2) - - React-Fabric/components/scrollview (= 0.73.2) - - React-Fabric/components/text (= 0.73.2) - - React-Fabric/components/textinput (= 0.73.2) - - React-Fabric/components/unimplementedview (= 0.73.2) - - React-Fabric/components/view (= 0.73.2) + - React-Fabric/components/inputaccessory (= 0.73.4) + - React-Fabric/components/legacyviewmanagerinterop (= 0.73.4) + - React-Fabric/components/modal (= 0.73.4) + - React-Fabric/components/rncore (= 0.73.4) + - React-Fabric/components/root (= 0.73.4) + - React-Fabric/components/safeareaview (= 0.73.4) + - React-Fabric/components/scrollview (= 0.73.4) + - React-Fabric/components/text (= 0.73.4) + - React-Fabric/components/textinput (= 0.73.4) + - React-Fabric/components/unimplementedview (= 0.73.4) + - React-Fabric/components/view (= 0.73.4) - React-graphics - React-jsi - React-jsiexecutor @@ -653,7 +707,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/inputaccessory (0.73.2): + - React-Fabric/components/inputaccessory (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -672,7 +726,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/legacyviewmanagerinterop (0.73.2): + - React-Fabric/components/legacyviewmanagerinterop (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -691,7 +745,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/modal (0.73.2): + - React-Fabric/components/modal (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -710,7 +764,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/rncore (0.73.2): + - React-Fabric/components/rncore (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -729,7 +783,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/root (0.73.2): + - React-Fabric/components/root (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -748,7 +802,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/safeareaview (0.73.2): + - React-Fabric/components/safeareaview (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -767,7 +821,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/scrollview (0.73.2): + - React-Fabric/components/scrollview (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -786,7 +840,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/text (0.73.2): + - React-Fabric/components/text (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -805,7 +859,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/textinput (0.73.2): + - React-Fabric/components/textinput (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -824,7 +878,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/unimplementedview (0.73.2): + - React-Fabric/components/unimplementedview (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -843,7 +897,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/components/view (0.73.2): + - React-Fabric/components/view (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -863,7 +917,7 @@ PODS: - React-utils - ReactCommon/turbomodule/core - Yoga - - React-Fabric/core (0.73.2): + - React-Fabric/core (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -882,7 +936,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/imagemanager (0.73.2): + - React-Fabric/imagemanager (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -901,7 +955,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/leakchecker (0.73.2): + - React-Fabric/leakchecker (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -920,7 +974,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/mounting (0.73.2): + - React-Fabric/mounting (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -939,7 +993,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/scheduler (0.73.2): + - React-Fabric/scheduler (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -958,7 +1012,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/telemetry (0.73.2): + - React-Fabric/telemetry (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -977,7 +1031,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/templateprocessor (0.73.2): + - React-Fabric/templateprocessor (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -996,7 +1050,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/textlayoutmanager (0.73.2): + - React-Fabric/textlayoutmanager (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -1016,7 +1070,7 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-Fabric/uimanager (0.73.2): + - React-Fabric/uimanager (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog @@ -1035,42 +1089,42 @@ PODS: - React-runtimescheduler - React-utils - ReactCommon/turbomodule/core - - React-FabricImage (0.73.2): + - React-FabricImage (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog - hermes-engine - RCT-Folly/Fabric (= 2022.05.16.00) - - RCTRequired (= 0.73.2) - - RCTTypeSafety (= 0.73.2) + - RCTRequired (= 0.73.4) + - RCTTypeSafety (= 0.73.4) - React-Fabric - React-graphics - React-ImageManager - React-jsi - - React-jsiexecutor (= 0.73.2) + - React-jsiexecutor (= 0.73.4) - React-logger - React-rendererdebug - React-utils - ReactCommon - Yoga - - React-graphics (0.73.2): + - React-graphics (0.73.4): - glog - RCT-Folly/Fabric (= 2022.05.16.00) - - React-Core/Default (= 0.73.2) + - React-Core/Default (= 0.73.4) - React-utils - - React-hermes (0.73.2): + - React-hermes (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - RCT-Folly/Futures (= 2022.05.16.00) - - React-cxxreact (= 0.73.2) + - React-cxxreact (= 0.73.4) - React-jsi - - React-jsiexecutor (= 0.73.2) - - React-jsinspector (= 0.73.2) - - React-perflogger (= 0.73.2) - - React-ImageManager (0.73.2): + - React-jsiexecutor (= 0.73.4) + - React-jsinspector (= 0.73.4) + - React-perflogger (= 0.73.4) + - React-ImageManager (0.73.4): - glog - RCT-Folly/Fabric - React-Core/Default @@ -1079,260 +1133,647 @@ PODS: - React-graphics - React-rendererdebug - React-utils - - React-jserrorhandler (0.73.2): + - React-jserrorhandler (0.73.4): - RCT-Folly/Fabric (= 2022.05.16.00) - React-debug - React-jsi - React-Mapbuffer - - React-jsi (0.73.2): + - React-jsi (0.73.4): - boost (= 1.83.0) - DoubleConversion - fmt (~> 6.2.1) - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-jsiexecutor (0.73.2): + - React-jsiexecutor (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-cxxreact (= 0.73.2) - - React-jsi (= 0.73.2) - - React-perflogger (= 0.73.2) - - React-jsinspector (0.73.2) - - React-logger (0.73.2): + - React-cxxreact (= 0.73.4) + - React-jsi (= 0.73.4) + - React-perflogger (= 0.73.4) + - React-jsinspector (0.73.4) + - React-jsitracing (0.73.4): + - React-jsi + - React-logger (0.73.4): - glog - - React-Mapbuffer (0.73.2): + - React-Mapbuffer (0.73.4): - glog - React-debug - react-native-airship (15.3.1): - AirshipFrameworkProxy (= 2.1.1) - - React-Core - - react-native-blob-util (0.19.4): - - React-Core - - react-native-cameraroll (7.4.0): - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core - - react-native-config (1.4.6): - - react-native-config/App (= 1.4.6) - - react-native-config/App (1.4.6): - - React-Core - - react-native-document-picker (9.1.1): - - React-Core - - react-native-geolocation (3.0.6): - - React-Core - - react-native-image-picker (7.0.3): - - React-Core - - react-native-key-command (1.0.6): - - React-Core - - react-native-launch-arguments (4.0.2): - - React - - react-native-netinfo (11.2.1): - - React-Core - - react-native-pager-view (6.2.2): - - React-Core - - react-native-pdf (6.7.3): - - React-Core - - react-native-performance (5.1.0): - - React-Core - - react-native-plaid-link-sdk (10.8.0): - - Plaid (~> 4.7.0) - - React-Core - - react-native-quick-sqlite (8.0.0-beta.2): - - React - - React-callinvoker - - React-Core - - react-native-release-profiler (0.1.6): + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-blob-util (0.19.4): - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core - - react-native-render-html (6.3.1): - - React-Core - - react-native-safe-area-context (4.8.2): - - React-Core - - react-native-view-shot (3.8.0): - - React-Core - - react-native-webview (13.6.3): - - React-Core - - React-nativeconfig (0.73.2) - - React-NativeModulesApple (0.73.2): + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-cameraroll (7.4.0): - glog - hermes-engine - - React-callinvoker + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core - - React-cxxreact - - React-jsi - - React-runtimeexecutor + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - React-perflogger (0.73.2) - - React-RCTActionSheet (0.73.2): - - React-Core/RCTActionSheetHeaders (= 0.73.2) - - React-RCTAnimation (0.73.2): - - RCT-Folly (= 2022.05.16.00) + - Yoga + - react-native-config (1.5.0): + - react-native-config/App (= 1.5.0) + - react-native-config/App (1.5.0): + - RCT-Folly + - RCTRequired - RCTTypeSafety + - React - React-Codegen - - React-Core/RCTAnimationHeaders - - React-jsi - - React-NativeModulesApple - - ReactCommon - - React-RCTAppDelegate (0.73.2): + - React-RCTFabric + - ReactCommon/turbomodule/core + - react-native-document-picker (9.1.1): - RCT-Folly - RCTRequired - RCTTypeSafety + - React-Codegen - React-Core - - React-CoreModules - - React-hermes - - React-nativeconfig - - React-NativeModulesApple - - React-RCTFabric - - React-RCTImage - - React-RCTNetwork - - React-runtimescheduler - - ReactCommon - - React-RCTBlob (0.73.2): + - ReactCommon/turbomodule/core + - react-native-geolocation (3.0.6): + - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety - React-Codegen - - React-Core/RCTBlobHeaders - - React-Core/RCTWebSocket - - React-jsi - - React-NativeModulesApple - - React-RCTNetwork - - ReactCommon - - React-RCTFabric (0.73.2): - - glog - - hermes-engine - - RCT-Folly/Fabric (= 2022.05.16.00) - React-Core - React-debug - React-Fabric - - React-FabricImage - React-graphics - React-ImageManager - - React-jsi - - React-nativeconfig - - React-RCTImage - - React-RCTText + - React-NativeModulesApple + - React-RCTFabric - React-rendererdebug - - React-runtimescheduler - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core - Yoga - - React-RCTImage (0.73.2): - - RCT-Folly (= 2022.05.16.00) - - RCTTypeSafety - - React-Codegen - - React-Core/RCTImageHeaders - - React-jsi - - React-NativeModulesApple - - React-RCTNetwork - - ReactCommon - - React-RCTLinking (0.73.2): - - React-Codegen - - React-Core/RCTLinkingHeaders (= 0.73.2) - - React-jsi (= 0.73.2) - - React-NativeModulesApple - - ReactCommon - - ReactCommon/turbomodule/core (= 0.73.2) - - React-RCTNetwork (0.73.2): - - RCT-Folly (= 2022.05.16.00) + - react-native-image-picker (7.0.3): + - RCT-Folly + - RCTRequired - RCTTypeSafety + - React - React-Codegen - - React-Core/RCTNetworkHeaders - - React-jsi - - React-NativeModulesApple - - ReactCommon - - React-RCTSettings (0.73.2): + - React-RCTFabric + - ReactCommon/turbomodule/core + - react-native-key-command (1.0.8): + - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired - RCTTypeSafety - React-Codegen - - React-Core/RCTSettingsHeaders - - React-jsi + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager - React-NativeModulesApple - - ReactCommon - - React-RCTText (0.73.2): - - React-Core/RCTTextHeaders (= 0.73.2) + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core - Yoga - - React-RCTVibration (0.73.2): - - RCT-Folly (= 2022.05.16.00) - - React-Codegen - - React-Core/RCTVibrationHeaders - - React-jsi - - React-NativeModulesApple - - ReactCommon - - React-rendererdebug (0.73.2): - - DoubleConversion - - fmt (~> 6.2.1) - - RCT-Folly (= 2022.05.16.00) - - React-debug - - React-rncore (0.73.2) - - React-runtimeexecutor (0.73.2): - - React-jsi (= 0.73.2) - - React-runtimescheduler (0.73.2): + - react-native-launch-arguments (4.0.2): + - React + - react-native-netinfo (11.2.1): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-callinvoker - - React-cxxreact + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core - React-debug - - React-jsi + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric - React-rendererdebug - - React-runtimeexecutor - React-utils - - React-utils (0.73.2): + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-pager-view (6.2.3): - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-debug - - ReactCommon (0.73.2): - - React-logger (= 0.73.2) - - ReactCommon/turbomodule (= 0.73.2) - - ReactCommon/turbomodule (0.73.2): - - DoubleConversion - - fmt (~> 6.2.1) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-pdf (6.7.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-performance (5.1.0): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-plaid-link-sdk (11.5.0): + - glog + - hermes-engine + - Plaid (~> 5.2.0) + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-quick-sqlite (8.0.0-beta.2): + - React + - React-callinvoker + - React-Core + - react-native-release-profiler (0.1.6): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-render-html (6.3.1): + - React-Core + - react-native-safe-area-context (4.8.2): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - react-native-safe-area-context/common (= 4.8.2) + - react-native-safe-area-context/fabric (= 4.8.2) + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-safe-area-context/common (4.8.2): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-safe-area-context/fabric (4.8.2): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - react-native-safe-area-context/common + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-view-shot (3.8.0): + - React-Core + - react-native-webview (13.6.4): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - React-nativeconfig (0.73.4) + - React-NativeModulesApple (0.73.4): + - glog + - hermes-engine + - React-callinvoker + - React-Core + - React-cxxreact + - React-jsi + - React-runtimeexecutor + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - React-perflogger (0.73.4) + - React-RCTActionSheet (0.73.4): + - React-Core/RCTActionSheetHeaders (= 0.73.4) + - React-RCTAnimation (0.73.4): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTAnimationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTAppDelegate (0.73.4): + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - React-CoreModules + - React-debug + - React-Fabric + - React-graphics + - React-hermes + - React-nativeconfig + - React-NativeModulesApple + - React-RCTFabric + - React-RCTImage + - React-RCTNetwork + - React-rendererdebug + - React-RuntimeApple + - React-RuntimeCore + - React-RuntimeHermes + - React-runtimescheduler + - React-utils + - ReactCommon + - React-RCTBlob (0.73.4): + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Codegen + - React-Core/RCTBlobHeaders + - React-Core/RCTWebSocket + - React-jsi + - React-NativeModulesApple + - React-RCTNetwork + - ReactCommon + - React-RCTFabric (0.73.4): + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - React-Core + - React-debug + - React-Fabric + - React-FabricImage + - React-graphics + - React-ImageManager + - React-jsi + - React-nativeconfig + - React-RCTImage + - React-RCTText + - React-rendererdebug + - React-runtimescheduler + - React-utils + - Yoga + - React-RCTImage (0.73.4): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTImageHeaders + - React-jsi + - React-NativeModulesApple + - React-RCTNetwork + - ReactCommon + - React-RCTLinking (0.73.4): + - React-Codegen + - React-Core/RCTLinkingHeaders (= 0.73.4) + - React-jsi (= 0.73.4) + - React-NativeModulesApple + - ReactCommon + - ReactCommon/turbomodule/core (= 0.73.4) + - React-RCTNetwork (0.73.4): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTNetworkHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTSettings (0.73.4): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTSettingsHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTText (0.73.4): + - React-Core/RCTTextHeaders (= 0.73.4) + - Yoga + - React-RCTVibration (0.73.4): + - RCT-Folly (= 2022.05.16.00) + - React-Codegen + - React-Core/RCTVibrationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-rendererdebug (0.73.4): + - DoubleConversion + - fmt (~> 6.2.1) + - RCT-Folly (= 2022.05.16.00) + - React-debug + - React-rncore (0.73.4) + - React-RuntimeApple (0.73.4): + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - React-callinvoker + - React-Core/Default + - React-CoreModules + - React-cxxreact + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-Mapbuffer + - React-NativeModulesApple + - React-RCTFabric + - React-RuntimeCore + - React-runtimeexecutor + - React-RuntimeHermes + - React-utils + - React-RuntimeCore (0.73.4): + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - React-cxxreact + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-runtimeexecutor + - React-runtimescheduler + - React-runtimeexecutor (0.73.4): + - React-jsi (= 0.73.4) + - React-RuntimeHermes (0.73.4): + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - React-jsi + - React-jsitracing + - React-nativeconfig + - React-utils + - React-runtimescheduler (0.73.4): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-callinvoker + - React-cxxreact + - React-debug + - React-jsi + - React-rendererdebug + - React-runtimeexecutor + - React-utils + - React-utils (0.73.4): + - glog + - RCT-Folly (= 2022.05.16.00) + - React-debug + - ReactCommon (0.73.4): + - React-logger (= 0.73.4) + - ReactCommon/turbomodule (= 0.73.4) + - ReactCommon/turbomodule (0.73.4): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-callinvoker (= 0.73.4) + - React-cxxreact (= 0.73.4) + - React-jsi (= 0.73.4) + - React-logger (= 0.73.4) + - React-perflogger (= 0.73.4) + - ReactCommon/turbomodule/bridging (= 0.73.4) + - ReactCommon/turbomodule/core (= 0.73.4) + - ReactCommon/turbomodule/bridging (0.73.4): + - DoubleConversion + - fmt (~> 6.2.1) - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-callinvoker (= 0.73.2) - - React-cxxreact (= 0.73.2) - - React-jsi (= 0.73.2) - - React-logger (= 0.73.2) - - React-perflogger (= 0.73.2) - - ReactCommon/turbomodule/bridging (= 0.73.2) - - ReactCommon/turbomodule/core (= 0.73.2) - - ReactCommon/turbomodule/bridging (0.73.2): + - React-callinvoker (= 0.73.4) + - React-cxxreact (= 0.73.4) + - React-jsi (= 0.73.4) + - React-logger (= 0.73.4) + - React-perflogger (= 0.73.4) + - ReactCommon/turbomodule/core (0.73.4): - DoubleConversion - fmt (~> 6.2.1) - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-callinvoker (= 0.73.2) - - React-cxxreact (= 0.73.2) - - React-jsi (= 0.73.2) - - React-logger (= 0.73.2) - - React-perflogger (= 0.73.2) - - ReactCommon/turbomodule/core (0.73.2): - - DoubleConversion - - fmt (~> 6.2.1) + - React-callinvoker (= 0.73.4) + - React-cxxreact (= 0.73.4) + - React-jsi (= 0.73.4) + - React-logger (= 0.73.4) + - React-perflogger (= 0.73.4) + - RNAppleAuthentication (2.2.2): + - React-Core + - RNCAsyncStorage (1.21.0): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - RNCClipboard (1.13.2): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - RNCPicker (2.6.1): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - RNDeviceInfo (10.3.1): - glog - hermes-engine - RCT-Folly (= 2022.05.16.00) - - React-callinvoker (= 0.73.2) - - React-cxxreact (= 0.73.2) - - React-jsi (= 0.73.2) - - React-logger (= 0.73.2) - - React-perflogger (= 0.73.2) - - RNAppleAuthentication (2.2.2): - - React-Core - - RNCAsyncStorage (1.21.0): - - React-Core - - RNCClipboard (1.13.2): - - React-Core - - RNCPicker (2.5.1): - - React-Core - - RNDeviceInfo (10.3.0): + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - RNDevMenu (4.1.1): - React-Core - React-Core/DevSupport @@ -1353,20 +1794,87 @@ PODS: - React-Core - RNFBApp - RNFlashList (1.6.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - RNFS (2.20.0): - React-Core - RNGestureHandler (2.14.1): - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - RNGoogleSignin (10.0.1): - GoogleSignIn (~> 7.0) - React-Core - RNLiveMarkdown (0.1.38): - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - RNLiveMarkdown/common (= 0.1.38) + - Yoga + - RNLiveMarkdown/common (0.1.38): + - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - RNLocalize (2.2.6): - React-Core - rnmapbox-maps (10.1.11): @@ -1376,32 +1884,158 @@ PODS: - rnmapbox-maps/DynamicLibrary (= 10.1.11) - Turf - rnmapbox-maps/DynamicLibrary (10.1.11): + - hermes-engine - MapboxMaps (~> 10.16.4) + - RCT-Folly + - RCTRequired + - RCTTypeSafety - React + - React-Codegen - React-Core + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core - Turf + - Yoga - RNPermissions (3.9.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - RNReactNativeHapticFeedback (2.2.0): + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - ReactCommon/turbomodule/core - RNReanimated (3.7.2): - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core + - Yoga - RNScreens (3.29.0): - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - RNScreens/common (= 3.29.0) + - Yoga + - RNScreens/common (3.29.0): + - glog + - hermes-engine - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - RNShare (10.0.2): + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-RCTFabric + - ReactCommon/turbomodule/core - RNSound (0.11.2): - React-Core - RNSound/Core (= 0.11.2) - RNSound/Core (0.11.2): - React-Core - RNSVG (14.1.0): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - RNSVG/common (= 14.1.0) + - Yoga + - RNSVG/common (14.1.0): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - SDWebImage (5.17.0): - SDWebImage/Core (= 5.17.0) - SDWebImage/Core (5.17.0) @@ -1416,9 +2050,24 @@ PODS: - SocketRocket (0.6.1) - Turf (2.7.0) - VisionCamera (4.0.0-beta.13): - - React - - React-callinvoker + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen - React-Core + - React-debug + - React-Fabric + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga - Yoga (1.14.0) DEPENDENCIES: @@ -1433,7 +2082,6 @@ DEPENDENCIES: - ExpoImageManipulator (from `../node_modules/expo-image-manipulator/ios`) - ExpoModulesCore (from `../node_modules/expo-modules-core`) - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) - - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) - libevent (~> 2.1.12) @@ -1460,6 +2108,7 @@ DEPENDENCIES: - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`) + - React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`) - React-logger (from `../node_modules/react-native/ReactCommon/logger`) - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`) - "react-native-airship (from `../node_modules/@ua/react-native-airship`)" @@ -1498,7 +2147,10 @@ DEPENDENCIES: - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) - React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`) - React-rncore (from `../node_modules/react-native/ReactCommon`) + - React-RuntimeApple (from `../node_modules/react-native/ReactCommon/react/runtime/platform/ios`) + - React-RuntimeCore (from `../node_modules/react-native/ReactCommon/react/runtime`) - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) + - React-RuntimeHermes (from `../node_modules/react-native/ReactCommon/react/runtime`) - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`) - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`) - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) @@ -1593,8 +2245,6 @@ EXTERNAL SOURCES: :path: "../node_modules/expo-modules-core" FBLazyVector: :path: "../node_modules/react-native/Libraries/FBLazyVector" - FBReactNativeSpec: - :path: "../node_modules/react-native/React/FBReactNativeSpec" glog: :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" hermes-engine: @@ -1642,6 +2292,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/jsiexecutor" React-jsinspector: :path: "../node_modules/react-native/ReactCommon/jsinspector-modern" + React-jsitracing: + :path: "../node_modules/react-native/ReactCommon/hermes/executor/" React-logger: :path: "../node_modules/react-native/ReactCommon/logger" React-Mapbuffer: @@ -1718,8 +2370,14 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/react/renderer/debug" React-rncore: :path: "../node_modules/react-native/ReactCommon" + React-RuntimeApple: + :path: "../node_modules/react-native/ReactCommon/react/runtime/platform/ios" + React-RuntimeCore: + :path: "../node_modules/react-native/ReactCommon/react/runtime" React-runtimeexecutor: :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" + React-RuntimeHermes: + :path: "../node_modules/react-native/ReactCommon/react/runtime" React-runtimescheduler: :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler" React-utils: @@ -1782,7 +2440,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Airship: 2f4510b497a8200780752a5e0304a9072bfffb6d AirshipFrameworkProxy: ea1b6c665c798637b93c465b5e505be3011f1d9d - AirshipServiceExtension: 89c6e25a69f3458d9dbd581c700cffb196b61930 + AirshipServiceExtension: 0a5fb14c3fd1879355ab05a81d10f64512a4f79c AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570 boost: d3f49c53809116a5d38da093a8aa78bf551aed09 BVLinearGradient: 421743791a59d259aec53f4c58793aad031da2ca @@ -1792,9 +2450,8 @@ SPEC CHECKSUMS: Expo: 1e3bcf9dd99de57a636127057f6b488f0609681a ExpoImage: 390c524542b258f8173f475c1cc71f016444a7be ExpoImageManipulator: c1d7cb865eacd620a35659f3da34c70531f10b59 - ExpoModulesCore: 96d1751929ad10622773bb729ab28a8423f0dd0c - FBLazyVector: fbc4957d9aa695250b55d879c1d86f79d7e69ab4 - FBReactNativeSpec: 86de768f89901ef6ed3207cd686362189d64ac88 + ExpoModulesCore: 83dfc98358de225bd0953401ce5b0c14fa8eabd0 + FBLazyVector: 84f6edbe225f38aebd9deaf1540a4160b1f087d7 Firebase: 629510f1a9ddb235f3a7c5c8ceb23ba887f0f814 FirebaseABTesting: 10cbce8db9985ae2e3847ea44e9947dd18f94e10 FirebaseAnalytics: 5506ea8b867d8423485a84b4cd612d279f7b0b8a @@ -1807,122 +2464,126 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 GoogleAppMeasurement: 5ba1164e3c844ba84272555e916d0a6d3d977e91 - GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe + GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a GoogleSignIn: b232380cf495a429b8095d3178a8d5855b42e842 - GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 + GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152 GTMAppAuth: 99fb010047ba3973b7026e45393f51f27ab965ae - GTMSessionFetcher: 41b9ef0b4c08a6db4b7eb51a21ae5183ec99a2c8 - hermes-engine: b361c9ef5ef3cda53f66e195599b47e1f84ffa35 + GTMSessionFetcher: 8a1b34ad97ebe6f909fb8b9b77fba99943007556 + hermes-engine: b2669ce35fc4ac14f523b307aff8896799829fe2 libaom: 144606b1da4b5915a1054383c3a4459ccdb3c661 libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711 libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009 lottie-ios: 3d98679b41fa6fd6aff2352b3953dbd3df8a397e - lottie-react-native: a2ae9c27c273b060b2affff2957bc0ff7fdca353 - MapboxCommon: 90f76693dc02438acbb5ea9a5b266a4c0eb1c875 - MapboxCoreMaps: 7b07d1ca8c454a4381daf09df901b9d6bf90bce0 - MapboxMaps: cbb38845a9bf49b124f0e937975d560a4e01894e + lottie-react-native: 80bda323805fa62005afff0583d2927a89108f20 + MapboxCommon: 20466d839cc43381c44df09d19f7f794b55b9a93 + MapboxCoreMaps: c21f433decbb295874f0c2464e492166db813b56 + MapboxMaps: c3b36646b9038706bbceb5de203bcdd0f411e9d0 MapboxMobileEvents: de50b3a4de180dd129c326e09cd12c8adaaa46d6 nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96 - Onfido: c52e797b10cc9e6d29ba91996cb62e501000bfdd - onfido-react-native-sdk: 4e7f0a7a986ed93cb906d2e0b67a6aab9202de0b - Plaid: 431ef9be5314a1345efb451bc5e6b067bfb3b4c6 - PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 + Onfido: 342cbecd7a4383e98dfe7f9c35e98aaece599062 + onfido-react-native-sdk: 81e930e77236a0fc3da90e6a6eb834734d8ec2f5 + Plaid: 7829e84db6d766a751c91a402702946d2977ddcb + PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0 - RCTRequired: 9b1e7e262745fb671e33c51c1078d093bd30e322 - RCTTypeSafety: a759e3b086eccf3e2cbf2493d22f28e082f958e6 - React: 805f5dd55bbdb92c36b4914c64aaae4c97d358dc - React-callinvoker: 6a697867607c990c2c2c085296ee32cfb5e47c01 - React-Codegen: c4447ffa339f4e7a22e0c9c800eec9084f31899c - React-Core: 49f66fecc7695464e9b7bc7dc7cd9473d2c60584 - React-CoreModules: 710e7c557a1a8180bd1645f5b4bf79f4bd3f5417 - React-cxxreact: 345857b5e4be000c0527df78be3b41a0677a20ce - React-debug: f1637bce73342b2f6eee4982508fdfb088667a87 - React-Fabric: 4dfcff8f14d8e5a7a60b11b7862dad2a9d99c65b - React-FabricImage: 4a9e9510b7f28bbde6a743b18c0cb941a142e938 - React-graphics: dd5af9d8b1b45171fd6933e19fed522f373bcb10 - React-hermes: a52d183a5cf8ccb7020ce3df4275b89d01e6b53e - React-ImageManager: c5b7db131eff71443d7f3a8d686fd841d18befd3 - React-jserrorhandler: 97a6a12e2344c3c4fdd7ba1edefb005215c732f8 - React-jsi: a182068133f80918cd0eec77875abaf943a0b6be - React-jsiexecutor: dacd00ce8a18fc00a0ae6c25e3015a6437e5d2e8 - React-jsinspector: 03644c063fc3621c9a4e8bf263a8150909129618 - React-logger: 66b168e2b2bee57bd8ce9e69f739d805732a5570 - React-Mapbuffer: 9ee041e1d7be96da6d76a251f92e72b711c651d6 - react-native-airship: 6ded22e4ca54f2f80db80b7b911c2b9b696d9335 - react-native-blob-util: 30a6c9fd067aadf9177e61a998f2c7efb670598d - react-native-cameraroll: 3301d62d45616ee9da55ceed04be8d788c3de3ef - react-native-config: 7cd105e71d903104e8919261480858940a6b9c0e - react-native-document-picker: 3599b238843369026201d2ef466df53f77ae0452 - react-native-geolocation: 0f7fe8a4c2de477e278b0365cce27d089a8c5903 - react-native-image-picker: 2381c008bbb09e72395a2d043c147b11bd1523d9 - react-native-key-command: 5af6ee30ff4932f78da6a2109017549042932aa5 + RCTRequired: ab7f915c15569f04a49669e573e6e319a53f9faa + RCTTypeSafety: 63b97ced7b766865057e7154db0e81ce4ee6cf1e + React: 1c87497e50fa40ba9c54e5ea5e53483a0f8eecc0 + React-callinvoker: e3a52a9a93e3eb004d7282c26a4fb27003273fe6 + React-Codegen: 05f85e0e087f402978cfe57822a8debc07127a13 + React-Core: d0ecde72894b792cb8922efaa0990199cbe85169 + React-CoreModules: 2ff1684dd517f0c441495d90a704d499f05e9d0a + React-cxxreact: d9be2fac926741052395da0a6d0bab8d71e2f297 + React-debug: 4678e73a37cb501d784e99ff0f219b4940362a3b + React-Fabric: 460ee9d4b8b9de3382504a711430bfead1d5be1e + React-FabricImage: d0a0631bc8ad9143f42bfccf9d3d533a144cc3d6 + React-graphics: f0d5040263a9649e2a70ebe27b3120c49411afef + React-hermes: b9ac2f7b0c1eeb206eb883583cab7a973d570a6e + React-ImageManager: 6c4bf9d5ed363ead7b5aaf820a3feab221b7063e + React-jserrorhandler: 6e7a7e187583e14dc7a0053a2bdd66c252ea3b21 + React-jsi: 380cd24dd81a705dd042c18989fb10b07182210c + React-jsiexecutor: 8ed7a18b9f119440efdcd424c8257dc7e18067e2 + React-jsinspector: 9ac353eccf6ab54d1e0a33862ba91221d1e88460 + React-jsitracing: e8a2dafb9878dbcad02b6b2b88e66267fb427b74 + React-logger: 0a57b68dd2aec7ff738195f081f0520724b35dab + React-Mapbuffer: 63913773ed7f96b814a2521e13e6d010282096ad + react-native-airship: 2ed75ff2278f11ff1c1ab08ed68f5bf02727b971 + react-native-blob-util: a3ee23cfdde79c769c138d505670055de233b07a + react-native-cameraroll: 95ce0d1a7d2d1fe55bf627ab806b64de6c3e69e9 + react-native-config: 5ce986133b07fc258828b20b9506de0e683efc1c + react-native-document-picker: 8532b8af7c2c930f9e202aac484ac785b0f4f809 + react-native-geolocation: dcc37809bc117ffdb5946fecc127d62319ccd4a9 + react-native-image-picker: f8a13ff106bcc7eb00c71ce11fdc36aac2a44440 + react-native-key-command: 74d18ad516037536c2f671ef0914bcce7739b2f5 react-native-launch-arguments: 5f41e0abf88a15e3c5309b8875d6fd5ac43df49d - react-native-netinfo: 8a7fd3f7130ef4ad2fb4276d5c9f8d3f28d2df3d - react-native-pager-view: 02a5c4962530f7efc10dd51ee9cdabeff5e6c631 - react-native-pdf: b4ca3d37a9a86d9165287741c8b2ef4d8940c00e - react-native-performance: cef2b618d47b277fb5c3280b81a3aad1e72f2886 - react-native-plaid-link-sdk: df1618a85a615d62ff34e34b76abb7a56497fbc1 + react-native-netinfo: 6479e7e2198f936e5abc14a3ec4d469ccbaf81e2 + react-native-pager-view: 9ac6bc0fb3fa31c6d403b253ee361e62ff7ccf7f + react-native-pdf: cd256a00b9d65cb1008dcca2792d7bfb8874838d + react-native-performance: 1aa5960d005159f4ab20be15b44714b53b44e075 + react-native-plaid-link-sdk: 93870f8cd1de8e0acca5cb5020188bdc94e15db6 react-native-quick-sqlite: bcc7a7a250a40222f18913a97cd356bf82d0a6c4 - react-native-release-profiler: 86f2004d5f8c4fff17d90a5580513519a685d7ae + react-native-release-profiler: 42fc8e09b4f6f9b7d14cc5a15c72165e871c0918 react-native-render-html: 96c979fe7452a0a41559685d2f83b12b93edac8c - react-native-safe-area-context: 0ee144a6170530ccc37a0fd9388e28d06f516a89 + react-native-safe-area-context: e8bdd57d9f8d34cc336f0ee6acb30712a8454446 react-native-view-shot: 6b7ed61d77d88580fed10954d45fad0eb2d47688 - react-native-webview: 88293a0f23eca8465c0433c023ec632930e644d0 - React-nativeconfig: d753fbbc8cecc8ae413d615599ac378bbf6999bb - React-NativeModulesApple: 964f4eeab1b4325e8b6a799cf4444c3fd4eb0a9c - React-perflogger: 29efe63b7ef5fbaaa50ef6eaa92482f98a24b97e - React-RCTActionSheet: 69134c62aefd362027b20da01cd5d14ffd39db3f - React-RCTAnimation: 3b5a57087c7a5e727855b803d643ac1d445488f5 - React-RCTAppDelegate: a3ce9b69c0620a1717d08e826d4dc7ad8a3a3cae - React-RCTBlob: 26ea660f2be1e6de62f2d2ad9a9c7b9bfabb786f - React-RCTFabric: bb6dbbff2f80b9489f8b2f1d2554aa040aa2e3cd - React-RCTImage: 27b27f4663df9e776d0549ed2f3536213e793f1b - React-RCTLinking: 962880ce9d0e2ea83fd182953538fc4ed757d4da - React-RCTNetwork: 73a756b44d4ad584bae13a5f1484e3ce12accac8 - React-RCTSettings: 6d7f8d807f05de3d01cfb182d14e5f400716faac - React-RCTText: 73006e95ca359595c2510c1c0114027c85a6ddd3 - React-RCTVibration: 599f427f9cbdd9c4bf38959ca020e8fef0717211 - React-rendererdebug: f2946e0a1c3b906e71555a7c4a39aa6a6c0e639b - React-rncore: 74030de0ffef7b1a3fb77941168624534cc9ae7f - React-runtimeexecutor: 2d1f64f58193f00a3ad71d3f89c2bfbfe11cf5a5 - React-runtimescheduler: df8945a656356ff10f58f65a70820478bfcf33ad - React-utils: f5bc61e7ea3325c0732ae2d755f4441940163b85 - ReactCommon: 45b5d4f784e869c44a6f5a8fad5b114ca8f78c53 + react-native-webview: a5f5f316527235f869992aaaf05050776198806d + React-nativeconfig: d7af5bae6da70fa15ce44f045621cf99ed24087c + React-NativeModulesApple: 0123905d5699853ac68519607555a9a4f5c7b3ac + React-perflogger: 8a1e1af5733004bdd91258dcefbde21e0d1faccd + React-RCTActionSheet: 64bbff3a3963664c2d0146f870fe8e0264aee4c4 + React-RCTAnimation: b698168a7269265a4694727196484342d695f0c1 + React-RCTAppDelegate: a84b4bf99b871d87b41d7a768e7860d207fb4e31 + React-RCTBlob: 47f8c3b2b4b7fa2c5f19c43f0b7f77f57fb9d953 + React-RCTFabric: 6067a32d683d0c2b84d444548bc15a263c64abed + React-RCTImage: ac0e77a44c290b20db783649b2b9cddc93e3eb99 + React-RCTLinking: e626fd2900913fe5d25922ea1be394b7aafa09c9 + React-RCTNetwork: d3114bce3977dafe8bd06421b29812f5a8527ba0 + React-RCTSettings: a53511f90d8df637a1a11ac729179a4d2f734481 + React-RCTText: f0176f5f5952f9a4a2c7354f5ae71f7c420aaf34 + React-RCTVibration: 8160223c6eda5b187079fec204f80eca8b8f3177 + React-rendererdebug: ed286b4da8648c27d6ed3ae1410d4b21ba890d5a + React-rncore: 75cbcc46868e809bb7e738d4565ba85f3dbd5cdc + React-RuntimeApple: f4848a388e4c782d3b8d4ca9c48179163418fe56 + React-RuntimeCore: 272998adc56066404df36b1a3a2be9a56c6ee086 + React-runtimeexecutor: e6ab6bb083dbdbdd489cff426ed0bce0652e6edf + React-RuntimeHermes: d2c368065ef82d4f8e6daa662352de5a195bdb57 + React-runtimescheduler: ed48e5faac6751e66ee1261c4bd01643b436f112 + React-utils: 6e5ad394416482ae21831050928ae27348f83487 + ReactCommon: 840a955d37b7f3358554d819446bffcf624b2522 RNAppleAuthentication: 0571c08da8c327ae2afc0261b48b4a515b0286a6 - RNCAsyncStorage: 618d03a5f52fbccb3d7010076bc54712844c18ef - RNCClipboard: 60fed4b71560d7bfe40e9d35dea9762b024da86d - RNCPicker: 529d564911e93598cc399b56cc0769ce3675f8c8 - RNDeviceInfo: 4701f0bf2a06b34654745053db0ce4cb0c53ada7 + RNCAsyncStorage: 559f22cc4b582414e783fd7255974b29e24b451c + RNCClipboard: c73bbc2e9012120161f1012578418827983bfd0c + RNCPicker: c77efa39690952647b83d8085520bf50ebf94ecb + RNDeviceInfo: cbf78fdb515ae73e641ee7c6b474f77a0299e7e6 RNDevMenu: 72807568fe4188bd4c40ce32675d82434b43c45d RNFBAnalytics: f76bfa164ac235b00505deb9fc1776634056898c RNFBApp: 729c0666395b1953198dc4a1ec6deb8fbe1c302e RNFBCrashlytics: 2061ca863e8e2fa1aae9b12477d7dfa8e88ca0f9 RNFBPerf: 389914cda4000fe0d996a752532a591132cbf3f9 - RNFlashList: 4b4b6b093afc0df60ae08f9cbf6ccd4c836c667a + RNFlashList: 5b0e8311e4cf1ad91e410fd7c8526a89fb5826d1 RNFS: 4ac0f0ea233904cb798630b3c077808c06931688 - RNGestureHandler: 25b969a1ffc806b9f9ad2e170d4a3b049c6af85e + RNGestureHandler: 1190c218cdaaf029ee1437076a3fbbc3297d89fb RNGoogleSignin: ccaa4a81582cf713eea562c5dd9dc1961a715fd0 - RNLiveMarkdown: 0f7819903c63a786bbb80fd620baba10d43dfe18 + RNLiveMarkdown: 9d974f060d0bd857f7d96fac0e9a1539363baa5e RNLocalize: d4b8af4e442d4bcca54e68fc687a2129b4d71a81 - rnmapbox-maps: fcf7f1cbdc8bd7569c267d07284e8a5c7bee06ed - RNPermissions: 9b086c8f05b2e2faa587fdc31f4c5ab4509728aa - RNReactNativeHapticFeedback: ec56a5f81c3941206fd85625fa669ffc7b4545f9 - RNReanimated: 3850671fd0c67051ea8e1e648e8c3e86bf3a28eb - RNScreens: b582cb834dc4133307562e930e8fa914b8c04ef2 - RNShare: 859ff710211285676b0bcedd156c12437ea1d564 + rnmapbox-maps: 3e273e0e867a079ec33df9ee33bb0482434b897d + RNPermissions: 8990fc2c10da3640938e6db1647cb6416095b729 + RNReactNativeHapticFeedback: 616c35bdec7d20d4c524a7949ca9829c09e35f37 + RNReanimated: 605409e0d0ced6f2e194ae585fedc2f8a1935bf2 + RNScreens: f7b8bb892b4957f6f91e5dfd9a191e7f13ce8baa + RNShare: 2a4cdfc0626ad56b0ef583d424f2038f772afe58 RNSound: 6c156f925295bdc83e8e422e7d8b38d33bc71852 - RNSVG: ba3e7232f45e34b7b47e74472386cf4e1a676d0a + RNSVG: db32cfcad0a221fd175e0882eff7bcba7690380a SDWebImage: 750adf017a315a280c60fde706ab1e552a3ae4e9 SDWebImageAVIFCoder: 8348fef6d0ec69e129c66c9fe4d74fbfbf366112 SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c SDWebImageWebPCoder: af09429398d99d524cae2fe00f6f0f6e491ed102 SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 Turf: 13d1a92d969ca0311bbc26e8356cca178ce95da2 - VisionCamera: 9f26224fce1233ffdad9fa4e56863e3de2190dc0 - Yoga: e64aa65de36c0832d04e8c7bd614396c77a80047 + VisionCamera: 3033e0dd5272d46e97bcb406adea4ae0e6907abf + Yoga: 1b901a6d6eeba4e8a2e8f308f708691cdb5db312 -PODFILE CHECKSUM: a431c146e1501391834a2f299a74093bac53b530 +PODFILE CHECKSUM: a25a81f2b50270f0c0bd0aff2e2ebe4d0b4ec06d COCOAPODS: 1.13.0 diff --git a/ios/tmp.xcconfig b/ios/tmp.xcconfig deleted file mode 100644 index 8b137891791f..000000000000 --- a/ios/tmp.xcconfig +++ /dev/null @@ -1 +0,0 @@ - diff --git a/package-lock.json b/package-lock.json index 82146ed8e249..d61279efb85b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "new.expensify", - "version": "1.4.61-0", + "version": "1.4.61-5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "new.expensify", - "version": "1.4.61-0", + "version": "1.4.61-5", "hasInstallScript": true, "license": "MIT", "dependencies": { "@dotlottie/react-player": "^1.6.3", - "@expensify/react-native-live-markdown": "0.1.38", + "@expensify/react-native-live-markdown": "github:Expensify/react-native-live-markdown#f762be6fa832419dbbecb8a0cf64bf7dce18545b", "@expo/metro-runtime": "~3.1.1", "@formatjs/intl-datetimeformat": "^6.10.0", "@formatjs/intl-listformat": "^7.2.2", @@ -33,13 +33,13 @@ "@react-native-firebase/crashlytics": "^12.3.0", "@react-native-firebase/perf": "^12.3.0", "@react-native-google-signin/google-signin": "^10.0.1", - "@react-native-picker/picker": "2.5.1", + "@react-native-picker/picker": "2.6.1", "@react-navigation/material-top-tabs": "^6.6.3", "@react-navigation/native": "6.1.12", "@react-navigation/stack": "6.3.16", "@react-ng/bounds-observer": "^0.2.1", - "@rnmapbox/maps": "^10.1.11", - "@shopify/flash-list": "^1.6.3", + "@rnmapbox/maps": "10.1.11", + "@shopify/flash-list": "1.6.3", "@ua/react-native-airship": "^15.3.1", "@vue/preload-webpack-plugin": "^2.0.0", "awesome-phonenumber": "^5.4.0", @@ -60,7 +60,7 @@ "jest-expo": "50.0.1", "jest-when": "^3.5.2", "lodash": "4.17.21", - "lottie-react-native": "6.4.1", + "lottie-react-native": "6.5.1", "mapbox-gl": "^2.15.0", "onfido-sdk-ui": "14.15.0", "process": "^0.11.10", @@ -74,13 +74,13 @@ "react-error-boundary": "^4.0.11", "react-fast-pdf": "^1.0.6", "react-map-gl": "^7.1.3", - "react-native": "0.73.2", + "react-native": "0.73.4", "react-native-android-location-enabler": "^2.0.1", "react-native-blob-util": "0.19.4", "react-native-collapsible": "^1.6.1", - "react-native-config": "^1.4.5", + "react-native-config": "1.5.0", "react-native-dev-menu": "^4.1.1", - "react-native-device-info": "^10.3.0", + "react-native-device-info": "10.3.1", "react-native-document-picker": "^9.1.1", "react-native-draggable-flatlist": "^4.0.1", "react-native-fs": "^2.20.0", @@ -89,18 +89,18 @@ "react-native-haptic-feedback": "^2.2.0", "react-native-image-picker": "^7.0.3", "react-native-image-size": "git+https://github.com/Expensify/react-native-image-size#bf3ad41a61c4f6f80ed4d497599ef5247a2dd002", - "react-native-key-command": "^1.0.6", + "react-native-key-command": "^1.0.8", "react-native-launch-arguments": "^4.0.2", "react-native-linear-gradient": "^2.8.1", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", "react-native-onyx": "2.0.23", - "react-native-pager-view": "6.2.2", + "react-native-pager-view": "6.2.3", "react-native-pdf": "6.7.3", "react-native-performance": "^5.1.0", "react-native-permissions": "^3.9.3", "react-native-picker-select": "git+https://github.com/Expensify/react-native-picker-select.git#da50d2c5c54e268499047f9cc98b8df4196c1ddf", - "react-native-plaid-link-sdk": "10.8.0", + "react-native-plaid-link-sdk": "11.5.0", "react-native-qrcode-svg": "^6.2.0", "react-native-quick-sqlite": "^8.0.0-beta.2", "react-native-reanimated": "^3.7.2", @@ -118,7 +118,7 @@ "react-native-web": "^0.19.9", "react-native-web-linear-gradient": "^1.1.2", "react-native-web-sound": "^0.1.3", - "react-native-webview": "13.6.3", + "react-native-webview": "13.6.4", "react-pdf": "7.3.3", "react-plaid-link": "3.3.2", "react-web-config": "^1.0.0", @@ -150,8 +150,8 @@ "@octokit/plugin-paginate-rest": "3.1.0", "@octokit/plugin-throttling": "4.1.0", "@react-native-community/eslint-config": "3.0.0", - "@react-native/babel-preset": "^0.73.19", - "@react-native/metro-config": "^0.73.3", + "@react-native/babel-preset": "^0.73.21", + "@react-native/metro-config": "^0.73.5", "@react-navigation/devtools": "^6.0.10", "@storybook/addon-a11y": "^6.5.9", "@storybook/addon-essentials": "^7.0.0", @@ -3098,8 +3098,12 @@ }, "node_modules/@expensify/react-native-live-markdown": { "version": "0.1.38", - "resolved": "https://registry.npmjs.org/@expensify/react-native-live-markdown/-/react-native-live-markdown-0.1.38.tgz", - "integrity": "sha512-0EcXvK/eqeJdesX8DBibJ+V2KX9n5Gbmg0fWTk93mGOUA70h3W6lO68nuch40X+RgQdOgIf50BMfzbBzzVdJwA==", + "resolved": "git+ssh://git@github.com/Expensify/react-native-live-markdown.git#f762be6fa832419dbbecb8a0cf64bf7dce18545b", + "integrity": "sha512-m8+t3y1AtpvFAt3GAwRCiGwcOhUagOTCvwJ87kMGO5q/SKB2GCBHYMQ0QZaHw2QvAzRE6v2kCdqItX5DY+4MPQ==", + "license": "MIT", + "workspaces": [ + "example" + ], "engines": { "node": ">= 18.0.0" }, @@ -5184,11 +5188,13 @@ }, "node_modules/@hapi/hoek": { "version": "9.3.0", - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" }, "node_modules/@hapi/topo": { "version": "5.1.0", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", "dependencies": { "@hapi/hoek": "^9.0.0" } @@ -7899,18 +7905,19 @@ } }, "node_modules/@react-native-community/cli": { - "version": "12.3.0", - "license": "MIT", - "dependencies": { - "@react-native-community/cli-clean": "12.3.0", - "@react-native-community/cli-config": "12.3.0", - "@react-native-community/cli-debugger-ui": "12.3.0", - "@react-native-community/cli-doctor": "12.3.0", - "@react-native-community/cli-hermes": "12.3.0", - "@react-native-community/cli-plugin-metro": "12.3.0", - "@react-native-community/cli-server-api": "12.3.0", - "@react-native-community/cli-tools": "12.3.0", - "@react-native-community/cli-types": "12.3.0", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-12.3.2.tgz", + "integrity": "sha512-WgoUWwLDcf/G1Su2COUUVs3RzAwnV/vUTdISSpAUGgSc57mPabaAoUctKTnfYEhCnE3j02k3VtaVPwCAFRO3TQ==", + "dependencies": { + "@react-native-community/cli-clean": "12.3.2", + "@react-native-community/cli-config": "12.3.2", + "@react-native-community/cli-debugger-ui": "12.3.2", + "@react-native-community/cli-doctor": "12.3.2", + "@react-native-community/cli-hermes": "12.3.2", + "@react-native-community/cli-plugin-metro": "12.3.2", + "@react-native-community/cli-server-api": "12.3.2", + "@react-native-community/cli-tools": "12.3.2", + "@react-native-community/cli-types": "12.3.2", "chalk": "^4.1.2", "commander": "^9.4.1", "deepmerge": "^4.3.0", @@ -7929,17 +7936,19 @@ } }, "node_modules/@react-native-community/cli-clean": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-12.3.2.tgz", + "integrity": "sha512-90k2hCX0ddSFPT7EN7h5SZj0XZPXP0+y/++v262hssoey3nhurwF57NGWN0XAR0o9BSW7+mBfeInfabzDraO6A==", "dependencies": { - "@react-native-community/cli-tools": "12.3.0", + "@react-native-community/cli-tools": "12.3.2", "chalk": "^4.1.2", "execa": "^5.0.0" } }, "node_modules/@react-native-community/cli-clean/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -7952,7 +7961,8 @@ }, "node_modules/@react-native-community/cli-clean/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7966,7 +7976,8 @@ }, "node_modules/@react-native-community/cli-clean/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -7976,18 +7987,21 @@ }, "node_modules/@react-native-community/cli-clean/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-clean/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/@react-native-community/cli-clean/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -7996,10 +8010,11 @@ } }, "node_modules/@react-native-community/cli-config": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-12.3.2.tgz", + "integrity": "sha512-UUCzDjQgvAVL/57rL7eOuFUhd+d+6qfM7V8uOegQFeFEmSmvUUDLYoXpBa5vAK9JgQtSqMBJ1Shmwao+/oElxQ==", "dependencies": { - "@react-native-community/cli-tools": "12.3.0", + "@react-native-community/cli-tools": "12.3.2", "chalk": "^4.1.2", "cosmiconfig": "^5.1.0", "deepmerge": "^4.3.0", @@ -8009,7 +8024,8 @@ }, "node_modules/@react-native-community/cli-config/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -8022,7 +8038,8 @@ }, "node_modules/@react-native-community/cli-config/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8036,7 +8053,8 @@ }, "node_modules/@react-native-community/cli-config/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -8046,11 +8064,13 @@ }, "node_modules/@react-native-community/cli-config/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-config/node_modules/cosmiconfig": { "version": "5.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", + "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", "dependencies": { "import-fresh": "^2.0.0", "is-directory": "^0.3.1", @@ -8063,14 +8083,16 @@ }, "node_modules/@react-native-community/cli-config/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/@react-native-community/cli-config/node_modules/import-fresh": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", + "integrity": "sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==", "dependencies": { "caller-path": "^2.0.0", "resolve-from": "^3.0.0" @@ -8081,7 +8103,8 @@ }, "node_modules/@react-native-community/cli-config/node_modules/parse-json": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", "dependencies": { "error-ex": "^1.3.1", "json-parse-better-errors": "^1.0.1" @@ -8092,14 +8115,16 @@ }, "node_modules/@react-native-community/cli-config/node_modules/resolve-from": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", "engines": { "node": ">=4" } }, "node_modules/@react-native-community/cli-config/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -8108,20 +8133,22 @@ } }, "node_modules/@react-native-community/cli-debugger-ui": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-12.3.2.tgz", + "integrity": "sha512-nSWQUL+51J682DlfcC1bjkUbQbGvHCC25jpqTwHIjmmVjYCX1uHuhPSqQKgPNdvtfOkrkACxczd7kVMmetxY2Q==", "dependencies": { "serve-static": "^1.13.1" } }, "node_modules/@react-native-community/cli-doctor": { - "version": "12.3.0", - "license": "MIT", - "dependencies": { - "@react-native-community/cli-config": "12.3.0", - "@react-native-community/cli-platform-android": "12.3.0", - "@react-native-community/cli-platform-ios": "12.3.0", - "@react-native-community/cli-tools": "12.3.0", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-12.3.2.tgz", + "integrity": "sha512-GrAabdY4qtBX49knHFvEAdLtCjkmndjTeqhYO6BhsbAeKOtspcLT/0WRgdLIaKODRa61ADNB3K5Zm4dU0QrZOg==", + "dependencies": { + "@react-native-community/cli-config": "12.3.2", + "@react-native-community/cli-platform-android": "12.3.2", + "@react-native-community/cli-platform-ios": "12.3.2", + "@react-native-community/cli-tools": "12.3.2", "chalk": "^4.1.2", "command-exists": "^1.2.8", "deepmerge": "^4.3.0", @@ -8139,7 +8166,8 @@ }, "node_modules/@react-native-community/cli-doctor/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -8152,7 +8180,8 @@ }, "node_modules/@react-native-community/cli-doctor/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8166,7 +8195,8 @@ }, "node_modules/@react-native-community/cli-doctor/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -8176,11 +8206,13 @@ }, "node_modules/@react-native-community/cli-doctor/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-doctor/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } @@ -8192,7 +8224,8 @@ }, "node_modules/@react-native-community/cli-doctor/node_modules/strip-ansi": { "version": "5.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dependencies": { "ansi-regex": "^4.1.0" }, @@ -8202,7 +8235,8 @@ }, "node_modules/@react-native-community/cli-doctor/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -8211,11 +8245,12 @@ } }, "node_modules/@react-native-community/cli-hermes": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-12.3.2.tgz", + "integrity": "sha512-SL6F9O8ghp4ESBFH2YAPLtIN39jdnvGBKnK4FGKpDCjtB3DnUmDsGFlH46S+GGt5M6VzfG2eeKEOKf3pZ6jUzA==", "dependencies": { - "@react-native-community/cli-platform-android": "12.3.0", - "@react-native-community/cli-tools": "12.3.0", + "@react-native-community/cli-platform-android": "12.3.2", + "@react-native-community/cli-tools": "12.3.2", "chalk": "^4.1.2", "hermes-profile-transformer": "^0.0.6", "ip": "^1.1.5" @@ -8223,7 +8258,8 @@ }, "node_modules/@react-native-community/cli-hermes/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -8236,7 +8272,8 @@ }, "node_modules/@react-native-community/cli-hermes/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8250,7 +8287,8 @@ }, "node_modules/@react-native-community/cli-hermes/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -8260,11 +8298,13 @@ }, "node_modules/@react-native-community/cli-hermes/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-hermes/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } @@ -8276,7 +8316,8 @@ }, "node_modules/@react-native-community/cli-hermes/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -8285,10 +8326,11 @@ } }, "node_modules/@react-native-community/cli-platform-android": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-12.3.2.tgz", + "integrity": "sha512-MZ5nO8yi/N+Fj2i9BJcJ9C/ez+9/Ir7lQt49DWRo9YDmzye66mYLr/P2l/qxsixllbbDi7BXrlLpxaEhMrDopg==", "dependencies": { - "@react-native-community/cli-tools": "12.3.0", + "@react-native-community/cli-tools": "12.3.2", "chalk": "^4.1.2", "execa": "^5.0.0", "fast-xml-parser": "^4.2.4", @@ -8298,7 +8340,8 @@ }, "node_modules/@react-native-community/cli-platform-android/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -8311,7 +8354,8 @@ }, "node_modules/@react-native-community/cli-platform-android/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8325,7 +8369,8 @@ }, "node_modules/@react-native-community/cli-platform-android/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -8335,18 +8380,21 @@ }, "node_modules/@react-native-community/cli-platform-android/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-platform-android/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/@react-native-community/cli-platform-android/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -8355,10 +8403,11 @@ } }, "node_modules/@react-native-community/cli-platform-ios": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-12.3.2.tgz", + "integrity": "sha512-OcWEAbkev1IL6SUiQnM6DQdsvfsKZhRZtoBNSj9MfdmwotVZSOEZJ+IjZ1FR9ChvMWayO9ns/o8LgoQxr1ZXeg==", "dependencies": { - "@react-native-community/cli-tools": "12.3.0", + "@react-native-community/cli-tools": "12.3.2", "chalk": "^4.1.2", "execa": "^5.0.0", "fast-xml-parser": "^4.0.12", @@ -8368,7 +8417,8 @@ }, "node_modules/@react-native-community/cli-platform-ios/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -8381,7 +8431,8 @@ }, "node_modules/@react-native-community/cli-platform-ios/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8395,7 +8446,8 @@ }, "node_modules/@react-native-community/cli-platform-ios/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -8405,18 +8457,21 @@ }, "node_modules/@react-native-community/cli-platform-ios/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-platform-ios/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/@react-native-community/cli-platform-ios/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -8425,15 +8480,17 @@ } }, "node_modules/@react-native-community/cli-plugin-metro": { - "version": "12.3.0", - "license": "MIT" + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-12.3.2.tgz", + "integrity": "sha512-FpFBwu+d2E7KRhYPTkKvQsWb2/JKsJv+t1tcqgQkn+oByhp+qGyXBobFB8/R3yYvRRDCSDhS+atWTJzk9TjM8g==" }, "node_modules/@react-native-community/cli-server-api": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-12.3.2.tgz", + "integrity": "sha512-iwa7EO9XFA/OjI5pPLLpI/6mFVqv8L73kNck3CNOJIUCCveGXBKK0VMyOkXaf/BYnihgQrXh+x5cxbDbggr7+Q==", "dependencies": { - "@react-native-community/cli-debugger-ui": "12.3.0", - "@react-native-community/cli-tools": "12.3.0", + "@react-native-community/cli-debugger-ui": "12.3.2", + "@react-native-community/cli-tools": "12.3.2", "compression": "^1.7.1", "connect": "^3.6.5", "errorhandler": "^1.5.1", @@ -8468,14 +8525,16 @@ }, "node_modules/@react-native-community/cli-server-api/node_modules/ansi-regex": { "version": "5.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "engines": { "node": ">=8" } }, "node_modules/@react-native-community/cli-server-api/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -8503,7 +8562,8 @@ }, "node_modules/@react-native-community/cli-server-api/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -8513,7 +8573,8 @@ }, "node_modules/@react-native-community/cli-server-api/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-server-api/node_modules/has-flag": { "version": "4.0.0", @@ -8525,7 +8586,8 @@ }, "node_modules/@react-native-community/cli-server-api/node_modules/pretty-format": { "version": "26.6.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { "@jest/types": "^26.6.2", "ansi-regex": "^5.0.0", @@ -8538,7 +8600,8 @@ }, "node_modules/@react-native-community/cli-server-api/node_modules/react-is": { "version": "17.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/@react-native-community/cli-server-api/node_modules/supports-color": { "version": "7.2.0", @@ -8553,7 +8616,8 @@ }, "node_modules/@react-native-community/cli-server-api/node_modules/ws": { "version": "7.5.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", "engines": { "node": ">=8.3.0" }, @@ -8571,8 +8635,9 @@ } }, "node_modules/@react-native-community/cli-tools": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-12.3.2.tgz", + "integrity": "sha512-nDH7vuEicHI2TI0jac/DjT3fr977iWXRdgVAqPZFFczlbs7A8GQvEdGnZ1G8dqRUmg+kptw0e4hwczAOG89JzQ==", "dependencies": { "appdirsjs": "^1.2.4", "chalk": "^4.1.2", @@ -8588,7 +8653,8 @@ }, "node_modules/@react-native-community/cli-tools/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -8601,7 +8667,8 @@ }, "node_modules/@react-native-community/cli-tools/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8615,7 +8682,8 @@ }, "node_modules/@react-native-community/cli-tools/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -8625,25 +8693,29 @@ }, "node_modules/@react-native-community/cli-tools/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native-community/cli-tools/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/@react-native-community/cli-tools/node_modules/is-wsl": { "version": "1.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==", "engines": { "node": ">=4" } }, "node_modules/@react-native-community/cli-tools/node_modules/open": { "version": "6.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/open/-/open-6.4.0.tgz", + "integrity": "sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==", "dependencies": { "is-wsl": "^1.1.0" }, @@ -8653,7 +8725,8 @@ }, "node_modules/@react-native-community/cli-tools/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -8662,8 +8735,9 @@ } }, "node_modules/@react-native-community/cli-types": { - "version": "12.3.0", - "license": "MIT", + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-12.3.2.tgz", + "integrity": "sha512-9D0UEFqLW8JmS16mjHJxUJWX8E+zJddrHILSH8AJHZ0NNHv4u2DXKdb0wFLMobFxGNxPT+VSOjc60fGvXzWHog==", "dependencies": { "joi": "^17.2.1" } @@ -8991,8 +9065,9 @@ } }, "node_modules/@react-native-picker/picker": { - "version": "2.5.1", - "license": "MIT", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@react-native-picker/picker/-/picker-2.6.1.tgz", + "integrity": "sha512-oJftvmLOj6Y6/bF4kPcK6L83yNBALGmqNYugf94BzP0FQGpHBwimVN2ygqkQ2Sn2ZU3pGUZMs0jV6+Gku2GyYg==", "peerDependencies": { "react": ">=16", "react-native": ">=0.57" @@ -9006,18 +9081,20 @@ } }, "node_modules/@react-native/babel-plugin-codegen": { - "version": "0.73.2", - "license": "MIT", + "version": "0.73.4", + "resolved": "https://registry.npmjs.org/@react-native/babel-plugin-codegen/-/babel-plugin-codegen-0.73.4.tgz", + "integrity": "sha512-XzRd8MJGo4Zc5KsphDHBYJzS1ryOHg8I2gOZDAUCGcwLFhdyGu1zBNDJYH2GFyDrInn9TzAbRIf3d4O+eltXQQ==", "dependencies": { - "@react-native/codegen": "0.73.2" + "@react-native/codegen": "0.73.3" }, "engines": { "node": ">=18" } }, "node_modules/@react-native/babel-preset": { - "version": "0.73.19", - "license": "MIT", + "version": "0.73.21", + "resolved": "https://registry.npmjs.org/@react-native/babel-preset/-/babel-preset-0.73.21.tgz", + "integrity": "sha512-WlFttNnySKQMeujN09fRmrdWqh46QyJluM5jdtDNrkl/2Hx6N4XeDUGhABvConeK95OidVO7sFFf7sNebVXogA==", "dependencies": { "@babel/core": "^7.20.0", "@babel/plugin-proposal-async-generator-functions": "^7.0.0", @@ -9058,7 +9135,7 @@ "@babel/plugin-transform-typescript": "^7.5.0", "@babel/plugin-transform-unicode-regex": "^7.0.0", "@babel/template": "^7.0.0", - "@react-native/babel-plugin-codegen": "0.73.2", + "@react-native/babel-plugin-codegen": "0.73.4", "babel-plugin-transform-flow-enums": "^0.0.2", "react-refresh": "^0.14.0" }, @@ -9077,8 +9154,9 @@ } }, "node_modules/@react-native/codegen": { - "version": "0.73.2", - "license": "MIT", + "version": "0.73.3", + "resolved": "https://registry.npmjs.org/@react-native/codegen/-/codegen-0.73.3.tgz", + "integrity": "sha512-sxslCAAb8kM06vGy9Jyh4TtvjhcP36k/rvj2QE2Jdhdm61KvfafCATSIsOfc0QvnduWFcpXUPvAVyYwuv7PYDg==", "dependencies": { "@babel/parser": "^7.20.0", "flow-parser": "^0.206.0", @@ -9097,7 +9175,8 @@ }, "node_modules/@react-native/codegen/node_modules/mkdirp": { "version": "0.5.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dependencies": { "minimist": "^1.2.6" }, @@ -9106,13 +9185,14 @@ } }, "node_modules/@react-native/community-cli-plugin": { - "version": "0.73.12", - "license": "MIT", + "version": "0.73.16", + "resolved": "https://registry.npmjs.org/@react-native/community-cli-plugin/-/community-cli-plugin-0.73.16.tgz", + "integrity": "sha512-eNH3v3qJJF6f0n/Dck90qfC9gVOR4coAXMTdYECO33GfgjTi+73vf/SBqlXw9HICH/RNZYGPM3wca4FRF7TYeQ==", "dependencies": { - "@react-native-community/cli-server-api": "12.3.0", - "@react-native-community/cli-tools": "12.3.0", + "@react-native-community/cli-server-api": "12.3.2", + "@react-native-community/cli-tools": "12.3.2", "@react-native/dev-middleware": "0.73.7", - "@react-native/metro-babel-transformer": "0.73.13", + "@react-native/metro-babel-transformer": "0.73.15", "chalk": "^4.0.0", "execa": "^5.1.1", "metro": "^0.80.3", @@ -9127,7 +9207,8 @@ }, "node_modules/@react-native/community-cli-plugin/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -9140,7 +9221,8 @@ }, "node_modules/@react-native/community-cli-plugin/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -9154,7 +9236,8 @@ }, "node_modules/@react-native/community-cli-plugin/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -9164,18 +9247,21 @@ }, "node_modules/@react-native/community-cli-plugin/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@react-native/community-cli-plugin/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/@react-native/community-cli-plugin/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -9249,11 +9335,12 @@ } }, "node_modules/@react-native/metro-babel-transformer": { - "version": "0.73.13", - "license": "MIT", + "version": "0.73.15", + "resolved": "https://registry.npmjs.org/@react-native/metro-babel-transformer/-/metro-babel-transformer-0.73.15.tgz", + "integrity": "sha512-LlkSGaXCz+xdxc9819plmpsl4P4gZndoFtpjN3GMBIu6f7TBV0GVbyJAU4GE8fuAWPVSVL5ArOcdkWKSbI1klw==", "dependencies": { "@babel/core": "^7.20.0", - "@react-native/babel-preset": "0.73.19", + "@react-native/babel-preset": "0.73.21", "hermes-parser": "0.15.0", "nullthrows": "^1.1.1" }, @@ -9265,12 +9352,13 @@ } }, "node_modules/@react-native/metro-config": { - "version": "0.73.3", + "version": "0.73.5", + "resolved": "https://registry.npmjs.org/@react-native/metro-config/-/metro-config-0.73.5.tgz", + "integrity": "sha512-3bNWoHzOzP/+qoLJtRhOVXrnxKmSY3i4y5PXyMQlIvvOI/GQbXulPpEZxK/yUrf1MmeXHLLFufFbQWlfDEDoxA==", "dev": true, - "license": "MIT", "dependencies": { "@react-native/js-polyfills": "0.73.1", - "@react-native/metro-babel-transformer": "0.73.13", + "@react-native/metro-babel-transformer": "0.73.15", "metro-config": "^0.80.3", "metro-runtime": "^0.80.3" }, @@ -9481,19 +9569,22 @@ } }, "node_modules/@sideway/address": { - "version": "4.1.4", - "license": "BSD-3-Clause", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", + "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==", "dependencies": { "@hapi/hoek": "^9.0.0" } }, "node_modules/@sideway/formula": { "version": "3.0.1", - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" }, "node_modules/@sideway/pinpoint": { "version": "2.0.0", - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" }, "node_modules/@sinclair/typebox": { "version": "0.27.8", @@ -20301,7 +20392,8 @@ }, "node_modules/ansi-fragments": { "version": "0.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-fragments/-/ansi-fragments-0.2.1.tgz", + "integrity": "sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w==", "dependencies": { "colorette": "^1.0.7", "slice-ansi": "^2.0.0", @@ -20310,21 +20402,24 @@ }, "node_modules/ansi-fragments/node_modules/astral-regex": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", "engines": { "node": ">=4" } }, "node_modules/ansi-fragments/node_modules/is-fullwidth-code-point": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", "engines": { "node": ">=4" } }, "node_modules/ansi-fragments/node_modules/slice-ansi": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", + "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", "dependencies": { "ansi-styles": "^3.2.0", "astral-regex": "^1.0.0", @@ -20336,7 +20431,8 @@ }, "node_modules/ansi-fragments/node_modules/strip-ansi": { "version": "5.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dependencies": { "ansi-regex": "^4.1.0" }, @@ -20515,7 +20611,8 @@ }, "node_modules/appdirsjs": { "version": "1.2.7", - "license": "MIT" + "resolved": "https://registry.npmjs.org/appdirsjs/-/appdirsjs-1.2.7.tgz", + "integrity": "sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw==" }, "node_modules/application-config-path": { "version": "0.1.1", @@ -21113,7 +21210,8 @@ }, "node_modules/babel-core": { "version": "7.0.0-bridge.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz", + "integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==", "peerDependencies": { "@babel/core": "^7.0.0-0" } @@ -23275,7 +23373,8 @@ }, "node_modules/cli-cursor": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dependencies": { "restore-cursor": "^3.1.0" }, @@ -24986,7 +25085,8 @@ }, "node_modules/dayjs": { "version": "1.11.10", - "license": "MIT" + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" }, "node_modules/debounce": { "version": "1.2.1", @@ -26126,7 +26226,8 @@ }, "node_modules/errorhandler": { "version": "1.5.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.5.1.tgz", + "integrity": "sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A==", "dependencies": { "accepts": "~1.3.7", "escape-html": "~1.0.3" @@ -28105,7 +28206,9 @@ "license": "MIT" }, "node_modules/fast-xml-parser": { - "version": "4.3.2", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.6.tgz", + "integrity": "sha512-M2SovcRxD4+vC493Uc2GZVcZaj66CCJhWurC4viynVSTvrpErCShNcDz1lAho6n9REQKvL/ll4A4/fw6Y9z8nw==", "funding": [ { "type": "github", @@ -28116,7 +28219,6 @@ "url": "https://paypal.me/naturalintelligence" } ], - "license": "MIT", "dependencies": { "strnum": "^1.0.5" }, @@ -28474,7 +28576,8 @@ }, "node_modules/flow-parser": { "version": "0.206.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.206.0.tgz", + "integrity": "sha512-HVzoK3r6Vsg+lKvlIZzaWNBVai+FXTX1wdYhz/wVlH13tb/gOdLXmlTqy6odmTBhT5UoWUbq0k8263Qhr9d88w==", "engines": { "node": ">=0.4.0" } @@ -29588,18 +29691,21 @@ }, "node_modules/hermes-estree": { "version": "0.15.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.15.0.tgz", + "integrity": "sha512-lLYvAd+6BnOqWdnNbP/Q8xfl8LOGw4wVjfrNd9Gt8eoFzhNBRVD95n4l2ksfMVOoxuVyegs85g83KS9QOsxbVQ==" }, "node_modules/hermes-parser": { "version": "0.15.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.15.0.tgz", + "integrity": "sha512-Q1uks5rjZlE9RjMMjSUCkGrEIPI5pKJILeCtK1VmTj7U4pf3wVPoo+cxfu+s4cBAPy2JzikIIdCZgBoR6x7U1Q==", "dependencies": { "hermes-estree": "0.15.0" } }, "node_modules/hermes-profile-transformer": { "version": "0.0.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz", + "integrity": "sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ==", "dependencies": { "source-map": "^0.7.3" }, @@ -29609,7 +29715,8 @@ }, "node_modules/hermes-profile-transformer/node_modules/source-map": { "version": "0.7.4", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "engines": { "node": ">= 8" } @@ -30955,7 +31062,8 @@ }, "node_modules/is-interactive": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", "engines": { "node": ">=8" } @@ -31178,7 +31286,8 @@ }, "node_modules/is-unicode-supported": { "version": "0.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", "engines": { "node": ">=10" }, @@ -34032,12 +34141,13 @@ } }, "node_modules/joi": { - "version": "17.11.0", - "license": "BSD-3-Clause", + "version": "17.12.3", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.12.3.tgz", + "integrity": "sha512-2RRziagf555owrm9IRVtdKynOBeITiDpuZqIpgwqXShPncPKNiRQoiGsl/T8SQdq+8ugRzH2LqY67irr2y/d+g==", "dependencies": { - "@hapi/hoek": "^9.0.0", - "@hapi/topo": "^5.0.0", - "@sideway/address": "^4.1.3", + "@hapi/hoek": "^9.3.0", + "@hapi/topo": "^5.1.0", + "@sideway/address": "^4.1.5", "@sideway/formula": "^3.0.1", "@sideway/pinpoint": "^2.0.0" } @@ -34087,7 +34197,8 @@ }, "node_modules/jscodeshift": { "version": "0.14.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/jscodeshift/-/jscodeshift-0.14.0.tgz", + "integrity": "sha512-7eCC1knD7bLUPuSCwXsMZUH51O8jIcoVyKtI6P0XM0IVzlGjckPy3FIwQlorzbN0Sg79oK+RlohN32Mqf/lrYA==", "dependencies": { "@babel/core": "^7.13.16", "@babel/parser": "^7.13.16", @@ -34118,7 +34229,8 @@ }, "node_modules/jscodeshift/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -34131,7 +34243,8 @@ }, "node_modules/jscodeshift/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -34145,7 +34258,8 @@ }, "node_modules/jscodeshift/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -34155,18 +34269,21 @@ }, "node_modules/jscodeshift/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/jscodeshift/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/jscodeshift/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -34708,7 +34825,8 @@ }, "node_modules/log-symbols": { "version": "4.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" @@ -34722,7 +34840,8 @@ }, "node_modules/log-symbols/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -34735,7 +34854,8 @@ }, "node_modules/log-symbols/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -34749,7 +34869,8 @@ }, "node_modules/log-symbols/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -34759,18 +34880,21 @@ }, "node_modules/log-symbols/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/log-symbols/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/log-symbols/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -34780,7 +34904,8 @@ }, "node_modules/logkitty": { "version": "0.7.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/logkitty/-/logkitty-0.7.1.tgz", + "integrity": "sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ==", "dependencies": { "ansi-fragments": "^0.2.1", "dayjs": "^1.8.15", @@ -34792,7 +34917,8 @@ }, "node_modules/logkitty/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -34805,14 +34931,16 @@ }, "node_modules/logkitty/node_modules/camelcase": { "version": "5.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "engines": { "node": ">=6" } }, "node_modules/logkitty/node_modules/cliui": { "version": "6.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -34821,7 +34949,8 @@ }, "node_modules/logkitty/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -34831,11 +34960,13 @@ }, "node_modules/logkitty/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/logkitty/node_modules/find-up": { "version": "4.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -34846,7 +34977,8 @@ }, "node_modules/logkitty/node_modules/locate-path": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dependencies": { "p-locate": "^4.1.0" }, @@ -34856,7 +34988,8 @@ }, "node_modules/logkitty/node_modules/p-limit": { "version": "2.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dependencies": { "p-try": "^2.0.0" }, @@ -34869,7 +35002,8 @@ }, "node_modules/logkitty/node_modules/p-locate": { "version": "4.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dependencies": { "p-limit": "^2.2.0" }, @@ -34879,14 +35013,16 @@ }, "node_modules/logkitty/node_modules/path-exists": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "engines": { "node": ">=8" } }, "node_modules/logkitty/node_modules/wrap-ansi": { "version": "6.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -34898,7 +35034,8 @@ }, "node_modules/logkitty/node_modules/yargs": { "version": "15.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -34918,7 +35055,8 @@ }, "node_modules/logkitty/node_modules/yargs-parser": { "version": "18.1.3", - "license": "ISC", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -34945,8 +35083,9 @@ } }, "node_modules/lottie-react-native": { - "version": "6.4.1", - "license": "Apache-2.0", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/lottie-react-native/-/lottie-react-native-6.5.1.tgz", + "integrity": "sha512-pjih71P6qX6Ax5ucUBA+YJO7+fnveI581Bd8LmYeARm3spq3AnoGzEkrWaieM8odnK6WI4d5dwEJsxge/QjFPw==", "peerDependencies": { "@dotlottie/react-player": "^1.6.1", "@lottiefiles/react-lottie-player": "^3.5.3", @@ -36567,7 +36706,8 @@ }, "node_modules/nocache": { "version": "3.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/nocache/-/nocache-3.0.4.tgz", + "integrity": "sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==", "engines": { "node": ">=12.0.0" } @@ -36702,7 +36842,8 @@ }, "node_modules/node-stream-zip": { "version": "1.15.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", + "integrity": "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==", "engines": { "node": ">=0.12.0" }, @@ -37236,7 +37377,8 @@ }, "node_modules/ora": { "version": "5.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", @@ -37257,7 +37399,8 @@ }, "node_modules/ora/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -37270,7 +37413,8 @@ }, "node_modules/ora/node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -37284,7 +37428,8 @@ }, "node_modules/ora/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -37294,18 +37439,21 @@ }, "node_modules/ora/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/ora/node_modules/has-flag": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { "node": ">=8" } }, "node_modules/ora/node_modules/supports-color": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { "has-flag": "^4.0.0" }, @@ -39163,16 +39311,17 @@ } }, "node_modules/react-native": { - "version": "0.73.2", - "license": "MIT", + "version": "0.73.4", + "resolved": "https://registry.npmjs.org/react-native/-/react-native-0.73.4.tgz", + "integrity": "sha512-VtS+Yr6OOTIuJGDECIYWzNU8QpJjASQYvMtfa/Hvm/2/h5GdB6W9H9TOmh13x07Lj4AOhNMx3XSsz6TdrO4jIg==", "dependencies": { "@jest/create-cache-key-function": "^29.6.3", - "@react-native-community/cli": "12.3.0", - "@react-native-community/cli-platform-android": "12.3.0", - "@react-native-community/cli-platform-ios": "12.3.0", + "@react-native-community/cli": "12.3.2", + "@react-native-community/cli-platform-android": "12.3.2", + "@react-native-community/cli-platform-ios": "12.3.2", "@react-native/assets-registry": "0.73.1", - "@react-native/codegen": "0.73.2", - "@react-native/community-cli-plugin": "0.73.12", + "@react-native/codegen": "0.73.3", + "@react-native/community-cli-plugin": "0.73.16", "@react-native/gradle-plugin": "0.73.4", "@react-native/js-polyfills": "0.73.1", "@react-native/normalize-colors": "0.73.2", @@ -39181,6 +39330,7 @@ "anser": "^1.4.9", "ansi-regex": "^5.0.0", "base64-js": "^1.5.1", + "chalk": "^4.0.0", "deprecated-react-native-prop-types": "^5.0.0", "event-target-shim": "^5.0.1", "flow-enums-runtime": "^0.0.6", @@ -39282,8 +39432,9 @@ } }, "node_modules/react-native-config": { - "version": "1.4.6", - "license": "MIT", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/react-native-config/-/react-native-config-1.5.0.tgz", + "integrity": "sha512-slecooA/0tCwhb+RuWEbwLqtKirGh9vWPRpgDfH7uPAraCciqHNH2XjS9ylW+Spn4FUrHg5KWTqUGs9BdBADHg==", "peerDependencies": { "react-native-windows": ">=0.61" }, @@ -39301,8 +39452,9 @@ } }, "node_modules/react-native-device-info": { - "version": "10.3.0", - "license": "MIT", + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/react-native-device-info/-/react-native-device-info-10.3.1.tgz", + "integrity": "sha512-KZU1luB7UrpRT8vYdWOoGJA0e2uAvF5J1Da90QMfLrtYBm1U0tbrlYO99qLCBRq7nQvBISlhqpqikzaS0vDYYw==", "peerDependencies": { "react-native": "*" } @@ -39411,8 +39563,9 @@ "license": "MIT" }, "node_modules/react-native-key-command": { - "version": "1.0.6", - "license": "MIT", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/react-native-key-command/-/react-native-key-command-1.0.8.tgz", + "integrity": "sha512-9iih5hio+4RIYCYP2ZKoJb7w+eGo6E506okTBi+7oenu2oGwhTifBC30GU51Ea+h4SJgUufoQARbUvgjyLbI3w==", "dependencies": { "eventemitter3": "^5.0.1", "underscore": "^1.13.4" @@ -39511,8 +39664,9 @@ } }, "node_modules/react-native-pager-view": { - "version": "6.2.2", - "license": "MIT", + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/react-native-pager-view/-/react-native-pager-view-6.2.3.tgz", + "integrity": "sha512-dqVpXWFtPNfD3D2QQQr8BP+ullS5MhjRJuF8Z/qml4QTILcrWaW8F5iAxKkQR3Jl0ikcEryG/+SQlNcwlo0Ggg==", "peerDependencies": { "react": "*", "react-native": "*" @@ -39565,14 +39719,12 @@ } }, "node_modules/react-native-plaid-link-sdk": { - "version": "10.8.0", - "license": "MIT", - "dependencies": { - "react-native-plaid-link-sdk": "^10.4.0" - }, + "version": "11.5.0", + "resolved": "https://registry.npmjs.org/react-native-plaid-link-sdk/-/react-native-plaid-link-sdk-11.5.0.tgz", + "integrity": "sha512-B3fwujxBS9nZwadXFcseU3nrYG7Ptob6p9eG/gXde65cqwErMaq2k1rVv3R17s/rpKnmU5Cx5pKOMmkxPUn08w==", "peerDependencies": { "react": "*", - "react-native": ">=0.66.0" + "react-native": "*" } }, "node_modules/react-native-qrcode-svg": { @@ -39823,8 +39975,9 @@ "license": "MIT" }, "node_modules/react-native-webview": { - "version": "13.6.3", - "license": "MIT", + "version": "13.6.4", + "resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-13.6.4.tgz", + "integrity": "sha512-AdgmaMBHPcyERTvng9eSGgHX6AleyUlSusWAxngSOSdiYGgHW81T6C5A8j/ImJAF9oZg0bQDxp43Hu56tzENZQ==", "dependencies": { "escape-string-regexp": "2.0.0", "invariant": "2.2.4" @@ -40856,7 +41009,8 @@ }, "node_modules/readline": { "version": "1.3.0", - "license": "BSD" + "resolved": "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz", + "integrity": "sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==" }, "node_modules/reassure": { "version": "0.10.1", @@ -40870,7 +41024,8 @@ }, "node_modules/recast": { "version": "0.21.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.21.5.tgz", + "integrity": "sha512-hjMmLaUXAm1hIuTqOdeYObMslq/q+Xff6QE3Y2P+uoHAg2nmVlLBps2hzh1UJDdMtDTMXOFewK6ky51JQIeECg==", "dependencies": { "ast-types": "0.15.2", "esprima": "~4.0.0", @@ -40883,7 +41038,8 @@ }, "node_modules/recast/node_modules/ast-types": { "version": "0.15.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.15.2.tgz", + "integrity": "sha512-c27loCv9QkZinsa5ProX751khO9DJl/AcB5c2KNtA6NRvHKS0PgLfcftz72KVq504vB0Gku5s2kUZzDBvQWvHg==", "dependencies": { "tslib": "^2.0.1" }, @@ -41427,7 +41583,8 @@ }, "node_modules/restore-cursor": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" @@ -43127,7 +43284,8 @@ }, "node_modules/strnum": { "version": "1.0.5", - "license": "MIT" + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" }, "node_modules/structured-headers": { "version": "0.4.1", @@ -43205,7 +43363,8 @@ }, "node_modules/sudo-prompt": { "version": "9.2.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz", + "integrity": "sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==" }, "node_modules/sumchecker": { "version": "3.0.1", @@ -43565,7 +43724,8 @@ }, "node_modules/temp": { "version": "0.8.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz", + "integrity": "sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==", "dependencies": { "rimraf": "~2.6.2" }, @@ -43604,7 +43764,8 @@ }, "node_modules/temp/node_modules/rimraf": { "version": "2.6.3", - "license": "ISC", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dependencies": { "glob": "^7.1.3" }, diff --git a/package.json b/package.json index e0a2f10f9cf8..0e988576aaa4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.4.61-0", + "version": "1.4.61-5", "author": "Expensify, Inc.", "homepage": "https://new.expensify.com", "description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.", @@ -62,7 +62,7 @@ }, "dependencies": { "@dotlottie/react-player": "^1.6.3", - "@expensify/react-native-live-markdown": "0.1.38", + "@expensify/react-native-live-markdown": "github:Expensify/react-native-live-markdown#f762be6fa832419dbbecb8a0cf64bf7dce18545b", "@expo/metro-runtime": "~3.1.1", "@formatjs/intl-datetimeformat": "^6.10.0", "@formatjs/intl-listformat": "^7.2.2", @@ -84,13 +84,13 @@ "@react-native-firebase/crashlytics": "^12.3.0", "@react-native-firebase/perf": "^12.3.0", "@react-native-google-signin/google-signin": "^10.0.1", - "@react-native-picker/picker": "2.5.1", + "@react-native-picker/picker": "2.6.1", "@react-navigation/material-top-tabs": "^6.6.3", "@react-navigation/native": "6.1.12", "@react-navigation/stack": "6.3.16", "@react-ng/bounds-observer": "^0.2.1", - "@rnmapbox/maps": "^10.1.11", - "@shopify/flash-list": "^1.6.3", + "@rnmapbox/maps": "10.1.11", + "@shopify/flash-list": "1.6.3", "@ua/react-native-airship": "^15.3.1", "@vue/preload-webpack-plugin": "^2.0.0", "awesome-phonenumber": "^5.4.0", @@ -111,7 +111,7 @@ "jest-expo": "50.0.1", "jest-when": "^3.5.2", "lodash": "4.17.21", - "lottie-react-native": "6.4.1", + "lottie-react-native": "6.5.1", "mapbox-gl": "^2.15.0", "onfido-sdk-ui": "14.15.0", "process": "^0.11.10", @@ -125,13 +125,13 @@ "react-error-boundary": "^4.0.11", "react-fast-pdf": "^1.0.6", "react-map-gl": "^7.1.3", - "react-native": "0.73.2", + "react-native": "0.73.4", "react-native-android-location-enabler": "^2.0.1", "react-native-blob-util": "0.19.4", "react-native-collapsible": "^1.6.1", - "react-native-config": "^1.4.5", + "react-native-config": "1.5.0", "react-native-dev-menu": "^4.1.1", - "react-native-device-info": "^10.3.0", + "react-native-device-info": "10.3.1", "react-native-document-picker": "^9.1.1", "react-native-draggable-flatlist": "^4.0.1", "react-native-fs": "^2.20.0", @@ -140,18 +140,18 @@ "react-native-haptic-feedback": "^2.2.0", "react-native-image-picker": "^7.0.3", "react-native-image-size": "git+https://github.com/Expensify/react-native-image-size#bf3ad41a61c4f6f80ed4d497599ef5247a2dd002", - "react-native-key-command": "^1.0.6", + "react-native-key-command": "^1.0.8", "react-native-launch-arguments": "^4.0.2", "react-native-linear-gradient": "^2.8.1", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", "react-native-onyx": "2.0.23", - "react-native-pager-view": "6.2.2", + "react-native-pager-view": "6.2.3", "react-native-pdf": "6.7.3", "react-native-performance": "^5.1.0", "react-native-permissions": "^3.9.3", "react-native-picker-select": "git+https://github.com/Expensify/react-native-picker-select.git#da50d2c5c54e268499047f9cc98b8df4196c1ddf", - "react-native-plaid-link-sdk": "10.8.0", + "react-native-plaid-link-sdk": "11.5.0", "react-native-qrcode-svg": "^6.2.0", "react-native-quick-sqlite": "^8.0.0-beta.2", "react-native-reanimated": "^3.7.2", @@ -169,7 +169,7 @@ "react-native-web": "^0.19.9", "react-native-web-linear-gradient": "^1.1.2", "react-native-web-sound": "^0.1.3", - "react-native-webview": "13.6.3", + "react-native-webview": "13.6.4", "react-pdf": "7.3.3", "react-plaid-link": "3.3.2", "react-web-config": "^1.0.0", @@ -201,8 +201,8 @@ "@octokit/plugin-paginate-rest": "3.1.0", "@octokit/plugin-throttling": "4.1.0", "@react-native-community/eslint-config": "3.0.0", - "@react-native/babel-preset": "^0.73.19", - "@react-native/metro-config": "^0.73.3", + "@react-native/babel-preset": "^0.73.21", + "@react-native/metro-config": "^0.73.5", "@react-navigation/devtools": "^6.0.10", "@storybook/addon-a11y": "^6.5.9", "@storybook/addon-essentials": "^7.0.0", @@ -298,7 +298,7 @@ "yaml": "^2.2.1" }, "overrides": { - "react-native": "$react-native", + "react-native": "0.73.4", "expo": "$expo", "react-native-svg": "$react-native-svg" }, diff --git a/patches/@onfido+react-native-sdk+10.6.0.patch b/patches/@onfido+react-native-sdk+10.6.0.patch index d61f4ab454c9..90e73ec197a1 100644 --- a/patches/@onfido+react-native-sdk+10.6.0.patch +++ b/patches/@onfido+react-native-sdk+10.6.0.patch @@ -1,12 +1,403 @@ +diff --git a/node_modules/@onfido/react-native-sdk/.yarnrc b/node_modules/@onfido/react-native-sdk/.yarnrc +new file mode 100644 +index 0000000..08b5d85 +--- /dev/null ++++ b/node_modules/@onfido/react-native-sdk/.yarnrc +@@ -0,0 +1 @@ ++registry "https://registry.npmjs.org" +\ No newline at end of file +diff --git a/node_modules/@onfido/react-native-sdk/CHANGELOG.md b/node_modules/@onfido/react-native-sdk/CHANGELOG.md +index 6491cb5..398e154 100644 +--- a/node_modules/@onfido/react-native-sdk/CHANGELOG.md ++++ b/node_modules/@onfido/react-native-sdk/CHANGELOG.md +@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. + The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) + and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + ++## [10.7.0] - 2024-02-01 ++ ++### Changed: ++ ++- Updated underlying Onfido native SDK version: ++ - iOS 29.7.x (up from 29.6.x) ++ - Android 19.6.x (up from 19.5.x) ++ ++### Fixed: ++ ++- Fixed the behaviour when using the configuration option `allowedDocumentTypes`: ++ - The order of steps (and SDK screens) has now been aligned with the native SDKs, for both Android and iOS. The order to be used is: Welcome - Document capture - Proof of address - Face capture - Final screen. ++ - The Welcome screen now correctly takes into account the `welcome` (boolean) flag in the configuration. ++ + ## [10.6.0] - 2023-12-11 + + ### Changed: +diff --git a/node_modules/@onfido/react-native-sdk/README.md b/node_modules/@onfido/react-native-sdk/README.md +index 03fb8da..0159a6f 100644 +--- a/node_modules/@onfido/react-native-sdk/README.md ++++ b/node_modules/@onfido/react-native-sdk/README.md +@@ -30,9 +30,7 @@ + - [Introduction](#introduction) + - [Implementation](#implementation) + - [User data](#user-data) +-- [Creating checks](#creating-checks) +- - [1. Obtaining an API token](#1-obtaining-an-api-token-1) +- - [2. Creating a check](#2-creating-a-check) ++- [Generating verification reports](#generating-verification-reports) + - [Theme Customization](#theme-customization) + - [Android](#android-1) + - [iOS](#ios-1) +@@ -57,7 +55,7 @@ This SDK provides a drop-in set of screens and tools for react native applicatio + > + > If you are integrating using Onfido Studio please see our [Studio integration guide](ONFIDO_STUDIO.md) + +-\* **Note**: the SDK is only responsible for capturing and uploading photos/videos. You still need to access the [Onfido API](https://documentation.onfido.com/) to create and manage checks. ++\* **Note**: The SDK is only responsible for capturing and uploading document photos, live selfies, live videos and motion captures. You still need to access the [Onfido API](https://documentation.onfido.com/) to manage applicants and [Onfido Studio](https://developers.onfido.com/guide/onfido-studio-product) to build verification workflows. + + * Supports iOS 11+ + * Supports Xcode 13+ +@@ -600,34 +598,17 @@ let byteArrayString = mediaResult.fileData; + let base64FileData = Onfido.byteArrayStringToBase64(byteArrayString); + ``` + +-## Creating checks ++## Generating verification reports + +-As the SDK is only responsible for capturing and uploading photos/videos, you would need to start a check on your backend server using the [Onfido API](https://documentation.onfido.com/). ++While the SDK is responsible for capturing and uploading document photos, live selfies, live videos and motion captures, identity verification reports themselves are generated based on workflows created using [Onfido Studio](https://developers.onfido.com/guide/onfido-studio-product). + +-### 1. Obtaining an API token +- +-All API requests must be made with an API token included in the request headers. You can find your API token (not to be mistaken with the mobile SDK token) inside your [Onfido Dashboard](https://onfido.com/dashboard/api/tokens). +- +-Refer to the [Authentication](https://documentation.onfido.com/#authentication) section in the API documentation for details. For testing, you should be using the sandbox, and not the live, token. +- +-### 2. Creating a check +- +-You will need to create a check by making a request to the [create check endpoint](https://documentation.onfido.com/#create-check), using the applicant id. If you are just verifying a document, you only have to include a [document report](https://documentation.onfido.com/#document-report) as part of the check. On the other hand, if you are verifying a document and a face photo/live video, you will also have to include a [facial similarity report](https://documentation.onfido.com/#facial-similarity-report) with the corresponding values: `facial_similarity_photo` for the photo option and `facial_similarity_video` for the video option. +- +-```shell +-$ curl https://api.onfido.com/v3/checks \ +- -H 'Authorization: Token token=YOUR_API_TOKEN' \ +- -d 'applicant_id=YOUR_APPLICANT_ID' \ +- -d 'report_names=[document,facial_similarity_photo]' +-``` +- +-**Note**: You can also submit the POST request in JSON format. ++For a step-by-step walkthrough of creating an identity verification using Onfido Studio and our SDKs, please refer to our [Quick Start Guide](https://developers.onfido.com/guide/quick-start-guide). + +-You will receive a response containing the check id instantly. As document and facial similarity reports do not always return actual [results](https://documentation.onfido.com/#results) straightaway, you need to set up a webhook to get notified when the results are ready. ++Alternatively, you can [create checks](https://documentation.onfido.com/#create-check) and [retrieve report results](https://documentation.onfido.com/#retrieve-report) manually using the Onfido API. You can also configure [webhooks](https://documentation.onfido.com/#webhooks) to be notified asynchronously of report results. + +-Finally, as you are testing with the sandbox token, please be aware that the results are pre-determined. You can learn more about sandbox responses [here](https://documentation.onfido.com/#pre-determined-responses). ++**Note**: If you're using API v2 for API calls, please check out [API v2 to v3 migration guide](https://developers.onfido.com/guide/v2-to-v3-migration-guide#checks-in-api-v3) to understand which changes need to be applied before starting to use API v3. + +-**Note**: If you're using API v2, please check out [API v2 to v3 migration guide](https://developers.onfido.com/guide/v2-to-v3-migration-guide#checks-in-api-v3) to understand which changes need to be applied before starting to use API v3. ++**Note**: If you are testing with a sandbox token, please be aware that report results are pre-determined. You can learn more about sandbox responses [here](https://documentation.onfido.com/#pre-determined-responses). + + ## Theme Customization + +diff --git a/node_modules/@onfido/react-native-sdk/android/.project b/node_modules/@onfido/react-native-sdk/android/.project +deleted file mode 100644 +index 357b6fc..0000000 +--- a/node_modules/@onfido/react-native-sdk/android/.project ++++ /dev/null +@@ -1,34 +0,0 @@ +- +- +- android +- Project android created by Buildship. +- +- +- +- +- org.eclipse.jdt.core.javabuilder +- +- +- +- +- org.eclipse.buildship.core.gradleprojectbuilder +- +- +- +- +- +- org.eclipse.jdt.core.javanature +- org.eclipse.buildship.core.gradleprojectnature +- +- +- +- 1684767677408 +- +- 30 +- +- org.eclipse.core.resources.regexFilterMatcher +- node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ +- +- +- +- +diff --git a/node_modules/@onfido/react-native-sdk/android/bin/README.md b/node_modules/@onfido/react-native-sdk/android/bin/README.md +deleted file mode 100644 +index 6746135..0000000 +--- a/node_modules/@onfido/react-native-sdk/android/bin/README.md ++++ /dev/null +@@ -1,33 +0,0 @@ +-README +-====== +- +-If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm: +- +-1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed +-2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK +-``` +-ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle +-sdk.dir=/Users/{username}/Library/Android/sdk +-``` +-3. Run `./gradlew publishToMavenLocal` +-4. Go to the `~/.m2` directory. Verify that the pom file was generated successfully with the correct version. +- +- +-How to quickly develop the Android Java code using the TestApp: +-====== +-React Native's "Fast Refresh" feature will not update Java code as you make changes, and reinstalling all npm packages is slow. Instead, you can follow this process to recompile only the Java code when you make changes. +- +-In one console, from the `TestApp/` directory, run the following commands. It may take 2 or more minutes to build. You only need to run this once: leave it running in the background while you develop. +-```shell +-rm -rf node_modules/ && yarn && cd .. && watchman watch-del-all && npx react-native start --reset-cache +-``` +- +-In a second console, from the `TestApp/` directory, update the Android package and launch the virtual device. Run this each time you change Android code. +-```shell +-rsync -av ../ node_modules/@onfido/react-native-sdk/ --exclude=TestApp --exclude=SampleApp --exclude=node_modules --exclude=android/build --exclude=.git && npx react-native run-android +-``` +- +-How to run the tests +-====== +-1. Run "yarn" or "npm install" from the project root. This will download the React Native Facebook bridge library +-2. Run "./gradlew test" from the "/android" directory. +diff --git a/node_modules/@onfido/react-native-sdk/android/bin/build.gradle b/node_modules/@onfido/react-native-sdk/android/bin/build.gradle +deleted file mode 100644 +index d2810b6..0000000 +--- a/node_modules/@onfido/react-native-sdk/android/bin/build.gradle ++++ /dev/null +@@ -1,154 +0,0 @@ +-// android/build.gradle +- +-// based on: +-// +-// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle +-// original location: +-// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle +-// +-// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle +-// original location: +-// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle +- +-def DEFAULT_COMPILE_SDK_VERSION = 32 +-def DEFAULT_MIN_SDK_VERSION = 21 +-def DEFAULT_TARGET_SDK_VERSION = 31 +-def NATIVE_ANDROID_SDK_VERSION = "16.3.+" +- +-def safeExtGet(prop, fallback) { +- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +-} +- +-def androidExclusion = [ +- '**/databinding/**/*.*', +- '**/android/databinding/*Binding.*', +- '**/BR.*', +- '**/R.*', +- '**/R$*.*', +- '**/BuildConfig.*', +- '**/Manifest*.*', +- '**/*_MembersInjector.*', +- '**/Dagger*Component.*', +- '**/Dagger*Component$Builder.*', +- '**/*Module_*Factory.*', +- '**/*Fragment*.*', +- '**/*Activity*.*', +- '**/*Adapter*.*', +- '**/*ViewPager*.*', +- '**/*ViewHolder*.*', +- '**/*Module*.*' +-] +- +-buildscript { +- // The Android Gradle plugin is only required when opening the android folder stand-alone. +- // This avoids unnecessary downloads and potential conflicts when the library is included as a +- // module dependency in an application project. +- // ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies +- if (project == rootProject) { +- repositories { +- mavenCentral() +- google() +- jcenter() +- } +- dependencies { +- classpath 'com.android.tools.build:gradle:7.4.2' +- } +- } +-} +- +-apply plugin: 'com.android.library' +-apply plugin: 'maven-publish' +-apply plugin: 'jacoco' +- +-apply from: 'publish.gradle' +- +-android { +- compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) +- defaultConfig { +- minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION) +- targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION) +- versionCode 1 +- versionName "1.0" +- multiDexEnabled true +- consumerProguardFiles 'proguard-rules.pro' +- } +- lintOptions { +- abortOnError false +- } +- +- buildFeatures { +- buildConfig = false +- } +- +- compileOptions { +- sourceCompatibility JavaVersion.VERSION_1_8 +- targetCompatibility JavaVersion.VERSION_1_8 +- } +-} +- +-repositories { +- // ref: https://www.baeldung.com/maven-local-repository +- mavenLocal() +- mavenCentral() +- maven { +- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm +- url "$rootDir/../node_modules/react-native/android" +- } +- maven { +- // Android JSC is installed from npm +- url "$rootDir/../node_modules/jsc-android/dist" +- } +- google() +- jcenter() +-} +- +-dependencies { +- //noinspection GradleDynamicVersion +- implementation 'com.facebook.react:react-native:+' // From node_modules +- implementation "com.onfido.sdk.capture:onfido-capture-sdk:$NATIVE_ANDROID_SDK_VERSION" +- implementation "com.onfido.sdk:onfido-workflow:$NATIVE_ANDROID_SDK_VERSION" +- implementation "com.squareup.okhttp3:logging-interceptor:3.14.9" +- implementation "com.squareup.okhttp3:okhttp:3.14.9" +- // Fix for crash due to 'java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;'' +- implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' +- +- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1' +- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1' +- testCompileOnly 'junit:junit:4.13.2' +- testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.10.1' +- testImplementation 'org.mockito:mockito-core:2.+' +- testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.9' +- testImplementation group: 'org.powermock', name: 'powermock-module-junit4', version: '2.0.9' +-} +- +-afterEvaluate { project -> +- android.libraryVariants.all { variant -> +- def name = variant.name.capitalize() +- def javaCompileTask = variant.javaCompileProvider.get() +- +- task "jar${name}"(type: Jar, dependsOn: javaCompileTask) { +- from javaCompileTask.destinationDir +- } +- } +- +- task codeCoverageReport(type: JacocoReport, dependsOn: 'testDebugUnitTest') { +- group = "Reporting" +- description = "Generate Jacoco coverage reports after running tests." +- reports { +- xml.enabled = true +- html.enabled = true +- csv.enabled = true +- } +- classDirectories.setFrom(fileTree( +- dir: 'build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/onfido/reactnative/sdk', +- excludes: androidExclusion +- )) +- sourceDirectories.setFrom(files('src/main/java/com/onfido/reactnative/sdk')) +- executionData.setFrom(files('build/jacoco/testDebugUnitTest.exec')) +- } +- +- task getCoverage(type: Exec, dependsOn: 'codeCoverageReport') { +- group = "Reporting" +- commandLine "open", "$buildDir/reports/jacoco/codeCoverageReport/html/index.html" +- } +-} diff --git a/node_modules/@onfido/react-native-sdk/android/build.gradle b/node_modules/@onfido/react-native-sdk/android/build.gradle -index 33a4229..1720bef 100644 +index 33a4229..895bfd7 100644 --- a/node_modules/@onfido/react-native-sdk/android/build.gradle +++ b/node_modules/@onfido/react-native-sdk/android/build.gradle -@@ -84,6 +84,13 @@ android { +@@ -13,12 +13,20 @@ + def DEFAULT_COMPILE_SDK_VERSION = 33 + def DEFAULT_MIN_SDK_VERSION = 21 + def DEFAULT_TARGET_SDK_VERSION = 31 +-def NATIVE_ANDROID_SDK_VERSION = "19.5.+" ++def NATIVE_ANDROID_SDK_VERSION = "19.6.+" + + def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback + } + ++def isNewArchitectureEnabled() { ++ // To opt-in for the New Architecture, you can either: ++ // - Set `newArchEnabled` to true inside the `gradle.properties` file ++ // - Invoke gradle with `-newArchEnabled=true` ++ // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` ++ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" ++} ++ + def androidExclusion = [ + '**/databinding/**/*.*', + '**/android/databinding/*Binding.*', +@@ -60,10 +68,24 @@ apply plugin: 'com.android.library' + apply plugin: 'maven-publish' + apply plugin: 'jacoco' + ++if (isNewArchitectureEnabled()) { ++ apply plugin: "com.facebook.react" ++} ++ + apply from: 'publish.gradle' + + android { + compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) ++ ++ // Used to override the NDK path/version on internal CI or by allowing ++ // users to customize the NDK path/version from their root project (e.g. for M1 support) ++ if (rootProject.hasProperty("ndkPath")) { ++ ndkPath rootProject.ext.ndkPath ++ } ++ if (rootProject.hasProperty("ndkVersion")) { ++ ndkVersion rootProject.ext.ndkVersion ++ } ++ + defaultConfig { + minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION) + targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION) +@@ -84,6 +106,20 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + ++ sourceSets.main { ++ java { ++ if (!isNewArchitectureEnabled()) { ++ srcDirs += 'src/paper/java' ++ } ++ } ++ } + publishing { + singleVariant('release') { + withSourcesJar() @@ -16,3 +407,902 @@ index 33a4229..1720bef 100644 } repositories { +@@ -103,8 +139,8 @@ repositories { + } + + dependencies { +- //noinspection GradleDynamicVersion +- implementation 'com.facebook.react:react-native:+' // From node_modules ++ implementation 'com.facebook.react:react-native:+' // from node_modules ++ + implementation "com.onfido.sdk.capture:onfido-capture-sdk:$NATIVE_ANDROID_SDK_VERSION" + implementation "com.onfido.sdk:onfido-workflow:$NATIVE_ANDROID_SDK_VERSION" + implementation "com.squareup.okhttp3:logging-interceptor:3.14.9" +diff --git a/node_modules/@onfido/react-native-sdk/android/src/main/AndroidManifest.xml b/node_modules/@onfido/react-native-sdk/android/src/main/AndroidManifest.xml +index 42ad0ca..903b090 100644 +--- a/node_modules/@onfido/react-native-sdk/android/src/main/AndroidManifest.xml ++++ b/node_modules/@onfido/react-native-sdk/android/src/main/AndroidManifest.xml +@@ -8,6 +8,6 @@ + + ++ android:value="10.7.0" /> + + +diff --git a/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkModule.java b/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkModule.java +index 93407a2..13f84fd 100644 +--- a/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkModule.java ++++ b/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkModule.java +@@ -3,14 +3,13 @@ package com.onfido.reactnative.sdk; + import android.annotation.SuppressLint; + import android.app.Activity; + +-import com.facebook.react.bridge.NoSuchKeyException; + import com.facebook.react.bridge.Promise; + import com.facebook.react.bridge.ReactApplicationContext; + import com.facebook.react.bridge.ReactContextBaseJavaModule; + import com.facebook.react.bridge.ReactMethod; + import com.facebook.react.bridge.ReadableArray; + import com.facebook.react.bridge.ReadableMap; +-import com.facebook.react.bridge.UnexpectedNativeTypeException; ++import com.facebook.react.module.annotations.ReactModule; + import com.facebook.react.bridge.WritableMap; + import com.facebook.react.modules.core.DeviceEventManagerModule; + import com.onfido.android.sdk.capture.DocumentType; +@@ -23,7 +22,6 @@ import com.onfido.android.sdk.capture.errors.EnterpriseFeatureNotEnabledExceptio + import com.onfido.android.sdk.capture.errors.EnterpriseFeaturesInvalidLogoCobrandingException; + import com.onfido.android.sdk.capture.ui.camera.face.FaceCaptureStep; + import com.onfido.android.sdk.capture.ui.camera.face.FaceCaptureVariantPhoto; +-import com.onfido.android.sdk.capture.ui.camera.face.FaceCaptureVariantVideo; + import com.onfido.android.sdk.capture.ui.camera.face.stepbuilder.FaceCaptureStepBuilder; + import com.onfido.android.sdk.capture.ui.camera.face.stepbuilder.PhotoCaptureStepBuilder; + import com.onfido.android.sdk.capture.ui.camera.face.stepbuilder.VideoCaptureStepBuilder; +@@ -43,7 +41,10 @@ enum CallbackType { + MEDIA + } + +-public class OnfidoSdkModule extends ReactContextBaseJavaModule { ++@ReactModule(name = OnfidoSdkModule.NAME) ++public class OnfidoSdkModule extends NativeOnfidoModuleSpec { ++ ++ public static final String NAME = "RNOnfidoSdk"; + + /* package */ final Onfido client; + private Promise currentPromise = null; +@@ -70,7 +71,7 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + + @Override + public String getName() { +- return "OnfidoSdk"; ++ return NAME; + } + + /** +@@ -81,6 +82,7 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + } + + @ReactMethod ++ @Override + public void start(final ReadableMap config, final Promise promise) { + + setPromise(promise); +@@ -147,7 +149,7 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + } + + OnfidoTheme onfidoTheme = getThemeFromConfig(config); +- if(onfidoTheme != null){ ++ if (onfidoTheme != null) { + onfidoConfigBuilder.withTheme(onfidoTheme); + } + +@@ -184,7 +186,7 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + } + + OnfidoTheme onfidoTheme = getThemeFromConfig(config); +- if(onfidoTheme != null){ ++ if (onfidoTheme != null) { + onfidoConfigBuilder.withTheme(onfidoTheme); + } + +@@ -237,9 +239,9 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + return config.hasKey(key) ? config.getString(key) : ""; + } + +- public static OnfidoTheme getThemeFromConfig(final ReadableMap config) throws Exception{ ++ public static OnfidoTheme getThemeFromConfig(final ReadableMap config) throws Exception { + String themeString = config.getString("theme"); +- if(themeString == null){ ++ if (themeString == null) { + return null; + } + OnfidoTheme onfidoTheme; +@@ -252,12 +254,18 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + return onfidoTheme; + } + ++ /* ++ (!) Please note that flow steps must be presented in a specific order, one which is also ++ implemented in the native SDKs, as well as in the iOS RN SDK. ++ ++ As per the Product indications in https://onfido.atlassian.net/browse/SDK-2390, this order ++ should be: Welcome->Doc->POA->Bio ++ */ + public static FlowStep[] getFlowStepsFromConfig( + final ReadableMap config, + OnfidoConfig.Builder configBuilder + ) throws Exception { + try { +- + final ReadableMap flowSteps = config.getMap("flowSteps"); + + final boolean welcomePageIsIncluded; +@@ -268,11 +276,12 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + } + + final boolean proofOfAddress; +- if(flowSteps.hasKey("proofOfAddress")){ ++ if (flowSteps.hasKey("proofOfAddress")) { + proofOfAddress = flowSteps.getBoolean("proofOfAddress"); +- }else{ ++ } else { + proofOfAddress = false; + } ++ + final List flowStepList = new ArrayList<>(); + + if (welcomePageIsIncluded) { +@@ -283,6 +292,10 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + extractCaptureDocumentStep(flowSteps, flowStepList, configBuilder); + } + ++ if (proofOfAddress) { ++ flowStepList.add(FlowStep.PROOF_OF_ADDRESS); ++ } ++ + final boolean captureFaceEnabled = flowSteps.hasKey("captureFace"); + final ReadableMap captureFace = captureFaceEnabled ? flowSteps.getMap("captureFace") : null; + +@@ -301,7 +314,7 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + flowStepList.add(faceStepFromMotionDefinition(captureFace)); + break; + default: +- throw new Exception("Invalid face capture type. \"type\" must be VIDEO or PHOTO."); ++ throw new Exception("Invalid face capture type. \"type\" must be VIDEO or PHOTO."); + } + } else { + // Default face capture type is photo. +@@ -309,12 +322,7 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + } + } + +- if(proofOfAddress){ +- flowStepList.add(FlowStep.PROOF_OF_ADDRESS); +- } +- + final FlowStep[] flowStepsWithOptions = flowStepList.toArray(new FlowStep[0]); +- + return flowStepsWithOptions; + } catch (final Exception e) { + e.printStackTrace(); +@@ -328,29 +336,10 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + List flowStepList, + OnfidoConfig.Builder configBuilder + ) throws Exception { +- ReadableMap captureDocument = null; +- Boolean captureDocumentBoolean = null; +- +- // ReadableMap does not have a way to get multi-typed values without throwing exceptions. +- try { +- captureDocumentBoolean = flowSteps.getBoolean("captureDocument"); +- } catch (final NoSuchKeyException | +- ClassCastException | +- UnexpectedNativeTypeException notFoundException) { +- captureDocument = flowSteps.getMap("captureDocument"); +- } +- +- if (captureDocumentBoolean != null) { +- if (captureDocumentBoolean) { +- flowStepList.add(FlowStep.CAPTURE_DOCUMENT); +- } +- return; +- } +- ++ ReadableMap captureDocument = flowSteps.getMap("captureDocument"); + if (captureDocument == null) { + return; + } +- + extractDocumentCaptureDetails(captureDocument, flowStepList, configBuilder); + } + +@@ -361,35 +350,46 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + ) throws Exception { + final boolean docTypeExists = captureDocument.hasKey("docType"); + final boolean countryCodeExists = captureDocument.hasKey("alpha2CountryCode"); +- final boolean allowedDocumentTypes = captureDocument.hasKey("allowedDocumentTypes"); ++ final boolean withAllowedDocumentTypes = captureDocument.hasKey("allowedDocumentTypes"); + +- if (allowedDocumentTypes && countryCodeExists && docTypeExists) { ++ // Validation: incorrect config - 2 filtering ways provided ++ if (withAllowedDocumentTypes && countryCodeExists && docTypeExists) { + throw new IllegalArgumentException("We can either filter the documents on DocumentSelection screen, or skip the selection and go directly to capture"); + } + +- if (!docTypeExists && !countryCodeExists && !allowedDocumentTypes) { ++ // Case 1: no filtering provided => showing general Doc Capture ++ if (!docTypeExists && !countryCodeExists && !withAllowedDocumentTypes) { + flowStepList.add(FlowStep.CAPTURE_DOCUMENT); + return; + } + ++ // Case 2: filtering for one document, one country + if (docTypeExists && countryCodeExists) { + extractDocTypeAndCountryForCaptureStep(captureDocument, flowStepList); + return; + } +- if (allowedDocumentTypes) { ++ ++ // Case 3: filtering for multiple documents ++ if (withAllowedDocumentTypes) { + extractAllowedDocumentTypes(captureDocument, configBuilder); ++ flowStepList.add(FlowStep.CAPTURE_DOCUMENT); + return; + } + + throw new Exception("For countryCode and docType: both must be specified, or both must be omitted."); + } + +- private static void extractAllowedDocumentTypes(ReadableMap captureDocument, OnfidoConfig.Builder configBuilder) { +- ReadableArray array = captureDocument.getArray("allowedDocumentTypes"); ++ private static void extractAllowedDocumentTypes( ++ ReadableMap captureDocument, ++ OnfidoConfig.Builder configBuilder ++ ) { ++ ReadableArray documentTypes = captureDocument.getArray("allowedDocumentTypes"); + ArrayList types = new ArrayList<>(); + +- for (int i = 0; i < array.size(); i++) { +- types.add(DocumentType.valueOf(array.getString(i))); ++ if (documentTypes != null) { ++ for (int i = 0; i < documentTypes.size(); i++) { ++ types.add(DocumentType.valueOf(documentTypes.getString(i))); ++ } + } + configBuilder.withAllowedDocumentTypes(types); + } +@@ -487,14 +487,14 @@ public class OnfidoSdkModule extends ReactContextBaseJavaModule { + } + + @ReactMethod +- public void removeListeners(int type) { ++ public void removeListeners(double type) { + // Keep: Required for RN build in the Event Emitter Calls + } + + private void sendEvent(String name, WritableMap map) { + getReactApplicationContext() +- .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class) +- .emit(name, map); ++ .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class) ++ .emit(name, map); + } + + //region Media +diff --git a/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkPackage.java b/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkPackage.java +index 35c0ee6..16469e2 100644 +--- a/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkPackage.java ++++ b/node_modules/@onfido/react-native-sdk/android/src/main/java/com/onfido/reactnative/sdk/OnfidoSdkPackage.java +@@ -1,23 +1,90 @@ + package com.onfido.reactnative.sdk; + ++import androidx.annotation.Nullable; ++ + import java.util.Arrays; + import java.util.Collections; ++import java.util.HashMap; + import java.util.List; ++import java.util.Map; + +-import com.facebook.react.ReactPackage; ++import com.facebook.react.TurboReactPackage; + import com.facebook.react.bridge.NativeModule; + import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.module.annotations.ReactModule; ++import com.facebook.react.module.annotations.ReactModuleList; ++import com.facebook.react.module.model.ReactModuleInfo; ++import com.facebook.react.module.model.ReactModuleInfoProvider; ++import com.facebook.react.turbomodule.core.interfaces.TurboModule; + import com.facebook.react.uimanager.ViewManager; +-import com.facebook.react.bridge.JavaScriptModule; + +-public class OnfidoSdkPackage implements ReactPackage { ++@ReactModuleList( ++ nativeModules = { ++ OnfidoSdkModule.class ++ } ++) ++public class OnfidoSdkPackage extends TurboReactPackage { + @Override + public List createNativeModules(ReactApplicationContext reactContext) { + return Arrays.asList(new OnfidoSdkModule(reactContext)); + } + ++ @Nullable ++ @Override ++ public NativeModule getModule(String name, ReactApplicationContext reactApplicationContext) { ++ switch (name) { ++ case OnfidoSdkModule.NAME: ++ return new OnfidoSdkModule(reactApplicationContext); ++ default: ++ return null; ++ } ++ } ++ + @Override + public List createViewManagers(ReactApplicationContext reactContext) { + return Collections.emptyList(); + } ++ ++ @Override ++ public ReactModuleInfoProvider getReactModuleInfoProvider() { ++ try { ++ Class reactModuleInfoProviderClass = ++ Class.forName("com.onfido.reactnative.sdk.OnfidoSdkPackage$$ReactModuleInfoProvider"); ++ return (ReactModuleInfoProvider) reactModuleInfoProviderClass.newInstance(); ++ } catch (ClassNotFoundException e) { ++ // ReactModuleSpecProcessor does not run at build-time. Create this ReactModuleInfoProvider by ++ // hand. ++ return new ReactModuleInfoProvider() { ++ @Override ++ public Map getReactModuleInfos() { ++ final Map reactModuleInfoMap = new HashMap<>(); ++ ++ Class[] moduleList = ++ new Class[] { ++ OnfidoSdkModule.class, ++ }; ++ ++ for (Class moduleClass : moduleList) { ++ ReactModule reactModule = moduleClass.getAnnotation(ReactModule.class); ++ ++ reactModuleInfoMap.put( ++ reactModule.name(), ++ new ReactModuleInfo( ++ reactModule.name(), ++ moduleClass.getName(), ++ reactModule.canOverrideExistingModule(), ++ reactModule.needsEagerInit(), ++ reactModule.hasConstants(), ++ reactModule.isCxxModule(), ++ TurboModule.class.isAssignableFrom(moduleClass))); ++ } ++ ++ return reactModuleInfoMap; ++ } ++ }; ++ } catch (InstantiationException | IllegalAccessException e) { ++ throw new RuntimeException( ++ "No ReactModuleInfoProvider for com.onfido.reactnative.sdk.OnfidoSdkPackage$$ReactModuleInfoProvider", e); ++ } ++ } + } +diff --git a/node_modules/@onfido/react-native-sdk/android/src/paper/java/com/onfido/reactnative/sdk/NativeOnfidoModuleSpec.java b/node_modules/@onfido/react-native-sdk/android/src/paper/java/com/onfido/reactnative/sdk/NativeOnfidoModuleSpec.java +new file mode 100644 +index 0000000..16e880e +--- /dev/null ++++ b/node_modules/@onfido/react-native-sdk/android/src/paper/java/com/onfido/reactnative/sdk/NativeOnfidoModuleSpec.java +@@ -0,0 +1,52 @@ ++ ++/** ++ * 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: GenerateModuleJavaSpec.js ++ * ++ * @nolint ++ */ ++ ++package com.onfido.reactnative.sdk; ++ ++import com.facebook.proguard.annotations.DoNotStrip; ++import com.facebook.react.bridge.Promise; ++import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.bridge.ReactContextBaseJavaModule; ++import com.facebook.react.bridge.ReactMethod; ++import com.facebook.react.bridge.ReactModuleWithSpec; ++import com.facebook.react.bridge.ReadableMap; ++import com.facebook.react.turbomodule.core.interfaces.TurboModule; ++import javax.annotation.Nonnull; ++ ++public abstract class NativeOnfidoModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule { ++ public static final String NAME = "RNOnfidoSdk"; ++ ++ public NativeOnfidoModuleSpec(ReactApplicationContext reactContext) { ++ super(reactContext); ++ } ++ ++ @Override ++ public @Nonnull String getName() { ++ return NAME; ++ } ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void start(ReadableMap config, Promise promise); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void withMediaCallbacksEnabled(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void addListener(String eventName); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void removeListeners(double count); ++} +diff --git a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk-Bridging-Header.h b/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk-Bridging-Header.h +index ebf12f6..9acdb99 100644 +--- a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk-Bridging-Header.h ++++ b/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk-Bridging-Header.h +@@ -3,4 +3,4 @@ + // + + #import +-#import ++#import "PluginMetadata.h" +diff --git a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.m b/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.m +deleted file mode 100644 +index 328de71..0000000 +--- a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.m ++++ /dev/null +@@ -1,14 +0,0 @@ +-#import +-#import +-#import +-@interface RCT_EXTERN_MODULE(OnfidoSdk, RCTEventEmitter) +- +-RCT_EXTERN_METHOD( +- start:(NSDictionary *)config +- resolver:(RCTPromiseResolveBlock)resolve +- rejecter:(RCTPromiseRejectBlock)reject +-) +-RCT_EXTERN_METHOD(supportedEvents) +-RCT_EXTERN_METHOD(withMediaCallbacksEnabled) +- +-@end +diff --git a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.swift b/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.swift +index 3829c99..e8788f0 100644 +--- a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.swift ++++ b/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.swift +@@ -14,24 +14,31 @@ private enum CallbackType { + } + + @objc(OnfidoSdk) +-final class OnfidoSdk: RCTEventEmitter { ++public final class OnfidoSdk: NSObject { + + private let onfidoFlowBuilder = OnfidoFlowBuilder() + private let configParser = OnfidoConfigParser() + private var callbackTypes: [CallbackType] = [] + + @objc +- func start(_ config: NSDictionary, +- resolver resolve: @escaping RCTPromiseResolveBlock, +- rejecter reject: @escaping RCTPromiseRejectBlock) { ++ public var mediaCallbackHandler: (([String: Any]) -> Void)? ++ ++ // TODO: Using React types here (RCTPromiseResolveBlock and RCTPromiseRejectBlock) causes the project to fail to build. ++ // For some reason marking them as @escaping causes the XCode to add an import to non-existent header file in onfido_react_native_sdk-Swift.h. ++ @objc ++ public func start(_ config: NSDictionary, ++ resolver resolve: @escaping (Any) -> Void, ++ rejecter reject: @escaping (String, String, Error?) -> Void) -> Void { + DispatchQueue.main.async { [weak self] in + self?.run(withConfig: config, resolver: resolve, rejecter: reject) + } + } + ++ // TODO: Same as above + private func run(withConfig config: NSDictionary, +- resolver resolve: @escaping RCTPromiseResolveBlock, +- rejecter reject: @escaping RCTPromiseRejectBlock) { ++ resolver resolve: @escaping (Any) -> Void, ++ rejecter reject: @escaping (String, String, Error?) -> Void) { ++ + do { + let onfidoConfig: OnfidoPluginConfig = try configParser.parse(config) + +@@ -90,27 +97,17 @@ final class OnfidoSdk: RCTEventEmitter { + } + } + +- // MARK: - Callbacks +- +- @objc +- public override func supportedEvents() -> [String] { +- return ["onfidoMediaCallback"] +- } +- +- @objc +- override static func requiresMainQueueSetup() -> Bool { +- return false +- } +- + // MARK: Media + + @objc +- func withMediaCallbacksEnabled() { ++ public func withMediaCallbacksEnabled() { + callbackTypes.append(.media) + } + + private func processMediaResult(_ dictionary: [String: Any]) { +- sendEvent(withName: "onfidoMediaCallback", body: dictionary) ++ if let handler = mediaCallbackHandler { ++ handler(dictionary) ++ } + } + } + +diff --git a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.xcodeproj/project.pbxproj b/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.xcodeproj/project.pbxproj +index e87f422..7958454 100644 +--- a/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.xcodeproj/project.pbxproj ++++ b/node_modules/@onfido/react-native-sdk/ios/OnfidoSdk.xcodeproj/project.pbxproj +@@ -65,6 +65,8 @@ + 8517ACCD244290D10077E909 /* OnfidoSdkTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OnfidoSdkTests.swift; sourceTree = ""; }; + 899A7F1B3979E0BB4044B867 /* libPods-OnfidoSdk-OnfidoSdkTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-OnfidoSdk-OnfidoSdkTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 8B8E5FE3BDE0C9C96B5FE8AB /* Pods-OnfidoSdk.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OnfidoSdk.debug.xcconfig"; path = "Target Support Files/Pods-OnfidoSdk/Pods-OnfidoSdk.debug.xcconfig"; sourceTree = ""; }; ++ 9B55F4FF2B61451700EC4D80 /* PluginMetadata.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PluginMetadata.m; sourceTree = ""; }; ++ 9B55F5002B61451700EC4D80 /* PluginMetadata.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PluginMetadata.h; sourceTree = ""; }; + 9BF206B12A3C839F00766D77 /* CallbackReceiver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallbackReceiver.swift; sourceTree = ""; }; + 9BF206B22A3C839F00766D77 /* BridgeUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BridgeUtils.swift; sourceTree = ""; }; + 9BF206B32A3C839F00766D77 /* OnfidoAppearance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnfidoAppearance.swift; sourceTree = ""; }; +@@ -138,6 +140,8 @@ + 3AFE501B2408521F00E21479 /* OnfidoSdk-Bridging-Header.h */, + B3E7B5881CC2AC0600A0062D /* OnfidoSdk.h */, + B3E7B5891CC2AC0600A0062D /* OnfidoSdk.m */, ++ 9B55F5002B61451700EC4D80 /* PluginMetadata.h */, ++ 9B55F4FF2B61451700EC4D80 /* PluginMetadata.m */, + 3A9D42CA2412EEF50087A331 /* OnfidoSdkTests */, + 134814211AA4EA7D00B7C361 /* Products */, + 4A3724A27399FEFCC7B1F920 /* Pods */, +diff --git a/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.h b/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.h +new file mode 100644 +index 0000000..c263983 +--- /dev/null ++++ b/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.h +@@ -0,0 +1,10 @@ ++#import ++ ++NS_ASSUME_NONNULL_BEGIN ++ ++@interface PluginMetadata : NSObject ++@property (nonatomic, readonly) NSString* pluginPlatform; ++@property (nonatomic, readonly) NSString* pluginVersion; ++@end ++ ++NS_ASSUME_NONNULL_END +diff --git a/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.m b/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.m +new file mode 100644 +index 0000000..3f9109e +--- /dev/null ++++ b/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.m +@@ -0,0 +1,15 @@ ++#import "PluginMetadata.h" ++ ++@implementation PluginMetadata ++ ++- (instancetype)init ++{ ++ self = [super init]; ++ if (self) { ++ _pluginPlatform = @"react-native"; ++ _pluginVersion = @"10.7.0"; ++ } ++ return self; ++} ++ ++@end +diff --git a/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.swift b/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.swift +deleted file mode 100644 +index 9e2b0fc..0000000 +--- a/node_modules/@onfido/react-native-sdk/ios/PluginMetadata.swift ++++ /dev/null +@@ -1,11 +0,0 @@ +-// +-// PluginMetadata.swift +-// +-// Copyright © 2016-2023 Onfido. All rights reserved. +-// +- +-@objcMembers +-final class PluginMetadata: NSObject { +- let pluginPlatform = "react-native" +- let pluginVersion = "10.6.0" +-} +diff --git a/node_modules/@onfido/react-native-sdk/ios/Podfile b/node_modules/@onfido/react-native-sdk/ios/Podfile +index 8fc621f..38b66d9 100644 +--- a/node_modules/@onfido/react-native-sdk/ios/Podfile ++++ b/node_modules/@onfido/react-native-sdk/ios/Podfile +@@ -27,7 +27,7 @@ flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : Flip + # end + + target 'OnfidoSdk' do +- pod 'Onfido', '~> 29.6.0' ++ pod 'Onfido', '~> 29.7.0' + + config = use_native_modules! + use_react_native!( +@@ -41,6 +41,17 @@ target 'OnfidoSdk' do + target 'OnfidoSdkTests' do + # inherit! :search_paths + # Pods for testing ++ end + ++ # unary_function and binary_function are no longer provided in C++17 and newer standard modes as part of Xcode 15. ++ # They can be re-enabled with setting _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION ++ # Ref: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Deprecations ++ # Solution: https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448 ++ post_install do |installer| ++ installer.pods_project.targets.each do |target| ++ target.build_configurations.each do |config| ++ config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION'] ++ end ++ end + end + end +diff --git a/node_modules/@onfido/react-native-sdk/ios/Podfile.lock b/node_modules/@onfido/react-native-sdk/ios/Podfile.lock +index 87765b9..46aa9fb 100644 +--- a/node_modules/@onfido/react-native-sdk/ios/Podfile.lock ++++ b/node_modules/@onfido/react-native-sdk/ios/Podfile.lock +@@ -519,11 +519,11 @@ EXTERNAL SOURCES: + + SPEC CHECKSUMS: + boost: 57d2868c099736d80fcd648bf211b4431e51a558 +- DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de ++ DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 + FBLazyVector: 748c0ef74f2bf4b36cfcccf37916806940a64c32 + FBReactNativeSpec: 966f29e4e697de53a3b366355e8f57375c856ad9 + fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 +- glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 ++ glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b + Onfido: c52e797b10cc9e6d29ba91996cb62e501000bfdd + RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 + RCTRequired: 28469809442eb4eb5528462705f7d852948c8a74 +@@ -560,6 +560,6 @@ SPEC CHECKSUMS: + SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 + Yoga: b76f1acfda8212aa16b7e26bcce3983230c82603 + +-PODFILE CHECKSUM: ee04850b32b0f021f8e865806f0d8fc273717178 ++PODFILE CHECKSUM: b0afaaafeb2272120df31de2529a6e679929c7c5 + + COCOAPODS: 1.14.3 +diff --git a/node_modules/@onfido/react-native-sdk/ios/RNOnfidoSdk.h b/node_modules/@onfido/react-native-sdk/ios/RNOnfidoSdk.h +new file mode 100644 +index 0000000..3b65b7a +--- /dev/null ++++ b/node_modules/@onfido/react-native-sdk/ios/RNOnfidoSdk.h +@@ -0,0 +1,16 @@ ++#import ++#import ++#import ++ ++#ifdef RCT_NEW_ARCH_ENABLED ++ ++#import ++@interface RNOnfidoSdk : RCTEventEmitter ++ ++#else ++ ++@interface RNOnfidoSdk : RCTEventEmitter ++ ++#endif ++ ++@end +diff --git a/node_modules/@onfido/react-native-sdk/ios/RNOnfidoSdk.mm b/node_modules/@onfido/react-native-sdk/ios/RNOnfidoSdk.mm +new file mode 100644 +index 0000000..4d21970 +--- /dev/null ++++ b/node_modules/@onfido/react-native-sdk/ios/RNOnfidoSdk.mm +@@ -0,0 +1,59 @@ ++#import "RNOnfidoSdk.h" ++#import ++ ++@implementation RNOnfidoSdk { ++ OnfidoSdk *_onfidoSdk; ++} ++ ++RCT_EXPORT_MODULE() ++ +++ (BOOL)requiresMainQueueSetup { ++ return NO; ++} ++ ++- (instancetype)init ++{ ++ if (!(self = [super init])) { ++ return nil; ++ } ++ ++ _onfidoSdk = [[OnfidoSdk alloc] init]; ++ ++ // capture weak self reference to prevent retain cycle ++ __weak __typeof__(self) weakSelf = self; ++ ++ _onfidoSdk.mediaCallbackHandler = ^(NSDictionary *data) { ++ __typeof__(self) strongSelf = weakSelf; ++ ++ if (strongSelf != nullptr) { ++ [strongSelf sendEventWithName:@"onfidoMediaCallback" body:data]; ++ } ++ }; ++ ++ return self; ++} ++ ++- (NSArray *)supportedEvents ++{ ++ return @[@"onfidoMediaCallback"]; ++} ++ ++RCT_EXPORT_METHOD(start:(NSDictionary *)config resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) ++{ ++ [_onfidoSdk start:config resolver:resolve rejecter:reject]; ++} ++ ++RCT_EXPORT_METHOD(withMediaCallbacksEnabled) ++{ ++ [_onfidoSdk withMediaCallbacksEnabled]; ++} ++ ++#ifdef RCT_NEW_ARCH_ENABLED ++ ++- (std::shared_ptr)getTurboModule:(const facebook::react::ObjCTurboModule::InitParams &)params { ++ return std::make_shared(params); ++} ++ ++#endif ++ ++@end +diff --git a/node_modules/@onfido/react-native-sdk/js/NativeOnfidoModule.ts b/node_modules/@onfido/react-native-sdk/js/NativeOnfidoModule.ts +new file mode 100644 +index 0000000..c48f86e +--- /dev/null ++++ b/node_modules/@onfido/react-native-sdk/js/NativeOnfidoModule.ts +@@ -0,0 +1,13 @@ ++import { TurboModuleRegistry, TurboModule } from "react-native"; ++import { Int32 } from 'react-native/Libraries/Types/CodegenTypes'; ++ ++export interface Spec extends TurboModule { ++ start(config: Object): Promise; ++ withMediaCallbacksEnabled(): void; ++ ++ // those two are here for event emitter methods ++ addListener(eventName: string): void; ++ removeListeners(count: Int32): void; ++} ++ ++export default TurboModuleRegistry.getEnforcing("RNOnfidoSdk"); +diff --git a/node_modules/@onfido/react-native-sdk/js/Onfido.ts b/node_modules/@onfido/react-native-sdk/js/Onfido.ts +index db35471..8bb6a57 100644 +--- a/node_modules/@onfido/react-native-sdk/js/Onfido.ts ++++ b/node_modules/@onfido/react-native-sdk/js/Onfido.ts +@@ -1,4 +1,4 @@ +-import {NativeModules, Platform, NativeEventEmitter} from 'react-native'; ++import {Platform, NativeEventEmitter} from 'react-native'; + import { + OnfidoAlpha2CountryCode, + OnfidoCaptureType, +@@ -11,11 +11,9 @@ import { + } from "./config_constants"; + import { Base64 } from 'js-base64'; + +-const {OnfidoSdk} = NativeModules; +- +-const OndifoSdkModule = NativeModules.OnfidoSdk +-const eventEmitter = new NativeEventEmitter(OndifoSdkModule) ++import OnfidoSdk from "./NativeOnfidoModule"; + ++const eventEmitter = new NativeEventEmitter(OnfidoSdk) + + const Onfido = { + start(config: OnfidoConfig): Promise { +@@ -93,7 +91,7 @@ const Onfido = { + return OnfidoSdk.start(config).catch((error: any) => { + console.log(error); + throw error; +- }); ++ }) as Promise; + }, + + addCustomMediaCallback(callback: (result: OnfidoMediaResult) => OnfidoMediaResult) { +diff --git a/node_modules/@onfido/react-native-sdk/onfido-react-native-sdk.podspec b/node_modules/@onfido/react-native-sdk/onfido-react-native-sdk.podspec +index a9de0d0..fcd6d14 100644 +--- a/node_modules/@onfido/react-native-sdk/onfido-react-native-sdk.podspec ++++ b/node_modules/@onfido/react-native-sdk/onfido-react-native-sdk.podspec +@@ -2,6 +2,8 @@ require "json" + + package = JSON.parse(File.read(File.join(__dir__, "package.json"))) + ++fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' ++ + Pod::Spec.new do |s| + s.name = "onfido-react-native-sdk" + s.version = package["version"] +@@ -15,10 +17,15 @@ Pod::Spec.new do |s| + s.platforms = { :ios => "11.0" } + s.source = { :git => "https://github.com/onfido/react-native-sdk.git", :tag => "#{s.version}" } + +- s.source_files = "ios/**/*.{h,m,swift}" ++ s.source_files = "ios/**/*.{h,m,swift,mm}" + s.exclude_files = "ios/OnfidoSdkTests/" + s.requires_arc = true + +- s.dependency "React" +- s.dependency "Onfido", "~> 29.6.0" ++ s.dependency "Onfido", "~> 29.7.0" ++ ++ if defined?(install_modules_dependencies()) != nil ++ install_modules_dependencies(s) ++ else ++ s.dependency "React" ++ end + end +diff --git a/node_modules/@onfido/react-native-sdk/package.json b/node_modules/@onfido/react-native-sdk/package.json +index 50a331b..754c3c0 100644 +--- a/node_modules/@onfido/react-native-sdk/package.json ++++ b/node_modules/@onfido/react-native-sdk/package.json +@@ -24,7 +24,8 @@ + ], + "testPathIgnorePatterns": [ + "/TestApp", +- "/SampleApp" ++ "/SampleApp", ++ "/FabricSample" + ], + "globals": { + "__DEV__": true +@@ -82,6 +83,14 @@ + "react-native": "0.72.6", + "typescript": "^4.6.4" + }, ++ "codegenConfig": { ++ "name": "rnonfidosdk", ++ "type": "modules", ++ "jsSrcsDir": "./js", ++ "android": { ++ "javaPackageName": "com.onfido.reactnative.sdk" ++ } ++ }, + "dependencies": { + "js-base64": "3.7.5" + }, +diff --git a/node_modules/@onfido/react-native-sdk/scripts/update-integration-versions.sh b/node_modules/@onfido/react-native-sdk/scripts/update-integration-versions.sh +index 49f9d4c..1b9f304 100755 +--- a/node_modules/@onfido/react-native-sdk/scripts/update-integration-versions.sh ++++ b/node_modules/@onfido/react-native-sdk/scripts/update-integration-versions.sh +@@ -2,16 +2,16 @@ + + PROJ_DIR=. + MANIFEST_FILE=${PROJ_DIR}/android/src/main/AndroidManifest.xml +-IOS_PLUGIN_FILE=${PROJ_DIR}/ios/PluginMetadata.swift ++IOS_PLUGIN_FILE=${PROJ_DIR}/ios/PluginMetadata.m + + update_manifest() + { +- sed -i -e "s/android:value=\"[0-9]*\.[0-9]*\.[0-9]*\"/android:value=\"$2\"/g" $1 ++ sed -i '' -e "s/android:value=\"[0-9]*\.[0-9]*\.[0-9]*\"/android:value=\"$2\"/g" $1 + } + + update_plugin_file() + { +- sed -i -e "s/pluginVersion = \"[0-9]*\.[0-9]*\.[0-9]*\"/pluginVersion = \"$2\"/g" $1 ++ sed -i '' -e "s/_pluginVersion = @\"[0-9]*\.[0-9]*\.[0-9]*\"/_pluginVersion = @\"$2\"/g" $1 + } + + update_manifest ${MANIFEST_FILE} $PACKAGE_VERSION diff --git a/patches/@react-native+gradle-plugin+0.73.4.patch b/patches/@react-native+gradle-plugin+0.73.4.patch new file mode 100644 index 000000000000..680de81743e7 --- /dev/null +++ b/patches/@react-native+gradle-plugin+0.73.4.patch @@ -0,0 +1,21 @@ +diff --git a/node_modules/@react-native/gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt b/node_modules/@react-native/gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt +index f3b55e0..5ca7316 100644 +--- a/node_modules/@react-native/gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt ++++ b/node_modules/@react-native/gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt +@@ -45,15 +45,9 @@ abstract class PreparePrefabHeadersTask : DefaultTask() { + fs.copy { + it.from(headerPath) + it.include("**/*.h") ++ it.include("**/*.hpp") + it.exclude("**/*.cpp") + it.exclude("**/*.txt") +- // We don't want to copy all the boost headers as they are 250Mb+ +- it.include("boost/config.hpp") +- it.include("boost/config/**/*.hpp") +- it.include("boost/core/*.hpp") +- it.include("boost/detail/workaround.hpp") +- it.include("boost/operators.hpp") +- it.include("boost/preprocessor/**/*.hpp") + it.into(File(outputFolder.asFile, headerPrefix)) + } + } diff --git a/patches/@react-native-community+cli-platform-android+12.3.0.patch b/patches/@react-native-community+cli-platform-android+12.3.2.patch similarity index 100% rename from patches/@react-native-community+cli-platform-android+12.3.0.patch rename to patches/@react-native-community+cli-platform-android+12.3.2.patch diff --git a/patches/@react-native-community+cli-platform-ios+12.3.0.patch b/patches/@react-native-community+cli-platform-ios+12.3.2.patch similarity index 100% rename from patches/@react-native-community+cli-platform-ios+12.3.0.patch rename to patches/@react-native-community+cli-platform-ios+12.3.2.patch diff --git a/patches/@react-native-community+geolocation+3.1.0.patch b/patches/@react-native-community+geolocation+3.1.0.patch new file mode 100644 index 000000000000..5afa0b8e0897 --- /dev/null +++ b/patches/@react-native-community+geolocation+3.1.0.patch @@ -0,0 +1,38 @@ +diff --git a/node_modules/@react-native-community/geolocation/react-native-geolocation.podspec b/node_modules/@react-native-community/geolocation/react-native-geolocation.podspec +index a319e73..c1ea11c 100644 +--- a/node_modules/@react-native-community/geolocation/react-native-geolocation.podspec ++++ b/node_modules/@react-native-community/geolocation/react-native-geolocation.podspec +@@ -1,8 +1,6 @@ + require 'json' + + package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) +-folly_version = '2021.07.22.00' +-folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' + + Pod::Spec.new do |s| + s.name = "react-native-geolocation" +@@ -17,20 +15,11 @@ Pod::Spec.new do |s| + s.source = { :git => "https://github.com/react-native-community/react-native-geolocation.git", :tag => "v#{s.version}" } + s.source_files = "ios/**/*.{h,m,mm}" + +- s.dependency 'React-Core' + s.frameworks = 'CoreLocation' + +- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then +- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" +- s.pod_target_xcconfig = { +- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", +- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" +- } +- +- s.dependency "React-Codegen" +- s.dependency "RCT-Folly", folly_version +- s.dependency "RCTRequired" +- s.dependency "RCTTypeSafety" +- s.dependency "ReactCommon/turbomodule/core" ++ if defined?(install_modules_dependencies()) != nil ++ install_modules_dependencies(s) ++ else ++ s.dependency "React-Core" + end + end diff --git a/patches/@react-native-community+netinfo+11.2.1+001+initial.patch b/patches/@react-native-community+netinfo+11.2.1+001+initial.patch new file mode 100644 index 000000000000..9a5b031c6dc1 --- /dev/null +++ b/patches/@react-native-community+netinfo+11.2.1+001+initial.patch @@ -0,0 +1,8 @@ +diff --git a/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModule.java b/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModuleImpl.java +similarity index 100% +rename from node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModule.java +rename to node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModuleImpl.java +diff --git a/node_modules/@react-native-community/netinfo/ios/RNCNetInfo.m b/node_modules/@react-native-community/netinfo/ios/RNCNetInfo.mm +similarity index 100% +rename from node_modules/@react-native-community/netinfo/ios/RNCNetInfo.m +rename to node_modules/@react-native-community/netinfo/ios/RNCNetInfo.mm diff --git a/patches/@react-native-community+netinfo+11.2.1+002+turbomodule.patch b/patches/@react-native-community+netinfo+11.2.1+002+turbomodule.patch new file mode 100644 index 000000000000..f8e171008e14 --- /dev/null +++ b/patches/@react-native-community+netinfo+11.2.1+002+turbomodule.patch @@ -0,0 +1,3065 @@ +diff --git a/node_modules/@react-native-community/netinfo/android/build.gradle b/node_modules/@react-native-community/netinfo/android/build.gradle +index 0d617ed..e93d64a 100644 +--- a/node_modules/@react-native-community/netinfo/android/build.gradle ++++ b/node_modules/@react-native-community/netinfo/android/build.gradle +@@ -3,9 +3,10 @@ buildscript { + // This avoids unnecessary downloads and potential conflicts when the library is included as a + // module dependency in an application project. + if (project == rootProject) { +- repositories { +- google() +- mavenCentral() ++ repositories { ++ google() ++ mavenCentral() ++ gradlePluginPortal() + } + + dependencies { +@@ -26,8 +27,54 @@ def getExtOrIntegerDefault(name) { + return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['ReactNativeNetInfo_' + name]).toInteger() + } + ++def isNewArchitectureEnabled() { ++ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" ++} ++ ++def resolveReactNativeDirectory() { ++ def reactNativeLocation = getExtOrInitialValue("REACT_NATIVE_NODE_MODULES_DIR", null) ++ if (reactNativeLocation != null) { ++ return file(reactNativeLocation) ++ } ++ ++ // monorepo workaround ++ // react-native can be hoisted or in project's own node_modules ++ def reactNativeFromProjectNodeModules = file("${rootProject.projectDir}/../node_modules/react-native") ++ if (reactNativeFromProjectNodeModules.exists()) { ++ return reactNativeFromProjectNodeModules ++ } ++ ++ def reactNativeFromNodeModulesWithRNCNetInfo = file("${projectDir}/../../react-native") ++ if (reactNativeFromNodeModulesWithRNCNetInfo.exists()) { ++ return reactNativeFromNodeModulesWithRNCNetInfo ++ } ++ ++ throw new Exception( ++ "[react-native-netinfo] Unable to resolve react-native location in " + ++ "node_modules. You should add project extension property (in app/build.gradle) " + ++ "`REACT_NATIVE_NODE_MODULES_DIR` with path to react-native." ++ ) ++} ++ ++def getReactNativeMinorVersion() { ++ def REACT_NATIVE_DIR = resolveReactNativeDirectory() ++ ++ def reactProperties = new Properties() ++ file("$REACT_NATIVE_DIR/ReactAndroid/gradle.properties").withInputStream { reactProperties.load(it) } ++ ++ def REACT_NATIVE_VERSION = reactProperties.getProperty("VERSION_NAME") ++ def REACT_NATIVE_MINOR_VERSION = REACT_NATIVE_VERSION.startsWith("0.0.0-") ? 1000 : REACT_NATIVE_VERSION.split("\\.")[1].toInteger() ++ ++ return REACT_NATIVE_MINOR_VERSION ++} ++ ++ + apply plugin: 'com.android.library' + ++if (isNewArchitectureEnabled()) { ++ apply plugin: 'com.facebook.react' ++} ++ + android { + compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') + +@@ -45,10 +92,21 @@ android { + defaultConfig { + minSdkVersion getExtOrIntegerDefault('minSdkVersion') + targetSdkVersion getExtOrIntegerDefault('targetSdkVersion') ++ buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()) ++ } ++ sourceSets { ++ main { ++ if (isNewArchitectureEnabled()) { ++ java.srcDirs += ['src/newarch'] ++ } else { ++ java.srcDirs += ['src/oldarch'] ++ } ++ } + } + lintOptions{ + abortOnError false + } ++ + } + + repositories { +@@ -63,6 +121,9 @@ repositories { + + dependencies { + //noinspection GradleDynamicVersion +- implementation 'com.facebook.react:react-native:+' +- ++ if (isNewArchitectureEnabled() && getReactNativeMinorVersion() < 71) { ++ implementation project(":ReactAndroid") ++ } else { ++ implementation 'com.facebook.react:react-native:+' ++ } + } +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModuleImpl.java b/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModuleImpl.java +index 2c3280b..296bbfd 100644 +--- a/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModuleImpl.java ++++ b/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoModuleImpl.java +@@ -9,13 +9,11 @@ package com.reactnativecommunity.netinfo; + import android.os.Build; + import com.facebook.react.bridge.Promise; + import com.facebook.react.bridge.ReactApplicationContext; +-import com.facebook.react.bridge.ReactContextBaseJavaModule; + import com.facebook.react.bridge.ReactMethod; + import com.facebook.react.module.annotations.ReactModule; + + /** Module that monitors and provides information about the connectivity state of the device. */ +-@ReactModule(name = NetInfoModule.NAME) +-public class NetInfoModule extends ReactContextBaseJavaModule implements AmazonFireDeviceConnectivityPoller.ConnectivityChangedCallback { ++public class NetInfoModuleImpl implements AmazonFireDeviceConnectivityPoller.ConnectivityChangedCallback { + public static final String NAME = "RNCNetInfo"; + + private final ConnectivityReceiver mConnectivityReceiver; +@@ -23,8 +21,7 @@ public class NetInfoModule extends ReactContextBaseJavaModule implements AmazonF + + private int numberOfListeners = 0; + +- public NetInfoModule(ReactApplicationContext reactContext) { +- super(reactContext); ++ public NetInfoModuleImpl(ReactApplicationContext reactContext) { + // Create the connectivity receiver based on the API level we are running on + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { + mConnectivityReceiver = new NetworkCallbackConnectivityReceiver(reactContext); +@@ -35,23 +32,17 @@ public class NetInfoModule extends ReactContextBaseJavaModule implements AmazonF + mAmazonConnectivityChecker = new AmazonFireDeviceConnectivityPoller(reactContext, this); + } + +- @Override ++ + public void initialize() { + mConnectivityReceiver.register(); + mAmazonConnectivityChecker.register(); + } + +- @Override + public void onCatalystInstanceDestroy() { + mAmazonConnectivityChecker.unregister(); + mConnectivityReceiver.unregister(); +- mConnectivityReceiver.hasListener = false; + } + +- @Override +- public String getName() { +- return NAME; +- } + + @ReactMethod + public void getCurrentState(final String requestedInterface, final Promise promise) { +@@ -63,14 +54,14 @@ public class NetInfoModule extends ReactContextBaseJavaModule implements AmazonF + mConnectivityReceiver.setIsInternetReachableOverride(isConnected); + } + +- @ReactMethod ++ + public void addListener(String eventName) { + numberOfListeners++; + mConnectivityReceiver.hasListener = true; + } + +- @ReactMethod +- public void removeListeners(Integer count) { ++ ++ public void removeListeners(double count) { + numberOfListeners -= count; + if (numberOfListeners == 0) { + mConnectivityReceiver.hasListener = false; +diff --git a/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoPackage.java b/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoPackage.java +index fcd4a5e..1bf0b62 100644 +--- a/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoPackage.java ++++ b/node_modules/@react-native-community/netinfo/android/src/main/java/com/reactnativecommunity/netinfo/NetInfoPackage.java +@@ -1,34 +1,46 @@ +-/** +- * Copyright (c) Facebook, Inc. and its affiliates. +- * +- * This source code is licensed under the MIT license found in the +- * LICENSE file in the root directory of this source tree. +- */ + package com.reactnativecommunity.netinfo; + +-import com.facebook.react.ReactPackage; +-import com.facebook.react.bridge.JavaScriptModule; ++import androidx.annotation.Nullable; + import com.facebook.react.bridge.NativeModule; + import com.facebook.react.bridge.ReactApplicationContext; +-import com.facebook.react.uimanager.ViewManager; +-import java.util.Arrays; ++import com.facebook.react.module.model.ReactModuleInfo; ++import com.facebook.react.module.model.ReactModuleInfoProvider; ++import com.facebook.react.TurboReactPackage; ++ + import java.util.Collections; ++import java.util.HashMap; + import java.util.List; ++import java.util.Map; + +-public class NetInfoPackage implements ReactPackage { +- @Override +- public List createNativeModules(ReactApplicationContext reactContext) { +- return Arrays.asList(new NetInfoModule(reactContext)); +- } ++public class NetInfoPackage extends TurboReactPackage { + +- // Deprecated from RN 0.47 +- public List> createJSModules() { +- return Collections.emptyList(); +- } ++ @Nullable ++ @Override ++ public NativeModule getModule(String name, ReactApplicationContext reactContext) { ++ if (name.equals(NetInfoModuleImpl.NAME)) { ++ return new NetInfoModule(reactContext); ++ } else { ++ return null; ++ } ++ } + +- @Override +- @SuppressWarnings("rawtypes") +- public List createViewManagers(ReactApplicationContext reactContext) { +- return Collections.emptyList(); +- } ++ @Override ++ public ReactModuleInfoProvider getReactModuleInfoProvider() { ++ return () -> { ++ final Map moduleInfos = new HashMap<>(); ++ boolean turboModulesEnabled = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; ++ moduleInfos.put( ++ NetInfoModuleImpl.NAME, ++ new ReactModuleInfo( ++ NetInfoModuleImpl.NAME, ++ NetInfoModuleImpl.NAME, ++ false, // canOverrideExistingModule ++ false, // needsEagerInit ++ true, // hasConstants ++ false, // isCxxModule ++ turboModulesEnabled // isTurboModule ++ )); ++ return moduleInfos; ++ }; ++ } + } +diff --git a/node_modules/@react-native-community/netinfo/android/src/newarch/com/reactnativecommunity/netinfo/NetInfoModule.java b/node_modules/@react-native-community/netinfo/android/src/newarch/com/reactnativecommunity/netinfo/NetInfoModule.java +new file mode 100644 +index 0000000..61e44c4 +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/android/src/newarch/com/reactnativecommunity/netinfo/NetInfoModule.java +@@ -0,0 +1,51 @@ ++package com.reactnativecommunity.netinfo; ++ ++import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.bridge.Promise; ++import com.facebook.react.bridge.ReactMethod; ++import com.facebook.react.bridge.ReadableMap; ++ ++public class NetInfoModule extends NativeRNCNetInfoSpec { ++ ++ private NetInfoModuleImpl implementation; ++ ++ NetInfoModule(ReactApplicationContext context) { ++ super(context); ++ implementation = new NetInfoModuleImpl(context); ++ } ++ ++ @Override ++ public String getName() { ++ return NetInfoModuleImpl.NAME; ++ } ++ ++ @ReactMethod ++ public void getCurrentState(final String requestedInterface, final Promise promise) { ++ implementation.getCurrentState(requestedInterface, promise); ++ } ++ ++ @ReactMethod ++ public void configure(ReadableMap config) { ++ // iOS only ++ } ++ ++ @ReactMethod ++ public void addListener(String eventName) { ++ implementation.addListener(eventName); ++ } ++ ++ @ReactMethod ++ public void removeListeners(double count) { ++ implementation.removeListeners(count); ++ } ++ ++ @Override ++ public void onCatalystInstanceDestroy() { ++ implementation.onCatalystInstanceDestroy(); ++ } ++ ++ @Override ++ public void initialize() { ++ implementation.initialize(); ++ } ++} +diff --git a/node_modules/@react-native-community/netinfo/android/src/oldarch/com/reactnativecommunity/netinfo/NetInfoModule.java b/node_modules/@react-native-community/netinfo/android/src/oldarch/com/reactnativecommunity/netinfo/NetInfoModule.java +new file mode 100644 +index 0000000..4738d63 +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/android/src/oldarch/com/reactnativecommunity/netinfo/NetInfoModule.java +@@ -0,0 +1,59 @@ ++ ++ ++package com.reactnativecommunity.netinfo; ++ ++import com.facebook.react.bridge.NativeModule; ++import com.facebook.react.bridge.Promise; ++import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.bridge.ReactContext; ++import com.facebook.react.bridge.ReactContextBaseJavaModule; ++import com.facebook.react.bridge.ReactMethod; ++import java.util.Map; ++import java.util.HashMap; ++import com.facebook.react.bridge.ReadableMap; ++ ++public class NetInfoModule extends ReactContextBaseJavaModule { ++ ++ private NetInfoModuleImpl implementation; ++ ++ NetInfoModule(ReactApplicationContext context) { ++ super(context); ++ implementation = new NetInfoModuleImpl(context); ++ } ++ ++ @Override ++ public String getName() { ++ return NetInfoModuleImpl.NAME; ++ } ++ ++ @ReactMethod ++ public void getCurrentState(final String requestedInterface, final Promise promise) { ++ implementation.getCurrentState(requestedInterface, promise); ++ } ++ ++ @Override ++ public void onCatalystInstanceDestroy() { ++ implementation.onCatalystInstanceDestroy(); ++ } ++ ++ ++ @Override ++ public void initialize() { ++ implementation.initialize(); ++ } ++ ++ @ReactMethod ++ public void addListener(String eventName) { ++ implementation.addListener(eventName); ++ } ++ ++ @ReactMethod ++ public void configure(ReadableMap config) { ++ // iOS only ++ } ++ ++ @ReactMethod ++ public void removeListeners(double count) { ++ implementation.removeListeners(count); ++ } ++} +diff --git a/node_modules/@react-native-community/netinfo/ios/RNCNetInfo.mm b/node_modules/@react-native-community/netinfo/ios/RNCNetInfo.mm +index e83b8c4..be520d9 100644 +--- a/node_modules/@react-native-community/netinfo/ios/RNCNetInfo.mm ++++ b/node_modules/@react-native-community/netinfo/ios/RNCNetInfo.mm +@@ -8,6 +8,10 @@ + #import "RNCNetInfo.h" + #import "RNCConnectionStateWatcher.h" + ++#ifdef RCT_NEW_ARCH_ENABLED ++#import "RNCNetInfoSpec.h" ++#endif ++ + #include + #include + +@@ -15,13 +19,18 @@ + #import + #import + #endif +-@import SystemConfiguration.CaptiveNetwork; ++#import ++ + + #import + #import + #import + ++#ifdef RCT_NEW_ARCH_ENABLED ++@interface RNCNetInfo () ++#else + @interface RNCNetInfo () ++#endif + + @property (nonatomic, strong) RNCConnectionStateWatcher *connectionStateWatcher; + @property (nonatomic) BOOL isObserving; +@@ -97,6 +106,7 @@ - (void)connectionStateWatcher:(RNCConnectionStateWatcher *)connectionStateWatch + resolve([self currentDictionaryFromUpdateState:state withInterface:requestedInterface]); + } + ++ + RCT_EXPORT_METHOD(configure:(NSDictionary *)config) + { + self.config = config; +@@ -265,4 +275,10 @@ - (NSString *)bssid + } + #endif + ++#ifdef RCT_NEW_ARCH_ENABLED ++- (std::shared_ptr)getTurboModule:(const facebook::react::ObjCTurboModule::InitParams &)params { ++ return std::make_shared(params); ++} ++#endif ++ + @end +diff --git a/node_modules/@react-native-community/netinfo/jest/netinfo-mock.js b/node_modules/@react-native-community/netinfo/jest/netinfo-mock.js +index 7f5769c..99b1aa3 100644 +--- a/node_modules/@react-native-community/netinfo/jest/netinfo-mock.js ++++ b/node_modules/@react-native-community/netinfo/jest/netinfo-mock.js +@@ -14,18 +14,17 @@ const defaultState = { + }; + + const NetInfoStateType = { +- unknown: "unknown", +- none: "none", +- cellular: "cellular", +- wifi: "wifi", +- bluetooth: "bluetooth", +- ethernet: "ethernet", +- wimax: "wimax", +- vpn: "vpn", +- other: "other", ++ unknown: 'unknown', ++ none: 'none', ++ cellular: 'cellular', ++ wifi: 'wifi', ++ bluetooth: 'bluetooth', ++ ethernet: 'ethernet', ++ wimax: 'wimax', ++ vpn: 'vpn', ++ other: 'other', + }; + +- + const RNCNetInfoMock = { + NetInfoStateType, + configure: jest.fn(), +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/index.js b/node_modules/@react-native-community/netinfo/lib/commonjs/index.js +index f5afe24..8f06bc8 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/index.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/index.js +@@ -11,26 +11,19 @@ var _exportNames = { + useNetInfo: true, + useNetInfoInstance: true + }; ++exports.addEventListener = addEventListener; + exports.configure = configure; ++exports.default = void 0; + exports.fetch = fetch; + exports.refresh = refresh; +-exports.addEventListener = addEventListener; + exports.useNetInfo = useNetInfo; + exports.useNetInfoInstance = useNetInfoInstance; +-exports.default = void 0; +- + var _react = require("react"); +- + var _reactNative = require("react-native"); +- + var _defaultConfiguration = _interopRequireDefault(require("./internal/defaultConfiguration")); +- + var _nativeInterface = _interopRequireDefault(require("./internal/nativeInterface")); +- + var _state2 = _interopRequireDefault(require("./internal/state")); +- + var Types = _interopRequireWildcard(require("./internal/types")); +- + Object.keys(Types).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; +@@ -42,13 +35,9 @@ Object.keys(Types).forEach(function (key) { + } + }); + }); +- +-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +- +-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +- ++function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } ++function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +- + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -57,14 +46,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de + * + * @format + */ ++ + // Stores the currently used configuration +-let _configuration = _defaultConfiguration.default; // Stores the singleton reference to the state manager ++let _configuration = _defaultConfiguration.default; + ++// Stores the singleton reference to the state manager + let _state = null; +- + const createState = () => { + return new _state2.default(_configuration); + }; ++ + /** + * Configures the library with the given configuration. Note that calling this will stop all + * previously added listeners from being called again. It is best to call this right when your +@@ -72,23 +63,20 @@ const createState = () => { + * + * @param configuration The new configuration to set. + */ +- +- + function configure(configuration) { +- _configuration = { ..._defaultConfiguration.default, ++ _configuration = { ++ ..._defaultConfiguration.default, + ...configuration + }; +- + if (_state) { + _state.tearDown(); +- + _state = createState(); + } +- + if (_reactNative.Platform.OS === 'ios') { + _nativeInterface.default.configure(configuration); + } + } ++ + /** + * Returns a `Promise` that resolves to a `NetInfoState` object. + * This function operates on the global singleton instance configured using `configure()` +@@ -97,29 +85,25 @@ function configure(configuration) { + * + * @returns A Promise which contains the current connection state. + */ +- +- + function fetch(requestedInterface) { + if (!_state) { + _state = createState(); + } +- + return _state.latest(requestedInterface); + } ++ + /** + * Force-refreshes the internal state of the global singleton managed by this library. + * + * @returns A Promise which contains the updated connection state. + */ +- +- + function refresh() { + if (!_state) { + _state = createState(); + } +- + return _state._fetchCurrentState(); + } ++ + /** + * Subscribe to the global singleton's connection information. The callback is called with a parameter of type + * [`NetInfoState`](README.md#netinfostate) whenever the connection state changes. Your listener +@@ -131,19 +115,16 @@ function refresh() { + * + * @returns A function which can be called to unsubscribe. + */ +- +- + function addEventListener(listener) { + if (!_state) { + _state = createState(); + } +- + _state.add(listener); +- + return () => { + _state && _state.remove(listener); + }; + } ++ + /** + * A React Hook into this library's singleton which updates when the connection state changes. + * +@@ -151,13 +132,10 @@ function addEventListener(listener) { + * + * @returns The connection state. + */ +- +- + function useNetInfo(configuration) { + if (configuration) { + configure(configuration); + } +- + const [netInfo, setNetInfo] = (0, _react.useState)({ + type: Types.NetInfoStateType.unknown, + isConnected: null, +@@ -169,6 +147,7 @@ function useNetInfo(configuration) { + }, []); + return netInfo; + } ++ + /** + * A React Hook which manages an isolated instance of the network info manager. + * This is not a hook into a singleton shared state. NetInfo.configure, NetInfo.addEventListener, +@@ -178,8 +157,6 @@ function useNetInfo(configuration) { + * + * @returns the netInfo state and a refresh function + */ +- +- + function useNetInfoInstance(isPaused = false, configuration) { + const [networkInfoManager, setNetworkInfoManager] = (0, _react.useState)(); + const [netInfo, setNetInfo] = (0, _react.useState)({ +@@ -192,8 +169,8 @@ function useNetInfoInstance(isPaused = false, configuration) { + if (isPaused) { + return; + } +- +- const config = { ..._defaultConfiguration.default, ++ const config = { ++ ..._defaultConfiguration.default, + ...configuration + }; + const state = new _state2.default(config); +@@ -209,8 +186,7 @@ function useNetInfoInstance(isPaused = false, configuration) { + refresh + }; + } +- +-var _default = { ++var _default = exports.default = { + configure, + fetch, + refresh, +@@ -218,5 +194,4 @@ var _default = { + useNetInfo, + useNetInfoInstance + }; +-exports.default = _default; + //# sourceMappingURL=index.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/index.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/index.js.map +index c778a40..51f1ed7 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/index.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/index.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["index.ts"],"names":["_configuration","DEFAULT_CONFIGURATION","_state","createState","State","configure","configuration","tearDown","Platform","OS","NativeInterface","fetch","requestedInterface","latest","refresh","_fetchCurrentState","addEventListener","listener","add","remove","useNetInfo","netInfo","setNetInfo","type","Types","NetInfoStateType","unknown","isConnected","isInternetReachable","details","useNetInfoInstance","isPaused","networkInfoManager","setNetworkInfoManager","config","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;AASA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAkKA;AAAA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AAV;AACA,WAAOa,KAAK,CAAC5B,QAAb;AACD,GAZD,EAYG,CAACwB,QAAD,EAAWzB,aAAX,CAZH;AAcA,QAAMQ,OAAO,GAAG,wBAAY,MAAM;AAChCkB,IAAAA,kBAAkB,IAAIA,kBAAkB,CAACjB,kBAAnB,EAAtB;AACD,GAFe,EAEb,CAACiB,kBAAD,CAFa,CAAhB;AAIA,SAAO;AACLX,IAAAA,OADK;AAELP,IAAAA;AAFK,GAAP;AAID;;eAIc;AACbT,EAAAA,SADa;AAEbM,EAAAA,KAFa;AAGbG,EAAAA,OAHa;AAIbE,EAAAA,gBAJa;AAKbI,EAAAA,UALa;AAMbU,EAAAA;AANa,C","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {useState, useEffect, useCallback} from 'react';\nimport {Platform} from 'react-native';\nimport DEFAULT_CONFIGURATION from './internal/defaultConfiguration';\nimport NativeInterface from './internal/nativeInterface';\nimport State from './internal/state';\nimport * as Types from './internal/types';\n\n// Stores the currently used configuration\nlet _configuration = DEFAULT_CONFIGURATION;\n\n// Stores the singleton reference to the state manager\nlet _state: State | null = null;\nconst createState = (): State => {\n return new State(_configuration);\n};\n\n/**\n * Configures the library with the given configuration. Note that calling this will stop all\n * previously added listeners from being called again. It is best to call this right when your\n * application is started to avoid issues. The configuration sets up a global singleton instance.\n *\n * @param configuration The new configuration to set.\n */\nexport function configure(\n configuration: Partial,\n): void {\n _configuration = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n\n if (_state) {\n _state.tearDown();\n _state = createState();\n }\n\n if (Platform.OS === 'ios') {\n NativeInterface.configure(configuration);\n }\n}\n\n/**\n * Returns a `Promise` that resolves to a `NetInfoState` object.\n * This function operates on the global singleton instance configured using `configure()`\n *\n * @param [requestedInterface] interface from which to obtain the information\n *\n * @returns A Promise which contains the current connection state.\n */\nexport function fetch(\n requestedInterface?: string,\n): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state.latest(requestedInterface);\n}\n\n/**\n * Force-refreshes the internal state of the global singleton managed by this library.\n *\n * @returns A Promise which contains the updated connection state.\n */\nexport function refresh(): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state._fetchCurrentState();\n}\n\n/**\n * Subscribe to the global singleton's connection information. The callback is called with a parameter of type\n * [`NetInfoState`](README.md#netinfostate) whenever the connection state changes. Your listener\n * will be called with the latest information soon after you subscribe and then with any\n * subsequent changes afterwards. You should not assume that the listener is called in the same\n * way across devices or platforms.\n *\n * @param listener The listener which is called when the network state changes.\n *\n * @returns A function which can be called to unsubscribe.\n */\nexport function addEventListener(\n listener: Types.NetInfoChangeHandler,\n): Types.NetInfoSubscription {\n if (!_state) {\n _state = createState();\n }\n\n _state.add(listener);\n return (): void => {\n _state && _state.remove(listener);\n };\n}\n\n/**\n * A React Hook into this library's singleton which updates when the connection state changes.\n *\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns The connection state.\n */\nexport function useNetInfo(\n configuration?: Partial,\n): Types.NetInfoState {\n if (configuration) {\n configure(configuration);\n }\n\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect((): (() => void) => {\n return addEventListener(setNetInfo);\n }, []);\n\n return netInfo;\n}\n\n/**\n * A React Hook which manages an isolated instance of the network info manager.\n * This is not a hook into a singleton shared state. NetInfo.configure, NetInfo.addEventListener,\n * NetInfo.fetch, NetInfo.refresh are performed on a global singleton and have no affect on this hook.\n * @param {boolean} isPaused - Pause the internal network checks.\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns the netInfo state and a refresh function\n */\nexport function useNetInfoInstance(\n isPaused = false,\n configuration?: Partial,\n) {\n const [networkInfoManager, setNetworkInfoManager] = useState();\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect(() => {\n if (isPaused) {\n return;\n }\n const config = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n const state = new State(config);\n setNetworkInfoManager(state);\n state.add(setNetInfo);\n return state.tearDown;\n }, [isPaused, configuration]);\n\n const refresh = useCallback(() => {\n networkInfoManager && networkInfoManager._fetchCurrentState();\n }, [networkInfoManager]);\n\n return {\n netInfo,\n refresh,\n };\n}\n\nexport * from './internal/types';\n\nexport default {\n configure,\n fetch,\n refresh,\n addEventListener,\n useNetInfo,\n useNetInfoInstance,\n};\n"]} +\ No newline at end of file ++{"version":3,"names":["_react","require","_reactNative","_defaultConfiguration","_interopRequireDefault","_nativeInterface","_state2","Types","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","obj","_configuration","DEFAULT_CONFIGURATION","_state","createState","State","configure","configuration","tearDown","Platform","OS","NativeInterface","fetch","requestedInterface","latest","refresh","_fetchCurrentState","addEventListener","listener","add","remove","useNetInfo","netInfo","setNetInfo","useState","type","NetInfoStateType","unknown","isConnected","isInternetReachable","details","useEffect","useNetInfoInstance","isPaused","networkInfoManager","setNetworkInfoManager","config","state","useCallback","_default"],"sources":["index.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {useState, useEffect, useCallback} from 'react';\nimport {Platform} from 'react-native';\nimport DEFAULT_CONFIGURATION from './internal/defaultConfiguration';\nimport NativeInterface from './internal/nativeInterface';\nimport State from './internal/state';\nimport * as Types from './internal/types';\n\n// Stores the currently used configuration\nlet _configuration = DEFAULT_CONFIGURATION;\n\n// Stores the singleton reference to the state manager\nlet _state: State | null = null;\nconst createState = (): State => {\n return new State(_configuration);\n};\n\n/**\n * Configures the library with the given configuration. Note that calling this will stop all\n * previously added listeners from being called again. It is best to call this right when your\n * application is started to avoid issues. The configuration sets up a global singleton instance.\n *\n * @param configuration The new configuration to set.\n */\nexport function configure(\n configuration: Partial,\n): void {\n _configuration = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n\n if (_state) {\n _state.tearDown();\n _state = createState();\n }\n\n if (Platform.OS === 'ios') {\n NativeInterface.configure(configuration);\n }\n}\n\n/**\n * Returns a `Promise` that resolves to a `NetInfoState` object.\n * This function operates on the global singleton instance configured using `configure()`\n *\n * @param [requestedInterface] interface from which to obtain the information\n *\n * @returns A Promise which contains the current connection state.\n */\nexport function fetch(\n requestedInterface?: string,\n): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state.latest(requestedInterface);\n}\n\n/**\n * Force-refreshes the internal state of the global singleton managed by this library.\n *\n * @returns A Promise which contains the updated connection state.\n */\nexport function refresh(): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state._fetchCurrentState();\n}\n\n/**\n * Subscribe to the global singleton's connection information. The callback is called with a parameter of type\n * [`NetInfoState`](README.md#netinfostate) whenever the connection state changes. Your listener\n * will be called with the latest information soon after you subscribe and then with any\n * subsequent changes afterwards. You should not assume that the listener is called in the same\n * way across devices or platforms.\n *\n * @param listener The listener which is called when the network state changes.\n *\n * @returns A function which can be called to unsubscribe.\n */\nexport function addEventListener(\n listener: Types.NetInfoChangeHandler,\n): Types.NetInfoSubscription {\n if (!_state) {\n _state = createState();\n }\n\n _state.add(listener);\n return (): void => {\n _state && _state.remove(listener);\n };\n}\n\n/**\n * A React Hook into this library's singleton which updates when the connection state changes.\n *\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns The connection state.\n */\nexport function useNetInfo(\n configuration?: Partial,\n): Types.NetInfoState {\n if (configuration) {\n configure(configuration);\n }\n\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect((): (() => void) => {\n return addEventListener(setNetInfo);\n }, []);\n\n return netInfo;\n}\n\n/**\n * A React Hook which manages an isolated instance of the network info manager.\n * This is not a hook into a singleton shared state. NetInfo.configure, NetInfo.addEventListener,\n * NetInfo.fetch, NetInfo.refresh are performed on a global singleton and have no affect on this hook.\n * @param {boolean} isPaused - Pause the internal network checks.\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns the netInfo state and a refresh function\n */\nexport function useNetInfoInstance(\n isPaused = false,\n configuration?: Partial,\n) {\n const [networkInfoManager, setNetworkInfoManager] = useState();\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect(() => {\n if (isPaused) {\n return;\n }\n const config = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n const state = new State(config);\n setNetworkInfoManager(state);\n state.add(setNetInfo);\n return state.tearDown;\n }, [isPaused, configuration]);\n\n const refresh = useCallback(() => {\n networkInfoManager && networkInfoManager._fetchCurrentState();\n }, [networkInfoManager]);\n\n return {\n netInfo,\n refresh,\n };\n}\n\nexport * from './internal/types';\n\nexport default {\n configure,\n fetch,\n refresh,\n addEventListener,\n useNetInfo,\n useNetInfoInstance,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,OAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,KAAA,GAAAC,uBAAA,CAAAP,OAAA;AAkKAQ,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC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AAQ,EAAE;MACZ;IACF;IACA,MAAMG,MAAM,GAAG;MACb,GAAGlC,6BAAqB;MACxB,GAAGK;IACL,CAAC;IACD,MAAM8B,KAAK,GAAG,IAAIhC,eAAK,CAAC+B,MAAM,CAAC;IAC/BD,qBAAqB,CAACE,KAAK,CAAC;IAC5BA,KAAK,CAAClB,GAAG,CAACI,UAAU,CAAC;IACrB,OAAOc,KAAK,CAAC7B,QAAQ;EACvB,CAAC,EAAE,CAACyB,QAAQ,EAAE1B,aAAa,CAAC,CAAC;EAE7B,MAAMQ,OAAO,GAAG,IAAAuB,kBAAW,EAAC,MAAM;IAChCJ,kBAAkB,IAAIA,kBAAkB,CAAClB,kBAAkB,CAAC,CAAC;EAC/D,CAAC,EAAE,CAACkB,kBAAkB,CAAC,CAAC;EAExB,OAAO;IACLZ,OAAO;IACPP;EACF,CAAC;AACH;AAAC,IAAAwB,QAAA,GAAA1D,OAAA,CAAAU,OAAA,GAIc;EACbe,SAAS;EACTM,KAAK;EACLG,OAAO;EACPE,gBAAgB;EAChBI,UAAU;EACVW;AACF,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/NativeRNCNetInfo.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/NativeRNCNetInfo.js +new file mode 100644 +index 0000000..e3949ec +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/NativeRNCNetInfo.js +@@ -0,0 +1,10 @@ ++"use strict"; ++ ++Object.defineProperty(exports, "__esModule", { ++ value: true ++}); ++exports.default = void 0; ++var _reactNative = require("react-native"); ++/* eslint-disable @typescript-eslint/ban-types */ ++var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNCNetInfo'); ++//# sourceMappingURL=NativeRNCNetInfo.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/NativeRNCNetInfo.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/NativeRNCNetInfo.js.map +new file mode 100644 +index 0000000..86d23d4 +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/NativeRNCNetInfo.js.map +@@ -0,0 +1 @@ ++{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sources":["NativeRNCNetInfo.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-types */\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\n\nexport interface Spec extends TurboModule {\n configure: (config: Object) => void;\n getCurrentState(requestedInterface?: string): Promise;\n // Events\n addListener: (eventName: string) => void;\n removeListeners: (count: number) => void;\n}\n\nexport default TurboModuleRegistry.getEnforcing('RNCNetInfo');\n\n"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAFA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAYeC,gCAAmB,CAACC,YAAY,CAAO,YAAY,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js +index 166a58d..c5b4e66 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js +@@ -19,6 +19,5 @@ const DEFAULT_CONFIGURATION = { + shouldFetchWiFiSSID: false, + useNativeReachability: true + }; +-var _default = DEFAULT_CONFIGURATION; +-exports.default = _default; ++var _default = exports.default = DEFAULT_CONFIGURATION; + //# sourceMappingURL=defaultConfiguration.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js.map +index 03f9097..be92be9 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["defaultConfiguration.ts"],"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability"],"mappings":";;;;;;AAEA,MAAMA,qBAAiD,GAAG;AACxDC,EAAAA,eAAe,EAAE,0CADuC;AAExDC,EAAAA,kBAAkB,EAAE,MAFoC;AAGxDC,EAAAA,mBAAmB,EAAE,EAHmC;AAIxDC,EAAAA,gBAAgB,EAAGC,QAAD,IAChBC,OAAO,CAACC,OAAR,CAAgBF,QAAQ,CAACG,MAAT,KAAoB,GAApC,CALsD;AAMxDC,EAAAA,wBAAwB,EAAE,IAAI,IAN0B;AAMpB;AACpCC,EAAAA,uBAAuB,EAAE,KAAK,IAP0B;AAOpB;AACpCC,EAAAA,0BAA0B,EAAE,KAAK,IARuB;AAQjB;AACvCC,EAAAA,qBAAqB,EAAE,MAAe,IATkB;AAUxDC,EAAAA,mBAAmB,EAAE,KAVmC;AAWxDC,EAAAA,qBAAqB,EAAE;AAXiC,CAA1D;eAced,qB","sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: 'https://clients3.google.com/generate_204',\n reachabilityMethod: 'HEAD',\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 204),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: false,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION;"]} +\ No newline at end of file ++{"version":3,"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability","_default","exports","default"],"sources":["defaultConfiguration.ts"],"sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: 'https://clients3.google.com/generate_204',\n reachabilityMethod: 'HEAD',\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 204),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: false,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION;"],"mappings":";;;;;;AAEA,MAAMA,qBAAiD,GAAG;EACxDC,eAAe,EAAE,0CAA0C;EAC3DC,kBAAkB,EAAE,MAAM;EAC1BC,mBAAmB,EAAE,CAAC,CAAC;EACvBC,gBAAgB,EAAGC,QAAkB,IACnCC,OAAO,CAACC,OAAO,CAACF,QAAQ,CAACG,MAAM,KAAK,GAAG,CAAC;EAC1CC,wBAAwB,EAAE,CAAC,GAAG,IAAI;EAAE;EACpCC,uBAAuB,EAAE,EAAE,GAAG,IAAI;EAAE;EACpCC,0BAA0B,EAAE,EAAE,GAAG,IAAI;EAAE;EACvCC,qBAAqB,EAAEA,CAAA,KAAe,IAAI;EAC1CC,mBAAmB,EAAE,KAAK;EAC1BC,qBAAqB,EAAE;AACzB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEajB,qBAAqB"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js +index 410b7b0..a1e0456 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js +@@ -19,6 +19,5 @@ const DEFAULT_CONFIGURATION = { + shouldFetchWiFiSSID: true, + useNativeReachability: true + }; +-var _default = DEFAULT_CONFIGURATION; +-exports.default = _default; ++var _default = exports.default = DEFAULT_CONFIGURATION; + //# sourceMappingURL=defaultConfiguration.web.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js.map +index edf0c39..d6ee21a 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/defaultConfiguration.web.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["defaultConfiguration.web.ts"],"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability"],"mappings":";;;;;;AAEA,MAAMA,qBAAiD,GAAG;AACxDC,EAAAA,eAAe,EAAE,GADuC;AAExDC,EAAAA,kBAAkB,EAAE,MAFoC;AAGxDC,EAAAA,mBAAmB,EAAE,EAHmC;AAIxDC,EAAAA,gBAAgB,EAAGC,QAAD,IAChBC,OAAO,CAACC,OAAR,CAAgBF,QAAQ,CAACG,MAAT,KAAoB,GAApC,CALsD;AAMxDC,EAAAA,wBAAwB,EAAE,IAAI,IAN0B;AAMpB;AACpCC,EAAAA,uBAAuB,EAAE,KAAK,IAP0B;AAOpB;AACpCC,EAAAA,0BAA0B,EAAE,KAAK,IARuB;AAQjB;AACvCC,EAAAA,qBAAqB,EAAE,MAAe,IATkB;AAUxDC,EAAAA,mBAAmB,EAAE,IAVmC;AAWxDC,EAAAA,qBAAqB,EAAE;AAXiC,CAA1D;eAced,qB","sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: '/',\n reachabilityMethod: \"HEAD\",\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 200),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: true,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION"]} +\ No newline at end of file ++{"version":3,"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability","_default","exports","default"],"sources":["defaultConfiguration.web.ts"],"sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: '/',\n reachabilityMethod: \"HEAD\",\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 200),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: true,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION"],"mappings":";;;;;;AAEA,MAAMA,qBAAiD,GAAG;EACxDC,eAAe,EAAE,GAAG;EACpBC,kBAAkB,EAAE,MAAM;EAC1BC,mBAAmB,EAAE,CAAC,CAAC;EACvBC,gBAAgB,EAAGC,QAAkB,IACnCC,OAAO,CAACC,OAAO,CAACF,QAAQ,CAACG,MAAM,KAAK,GAAG,CAAC;EAC1CC,wBAAwB,EAAE,CAAC,GAAG,IAAI;EAAE;EACpCC,uBAAuB,EAAE,EAAE,GAAG,IAAI;EAAE;EACpCC,0BAA0B,EAAE,EAAE,GAAG,IAAI;EAAE;EACvCC,qBAAqB,EAAEA,CAAA,KAAe,IAAI;EAC1CC,mBAAmB,EAAE,IAAI;EACzBC,qBAAqB,EAAE;AACzB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEajB,qBAAqB"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js +index 45296d9..5169ed8 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js +@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; +- +-function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +- ++function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } ++function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } ++function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -15,57 +15,45 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope + * + * @format + */ ++ + class InternetReachability { + constructor(configuration, listener) { + _defineProperty(this, "_configuration", void 0); +- + _defineProperty(this, "_listener", void 0); +- + _defineProperty(this, "_isInternetReachable", undefined); +- + _defineProperty(this, "_currentInternetReachabilityCheckHandler", null); +- + _defineProperty(this, "_currentTimeoutHandle", null); +- + _defineProperty(this, "_setIsInternetReachable", isInternetReachable => { + if (this._isInternetReachable === isInternetReachable) { + return; + } +- + this._isInternetReachable = isInternetReachable; +- + this._listener(this._isInternetReachable); + }); +- + _defineProperty(this, "_setExpectsConnection", expectsConnection => { + // Cancel any pending check + if (this._currentInternetReachabilityCheckHandler !== null) { + this._currentInternetReachabilityCheckHandler.cancel(); +- + this._currentInternetReachabilityCheckHandler = null; +- } // Cancel any pending timeout +- +- ++ } ++ // Cancel any pending timeout + if (this._currentTimeoutHandle !== null) { + clearTimeout(this._currentTimeoutHandle); + this._currentTimeoutHandle = null; + } +- + if (expectsConnection && this._configuration.reachabilityShouldRun()) { + // If we expect a connection, start the process for finding if we have one + // Set the state to "null" if it was previously false + if (!this._isInternetReachable) { + this._setIsInternetReachable(null); +- } // Start a network request to check for internet +- +- ++ } ++ // Start a network request to check for internet + this._currentInternetReachabilityCheckHandler = this._checkInternetReachability(); + } else { + // If we don't expect a connection or don't run reachability check, just change the state to "false" + this._setIsInternetReachable(false); + } + }); +- + _defineProperty(this, "_checkInternetReachability", () => { + const controller = new AbortController(); + const responsePromise = fetch(this._configuration.reachabilityUrl, { +@@ -73,16 +61,17 @@ class InternetReachability { + method: this._configuration.reachabilityMethod, + cache: 'no-cache', + signal: controller.signal +- }); // Create promise that will reject after the request timeout has been reached ++ }); + ++ // Create promise that will reject after the request timeout has been reached + let timeoutHandle; +- const timeoutPromise = new Promise(() => { +- timeoutHandle = setTimeout(() => controller.abort('timedout'), this._configuration.reachabilityRequestTimeout); +- }); // Create promise that makes it possible to cancel a pending request through a reject +- // eslint-disable-next-line @typescript-eslint/no-empty-function ++ const timeoutPromise = new Promise((_, reject) => { ++ timeoutHandle = setTimeout(() => reject('timedout'), this._configuration.reachabilityRequestTimeout); ++ }); + ++ // Create promise that makes it possible to cancel a pending request through a reject ++ // eslint-disable-next-line @typescript-eslint/no-empty-function + let cancel = () => {}; +- + const cancelPromise = new Promise((_, reject) => { + cancel = () => reject('canceled'); + }); +@@ -90,18 +79,25 @@ class InternetReachability { + return this._configuration.reachabilityTest(response); + }).then(result => { + this._setIsInternetReachable(result); +- + const nextTimeoutInterval = this._isInternetReachable ? this._configuration.reachabilityLongTimeout : this._configuration.reachabilityShortTimeout; + this._currentTimeoutHandle = setTimeout(this._checkInternetReachability, nextTimeoutInterval); ++ }).catch(error => { ++ if (error !== 'canceled') { ++ this._setIsInternetReachable(false); ++ this._currentTimeoutHandle = setTimeout(this._checkInternetReachability, this._configuration.reachabilityShortTimeout); ++ } + }).catch(error => { + if ('canceled' === error) { + controller.abort(); + } else { ++ if ('timedout' === error) { ++ controller.abort(); ++ } + this._setIsInternetReachable(false); +- + this._currentTimeoutHandle = setTimeout(this._checkInternetReachability, this._configuration.reachabilityShortTimeout); + } +- }) // Clear request timeout and propagate any errors ++ }) ++ // Clear request timeout and propagate any errors + .then(() => { + clearTimeout(timeoutHandle); + }, error => { +@@ -113,7 +109,6 @@ class InternetReachability { + cancel + }; + }); +- + _defineProperty(this, "update", state => { + if (typeof state.isInternetReachable === 'boolean' && this._configuration.useNativeReachability) { + this._setIsInternetReachable(state.isInternetReachable); +@@ -121,31 +116,25 @@ class InternetReachability { + this._setExpectsConnection(state.isConnected); + } + }); +- + _defineProperty(this, "currentState", () => { + return this._isInternetReachable; + }); +- + _defineProperty(this, "tearDown", () => { + // Cancel any pending check + if (this._currentInternetReachabilityCheckHandler !== null) { + this._currentInternetReachabilityCheckHandler.cancel(); +- + this._currentInternetReachabilityCheckHandler = null; +- } // Cancel any pending timeout +- ++ } + ++ // Cancel any pending timeout + if (this._currentTimeoutHandle !== null) { + clearTimeout(this._currentTimeoutHandle); + this._currentTimeoutHandle = null; + } + }); +- + this._configuration = configuration; + this._listener = listener; + } +- + } +- + exports.default = InternetReachability; + //# sourceMappingURL=internetReachability.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js.map +index 6d12691..63bd2df 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/internetReachability.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["internetReachability.ts"],"names":["InternetReachability","constructor","configuration","listener","undefined","isInternetReachable","_isInternetReachable","_listener","expectsConnection","_currentInternetReachabilityCheckHandler","cancel","_currentTimeoutHandle","clearTimeout","_configuration","reachabilityShouldRun","_setIsInternetReachable","_checkInternetReachability","controller","AbortController","responsePromise","fetch","reachabilityUrl","headers","reachabilityHeaders","method","reachabilityMethod","cache","signal","timeoutHandle","timeoutPromise","Promise","setTimeout","abort","reachabilityRequestTimeout","cancelPromise","_","reject","promise","race","then","response","reachabilityTest","result","nextTimeoutInterval","reachabilityLongTimeout","reachabilityShortTimeout","catch","error","state","useNativeReachability","_setExpectsConnection","isConnected"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUe,MAAMA,oBAAN,CAA2B;AAOxCC,EAAAA,WAAW,CACTC,aADS,EAETC,QAFS,EAGT;AAAA;;AAAA;;AAAA,kDAPyDC,SAOzD;;AAAA,sEAN0F,IAM1F;;AAAA,mDALoE,IAKpE;;AAAA,qDAMAC,mBADgC,IAEvB;AACT,UAAI,KAAKC,oBAAL,KAA8BD,mBAAlC,EAAuD;AACrD;AACD;;AAED,WAAKC,oBAAL,GAA4BD,mBAA5B;;AACA,WAAKE,SAAL,CAAe,KAAKD,oBAApB;AACD,KAdC;;AAAA,mDAgB+BE,iBAAD,IAA6C;AAC3E;AACA,UAAI,KAAKC,wCAAL,KAAkD,IAAtD,EAA4D;AAC1D,aAAKA,wCAAL,CAA8CC,MAA9C;;AACA,aAAKD,wCAAL,GAAgD,IAAhD;AACD,OAL0E,CAM3E;;;AACA,UAAI,KAAKE,qBAAL,KAA+B,IAA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C,qBAAL,CAA2BF,KAAK,CAACG,WAAjC;AACD;AACF,KAjIC;;AAAA,0CAmIoB,MAAkC;AACtD,aAAO,KAAK7C,oBAAZ;AACD,KArIC;;AAAA,sCAuIgB,MAAY;AAC5B;AACA,UAAI,KAAKG,wCAAL,KAAkD,IAAtD,EAA4D;AAC1D,aAAKA,wCAAL,CAA8CC,MAA9C;;AACA,aAAKD,wCAAL,GAAgD,IAAhD;AACD,OAL2B,CAO5B;;;AACA,UAAI,KAAKE,qBAAL,KAA+B,IAAnC,EAAyC;AACvCC,QAAAA,YAAY,CAAC,KAAKD,qBAAN,CAAZ;AACA,aAAKA,qBAAL,GAA6B,IAA7B;AACD;AACF,KAnJC;;AACA,SAAKE,cAAL,GAAsBX,aAAtB;AACA,SAAKK,SAAL,GAAiBJ,QAAjB;AACD;;AAbuC","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport * as PrivateTypes from './privateTypes';\nimport * as Types from './types';\n\ninterface InternetReachabilityCheckHandler {\n promise: Promise;\n cancel: () => void;\n}\n\nexport default class InternetReachability {\n private _configuration: Types.NetInfoConfiguration;\n private _listener: PrivateTypes.NetInfoInternetReachabilityChangeListener;\n private _isInternetReachable: boolean | null | undefined = undefined;\n private _currentInternetReachabilityCheckHandler: InternetReachabilityCheckHandler | null = null;\n private _currentTimeoutHandle: ReturnType | null = null;\n\n constructor(\n configuration: Types.NetInfoConfiguration,\n listener: PrivateTypes.NetInfoInternetReachabilityChangeListener,\n ) {\n this._configuration = configuration;\n this._listener = listener;\n }\n\n private _setIsInternetReachable = (\n isInternetReachable: boolean | null,\n ): void => {\n if (this._isInternetReachable === isInternetReachable) {\n return;\n }\n\n this._isInternetReachable = isInternetReachable;\n this._listener(this._isInternetReachable);\n };\n\n private _setExpectsConnection = (expectsConnection: boolean | null): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n\n if (expectsConnection && this._configuration.reachabilityShouldRun()) {\n // If we expect a connection, start the process for finding if we have one\n // Set the state to \"null\" if it was previously false\n if (!this._isInternetReachable) {\n this._setIsInternetReachable(null);\n }\n // Start a network request to check for internet\n this._currentInternetReachabilityCheckHandler = this._checkInternetReachability();\n } else {\n // If we don't expect a connection or don't run reachability check, just change the state to \"false\"\n this._setIsInternetReachable(false);\n }\n };\n\n private _checkInternetReachability = (): InternetReachabilityCheckHandler => {\n const controller = new AbortController();\n\n const responsePromise = fetch(this._configuration.reachabilityUrl, {\n headers: this._configuration.reachabilityHeaders,\n method: this._configuration.reachabilityMethod,\n cache: 'no-cache',\n signal: controller.signal,\n });\n\n // Create promise that will reject after the request timeout has been reached\n let timeoutHandle: ReturnType;\n const timeoutPromise = new Promise((): void => {\n timeoutHandle = setTimeout(\n (): void => controller.abort('timedout'),\n this._configuration.reachabilityRequestTimeout,\n );\n });\n\n // Create promise that makes it possible to cancel a pending request through a reject\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n let cancel: () => void = (): void => {};\n const cancelPromise = new Promise((_, reject): void => {\n cancel = (): void => reject('canceled');\n });\n\n const promise = Promise.race([\n responsePromise,\n timeoutPromise,\n cancelPromise,\n ])\n .then(\n (response): Promise => {\n return this._configuration.reachabilityTest(response);\n },\n )\n .then(\n (result): void => {\n this._setIsInternetReachable(result);\n const nextTimeoutInterval = this._isInternetReachable\n ? this._configuration.reachabilityLongTimeout\n : this._configuration.reachabilityShortTimeout;\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n nextTimeoutInterval,\n );\n },\n )\n .catch(\n (error: Error | 'timedout' | 'canceled'): void => {\n if ('canceled' === error) {\n controller.abort();\n } else {\n this._setIsInternetReachable(false);\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n this._configuration.reachabilityShortTimeout,\n );\n }\n },\n )\n // Clear request timeout and propagate any errors\n .then(\n (): void => {\n clearTimeout(timeoutHandle);\n },\n (error: Error): void => {\n clearTimeout(timeoutHandle);\n throw error;\n },\n );\n\n return {\n promise,\n cancel,\n };\n };\n\n public update = (state: PrivateTypes.NetInfoNativeModuleState): void => {\n if (\n typeof state.isInternetReachable === 'boolean' &&\n this._configuration.useNativeReachability\n ) {\n this._setIsInternetReachable(state.isInternetReachable);\n } else {\n this._setExpectsConnection(state.isConnected);\n }\n };\n\n public currentState = (): boolean | null | undefined => {\n return this._isInternetReachable;\n };\n\n public tearDown = (): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n };\n}\n"]} +\ No newline at end of file ++{"version":3,"names":["InternetReachability","constructor","configuration","listener","_defineProperty","undefined","isInternetReachable","_isInternetReachable","_listener","expectsConnection","_currentInternetReachabilityCheckHandler","cancel","_currentTimeoutHandle","clearTimeout","_configuration","reachabilityShouldRun","_setIsInternetReachable","_checkInternetReachability","controller","AbortController","responsePromise","fetch","reachabilityUrl","headers","reachabilityHeaders","method","reachabilityMethod","cache","signal","timeoutHandle","timeoutPromise","Promise","_","reject","setTimeout","reachabilityRequestTimeout","cancelPromise","promise","race","then","response","reachabilityTest","result","nextTimeoutInterval","reachabilityLongTimeout","reachabilityShortTimeout","catch","error","abort","state","useNativeReachability","_setExpectsConnection","isConnected","exports","default"],"sources":["internetReachability.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport * as PrivateTypes from './privateTypes';\nimport * as Types from './types';\n\ninterface InternetReachabilityCheckHandler {\n promise: Promise;\n cancel: () => void;\n}\n\nexport default class InternetReachability {\n private _configuration: Types.NetInfoConfiguration;\n private _listener: PrivateTypes.NetInfoInternetReachabilityChangeListener;\n private _isInternetReachable: boolean | null | undefined = undefined;\n private _currentInternetReachabilityCheckHandler: InternetReachabilityCheckHandler | null =\n null;\n private _currentTimeoutHandle: ReturnType | null = null;\n\n constructor(\n configuration: Types.NetInfoConfiguration,\n listener: PrivateTypes.NetInfoInternetReachabilityChangeListener,\n ) {\n this._configuration = configuration;\n this._listener = listener;\n }\n\n private _setIsInternetReachable = (\n isInternetReachable: boolean | null,\n ): void => {\n if (this._isInternetReachable === isInternetReachable) {\n return;\n }\n\n this._isInternetReachable = isInternetReachable;\n this._listener(this._isInternetReachable);\n };\n\n private _setExpectsConnection = (expectsConnection: boolean | null): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n\n if (expectsConnection && this._configuration.reachabilityShouldRun()) {\n // If we expect a connection, start the process for finding if we have one\n // Set the state to \"null\" if it was previously false\n if (!this._isInternetReachable) {\n this._setIsInternetReachable(null);\n }\n // Start a network request to check for internet\n this._currentInternetReachabilityCheckHandler =\n this._checkInternetReachability();\n } else {\n // If we don't expect a connection or don't run reachability check, just change the state to \"false\"\n this._setIsInternetReachable(false);\n }\n };\n\n private _checkInternetReachability = (): InternetReachabilityCheckHandler => {\n const controller = new AbortController();\n\n const responsePromise = fetch(this._configuration.reachabilityUrl, {\n headers: this._configuration.reachabilityHeaders,\n method: this._configuration.reachabilityMethod,\n cache: 'no-cache',\n signal: controller.signal,\n });\n\n // Create promise that will reject after the request timeout has been reached\n let timeoutHandle: ReturnType;\n const timeoutPromise = new Promise((_, reject): void => {\n timeoutHandle = setTimeout(\n (): void => reject('timedout'),\n this._configuration.reachabilityRequestTimeout,\n );\n });\n\n // Create promise that makes it possible to cancel a pending request through a reject\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n let cancel: () => void = (): void => {};\n const cancelPromise = new Promise((_, reject): void => {\n cancel = (): void => reject('canceled');\n });\n\n const promise = Promise.race([\n responsePromise,\n timeoutPromise,\n cancelPromise,\n ])\n .then((response): Promise => {\n return this._configuration.reachabilityTest(response);\n })\n .then((result): void => {\n this._setIsInternetReachable(result);\n const nextTimeoutInterval = this._isInternetReachable\n ? this._configuration.reachabilityLongTimeout\n : this._configuration.reachabilityShortTimeout;\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n nextTimeoutInterval,\n );\n })\n .catch((error: Error | 'timedout' | 'canceled'): void => {\n if (error !== 'canceled') {\n this._setIsInternetReachable(false);\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n this._configuration.reachabilityShortTimeout,\n );\n }\n })\n .catch(\n (error: Error | 'timedout' | 'canceled'): void => {\n if ('canceled' === error) {\n controller.abort();\n } else {\n if ('timedout' === error) {\n controller.abort();\n }\n \n this._setIsInternetReachable(false);\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n this._configuration.reachabilityShortTimeout,\n );\n }\n },\n )\n // Clear request timeout and propagate any errors\n .then(\n (): void => {\n clearTimeout(timeoutHandle);\n },\n (error: Error): void => {\n clearTimeout(timeoutHandle);\n throw error;\n },\n );\n\n return {\n promise,\n cancel,\n };\n };\n\n public update = (state: PrivateTypes.NetInfoNativeModuleState): void => {\n if (\n typeof state.isInternetReachable === 'boolean' &&\n this._configuration.useNativeReachability\n ) {\n this._setIsInternetReachable(state.isInternetReachable);\n } else {\n this._setExpectsConnection(state.isConnected);\n }\n };\n\n public currentState = (): boolean | null | undefined => {\n return this._isInternetReachable;\n };\n\n public tearDown = (): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n };\n}\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUe,MAAMA,oBAAoB,CAAC;EAQxCC,WAAWA,CACTC,aAAyC,EACzCC,QAAgE,EAChE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA,+BARyDC,SAAS;IAAAD,eAAA,mDAElE,IAAI;IAAAA,eAAA,gCACgE,IAAI;IAAAA,eAAA,kCAWxEE,mBAAmC,IAC1B;MACT,IAAI,IAAI,CAACC,oBAAoB,KAAKD,mBAAmB,EAAE;QACrD;MACF;MAEA,IAAI,CAACC,oBAAoB,GAAGD,mBAAmB;MAC/C,IAAI,CAACE,SAAS,CAAC,IAAI,CAACD,oBAAoB,CAAC;IAC3C,CAAC;IAAAH,eAAA,gCAEgCK,iBAAiC,IAAW;MAC3E;MACA,IAAI,IAAI,CAACC,wCAAwC,KAAK,IAAI,EAAE;QAC1D,IAAI,CAACA,wCAAwC,CAACC,MAAM,CAAC,CAAC;QACtD,IAAI,CAACD,wCAAwC,GAAG,IAAI;MACtD;MACA;MACA,IAAI,IAAI,CAACE,qBAAqB,KAAK,IAAI,EAAE;QACvCC,YAAY,CAAC,IAAI,CAACD,qBAAqB,CAAC;QACxC,IAAI,CAACA,qBAAqB,GAAG,IAAI;MACnC;MAEA,IAAIH,iBAAiB,IAAI,IAAI,CAACK,cAAc,CAACC,qBAAqB,CAAC,CAAC,EAAE;QACpE;QACA;QACA,IAAI,CAAC,IAAI,CAACR,oBAAoB,EAAE;UAC9B,IAAI,CAACS,uBAAuB,CAAC,IAAI,CAAC;QACpC;QACA;QACA,IAAI,CAACN,wCAAwC,GAC3C,IAAI,CAACO,0BAA0B,CAAC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AK,CAAC3C,mBAAmB,CAAC;MACzD,CAAC,MAAM;QACL,IAAI,CAAC6C,qBAAqB,CAACF,KAAK,CAACG,WAAW,CAAC;MAC/C;IACF,CAAC;IAAAhD,eAAA,uBAEqB,MAAkC;MACtD,OAAO,IAAI,CAACG,oBAAoB;IAClC,CAAC;IAAAH,eAAA,mBAEiB,MAAY;MAC5B;MACA,IAAI,IAAI,CAACM,wCAAwC,KAAK,IAAI,EAAE;QAC1D,IAAI,CAACA,wCAAwC,CAACC,MAAM,CAAC,CAAC;QACtD,IAAI,CAACD,wCAAwC,GAAG,IAAI;MACtD;;MAEA;MACA,IAAI,IAAI,CAACE,qBAAqB,KAAK,IAAI,EAAE;QACvCC,YAAY,CAAC,IAAI,CAACD,qBAAqB,CAAC;QACxC,IAAI,CAACA,qBAAqB,GAAG,IAAI;MACnC;IACF,CAAC;IA5JC,IAAI,CAACE,cAAc,GAAGZ,aAAa;IACnC,IAAI,CAACM,SAAS,GAAGL,QAAQ;EAC3B;AA2JF;AAACkD,OAAA,CAAAC,OAAA,GAAAtD,oBAAA"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js +index 7a50da5..cb7d968 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js +@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; +- + var _reactNative = require("react-native"); +- + var _nativeModule = _interopRequireDefault(require("./nativeModule")); +- + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +- + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -19,6 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de + * + * @format + */ ++ + // Produce an error if we don't have the native module + if (!_nativeModule.default) { + throw new Error(`@react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps: +@@ -31,27 +28,26 @@ if (!_nativeModule.default) { + + If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo`); + } ++ + /** + * We export the native interface in this way to give easy shared access to it between the + * JavaScript code and the tests + */ +- +- + let nativeEventEmitter = null; +-var _default = { ..._nativeModule.default, +- ++var _default = exports.default = { ++ configure: _nativeModule.default.configure, ++ addListener: _nativeModule.default.addListener, ++ removeListeners: _nativeModule.default.removeListeners, ++ getCurrentState: _nativeModule.default.getCurrentState, + get eventEmitter() { + if (!nativeEventEmitter) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + /// @ts-ignore + nativeEventEmitter = new _reactNative.NativeEventEmitter(_nativeModule.default); +- } // eslint-disable-next-line @typescript-eslint/ban-ts-comment ++ } ++ // eslint-disable-next-line @typescript-eslint/ban-ts-comment + /// @ts-ignore +- +- + return nativeEventEmitter; + } +- + }; +-exports.default = _default; + //# sourceMappingURL=nativeInterface.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js.map +index 1e7ac57..33b4bc0 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeInterface.ts"],"names":["RNCNetInfo","Error","nativeEventEmitter","eventEmitter","NativeEventEmitter"],"mappings":";;;;;;;AASA;;AACA;;;;AAVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA,IAAI,CAACA,qBAAL,EAAiB;AACf,QAAM,IAAIC,KAAJ,CAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8IARQ,CAAN;AASD;AAED;AACA;AACA;AACA;;;AACA,IAAIC,kBAA6C,GAAG,IAApD;eACe,EACb,GAAGF,qBADU;;AAEb,MAAIG,YAAJ,GAAuC;AACrC,QAAI,CAACD,kBAAL,EAAyB;AACvB;AACA;AACAA,MAAAA,kBAAkB,GAAG,IAAIE,+BAAJ,CAAuBJ,qBAAvB,CAArB;AACD,KALoC,CAMrC;AACA;;;AACA,WAAOE,kBAAP;AACD;;AAXY,C","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\n\n// Produce an error if we don't have the native module\nif (!RNCNetInfo) {\n throw new Error(`@react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps:\n\n• Run \\`react-native link @react-native-community/netinfo\\` in the project root.\n• Rebuild and re-run the app.\n• If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.\n* If you are getting this error while unit testing you need to mock the native module. Follow the guide in the README.\n\nIf none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo`);\n}\n\n/**\n * We export the native interface in this way to give easy shared access to it between the\n * JavaScript code and the tests\n */\nlet nativeEventEmitter: NativeEventEmitter | null = null;\nexport default {\n ...RNCNetInfo,\n get eventEmitter(): NativeEventEmitter {\n if (!nativeEventEmitter) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n nativeEventEmitter = new NativeEventEmitter(RNCNetInfo);\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n return nativeEventEmitter;\n },\n};\n"]} +\ No newline at end of file ++{"version":3,"names":["_reactNative","require","_nativeModule","_interopRequireDefault","obj","__esModule","default","RNCNetInfo","Error","nativeEventEmitter","_default","exports","configure","addListener","removeListeners","getCurrentState","eventEmitter","NativeEventEmitter"],"sources":["nativeInterface.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\n\n// Produce an error if we don't have the native module\nif (!RNCNetInfo) {\n throw new Error(`@react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps:\n\n• Run \\`react-native link @react-native-community/netinfo\\` in the project root.\n• Rebuild and re-run the app.\n• If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.\n* If you are getting this error while unit testing you need to mock the native module. Follow the guide in the README.\n\nIf none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo`);\n}\n\n/**\n * We export the native interface in this way to give easy shared access to it between the\n * JavaScript code and the tests\n */\nlet nativeEventEmitter: NativeEventEmitter | null = null;\n\nexport default {\n configure: RNCNetInfo.configure,\n addListener: RNCNetInfo.addListener,\n removeListeners: RNCNetInfo.removeListeners,\n getCurrentState: RNCNetInfo.getCurrentState,\n get eventEmitter(): NativeEventEmitter {\n if (!nativeEventEmitter) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n nativeEventEmitter = new NativeEventEmitter(RNCNetInfo);\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n return nativeEventEmitter;\n },\n};\n"],"mappings":";;;;;;AASA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAwC,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAVxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA,IAAI,CAACG,qBAAU,EAAE;EACf,MAAM,IAAIC,KAAK,CAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8IAA8I,CAAC;AAC/I;;AAEA;AACA;AACA;AACA;AACA,IAAIC,kBAA6C,GAAG,IAAI;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAL,OAAA,GAE1C;EACbM,SAAS,EAAEL,qBAAU,CAACK,SAAS;EAC/BC,WAAW,EAAEN,qBAAU,CAACM,WAAW;EACnCC,eAAe,EAAEP,qBAAU,CAACO,eAAe;EAC3CC,eAAe,EAAER,qBAAU,CAACQ,eAAe;EAC3C,IAAIC,YAAYA,CAAA,EAAuB;IACrC,IAAI,CAACP,kBAAkB,EAAE;MACvB;MACA;MACAA,kBAAkB,GAAG,IAAIQ,+BAAkB,CAACV,qBAAU,CAAC;IACzD;IACA;IACA;IACA,OAAOE,kBAAkB;EAC3B;AACF,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js +index 5e77388..d591606 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js +@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; +- + var _reactNative = require("react-native"); +- + var _nativeModule = _interopRequireDefault(require("./nativeModule")); +- + var _privateTypes = require("./privateTypes"); +- + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +- + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -21,14 +16,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de + * + * @format + */ +-const nativeEventEmitter = new _reactNative.NativeEventEmitter(); // Listen to connectivity events + ++const nativeEventEmitter = new _reactNative.NativeEventEmitter(); ++ ++// Listen to connectivity events + _nativeModule.default.addListener(_privateTypes.DEVICE_CONNECTIVITY_EVENT, event => { + nativeEventEmitter.emit(_privateTypes.DEVICE_CONNECTIVITY_EVENT, event); + }); +- +-var _default = { ..._nativeModule.default, ++var _default = exports.default = { ++ ..._nativeModule.default, + eventEmitter: nativeEventEmitter + }; +-exports.default = _default; + //# sourceMappingURL=nativeInterface.web.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js.map +index 9fc4a6d..9b6f4b4 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeInterface.web.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeInterface.web.ts"],"names":["nativeEventEmitter","NativeEventEmitter","RNCNetInfo","addListener","DEVICE_CONNECTIVITY_EVENT","event","emit","eventEmitter"],"mappings":";;;;;;;AASA;;AACA;;AACA;;;;AAXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA,MAAMA,kBAAkB,GAAG,IAAIC,+BAAJ,EAA3B,C,CAEA;;AACAC,sBAAWC,WAAX,CACEC,uCADF,EAEGC,KAAD,IAAiB;AACfL,EAAAA,kBAAkB,CAACM,IAAnB,CAAwBF,uCAAxB,EAAmDC,KAAnD;AACD,CAJH;;eAOe,EACb,GAAGH,qBADU;AAEbK,EAAAA,YAAY,EAAEP;AAFD,C","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\nimport {DEVICE_CONNECTIVITY_EVENT} from './privateTypes';\n\nconst nativeEventEmitter = new NativeEventEmitter();\n\n// Listen to connectivity events\nRNCNetInfo.addListener(\n DEVICE_CONNECTIVITY_EVENT,\n (event): void => {\n nativeEventEmitter.emit(DEVICE_CONNECTIVITY_EVENT, event);\n },\n);\n\nexport default {\n ...RNCNetInfo,\n eventEmitter: nativeEventEmitter,\n};\n"]} +\ No newline at end of file ++{"version":3,"names":["_reactNative","require","_nativeModule","_interopRequireDefault","_privateTypes","obj","__esModule","default","nativeEventEmitter","NativeEventEmitter","RNCNetInfo","addListener","DEVICE_CONNECTIVITY_EVENT","event","emit","_default","exports","eventEmitter"],"sources":["nativeInterface.web.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\nimport {DEVICE_CONNECTIVITY_EVENT} from './privateTypes';\n\nconst nativeEventEmitter = new NativeEventEmitter();\n\n// Listen to connectivity events\nRNCNetInfo.addListener(DEVICE_CONNECTIVITY_EVENT, (event): void => {\n nativeEventEmitter.emit(DEVICE_CONNECTIVITY_EVENT, event);\n});\n\nexport default {\n ...RNCNetInfo,\n eventEmitter: nativeEventEmitter,\n};\n"],"mappings":";;;;;;AASA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAAyD,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAXzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,MAAMG,kBAAkB,GAAG,IAAIC,+BAAkB,CAAC,CAAC;;AAEnD;AACAC,qBAAU,CAACC,WAAW,CAACC,uCAAyB,EAAGC,KAAK,IAAW;EACjEL,kBAAkB,CAACM,IAAI,CAACF,uCAAyB,EAAEC,KAAK,CAAC;AAC3D,CAAC,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAT,OAAA,GAEY;EACb,GAAGG,qBAAU;EACbO,YAAY,EAAET;AAChB,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js +index 8fd237d..6d06932 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js +@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; +- + var _reactNative = require("react-native"); +- + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -15,7 +13,15 @@ var _reactNative = require("react-native"); + * + * @format + */ +-const RNCNetInfo = _reactNative.NativeModules.RNCNetInfo; +-var _default = RNCNetInfo; +-exports.default = _default; ++ ++// React Native sets `__turboModuleProxy` on global when TurboModules are enabled. ++// Currently, this is the recommended way to detect TurboModules. ++// https://reactnative.dev/docs/the-new-architecture/backward-compatibility-turbomodules#unify-the-javascript-specs ++// eslint-disable-next-line @typescript-eslint/ban-ts-comment ++// @ts-ignore ++const isTurboModuleEnabled = global.__turboModuleProxy != null; ++const RNCNetInfo = isTurboModuleEnabled ? ++// eslint-disable-next-line @typescript-eslint/no-var-requires ++require('./NativeRNCNetInfo').default : _reactNative.NativeModules.RNCNetInfo; ++var _default = exports.default = RNCNetInfo; + //# sourceMappingURL=nativeModule.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js.map +index dcf6159..5d5bb50 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeModule.ts"],"names":["RNCNetInfo","NativeModules"],"mappings":";;;;;;;AASA;;AATA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA,MAAMA,UAA+B,GAAGC,2BAAcD,UAAtD;eAEeA,U","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeModules} from 'react-native';\nimport {NetInfoNativeModule} from './privateTypes';\n\nconst RNCNetInfo: NetInfoNativeModule = NativeModules.RNCNetInfo;\n\nexport default RNCNetInfo;\n"]} +\ No newline at end of file ++{"version":3,"names":["_reactNative","require","isTurboModuleEnabled","global","__turboModuleProxy","RNCNetInfo","default","NativeModules","_default","exports"],"sources":["nativeModule.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeModules} from 'react-native';\nimport {NetInfoNativeModule} from './privateTypes';\n\n// React Native sets `__turboModuleProxy` on global when TurboModules are enabled.\n// Currently, this is the recommended way to detect TurboModules.\n// https://reactnative.dev/docs/the-new-architecture/backward-compatibility-turbomodules#unify-the-javascript-specs\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst isTurboModuleEnabled = global.__turboModuleProxy != null;\n\nconst RNCNetInfo: NetInfoNativeModule = isTurboModuleEnabled\n ? // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('./NativeRNCNetInfo').default\n : NativeModules.RNCNetInfo;\n\nexport default RNCNetInfo;\n"],"mappings":";;;;;;AASA,IAAAA,YAAA,GAAAC,OAAA;AATA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,UAA+B,GAAGH,oBAAoB;AACxD;AACAD,OAAO,CAAC,oBAAoB,CAAC,CAACK,OAAO,GACrCC,0BAAa,CAACF,UAAU;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAH,OAAA,GAEdD,UAAU"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js +index ad66cbe..0da582c 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js +@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; +- + var _privateTypes = require("./privateTypes"); +- + var _types = require("./types"); +- + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -17,12 +14,23 @@ var _types = require("./types"); + * + * @format + */ ++ ++// See https://wicg.github.io/netinfo/#dom-connectiontype ++ ++// See https://wicg.github.io/netinfo/#dom-effectiveconnectiontype ++ ++// https://wicg.github.io/netinfo/#dom-networkinformation-savedata ++ ++// Create (optional) connection APIs on navigator ++ + // Use a constant test of this form because in SSR on next.js, optional chaining is not sufficient, + // but this test correctly detects that window is not available and allows for conditionals before access +-const isWindowPresent = typeof window !== 'undefined'; // Check if window exists and if the browser supports the connection API ++const isWindowPresent = typeof window !== 'undefined'; + +-const connection = isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS') ? window.navigator.connection || window.navigator.mozConnection || window.navigator.webkitConnection : undefined; // Map browser types to native types ++// Check if window exists and if the browser supports the connection API ++const connection = isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS') ? window.navigator.connection || window.navigator.mozConnection || window.navigator.webkitConnection : undefined; + ++// Map browser types to native types + const typeMapping = { + bluetooth: _types.NetInfoStateType.bluetooth, + cellular: _types.NetInfoStateType.cellular, +@@ -39,17 +47,20 @@ const effectiveTypeMapping = { + '3g': _types.NetInfoCellularGeneration['3g'], + '4g': _types.NetInfoCellularGeneration['4g'], + 'slow-2g': _types.NetInfoCellularGeneration['2g'] +-}; // Determine current state of connection ++}; + ++// Determine current state of connection + const getCurrentState = _requestedInterface => { + const isConnected = isWindowPresent ? navigator.onLine : false; + const baseState = { + isInternetReachable: null +- }; // If we don't have a connection object, we return minimal information ++ }; + ++ // If we don't have a connection object, we return minimal information + if (!connection) { + if (isConnected) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type: _types.NetInfoStateType.other, + details: { +@@ -58,22 +69,22 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } +- +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: false, + isInternetReachable: false, + type: _types.NetInfoStateType.none, + details: null + }; + return state; +- } // Otherwise try to return detailed information +- ++ } + ++ // Otherwise try to return detailed information + const isConnectionExpensive = connection.saveData; + const type = connection.type ? typeMapping[connection.type] : isConnected ? _types.NetInfoStateType.other : _types.NetInfoStateType.unknown; +- + if (type === _types.NetInfoStateType.bluetooth) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -82,7 +93,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === _types.NetInfoStateType.cellular) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -93,7 +105,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === _types.NetInfoStateType.ethernet) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -104,7 +117,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === _types.NetInfoStateType.wifi) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -122,7 +136,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === _types.NetInfoStateType.wimax) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -131,7 +146,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === _types.NetInfoStateType.none) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: false, + isInternetReachable: false, + type, +@@ -139,7 +155,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === _types.NetInfoStateType.unknown) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected, + isInternetReachable: null, + type, +@@ -147,8 +164,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } +- +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type: _types.NetInfoStateType.other, + details: { +@@ -157,7 +174,6 @@ const getCurrentState = _requestedInterface => { + }; + return state; + }; +- + const handlers = []; + const nativeHandlers = []; + const RNCNetInfo = { +@@ -168,7 +184,6 @@ const RNCNetInfo = { + const nativeHandler = () => { + handler(getCurrentState()); + }; +- + if (connection) { + connection.addEventListener('change', nativeHandler); + } else { +@@ -176,16 +191,15 @@ const RNCNetInfo = { + window.addEventListener('online', nativeHandler, false); + window.addEventListener('offline', nativeHandler, false); + } +- } // Remember handlers +- ++ } + ++ // Remember handlers + handlers.push(handler); + nativeHandlers.push(nativeHandler); + break; + } + } + }, +- + removeListeners(type, handler) { + switch (type) { + case _privateTypes.DEVICE_CONNECTIVITY_EVENT: +@@ -193,7 +207,6 @@ const RNCNetInfo = { + // Get native handler + const index = handlers.indexOf(handler); + const nativeHandler = nativeHandlers[index]; +- + if (connection) { + connection.removeEventListener('change', nativeHandler); + } else { +@@ -201,25 +214,21 @@ const RNCNetInfo = { + window.removeEventListener('online', nativeHandler); + window.removeEventListener('offline', nativeHandler); + } +- } // Remove handlers +- ++ } + ++ // Remove handlers + handlers.splice(index, 1); + nativeHandlers.splice(index, 1); + break; + } + } + }, +- + async getCurrentState(requestedInterface) { + return getCurrentState(requestedInterface); + }, +- + configure() { + return; + } +- + }; +-var _default = RNCNetInfo; +-exports.default = _default; ++var _default = exports.default = RNCNetInfo; + //# sourceMappingURL=nativeModule.web.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js.map +index 7dcfca9..a0632f9 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/nativeModule.web.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeModule.web.ts"],"names":["isWindowPresent","window","connection","hasOwnProperty","navigator","mozConnection","webkitConnection","undefined","typeMapping","bluetooth","NetInfoStateType","cellular","ethernet","none","other","unknown","wifi","wimax","mixed","effectiveTypeMapping","NetInfoCellularGeneration","getCurrentState","_requestedInterface","isConnected","onLine","baseState","isInternetReachable","state","type","details","isConnectionExpensive","saveData","cellularGeneration","effectiveType","carrier","ipAddress","subnet","ssid","bssid","strength","frequency","linkSpeed","rxLinkSpeed","txLinkSpeed","handlers","nativeHandlers","RNCNetInfo","addListener","handler","DEVICE_CONNECTIVITY_EVENT","nativeHandler","addEventListener","push","removeListeners","index","indexOf","removeEventListener","splice","requestedInterface","configure"],"mappings":";;;;;;;AASA;;AAKA;;AAdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAiEA;AACA;AACA,MAAMA,eAAe,GAAG,OAAOC,MAAP,KAAkB,WAA1C,C,CAEA;;AACA,MAAMC,UAAU,GAAIF,eAAe,IAAI,CAACC,MAAM,CAACE,cAAP,CAAsB,OAAtB,CAApB,IAAsD,CAACF,MAAM,CAACE,cAAP,CAAsB,OAAtB,CAAxD,GACfF,MAAM,CAACG,SAAP,CAAiBF,UAAjB,IACAD,MAAM,CAACG,SAAP,CAAiBC,aADjB,IAEAJ,MAAM,CAACG,SAAP,CAAiBE,gBAHF,GAIfC,SAJJ,C,CAMA;;AACA,MAAMC,WAAqD,GAAG;AAC5DC,EAAAA,SAAS,EAAEC,wBAAiBD,SADgC;AAE5DE,EAAAA,QAAQ,EAAED,wBAAiBC,QAFiC;AAG5DC,EAAAA,QAAQ,EAAEF,wBAAiBE,QAH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D,WAFD,MAEO;AACL,gBAAIlD,eAAJ,EAAqB;AACnBC,cAAAA,MAAM,CAACuD,mBAAP,CAA2B,QAA3B,EAAqCN,aAArC;AACAjD,cAAAA,MAAM,CAACuD,mBAAP,CAA2B,SAA3B,EAAsCN,aAAtC;AACD;AACF,WAZ6B,CAc9B;;;AACAN,UAAAA,QAAQ,CAACa,MAAT,CAAgBH,KAAhB,EAAuB,CAAvB;AACAT,UAAAA,cAAc,CAACY,MAAf,CAAsBH,KAAtB,EAA6B,CAA7B;AAEA;AACD;AApBH;AAsBD,GAjDqC;;AAmDtC,QAAMjC,eAAN,CAAsBqC,kBAAtB,EAA6E;AAC3E,WAAOrC,eAAe,CAACqC,kBAAD,CAAtB;AACD,GArDqC;;AAuDtCC,EAAAA,SAAS,GAAS;AAChB;AACD;;AAzDqC,CAAxC;eA4Deb,U","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {\n DEVICE_CONNECTIVITY_EVENT,\n NetInfoNativeModule,\n NetInfoNativeModuleState,\n} from './privateTypes';\nimport {\n NetInfoBluetoothState,\n NetInfoCellularGeneration,\n NetInfoCellularState,\n NetInfoEthernetState,\n NetInfoNoConnectionState,\n NetInfoOtherState,\n NetInfoState,\n NetInfoStateType,\n NetInfoUnknownState,\n NetInfoWifiState,\n NetInfoWimaxState,\n} from './types';\n\n// See https://wicg.github.io/netinfo/#dom-connectiontype\ntype ConnectionType =\n | 'bluetooth'\n | 'cellular'\n | 'ethernet'\n | 'mixed'\n | 'none'\n | 'other'\n | 'unknown'\n | 'wifi'\n | 'wimax';\n\n// See https://wicg.github.io/netinfo/#dom-effectiveconnectiontype\ntype ConnectionEffectiveType = '2g' | '3g' | '4g' | 'slow-2g';\n\n// https://wicg.github.io/netinfo/#dom-networkinformation-savedata\ntype ConnectionSaveData = boolean;\n\ninterface Events {\n change: Event;\n}\n\ninterface Connection {\n type: ConnectionType;\n effectiveType: ConnectionEffectiveType;\n saveData: ConnectionSaveData;\n addEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\n// Create (optional) connection APIs on navigator\ndeclare global {\n interface Navigator {\n connection?: Connection;\n mozConnection?: Connection;\n webkitConnection?: Connection;\n }\n}\n// Use a constant test of this form because in SSR on next.js, optional chaining is not sufficient,\n// but this test correctly detects that window is not available and allows for conditionals before access\nconst isWindowPresent = typeof window !== 'undefined';\n\n// Check if window exists and if the browser supports the connection API\nconst connection = (isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS'))\n ? window.navigator.connection ||\n window.navigator.mozConnection ||\n window.navigator.webkitConnection\n : undefined;\n\n// Map browser types to native types\nconst typeMapping: Record = {\n bluetooth: NetInfoStateType.bluetooth,\n cellular: NetInfoStateType.cellular,\n ethernet: NetInfoStateType.ethernet,\n none: NetInfoStateType.none,\n other: NetInfoStateType.other,\n unknown: NetInfoStateType.unknown,\n wifi: NetInfoStateType.wifi,\n wimax: NetInfoStateType.wimax,\n mixed: NetInfoStateType.other,\n};\nconst effectiveTypeMapping: Record<\n ConnectionEffectiveType,\n NetInfoCellularGeneration\n> = {\n '2g': NetInfoCellularGeneration['2g'],\n '3g': NetInfoCellularGeneration['3g'],\n '4g': NetInfoCellularGeneration['4g'],\n 'slow-2g': NetInfoCellularGeneration['2g'],\n};\n\n// Determine current state of connection\nconst getCurrentState = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _requestedInterface?: string,\n): Pick> => {\n const isConnected = isWindowPresent ? navigator.onLine : false;\n const baseState = {\n isInternetReachable: null,\n };\n\n // If we don't have a connection object, we return minimal information\n if (!connection) {\n if (isConnected) {\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive: false,\n },\n };\n return state;\n }\n\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type: NetInfoStateType.none,\n details: null,\n };\n return state;\n }\n\n // Otherwise try to return detailed information\n const isConnectionExpensive = connection.saveData;\n const type: NetInfoStateType = connection.type\n ? typeMapping[connection.type]\n : isConnected\n ? NetInfoStateType.other\n : NetInfoStateType.unknown;\n\n if (type === NetInfoStateType.bluetooth) {\n const state: NetInfoBluetoothState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.cellular) {\n const state: NetInfoCellularState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n cellularGeneration:\n effectiveTypeMapping[connection.effectiveType] || null,\n carrier: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.ethernet) {\n const state: NetInfoEthernetState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ipAddress: null,\n subnet: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wifi) {\n const state: NetInfoWifiState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ssid: null,\n bssid: null,\n strength: null,\n ipAddress: null,\n subnet: null,\n frequency: null,\n linkSpeed: null,\n rxLinkSpeed: null,\n txLinkSpeed: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wimax) {\n const state: NetInfoWimaxState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.none) {\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type,\n details: null,\n };\n return state;\n } else if (type === NetInfoStateType.unknown) {\n const state: NetInfoUnknownState = {\n ...baseState,\n isConnected,\n isInternetReachable: null,\n type,\n details: null,\n };\n return state;\n }\n\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n};\n\nconst handlers: ((state: NetInfoNativeModuleState) => void)[] = [];\nconst nativeHandlers: (() => void)[] = [];\n\nconst RNCNetInfo: NetInfoNativeModule = {\n addListener(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n const nativeHandler = (): void => {\n handler(getCurrentState());\n };\n\n if (connection) {\n connection.addEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.addEventListener('online', nativeHandler, false);\n window.addEventListener('offline', nativeHandler, false);\n }\n }\n\n // Remember handlers\n handlers.push(handler);\n nativeHandlers.push(nativeHandler);\n\n break;\n }\n }\n },\n\n removeListeners(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n // Get native handler\n const index = handlers.indexOf(handler);\n const nativeHandler = nativeHandlers[index];\n\n if (connection) {\n connection.removeEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.removeEventListener('online', nativeHandler);\n window.removeEventListener('offline', nativeHandler);\n }\n }\n\n // Remove handlers\n handlers.splice(index, 1);\n nativeHandlers.splice(index, 1);\n\n break;\n }\n }\n },\n\n async getCurrentState(requestedInterface): Promise {\n return getCurrentState(requestedInterface);\n },\n\n configure(): void {\n return;\n },\n};\n\nexport default RNCNetInfo;\n"]} +\ No newline at end of file ++{"version":3,"names":["_privateTypes","require","_types","isWindowPresent","window","connection","hasOwnProperty","navigator","mozConnection","webkitConnection","undefined","typeMapping","bluetooth","NetInfoStateType","cellular","ethernet","none","other","unknown","wifi","wimax","mixed","effectiveTypeMapping","NetInfoCellularGeneration","getCurrentState","_requestedInterface","isConnected","onLine","baseState","isInternetReachable","state","type","details","isConnectionExpensive","saveData","cellularGeneration","effectiveType","carrier","ipAddress","subnet","ssid","bssid","strength","frequency","linkSpeed","rxLinkSpeed","txLinkSpeed","handlers","nativeHandlers","RNCNetInfo","addListener","handler","DEVICE_CONNECTIVITY_EVENT","nativeHandler","addEventListener","push","removeListeners","index","indexOf","removeEventListener","splice","requestedInterface","configure","_default","exports","default"],"sources":["nativeModule.web.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {\n DEVICE_CONNECTIVITY_EVENT,\n NetInfoNativeModule,\n NetInfoNativeModuleState,\n} from './privateTypes';\nimport {\n NetInfoBluetoothState,\n NetInfoCellularGeneration,\n NetInfoCellularState,\n NetInfoEthernetState,\n NetInfoNoConnectionState,\n NetInfoOtherState,\n NetInfoState,\n NetInfoStateType,\n NetInfoUnknownState,\n NetInfoWifiState,\n NetInfoWimaxState,\n} from './types';\n\n// See https://wicg.github.io/netinfo/#dom-connectiontype\ntype ConnectionType =\n | 'bluetooth'\n | 'cellular'\n | 'ethernet'\n | 'mixed'\n | 'none'\n | 'other'\n | 'unknown'\n | 'wifi'\n | 'wimax';\n\n// See https://wicg.github.io/netinfo/#dom-effectiveconnectiontype\ntype ConnectionEffectiveType = '2g' | '3g' | '4g' | 'slow-2g';\n\n// https://wicg.github.io/netinfo/#dom-networkinformation-savedata\ntype ConnectionSaveData = boolean;\n\ninterface Events {\n change: Event;\n}\n\ninterface Connection {\n type: ConnectionType;\n effectiveType: ConnectionEffectiveType;\n saveData: ConnectionSaveData;\n addEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\n// Create (optional) connection APIs on navigator\ndeclare global {\n interface Navigator {\n connection?: Connection;\n mozConnection?: Connection;\n webkitConnection?: Connection;\n }\n}\n// Use a constant test of this form because in SSR on next.js, optional chaining is not sufficient,\n// but this test correctly detects that window is not available and allows for conditionals before access\nconst isWindowPresent = typeof window !== 'undefined';\n\n// Check if window exists and if the browser supports the connection API\nconst connection = (isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS'))\n ? window.navigator.connection ||\n window.navigator.mozConnection ||\n window.navigator.webkitConnection\n : undefined;\n\n// Map browser types to native types\nconst typeMapping: Record = {\n bluetooth: NetInfoStateType.bluetooth,\n cellular: NetInfoStateType.cellular,\n ethernet: NetInfoStateType.ethernet,\n none: NetInfoStateType.none,\n other: NetInfoStateType.other,\n unknown: NetInfoStateType.unknown,\n wifi: NetInfoStateType.wifi,\n wimax: NetInfoStateType.wimax,\n mixed: NetInfoStateType.other,\n};\nconst effectiveTypeMapping: Record<\n ConnectionEffectiveType,\n NetInfoCellularGeneration\n> = {\n '2g': NetInfoCellularGeneration['2g'],\n '3g': NetInfoCellularGeneration['3g'],\n '4g': NetInfoCellularGeneration['4g'],\n 'slow-2g': NetInfoCellularGeneration['2g'],\n};\n\n// Determine current state of connection\nconst getCurrentState = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _requestedInterface?: string,\n): Pick> => {\n const isConnected = isWindowPresent ? navigator.onLine : false;\n const baseState = {\n isInternetReachable: null,\n };\n\n // If we don't have a connection object, we return minimal information\n if (!connection) {\n if (isConnected) {\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive: false,\n },\n };\n return state;\n }\n\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type: NetInfoStateType.none,\n details: null,\n };\n return state;\n }\n\n // Otherwise try to return detailed information\n const isConnectionExpensive = connection.saveData;\n const type: NetInfoStateType = connection.type\n ? typeMapping[connection.type]\n : isConnected\n ? NetInfoStateType.other\n : NetInfoStateType.unknown;\n\n if (type === NetInfoStateType.bluetooth) {\n const state: NetInfoBluetoothState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.cellular) {\n const state: NetInfoCellularState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n cellularGeneration:\n effectiveTypeMapping[connection.effectiveType] || null,\n carrier: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.ethernet) {\n const state: NetInfoEthernetState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ipAddress: null,\n subnet: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wifi) {\n const state: NetInfoWifiState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ssid: null,\n bssid: null,\n strength: null,\n ipAddress: null,\n subnet: null,\n frequency: null,\n linkSpeed: null,\n rxLinkSpeed: null,\n txLinkSpeed: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wimax) {\n const state: NetInfoWimaxState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.none) {\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type,\n details: null,\n };\n return state;\n } else if (type === NetInfoStateType.unknown) {\n const state: NetInfoUnknownState = {\n ...baseState,\n isConnected,\n isInternetReachable: null,\n type,\n details: null,\n };\n return state;\n }\n\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n};\n\nconst handlers: ((state: NetInfoNativeModuleState) => void)[] = [];\nconst nativeHandlers: (() => void)[] = [];\n\nconst RNCNetInfo: NetInfoNativeModule = {\n addListener(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n const nativeHandler = (): void => {\n handler(getCurrentState());\n };\n\n if (connection) {\n connection.addEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.addEventListener('online', nativeHandler, false);\n window.addEventListener('offline', nativeHandler, false);\n }\n }\n\n // Remember handlers\n handlers.push(handler);\n nativeHandlers.push(nativeHandler);\n\n break;\n }\n }\n },\n\n removeListeners(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n // Get native handler\n const index = handlers.indexOf(handler);\n const nativeHandler = nativeHandlers[index];\n\n if (connection) {\n connection.removeEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.removeEventListener('online', nativeHandler);\n window.removeEventListener('offline', nativeHandler);\n }\n }\n\n // Remove handlers\n handlers.splice(index, 1);\n nativeHandlers.splice(index, 1);\n\n break;\n }\n }\n },\n\n async getCurrentState(requestedInterface): Promise {\n return getCurrentState(requestedInterface);\n },\n\n configure(): void {\n return;\n },\n};\n\nexport default RNCNetInfo;\n"],"mappings":";;;;;;AASA,IAAAA,aAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAqBA;;AAYA;;AAGA;;AAqBA;;AAQA;AACA;AACA,MAAME,eAAe,GAAG,OAAOC,MAAM,KAAK,WAAW;;AAErD;AACA,MAAMC,UAAU,GAAIF,eAAe,IAAI,CAACC,MAAM,CAACE,cAAc,CAAC,OAAO,CAAC,IAAI,CAACF,MAAM,CAACE,cAAc,CAAC,OAAO,CAAC,GACrGF,MAAM,CAACG,SAAS,CAACF,UAAU,IAC3BD,MAAM,CAACG,SAAS,CAACC,aAAa,IAC9BJ,MAAM,CAACG,SAAS,CAACE,gBAAgB,GACjCC,SAAS;;AAEb;AACA,MAAMC,WAAqD,GAAG;EAC5DC,SAAS,EAAEC,uBAAgB,CAACD,SAAS;EACrCE,QAAQ,EAAED,uBAAgB,CAACC,QAAQ;EACnCC,QAAQ,EAAEF,uBAAgB,CAACE,QAAQ;EACnCC,IAAI,EAAEH,uBAAgB,CAACG,IAAI;EAC3BC,KAAK,EAAEJ,uBAAgB,CAACI,KAAK;EAC7BC,OAAO,EAAEL,uBAAgB,CAACK,OAAO;EACjCC,IAAI,EAAEN,uBAAgB,CAACM,IAAI;EAC3BC,KAAK,EAAEP,uBAAgB,CAACO,KAAK;EAC7BC,KAAK,EAAER,uBAAgB,CAACI;AAC1B,CAAC;AACD,MAAMK,oBAGL,GAAG;EACF,IAAI,EAAEC,gCAAyB,CAAC,IAAI,CAAC;EACrC,IAAI,EAAE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ACF;EACF,CAAC;EAEDG,eAAeA,CAACzB,IAAI,EAAEoB,OAAO,EAAQ;IACnC,QAAQpB,IAAI;MACV,KAAKqB,uCAAyB;QAAE;UAC9B;UACA,MAAMK,KAAK,GAAGV,QAAQ,CAACW,OAAO,CAACP,OAAO,CAAC;UACvC,MAAME,aAAa,GAAGL,cAAc,CAACS,KAAK,CAAC;UAE3C,IAAIpD,UAAU,EAAE;YACdA,UAAU,CAACsD,mBAAmB,CAAC,QAAQ,EAAEN,aAAa,CAAC;UACzD,CAAC,MAAM;YACL,IAAIlD,eAAe,EAAE;cACnBC,MAAM,CAACuD,mBAAmB,CAAC,QAAQ,EAAEN,aAAa,CAAC;cACnDjD,MAAM,CAACuD,mBAAmB,CAAC,SAAS,EAAEN,aAAa,CAAC;YACtD;UACF;;UAEA;UACAN,QAAQ,CAACa,MAAM,CAACH,KAAK,EAAE,CAAC,CAAC;UACzBT,cAAc,CAACY,MAAM,CAACH,KAAK,EAAE,CAAC,CAAC;UAE/B;QACF;IACF;EACF,CAAC;EAED,MAAMjC,eAAeA,CAACqC,kBAAkB,EAAqC;IAC3E,OAAOrC,eAAe,CAACqC,kBAAkB,CAAC;EAC5C,CAAC;EAEDC,SAASA,CAAA,EAAS;IAChB;EACF;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEahB,UAAU"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js +index 3112de1..ca209c1 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js +@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.DEVICE_CONNECTIVITY_EVENT = void 0; +- + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -13,7 +12,8 @@ exports.DEVICE_CONNECTIVITY_EVENT = void 0; + * + * @format + */ +-const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange'; // Certain properties are optional when sent by the native module and are handled by the JS code + +-exports.DEVICE_CONNECTIVITY_EVENT = DEVICE_CONNECTIVITY_EVENT; ++const DEVICE_CONNECTIVITY_EVENT = exports.DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange'; ++ ++// Certain properties are optional when sent by the native module and are handled by the JS code + //# sourceMappingURL=privateTypes.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js.map +index 2838e9a..a56f61c 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/privateTypes.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["privateTypes.ts"],"names":["DEVICE_CONNECTIVITY_EVENT"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIO,MAAMA,yBAAyB,GAAG,gCAAlC,C,CAEP","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NetInfoConfiguration, NetInfoState} from './types';\n\nexport const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange';\n\n// Certain properties are optional when sent by the native module and are handled by the JS code\nexport type NetInfoNativeModuleState = Pick<\n NetInfoState,\n Exclude\n> & {isInternetReachable?: boolean};\n\nexport interface Events {\n [DEVICE_CONNECTIVITY_EVENT]: NetInfoNativeModuleState;\n}\n\nexport interface NetInfoNativeModule {\n configure: (config: Partial) => void;\n getCurrentState: (\n requestedInterface?: string,\n ) => Promise;\n addListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeListeners(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\nexport type NetInfoInternetReachabilityChangeListener = (\n isInternetReachable: boolean | null | undefined,\n) => void;\n"]} +\ No newline at end of file ++{"version":3,"names":["DEVICE_CONNECTIVITY_EVENT","exports"],"sources":["privateTypes.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NetInfoConfiguration, NetInfoState} from './types';\n\nexport const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange';\n\n// Certain properties are optional when sent by the native module and are handled by the JS code\nexport type NetInfoNativeModuleState = Pick<\n NetInfoState,\n Exclude\n> & {isInternetReachable?: boolean};\n\nexport interface Events {\n [DEVICE_CONNECTIVITY_EVENT]: NetInfoNativeModuleState;\n}\n\nexport interface NetInfoNativeModule {\n configure: (config: Partial) => void;\n getCurrentState: (\n requestedInterface?: string,\n ) => Promise;\n addListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeListeners(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\nexport type NetInfoInternetReachabilityChangeListener = (\n isInternetReachable: boolean | null | undefined,\n) => void;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIO,MAAMA,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,gCAAgC;;AAEzE"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js +index 80dce38..57b8fbf 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js +@@ -4,84 +4,73 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; +- + var _nativeInterface = _interopRequireDefault(require("./nativeInterface")); +- + var _internetReachability = _interopRequireDefault(require("./internetReachability")); +- + var PrivateTypes = _interopRequireWildcard(require("./privateTypes")); +- +-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +- +-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +- ++function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } ++function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +- +-function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +- ++function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } ++function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } ++function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /** ++ * Copyright (c) Facebook, Inc. and its affiliates. ++ * ++ * This source code is licensed under the MIT license found in the ++ * LICENSE file in the root directory of this source tree. ++ * ++ * @format ++ */ + class State { + constructor(configuration) { + _defineProperty(this, "_nativeEventSubscription", null); +- + _defineProperty(this, "_subscriptions", new Set()); +- + _defineProperty(this, "_latestState", null); +- + _defineProperty(this, "_internetReachability", void 0); +- + _defineProperty(this, "_handleNativeStateUpdate", state => { + // Update the internet reachability module +- this._internetReachability.update(state); // Convert the state from native to JS shape +- +- +- const convertedState = this._convertState(state); // Update the listeners ++ this._internetReachability.update(state); + ++ // Convert the state from native to JS shape ++ const convertedState = this._convertState(state); + ++ // Update the listeners + this._latestState = convertedState; +- + this._subscriptions.forEach(handler => handler(convertedState)); + }); +- + _defineProperty(this, "_handleInternetReachabilityUpdate", isInternetReachable => { + if (!this._latestState) { + return; + } +- +- const nextState = { ...this._latestState, ++ const nextState = { ++ ...this._latestState, + isInternetReachable + }; + this._latestState = nextState; +- + this._subscriptions.forEach(handler => handler(nextState)); + }); +- + _defineProperty(this, "_fetchCurrentState", async requestedInterface => { +- const state = await _nativeInterface.default.getCurrentState(requestedInterface); // Update the internet reachability module +- +- this._internetReachability.update(state); // Convert and store the new state +- ++ const state = await _nativeInterface.default.getCurrentState(requestedInterface); + ++ // Update the internet reachability module ++ this._internetReachability.update(state); ++ // Convert and store the new state + const convertedState = this._convertState(state); +- + if (!requestedInterface) { + this._latestState = convertedState; +- + this._subscriptions.forEach(handler => handler(convertedState)); + } +- + return convertedState; + }); +- + _defineProperty(this, "_convertState", input => { + if (typeof input.isInternetReachable === 'boolean') { + return input; + } else { +- return { ...input, ++ return { ++ ...input, + isInternetReachable: this._internetReachability.currentState() + }; + } + }); +- + _defineProperty(this, "latest", requestedInterface => { + if (requestedInterface) { + return this._fetchCurrentState(requestedInterface); +@@ -91,44 +80,38 @@ class State { + return this._fetchCurrentState(); + } + }); +- + _defineProperty(this, "add", handler => { + // Add the subscription handler to our set +- this._subscriptions.add(handler); // Send it the latest data we have +- ++ this._subscriptions.add(handler); + ++ // Send it the latest data we have + if (this._latestState) { + handler(this._latestState); + } else { + this.latest().then(handler); + } + }); +- + _defineProperty(this, "remove", handler => { + this._subscriptions.delete(handler); + }); +- + _defineProperty(this, "tearDown", () => { + if (this._internetReachability) { + this._internetReachability.tearDown(); + } +- + if (this._nativeEventSubscription) { + this._nativeEventSubscription.remove(); + } +- + this._subscriptions.clear(); + }); +- + // Add the listener to the internet connectivity events +- this._internetReachability = new _internetReachability.default(configuration, this._handleInternetReachabilityUpdate); // Add the subscription to the native events ++ this._internetReachability = new _internetReachability.default(configuration, this._handleInternetReachabilityUpdate); + +- this._nativeEventSubscription = _nativeInterface.default.eventEmitter.addListener(PrivateTypes.DEVICE_CONNECTIVITY_EVENT, this._handleNativeStateUpdate); // Fetch the current state from the native module ++ // Add the subscription to the native events ++ this._nativeEventSubscription = _nativeInterface.default.eventEmitter.addListener(PrivateTypes.DEVICE_CONNECTIVITY_EVENT, this._handleNativeStateUpdate); + ++ // Fetch the current state from the native module + this._fetchCurrentState(); + } +- + } +- + exports.default = State; + //# sourceMappingURL=state.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js.map +index 40ae85c..473e940 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/state.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["state.ts"],"names":["State","constructor","configuration","Set","state","_internetReachability","update","convertedState","_convertState","_latestState","_subscriptions","forEach","handler","isInternetReachable","nextState","requestedInterface","NativeInterface","getCurrentState","input","currentState","_fetchCurrentState","Promise","resolve","add","latest","then","delete","tearDown","_nativeEventSubscription","remove","clear","InternetReachability","_handleInternetReachabilityUpdate","eventEmitter","addListener","PrivateTypes","DEVICE_CONNECTIVITY_EVENT","_handleNativeStateUpdate"],"mappings":";;;;;;;AAUA;;AACA;;AAEA;;;;;;;;;;AAEe,MAAMA,KAAN,CAAY;AAMzBC,EAAAA,WAAW,CAACC,aAAD,EAA4C;AAAA,sDALY,IAKZ;;AAAA,4CAJ9B,IAAIC,GAAJ,EAI8B;;AAAA,0CAHL,IAGK;;AAAA;;AAAA,sDAkBrDC,KADiC,IAExB;AACT;AACA,WAAKC,qBAAL,CAA2BC,MAA3B,CAAkCF,KAAlC,EAFS,CAIT;;;AACA,YAAMG,cAAc,GAAG,KAAKC,aAAL,CAAmBJ,KAAnB,CAAvB,CALS,CAOT;;;AACA,WAAKK,YAAL,GAAoBF,cAApB;;AACA,WAAKG,cAAL,CAAoBC,OAApB,CAA6BC,OAAD,IAAmBA,OAAO,CAACL,cAAD,CAAtD;AACD,KA7BsD;;AAAA,+DAgCrDM,mBAD0C,IAEjC;AACT,UAAI,CAAC,KAAKJ,YAAV,EAAwB;AACtB;AACD;;AAED,YAAMK,SAAS,GAAG,EAChB,GAAG,KAAKL,YADQ;AAEhBI,QAAAA;AAFgB,OAAlB;AAIA,WAAKJ,YAAL,GAAoBK,SAApB;;AACA,WAAKJ,cAAL,CAAoBC,OAApB,CAA6BC,OAAD,IAAmBA,OAAO,CAACE,SAAD,CAAtD;AACD,KA5CsD;;AAAA,gDA8C3B,MAC1BC,kBAD0B,IAEM;AAChC,YAAMX,KAAK,GAAG,MAAMY,yBAAgBC,eAAhB,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;;AAAA,sCAwGrC,MAAY;AAC5B,UAAI,KAAKP,qBAAT,EAAgC;AAC9B,aAAKA,qBAAL,CAA2BsB,QAA3B;AACD;;AAED,UAAI,KAAKC,wBAAT,EAAmC;AACjC,aAAKA,wBAAL,CAA8BC,MAA9B;AACD;;AAED,WAAKnB,cAAL,CAAoBoB,KAApB;AACD,KAlHsD;;AACrD;AACA,SAAKzB,qBAAL,GAA6B,IAAI0B,6BAAJ,CAC3B7B,aAD2B,EAE3B,KAAK8B,iCAFsB,CAA7B,CAFqD,CAOrD;;AACA,SAAKJ,wBAAL,GAAgCZ,yBAAgBiB,YAAhB,CAA6BC,WAA7B,CAC9BC,YAAY,CAACC,yBADiB,EAE9B,KAAKC,wBAFyB,CAAhC,CARqD,CAarD;;AACA,SAAKjB,kBAAL;AACD;;AArBwB","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventSubscription} from 'react-native';\nimport NativeInterface from './nativeInterface';\nimport InternetReachability from './internetReachability';\nimport * as Types from './types';\nimport * as PrivateTypes from './privateTypes';\n\nexport default class State {\n private _nativeEventSubscription: NativeEventSubscription | null = null;\n private _subscriptions = new Set();\n private _latestState: Types.NetInfoState | null = null;\n private _internetReachability: InternetReachability;\n\n constructor(configuration: Types.NetInfoConfiguration) {\n // Add the listener to the internet connectivity events\n this._internetReachability = new InternetReachability(\n configuration,\n this._handleInternetReachabilityUpdate,\n );\n\n // Add the subscription to the native events\n this._nativeEventSubscription = NativeInterface.eventEmitter.addListener(\n PrivateTypes.DEVICE_CONNECTIVITY_EVENT,\n this._handleNativeStateUpdate,\n );\n\n // Fetch the current state from the native module\n this._fetchCurrentState();\n }\n\n private _handleNativeStateUpdate = (\n state: PrivateTypes.NetInfoNativeModuleState,\n ): void => {\n // Update the internet reachability module\n this._internetReachability.update(state);\n\n // Convert the state from native to JS shape\n const convertedState = this._convertState(state);\n\n // Update the listeners\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n };\n\n private _handleInternetReachabilityUpdate = (\n isInternetReachable: boolean | null | undefined,\n ): void => {\n if (!this._latestState) {\n return;\n }\n\n const nextState = {\n ...this._latestState,\n isInternetReachable,\n } as Types.NetInfoState;\n this._latestState = nextState;\n this._subscriptions.forEach((handler): void => handler(nextState));\n };\n\n public _fetchCurrentState = async (\n requestedInterface?: string,\n ): Promise => {\n const state = await NativeInterface.getCurrentState(requestedInterface);\n\n // Update the internet reachability module\n this._internetReachability.update(state);\n // Convert and store the new state\n const convertedState = this._convertState(state);\n if (!requestedInterface) {\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n }\n\n return convertedState;\n };\n\n private _convertState = (\n input: PrivateTypes.NetInfoNativeModuleState,\n ): Types.NetInfoState => {\n if (typeof input.isInternetReachable === 'boolean') {\n return input as Types.NetInfoState;\n } else {\n return {\n ...input,\n isInternetReachable: this._internetReachability.currentState(),\n } as Types.NetInfoState;\n }\n };\n\n public latest = (\n requestedInterface?: string,\n ): Promise => {\n if (requestedInterface) {\n return this._fetchCurrentState(requestedInterface);\n } else if (this._latestState) {\n return Promise.resolve(this._latestState);\n } else {\n return this._fetchCurrentState();\n }\n };\n\n public add = (handler: Types.NetInfoChangeHandler): void => {\n // Add the subscription handler to our set\n this._subscriptions.add(handler);\n\n // Send it the latest data we have\n if (this._latestState) {\n handler(this._latestState);\n } else {\n this.latest().then(handler);\n }\n };\n\n public remove = (handler: Types.NetInfoChangeHandler): void => {\n this._subscriptions.delete(handler);\n };\n\n public tearDown = (): void => {\n if (this._internetReachability) {\n this._internetReachability.tearDown();\n }\n\n if (this._nativeEventSubscription) {\n this._nativeEventSubscription.remove();\n }\n\n this._subscriptions.clear();\n };\n}\n"]} +\ No newline at end of file ++{"version":3,"names":["_nativeInterface","_interopRequireDefault","require","_internetReachability","PrivateTypes","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_defineProperty","key","value","_toPropertyKey","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","State","constructor","configuration","Set","state","update","convertedState","_convertState","_latestState","_subscriptions","forEach","handler","isInternetReachable","nextState","requestedInterface","NativeInterface","getCurrentState","currentState","_fetchCurrentState","Promise","resolve","add","latest","then","delete","tearDown","_nativeEventSubscription","remove","clear","InternetReachability","_handleInternetReachabilityUpdate","eventEmitter","addListener","DEVICE_CONNECTIVITY_EVENT","_handleNativeStateUpdate","exports"],"sources":["state.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventSubscription} from 'react-native';\nimport NativeInterface from './nativeInterface';\nimport InternetReachability from './internetReachability';\nimport * as Types from './types';\nimport * as PrivateTypes from './privateTypes';\n\nexport default class State {\n private _nativeEventSubscription: NativeEventSubscription | null = null;\n private _subscriptions = new Set();\n private _latestState: Types.NetInfoState | null = null;\n private _internetReachability: InternetReachability;\n\n constructor(configuration: Types.NetInfoConfiguration) {\n // Add the listener to the internet connectivity events\n this._internetReachability = new InternetReachability(\n configuration,\n this._handleInternetReachabilityUpdate,\n );\n\n // Add the subscription to the native events\n this._nativeEventSubscription = NativeInterface.eventEmitter.addListener(\n PrivateTypes.DEVICE_CONNECTIVITY_EVENT,\n this._handleNativeStateUpdate,\n );\n\n // Fetch the current state from the native module\n this._fetchCurrentState();\n }\n\n private _handleNativeStateUpdate = (\n state: PrivateTypes.NetInfoNativeModuleState,\n ): void => {\n // Update the internet reachability module\n this._internetReachability.update(state);\n\n // Convert the state from native to JS shape\n const convertedState = this._convertState(state);\n\n // Update the listeners\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n };\n\n private _handleInternetReachabilityUpdate = (\n isInternetReachable: boolean | null | undefined,\n ): void => {\n if (!this._latestState) {\n return;\n }\n\n const nextState = {\n ...this._latestState,\n isInternetReachable,\n } as Types.NetInfoState;\n this._latestState = nextState;\n this._subscriptions.forEach((handler): void => handler(nextState));\n };\n\n public _fetchCurrentState = async (\n requestedInterface?: string,\n ): Promise => {\n const state = await NativeInterface.getCurrentState(requestedInterface);\n\n // Update the internet reachability module\n this._internetReachability.update(state);\n // Convert and store the new state\n const convertedState = this._convertState(state);\n if (!requestedInterface) {\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n }\n\n return convertedState;\n };\n\n private _convertState = (\n input: PrivateTypes.NetInfoNativeModuleState,\n ): Types.NetInfoState => {\n if (typeof input.isInternetReachable === 'boolean') {\n return input as Types.NetInfoState;\n } else {\n return {\n ...input,\n isInternetReachable: this._internetReachability.currentState(),\n } as Types.NetInfoState;\n }\n };\n\n public latest = (\n requestedInterface?: string,\n ): Promise => {\n if (requestedInterface) {\n return this._fetchCurrentState(requestedInterface);\n } else if (this._latestState) {\n return Promise.resolve(this._latestState);\n } else {\n return this._fetchCurrentState();\n }\n };\n\n public add = (handler: Types.NetInfoChangeHandler): void => {\n // Add the subscription handler to our set\n this._subscriptions.add(handler);\n\n // Send it the latest data we have\n if (this._latestState) {\n handler(this._latestState);\n } else {\n this.latest().then(handler);\n }\n };\n\n public remove = (handler: Types.NetInfoChangeHandler): void => {\n this._subscriptions.delete(handler);\n };\n\n public tearDown = (): void => {\n if (this._internetReachability) {\n this._internetReachability.tearDown();\n }\n\n if (this._nativeEventSubscription) {\n this._nativeEventSubscription.remove();\n }\n\n this._subscriptions.clear();\n };\n}\n"],"mappings":";;;;;;AAUA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,YAAA,GAAAC,uBAAA,CAAAH,OAAA;AAA+C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ACZ,YAAY,CAAC;MAC3C,CAAC,MAAM;QACL,OAAO,IAAI,CAACU,kBAAkB,CAAC,CAAC;MAClC;IACF,CAAC;IAAArC,eAAA,cAEa8B,OAAmC,IAAW;MAC1D;MACA,IAAI,CAACF,cAAc,CAACY,GAAG,CAACV,OAAO,CAAC;;MAEhC;MACA,IAAI,IAAI,CAACH,YAAY,EAAE;QACrBG,OAAO,CAAC,IAAI,CAACH,YAAY,CAAC;MAC5B,CAAC,MAAM;QACL,IAAI,CAACc,MAAM,CAAC,CAAC,CAACC,IAAI,CAACZ,OAAO,CAAC;MAC7B;IACF,CAAC;IAAA9B,eAAA,iBAEgB8B,OAAmC,IAAW;MAC7D,IAAI,CAACF,cAAc,CAACe,MAAM,CAACb,OAAO,CAAC;IACrC,CAAC;IAAA9B,eAAA,mBAEiB,MAAY;MAC5B,IAAI,IAAI,CAACzB,qBAAqB,EAAE;QAC9B,IAAI,CAACA,qBAAqB,CAACqE,QAAQ,CAAC,CAAC;MACvC;MAEA,IAAI,IAAI,CAACC,wBAAwB,EAAE;QACjC,IAAI,CAACA,wBAAwB,CAACC,MAAM,CAAC,CAAC;MACxC;MAEA,IAAI,CAAClB,cAAc,CAACmB,KAAK,CAAC,CAAC;IAC7B,CAAC;IAjHC;IACA,IAAI,CAACxE,qBAAqB,GAAG,IAAIyE,6BAAoB,CACnD3B,aAAa,EACb,IAAI,CAAC4B,iCACP,CAAC;;IAED;IACA,IAAI,CAACJ,wBAAwB,GAAGX,wBAAe,CAACgB,YAAY,CAACC,WAAW,CACtE3E,YAAY,CAAC4E,yBAAyB,EACtC,IAAI,CAACC,wBACP,CAAC;;IAED;IACA,IAAI,CAAChB,kBAAkB,CAAC,CAAC;EAC3B;AAoGF;AAACiB,OAAA,CAAAtE,OAAA,GAAAmC,KAAA"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js +index 39e4871..92824aa 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js +@@ -3,8 +3,7 @@ + Object.defineProperty(exports, "__esModule", { + value: true + }); +-exports.NetInfoCellularGeneration = exports.NetInfoStateType = void 0; +- ++exports.NetInfoStateType = exports.NetInfoCellularGeneration = void 0; + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -13,10 +12,7 @@ exports.NetInfoCellularGeneration = exports.NetInfoStateType = void 0; + * + * @format + */ +-let NetInfoStateType; +-exports.NetInfoStateType = NetInfoStateType; +- +-(function (NetInfoStateType) { ++let NetInfoStateType = exports.NetInfoStateType = /*#__PURE__*/function (NetInfoStateType) { + NetInfoStateType["unknown"] = "unknown"; + NetInfoStateType["none"] = "none"; + NetInfoStateType["cellular"] = "cellular"; +@@ -26,15 +22,13 @@ exports.NetInfoStateType = NetInfoStateType; + NetInfoStateType["wimax"] = "wimax"; + NetInfoStateType["vpn"] = "vpn"; + NetInfoStateType["other"] = "other"; +-})(NetInfoStateType || (exports.NetInfoStateType = NetInfoStateType = {})); +- +-let NetInfoCellularGeneration; +-exports.NetInfoCellularGeneration = NetInfoCellularGeneration; +- +-(function (NetInfoCellularGeneration) { ++ return NetInfoStateType; ++}({}); ++let NetInfoCellularGeneration = exports.NetInfoCellularGeneration = /*#__PURE__*/function (NetInfoCellularGeneration) { + NetInfoCellularGeneration["2g"] = "2g"; + NetInfoCellularGeneration["3g"] = "3g"; + NetInfoCellularGeneration["4g"] = "4g"; + NetInfoCellularGeneration["5g"] = "5g"; +-})(NetInfoCellularGeneration || (exports.NetInfoCellularGeneration = NetInfoCellularGeneration = {})); ++ return NetInfoCellularGeneration; ++}({}); + //# sourceMappingURL=types.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js.map b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js.map +index 095dd3b..596ace1 100644 +--- a/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/commonjs/internal/types.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["types.ts"],"names":["NetInfoStateType","NetInfoCellularGeneration"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IAEYA,gB;;;WAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;GAAAA,gB,gCAAAA,gB;;IAcAC,yB;;;WAAAA,yB;AAAAA,EAAAA,yB;AAAAA,EAAAA,yB;AAAAA,EAAAA,yB;AAAAA,EAAAA,yB;GAAAA,yB,yCAAAA,yB","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nexport enum NetInfoStateType {\n unknown = 'unknown',\n none = 'none',\n cellular = 'cellular',\n wifi = 'wifi',\n bluetooth = 'bluetooth',\n ethernet = 'ethernet',\n wimax = 'wimax',\n vpn = 'vpn',\n other = 'other',\n}\n\nexport type NetInfoMethodType = 'HEAD' | 'GET';\n\nexport enum NetInfoCellularGeneration {\n '2g' = '2g',\n '3g' = '3g',\n '4g' = '4g',\n '5g' = '5g',\n}\n\nexport interface NetInfoConnectedDetails {\n isConnectionExpensive: boolean;\n}\n\ninterface NetInfoConnectedState<\n T extends NetInfoStateType,\n D extends Record = Record\n> {\n type: T;\n isConnected: true;\n isInternetReachable: boolean | null;\n details: D & NetInfoConnectedDetails;\n isWifiEnabled?: boolean;\n}\n\ninterface NetInfoDisconnectedState {\n type: T;\n isConnected: false;\n isInternetReachable: false;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport interface NetInfoUnknownState {\n type: NetInfoStateType.unknown;\n isConnected: boolean | null;\n isInternetReachable: null;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport type NetInfoNoConnectionState = NetInfoDisconnectedState<\n NetInfoStateType.none\n>;\nexport type NetInfoDisconnectedStates =\n | NetInfoUnknownState\n | NetInfoNoConnectionState;\n\nexport type NetInfoCellularState = NetInfoConnectedState<\n NetInfoStateType.cellular,\n {\n cellularGeneration: NetInfoCellularGeneration | null;\n carrier: string | null;\n }\n>;\nexport type NetInfoWifiState = NetInfoConnectedState<\n NetInfoStateType.wifi,\n {\n ssid: string | null;\n bssid: string | null;\n strength: number | null;\n ipAddress: string | null;\n subnet: string | null;\n frequency: number | null;\n linkSpeed: number | null;\n rxLinkSpeed: number | null;\n txLinkSpeed: number | null;\n }\n>;\nexport type NetInfoBluetoothState = NetInfoConnectedState<\n NetInfoStateType.bluetooth\n>;\nexport type NetInfoEthernetState = NetInfoConnectedState<\n NetInfoStateType.ethernet,\n {\n ipAddress: string | null;\n subnet: string | null;\n }\n>;\nexport type NetInfoWimaxState = NetInfoConnectedState;\nexport type NetInfoVpnState = NetInfoConnectedState;\nexport type NetInfoOtherState = NetInfoConnectedState;\nexport type NetInfoConnectedStates =\n | NetInfoCellularState\n | NetInfoWifiState\n | NetInfoBluetoothState\n | NetInfoEthernetState\n | NetInfoWimaxState\n | NetInfoVpnState\n | NetInfoOtherState;\n\nexport type NetInfoState = NetInfoDisconnectedStates | NetInfoConnectedStates;\n\nexport type NetInfoChangeHandler = (state: NetInfoState) => void;\nexport type NetInfoSubscription = () => void;\n\nexport interface NetInfoConfiguration {\n reachabilityUrl: string;\n reachabilityMethod?: NetInfoMethodType;\n reachabilityHeaders?: Record;\n reachabilityTest: (response: Response) => Promise;\n reachabilityLongTimeout: number;\n reachabilityShortTimeout: number;\n reachabilityRequestTimeout: number;\n reachabilityShouldRun: () => boolean;\n shouldFetchWiFiSSID: boolean;\n useNativeReachability: boolean;\n}\n"]} +\ No newline at end of file ++{"version":3,"names":["NetInfoStateType","exports","NetInfoCellularGeneration"],"sources":["types.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nexport enum NetInfoStateType {\n unknown = 'unknown',\n none = 'none',\n cellular = 'cellular',\n wifi = 'wifi',\n bluetooth = 'bluetooth',\n ethernet = 'ethernet',\n wimax = 'wimax',\n vpn = 'vpn',\n other = 'other',\n}\n\nexport type NetInfoMethodType = 'HEAD' | 'GET';\n\nexport enum NetInfoCellularGeneration {\n '2g' = '2g',\n '3g' = '3g',\n '4g' = '4g',\n '5g' = '5g',\n}\n\nexport interface NetInfoConnectedDetails {\n isConnectionExpensive: boolean;\n}\n\ninterface NetInfoConnectedState<\n T extends NetInfoStateType,\n D extends Record = Record,\n> {\n type: T;\n isConnected: true;\n isInternetReachable: boolean | null;\n details: D & NetInfoConnectedDetails;\n isWifiEnabled?: boolean;\n}\n\ninterface NetInfoDisconnectedState {\n type: T;\n isConnected: false;\n isInternetReachable: false;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport interface NetInfoUnknownState {\n type: NetInfoStateType.unknown;\n isConnected: boolean | null;\n isInternetReachable: null;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport type NetInfoNoConnectionState =\n NetInfoDisconnectedState;\nexport type NetInfoDisconnectedStates =\n | NetInfoUnknownState\n | NetInfoNoConnectionState;\n\nexport type NetInfoCellularState = NetInfoConnectedState<\n NetInfoStateType.cellular,\n {\n cellularGeneration: NetInfoCellularGeneration | null;\n carrier: string | null;\n }\n>;\nexport type NetInfoWifiState = NetInfoConnectedState<\n NetInfoStateType.wifi,\n {\n ssid: string | null;\n bssid: string | null;\n strength: number | null;\n ipAddress: string | null;\n subnet: string | null;\n frequency: number | null;\n linkSpeed: number | null;\n rxLinkSpeed: number | null;\n txLinkSpeed: number | null;\n }\n>;\nexport type NetInfoBluetoothState =\n NetInfoConnectedState;\nexport type NetInfoEthernetState = NetInfoConnectedState<\n NetInfoStateType.ethernet,\n {\n ipAddress: string | null;\n subnet: string | null;\n }\n>;\nexport type NetInfoWimaxState = NetInfoConnectedState;\nexport type NetInfoVpnState = NetInfoConnectedState;\nexport type NetInfoOtherState = NetInfoConnectedState;\nexport type NetInfoConnectedStates =\n | NetInfoCellularState\n | NetInfoWifiState\n | NetInfoBluetoothState\n | NetInfoEthernetState\n | NetInfoWimaxState\n | NetInfoVpnState\n | NetInfoOtherState;\n\nexport type NetInfoState = NetInfoDisconnectedStates | NetInfoConnectedStates;\n\nexport type NetInfoChangeHandler = (state: NetInfoState) => void;\nexport type NetInfoSubscription = () => void;\n\nexport interface NetInfoConfiguration {\n reachabilityUrl: string;\n reachabilityMethod?: NetInfoMethodType;\n reachabilityHeaders?: Record;\n reachabilityTest: (response: Response) => Promise;\n reachabilityLongTimeout: number;\n reachabilityShortTimeout: number;\n reachabilityRequestTimeout: number;\n reachabilityShouldRun: () => boolean;\n shouldFetchWiFiSSID: boolean;\n useNativeReachability: boolean;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IASYA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAAA,IAchBE,yBAAyB,GAAAD,OAAA,CAAAC,yBAAA,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/index.js b/node_modules/@react-native-community/netinfo/lib/module/index.js +index 147c72e..02aa0db 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/index.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/index.js +@@ -6,20 +6,23 @@ + * + * @format + */ ++ + import { useState, useEffect, useCallback } from 'react'; + import { Platform } from 'react-native'; + import DEFAULT_CONFIGURATION from './internal/defaultConfiguration'; + import NativeInterface from './internal/nativeInterface'; + import State from './internal/state'; +-import * as Types from './internal/types'; // Stores the currently used configuration ++import * as Types from './internal/types'; + +-let _configuration = DEFAULT_CONFIGURATION; // Stores the singleton reference to the state manager ++// Stores the currently used configuration ++let _configuration = DEFAULT_CONFIGURATION; + ++// Stores the singleton reference to the state manager + let _state = null; +- + const createState = () => { + return new State(_configuration); + }; ++ + /** + * Configures the library with the given configuration. Note that calling this will stop all + * previously added listeners from being called again. It is best to call this right when your +@@ -27,23 +30,20 @@ const createState = () => { + * + * @param configuration The new configuration to set. + */ +- +- + export function configure(configuration) { +- _configuration = { ...DEFAULT_CONFIGURATION, ++ _configuration = { ++ ...DEFAULT_CONFIGURATION, + ...configuration + }; +- + if (_state) { + _state.tearDown(); +- + _state = createState(); + } +- + if (Platform.OS === 'ios') { + NativeInterface.configure(configuration); + } + } ++ + /** + * Returns a `Promise` that resolves to a `NetInfoState` object. + * This function operates on the global singleton instance configured using `configure()` +@@ -52,27 +52,25 @@ export function configure(configuration) { + * + * @returns A Promise which contains the current connection state. + */ +- + export function fetch(requestedInterface) { + if (!_state) { + _state = createState(); + } +- + return _state.latest(requestedInterface); + } ++ + /** + * Force-refreshes the internal state of the global singleton managed by this library. + * + * @returns A Promise which contains the updated connection state. + */ +- + export function refresh() { + if (!_state) { + _state = createState(); + } +- + return _state._fetchCurrentState(); + } ++ + /** + * Subscribe to the global singleton's connection information. The callback is called with a parameter of type + * [`NetInfoState`](README.md#netinfostate) whenever the connection state changes. Your listener +@@ -84,18 +82,16 @@ export function refresh() { + * + * @returns A function which can be called to unsubscribe. + */ +- + export function addEventListener(listener) { + if (!_state) { + _state = createState(); + } +- + _state.add(listener); +- + return () => { + _state && _state.remove(listener); + }; + } ++ + /** + * A React Hook into this library's singleton which updates when the connection state changes. + * +@@ -103,12 +99,10 @@ export function addEventListener(listener) { + * + * @returns The connection state. + */ +- + export function useNetInfo(configuration) { + if (configuration) { + configure(configuration); + } +- + const [netInfo, setNetInfo] = useState({ + type: Types.NetInfoStateType.unknown, + isConnected: null, +@@ -120,6 +114,7 @@ export function useNetInfo(configuration) { + }, []); + return netInfo; + } ++ + /** + * A React Hook which manages an isolated instance of the network info manager. + * This is not a hook into a singleton shared state. NetInfo.configure, NetInfo.addEventListener, +@@ -129,7 +124,6 @@ export function useNetInfo(configuration) { + * + * @returns the netInfo state and a refresh function + */ +- + export function useNetInfoInstance(isPaused = false, configuration) { + const [networkInfoManager, setNetworkInfoManager] = useState(); + const [netInfo, setNetInfo] = useState({ +@@ -142,8 +136,8 @@ export function useNetInfoInstance(isPaused = false, configuration) { + if (isPaused) { + return; + } +- +- const config = { ...DEFAULT_CONFIGURATION, ++ const config = { ++ ...DEFAULT_CONFIGURATION, + ...configuration + }; + const state = new State(config); +diff --git a/node_modules/@react-native-community/netinfo/lib/module/index.js.map b/node_modules/@react-native-community/netinfo/lib/module/index.js.map +index 937c538..268c26e 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/index.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/index.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["index.ts"],"names":["useState","useEffect","useCallback","Platform","DEFAULT_CONFIGURATION","NativeInterface","State","Types","_configuration","_state","createState","configure","configuration","tearDown","OS","fetch","requestedInterface","latest","refresh","_fetchCurrentState","addEventListener","listener","add","remove","useNetInfo","netInfo","setNetInfo","type","NetInfoStateType","unknown","isConnected","isInternetReachable","details","useNetInfoInstance","isPaused","networkInfoManager","setNetworkInfoManager","config","state"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAAQA,QAAR,EAAkBC,SAAlB,EAA6BC,WAA7B,QAA+C,OAA/C;AACA,SAAQC,QAAR,QAAuB,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ADU;AAEb,SAAGQ;AAFU,KAAf;AAIA,UAAM0B,KAAK,GAAG,IAAIhC,KAAJ,CAAU+B,MAAV,CAAd;AACAD,IAAAA,qBAAqB,CAACE,KAAD,CAArB;AACAA,IAAAA,KAAK,CAAChB,GAAN,CAAUI,UAAV;AACA,WAAOY,KAAK,CAACzB,QAAb;AACD,GAZQ,EAYN,CAACqB,QAAD,EAAWtB,aAAX,CAZM,CAAT;AAcA,QAAMM,OAAO,GAAGhB,WAAW,CAAC,MAAM;AAChCiC,IAAAA,kBAAkB,IAAIA,kBAAkB,CAAChB,kBAAnB,EAAtB;AACD,GAF0B,EAExB,CAACgB,kBAAD,CAFwB,CAA3B;AAIA,SAAO;AACLV,IAAAA,OADK;AAELP,IAAAA;AAFK,GAAP;AAID;AAED,cAAc,kBAAd;AAEA,eAAe;AACbP,EAAAA,SADa;AAEbI,EAAAA,KAFa;AAGbG,EAAAA,OAHa;AAIbE,EAAAA,gBAJa;AAKbI,EAAAA,UALa;AAMbS,EAAAA;AANa,CAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {useState, useEffect, useCallback} from 'react';\nimport {Platform} from 'react-native';\nimport DEFAULT_CONFIGURATION from './internal/defaultConfiguration';\nimport NativeInterface from './internal/nativeInterface';\nimport State from './internal/state';\nimport * as Types from './internal/types';\n\n// Stores the currently used configuration\nlet _configuration = DEFAULT_CONFIGURATION;\n\n// Stores the singleton reference to the state manager\nlet _state: State | null = null;\nconst createState = (): State => {\n return new State(_configuration);\n};\n\n/**\n * Configures the library with the given configuration. Note that calling this will stop all\n * previously added listeners from being called again. It is best to call this right when your\n * application is started to avoid issues. The configuration sets up a global singleton instance.\n *\n * @param configuration The new configuration to set.\n */\nexport function configure(\n configuration: Partial,\n): void {\n _configuration = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n\n if (_state) {\n _state.tearDown();\n _state = createState();\n }\n\n if (Platform.OS === 'ios') {\n NativeInterface.configure(configuration);\n }\n}\n\n/**\n * Returns a `Promise` that resolves to a `NetInfoState` object.\n * This function operates on the global singleton instance configured using `configure()`\n *\n * @param [requestedInterface] interface from which to obtain the information\n *\n * @returns A Promise which contains the current connection state.\n */\nexport function fetch(\n requestedInterface?: string,\n): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state.latest(requestedInterface);\n}\n\n/**\n * Force-refreshes the internal state of the global singleton managed by this library.\n *\n * @returns A Promise which contains the updated connection state.\n */\nexport function refresh(): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state._fetchCurrentState();\n}\n\n/**\n * Subscribe to the global singleton's connection information. The callback is called with a parameter of type\n * [`NetInfoState`](README.md#netinfostate) whenever the connection state changes. Your listener\n * will be called with the latest information soon after you subscribe and then with any\n * subsequent changes afterwards. You should not assume that the listener is called in the same\n * way across devices or platforms.\n *\n * @param listener The listener which is called when the network state changes.\n *\n * @returns A function which can be called to unsubscribe.\n */\nexport function addEventListener(\n listener: Types.NetInfoChangeHandler,\n): Types.NetInfoSubscription {\n if (!_state) {\n _state = createState();\n }\n\n _state.add(listener);\n return (): void => {\n _state && _state.remove(listener);\n };\n}\n\n/**\n * A React Hook into this library's singleton which updates when the connection state changes.\n *\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns The connection state.\n */\nexport function useNetInfo(\n configuration?: Partial,\n): Types.NetInfoState {\n if (configuration) {\n configure(configuration);\n }\n\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect((): (() => void) => {\n return addEventListener(setNetInfo);\n }, []);\n\n return netInfo;\n}\n\n/**\n * A React Hook which manages an isolated instance of the network info manager.\n * This is not a hook into a singleton shared state. NetInfo.configure, NetInfo.addEventListener,\n * NetInfo.fetch, NetInfo.refresh are performed on a global singleton and have no affect on this hook.\n * @param {boolean} isPaused - Pause the internal network checks.\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns the netInfo state and a refresh function\n */\nexport function useNetInfoInstance(\n isPaused = false,\n configuration?: Partial,\n) {\n const [networkInfoManager, setNetworkInfoManager] = useState();\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect(() => {\n if (isPaused) {\n return;\n }\n const config = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n const state = new State(config);\n setNetworkInfoManager(state);\n state.add(setNetInfo);\n return state.tearDown;\n }, [isPaused, configuration]);\n\n const refresh = useCallback(() => {\n networkInfoManager && networkInfoManager._fetchCurrentState();\n }, [networkInfoManager]);\n\n return {\n netInfo,\n refresh,\n };\n}\n\nexport * from './internal/types';\n\nexport default {\n configure,\n fetch,\n refresh,\n addEventListener,\n useNetInfo,\n useNetInfoInstance,\n};\n"]} +\ No newline at end of file ++{"version":3,"names":["useState","useEffect","useCallback","Platform","DEFAULT_CONFIGURATION","NativeInterface","State","Types","_configuration","_state","createState","configure","configuration","tearDown","OS","fetch","requestedInterface","latest","refresh","_fetchCurrentState","addEventListener","listener","add","remove","useNetInfo","netInfo","setNetInfo","type","NetInfoStateType","unknown","isConnected","isInternetReachable","details","useNetInfoInstance","isPaused","networkInfoManager","setNetworkInfoManager","config","state"],"sources":["index.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {useState, useEffect, useCallback} from 'react';\nimport {Platform} from 'react-native';\nimport DEFAULT_CONFIGURATION from './internal/defaultConfiguration';\nimport NativeInterface from './internal/nativeInterface';\nimport State from './internal/state';\nimport * as Types from './internal/types';\n\n// Stores the currently used configuration\nlet _configuration = DEFAULT_CONFIGURATION;\n\n// Stores the singleton reference to the state manager\nlet _state: State | null = null;\nconst createState = (): State => {\n return new State(_configuration);\n};\n\n/**\n * Configures the library with the given configuration. Note that calling this will stop all\n * previously added listeners from being called again. It is best to call this right when your\n * application is started to avoid issues. The configuration sets up a global singleton instance.\n *\n * @param configuration The new configuration to set.\n */\nexport function configure(\n configuration: Partial,\n): void {\n _configuration = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n\n if (_state) {\n _state.tearDown();\n _state = createState();\n }\n\n if (Platform.OS === 'ios') {\n NativeInterface.configure(configuration);\n }\n}\n\n/**\n * Returns a `Promise` that resolves to a `NetInfoState` object.\n * This function operates on the global singleton instance configured using `configure()`\n *\n * @param [requestedInterface] interface from which to obtain the information\n *\n * @returns A Promise which contains the current connection state.\n */\nexport function fetch(\n requestedInterface?: string,\n): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state.latest(requestedInterface);\n}\n\n/**\n * Force-refreshes the internal state of the global singleton managed by this library.\n *\n * @returns A Promise which contains the updated connection state.\n */\nexport function refresh(): Promise {\n if (!_state) {\n _state = createState();\n }\n return _state._fetchCurrentState();\n}\n\n/**\n * Subscribe to the global singleton's connection information. The callback is called with a parameter of type\n * [`NetInfoState`](README.md#netinfostate) whenever the connection state changes. Your listener\n * will be called with the latest information soon after you subscribe and then with any\n * subsequent changes afterwards. You should not assume that the listener is called in the same\n * way across devices or platforms.\n *\n * @param listener The listener which is called when the network state changes.\n *\n * @returns A function which can be called to unsubscribe.\n */\nexport function addEventListener(\n listener: Types.NetInfoChangeHandler,\n): Types.NetInfoSubscription {\n if (!_state) {\n _state = createState();\n }\n\n _state.add(listener);\n return (): void => {\n _state && _state.remove(listener);\n };\n}\n\n/**\n * A React Hook into this library's singleton which updates when the connection state changes.\n *\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns The connection state.\n */\nexport function useNetInfo(\n configuration?: Partial,\n): Types.NetInfoState {\n if (configuration) {\n configure(configuration);\n }\n\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect((): (() => void) => {\n return addEventListener(setNetInfo);\n }, []);\n\n return netInfo;\n}\n\n/**\n * A React Hook which manages an isolated instance of the network info manager.\n * This is not a hook into a singleton shared state. NetInfo.configure, NetInfo.addEventListener,\n * NetInfo.fetch, NetInfo.refresh are performed on a global singleton and have no affect on this hook.\n * @param {boolean} isPaused - Pause the internal network checks.\n * @param {Partial} configuration - Configure the isolated network checker managed by this hook\n *\n * @returns the netInfo state and a refresh function\n */\nexport function useNetInfoInstance(\n isPaused = false,\n configuration?: Partial,\n) {\n const [networkInfoManager, setNetworkInfoManager] = useState();\n const [netInfo, setNetInfo] = useState({\n type: Types.NetInfoStateType.unknown,\n isConnected: null,\n isInternetReachable: null,\n details: null,\n });\n\n useEffect(() => {\n if (isPaused) {\n return;\n }\n const config = {\n ...DEFAULT_CONFIGURATION,\n ...configuration,\n };\n const state = new State(config);\n setNetworkInfoManager(state);\n state.add(setNetInfo);\n return state.tearDown;\n }, [isPaused, configuration]);\n\n const refresh = useCallback(() => {\n networkInfoManager && networkInfoManager._fetchCurrentState();\n }, [networkInfoManager]);\n\n return {\n netInfo,\n refresh,\n };\n}\n\nexport * from './internal/types';\n\nexport default {\n configure,\n fetch,\n refresh,\n addEventListener,\n useNetInfo,\n useNetInfoInstance,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,QAAQ,EAAEC,SAAS,EAAEC,WAAW,QAAO,OAAO;AACtD,SAAQC,QAAQ,QAAO,cAAc;AACrC,OAAOC,qBAAqB,MAAM,iCAAiC;AACnE,OAAOC,eAAe,MAAM,4BAA4B;AACxD,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAO,KAAKC,KAAK,MAAM,kBAAkB;;AAEzC;AACA,IAAIC,cAAc,GAAGJ,qBAAqB;;AAE1C;AACA,IAAIK,MAAoB,GAAG,IAAI;AAC/B,MAAMC,WAAW,GAAGA,CAAA,KAAa;EAC/B,OAAO,IAAI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CAAChB,kBAAkB,CAAC,CAAC;EAC/D,CAAC,EAAE,CAACgB,kBAAkB,CAAC,CAAC;EAExB,OAAO;IACLV,OAAO;IACPP;EACF,CAAC;AACH;AAEA,cAAc,kBAAkB;AAEhC,eAAe;EACbP,SAAS;EACTI,KAAK;EACLG,OAAO;EACPE,gBAAgB;EAChBI,UAAU;EACVS;AACF,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/NativeRNCNetInfo.js b/node_modules/@react-native-community/netinfo/lib/module/internal/NativeRNCNetInfo.js +new file mode 100644 +index 0000000..54a9e1b +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/NativeRNCNetInfo.js +@@ -0,0 +1,5 @@ ++/* eslint-disable @typescript-eslint/ban-types */ ++ ++import { TurboModuleRegistry } from 'react-native'; ++export default TurboModuleRegistry.getEnforcing('RNCNetInfo'); ++//# sourceMappingURL=NativeRNCNetInfo.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/NativeRNCNetInfo.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/NativeRNCNetInfo.js.map +new file mode 100644 +index 0000000..d366286 +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/NativeRNCNetInfo.js.map +@@ -0,0 +1 @@ ++{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sources":["NativeRNCNetInfo.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-types */\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\n\nexport interface Spec extends TurboModule {\n configure: (config: Object) => void;\n getCurrentState(requestedInterface?: string): Promise;\n // Events\n addListener: (eventName: string) => void;\n removeListeners: (count: number) => void;\n}\n\nexport default TurboModuleRegistry.getEnforcing('RNCNetInfo');\n\n"],"mappings":"AAAA;;AAEA,SAASA,mBAAmB,QAAQ,cAAc;AAUlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,YAAY,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.js.map +index 6a190c8..0ec7a12 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["defaultConfiguration.ts"],"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability"],"mappings":"AAEA,MAAMA,qBAAiD,GAAG;AACxDC,EAAAA,eAAe,EAAE,0CADuC;AAExDC,EAAAA,kBAAkB,EAAE,MAFoC;AAGxDC,EAAAA,mBAAmB,EAAE,EAHmC;AAIxDC,EAAAA,gBAAgB,EAAGC,QAAD,IAChBC,OAAO,CAACC,OAAR,CAAgBF,QAAQ,CAACG,MAAT,KAAoB,GAApC,CALsD;AAMxDC,EAAAA,wBAAwB,EAAE,IAAI,IAN0B;AAMpB;AACpCC,EAAAA,uBAAuB,EAAE,KAAK,IAP0B;AAOpB;AACpCC,EAAAA,0BAA0B,EAAE,KAAK,IARuB;AAQjB;AACvCC,EAAAA,qBAAqB,EAAE,MAAe,IATkB;AAUxDC,EAAAA,mBAAmB,EAAE,KAVmC;AAWxDC,EAAAA,qBAAqB,EAAE;AAXiC,CAA1D;AAcA,eAAed,qBAAf","sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: 'https://clients3.google.com/generate_204',\n reachabilityMethod: 'HEAD',\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 204),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: false,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION;"]} +\ No newline at end of file ++{"version":3,"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability"],"sources":["defaultConfiguration.ts"],"sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: 'https://clients3.google.com/generate_204',\n reachabilityMethod: 'HEAD',\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 204),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: false,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION;"],"mappings":"AAEA,MAAMA,qBAAiD,GAAG;EACxDC,eAAe,EAAE,0CAA0C;EAC3DC,kBAAkB,EAAE,MAAM;EAC1BC,mBAAmB,EAAE,CAAC,CAAC;EACvBC,gBAAgB,EAAGC,QAAkB,IACnCC,OAAO,CAACC,OAAO,CAACF,QAAQ,CAACG,MAAM,KAAK,GAAG,CAAC;EAC1CC,wBAAwB,EAAE,CAAC,GAAG,IAAI;EAAE;EACpCC,uBAAuB,EAAE,EAAE,GAAG,IAAI;EAAE;EACpCC,0BAA0B,EAAE,EAAE,GAAG,IAAI;EAAE;EACvCC,qBAAqB,EAAEA,CAAA,KAAe,IAAI;EAC1CC,mBAAmB,EAAE,KAAK;EAC1BC,qBAAqB,EAAE;AACzB,CAAC;AAED,eAAed,qBAAqB"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.web.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.web.js.map +index ba01d7a..011de62 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.web.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/defaultConfiguration.web.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["defaultConfiguration.web.ts"],"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability"],"mappings":"AAEA,MAAMA,qBAAiD,GAAG;AACxDC,EAAAA,eAAe,EAAE,GADuC;AAExDC,EAAAA,kBAAkB,EAAE,MAFoC;AAGxDC,EAAAA,mBAAmB,EAAE,EAHmC;AAIxDC,EAAAA,gBAAgB,EAAGC,QAAD,IAChBC,OAAO,CAACC,OAAR,CAAgBF,QAAQ,CAACG,MAAT,KAAoB,GAApC,CALsD;AAMxDC,EAAAA,wBAAwB,EAAE,IAAI,IAN0B;AAMpB;AACpCC,EAAAA,uBAAuB,EAAE,KAAK,IAP0B;AAOpB;AACpCC,EAAAA,0BAA0B,EAAE,KAAK,IARuB;AAQjB;AACvCC,EAAAA,qBAAqB,EAAE,MAAe,IATkB;AAUxDC,EAAAA,mBAAmB,EAAE,IAVmC;AAWxDC,EAAAA,qBAAqB,EAAE;AAXiC,CAA1D;AAcA,eAAed,qBAAf","sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: '/',\n reachabilityMethod: \"HEAD\",\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 200),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: true,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION"]} +\ No newline at end of file ++{"version":3,"names":["DEFAULT_CONFIGURATION","reachabilityUrl","reachabilityMethod","reachabilityHeaders","reachabilityTest","response","Promise","resolve","status","reachabilityShortTimeout","reachabilityLongTimeout","reachabilityRequestTimeout","reachabilityShouldRun","shouldFetchWiFiSSID","useNativeReachability"],"sources":["defaultConfiguration.web.ts"],"sourcesContent":["import * as Types from './types';\n\nconst DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = {\n reachabilityUrl: '/',\n reachabilityMethod: \"HEAD\",\n reachabilityHeaders: {},\n reachabilityTest: (response: Response): Promise =>\n Promise.resolve(response.status === 200),\n reachabilityShortTimeout: 5 * 1000, // 5s\n reachabilityLongTimeout: 60 * 1000, // 60s\n reachabilityRequestTimeout: 15 * 1000, // 15s\n reachabilityShouldRun: (): boolean => true,\n shouldFetchWiFiSSID: true,\n useNativeReachability: true\n};\n\nexport default DEFAULT_CONFIGURATION"],"mappings":"AAEA,MAAMA,qBAAiD,GAAG;EACxDC,eAAe,EAAE,GAAG;EACpBC,kBAAkB,EAAE,MAAM;EAC1BC,mBAAmB,EAAE,CAAC,CAAC;EACvBC,gBAAgB,EAAGC,QAAkB,IACnCC,OAAO,CAACC,OAAO,CAACF,QAAQ,CAACG,MAAM,KAAK,GAAG,CAAC;EAC1CC,wBAAwB,EAAE,CAAC,GAAG,IAAI;EAAE;EACpCC,uBAAuB,EAAE,EAAE,GAAG,IAAI;EAAE;EACpCC,0BAA0B,EAAE,EAAE,GAAG,IAAI;EAAE;EACvCC,qBAAqB,EAAEA,CAAA,KAAe,IAAI;EAC1CC,mBAAmB,EAAE,IAAI;EACzBC,qBAAqB,EAAE;AACzB,CAAC;AAED,eAAed,qBAAqB"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js b/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js +index 408453a..e373eef 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js +@@ -1,5 +1,6 @@ +-function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +- ++function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } ++function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } ++function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -8,57 +9,45 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope + * + * @format + */ ++ + export default class InternetReachability { + constructor(configuration, listener) { + _defineProperty(this, "_configuration", void 0); +- + _defineProperty(this, "_listener", void 0); +- + _defineProperty(this, "_isInternetReachable", undefined); +- + _defineProperty(this, "_currentInternetReachabilityCheckHandler", null); +- + _defineProperty(this, "_currentTimeoutHandle", null); +- + _defineProperty(this, "_setIsInternetReachable", isInternetReachable => { + if (this._isInternetReachable === isInternetReachable) { + return; + } +- + this._isInternetReachable = isInternetReachable; +- + this._listener(this._isInternetReachable); + }); +- + _defineProperty(this, "_setExpectsConnection", expectsConnection => { + // Cancel any pending check + if (this._currentInternetReachabilityCheckHandler !== null) { + this._currentInternetReachabilityCheckHandler.cancel(); +- + this._currentInternetReachabilityCheckHandler = null; +- } // Cancel any pending timeout +- +- ++ } ++ // Cancel any pending timeout + if (this._currentTimeoutHandle !== null) { + clearTimeout(this._currentTimeoutHandle); + this._currentTimeoutHandle = null; + } +- + if (expectsConnection && this._configuration.reachabilityShouldRun()) { + // If we expect a connection, start the process for finding if we have one + // Set the state to "null" if it was previously false + if (!this._isInternetReachable) { + this._setIsInternetReachable(null); +- } // Start a network request to check for internet +- +- ++ } ++ // Start a network request to check for internet + this._currentInternetReachabilityCheckHandler = this._checkInternetReachability(); + } else { + // If we don't expect a connection or don't run reachability check, just change the state to "false" + this._setIsInternetReachable(false); + } + }); +- + _defineProperty(this, "_checkInternetReachability", () => { + const controller = new AbortController(); + const responsePromise = fetch(this._configuration.reachabilityUrl, { +@@ -66,16 +55,17 @@ export default class InternetReachability { + method: this._configuration.reachabilityMethod, + cache: 'no-cache', + signal: controller.signal +- }); // Create promise that will reject after the request timeout has been reached ++ }); + ++ // Create promise that will reject after the request timeout has been reached + let timeoutHandle; +- const timeoutPromise = new Promise(() => { +- timeoutHandle = setTimeout(() => controller.abort('timedout'), this._configuration.reachabilityRequestTimeout); +- }); // Create promise that makes it possible to cancel a pending request through a reject +- // eslint-disable-next-line @typescript-eslint/no-empty-function ++ const timeoutPromise = new Promise((_, reject) => { ++ timeoutHandle = setTimeout(() => reject('timedout'), this._configuration.reachabilityRequestTimeout); ++ }); + ++ // Create promise that makes it possible to cancel a pending request through a reject ++ // eslint-disable-next-line @typescript-eslint/no-empty-function + let cancel = () => {}; +- + const cancelPromise = new Promise((_, reject) => { + cancel = () => reject('canceled'); + }); +@@ -83,18 +73,25 @@ export default class InternetReachability { + return this._configuration.reachabilityTest(response); + }).then(result => { + this._setIsInternetReachable(result); +- + const nextTimeoutInterval = this._isInternetReachable ? this._configuration.reachabilityLongTimeout : this._configuration.reachabilityShortTimeout; + this._currentTimeoutHandle = setTimeout(this._checkInternetReachability, nextTimeoutInterval); ++ }).catch(error => { ++ if (error !== 'canceled') { ++ this._setIsInternetReachable(false); ++ this._currentTimeoutHandle = setTimeout(this._checkInternetReachability, this._configuration.reachabilityShortTimeout); ++ } + }).catch(error => { + if ('canceled' === error) { + controller.abort(); + } else { ++ if ('timedout' === error) { ++ controller.abort(); ++ } + this._setIsInternetReachable(false); +- + this._currentTimeoutHandle = setTimeout(this._checkInternetReachability, this._configuration.reachabilityShortTimeout); + } +- }) // Clear request timeout and propagate any errors ++ }) ++ // Clear request timeout and propagate any errors + .then(() => { + clearTimeout(timeoutHandle); + }, error => { +@@ -106,7 +103,6 @@ export default class InternetReachability { + cancel + }; + }); +- + _defineProperty(this, "update", state => { + if (typeof state.isInternetReachable === 'boolean' && this._configuration.useNativeReachability) { + this._setIsInternetReachable(state.isInternetReachable); +@@ -114,29 +110,24 @@ export default class InternetReachability { + this._setExpectsConnection(state.isConnected); + } + }); +- + _defineProperty(this, "currentState", () => { + return this._isInternetReachable; + }); +- + _defineProperty(this, "tearDown", () => { + // Cancel any pending check + if (this._currentInternetReachabilityCheckHandler !== null) { + this._currentInternetReachabilityCheckHandler.cancel(); +- + this._currentInternetReachabilityCheckHandler = null; +- } // Cancel any pending timeout +- ++ } + ++ // Cancel any pending timeout + if (this._currentTimeoutHandle !== null) { + clearTimeout(this._currentTimeoutHandle); + this._currentTimeoutHandle = null; + } + }); +- + this._configuration = configuration; + this._listener = listener; + } +- + } + //# sourceMappingURL=internetReachability.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js.map +index a998c5f..544e5cb 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/internetReachability.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["internetReachability.ts"],"names":["InternetReachability","constructor","configuration","listener","undefined","isInternetReachable","_isInternetReachable","_listener","expectsConnection","_currentInternetReachabilityCheckHandler","cancel","_currentTimeoutHandle","clearTimeout","_configuration","reachabilityShouldRun","_setIsInternetReachable","_checkInternetReachability","controller","AbortController","responsePromise","fetch","reachabilityUrl","headers","reachabilityHeaders","method","reachabilityMethod","cache","signal","timeoutHandle","timeoutPromise","Promise","setTimeout","abort","reachabilityRequestTimeout","cancelPromise","_","reject","promise","race","then","response","reachabilityTest","result","nextTimeoutInterval","reachabilityLongTimeout","reachabilityShortTimeout","catch","error","state","useNativeReachability","_setExpectsConnection","isConnected"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA,eAAe,MAAMA,oBAAN,CAA2B;AAOxCC,EAAAA,WAAW,CACTC,aADS,EAETC,QAFS,EAGT;AAAA;;AAAA;;AAAA,kDAPyDC,SAOzD;;AAAA,sEAN0F,IAM1F;;AAAA,mDALoE,IAKpE;;AAAA,qDAMAC,mBADgC,IAEvB;AACT,UAAI,KAAKC,oBAAL,KAA8BD,mBAAlC,EAAuD;AACrD;AACD;;AAED,WAAKC,oBAAL,GAA4BD,mBAA5B;;AACA,WAAKE,SAAL,CAAe,KAAKD,oBAApB;AACD,KAdC;;AAAA,mDAgB+BE,iBAAD,IAA6C;AAC3E;AACA,UAAI,KAAKC,wCAAL,KAAkD,IAAtD,EAA4D;AAC1D,aAAKA,wCAAL,CAA8CC,MAA9C;;AACA,aAAKD,wCAAL,GAAgD,IAAhD;AACD,OAL0E,CAM3E;;;AACA,UAAI,KAAKE,qBAAL,KAA+B,IAAnC,EAAyC;AACvCC,QAAAA,YAAY,CAAC,KAAKD,qBAAN,CAAZ;AACA,aAAKA,qBAAL,GAA6B,IAA7B;AACD;;AAED,UAAIH,iBAAiB,IAAI,KAAKK,cAAL,CAAoBC,qBAApB,EAAzB,EAAsE;AACpE;AACA;AACA,YAAI,CAAC,KAAKR,oBAAV,EAAgC;AAC9B,eAAKS,uBAAL,CAA6B,IAA7B;AACD,SALmE,CAMpE;;;AACA,aAAKN,wCAAL,GAAgD,KAAKO,0BAAL,EAAhD;AACD,OARD,MAQO;AACL;AACA,aAAKD,uBAAL,CAA6B,KAA7B;AACD;AACF,KAxCC;;AAAA,wDA0CmC,MAAwC;AAC3E,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F,KAnJC;;AACA,SAAKE,cAAL,GAAsBX,aAAtB;AACA,SAAKK,SAAL,GAAiBJ,QAAjB;AACD;;AAbuC","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport * as PrivateTypes from './privateTypes';\nimport * as Types from './types';\n\ninterface InternetReachabilityCheckHandler {\n promise: Promise;\n cancel: () => void;\n}\n\nexport default class InternetReachability {\n private _configuration: Types.NetInfoConfiguration;\n private _listener: PrivateTypes.NetInfoInternetReachabilityChangeListener;\n private _isInternetReachable: boolean | null | undefined = undefined;\n private _currentInternetReachabilityCheckHandler: InternetReachabilityCheckHandler | null = null;\n private _currentTimeoutHandle: ReturnType | null = null;\n\n constructor(\n configuration: Types.NetInfoConfiguration,\n listener: PrivateTypes.NetInfoInternetReachabilityChangeListener,\n ) {\n this._configuration = configuration;\n this._listener = listener;\n }\n\n private _setIsInternetReachable = (\n isInternetReachable: boolean | null,\n ): void => {\n if (this._isInternetReachable === isInternetReachable) {\n return;\n }\n\n this._isInternetReachable = isInternetReachable;\n this._listener(this._isInternetReachable);\n };\n\n private _setExpectsConnection = (expectsConnection: boolean | null): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n\n if (expectsConnection && this._configuration.reachabilityShouldRun()) {\n // If we expect a connection, start the process for finding if we have one\n // Set the state to \"null\" if it was previously false\n if (!this._isInternetReachable) {\n this._setIsInternetReachable(null);\n }\n // Start a network request to check for internet\n this._currentInternetReachabilityCheckHandler = this._checkInternetReachability();\n } else {\n // If we don't expect a connection or don't run reachability check, just change the state to \"false\"\n this._setIsInternetReachable(false);\n }\n };\n\n private _checkInternetReachability = (): InternetReachabilityCheckHandler => {\n const controller = new AbortController();\n\n const responsePromise = fetch(this._configuration.reachabilityUrl, {\n headers: this._configuration.reachabilityHeaders,\n method: this._configuration.reachabilityMethod,\n cache: 'no-cache',\n signal: controller.signal,\n });\n\n // Create promise that will reject after the request timeout has been reached\n let timeoutHandle: ReturnType;\n const timeoutPromise = new Promise((): void => {\n timeoutHandle = setTimeout(\n (): void => controller.abort('timedout'),\n this._configuration.reachabilityRequestTimeout,\n );\n });\n\n // Create promise that makes it possible to cancel a pending request through a reject\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n let cancel: () => void = (): void => {};\n const cancelPromise = new Promise((_, reject): void => {\n cancel = (): void => reject('canceled');\n });\n\n const promise = Promise.race([\n responsePromise,\n timeoutPromise,\n cancelPromise,\n ])\n .then(\n (response): Promise => {\n return this._configuration.reachabilityTest(response);\n },\n )\n .then(\n (result): void => {\n this._setIsInternetReachable(result);\n const nextTimeoutInterval = this._isInternetReachable\n ? this._configuration.reachabilityLongTimeout\n : this._configuration.reachabilityShortTimeout;\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n nextTimeoutInterval,\n );\n },\n )\n .catch(\n (error: Error | 'timedout' | 'canceled'): void => {\n if ('canceled' === error) {\n controller.abort();\n } else {\n this._setIsInternetReachable(false);\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n this._configuration.reachabilityShortTimeout,\n );\n }\n },\n )\n // Clear request timeout and propagate any errors\n .then(\n (): void => {\n clearTimeout(timeoutHandle);\n },\n (error: Error): void => {\n clearTimeout(timeoutHandle);\n throw error;\n },\n );\n\n return {\n promise,\n cancel,\n };\n };\n\n public update = (state: PrivateTypes.NetInfoNativeModuleState): void => {\n if (\n typeof state.isInternetReachable === 'boolean' &&\n this._configuration.useNativeReachability\n ) {\n this._setIsInternetReachable(state.isInternetReachable);\n } else {\n this._setExpectsConnection(state.isConnected);\n }\n };\n\n public currentState = (): boolean | null | undefined => {\n return this._isInternetReachable;\n };\n\n public tearDown = (): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n };\n}\n"]} +\ No newline at end of file ++{"version":3,"names":["InternetReachability","constructor","configuration","listener","_defineProperty","undefined","isInternetReachable","_isInternetReachable","_listener","expectsConnection","_currentInternetReachabilityCheckHandler","cancel","_currentTimeoutHandle","clearTimeout","_configuration","reachabilityShouldRun","_setIsInternetReachable","_checkInternetReachability","controller","AbortController","responsePromise","fetch","reachabilityUrl","headers","reachabilityHeaders","method","reachabilityMethod","cache","signal","timeoutHandle","timeoutPromise","Promise","_","reject","setTimeout","reachabilityRequestTimeout","cancelPromise","promise","race","then","response","reachabilityTest","result","nextTimeoutInterval","reachabilityLongTimeout","reachabilityShortTimeout","catch","error","abort","state","useNativeReachability","_setExpectsConnection","isConnected"],"sources":["internetReachability.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport * as PrivateTypes from './privateTypes';\nimport * as Types from './types';\n\ninterface InternetReachabilityCheckHandler {\n promise: Promise;\n cancel: () => void;\n}\n\nexport default class InternetReachability {\n private _configuration: Types.NetInfoConfiguration;\n private _listener: PrivateTypes.NetInfoInternetReachabilityChangeListener;\n private _isInternetReachable: boolean | null | undefined = undefined;\n private _currentInternetReachabilityCheckHandler: InternetReachabilityCheckHandler | null =\n null;\n private _currentTimeoutHandle: ReturnType | null = null;\n\n constructor(\n configuration: Types.NetInfoConfiguration,\n listener: PrivateTypes.NetInfoInternetReachabilityChangeListener,\n ) {\n this._configuration = configuration;\n this._listener = listener;\n }\n\n private _setIsInternetReachable = (\n isInternetReachable: boolean | null,\n ): void => {\n if (this._isInternetReachable === isInternetReachable) {\n return;\n }\n\n this._isInternetReachable = isInternetReachable;\n this._listener(this._isInternetReachable);\n };\n\n private _setExpectsConnection = (expectsConnection: boolean | null): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n\n if (expectsConnection && this._configuration.reachabilityShouldRun()) {\n // If we expect a connection, start the process for finding if we have one\n // Set the state to \"null\" if it was previously false\n if (!this._isInternetReachable) {\n this._setIsInternetReachable(null);\n }\n // Start a network request to check for internet\n this._currentInternetReachabilityCheckHandler =\n this._checkInternetReachability();\n } else {\n // If we don't expect a connection or don't run reachability check, just change the state to \"false\"\n this._setIsInternetReachable(false);\n }\n };\n\n private _checkInternetReachability = (): InternetReachabilityCheckHandler => {\n const controller = new AbortController();\n\n const responsePromise = fetch(this._configuration.reachabilityUrl, {\n headers: this._configuration.reachabilityHeaders,\n method: this._configuration.reachabilityMethod,\n cache: 'no-cache',\n signal: controller.signal,\n });\n\n // Create promise that will reject after the request timeout has been reached\n let timeoutHandle: ReturnType;\n const timeoutPromise = new Promise((_, reject): void => {\n timeoutHandle = setTimeout(\n (): void => reject('timedout'),\n this._configuration.reachabilityRequestTimeout,\n );\n });\n\n // Create promise that makes it possible to cancel a pending request through a reject\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n let cancel: () => void = (): void => {};\n const cancelPromise = new Promise((_, reject): void => {\n cancel = (): void => reject('canceled');\n });\n\n const promise = Promise.race([\n responsePromise,\n timeoutPromise,\n cancelPromise,\n ])\n .then((response): Promise => {\n return this._configuration.reachabilityTest(response);\n })\n .then((result): void => {\n this._setIsInternetReachable(result);\n const nextTimeoutInterval = this._isInternetReachable\n ? this._configuration.reachabilityLongTimeout\n : this._configuration.reachabilityShortTimeout;\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n nextTimeoutInterval,\n );\n })\n .catch((error: Error | 'timedout' | 'canceled'): void => {\n if (error !== 'canceled') {\n this._setIsInternetReachable(false);\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n this._configuration.reachabilityShortTimeout,\n );\n }\n })\n .catch(\n (error: Error | 'timedout' | 'canceled'): void => {\n if ('canceled' === error) {\n controller.abort();\n } else {\n if ('timedout' === error) {\n controller.abort();\n }\n \n this._setIsInternetReachable(false);\n this._currentTimeoutHandle = setTimeout(\n this._checkInternetReachability,\n this._configuration.reachabilityShortTimeout,\n );\n }\n },\n )\n // Clear request timeout and propagate any errors\n .then(\n (): void => {\n clearTimeout(timeoutHandle);\n },\n (error: Error): void => {\n clearTimeout(timeoutHandle);\n throw error;\n },\n );\n\n return {\n promise,\n cancel,\n };\n };\n\n public update = (state: PrivateTypes.NetInfoNativeModuleState): void => {\n if (\n typeof state.isInternetReachable === 'boolean' &&\n this._configuration.useNativeReachability\n ) {\n this._setIsInternetReachable(state.isInternetReachable);\n } else {\n this._setExpectsConnection(state.isConnected);\n }\n };\n\n public currentState = (): boolean | null | undefined => {\n return this._isInternetReachable;\n };\n\n public tearDown = (): void => {\n // Cancel any pending check\n if (this._currentInternetReachabilityCheckHandler !== null) {\n this._currentInternetReachabilityCheckHandler.cancel();\n this._currentInternetReachabilityCheckHandler = null;\n }\n\n // Cancel any pending timeout\n if (this._currentTimeoutHandle !== null) {\n clearTimeout(this._currentTimeoutHandle);\n this._currentTimeoutHandle = null;\n }\n };\n}\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,eAAe,MAAMA,oBAAoB,CAAC;EAQxCC,WAAWA,CACTC,aAAyC,EACzCC,QAAgE,EAChE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA,+BARyDC,SAAS;IAAAD,eAAA,mDAElE,IAAI;IAAAA,eAAA,gCACgE,IA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QACvCC,YAAY,CAAC,IAAI,CAACD,qBAAqB,CAAC;QACxC,IAAI,CAACA,qBAAqB,GAAG,IAAI;MACnC;IACF,CAAC;IA5JC,IAAI,CAACE,cAAc,GAAGZ,aAAa;IACnC,IAAI,CAACM,SAAS,GAAGL,QAAQ;EAC3B;AA2JF"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js +index f9a0320..5c9c6bf 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js +@@ -6,9 +6,11 @@ + * + * @format + */ ++ + import { NativeEventEmitter } from 'react-native'; +-import RNCNetInfo from './nativeModule'; // Produce an error if we don't have the native module ++import RNCNetInfo from './nativeModule'; + ++// Produce an error if we don't have the native module + if (!RNCNetInfo) { + throw new Error(`@react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps: + +@@ -20,26 +22,26 @@ if (!RNCNetInfo) { + + If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo`); + } ++ + /** + * We export the native interface in this way to give easy shared access to it between the + * JavaScript code and the tests + */ +- +- + let nativeEventEmitter = null; +-export default { ...RNCNetInfo, +- ++export default { ++ configure: RNCNetInfo.configure, ++ addListener: RNCNetInfo.addListener, ++ removeListeners: RNCNetInfo.removeListeners, ++ getCurrentState: RNCNetInfo.getCurrentState, + get eventEmitter() { + if (!nativeEventEmitter) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + /// @ts-ignore + nativeEventEmitter = new NativeEventEmitter(RNCNetInfo); +- } // eslint-disable-next-line @typescript-eslint/ban-ts-comment ++ } ++ // eslint-disable-next-line @typescript-eslint/ban-ts-comment + /// @ts-ignore +- +- + return nativeEventEmitter; + } +- + }; + //# sourceMappingURL=nativeInterface.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js.map +index 084d180..be2bae7 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeInterface.ts"],"names":["NativeEventEmitter","RNCNetInfo","Error","nativeEventEmitter","eventEmitter"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAAQA,kBAAR,QAAiC,cAAjC;AACA,OAAOC,UAAP,MAAuB,gBAAvB,C,CAEA;;AACA,IAAI,CAACA,UAAL,EAAiB;AACf,QAAM,IAAIC,KAAJ,CAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8IARQ,CAAN;AASD;AAED;AACA;AACA;AACA;;;AACA,IAAIC,kBAA6C,GAAG,IAApD;AACA,eAAe,EACb,GAAGF,UADU;;AAEb,MAAIG,YAAJ,GAAuC;AACrC,QAAI,CAACD,kBAAL,EAAyB;AACvB;AACA;AACAA,MAAAA,kBAAkB,GAAG,IAAIH,kBAAJ,CAAuBC,UAAvB,CAArB;AACD,KALoC,CAMrC;AACA;;;AACA,WAAOE,kBAAP;AACD;;AAXY,CAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\n\n// Produce an error if we don't have the native module\nif (!RNCNetInfo) {\n throw new Error(`@react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps:\n\n• Run \\`react-native link @react-native-community/netinfo\\` in the project root.\n• Rebuild and re-run the app.\n• If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.\n* If you are getting this error while unit testing you need to mock the native module. Follow the guide in the README.\n\nIf none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo`);\n}\n\n/**\n * We export the native interface in this way to give easy shared access to it between the\n * JavaScript code and the tests\n */\nlet nativeEventEmitter: NativeEventEmitter | null = null;\nexport default {\n ...RNCNetInfo,\n get eventEmitter(): NativeEventEmitter {\n if (!nativeEventEmitter) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n nativeEventEmitter = new NativeEventEmitter(RNCNetInfo);\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n return nativeEventEmitter;\n },\n};\n"]} +\ No newline at end of file ++{"version":3,"names":["NativeEventEmitter","RNCNetInfo","Error","nativeEventEmitter","configure","addListener","removeListeners","getCurrentState","eventEmitter"],"sources":["nativeInterface.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\n\n// Produce an error if we don't have the native module\nif (!RNCNetInfo) {\n throw new Error(`@react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps:\n\n• Run \\`react-native link @react-native-community/netinfo\\` in the project root.\n• Rebuild and re-run the app.\n• If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.\n* If you are getting this error while unit testing you need to mock the native module. Follow the guide in the README.\n\nIf none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo`);\n}\n\n/**\n * We export the native interface in this way to give easy shared access to it between the\n * JavaScript code and the tests\n */\nlet nativeEventEmitter: NativeEventEmitter | null = null;\n\nexport default {\n configure: RNCNetInfo.configure,\n addListener: RNCNetInfo.addListener,\n removeListeners: RNCNetInfo.removeListeners,\n getCurrentState: RNCNetInfo.getCurrentState,\n get eventEmitter(): NativeEventEmitter {\n if (!nativeEventEmitter) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n nativeEventEmitter = new NativeEventEmitter(RNCNetInfo);\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /// @ts-ignore\n return nativeEventEmitter;\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,kBAAkB,QAAO,cAAc;AAC/C,OAAOC,UAAU,MAAM,gBAAgB;;AAEvC;AACA,IAAI,CAACA,UAAU,EAAE;EACf,MAAM,IAAIC,KAAK,CAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8IAA8I,CAAC;AAC/I;;AAEA;AACA;AACA;AACA;AACA,IAAIC,kBAA6C,GAAG,IAAI;AAExD,eAAe;EACbC,SAAS,EAAEH,UAAU,CAACG,SAAS;EAC/BC,WAAW,EAAEJ,UAAU,CAACI,WAAW;EACnCC,eAAe,EAAEL,UAAU,CAACK,eAAe;EAC3CC,eAAe,EAAEN,UAAU,CAACM,eAAe;EAC3C,IAAIC,YAAYA,CAAA,EAAuB;IACrC,IAAI,CAACL,kBAAkB,EAAE;MACvB;MACA;MACAA,kBAAkB,GAAG,IAAIH,kBAAkB,CAACC,UAAU,CAAC;IACzD;IACA;IACA;IACA,OAAOE,kBAAkB;EAC3B;AACF,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js +index 2effbe1..90042df 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js +@@ -6,15 +6,18 @@ + * + * @format + */ ++ + import { NativeEventEmitter } from 'react-native'; + import RNCNetInfo from './nativeModule'; + import { DEVICE_CONNECTIVITY_EVENT } from './privateTypes'; +-const nativeEventEmitter = new NativeEventEmitter(); // Listen to connectivity events ++const nativeEventEmitter = new NativeEventEmitter(); + ++// Listen to connectivity events + RNCNetInfo.addListener(DEVICE_CONNECTIVITY_EVENT, event => { + nativeEventEmitter.emit(DEVICE_CONNECTIVITY_EVENT, event); + }); +-export default { ...RNCNetInfo, ++export default { ++ ...RNCNetInfo, + eventEmitter: nativeEventEmitter + }; + //# sourceMappingURL=nativeInterface.web.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js.map +index 0a0bf4f..c0c0af8 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeInterface.web.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeInterface.web.ts"],"names":["NativeEventEmitter","RNCNetInfo","DEVICE_CONNECTIVITY_EVENT","nativeEventEmitter","addListener","event","emit","eventEmitter"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAAQA,kBAAR,QAAiC,cAAjC;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,SAAQC,yBAAR,QAAwC,gBAAxC;AAEA,MAAMC,kBAAkB,GAAG,IAAIH,kBAAJ,EAA3B,C,CAEA;;AACAC,UAAU,CAACG,WAAX,CACEF,yBADF,EAEGG,KAAD,IAAiB;AACfF,EAAAA,kBAAkB,CAACG,IAAnB,CAAwBJ,yBAAxB,EAAmDG,KAAnD;AACD,CAJH;AAOA,eAAe,EACb,GAAGJ,UADU;AAEbM,EAAAA,YAAY,EAAEJ;AAFD,CAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\nimport {DEVICE_CONNECTIVITY_EVENT} from './privateTypes';\n\nconst nativeEventEmitter = new NativeEventEmitter();\n\n// Listen to connectivity events\nRNCNetInfo.addListener(\n DEVICE_CONNECTIVITY_EVENT,\n (event): void => {\n nativeEventEmitter.emit(DEVICE_CONNECTIVITY_EVENT, event);\n },\n);\n\nexport default {\n ...RNCNetInfo,\n eventEmitter: nativeEventEmitter,\n};\n"]} +\ No newline at end of file ++{"version":3,"names":["NativeEventEmitter","RNCNetInfo","DEVICE_CONNECTIVITY_EVENT","nativeEventEmitter","addListener","event","emit","eventEmitter"],"sources":["nativeInterface.web.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventEmitter} from 'react-native';\nimport RNCNetInfo from './nativeModule';\nimport {DEVICE_CONNECTIVITY_EVENT} from './privateTypes';\n\nconst nativeEventEmitter = new NativeEventEmitter();\n\n// Listen to connectivity events\nRNCNetInfo.addListener(DEVICE_CONNECTIVITY_EVENT, (event): void => {\n nativeEventEmitter.emit(DEVICE_CONNECTIVITY_EVENT, event);\n});\n\nexport default {\n ...RNCNetInfo,\n eventEmitter: nativeEventEmitter,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,kBAAkB,QAAO,cAAc;AAC/C,OAAOC,UAAU,MAAM,gBAAgB;AACvC,SAAQC,yBAAyB,QAAO,gBAAgB;AAExD,MAAMC,kBAAkB,GAAG,IAAIH,kBAAkB,CAAC,CAAC;;AAEnD;AACAC,UAAU,CAACG,WAAW,CAACF,yBAAyB,EAAGG,KAAK,IAAW;EACjEF,kBAAkB,CAACG,IAAI,CAACJ,yBAAyB,EAAEG,KAAK,CAAC;AAC3D,CAAC,CAAC;AAEF,eAAe;EACb,GAAGJ,UAAU;EACbM,YAAY,EAAEJ;AAChB,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js +index 11b32ce..4d606d8 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js +@@ -6,7 +6,16 @@ + * + * @format + */ ++ + import { NativeModules } from 'react-native'; +-const RNCNetInfo = NativeModules.RNCNetInfo; ++// React Native sets `__turboModuleProxy` on global when TurboModules are enabled. ++// Currently, this is the recommended way to detect TurboModules. ++// https://reactnative.dev/docs/the-new-architecture/backward-compatibility-turbomodules#unify-the-javascript-specs ++// eslint-disable-next-line @typescript-eslint/ban-ts-comment ++// @ts-ignore ++const isTurboModuleEnabled = global.__turboModuleProxy != null; ++const RNCNetInfo = isTurboModuleEnabled ? ++// eslint-disable-next-line @typescript-eslint/no-var-requires ++require('./NativeRNCNetInfo').default : NativeModules.RNCNetInfo; + export default RNCNetInfo; + //# sourceMappingURL=nativeModule.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js.map +index 4599032..7df218b 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeModule.ts"],"names":["NativeModules","RNCNetInfo"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAAQA,aAAR,QAA4B,cAA5B;AAGA,MAAMC,UAA+B,GAAGD,aAAa,CAACC,UAAtD;AAEA,eAAeA,UAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeModules} from 'react-native';\nimport {NetInfoNativeModule} from './privateTypes';\n\nconst RNCNetInfo: NetInfoNativeModule = NativeModules.RNCNetInfo;\n\nexport default RNCNetInfo;\n"]} +\ No newline at end of file ++{"version":3,"names":["NativeModules","isTurboModuleEnabled","global","__turboModuleProxy","RNCNetInfo","require","default"],"sources":["nativeModule.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeModules} from 'react-native';\nimport {NetInfoNativeModule} from './privateTypes';\n\n// React Native sets `__turboModuleProxy` on global when TurboModules are enabled.\n// Currently, this is the recommended way to detect TurboModules.\n// https://reactnative.dev/docs/the-new-architecture/backward-compatibility-turbomodules#unify-the-javascript-specs\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst isTurboModuleEnabled = global.__turboModuleProxy != null;\n\nconst RNCNetInfo: NetInfoNativeModule = isTurboModuleEnabled\n ? // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('./NativeRNCNetInfo').default\n : NativeModules.RNCNetInfo;\n\nexport default RNCNetInfo;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,aAAa,QAAO,cAAc;AAG1C;AACA;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,UAA+B,GAAGH,oBAAoB;AACxD;AACAI,OAAO,CAAC,oBAAoB,CAAC,CAACC,OAAO,GACrCN,aAAa,CAACI,UAAU;AAE5B,eAAeA,UAAU"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js +index 32f2ca5..5547977 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js +@@ -6,15 +6,26 @@ + * + * @format + */ ++ + import { DEVICE_CONNECTIVITY_EVENT } from './privateTypes'; +-import { NetInfoCellularGeneration, NetInfoStateType } from './types'; // See https://wicg.github.io/netinfo/#dom-connectiontype ++import { NetInfoCellularGeneration, NetInfoStateType } from './types'; ++ ++// See https://wicg.github.io/netinfo/#dom-connectiontype ++ ++// See https://wicg.github.io/netinfo/#dom-effectiveconnectiontype ++ ++// https://wicg.github.io/netinfo/#dom-networkinformation-savedata ++ ++// Create (optional) connection APIs on navigator + + // Use a constant test of this form because in SSR on next.js, optional chaining is not sufficient, + // but this test correctly detects that window is not available and allows for conditionals before access +-const isWindowPresent = typeof window !== 'undefined'; // Check if window exists and if the browser supports the connection API ++const isWindowPresent = typeof window !== 'undefined'; + +-const connection = isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS') ? window.navigator.connection || window.navigator.mozConnection || window.navigator.webkitConnection : undefined; // Map browser types to native types ++// Check if window exists and if the browser supports the connection API ++const connection = isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS') ? window.navigator.connection || window.navigator.mozConnection || window.navigator.webkitConnection : undefined; + ++// Map browser types to native types + const typeMapping = { + bluetooth: NetInfoStateType.bluetooth, + cellular: NetInfoStateType.cellular, +@@ -31,17 +42,20 @@ const effectiveTypeMapping = { + '3g': NetInfoCellularGeneration['3g'], + '4g': NetInfoCellularGeneration['4g'], + 'slow-2g': NetInfoCellularGeneration['2g'] +-}; // Determine current state of connection ++}; + ++// Determine current state of connection + const getCurrentState = _requestedInterface => { + const isConnected = isWindowPresent ? navigator.onLine : false; + const baseState = { + isInternetReachable: null +- }; // If we don't have a connection object, we return minimal information ++ }; + ++ // If we don't have a connection object, we return minimal information + if (!connection) { + if (isConnected) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type: NetInfoStateType.other, + details: { +@@ -50,22 +64,22 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } +- +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: false, + isInternetReachable: false, + type: NetInfoStateType.none, + details: null + }; + return state; +- } // Otherwise try to return detailed information +- ++ } + ++ // Otherwise try to return detailed information + const isConnectionExpensive = connection.saveData; + const type = connection.type ? typeMapping[connection.type] : isConnected ? NetInfoStateType.other : NetInfoStateType.unknown; +- + if (type === NetInfoStateType.bluetooth) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -74,7 +88,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === NetInfoStateType.cellular) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -85,7 +100,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === NetInfoStateType.ethernet) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -96,7 +112,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === NetInfoStateType.wifi) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -114,7 +131,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === NetInfoStateType.wimax) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type, + details: { +@@ -123,7 +141,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === NetInfoStateType.none) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: false, + isInternetReachable: false, + type, +@@ -131,7 +150,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } else if (type === NetInfoStateType.unknown) { +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected, + isInternetReachable: null, + type, +@@ -139,8 +159,8 @@ const getCurrentState = _requestedInterface => { + }; + return state; + } +- +- const state = { ...baseState, ++ const state = { ++ ...baseState, + isConnected: true, + type: NetInfoStateType.other, + details: { +@@ -149,7 +169,6 @@ const getCurrentState = _requestedInterface => { + }; + return state; + }; +- + const handlers = []; + const nativeHandlers = []; + const RNCNetInfo = { +@@ -160,7 +179,6 @@ const RNCNetInfo = { + const nativeHandler = () => { + handler(getCurrentState()); + }; +- + if (connection) { + connection.addEventListener('change', nativeHandler); + } else { +@@ -168,16 +186,15 @@ const RNCNetInfo = { + window.addEventListener('online', nativeHandler, false); + window.addEventListener('offline', nativeHandler, false); + } +- } // Remember handlers +- ++ } + ++ // Remember handlers + handlers.push(handler); + nativeHandlers.push(nativeHandler); + break; + } + } + }, +- + removeListeners(type, handler) { + switch (type) { + case DEVICE_CONNECTIVITY_EVENT: +@@ -185,7 +202,6 @@ const RNCNetInfo = { + // Get native handler + const index = handlers.indexOf(handler); + const nativeHandler = nativeHandlers[index]; +- + if (connection) { + connection.removeEventListener('change', nativeHandler); + } else { +@@ -193,24 +209,21 @@ const RNCNetInfo = { + window.removeEventListener('online', nativeHandler); + window.removeEventListener('offline', nativeHandler); + } +- } // Remove handlers +- ++ } + ++ // Remove handlers + handlers.splice(index, 1); + nativeHandlers.splice(index, 1); + break; + } + } + }, +- + async getCurrentState(requestedInterface) { + return getCurrentState(requestedInterface); + }, +- + configure() { + return; + } +- + }; + export default RNCNetInfo; + //# sourceMappingURL=nativeModule.web.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js.map +index 2b50d96..0bdd63e 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/nativeModule.web.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeModule.web.ts"],"names":["DEVICE_CONNECTIVITY_EVENT","NetInfoCellularGeneration","NetInfoStateType","isWindowPresent","window","connection","hasOwnProperty","navigator","mozConnection","webkitConnection","undefined","typeMapping","bluetooth","cellular","ethernet","none","other","unknown","wifi","wimax","mixed","effectiveTypeMapping","getCurrentState","_requestedInterface","isConnected","onLine","baseState","isInternetReachable","state","type","details","isConnectionExpensive","saveData","cellularGeneration","effectiveType","carrier","ipAddress","subnet","ssid","bssid","strength","frequency","linkSpeed","rxLinkSpeed","txLinkSpeed","handlers","nativeHandlers","RNCNetInfo","addListener","handler","nativeHandler","addEventListener","push","removeListeners","index","indexOf","removeEventListener","splice","requestedInterface","configure"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SACEA,yBADF,QAIO,gBAJP;AAKA,SAEEC,yBAFF,EAQEC,gBARF,QAYO,SAZP,C,CAcA;;AA4CA;AACA;AACA,MAAMC,eAAe,GAAG,OAAOC,MAAP,KAAkB,WAA1C,C,CAEA;;AACA,MAAMC,UAAU,GAAIF,eAAe,IAAI,CAACC,MAAM,CAACE,cAAP,CAAsB,OAAtB,CAApB,IAAsD,CAACF,MAAM,CAACE,cAAP,CAAsB,OAAtB,CAAxD,GACfF,MAAM,CAACG,SAAP,CAAiBF,UAAjB,IACAD,MAAM,CAACG,SAAP,CAAiBC,aADjB,IAEAJ,MAAM,CAACG,SAAP,CAAiBE,gBAHF,GAIfC,SAJJ,C,CAMA;;AACA,MAAMC,WAAqD,GAAG;AAC5DC,EAAAA,SAAS,EAAEV,gBAAgB,CAACU,SADgC;AAE5DC,EAAAA,QAAQ,EAAEX,gBAAgB,CAACW,QAFiC;AAG5DC,EAAAA,QAAQ,EAAEZ,gBAAgB,CAACY,QAHiC;AAI5DC,EAAAA,IAAI,EAAEb,gBAAgB,CAACa,IAJqC;AAK5DC,EAAAA,KAAK,EAAEd,gBAAgB,CAACc,KALoC;AAM5DC,EAAAA,OAAO,EAAEf,gBAAgB,CAACe,OANkC;AAO5DC,EAAAA,IAAI,EAAEhB,gBAAgB,CAACgB,IAPqC;AAQ5DC,EAAAA,KAAK,EAAEjB,gBAAgB,CAACiB,KARoC;AAS5DC,EAAAA,KAAK,EAAElB,gBAAgB,CAACc;AAToC,CAA9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6B,CAc9B;;;AACAL,UAAAA,QAAQ,CAACY,MAAT,CAAgBH,KAAhB,EAAuB,CAAvB;AACAR,UAAAA,cAAc,CAACW,MAAf,CAAsBH,KAAtB,EAA6B,CAA7B;AAEA;AACD;AApBH;AAsBD,GAjDqC;;AAmDtC,QAAMhC,eAAN,CAAsBoC,kBAAtB,EAA6E;AAC3E,WAAOpC,eAAe,CAACoC,kBAAD,CAAtB;AACD,GArDqC;;AAuDtCC,EAAAA,SAAS,GAAS;AAChB;AACD;;AAzDqC,CAAxC;AA4DA,eAAeZ,UAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {\n DEVICE_CONNECTIVITY_EVENT,\n NetInfoNativeModule,\n NetInfoNativeModuleState,\n} from './privateTypes';\nimport {\n NetInfoBluetoothState,\n NetInfoCellularGeneration,\n NetInfoCellularState,\n NetInfoEthernetState,\n NetInfoNoConnectionState,\n NetInfoOtherState,\n NetInfoState,\n NetInfoStateType,\n NetInfoUnknownState,\n NetInfoWifiState,\n NetInfoWimaxState,\n} from './types';\n\n// See https://wicg.github.io/netinfo/#dom-connectiontype\ntype ConnectionType =\n | 'bluetooth'\n | 'cellular'\n | 'ethernet'\n | 'mixed'\n | 'none'\n | 'other'\n | 'unknown'\n | 'wifi'\n | 'wimax';\n\n// See https://wicg.github.io/netinfo/#dom-effectiveconnectiontype\ntype ConnectionEffectiveType = '2g' | '3g' | '4g' | 'slow-2g';\n\n// https://wicg.github.io/netinfo/#dom-networkinformation-savedata\ntype ConnectionSaveData = boolean;\n\ninterface Events {\n change: Event;\n}\n\ninterface Connection {\n type: ConnectionType;\n effectiveType: ConnectionEffectiveType;\n saveData: ConnectionSaveData;\n addEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\n// Create (optional) connection APIs on navigator\ndeclare global {\n interface Navigator {\n connection?: Connection;\n mozConnection?: Connection;\n webkitConnection?: Connection;\n }\n}\n// Use a constant test of this form because in SSR on next.js, optional chaining is not sufficient,\n// but this test correctly detects that window is not available and allows for conditionals before access\nconst isWindowPresent = typeof window !== 'undefined';\n\n// Check if window exists and if the browser supports the connection API\nconst connection = (isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS'))\n ? window.navigator.connection ||\n window.navigator.mozConnection ||\n window.navigator.webkitConnection\n : undefined;\n\n// Map browser types to native types\nconst typeMapping: Record = {\n bluetooth: NetInfoStateType.bluetooth,\n cellular: NetInfoStateType.cellular,\n ethernet: NetInfoStateType.ethernet,\n none: NetInfoStateType.none,\n other: NetInfoStateType.other,\n unknown: NetInfoStateType.unknown,\n wifi: NetInfoStateType.wifi,\n wimax: NetInfoStateType.wimax,\n mixed: NetInfoStateType.other,\n};\nconst effectiveTypeMapping: Record<\n ConnectionEffectiveType,\n NetInfoCellularGeneration\n> = {\n '2g': NetInfoCellularGeneration['2g'],\n '3g': NetInfoCellularGeneration['3g'],\n '4g': NetInfoCellularGeneration['4g'],\n 'slow-2g': NetInfoCellularGeneration['2g'],\n};\n\n// Determine current state of connection\nconst getCurrentState = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _requestedInterface?: string,\n): Pick> => {\n const isConnected = isWindowPresent ? navigator.onLine : false;\n const baseState = {\n isInternetReachable: null,\n };\n\n // If we don't have a connection object, we return minimal information\n if (!connection) {\n if (isConnected) {\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive: false,\n },\n };\n return state;\n }\n\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type: NetInfoStateType.none,\n details: null,\n };\n return state;\n }\n\n // Otherwise try to return detailed information\n const isConnectionExpensive = connection.saveData;\n const type: NetInfoStateType = connection.type\n ? typeMapping[connection.type]\n : isConnected\n ? NetInfoStateType.other\n : NetInfoStateType.unknown;\n\n if (type === NetInfoStateType.bluetooth) {\n const state: NetInfoBluetoothState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.cellular) {\n const state: NetInfoCellularState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n cellularGeneration:\n effectiveTypeMapping[connection.effectiveType] || null,\n carrier: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.ethernet) {\n const state: NetInfoEthernetState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ipAddress: null,\n subnet: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wifi) {\n const state: NetInfoWifiState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ssid: null,\n bssid: null,\n strength: null,\n ipAddress: null,\n subnet: null,\n frequency: null,\n linkSpeed: null,\n rxLinkSpeed: null,\n txLinkSpeed: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wimax) {\n const state: NetInfoWimaxState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.none) {\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type,\n details: null,\n };\n return state;\n } else if (type === NetInfoStateType.unknown) {\n const state: NetInfoUnknownState = {\n ...baseState,\n isConnected,\n isInternetReachable: null,\n type,\n details: null,\n };\n return state;\n }\n\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n};\n\nconst handlers: ((state: NetInfoNativeModuleState) => void)[] = [];\nconst nativeHandlers: (() => void)[] = [];\n\nconst RNCNetInfo: NetInfoNativeModule = {\n addListener(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n const nativeHandler = (): void => {\n handler(getCurrentState());\n };\n\n if (connection) {\n connection.addEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.addEventListener('online', nativeHandler, false);\n window.addEventListener('offline', nativeHandler, false);\n }\n }\n\n // Remember handlers\n handlers.push(handler);\n nativeHandlers.push(nativeHandler);\n\n break;\n }\n }\n },\n\n removeListeners(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n // Get native handler\n const index = handlers.indexOf(handler);\n const nativeHandler = nativeHandlers[index];\n\n if (connection) {\n connection.removeEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.removeEventListener('online', nativeHandler);\n window.removeEventListener('offline', nativeHandler);\n }\n }\n\n // Remove handlers\n handlers.splice(index, 1);\n nativeHandlers.splice(index, 1);\n\n break;\n }\n }\n },\n\n async getCurrentState(requestedInterface): Promise {\n return getCurrentState(requestedInterface);\n },\n\n configure(): void {\n return;\n },\n};\n\nexport default RNCNetInfo;\n"]} +\ No newline at end of file ++{"version":3,"names":["DEVICE_CONNECTIVITY_EVENT","NetInfoCellularGeneration","NetInfoStateType","isWindowPresent","window","connection","hasOwnProperty","navigator","mozConnection","webkitConnection","undefined","typeMapping","bluetooth","cellular","ethernet","none","other","unknown","wifi","wimax","mixed","effectiveTypeMapping","getCurrentState","_requestedInterface","isConnected","onLine","baseState","isInternetReachable","state","type","details","isConnectionExpensive","saveData","cellularGeneration","effectiveType","carrier","ipAddress","subnet","ssid","bssid","strength","frequency","linkSpeed","rxLinkSpeed","txLinkSpeed","handlers","nativeHandlers","RNCNetInfo","addListener","handler","nativeHandler","addEventListener","push","removeListeners","index","indexOf","removeEventListener","splice","requestedInterface","configure"],"sources":["nativeModule.web.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {\n DEVICE_CONNECTIVITY_EVENT,\n NetInfoNativeModule,\n NetInfoNativeModuleState,\n} from './privateTypes';\nimport {\n NetInfoBluetoothState,\n NetInfoCellularGeneration,\n NetInfoCellularState,\n NetInfoEthernetState,\n NetInfoNoConnectionState,\n NetInfoOtherState,\n NetInfoState,\n NetInfoStateType,\n NetInfoUnknownState,\n NetInfoWifiState,\n NetInfoWimaxState,\n} from './types';\n\n// See https://wicg.github.io/netinfo/#dom-connectiontype\ntype ConnectionType =\n | 'bluetooth'\n | 'cellular'\n | 'ethernet'\n | 'mixed'\n | 'none'\n | 'other'\n | 'unknown'\n | 'wifi'\n | 'wimax';\n\n// See https://wicg.github.io/netinfo/#dom-effectiveconnectiontype\ntype ConnectionEffectiveType = '2g' | '3g' | '4g' | 'slow-2g';\n\n// https://wicg.github.io/netinfo/#dom-networkinformation-savedata\ntype ConnectionSaveData = boolean;\n\ninterface Events {\n change: Event;\n}\n\ninterface Connection {\n type: ConnectionType;\n effectiveType: ConnectionEffectiveType;\n saveData: ConnectionSaveData;\n addEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeEventListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\n// Create (optional) connection APIs on navigator\ndeclare global {\n interface Navigator {\n connection?: Connection;\n mozConnection?: Connection;\n webkitConnection?: Connection;\n }\n}\n// Use a constant test of this form because in SSR on next.js, optional chaining is not sufficient,\n// but this test correctly detects that window is not available and allows for conditionals before access\nconst isWindowPresent = typeof window !== 'undefined';\n\n// Check if window exists and if the browser supports the connection API\nconst connection = (isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS'))\n ? window.navigator.connection ||\n window.navigator.mozConnection ||\n window.navigator.webkitConnection\n : undefined;\n\n// Map browser types to native types\nconst typeMapping: Record = {\n bluetooth: NetInfoStateType.bluetooth,\n cellular: NetInfoStateType.cellular,\n ethernet: NetInfoStateType.ethernet,\n none: NetInfoStateType.none,\n other: NetInfoStateType.other,\n unknown: NetInfoStateType.unknown,\n wifi: NetInfoStateType.wifi,\n wimax: NetInfoStateType.wimax,\n mixed: NetInfoStateType.other,\n};\nconst effectiveTypeMapping: Record<\n ConnectionEffectiveType,\n NetInfoCellularGeneration\n> = {\n '2g': NetInfoCellularGeneration['2g'],\n '3g': NetInfoCellularGeneration['3g'],\n '4g': NetInfoCellularGeneration['4g'],\n 'slow-2g': NetInfoCellularGeneration['2g'],\n};\n\n// Determine current state of connection\nconst getCurrentState = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _requestedInterface?: string,\n): Pick> => {\n const isConnected = isWindowPresent ? navigator.onLine : false;\n const baseState = {\n isInternetReachable: null,\n };\n\n // If we don't have a connection object, we return minimal information\n if (!connection) {\n if (isConnected) {\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive: false,\n },\n };\n return state;\n }\n\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type: NetInfoStateType.none,\n details: null,\n };\n return state;\n }\n\n // Otherwise try to return detailed information\n const isConnectionExpensive = connection.saveData;\n const type: NetInfoStateType = connection.type\n ? typeMapping[connection.type]\n : isConnected\n ? NetInfoStateType.other\n : NetInfoStateType.unknown;\n\n if (type === NetInfoStateType.bluetooth) {\n const state: NetInfoBluetoothState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.cellular) {\n const state: NetInfoCellularState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n cellularGeneration:\n effectiveTypeMapping[connection.effectiveType] || null,\n carrier: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.ethernet) {\n const state: NetInfoEthernetState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ipAddress: null,\n subnet: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wifi) {\n const state: NetInfoWifiState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n ssid: null,\n bssid: null,\n strength: null,\n ipAddress: null,\n subnet: null,\n frequency: null,\n linkSpeed: null,\n rxLinkSpeed: null,\n txLinkSpeed: null,\n },\n };\n return state;\n } else if (type === NetInfoStateType.wimax) {\n const state: NetInfoWimaxState = {\n ...baseState,\n isConnected: true,\n type,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n } else if (type === NetInfoStateType.none) {\n const state: NetInfoNoConnectionState = {\n ...baseState,\n isConnected: false,\n isInternetReachable: false,\n type,\n details: null,\n };\n return state;\n } else if (type === NetInfoStateType.unknown) {\n const state: NetInfoUnknownState = {\n ...baseState,\n isConnected,\n isInternetReachable: null,\n type,\n details: null,\n };\n return state;\n }\n\n const state: NetInfoOtherState = {\n ...baseState,\n isConnected: true,\n type: NetInfoStateType.other,\n details: {\n isConnectionExpensive,\n },\n };\n return state;\n};\n\nconst handlers: ((state: NetInfoNativeModuleState) => void)[] = [];\nconst nativeHandlers: (() => void)[] = [];\n\nconst RNCNetInfo: NetInfoNativeModule = {\n addListener(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n const nativeHandler = (): void => {\n handler(getCurrentState());\n };\n\n if (connection) {\n connection.addEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.addEventListener('online', nativeHandler, false);\n window.addEventListener('offline', nativeHandler, false);\n }\n }\n\n // Remember handlers\n handlers.push(handler);\n nativeHandlers.push(nativeHandler);\n\n break;\n }\n }\n },\n\n removeListeners(type, handler): void {\n switch (type) {\n case DEVICE_CONNECTIVITY_EVENT: {\n // Get native handler\n const index = handlers.indexOf(handler);\n const nativeHandler = nativeHandlers[index];\n\n if (connection) {\n connection.removeEventListener('change', nativeHandler);\n } else {\n if (isWindowPresent) {\n window.removeEventListener('online', nativeHandler);\n window.removeEventListener('offline', nativeHandler);\n }\n }\n\n // Remove handlers\n handlers.splice(index, 1);\n nativeHandlers.splice(index, 1);\n\n break;\n }\n }\n },\n\n async getCurrentState(requestedInterface): Promise {\n return getCurrentState(requestedIn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O,CAACN,OAAO,CAAC;UACvC,MAAMC,aAAa,GAAGJ,cAAc,CAACQ,KAAK,CAAC;UAE3C,IAAIjD,UAAU,EAAE;YACdA,UAAU,CAACmD,mBAAmB,CAAC,QAAQ,EAAEN,aAAa,CAAC;UACzD,CAAC,MAAM;YACL,IAAI/C,eAAe,EAAE;cACnBC,MAAM,CAACoD,mBAAmB,CAAC,QAAQ,EAAEN,aAAa,CAAC;cACnD9C,MAAM,CAACoD,mBAAmB,CAAC,SAAS,EAAEN,aAAa,CAAC;YACtD;UACF;;UAEA;UACAL,QAAQ,CAACY,MAAM,CAACH,KAAK,EAAE,CAAC,CAAC;UACzBR,cAAc,CAACW,MAAM,CAACH,KAAK,EAAE,CAAC,CAAC;UAE/B;QACF;IACF;EACF,CAAC;EAED,MAAMhC,eAAeA,CAACoC,kBAAkB,EAAqC;IAC3E,OAAOpC,eAAe,CAACoC,kBAAkB,CAAC;EAC5C,CAAC;EAEDC,SAASA,CAAA,EAAS;IAChB;EACF;AACF,CAAC;AAED,eAAeZ,UAAU"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js b/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js +index 4b88052..64831b1 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js +@@ -6,5 +6,8 @@ + * + * @format + */ +-export const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange'; // Certain properties are optional when sent by the native module and are handled by the JS code ++ ++export const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange'; ++ ++// Certain properties are optional when sent by the native module and are handled by the JS code + //# sourceMappingURL=privateTypes.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js.map +index db99fe3..9ef56cb 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/privateTypes.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["privateTypes.ts"],"names":["DEVICE_CONNECTIVITY_EVENT"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA,OAAO,MAAMA,yBAAyB,GAAG,gCAAlC,C,CAEP","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NetInfoConfiguration, NetInfoState} from './types';\n\nexport const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange';\n\n// Certain properties are optional when sent by the native module and are handled by the JS code\nexport type NetInfoNativeModuleState = Pick<\n NetInfoState,\n Exclude\n> & {isInternetReachable?: boolean};\n\nexport interface Events {\n [DEVICE_CONNECTIVITY_EVENT]: NetInfoNativeModuleState;\n}\n\nexport interface NetInfoNativeModule {\n configure: (config: Partial) => void;\n getCurrentState: (\n requestedInterface?: string,\n ) => Promise;\n addListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeListeners(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\nexport type NetInfoInternetReachabilityChangeListener = (\n isInternetReachable: boolean | null | undefined,\n) => void;\n"]} +\ No newline at end of file ++{"version":3,"names":["DEVICE_CONNECTIVITY_EVENT"],"sources":["privateTypes.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NetInfoConfiguration, NetInfoState} from './types';\n\nexport const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange';\n\n// Certain properties are optional when sent by the native module and are handled by the JS code\nexport type NetInfoNativeModuleState = Pick<\n NetInfoState,\n Exclude\n> & {isInternetReachable?: boolean};\n\nexport interface Events {\n [DEVICE_CONNECTIVITY_EVENT]: NetInfoNativeModuleState;\n}\n\nexport interface NetInfoNativeModule {\n configure: (config: Partial) => void;\n getCurrentState: (\n requestedInterface?: string,\n ) => Promise;\n addListener(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n removeListeners(\n type: K,\n listener: (event: Events[K]) => void,\n ): void;\n}\n\nexport type NetInfoInternetReachabilityChangeListener = (\n isInternetReachable: boolean | null | undefined,\n) => void;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,MAAMA,yBAAyB,GAAG,gCAAgC;;AAEzE"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/state.js b/node_modules/@react-native-community/netinfo/lib/module/internal/state.js +index 305d286..7d12f6a 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/state.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/state.js +@@ -1,5 +1,6 @@ +-function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +- ++function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } ++function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } ++function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } + /** + * Copyright (c) Facebook, Inc. and its affiliates. + * +@@ -8,72 +9,61 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope + * + * @format + */ ++ + import NativeInterface from './nativeInterface'; + import InternetReachability from './internetReachability'; + import * as PrivateTypes from './privateTypes'; + export default class State { + constructor(configuration) { + _defineProperty(this, "_nativeEventSubscription", null); +- + _defineProperty(this, "_subscriptions", new Set()); +- + _defineProperty(this, "_latestState", null); +- + _defineProperty(this, "_internetReachability", void 0); +- + _defineProperty(this, "_handleNativeStateUpdate", state => { + // Update the internet reachability module +- this._internetReachability.update(state); // Convert the state from native to JS shape +- +- +- const convertedState = this._convertState(state); // Update the listeners ++ this._internetReachability.update(state); + ++ // Convert the state from native to JS shape ++ const convertedState = this._convertState(state); + ++ // Update the listeners + this._latestState = convertedState; +- + this._subscriptions.forEach(handler => handler(convertedState)); + }); +- + _defineProperty(this, "_handleInternetReachabilityUpdate", isInternetReachable => { + if (!this._latestState) { + return; + } +- +- const nextState = { ...this._latestState, ++ const nextState = { ++ ...this._latestState, + isInternetReachable + }; + this._latestState = nextState; +- + this._subscriptions.forEach(handler => handler(nextState)); + }); +- + _defineProperty(this, "_fetchCurrentState", async requestedInterface => { +- const state = await NativeInterface.getCurrentState(requestedInterface); // Update the internet reachability module +- +- this._internetReachability.update(state); // Convert and store the new state +- ++ const state = await NativeInterface.getCurrentState(requestedInterface); + ++ // Update the internet reachability module ++ this._internetReachability.update(state); ++ // Convert and store the new state + const convertedState = this._convertState(state); +- + if (!requestedInterface) { + this._latestState = convertedState; +- + this._subscriptions.forEach(handler => handler(convertedState)); + } +- + return convertedState; + }); +- + _defineProperty(this, "_convertState", input => { + if (typeof input.isInternetReachable === 'boolean') { + return input; + } else { +- return { ...input, ++ return { ++ ...input, + isInternetReachable: this._internetReachability.currentState() + }; + } + }); +- + _defineProperty(this, "latest", requestedInterface => { + if (requestedInterface) { + return this._fetchCurrentState(requestedInterface); +@@ -83,42 +73,37 @@ export default class State { + return this._fetchCurrentState(); + } + }); +- + _defineProperty(this, "add", handler => { + // Add the subscription handler to our set +- this._subscriptions.add(handler); // Send it the latest data we have +- ++ this._subscriptions.add(handler); + ++ // Send it the latest data we have + if (this._latestState) { + handler(this._latestState); + } else { + this.latest().then(handler); + } + }); +- + _defineProperty(this, "remove", handler => { + this._subscriptions.delete(handler); + }); +- + _defineProperty(this, "tearDown", () => { + if (this._internetReachability) { + this._internetReachability.tearDown(); + } +- + if (this._nativeEventSubscription) { + this._nativeEventSubscription.remove(); + } +- + this._subscriptions.clear(); + }); +- + // Add the listener to the internet connectivity events +- this._internetReachability = new InternetReachability(configuration, this._handleInternetReachabilityUpdate); // Add the subscription to the native events ++ this._internetReachability = new InternetReachability(configuration, this._handleInternetReachabilityUpdate); + +- this._nativeEventSubscription = NativeInterface.eventEmitter.addListener(PrivateTypes.DEVICE_CONNECTIVITY_EVENT, this._handleNativeStateUpdate); // Fetch the current state from the native module ++ // Add the subscription to the native events ++ this._nativeEventSubscription = NativeInterface.eventEmitter.addListener(PrivateTypes.DEVICE_CONNECTIVITY_EVENT, this._handleNativeStateUpdate); + ++ // Fetch the current state from the native module + this._fetchCurrentState(); + } +- + } + //# sourceMappingURL=state.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/state.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/state.js.map +index e6e8249..053e584 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/state.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/state.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["state.ts"],"names":["NativeInterface","InternetReachability","PrivateTypes","State","constructor","configuration","Set","state","_internetReachability","update","convertedState","_convertState","_latestState","_subscriptions","forEach","handler","isInternetReachable","nextState","requestedInterface","getCurrentState","input","currentState","_fetchCurrentState","Promise","resolve","add","latest","then","delete","tearDown","_nativeEventSubscription","remove","clear","_handleInternetReachabilityUpdate","eventEmitter","addListener","DEVICE_CONNECTIVITY_EVENT","_handleNativeStateUpdate"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAOA,eAAP,MAA4B,mBAA5B;AACA,OAAOC,oBAAP,MAAiC,wBAAjC;AAEA,OAAO,KAAKC,YAAZ,MAA8B,gBAA9B;AA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AhB,CAA6BC,WAA7B,CAC9BjC,YAAY,CAACkC,yBADiB,EAE9B,KAAKC,wBAFyB,CAAhC,CARqD,CAarD;;AACA,SAAKf,kBAAL;AACD;;AArBwB","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventSubscription} from 'react-native';\nimport NativeInterface from './nativeInterface';\nimport InternetReachability from './internetReachability';\nimport * as Types from './types';\nimport * as PrivateTypes from './privateTypes';\n\nexport default class State {\n private _nativeEventSubscription: NativeEventSubscription | null = null;\n private _subscriptions = new Set();\n private _latestState: Types.NetInfoState | null = null;\n private _internetReachability: InternetReachability;\n\n constructor(configuration: Types.NetInfoConfiguration) {\n // Add the listener to the internet connectivity events\n this._internetReachability = new InternetReachability(\n configuration,\n this._handleInternetReachabilityUpdate,\n );\n\n // Add the subscription to the native events\n this._nativeEventSubscription = NativeInterface.eventEmitter.addListener(\n PrivateTypes.DEVICE_CONNECTIVITY_EVENT,\n this._handleNativeStateUpdate,\n );\n\n // Fetch the current state from the native module\n this._fetchCurrentState();\n }\n\n private _handleNativeStateUpdate = (\n state: PrivateTypes.NetInfoNativeModuleState,\n ): void => {\n // Update the internet reachability module\n this._internetReachability.update(state);\n\n // Convert the state from native to JS shape\n const convertedState = this._convertState(state);\n\n // Update the listeners\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n };\n\n private _handleInternetReachabilityUpdate = (\n isInternetReachable: boolean | null | undefined,\n ): void => {\n if (!this._latestState) {\n return;\n }\n\n const nextState = {\n ...this._latestState,\n isInternetReachable,\n } as Types.NetInfoState;\n this._latestState = nextState;\n this._subscriptions.forEach((handler): void => handler(nextState));\n };\n\n public _fetchCurrentState = async (\n requestedInterface?: string,\n ): Promise => {\n const state = await NativeInterface.getCurrentState(requestedInterface);\n\n // Update the internet reachability module\n this._internetReachability.update(state);\n // Convert and store the new state\n const convertedState = this._convertState(state);\n if (!requestedInterface) {\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n }\n\n return convertedState;\n };\n\n private _convertState = (\n input: PrivateTypes.NetInfoNativeModuleState,\n ): Types.NetInfoState => {\n if (typeof input.isInternetReachable === 'boolean') {\n return input as Types.NetInfoState;\n } else {\n return {\n ...input,\n isInternetReachable: this._internetReachability.currentState(),\n } as Types.NetInfoState;\n }\n };\n\n public latest = (\n requestedInterface?: string,\n ): Promise => {\n if (requestedInterface) {\n return this._fetchCurrentState(requestedInterface);\n } else if (this._latestState) {\n return Promise.resolve(this._latestState);\n } else {\n return this._fetchCurrentState();\n }\n };\n\n public add = (handler: Types.NetInfoChangeHandler): void => {\n // Add the subscription handler to our set\n this._subscriptions.add(handler);\n\n // Send it the latest data we have\n if (this._latestState) {\n handler(this._latestState);\n } else {\n this.latest().then(handler);\n }\n };\n\n public remove = (handler: Types.NetInfoChangeHandler): void => {\n this._subscriptions.delete(handler);\n };\n\n public tearDown = (): void => {\n if (this._internetReachability) {\n this._internetReachability.tearDown();\n }\n\n if (this._nativeEventSubscription) {\n this._nativeEventSubscription.remove();\n }\n\n this._subscriptions.clear();\n };\n}\n"]} +\ No newline at end of file ++{"version":3,"names":["NativeInterface","InternetReachability","PrivateTypes","State","constructor","configuration","_defineProperty","Set","state","_internetReachability","update","convertedState","_convertState","_latestState","_subscriptions","forEach","handler","isInternetReachable","nextState","requestedInterface","getCurrentState","input","currentState","_fetchCurrentState","Promise","resolve","add","latest","then","delete","tearDown","_nativeEventSubscription","remove","clear","_handleInternetReachabilityUpdate","eventEmitter","addListener","DEVICE_CONNECTIVITY_EVENT","_handleNativeStateUpdate"],"sources":["state.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {NativeEventSubscription} from 'react-native';\nimport NativeInterface from './nativeInterface';\nimport InternetReachability from './internetReachability';\nimport * as Types from './types';\nimport * as PrivateTypes from './privateTypes';\n\nexport default class State {\n private _nativeEventSubscription: NativeEventSubscription | null = null;\n private _subscriptions = new Set();\n private _latestState: Types.NetInfoState | null = null;\n private _internetReachability: InternetReachability;\n\n constructor(configuration: Types.NetInfoConfiguration) {\n // Add the listener to the internet connectivity events\n this._internetReachability = new InternetReachability(\n configuration,\n this._handleInternetReachabilityUpdate,\n );\n\n // Add the subscription to the native events\n this._nativeEventSubscription = NativeInterface.eventEmitter.addListener(\n PrivateTypes.DEVICE_CONNECTIVITY_EVENT,\n this._handleNativeStateUpdate,\n );\n\n // Fetch the current state from the native module\n this._fetchCurrentState();\n }\n\n private _handleNativeStateUpdate = (\n state: PrivateTypes.NetInfoNativeModuleState,\n ): void => {\n // Update the internet reachability module\n this._internetReachability.update(state);\n\n // Convert the state from native to JS shape\n const convertedState = this._convertState(state);\n\n // Update the listeners\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n };\n\n private _handleInternetReachabilityUpdate = (\n isInternetReachable: boolean | null | undefined,\n ): void => {\n if (!this._latestState) {\n return;\n }\n\n const nextState = {\n ...this._latestState,\n isInternetReachable,\n } as Types.NetInfoState;\n this._latestState = nextState;\n this._subscriptions.forEach((handler): void => handler(nextState));\n };\n\n public _fetchCurrentState = async (\n requestedInterface?: string,\n ): Promise => {\n const state = await NativeInterface.getCurrentState(requestedInterface);\n\n // Update the internet reachability module\n this._internetReachability.update(state);\n // Convert and store the new state\n const convertedState = this._convertState(state);\n if (!requestedInterface) {\n this._latestState = convertedState;\n this._subscriptions.forEach((handler): void => handler(convertedState));\n }\n\n return convertedState;\n };\n\n private _convertState = (\n input: PrivateTypes.NetInfoNativeModuleState,\n ): Types.NetInfoState => {\n if (typeof input.isInternetReachable === 'boolean') {\n return input as Types.NetInfoState;\n } else {\n return {\n ...input,\n isInternetReachable: this._internetReachability.currentState(),\n } as Types.NetInfoState;\n }\n };\n\n public latest = (\n requestedInterface?: string,\n ): Promise => {\n if (requestedInterface) {\n return this._fetchCurrentState(requestedInterface);\n } else if (this._latestState) {\n return Promise.resolve(this._latestState);\n } else {\n return this._fetchCurrentState();\n }\n };\n\n public add = (handler: Types.NetInfoChangeHandler): void => {\n // Add the subscription handler to our set\n this._subscriptions.add(handler);\n\n // Send it the latest data we have\n if (this._latestState) {\n handler(this._latestState);\n } else {\n this.latest().then(handler);\n }\n };\n\n public remove = (handler: Types.NetInfoChangeHandler): void => {\n this._subscriptions.delete(handler);\n };\n\n public tearDown = (): void => {\n if (this._internetReachability) {\n this._internetReachability.tearDown();\n }\n\n if (this._nativeEventSubscription) {\n this._nativeEventSubscription.remove();\n }\n\n this._subscriptions.clear();\n };\n}\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAOA,eAAe,MAAM,mBAAmB;AAC/C,OAAOC,oBAAoB,MAAM,wBAAwB;AAEzD,OAAO,KAAKC,YAAY,MAAM,gBAAgB;AAE9C,eAAe,MAAMC,KAAK,CAAC;EAMzBC,WAAWA,CAACC,aAAyC,EAAE;IAAAC,eAAA,mCALY,IAAI;IAAAA,eAAA,yBAC9C,IAAIC,GAAG,CAA6B,CAAC;IAAAD,eAAA,uBACZ,IAAI;IAAAA,eAAA;IAAAA,eAAA,mCAqBpDE,KAA4C,IACnC;MACT;MACA,IAAI,CAACC,qBAAqB,CAACC,MAAM,CAACF,KAAK,CAAC;;MAExC;MACA,MAAMG,cAAc,GAAG,IAAI,CAACC,aAAa,CAACJ,KAAK,CAAC;;MAEhD;MACA,IAAI,CAACK,YAAY,GAAGF,cAAc;MAClC,IAAI,CAACG,cAAc,CAACC,OAAO,CAAEC,OAAO,IAAWA,OAAO,CAACL,cAAc,CAAC,CAAC;IACzE,CAAC;IAAAL,eAAA,4CAGCW,mBAA+C,IACtC;MACT,IAAI,CAAC,IAAI,CAACJ,YAAY,EAAE;QACtB;MACF;MAEA,MAAMK,SAAS,GAAG;QAChB,GAAG,I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F,cAAc,CAACY,GAAG,CAACV,OAAO,CAAC;;MAEhC;MACA,IAAI,IAAI,CAACH,YAAY,EAAE;QACrBG,OAAO,CAAC,IAAI,CAACH,YAAY,CAAC;MAC5B,CAAC,MAAM;QACL,IAAI,CAACc,MAAM,CAAC,CAAC,CAACC,IAAI,CAACZ,OAAO,CAAC;MAC7B;IACF,CAAC;IAAAV,eAAA,iBAEgBU,OAAmC,IAAW;MAC7D,IAAI,CAACF,cAAc,CAACe,MAAM,CAACb,OAAO,CAAC;IACrC,CAAC;IAAAV,eAAA,mBAEiB,MAAY;MAC5B,IAAI,IAAI,CAACG,qBAAqB,EAAE;QAC9B,IAAI,CAACA,qBAAqB,CAACqB,QAAQ,CAAC,CAAC;MACvC;MAEA,IAAI,IAAI,CAACC,wBAAwB,EAAE;QACjC,IAAI,CAACA,wBAAwB,CAACC,MAAM,CAAC,CAAC;MACxC;MAEA,IAAI,CAAClB,cAAc,CAACmB,KAAK,CAAC,CAAC;IAC7B,CAAC;IAjHC;IACA,IAAI,CAACxB,qBAAqB,GAAG,IAAIR,oBAAoB,CACnDI,aAAa,EACb,IAAI,CAAC6B,iCACP,CAAC;;IAED;IACA,IAAI,CAACH,wBAAwB,GAAG/B,eAAe,CAACmC,YAAY,CAACC,WAAW,CACtElC,YAAY,CAACmC,yBAAyB,EACtC,IAAI,CAACC,wBACP,CAAC;;IAED;IACA,IAAI,CAACf,kBAAkB,CAAC,CAAC;EAC3B;AAoGF"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/types.js b/node_modules/@react-native-community/netinfo/lib/module/internal/types.js +index ac35a3d..ebe70e5 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/types.js ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/types.js +@@ -6,9 +6,8 @@ + * + * @format + */ +-export let NetInfoStateType; + +-(function (NetInfoStateType) { ++export let NetInfoStateType = /*#__PURE__*/function (NetInfoStateType) { + NetInfoStateType["unknown"] = "unknown"; + NetInfoStateType["none"] = "none"; + NetInfoStateType["cellular"] = "cellular"; +@@ -18,14 +17,13 @@ export let NetInfoStateType; + NetInfoStateType["wimax"] = "wimax"; + NetInfoStateType["vpn"] = "vpn"; + NetInfoStateType["other"] = "other"; +-})(NetInfoStateType || (NetInfoStateType = {})); +- +-export let NetInfoCellularGeneration; +- +-(function (NetInfoCellularGeneration) { ++ return NetInfoStateType; ++}({}); ++export let NetInfoCellularGeneration = /*#__PURE__*/function (NetInfoCellularGeneration) { + NetInfoCellularGeneration["2g"] = "2g"; + NetInfoCellularGeneration["3g"] = "3g"; + NetInfoCellularGeneration["4g"] = "4g"; + NetInfoCellularGeneration["5g"] = "5g"; +-})(NetInfoCellularGeneration || (NetInfoCellularGeneration = {})); ++ return NetInfoCellularGeneration; ++}({}); + //# sourceMappingURL=types.js.map +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/module/internal/types.js.map b/node_modules/@react-native-community/netinfo/lib/module/internal/types.js.map +index 340dc4a..afd20ec 100644 +--- a/node_modules/@react-native-community/netinfo/lib/module/internal/types.js.map ++++ b/node_modules/@react-native-community/netinfo/lib/module/internal/types.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["types.ts"],"names":["NetInfoStateType","NetInfoCellularGeneration"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,gBAAZ;;WAAYA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;GAAAA,gB,KAAAA,gB;;AAcZ,WAAYC,yBAAZ;;WAAYA,yB;AAAAA,EAAAA,yB;AAAAA,EAAAA,yB;AAAAA,EAAAA,yB;AAAAA,EAAAA,yB;GAAAA,yB,KAAAA,yB","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nexport enum NetInfoStateType {\n unknown = 'unknown',\n none = 'none',\n cellular = 'cellular',\n wifi = 'wifi',\n bluetooth = 'bluetooth',\n ethernet = 'ethernet',\n wimax = 'wimax',\n vpn = 'vpn',\n other = 'other',\n}\n\nexport type NetInfoMethodType = 'HEAD' | 'GET';\n\nexport enum NetInfoCellularGeneration {\n '2g' = '2g',\n '3g' = '3g',\n '4g' = '4g',\n '5g' = '5g',\n}\n\nexport interface NetInfoConnectedDetails {\n isConnectionExpensive: boolean;\n}\n\ninterface NetInfoConnectedState<\n T extends NetInfoStateType,\n D extends Record = Record\n> {\n type: T;\n isConnected: true;\n isInternetReachable: boolean | null;\n details: D & NetInfoConnectedDetails;\n isWifiEnabled?: boolean;\n}\n\ninterface NetInfoDisconnectedState {\n type: T;\n isConnected: false;\n isInternetReachable: false;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport interface NetInfoUnknownState {\n type: NetInfoStateType.unknown;\n isConnected: boolean | null;\n isInternetReachable: null;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport type NetInfoNoConnectionState = NetInfoDisconnectedState<\n NetInfoStateType.none\n>;\nexport type NetInfoDisconnectedStates =\n | NetInfoUnknownState\n | NetInfoNoConnectionState;\n\nexport type NetInfoCellularState = NetInfoConnectedState<\n NetInfoStateType.cellular,\n {\n cellularGeneration: NetInfoCellularGeneration | null;\n carrier: string | null;\n }\n>;\nexport type NetInfoWifiState = NetInfoConnectedState<\n NetInfoStateType.wifi,\n {\n ssid: string | null;\n bssid: string | null;\n strength: number | null;\n ipAddress: string | null;\n subnet: string | null;\n frequency: number | null;\n linkSpeed: number | null;\n rxLinkSpeed: number | null;\n txLinkSpeed: number | null;\n }\n>;\nexport type NetInfoBluetoothState = NetInfoConnectedState<\n NetInfoStateType.bluetooth\n>;\nexport type NetInfoEthernetState = NetInfoConnectedState<\n NetInfoStateType.ethernet,\n {\n ipAddress: string | null;\n subnet: string | null;\n }\n>;\nexport type NetInfoWimaxState = NetInfoConnectedState;\nexport type NetInfoVpnState = NetInfoConnectedState;\nexport type NetInfoOtherState = NetInfoConnectedState;\nexport type NetInfoConnectedStates =\n | NetInfoCellularState\n | NetInfoWifiState\n | NetInfoBluetoothState\n | NetInfoEthernetState\n | NetInfoWimaxState\n | NetInfoVpnState\n | NetInfoOtherState;\n\nexport type NetInfoState = NetInfoDisconnectedStates | NetInfoConnectedStates;\n\nexport type NetInfoChangeHandler = (state: NetInfoState) => void;\nexport type NetInfoSubscription = () => void;\n\nexport interface NetInfoConfiguration {\n reachabilityUrl: string;\n reachabilityMethod?: NetInfoMethodType;\n reachabilityHeaders?: Record;\n reachabilityTest: (response: Response) => Promise;\n reachabilityLongTimeout: number;\n reachabilityShortTimeout: number;\n reachabilityRequestTimeout: number;\n reachabilityShouldRun: () => boolean;\n shouldFetchWiFiSSID: boolean;\n useNativeReachability: boolean;\n}\n"]} +\ No newline at end of file ++{"version":3,"names":["NetInfoStateType","NetInfoCellularGeneration"],"sources":["types.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nexport enum NetInfoStateType {\n unknown = 'unknown',\n none = 'none',\n cellular = 'cellular',\n wifi = 'wifi',\n bluetooth = 'bluetooth',\n ethernet = 'ethernet',\n wimax = 'wimax',\n vpn = 'vpn',\n other = 'other',\n}\n\nexport type NetInfoMethodType = 'HEAD' | 'GET';\n\nexport enum NetInfoCellularGeneration {\n '2g' = '2g',\n '3g' = '3g',\n '4g' = '4g',\n '5g' = '5g',\n}\n\nexport interface NetInfoConnectedDetails {\n isConnectionExpensive: boolean;\n}\n\ninterface NetInfoConnectedState<\n T extends NetInfoStateType,\n D extends Record = Record,\n> {\n type: T;\n isConnected: true;\n isInternetReachable: boolean | null;\n details: D & NetInfoConnectedDetails;\n isWifiEnabled?: boolean;\n}\n\ninterface NetInfoDisconnectedState {\n type: T;\n isConnected: false;\n isInternetReachable: false;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport interface NetInfoUnknownState {\n type: NetInfoStateType.unknown;\n isConnected: boolean | null;\n isInternetReachable: null;\n details: null;\n isWifiEnabled?: boolean;\n}\n\nexport type NetInfoNoConnectionState =\n NetInfoDisconnectedState;\nexport type NetInfoDisconnectedStates =\n | NetInfoUnknownState\n | NetInfoNoConnectionState;\n\nexport type NetInfoCellularState = NetInfoConnectedState<\n NetInfoStateType.cellular,\n {\n cellularGeneration: NetInfoCellularGeneration | null;\n carrier: string | null;\n }\n>;\nexport type NetInfoWifiState = NetInfoConnectedState<\n NetInfoStateType.wifi,\n {\n ssid: string | null;\n bssid: string | null;\n strength: number | null;\n ipAddress: string | null;\n subnet: string | null;\n frequency: number | null;\n linkSpeed: number | null;\n rxLinkSpeed: number | null;\n txLinkSpeed: number | null;\n }\n>;\nexport type NetInfoBluetoothState =\n NetInfoConnectedState;\nexport type NetInfoEthernetState = NetInfoConnectedState<\n NetInfoStateType.ethernet,\n {\n ipAddress: string | null;\n subnet: string | null;\n }\n>;\nexport type NetInfoWimaxState = NetInfoConnectedState;\nexport type NetInfoVpnState = NetInfoConnectedState;\nexport type NetInfoOtherState = NetInfoConnectedState;\nexport type NetInfoConnectedStates =\n | NetInfoCellularState\n | NetInfoWifiState\n | NetInfoBluetoothState\n | NetInfoEthernetState\n | NetInfoWimaxState\n | NetInfoVpnState\n | NetInfoOtherState;\n\nexport type NetInfoState = NetInfoDisconnectedStates | NetInfoConnectedStates;\n\nexport type NetInfoChangeHandler = (state: NetInfoState) => void;\nexport type NetInfoSubscription = () => void;\n\nexport interface NetInfoConfiguration {\n reachabilityUrl: string;\n reachabilityMethod?: NetInfoMethodType;\n reachabilityHeaders?: Record;\n reachabilityTest: (response: Response) => Promise;\n reachabilityLongTimeout: number;\n reachabilityShortTimeout: number;\n reachabilityRequestTimeout: number;\n reachabilityShouldRun: () => boolean;\n shouldFetchWiFiSSID: boolean;\n useNativeReachability: boolean;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAc5B,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA"} +\ No newline at end of file +diff --git a/node_modules/@react-native-community/netinfo/lib/typescript/src/internal/NativeRNCNetInfo.d.ts b/node_modules/@react-native-community/netinfo/lib/typescript/src/internal/NativeRNCNetInfo.d.ts +new file mode 100644 +index 0000000..b5db384 +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/lib/typescript/src/internal/NativeRNCNetInfo.d.ts +@@ -0,0 +1,9 @@ ++import type { TurboModule } from 'react-native'; ++export interface Spec extends TurboModule { ++ configure: (config: Object) => void; ++ getCurrentState(requestedInterface?: string): Promise; ++ addListener: (eventName: string) => void; ++ removeListeners: (count: number) => void; ++} ++declare const _default: Spec; ++export default _default; +diff --git a/node_modules/@react-native-community/netinfo/lib/typescript/src/internal/nativeInterface.d.ts b/node_modules/@react-native-community/netinfo/lib/typescript/src/internal/nativeInterface.d.ts +index 6982220..b515270 100644 +--- a/node_modules/@react-native-community/netinfo/lib/typescript/src/internal/nativeInterface.d.ts ++++ b/node_modules/@react-native-community/netinfo/lib/typescript/src/internal/nativeInterface.d.ts +@@ -8,10 +8,10 @@ + */ + import { NativeEventEmitter } from 'react-native'; + declare const _default: { +- eventEmitter: NativeEventEmitter; + configure: (config: Partial) => void; ++ addListener: (type: K, listener: (event: import("./privateTypes").Events[K]) => void) => void; ++ removeListeners: (type: K_1, listener: (event: import("./privateTypes").Events[K_1]) => void) => void; + getCurrentState: (requestedInterface?: string | undefined) => Promise; +- addListener(type: K, listener: (event: import("./privateTypes").Events[K]) => void): void; +- removeListeners(type: K_1, listener: (event: import("./privateTypes").Events[K_1]) => void): void; ++ readonly eventEmitter: NativeEventEmitter; + }; + export default _default; +diff --git a/node_modules/@react-native-community/netinfo/package.json b/node_modules/@react-native-community/netinfo/package.json +index 3c80db2..61e6564 100644 +--- a/node_modules/@react-native-community/netinfo/package.json ++++ b/node_modules/@react-native-community/netinfo/package.json +@@ -48,6 +48,7 @@ + "network info" + ], + "peerDependencies": { ++ "react": "*", + "react-native": ">=0.59" + }, + "dependencies": {}, +@@ -121,5 +122,13 @@ + "yarn eslint --fix", + "git add" + ] ++ }, ++ "codegenConfig": { ++ "name": "RNCNetInfoSpec", ++ "type": "modules", ++ "jsSrcsDir": "src/internal", ++ "android": { ++ "javaPackageName": "com.reactnativecommunity.netinfo" ++ } + } + } +diff --git a/node_modules/@react-native-community/netinfo/react-native-netinfo.podspec b/node_modules/@react-native-community/netinfo/react-native-netinfo.podspec +index e34e728..9090eb1 100644 +--- a/node_modules/@react-native-community/netinfo/react-native-netinfo.podspec ++++ b/node_modules/@react-native-community/netinfo/react-native-netinfo.podspec +@@ -2,6 +2,8 @@ require 'json' + + package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + ++is_new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' ++ + Pod::Spec.new do |s| + s.name = "react-native-netinfo" + s.version = package['version'] +@@ -13,7 +15,11 @@ Pod::Spec.new do |s| + s.platforms = { :ios => "9.0", :tvos => "9.2", :osx => "10.14" } + + s.source = { :git => "https://github.com/react-native-community/react-native-netinfo.git", :tag => "v#{s.version}" } +- s.source_files = "ios/**/*.{h,m}" ++ s.source_files = "ios/**/*.{h,m,mm,swift}" + +- s.dependency 'React-Core' ++ if is_new_arch_enabled ++ install_modules_dependencies(s) ++ else ++ s.dependency 'React-Core' ++ end + end +diff --git a/node_modules/@react-native-community/netinfo/src/__tests__/eventListenerCallbacks.spec.ts b/node_modules/@react-native-community/netinfo/src/__tests__/eventListenerCallbacks.spec.ts +index 4ba58e9..9f87df7 100644 +--- a/node_modules/@react-native-community/netinfo/src/__tests__/eventListenerCallbacks.spec.ts ++++ b/node_modules/@react-native-community/netinfo/src/__tests__/eventListenerCallbacks.spec.ts +@@ -32,7 +32,7 @@ beforeAll(() => { + + describe('@react-native-community/netinfo listener', () => { + describe('Event listener callbacks', () => { +- it('should call the listener on listening', done => { ++ it('should call the listener on listening', (done) => { + const listener = jest.fn(); + NetInfo.addEventListener(listener); + +@@ -42,7 +42,7 @@ describe('@react-native-community/netinfo listener', () => { + }, 0); + }); + +- it('should call the listener on listening with multiple listeners', done => { ++ it('should call the listener on listening with multiple listeners', (done) => { + const listener1 = jest.fn(); + const listener2 = jest.fn(); + NetInfo.addEventListener(listener1); +@@ -303,7 +303,7 @@ describe('@react-native-community/netinfo listener', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, () => { + NetInfo.configure(testCase.configuration); + +diff --git a/node_modules/@react-native-community/netinfo/src/__tests__/fetch.spec.ts b/node_modules/@react-native-community/netinfo/src/__tests__/fetch.spec.ts +index 4b56e4f..b790659 100644 +--- a/node_modules/@react-native-community/netinfo/src/__tests__/fetch.spec.ts ++++ b/node_modules/@react-native-community/netinfo/src/__tests__/fetch.spec.ts +@@ -69,7 +69,7 @@ describe('@react-native-community/netinfo fetch', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, () => { + mockNativeModule.getCurrentState.mockResolvedValue( + testCase.expectedConnectionInfo, +@@ -131,7 +131,7 @@ describe('@react-native-community/netinfo fetch', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, () => { + mockNativeModule.getCurrentState.mockResolvedValue( + testCase.expectedConnectionInfo, +@@ -193,7 +193,7 @@ describe('@react-native-community/netinfo fetch', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, () => { + mockNativeModule.getCurrentState.mockResolvedValue( + testCase.expectedConnectionInfo, +@@ -255,7 +255,7 @@ describe('@react-native-community/netinfo fetch', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, () => { + mockNativeModule.getCurrentState.mockResolvedValue( + testCase.expectedConnectionInfo, +@@ -317,7 +317,7 @@ describe('@react-native-community/netinfo fetch', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, () => { + mockNativeModule.getCurrentState.mockResolvedValue( + testCase.expectedConnectionInfo, +@@ -361,7 +361,7 @@ describe('@react-native-community/netinfo fetch', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, () => { + mockNativeModule.getCurrentState.mockResolvedValue( + testCase.expectedConnectionInfo, +@@ -455,7 +455,7 @@ describe('@react-native-community/netinfo fetch', () => { + ]; + } + +- dataProvider().forEach(testCase => { ++ dataProvider().forEach((testCase) => { + it(testCase.description, async () => { + mockNativeModule.getCurrentState.mockResolvedValue( + testCase.expectedConnectionInfo, +diff --git a/node_modules/@react-native-community/netinfo/src/internal/NativeRNCNetInfo.ts b/node_modules/@react-native-community/netinfo/src/internal/NativeRNCNetInfo.ts +new file mode 100644 +index 0000000..deada41 +--- /dev/null ++++ b/node_modules/@react-native-community/netinfo/src/internal/NativeRNCNetInfo.ts +@@ -0,0 +1,14 @@ ++/* eslint-disable @typescript-eslint/ban-types */ ++import type { TurboModule } from 'react-native'; ++import { TurboModuleRegistry } from 'react-native'; ++ ++export interface Spec extends TurboModule { ++ configure: (config: Object) => void; ++ getCurrentState(requestedInterface?: string): Promise; ++ // Events ++ addListener: (eventName: string) => void; ++ removeListeners: (count: number) => void; ++} ++ ++export default TurboModuleRegistry.getEnforcing('RNCNetInfo'); ++ +diff --git a/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts b/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts +index 5cf797b..f9940a5 100644 +--- a/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts ++++ b/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts +@@ -19,7 +19,8 @@ export default class InternetReachability { + private _configuration: Types.NetInfoConfiguration; + private _listener: PrivateTypes.NetInfoInternetReachabilityChangeListener; + private _isInternetReachable: boolean | null | undefined = undefined; +- private _currentInternetReachabilityCheckHandler: InternetReachabilityCheckHandler | null = null; ++ private _currentInternetReachabilityCheckHandler: InternetReachabilityCheckHandler | null = ++ null; + private _currentTimeoutHandle: ReturnType | null = null; + + constructor( +@@ -60,7 +61,8 @@ export default class InternetReachability { + this._setIsInternetReachable(null); + } + // Start a network request to check for internet +- this._currentInternetReachabilityCheckHandler = this._checkInternetReachability(); ++ this._currentInternetReachabilityCheckHandler = ++ this._checkInternetReachability(); + } else { + // If we don't expect a connection or don't run reachability check, just change the state to "false" + this._setIsInternetReachable(false); +@@ -79,9 +81,9 @@ export default class InternetReachability { + + // Create promise that will reject after the request timeout has been reached + let timeoutHandle: ReturnType; +- const timeoutPromise = new Promise((): void => { ++ const timeoutPromise = new Promise((_, reject): void => { + timeoutHandle = setTimeout( +- (): void => controller.abort('timedout'), ++ (): void => reject('timedout'), + this._configuration.reachabilityRequestTimeout, + ); + }); +@@ -98,28 +100,37 @@ export default class InternetReachability { + timeoutPromise, + cancelPromise, + ]) +- .then( +- (response): Promise => { +- return this._configuration.reachabilityTest(response); +- }, +- ) +- .then( +- (result): void => { +- this._setIsInternetReachable(result); +- const nextTimeoutInterval = this._isInternetReachable +- ? this._configuration.reachabilityLongTimeout +- : this._configuration.reachabilityShortTimeout; ++ .then((response): Promise => { ++ return this._configuration.reachabilityTest(response); ++ }) ++ .then((result): void => { ++ this._setIsInternetReachable(result); ++ const nextTimeoutInterval = this._isInternetReachable ++ ? this._configuration.reachabilityLongTimeout ++ : this._configuration.reachabilityShortTimeout; ++ this._currentTimeoutHandle = setTimeout( ++ this._checkInternetReachability, ++ nextTimeoutInterval, ++ ); ++ }) ++ .catch((error: Error | 'timedout' | 'canceled'): void => { ++ if (error !== 'canceled') { ++ this._setIsInternetReachable(false); + this._currentTimeoutHandle = setTimeout( + this._checkInternetReachability, +- nextTimeoutInterval, ++ this._configuration.reachabilityShortTimeout, + ); +- }, +- ) ++ } ++ }) + .catch( + (error: Error | 'timedout' | 'canceled'): void => { + if ('canceled' === error) { + controller.abort(); + } else { ++ if ('timedout' === error) { ++ controller.abort(); ++ } ++ + this._setIsInternetReachable(false); + this._currentTimeoutHandle = setTimeout( + this._checkInternetReachability, +diff --git a/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.ts b/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.ts +index c0d9ec4..912a903 100644 +--- a/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.ts ++++ b/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.ts +@@ -28,8 +28,12 @@ If none of these fix the issue, please open an issue on the Github repository: h + * JavaScript code and the tests + */ + let nativeEventEmitter: NativeEventEmitter | null = null; ++ + export default { +- ...RNCNetInfo, ++ configure: RNCNetInfo.configure, ++ addListener: RNCNetInfo.addListener, ++ removeListeners: RNCNetInfo.removeListeners, ++ getCurrentState: RNCNetInfo.getCurrentState, + get eventEmitter(): NativeEventEmitter { + if (!nativeEventEmitter) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment +diff --git a/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.web.ts b/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.web.ts +index b665235..41863a4 100644 +--- a/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.web.ts ++++ b/node_modules/@react-native-community/netinfo/src/internal/nativeInterface.web.ts +@@ -14,12 +14,9 @@ import {DEVICE_CONNECTIVITY_EVENT} from './privateTypes'; + const nativeEventEmitter = new NativeEventEmitter(); + + // Listen to connectivity events +-RNCNetInfo.addListener( +- DEVICE_CONNECTIVITY_EVENT, +- (event): void => { +- nativeEventEmitter.emit(DEVICE_CONNECTIVITY_EVENT, event); +- }, +-); ++RNCNetInfo.addListener(DEVICE_CONNECTIVITY_EVENT, (event): void => { ++ nativeEventEmitter.emit(DEVICE_CONNECTIVITY_EVENT, event); ++}); + + export default { + ...RNCNetInfo, +diff --git a/node_modules/@react-native-community/netinfo/src/internal/nativeModule.ts b/node_modules/@react-native-community/netinfo/src/internal/nativeModule.ts +index 206a69a..7aff149 100644 +--- a/node_modules/@react-native-community/netinfo/src/internal/nativeModule.ts ++++ b/node_modules/@react-native-community/netinfo/src/internal/nativeModule.ts +@@ -10,6 +10,16 @@ + import {NativeModules} from 'react-native'; + import {NetInfoNativeModule} from './privateTypes'; + +-const RNCNetInfo: NetInfoNativeModule = NativeModules.RNCNetInfo; ++// React Native sets `__turboModuleProxy` on global when TurboModules are enabled. ++// Currently, this is the recommended way to detect TurboModules. ++// https://reactnative.dev/docs/the-new-architecture/backward-compatibility-turbomodules#unify-the-javascript-specs ++// eslint-disable-next-line @typescript-eslint/ban-ts-comment ++// @ts-ignore ++const isTurboModuleEnabled = global.__turboModuleProxy != null; ++ ++const RNCNetInfo: NetInfoNativeModule = isTurboModuleEnabled ++ ? // eslint-disable-next-line @typescript-eslint/no-var-requires ++ require('./NativeRNCNetInfo').default ++ : NativeModules.RNCNetInfo; + + export default RNCNetInfo; +diff --git a/node_modules/@react-native-community/netinfo/src/internal/types.ts b/node_modules/@react-native-community/netinfo/src/internal/types.ts +index 427db82..6a8f94a 100644 +--- a/node_modules/@react-native-community/netinfo/src/internal/types.ts ++++ b/node_modules/@react-native-community/netinfo/src/internal/types.ts +@@ -34,7 +34,7 @@ export interface NetInfoConnectedDetails { + + interface NetInfoConnectedState< + T extends NetInfoStateType, +- D extends Record = Record ++ D extends Record = Record, + > { + type: T; + isConnected: true; +@@ -59,9 +59,8 @@ export interface NetInfoUnknownState { + isWifiEnabled?: boolean; + } + +-export type NetInfoNoConnectionState = NetInfoDisconnectedState< +- NetInfoStateType.none +->; ++export type NetInfoNoConnectionState = ++ NetInfoDisconnectedState; + export type NetInfoDisconnectedStates = + | NetInfoUnknownState + | NetInfoNoConnectionState; +@@ -87,9 +86,8 @@ export type NetInfoWifiState = NetInfoConnectedState< + txLinkSpeed: number | null; + } + >; +-export type NetInfoBluetoothState = NetInfoConnectedState< +- NetInfoStateType.bluetooth +->; ++export type NetInfoBluetoothState = ++ NetInfoConnectedState; + export type NetInfoEthernetState = NetInfoConnectedState< + NetInfoStateType.ethernet, + { +diff --git a/node_modules/@react-native-community/netinfo/windows/.npmignore b/node_modules/@react-native-community/netinfo/windows/.npmignore +deleted file mode 100644 +index 878f7ba..0000000 +--- a/node_modules/@react-native-community/netinfo/windows/.npmignore ++++ /dev/null +@@ -1,92 +0,0 @@ +-*AppPackages* +-*BundleArtifacts* +- +-#OS junk files +-[Tt]humbs.db +-*.DS_Store +- +-#Visual Studio files +-*.[Oo]bj +-*.user +-*.aps +-*.pch +-*.vspscc +-*.vssscc +-*_i.c +-*_p.c +-*.ncb +-*.suo +-*.tlb +-*.tlh +-*.bak +-*.[Cc]ache +-*.ilk +-*.log +-*.lib +-*.sbr +-*.sdf +-*.opensdf +-*.opendb +-*.unsuccessfulbuild +-ipch/ +-[Oo]bj/ +-[Bb]in +-[Dd]ebug*/ +-[Rr]elease*/ +-Ankh.NoLoad +- +-# Visual C++ cache files +-ipch/ +-*.aps +-*.ncb +-*.opendb +-*.opensdf +-*.sdf +-*.cachefile +-*.VC.db +-*.VC.VC.opendb +- +-#MonoDevelop +-*.pidb +-*.userprefs +- +-#Tooling +-_ReSharper*/ +-*.resharper +-[Tt]est[Rr]esult* +-*.sass-cache +- +-#Project files +-[Bb]uild/ +- +-#Subversion files +-.svn +- +-# Office Temp Files +-~$* +- +-# vim Temp Files +-*~ +- +-#NuGet +-packages/ +-*.nupkg +- +-#ncrunch +-*ncrunch* +-*crunch*.local.xml +- +-# visual studio database projects +-*.dbmdl +- +-#Test files +-*.testsettings +- +-#Other files +-*.DotSettings +-.vs/ +-*project.lock.json +- +-#Files generated by the VS build +-**/Generated Files/** +- diff --git a/patches/@react-navigation+stack+6.3.16+003+fixKeyboardFlicker.patch b/patches/@react-navigation+stack+6.3.16+003+fixKeyboardFlicker.patch new file mode 100644 index 000000000000..2b2819f098d2 --- /dev/null +++ b/patches/@react-navigation+stack+6.3.16+003+fixKeyboardFlicker.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@react-navigation/stack/src/views/Stack/Card.tsx b/node_modules/@react-navigation/stack/src/views/Stack/Card.tsx +index 913218e..ebc2f93 100755 +--- a/node_modules/@react-navigation/stack/src/views/Stack/Card.tsx ++++ b/node_modules/@react-navigation/stack/src/views/Stack/Card.tsx +@@ -517,7 +517,7 @@ export default class Card extends React.Component { + // Make sure that this view isn't removed. If this view is removed, our style with animated value won't apply + collapsable={false} + /> +- ++ + {overlayEnabled ? ( + + {overlay({ style: overlayStyle })} diff --git a/patches/@rnmapbox+maps+10.1.11.patch b/patches/@rnmapbox+maps+10.1.11.patch new file mode 100644 index 000000000000..9f2df5f4ee6e --- /dev/null +++ b/patches/@rnmapbox+maps+10.1.11.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt b/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +index dbd6d0b..1d043f2 100644 +--- a/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt ++++ b/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +@@ -188,7 +188,7 @@ class RNMBXCamera(private val mContext: Context, private val mManager: RNMBXCame + + private fun setInitialCamera() { + mDefaultStop?.let { +- val mapView = mMapView!! ++ val mapView = mMapView ?: return + val map = mapView.getMapboxMap() + + it.setDuration(0) diff --git a/patches/@shopify+flash-list++recyclerlistview+4.2.0.patch b/patches/@shopify+flash-list++recyclerlistview+4.2.0.patch new file mode 100644 index 000000000000..3bfe2597c816 --- /dev/null +++ b/patches/@shopify+flash-list++recyclerlistview+4.2.0.patch @@ -0,0 +1,92 @@ +diff --git a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/RecyclerListView.js b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/RecyclerListView.js +index a98072e..67b8f30 100644 +--- a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/RecyclerListView.js ++++ b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/RecyclerListView.js +@@ -375,6 +375,12 @@ var RecyclerListView = /** @class */ (function (_super) { + } + return null; + }; ++ RecyclerListView.prototype.getNativeScrollRef = function () { ++ if (this._scrollComponent && this._scrollComponent.getNativeScrollRef) { ++ return this._scrollComponent.getNativeScrollRef(); ++ } ++ return null; ++ }; + RecyclerListView.prototype.renderCompat = function () { + //TODO:Talha + // const { +diff --git a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/scrollcomponent/BaseScrollComponent.js b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/scrollcomponent/BaseScrollComponent.js +index 96355ba..4d32c92 100644 +--- a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/scrollcomponent/BaseScrollComponent.js ++++ b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/core/scrollcomponent/BaseScrollComponent.js +@@ -23,6 +23,9 @@ var BaseScrollComponent = /** @class */ (function (_super) { + BaseScrollComponent.prototype.getScrollableNode = function () { + return null; + }; ++ BaseScrollComponent.prototype.getNativeScrollRef = function () { ++ return null; ++ }; + return BaseScrollComponent; + }(React.Component)); + exports.default = BaseScrollComponent; +diff --git a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/platform/reactnative/scrollcomponent/ScrollComponent.js b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/platform/reactnative/scrollcomponent/ScrollComponent.js +index 2f7033c..a559e18 100644 +--- a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/platform/reactnative/scrollcomponent/ScrollComponent.js ++++ b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/dist/reactnative/platform/reactnative/scrollcomponent/ScrollComponent.js +@@ -76,6 +76,9 @@ var ScrollComponent = /** @class */ (function (_super) { + } + return null; + }; ++ ScrollComponent.prototype.getNativeScrollRef = function () { ++ return this._scrollViewRef; ++ }; + ScrollComponent.prototype.render = function () { + var Scroller = TSCast_1.default.cast(this.props.externalScrollView); //TSI + var renderContentContainer = this.props.renderContentContainer ? this.props.renderContentContainer : this._defaultContainer; +diff --git a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/src/core/RecyclerListView.tsx b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/src/core/RecyclerListView.tsx +index 95dd87b..03de7ed 100644 +--- a/node_modules/@shopify/flash-list/node_modules/recyclerlistview/src/core/RecyclerListView.tsx ++++ b/node_modules/@shopify/flash-list/node_modules/recyclerlistview/src/core/RecyclerListView.tsx +@@ -394,6 +394,13 @@ export default class RecyclerListView

(this.props.externalScrollView); //TSI + const renderContentContainer = this.props.renderContentContainer ? this.props.renderContentContainer : this._defaultContainer; diff --git a/patches/@shopify+flash-list+1.6.3.patch b/patches/@shopify+flash-list+1.6.3.patch new file mode 100644 index 000000000000..4910bb20b4ec --- /dev/null +++ b/patches/@shopify+flash-list+1.6.3.patch @@ -0,0 +1,1360 @@ +diff --git a/node_modules/@shopify/flash-list/CHANGELOG.md b/node_modules/@shopify/flash-list/CHANGELOG.md +deleted file mode 100644 +index 9c6bc58..0000000 +--- a/node_modules/@shopify/flash-list/CHANGELOG.md ++++ /dev/null +@@ -1,279 +0,0 @@ +-# Changelog +- +-All notable changes to this project will be documented in this file. +- +-The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +-and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +- +-## [Unreleased] +- +-## [1.6.3] - 2023-11-09 +- +-- Changes for RN 0.73 support +- - https://github.com/Shopify/flash-list/pull/930 +- +-## [1.6.2] - 2023-10-19 +- +-- Move shouldRefreshWithAnchoring configuration so it is possible to disable it from outside FlashList by invalidating layout +- - https://github.com/Shopify/flash-list/pull/935 +- +-## [1.6.1] - 2023-09-14 +- +-- Prevent an expired layout provider from being used again +- - https://github.com/Shopify/flash-list/pull/915 +- +-## [1.6.0] - 2023-09-13 +- +-- Update types to match `react-native@0.72` view types. +- - https://github.com/Shopify/flash-list/pull/890 +-- Add option to clear cached layouts on update +- - https://github.com/Shopify/flash-list/pull/910 +- +-## [1.5.0] - 2023-07-12 +- +-- Update kotlin version to 1.8.10 for RN 0.72 compatibility +- - https://github.com/Shopify/flash-list/pull/865 +- +-## [1.4.3] - 2023-04-24 +- +-- Fix definition conflicts with previous value +- - https://github.com/Shopify/flash-list/pull/795 +-- Fix Android unit test +- - https://github.com/Shopify/flash-list/pull/815 +-- Fix performance issues with inverted lists on Android +- - https://github.com/Shopify/flash-list/pull/819 +- +-## [1.4.2] - 2023-03-20 +- +-- Apply layout correction only to consecutive cells +- - https://github.com/Shopify/flash-list/pull/788 +- +-## [1.4.1] - 2023-01-24 +- +-- Prevent overflow of sticky headers +- - https://github.com/Shopify/flash-list/pull/714 +-- Skip footer correction when layout correction is skipped +- - https://github.com/Shopify/flash-list/pull/743 +- +-## [1.4.0] - 2022-11-07 +- +-- Add content padding support to FlashList +- - https://github.com/Shopify/flash-list/pull/626 +-- Upgrade recyclerlistview to v4.2.0 +- - https://github.com/Shopify/flash-list/pull/660 +- +-## [1.3.1] - 2022-10-11 +- +-- Expose `columnIndex` and `columnSpan` to `MasonryFlashList.renderItem` +- - https://github.com/Shopify/flash-list/pull/625 +- +-## [1.3.0] - 2022-09-26 +- +-- Added `MasonryFlashList` which adds support for rendering masonry layouts +- - https://github.com/Shopify/flash-list/pull/587 +- +-## [1.2.2] - 2022-09-06 +- +-- Fixes type checking error in `AutoLayoutView` due to `children` not being an explicit type +- - https://github.com/Shopify/flash-list/pull/567 +- +-## [1.2.1] - 2022-08-03 +- +-- Fixed crash when `estimatedListSize` is used in an empty list +- - https://github.com/Shopify/flash-list/pull/546 +- +-## [1.2.0] - 2022-07-18 +- +-- Fixed out of bound read from data +- - https://github.com/Shopify/flash-list/pull/523 +-- Added JS only fallbacks for unsupported platforms +- - https://github.com/Shopify/flash-list/pull/518 +-- Added footer correction in AutoLayoutView +- - https://github.com/Shopify/flash-list/pull/519 +-- Added `viewPosition` and `viewOffset` support scrollTo methods +- - https://github.com/Shopify/flash-list/pull/521 +-- Fix inverted mode while being horizontal +- - https://github.com/Shopify/flash-list/pull/520 +-- Upgrade recyclerlistview to v4.1.1 +- - https://github.com/Shopify/flash-list/pull/526 +- +-## [1.1.0] - 2022-07-06 +- +-- Added render target info to `renderItem` callback +- - https://github.com/Shopify/flash-list/pull/454 +-- Add Apple TV support +- - https://github.com/Shopify/flash-list/pull/511 +-- Clarify installation instructions in Expo projects +- - https://github.com/Shopify/flash-list/pull/497 +-- Upgrade recyclerlistview to v4.0.1 +- - https://github.com/Shopify/flash-list/pull/507 +-- Add tslib as a dependency +- - https://github.com/Shopify/flash-list/pull/514 +- +-## [1.0.4] - 2022-07-02 +- +-- Build fix for Android projects having `kotlinVersion` defined in `build.gradle`. +-- Allow providing an external scrollview. +- - https://github.com/Shopify/flash-list/pull/502 +- +-## [1.0.3] - 2022-07-01 +- +-- Add kotlin-gradle-plugin to buildscript in project build.gradle +- - https://github.com/Shopify/flash-list/pull/481 +- +-## [1.0.2] - 2022-06-30 +- +-- Minor changes +- +-## [1.0.1] - 2022-06-30 +- +-- `data` prop change will force update items only if `renderItem` is also updated +- - https://github.com/Shopify/flash-list/pull/453 +- +-## [1.0.0] - 2022-06-17 +- +-- Upgrade recyclerlistview to v3.3.0-beta.2 +- - https://github.com/Shopify/flash-list/pull/445 +-- Added web support +- - https://github.com/Shopify/flash-list/pull/444 +-- Added `disableAutoLayout` prop to prevent conflicts with custom `CellRendererComponent` +- - https://github.com/Shopify/flash-list/pull/452 +- +-## [0.6.1] - 2022-05-26 +- +-- Fix amending layout on iOS +- - https://github.com/Shopify/flash-list/pull/412 +-- Define `FlashList` props previously inherited from `VirtualizedList` and `FlatList` explicitly +- - https://github.com/Shopify/flash-list/pull/386 +-- Make `estimatedItemSize` optional +- - https://github.com/Shopify/flash-list/pull/378 +-- Change `overrideItemType` prop name to `getItemType` +- - https://github.com/Shopify/flash-list/pull/369 +-- Added `useBlankAreaTracker` hook for tracking blank area in production +- - https://github.com/Shopify/flash-list/pull/411 +-- Added `CellRendererComponent` prop +- - https://github.com/Shopify/flash-list/pull/362 +-- Added automatic height measurement for horizontal lists even when parent isn't deterministic +- - https://github.com/Shopify/flash-list/pull/409 +- +-## [0.5.0] - 2022-04-29 +- +-- Fix finding props with testId +- - https://github.com/Shopify/flash-list/pull/357 +-- Reuse cached layouts on orientation change +- - https://github.com/Shopify/flash-list/pull/319 +- +-## [0.4.6] - 2022-04-13 +- +-- Match FlashList's empty list behavior with FlatList +- - https://github.com/Shopify/flash-list/pull/312 +- +-## [0.4.5] - 2022-04-13 +- +-- Upgrade recyclerlistview to v3.2.0-beta.4 +- +- - https://github.com/Shopify/flash-list/pull/315 +- +-- Add viewability callbacks +- +- - https://github.com/Shopify/flash-list/pull/301 +- +-- Calculate average item sizes automatically +- - https://github.com/Shopify/flash-list/pull/296 +- +-## [0.4.4] - 2022-04-06 +- +-- Fix `FlashList` mock when no data is provided +- - https://github.com/Shopify/flash-list/pull/295 +- +-## [0.4.3] - 2022-04-04 +- +-- Reduce number of render item calls +- +- - https://github.com/Shopify/flash-list/pull/253 +- +-- Upgrade recyclerlistview to v3.2.0-beta.2 +- - https://github.com/Shopify/flash-list/pull/284 +- +-## [0.4.2] - 2022-04-04 +- +-- Minor changes +- +-## [0.4.1] - 2022-03-29 +- +-- Crash fix for android activity switching (#256) +- +- - https://github.com/Shopify/flash-list/pull/257 +- +-- initialScrollIndex, scrollTo methods will now account for size of header +- +- - https://github.com/Shopify/flash-list/pull/194 +- +-- Added a new mock for easier testing of components with `FlashList` +- - https://github.com/Shopify/flash-list/pull/236 +- +-## [0.4.0] - 2022-03-23 +- +-- Add support for layout animations +- +- - https://github.com/Shopify/flash-list/pull/183 +- +-- Suppress recyclerlistview's bounded size exception for some missing cases. +- +- - https://github.com/Shopify/flash-list/pull/192 +- +-- Expose reference to recyclerlistview and firstItemOffset +- +- - https://github.com/Shopify/flash-list/pull/217 +- +-- recyclerlistview upgraded to v3.1.0-alpha.9 +- - https://github.com/Shopify/flash-list/pull/227 +- +-## [0.3.3] - 2022-03-16 +- +-- Prevent implicit scroll to top on device orientation change +-- Change recyclerlistview's bounded size exception to a warning +- - https://github.com/Shopify/flash-list/pull/187 +- +-## [0.3.2] - 2022-03-15 +- +-- Minor changes +- +-## [0.3.1] - 2022-03-15 +- +-- Revert react-native-safe-area upgrade and minSdkVersion bump +- - https://github.com/Shopify/flash-list/pull/184 +- +-## [0.3.0] - 2022-03-15 +- +-- Fixed untranspiled library code by enforcing stricter TS rules. +- - https://github.com/Shopify/flash-list/pull/181 +- +-## [0.2.4] - 2022-03-14 +- +-- Added `onLoad` event that is called once the list has rendered items. This is required because FlashList doesn't render items in the first cycle. +- - https://github.com/Shopify/flash-list/pull/180 +- +-## [0.2.3] - 2022-03-10 +- +-- Fixing publish steps for transpiled code +- - https://github.com/Shopify/flash-list/pull/150 +- +-## [0.2.2] - 2022-03-10 +- +-- Fixing publish steps for transpiled code +- - https://github.com/Shopify/flash-list/pull/149 +- +-## [0.2.1] - 2022-03-09 +- +-- Bug fix for style and last separator +- - https://github.com/Shopify/flash-list/pull/141 +- +-## [0.2.0] - 2022-03-08 +- +-- Rename the component from `RecyclerFlatList` to `FlashList` +- - https://github.com/Shopify/flash-list/pull/140 +- +-## [0.1.0] - 2022-03-02 +- +-- Initial release +diff --git a/node_modules/@shopify/flash-list/RNFlashList.podspec b/node_modules/@shopify/flash-list/RNFlashList.podspec +index 38ff029..a749f6c 100644 +--- a/node_modules/@shopify/flash-list/RNFlashList.podspec ++++ b/node_modules/@shopify/flash-list/RNFlashList.podspec +@@ -9,14 +9,20 @@ Pod::Spec.new do |s| + s.homepage = package['homepage'] + s.license = package['license'] + s.author = package['author'] +- s.platforms = { :ios => '11.0', :tvos => '12.0' } + s.source = { git: 'https://github.com/shopify/flash-list.git', tag: "v#{s.version}" } + s.source_files = 'ios/Sources/**/*' + s.requires_arc = true + s.swift_version = '5.0' ++ s.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-D RCT_NEW_ARCH_ENABLED', } + +- # Dependencies +- s.dependency 'React-Core' ++ if defined?(install_modules_dependencies()) != nil ++ install_modules_dependencies(s) ++ s.ios.deployment_target = "12.4" ++ s.platforms = { :ios => '12.4', :tvos => '12.0' } ++ else ++ s.dependency "React-Core" ++ s.platforms = { :ios => '11.0', :tvos => '12.0' } ++ end + + # Tests spec + s.test_spec 'Tests' do |test_spec| +diff --git a/node_modules/@shopify/flash-list/android/build.gradle b/node_modules/@shopify/flash-list/android/build.gradle +index bed08cd..bad4465 100644 +--- a/node_modules/@shopify/flash-list/android/build.gradle ++++ b/node_modules/@shopify/flash-list/android/build.gradle +@@ -1,7 +1,14 @@ +-apply plugin: 'com.android.library' ++def isNewArchitectureEnabled() { ++ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" ++} + ++apply plugin: 'com.android.library' + apply plugin: 'kotlin-android' + ++if (isNewArchitectureEnabled()) { ++ apply plugin: 'com.facebook.react' ++} ++ + def _ext = rootProject.ext + + def _reactNativeVersion = _ext.has('reactNative') ? _ext.reactNative : '+' +@@ -40,11 +47,19 @@ android { + debug.java.srcDirs += 'src/debug/kotlin' + test.java.srcDirs += 'src/test/kotlin' + androidTest.java.srcDirs += 'src/androidTest/kotlin' ++ ++ if (isNewArchitectureEnabled()) { ++ main.java.srcDirs += ["${project.buildDir}/generated/source/codegen/java"] ++ main.java.srcDirs += ["src/fabric/java"] ++ } else { ++ main.java.srcDirs += ['src/paper/java'] ++ } + } + + defaultConfig { + minSdkVersion _minSdkVersion + targetSdkVersion _targetSdkVersion ++ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() + versionCode 1 + versionName "1.0" + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" +@@ -61,7 +76,7 @@ android { + + dependencies { + compileOnly "com.facebook.react:react-native:${_reactNativeVersion}" +- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${_kotlinVersion}" ++ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${_kotlinVersion}" + testImplementation "junit:junit:${_junitVersion}" + testImplementation "org.mockito.kotlin:mockito-kotlin:${_mockitoVersion}" + testImplementation "org.mockito:mockito-inline:${_mockitoVersion}" +diff --git a/node_modules/@shopify/flash-list/android/src/fabric/java/com/shopify/reactnative/flash_list/ReactContextExtensions.kt b/node_modules/@shopify/flash-list/android/src/fabric/java/com/shopify/reactnative/flash_list/ReactContextExtensions.kt +new file mode 100644 +index 0000000..6e850fe +--- /dev/null ++++ b/node_modules/@shopify/flash-list/android/src/fabric/java/com/shopify/reactnative/flash_list/ReactContextExtensions.kt +@@ -0,0 +1,12 @@ ++package com.shopify.reactnative.flash_list ++ ++import com.facebook.react.bridge.ReactContext ++import com.facebook.react.fabric.FabricUIManager ++import com.facebook.react.uimanager.UIManagerHelper ++import com.facebook.react.uimanager.common.UIManagerType ++import com.facebook.react.bridge.WritableMap ++ ++fun ReactContext.dispatchEvent(nativeTag: Int, eventName: String, event: WritableMap) { ++ val fabricUIManager = UIManagerHelper.getUIManager(this, UIManagerType.FABRIC) as FabricUIManager ++ fabricUIManager.receiveEvent(nativeTag, eventName, event) ++} +diff --git a/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt b/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt +index 4571798..c6c3cce 100644 +--- a/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt ++++ b/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt +@@ -2,8 +2,6 @@ package com.shopify.reactnative.flash_list + + import android.content.Context + import android.graphics.Canvas +-import android.util.DisplayMetrics +-import android.util.Log + import android.view.View + import android.view.ViewGroup + import android.widget.HorizontalScrollView +@@ -11,7 +9,6 @@ import android.widget.ScrollView + import com.facebook.react.bridge.Arguments + import com.facebook.react.bridge.ReactContext + import com.facebook.react.bridge.WritableMap +-import com.facebook.react.uimanager.events.RCTEventEmitter + import com.facebook.react.views.view.ReactViewGroup + + +@@ -142,9 +139,8 @@ class AutoLayoutView(context: Context) : ReactViewGroup(context) { + val event: WritableMap = Arguments.createMap() + event.putDouble("offsetStart", alShadow.blankOffsetAtStart / pixelDensity) + event.putDouble("offsetEnd", alShadow.blankOffsetAtEnd / pixelDensity) ++ + val reactContext = context as ReactContext +- reactContext +- .getJSModule(RCTEventEmitter::class.java) +- .receiveEvent(id, "onBlankAreaEvent", event) ++ reactContext.dispatchEvent(id, "onBlankAreaEvent", event) + } + } +diff --git a/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutViewManager.kt b/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutViewManager.kt +index b646f09..7bda0ea 100644 +--- a/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutViewManager.kt ++++ b/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutViewManager.kt +@@ -3,15 +3,22 @@ package com.shopify.reactnative.flash_list + import com.facebook.react.module.annotations.ReactModule + import com.facebook.react.uimanager.ThemedReactContext + import com.facebook.react.uimanager.annotations.ReactProp +-import com.facebook.react.views.view.ReactViewGroup +-import com.facebook.react.views.view.ReactViewManager ++import com.facebook.react.uimanager.ViewGroupManager ++import com.facebook.react.uimanager.ViewManagerDelegate ++import com.facebook.react.viewmanagers.AutoLayoutViewManagerDelegate ++import com.facebook.react.viewmanagers.AutoLayoutViewManagerInterface + import com.facebook.react.common.MapBuilder + import kotlin.math.roundToInt + + /** ViewManager for AutoLayoutView - Container for all RecyclerListView children. Automatically removes all gaps and overlaps for GridLayouts with flexible spans. + * Note: This cannot work for masonry layouts i.e, pinterest like layout */ + @ReactModule(name = AutoLayoutViewManager.REACT_CLASS) +-class AutoLayoutViewManager: ReactViewManager() { ++class AutoLayoutViewManager: ViewGroupManager(), AutoLayoutViewManagerInterface { ++ private val mDelegate: ViewManagerDelegate ++ ++ init { ++ mDelegate = AutoLayoutViewManagerDelegate(this) ++ } + + companion object { + const val REACT_CLASS = "AutoLayoutView" +@@ -21,45 +28,42 @@ class AutoLayoutViewManager: ReactViewManager() { + return REACT_CLASS + } + +- override fun createViewInstance(context: ThemedReactContext): ReactViewGroup { ++ override fun createViewInstance(context: ThemedReactContext): AutoLayoutView { + return AutoLayoutView(context).also { it.pixelDensity = context.resources.displayMetrics.density.toDouble() } + } + +- override fun getExportedCustomDirectEventTypeConstants(): MutableMap { +- return MapBuilder.builder().put( +- "onBlankAreaEvent", +- MapBuilder.of( +- "registrationName", "onBlankAreaEvent") +- ).build(); +- } ++ override fun getExportedCustomDirectEventTypeConstants() = mutableMapOf( ++ "onBlankAreaEvent" to mutableMapOf("registrationName" to "onBlankAreaEvent"), ++ "topOnBlankAreaEvent" to mutableMapOf("registrationName" to "onBlankAreaEvent"), ++ ) + + @ReactProp(name = "horizontal") +- fun setHorizontal(view: AutoLayoutView, isHorizontal: Boolean) { ++ override fun setHorizontal(view: AutoLayoutView, isHorizontal: Boolean) { + view.alShadow.horizontal = isHorizontal + } + + @ReactProp(name = "disableAutoLayout") +- fun setDisableAutoLayout(view: AutoLayoutView, disableAutoLayout: Boolean) { ++ override fun setDisableAutoLayout(view: AutoLayoutView, disableAutoLayout: Boolean) { + view.disableAutoLayout = disableAutoLayout + } + + @ReactProp(name = "scrollOffset") +- fun setScrollOffset(view: AutoLayoutView, scrollOffset: Double) { ++ override fun setScrollOffset(view: AutoLayoutView, scrollOffset: Double) { + view.alShadow.scrollOffset = convertToPixelLayout(scrollOffset, view.pixelDensity) + } + + @ReactProp(name = "windowSize") +- fun setWindowSize(view: AutoLayoutView, windowSize: Double) { ++ override fun setWindowSize(view: AutoLayoutView, windowSize: Double) { + view.alShadow.windowSize = convertToPixelLayout(windowSize, view.pixelDensity) + } + + @ReactProp(name = "renderAheadOffset") +- fun setRenderAheadOffset(view: AutoLayoutView, renderOffset: Double) { ++ override fun setRenderAheadOffset(view: AutoLayoutView, renderOffset: Double) { + view.alShadow.renderOffset = convertToPixelLayout(renderOffset, view.pixelDensity) + } + + @ReactProp(name = "enableInstrumentation") +- fun setEnableInstrumentation(view: AutoLayoutView, enableInstrumentation: Boolean) { ++ override fun setEnableInstrumentation(view: AutoLayoutView, enableInstrumentation: Boolean) { + view.enableInstrumentation = enableInstrumentation + } + +diff --git a/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerManager.kt b/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerManager.kt +index 1434caa..590ba1d 100644 +--- a/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerManager.kt ++++ b/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerManager.kt +@@ -2,12 +2,20 @@ package com.shopify.reactnative.flash_list + + import com.facebook.react.module.annotations.ReactModule + import com.facebook.react.uimanager.ThemedReactContext ++import com.facebook.react.uimanager.ViewGroupManager ++import com.facebook.react.uimanager.ViewManagerDelegate + import com.facebook.react.uimanager.annotations.ReactProp +-import com.facebook.react.views.view.ReactViewGroup +-import com.facebook.react.views.view.ReactViewManager ++import com.facebook.react.viewmanagers.CellContainerManagerDelegate ++import com.facebook.react.viewmanagers.CellContainerManagerInterface + + @ReactModule(name = AutoLayoutViewManager.REACT_CLASS) +-class CellContainerManager: ReactViewManager() { ++class CellContainerManager: ViewGroupManager(), CellContainerManagerInterface { ++ private val mDelegate: ViewManagerDelegate ++ ++ init { ++ mDelegate = CellContainerManagerDelegate(this); ++ } ++ + companion object { + const val REACT_CLASS = "CellContainer" + } +@@ -16,12 +24,12 @@ class CellContainerManager: ReactViewManager() { + return REACT_CLASS + } + +- override fun createViewInstance(context: ThemedReactContext): ReactViewGroup { ++ override fun createViewInstance(context: ThemedReactContext): CellContainerImpl { + return CellContainerImpl(context) + } + + @ReactProp(name = "index") +- fun setIndex(view: CellContainerImpl, index: Int) { ++ override fun setIndex(view: CellContainerImpl, index: Int) { + view.index = index + } + } +diff --git a/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java +new file mode 100644 +index 0000000..4c90807 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java +@@ -0,0 +1,46 @@ ++/** ++* 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: GeneratePropsJavaDelegate.js ++*/ ++ ++package com.facebook.react.viewmanagers; ++ ++import android.view.View; ++import androidx.annotation.Nullable; ++import com.facebook.react.uimanager.BaseViewManagerDelegate; ++import com.facebook.react.uimanager.BaseViewManagerInterface; ++ ++public class AutoLayoutViewManagerDelegate & AutoLayoutViewManagerInterface> extends BaseViewManagerDelegate { ++ public AutoLayoutViewManagerDelegate(U viewManager) { ++ super(viewManager); ++ } ++ @Override ++ public void setProperty(T view, String propName, @Nullable Object value) { ++ switch (propName) { ++ case "horizontal": ++ mViewManager.setHorizontal(view, value == null ? false : (boolean) value); ++ break; ++ case "scrollOffset": ++ mViewManager.setScrollOffset(view, value == null ? 0f : ((Double) value).doubleValue()); ++ break; ++ case "windowSize": ++ mViewManager.setWindowSize(view, value == null ? 0f : ((Double) value).doubleValue()); ++ break; ++ case "renderAheadOffset": ++ mViewManager.setRenderAheadOffset(view, value == null ? 0f : ((Double) value).doubleValue()); ++ break; ++ case "enableInstrumentation": ++ mViewManager.setEnableInstrumentation(view, value == null ? false : (boolean) value); ++ break; ++ case "disableAutoLayout": ++ mViewManager.setDisableAutoLayout(view, value == null ? false : (boolean) value); ++ break; ++ default: ++ super.setProperty(view, propName, value); ++ } ++ } ++} +diff --git a/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerInterface.java b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerInterface.java +new file mode 100644 +index 0000000..8ad2622 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerInterface.java +@@ -0,0 +1,21 @@ ++/** ++* 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: GeneratePropsJavaInterface.js ++*/ ++ ++package com.facebook.react.viewmanagers; ++ ++import android.view.View; ++ ++public interface AutoLayoutViewManagerInterface { ++ void setHorizontal(T view, boolean value); ++ void setScrollOffset(T view, double value); ++ void setWindowSize(T view, double value); ++ void setRenderAheadOffset(T view, double value); ++ void setEnableInstrumentation(T view, boolean value); ++ void setDisableAutoLayout(T view, boolean value); ++} +diff --git a/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java +new file mode 100644 +index 0000000..2b64af7 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java +@@ -0,0 +1,31 @@ ++/** ++* 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: GeneratePropsJavaDelegate.js ++*/ ++ ++package com.facebook.react.viewmanagers; ++ ++import android.view.View; ++import androidx.annotation.Nullable; ++import com.facebook.react.uimanager.BaseViewManagerDelegate; ++import com.facebook.react.uimanager.BaseViewManagerInterface; ++ ++public class CellContainerManagerDelegate & CellContainerManagerInterface> extends BaseViewManagerDelegate { ++ public CellContainerManagerDelegate(U viewManager) { ++ super(viewManager); ++ } ++ @Override ++ public void setProperty(T view, String propName, @Nullable Object value) { ++ switch (propName) { ++ case "index": ++ mViewManager.setIndex(view, value == null ? 0 : ((Double) value).intValue()); ++ break; ++ default: ++ super.setProperty(view, propName, value); ++ } ++ } ++} +diff --git a/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerInterface.java b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerInterface.java +new file mode 100644 +index 0000000..b37ddbd +--- /dev/null ++++ b/node_modules/@shopify/flash-list/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerInterface.java +@@ -0,0 +1,16 @@ ++/** ++* 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: GeneratePropsJavaInterface.js ++*/ ++ ++package com.facebook.react.viewmanagers; ++ ++import android.view.View; ++ ++public interface CellContainerManagerInterface { ++ void setIndex(T view, int value); ++} +diff --git a/node_modules/@shopify/flash-list/android/src/paper/java/com/shopify/reactnative/flash_list/ReactContextExtensions.kt b/node_modules/@shopify/flash-list/android/src/paper/java/com/shopify/reactnative/flash_list/ReactContextExtensions.kt +new file mode 100644 +index 0000000..b867c18 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/android/src/paper/java/com/shopify/reactnative/flash_list/ReactContextExtensions.kt +@@ -0,0 +1,10 @@ ++package com.shopify.reactnative.flash_list ++ ++import com.facebook.react.bridge.ReactContext ++import com.facebook.react.uimanager.events.RCTEventEmitter ++import com.facebook.react.bridge.WritableMap ++ ++fun ReactContext.dispatchEvent(nativeTag: Int, eventName: String, event: WritableMap) { ++ this.getJSModule(RCTEventEmitter::class.java) ++ .receiveEvent(nativeTag, eventName, event) ++} +diff --git a/node_modules/@shopify/flash-list/dist/FlashList.d.ts b/node_modules/@shopify/flash-list/dist/FlashList.d.ts +index ed81d7d..1e24103 100644 +--- a/node_modules/@shopify/flash-list/dist/FlashList.d.ts ++++ b/node_modules/@shopify/flash-list/dist/FlashList.d.ts +@@ -103,6 +103,7 @@ declare class FlashList extends React.PureComponent, FlashL + offset: number; + }): void; + getScrollableNode(): number | null; ++ getNativeScrollRef(): number | null; + /** + * Allows access to internal recyclerlistview. This is useful for enabling access to its public APIs. + * Warning: We may swap recyclerlistview for something else in the future. Use with caution. +diff --git a/node_modules/@shopify/flash-list/dist/FlashList.d.ts.map b/node_modules/@shopify/flash-list/dist/FlashList.d.ts.map +index 97c8cc6..a915a05 100644 +--- a/node_modules/@shopify/flash-list/dist/FlashList.d.ts.map ++++ b/node_modules/@shopify/flash-list/dist/FlashList.d.ts.map +@@ -1 +1 @@ +-{"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../src/FlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAEL,YAAY,EAEZ,gBAAgB,EAChB,qBAAqB,EAE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,CAAC,wBAAwB,CAQ9B;IAEF,OAAO,CAAC,cAAc,CAqBpB;IAEF,OAAO,CAAC,oBAAoB,CAK1B;IAEF;;;;;OAKG;IACI,+BAA+B,IAAI,IAAI;IAWvC,WAAW,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAA;KAAE;IAI9D,aAAa,CAAC,MAAM,EAAE;QAC3B,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;QACtC,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAChC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACnC;IAwBM,YAAY,CAAC,MAAM,EAAE;QAC1B,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;QACtC,IAAI,EAAE,GAAG,CAAC;QACV,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAClC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACjC;IAOM,cAAc,CAAC,MAAM,EAAE;QAC5B,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;QACtC,MAAM,EAAE,MAAM,CAAC;KAChB;IAMM,iBAAiB,IAAI,MAAM,GAAG,IAAI;IAIlC,kBAAkB,IAAI,MAAM,GAAG,IAAI;IAM1C;;;OAGG;IAEH,IAAW,uBAAuB,6DAEjC;IAED;;OAEG;IACH,IAAW,eAAe,WAEzB;IAED;;OAEG;IACI,wBAAwB;IAI/B;;;OAGG;IACI,iBAAiB,aAEtB;CACH;AAED,eAAe,SAAS,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/FlashList.js b/node_modules/@shopify/flash-list/dist/FlashList.js +index 1a5d026..37852b8 100644 +--- a/node_modules/@shopify/flash-list/dist/FlashList.js ++++ b/node_modules/@shopify/flash-list/dist/FlashList.js +@@ -478,6 +478,12 @@ var FlashList = /** @class */ (function (_super) { + var _a, _b; + return ((_b = (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getScrollableNode) === null || _b === void 0 ? void 0 : _b.call(_a)) || null; + }; ++ FlashList.prototype.getNativeScrollRef = function () { ++ var _a, _b; ++ // eslint-disable-next-line @typescript-eslint/ban-ts-comment ++ // @ts-ignore ++ return ((_b = (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getNativeScrollRef) === null || _b === void 0 ? void 0 : _b.call(_a)) || null; ++ }; + Object.defineProperty(FlashList.prototype, "recyclerlistview_unsafe", { + /** + * Allows access to internal recyclerlistview. This is useful for enabling access to its public APIs. +diff --git a/node_modules/@shopify/flash-list/dist/FlashList.js.map b/node_modules/@shopify/flash-list/dist/FlashList.js.map +index 375f7fc..8fc9c3f 100644 +--- a/node_modules/@shopify/flash-list/dist/FlashList.js.map ++++ b/node_modules/@shopify/flash-list/dist/FlashList.js.map +@@ -1 +1 @@ +-{"version":3,"file":"FlashList.js","sourceRoot":"","sources":["../src/FlashList.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B,6CAOsB;AACtB,qDAO0B;AAC1B,2EAAgF;AAEhF,+FAAiE;AACjE,gGAAkE;AAClE,+DAA8D;AAC9D,sGAAwE;AACxE,6EAA+C;AAC/C,iFAAmD;AACnD,uEAA4C;AAC5C,gGAAkE;AAClE,mDAI0B;AAC1B,iEAKwC;AACxC,uEAKuC;AAKvC,IAAM,qBAAqB,GACzB,gBAAoD,CAAC;AAevD;IAA2B,qCAG1B;IAyCC,mBAAY,KAAwB;QAApC,iBAiBC;;gBAhBC,kBAAM,KAAK,CAAC;QAvCN,4BAAsB,GAAG,CAAC,CAAC;QAC3B,oBAAc,GAAG,+BAAc,CAAC,sBAAsB,CAAC;QACvD,8BAAwB,GAC9B,+BAAc,CAAC,gCAAgC,CAAC;QAE1C,wBAAkB,GAAG,CAAC,CAAC;QACvB,kBAAY,GAAyB;YA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,IAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;QACpD,MAAA,IAAI,CAAC,MAAM,0CAAE,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9D,CAAC;IAEM,qCAAiB,GAAxB;;QACE,OAAO,CAAA,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,iBAAiB,kDAAI,KAAI,IAAI,CAAC;IACpD,CAAC;IAEM,sCAAkB,GAAzB;;QACE,6DAA6D;QAC7D,aAAa;QACb,OAAO,CAAA,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,kBAAkB,kDAAI,KAAI,IAAI,CAAC;IACrD,CAAC;IAOD,sBAAW,8CAAuB;QALlC;;;WAGG;QACH,yDAAyD;aACzD;YACE,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;;;OAAA;IAKD,sBAAW,sCAAe;QAH1B;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACjC,CAAC;;;OAAA;IAED;;OAEG;IACI,4CAAwB,GAA/B;QACE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC;IAjvBM,sBAAY,GAAG;QACpB,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,CAAC;KACd,CAAC;IAuvBJ,gBAAC;CAAA,AAjyBD,CAA2B,eAAK,CAAC,aAAa,GAiyB7C;AAED,kBAAe,SAAS,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.d.ts b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.d.ts +new file mode 100644 +index 0000000..661dc81 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.d.ts +@@ -0,0 +1,18 @@ ++import type { ViewProps } from "react-native"; ++import type { Int32, Double, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes"; ++declare type BlankAreaEvent = Readonly<{ ++ offsetStart: Int32; ++ offsetEnd: Int32; ++}>; ++interface NativeProps extends ViewProps { ++ horizontal?: boolean; ++ scrollOffset?: Double; ++ windowSize?: Double; ++ renderAheadOffset?: Double; ++ enableInstrumentation?: boolean; ++ disableAutoLayout?: boolean; ++ onBlankAreaEvent?: DirectEventHandler; ++} ++declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType; ++export default _default; ++//# sourceMappingURL=AutoLayoutNativeComponent.d.ts.map +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.d.ts.map b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.d.ts.map +new file mode 100644 +index 0000000..25297b9 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.d.ts.map +@@ -0,0 +1 @@ ++{"version":3,"file":"AutoLayoutNativeComponent.d.ts","sourceRoot":"","sources":["../../src/fabric/AutoLayoutNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,aAAK,cAAc,GAAG,QAAQ,CAAC;IAC7B,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC;CAClB,CAAC,CAAC;AAEH,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACvD;;AAED,wBAAqE"} +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.js b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.js +new file mode 100644 +index 0000000..c69ba24 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.js +@@ -0,0 +1,6 @@ ++"use strict"; ++Object.defineProperty(exports, "__esModule", { value: true }); ++var tslib_1 = require("tslib"); ++var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); ++exports.default = (0, codegenNativeComponent_1.default)("AutoLayoutView"); ++//# sourceMappingURL=AutoLayoutNativeComponent.js.map +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.js.map b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.js.map +new file mode 100644 +index 0000000..890db63 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/AutoLayoutNativeComponent.js.map +@@ -0,0 +1 @@ ++{"version":3,"file":"AutoLayoutNativeComponent.js","sourceRoot":"","sources":["../../src/fabric/AutoLayoutNativeComponent.ts"],"names":[],"mappings":";;;AAAA,2HAA6F;AAuB7F,kBAAe,IAAA,gCAAsB,EAAc,gBAAgB,CAAC,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.d.ts b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.d.ts +new file mode 100644 +index 0000000..bb8f63b +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.d.ts +@@ -0,0 +1,8 @@ ++import type { Int32 } from "react-native/Libraries/Types/CodegenTypes"; ++import type { ViewProps } from "react-native"; ++interface NativeProps extends ViewProps { ++ index?: Int32; ++} ++declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType; ++export default _default; ++//# sourceMappingURL=CellContainerNativeComponent.d.ts.map +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.d.ts.map b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.d.ts.map +new file mode 100644 +index 0000000..993a2c3 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.d.ts.map +@@ -0,0 +1 @@ ++{"version":3,"file":"CellContainerNativeComponent.d.ts","sourceRoot":"","sources":["../../src/fabric/CellContainerNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;;AAED,wBAAoE"} +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.js b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.js +new file mode 100644 +index 0000000..b21acb7 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.js +@@ -0,0 +1,6 @@ ++"use strict"; ++Object.defineProperty(exports, "__esModule", { value: true }); ++var tslib_1 = require("tslib"); ++var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); ++exports.default = (0, codegenNativeComponent_1.default)("CellContainer"); ++//# sourceMappingURL=CellContainerNativeComponent.js.map +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.js.map b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.js.map +new file mode 100644 +index 0000000..d7c2469 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/dist/fabric/CellContainerNativeComponent.js.map +@@ -0,0 +1 @@ ++{"version":3,"file":"CellContainerNativeComponent.js","sourceRoot":"","sources":["../../src/fabric/CellContainerNativeComponent.ts"],"names":[],"mappings":";;;AAAA,2HAA6F;AAQ7F,kBAAe,IAAA,gCAAsB,EAAc,eAAe,CAAC,CAAC"} +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/dist/tsconfig.tsbuildinfo b/node_modules/@shopify/flash-list/dist/tsconfig.tsbuildinfo +deleted file mode 100644 +index 023b94a..0000000 +--- a/node_modules/@shopify/flash-list/dist/tsconfig.tsbuildinfo ++++ /dev/null +@@ -1 +0,0 @@ +-{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/@types/react-native/modules/BatchedBridge.d.ts","../node_modules/@types/react-native/modules/Codegen.d.ts","../node_modules/@types/react-native/modules/Devtools.d.ts","../node_modules/@types/react-native/modules/globals.d.ts","../node_modules/@types/react-native/modules/LaunchScreen.d.ts","../node_modules/@types/react/global.d.ts","../node_modules/csstype/index.d.ts","../node_modules/@types/prop-types/index.d.ts","../node_modules/@types/scheduler/tracing.d.ts","../node_modules/@types/react/index.d.ts","../node_modules/@types/react-native/private/Utilities.d.ts","../node_modules/@types/react-native/public/Insets.d.ts","../node_modules/@types/react-native/Libraries/ReactNative/RendererProxy.d.ts","../node_modules/@types/react-native/public/ReactNativeTypes.d.ts","../node_modules/@types/react-native/Libraries/Types/CoreEventTypes.d.ts","../node_modules/@types/react-native/public/ReactNativeRenderer.d.ts","../node_modules/@types/react-native/Libraries/Components/Touchable/Touchable.d.ts","../node_modules/@types/react-native/Libraries/Components/View/ViewAccessibility.d.ts","../node_modules/@types/react-native/Libraries/Components/View/ViewPropTypes.d.ts","../node_modules/@types/react-native/Libraries/Components/RefreshControl/RefreshControl.d.ts","../node_modules/@types/react-native/Libraries/Components/ScrollView/ScrollView.d.ts","../node_modules/@types/react-native/Libraries/Components/View/View.d.ts","../node_modules/@types/react-native/Libraries/Image/ImageResizeMode.d.ts","../node_modules/@types/react-native/Libraries/Image/ImageSource.d.ts","../node_modules/@types/react-native/Libraries/Image/Image.d.ts","../node_modules/@react-native/virtualized-lists/Lists/VirtualizedList.d.ts","../node_modules/@react-native/virtualized-lists/index.d.ts","../node_modules/@types/react-native/Libraries/Lists/FlatList.d.ts","../node_modules/@types/react-native/Libraries/Lists/SectionList.d.ts","../node_modules/@types/react-native/Libraries/Text/Text.d.ts","../node_modules/@types/react-native/Libraries/Animated/Animated.d.ts","../node_modules/@types/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts","../node_modules/@types/react-native/Libraries/StyleSheet/StyleSheet.d.ts","../node_modules/@types/react-native/Libraries/StyleSheet/processColor.d.ts","../node_modules/@types/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts","../node_modules/@types/react-native/Libraries/Alert/Alert.d.ts","../node_modules/@types/react-native/Libraries/Animated/Easing.d.ts","../node_modules/@types/react-native/Libraries/Animated/useAnimatedValue.d.ts","../node_modules/@types/react-native/Libraries/vendor/emitter/EventEmitter.d.ts","../node_modules/@types/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts","../node_modules/@types/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts","../node_modules/@types/react-native/Libraries/AppState/AppState.d.ts","../node_modules/@types/react-native/Libraries/BatchedBridge/NativeModules.d.ts","../node_modules/@types/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts","../node_modules/@types/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts","../node_modules/@types/react-native/Libraries/Components/Clipboard/Clipboard.d.ts","../node_modules/@types/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts","../node_modules/@types/react-native/Libraries/EventEmitter/NativeEventEmitter.d.ts","../node_modules/@types/react-native/Libraries/Components/Keyboard/Keyboard.d.ts","../node_modules/@types/react-native/private/TimerMixin.d.ts","../node_modules/@types/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts","../node_modules/@types/react-native/Libraries/Components/Pressable/Pressable.d.ts","../node_modules/@types/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts","../node_modules/@types/react-native/Libraries/Components/SafeAreaView/SafeAreaView.d.ts","../node_modules/@types/react-native/Libraries/Components/StatusBar/StatusBar.d.ts","../node_modules/@types/react-native/Libraries/Components/Switch/Switch.d.ts","../node_modules/@types/react-native/Libraries/Components/TextInput/InputAccessoryView.d.ts","../node_modules/@types/react-native/Libraries/Components/TextInput/TextInput.d.ts","../node_modules/@types/react-native/Libraries/Components/ToastAndroid/ToastAndroid.d.ts","../node_modules/@types/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts","../node_modules/@types/react-native/Libraries/Components/Touchable/TouchableHighlight.d.ts","../node_modules/@types/react-native/Libraries/Components/Touchable/TouchableOpacity.d.ts","../node_modules/@types/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts","../node_modules/@types/react-native/Libraries/Components/Button.d.ts","../node_modules/@types/react-native/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts","../node_modules/@types/react-native/Libraries/Interaction/InteractionManager.d.ts","../node_modules/@types/react-native/Libraries/Interaction/PanResponder.d.ts","../node_modules/@types/react-native/Libraries/LayoutAnimation/LayoutAnimation.d.ts","../node_modules/@types/react-native/Libraries/Linking/Linking.d.ts","../node_modules/@types/react-native/Libraries/LogBox/LogBox.d.ts","../node_modules/@types/react-native/Libraries/Modal/Modal.d.ts","../node_modules/@types/react-native/Libraries/Performance/Systrace.d.ts","../node_modules/@types/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts","../node_modules/@types/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts","../node_modules/@types/react-native/Libraries/Utilities/IPerformanceLogger.d.ts","../node_modules/@types/react-native/Libraries/ReactNative/AppRegistry.d.ts","../node_modules/@types/react-native/Libraries/ReactNative/I18nManager.d.ts","../node_modules/@types/react-native/Libraries/ReactNative/RootTag.d.ts","../node_modules/@types/react-native/Libraries/ReactNative/UIManager.d.ts","../node_modules/@types/react-native/Libraries/ReactNative/requireNativeComponent.d.ts","../node_modules/@types/react-native/Libraries/Settings/Settings.d.ts","../node_modules/@types/react-native/Libraries/Share/Share.d.ts","../node_modules/@types/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts","../node_modules/@types/react-native/Libraries/StyleSheet/PlatformColorValueTypes.d.ts","../node_modules/@types/react-native/Libraries/TurboModule/RCTExport.d.ts","../node_modules/@types/react-native/Libraries/TurboModule/TurboModuleRegistry.d.ts","../node_modules/@types/react-native/Libraries/Utilities/Appearance.d.ts","../node_modules/@types/react-native/Libraries/Utilities/BackHandler.d.ts","../node_modules/@types/react-native/Libraries/Utilities/DevSettings.d.ts","../node_modules/@types/react-native/Libraries/Utilities/Dimensions.d.ts","../node_modules/@types/react-native/Libraries/Utilities/PixelRatio.d.ts","../node_modules/@types/react-native/Libraries/Utilities/Platform.d.ts","../node_modules/@types/react-native/Libraries/Vibration/Vibration.d.ts","../node_modules/@types/react-native/Libraries/YellowBox/YellowBoxDeprecated.d.ts","../node_modules/@types/react-native/Libraries/vendor/core/ErrorUtils.d.ts","../node_modules/@types/react-native/public/DeprecatedPropertiesAlias.d.ts","../node_modules/@types/react-native/index.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/dependencies/ContextProvider.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/dependencies/DataProvider.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/layoutmanager/LayoutManager.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/dependencies/LayoutProvider.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/dependencies/GridLayoutProvider.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/scrollcomponent/BaseScrollView.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/ViewabilityTracker.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/VirtualRenderer.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/ItemAnimator.d.ts","../node_modules/recyclerlistview/dist/reactnative/utils/ComponentCompat.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/RecyclerListView.d.ts","../node_modules/recyclerlistview/dist/reactnative/utils/AutoScroll.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/layoutmanager/GridLayoutManager.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/ProgressiveListView.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/devutils/debughandlers/resize/ResizeDebugHandler.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/devutils/debughandlers/DebugHandlers.d.ts","../node_modules/recyclerlistview/dist/reactnative/index.d.ts","../node_modules/recyclerlistview/dist/reactnative/core/StickyContainer.d.ts","../node_modules/recyclerlistview/sticky/index.d.ts","../src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts","../src/native/auto-layout/AutoLayoutViewNativeComponent.ts","../src/native/auto-layout/AutoLayoutView.tsx","../src/native/cell-container/CellContainer.tsx","../src/PureComponentWrapper.tsx","../src/viewability/ViewToken.ts","../src/FlashListProps.ts","../src/utils/AverageWindow.ts","../src/utils/ContentContainerUtils.ts","../src/GridLayoutProviderWithProps.ts","../src/errors/CustomError.ts","../src/errors/ExceptionList.ts","../src/errors/Warnings.ts","../src/viewability/ViewabilityHelper.ts","../src/viewability/ViewabilityManager.ts","../node_modules/recyclerlistview/dist/reactnative/platform/reactnative/itemanimators/defaultjsanimator/DefaultJSItemAnimator.d.ts","../src/native/config/PlatformHelper.ts","../src/FlashList.tsx","../src/AnimatedFlashList.ts","../src/MasonryFlashList.tsx","../src/benchmark/AutoScrollHelper.ts","../src/benchmark/roundToDecimalPlaces.ts","../src/benchmark/JSFPSMonitor.ts","../src/benchmark/useBlankAreaTracker.ts","../src/benchmark/useBenchmark.ts","../src/benchmark/useDataMultiplier.ts","../src/benchmark/useFlatListBenchmark.ts","../src/index.ts","../src/__tests__/AverageWindow.test.ts","../src/__tests__/ContentContainerUtils.test.ts","../node_modules/@quilted/react-testing/build/typescript/types.d.ts","../node_modules/@quilted/react-testing/build/typescript/matchers/index.d.ts","../node_modules/@quilted/react-testing/build/typescript/environment.d.ts","../node_modules/@quilted/react-testing/build/typescript/implementations/test-renderer.d.ts","../node_modules/@quilted/react-testing/build/typescript/index.d.ts","../src/__tests__/helpers/mountFlashList.tsx","../src/__tests__/FlashList.test.tsx","../src/__tests__/GridLayoutProviderWithProps.test.ts","../src/__tests__/helpers/mountMasonryFlashList.tsx","../src/__tests__/MasonryFlashList.test.ts","../src/native/config/PlatformHelper.web.ts","../src/__tests__/PlatformHelper.web.test.ts","../src/__tests__/ViewabilityHelper.test.ts","../src/__tests__/useBlankAreaTracker.test.tsx","../src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts","../src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts","../src/native/cell-container/CellContainer.android.ts","../src/native/cell-container/CellContainer.ios.ts","../src/native/cell-container/CellContainer.web.tsx","../src/native/config/PlatformHelper.android.ts","../src/native/config/PlatformHelper.ios.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/react-test-renderer/index.d.ts","../node_modules/@types/scheduler/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/websocket/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3f149f903dd20dfeb7c80e228b659f0e436532de772469980dbd00702cc05cc1","affectsGlobalScope":true},{"version":"1272277fe7daa738e555eb6cc45ded42cc2d0f76c07294142283145d49e96186","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e",{"version":"1c0e04c54479b57b49fec4e93556974b3d071b65d0b750897e07b3b7d2145fc5","affectsGlobalScope":true},"bc1852215dc1488e6747ca43ae0605041de22ab9a6eeef39542d29837919c414","ae6da60c852e7bacc4a49ff14a42dc1a3fdbb44e11bd9b4acb1bf3d58866ee71",{"version":"0dab023e564abb43c817779fff766e125017e606db344f9633fdba330c970532","affectsGlobalScope":true},"4cbd76eafece5844dc0a32807e68047aecbdd8d863edba651f34c050624f18df",{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"ea0aa24a32c073b8639aa1f3130ba0add0f0f2f76b314d9ba988a5cb91d7e3c4","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"29b8a3a533884705024eab54e56465614ad167f5dd87fdc2567d8e451f747224","affectsGlobalScope":true},"4f2490e3f420ea6345cade9aee5eada76888848e053726956aaf2af8705477ea","b3ac03d0c853c0ac076a10cfef4dc21d810f54dac5899ade2b1c628c35263533","d17a689ac1bd689f37d6f0d3d9a21afac349e60633844044f7a7b7b9d6f7fd83","019650941b03d4978f62d21ae874788a665c02b54e3268ef2029b02d3b4f7561","ae591c8a4d5c7f7fa44b6965016391457d9c1fd763475f68340599a2a2987a24","fbdef0c642b82cc1713b965f07b4da8005bbbb2c026039bfdc15ca2d20769e38","c2c004e7f1a150541d06bc4a408b96e45ac1f08e0b1b35dfd07fc0f678205f95","1f2081eb2cbeb0828f9baa1dd12cf6d207f8104ae0b085ab9975d11adc7f7e6f","cda9069fc4c312ff484c1373455e4297a02d38ae3bd7d0959aad772a2809623c","c028d20108bcaa3b1fdf3514956a8a90ccf680f18672fa3c92ce5acf81d7ab23","1054f6e8774a75aaf17e7cfea4899344f69590b2db1e06da21048ed1e063c693","9533301b8f75664e1b40a8484a4fd9c77efc04aef526409c2447aab7d12ddc63","b78b5b3fdb4e30976c4263c66c0ad38fb81edcc8075a4160a39d99c6dedd35be","032b51d656feaece529823992f5a39fe9e24d44dfa21b3a149982f7787fc7bdf","5bbfdfb694b019cb2a2022fba361a7a857efc1fc2b77a892c92ebc1349b7e984","46bc25e3501d321a70d0878e82a1d47b16ab77bdf017c8fecc76343f50806a0d","42bacb33cddecbcfe3e043ee1117ba848801749e44f947626765b3e0aec74b1c","49dba0d7a37268e6ae2026e84ad4362eac7e776d816756abf649be7fa177dcd5","5f2b5ab209daae571eb9acc1fd2067ccc94e2a13644579a245875bc4f02b562f","f072acf9547f89b814b9fdb3e72f4ebb1649191591cec99db43d35383906f87f","42450dba65ba1307f27c914a8e45e0b602c6f8f78773c052e42b0b87562f081e","f5870d0ca7b0dfb7e2b9ba9abad3a2e2bffe5c711b53dab2e6e76ca2df58302b","aeb20169389e9f508b1a4eb2a30371b64d64bb7c8543120bc39a3c6b78adfcc9","2a3d3acbab8567057a943f9f56113c0144f5fc561623749fbd6bb5c2b33bf738","9cf21fdcd1beb5142a514887133fa59057e06275bb3070713f3b6d51e830ffa0","0ad4f0b67db47064b404df89c50f99552ce12d6c4bb6154255be61eb6beed094","f8a464b9999126fe1095968c266c0d9c6174612cf256379a1ed1993a87bccdc6","49f981ca657ac160b5de5919ee5602d48bc8f8aac0805107c2ce4fd41dc9a2a1","56e4e08d95a3a7886266a2b4f66b67065c340480d9f1beb73ed7578aa83c639a","eb4360d3818dcd879ee965ae2f4b3fdfdc4149db921b6be338cb7dc7c2bd6710","1c1275f325f13af001aa5873418cb497a26b4b8271f9ad20a45e33f61ea3f9d9","b33e8426136c4f9b349b02c940d23310d350179f790899733aa097ed76457061","05aab001669a230a88820be09a54031c45d9af2488b27d53d4a9c8880ce73e8f","d93a066d4b8b33335dfff910fb25abb8979f8814f8ba45ea902a1360907da1f6","41e97e42d182b4d5f0733ebaad69294faaa507d95e595f317168b8f2325da9ca","debc734fc99b6e1684ed565946bad008913c769d4d2e400d8722c0c23d079c06","5a9f7e087aacb01fa0cdbc36b703a60367239f62beed2507a507199e4c417549","c7c23798fbf564983ed69c1ced3371970d986aaed4801a6e0fb41862550dc034","921f5bce372610ae8948ade7d82decbd2cf56d263de578976189585edd0abac0","ac11f8b13beef593e2f097450a7e214b23dca0d428babd570a2f39582f10e9ab","2499beb5d3e2b4c606977bcc2e08b6ef77b2ecda70e78e0622f5af3bed95c9ba","a11057410396907b84051cbdb8b0cd7f7049d72b58d2b6ac1c14ac2608191a52","bb630c26d487cc45ed107f4f2d3c2a95434716f6367f059de734c40d288c31eb","67cbce0ccdfa96b25de478a93cc493266c152e256c3c96b3d16d1f811e3d881f","19905c928bc4c016d05d915625bb08568447266c4661232faf89f7ddc4417ccc","26204eb4c326e8c975f1b789cbf345c6820205bded6d72e57246a83918d3bc84","618f25b2d41a99216e71817a3bc578991eee86c858c3f0f62a9e70707f4d279d","4cd2947878536ec078e4115b7d53cdcd4dcecd3a8288760caa79098db4f8f61f","2129e984399e94c82b77a32b975f3371ca5ee96341ab9f123474f1a5a1a9921f","798120aaa4952d68cd4b43d6625524c62a135c2f5a3eb705caee98de2355230d","6047365397173788c34bd71fea2bf07a9036d981212efd059b33e52d2c405e97","d7e25d7c03ccf8b10972c2a3a57e29a8d9024e6dbc4ac223baf633a6e8c7145c","6c2e2dead2d80007ee44c429b925d0a7b86f8f3d4c237b2197f7db9f39545dc6","38fbc8f9610fbf4bf619854b26e28c4fbbab16dc1944c4317a4af9bf1ac08d8e","1bd0470a72e6869c330e6e978f15ef32ba2c245249aca097b410448152e8a06b","dd05d7970a92b789f7df3b2252574b2e60f1b9a3758e2839e167b498b8f77159","7092be1889127b2f319efd5d9bdcc0b5cf6fe0740e47247ed039446045518898","0a3d5dbf7c2091017e697ebf9af0a727571f5d99cb4c19e6856212a745c6c355","d05f9c767924db6fb89f6075acb64c042cebdb12779bbd1aaca12c850b772d49","d032678e20ff0f4b8ef6f1e4823b6ae37931b776e8381676dc9141999909b3d7","3e4ab0e8e96e968ac84a2484104892c881ded1757acd81b5e969b6229851f54c","d43a36641f5812794a3b4a941e3dfb5fa070f9fff64cfd6daf5291cb962c8b05","32468df81188116040636844517fbe4f67fc37af4fe565c7592353df8e11d2f3","c12b5f9bf412c891cad443ef00a378ad2d3f1301f140943414308665a7d90af8","cf1b65c20036885ed99ce1c18aa0a0ed66f42acd6d415e99b48a8fa4105c23ed","173aec8be1be982c8244df6f94880d77a9b766c8c1ec3eb0af662c8dc6da7f2e","08188020373062e07955835a996fda1aff97a89e57d469edc6b9210bd9c8926f","cad5c2c0085a3e3b74f58aa199944b25ed8d24f93f51c99ebe2463e4f1694785","3e2d93a797c41ab081fbcd80e959b7c30d5d1c358f091c22a6ebe416ef7c5e19","c440df5735a3305e7db118bf821efb597c8318910861f735372846db9f7b506b","d6d8de719a75e5d2ed9dd9d6a99296d1337259e1c96166579db50797edd72ede","32b4c732e183bf5d123f88d526ac21b71a681089c18d2d761be342df31179d94","212d16020e7dce1b5509f3b9813de73612de57c6a3d74536714eb88787b96dc3","1a63d5212341783aa49cf78d667bf2a6cd03208ea09620b2fc3e647ae07f4e0d","84ea58841272970e6e3247cba4dbb326cf22764c2f4bbcb03f1c634315bbbcb5","86f9fbecdd848d02c90f861cc9839d8f3449c518a77e77ea65362f6a4126c63b","ecdaf317a4a1e7e3540e2f1b6aae38acd78dd99d564b52f98eea7358ac74416d","c30430960f1a0552b3cdaf1ef8164fdd4f289c782a8912df5180d57bc9ddfc03","a348081c01502c9f87d39d9e4b5dd58e1111b34c62686d6e569c595a0417bb35","eff69aee13c76502a16b756cde9c451fb4b5c4234052f3b3bee9dbfe92e1b1d5","9943f44400939f4ff008a882ff71162f70ba0c2f735c9743fd4645ef5c925fc4","b7836eba6c5173a1683aee8aa1771ff339e795cb9c21411590edb910274febe4","6fe447aa7e6fabc4f6c536f2997e3b1116b7f73dbe5bf3fc8d958bad434e4a84","15d3908d453d14be4dae760122ed5d74ad789a19f1fec2edd4034e57217436e9","ef00bc701f382da70870ab7721ed8f6552a38e332e60370b93cf340b6470845c","18891a02fa046e57b43a543dddc7212086fcb04ae6c8e8f28f8605dd3ccf57ed",{"version":"5980a888624dce1b0937a0d21c623f97056501bb61a8da29cbe07f1a0be2c9a8","affectsGlobalScope":true},"590a41ccab332c66a6aa62746612b03ceb2e92cc1da58c140e90fb7ff6e8c851","dc1d2996f23fe7f0da0b2c843e05c0ac170a36b51da11e58de089d344de93c3b","78ff01b50e7e9761f239527ec70b96171bccc28a08d909243e193db03b6f6983","ed18472ee2247563a26d754dd4c8bd66383013df13ce7c2927b03cab1a27b7e8","28ac9ac1fa163e5f2321fafa49b9931908c0076216ed3c82646d79abdf79775e","07dd4bed8ddab685f82a2125bf3aa41b42e36f28c16a5aec7357b727649076fb","fc15a2216f29b825747c0c3a54d6989518dd0f4aa0b580520e5526b4a47bec8f","c656d5baf3d4a8f358fc083db04b0fda8cb8503a613a9ba42327ecbd7909773c","397c2c81eaeae1388f7459699d7606feecfc304b212eb9113407c1315746a578","c2d923e9adc26a3efe5186f3a4a72413d24c80f03b306c68c30fa146690fb101","d34782833b7d5f72486a5fb926d3d96198706ed76aeaf1d435c748ebcf9169fc","b093e56054755189dd891ea832dec40d729d110a0a3f432fff5ea5ab1078cdde","98affe620e6230a3888b445c32376e4edbf6b1b376a71f2bf9c07bee11fcdd65","1e05491bef32ff48393d605d557152735899da3d9b111ba3588a1800f2927f4a","1ff7813974b1b9a0524c1e5a99aa52a05e79fc7df7749ada75ded8c53fe1b7e0","cd8c517f54d4ff3475755b290d741c8799df3265ce73d454d8fafe423f8ff749","bf431147b104ae92d61de6b43e9f25d27e8d3eaeaffd612e0c0d3bb8e2423926","f0f21604ae8f880c0ab529f00303806fdeadc943e32a25ca063fc8fea0fa063c","8dc4f45212fba9381e1674e8bd934a588730efbb8a6681b661cad8cd09b081c5",{"version":"52bf774bd30177ebb3e450c808d8d46f67896848a942e6203ae78b65b33d0106","signature":"688c437017a53e69ff66aac2036a0d7f6263082f676a408c9998cbd87ea2ec73"},{"version":"8b6ee36fd764378c62dca37041c5a12fd5a77b9e853c78908b7ed1c90dc149e4","signature":"03846acca031c757d910dbc017d846c87574faf90bde82316fb9b8537896d5ee"},{"version":"0d089d33f31b56697d142aa7395738c0323cf761b4c79fd6bf65a54ab1ddf02f","signature":"027c87e1cb049497d4f185bc9b922ce91cad59832da8faf3411e6b298b9deb78"},{"version":"ec0982b9e7d6c1b6c80e2829c5909eefb9ecee687e60621e0bb937e8ad5d1d43","signature":"8478b617a5be940f1b4b4d19d2fc6149c21ac69c4a7e00c8a7db2c2c21aa2274"},{"version":"84c5fc9d0d22f4566791b88d5fc2c24f56508b50c9ce894ac549ebaa158b1fca","signature":"677ea66c6fa02f1cebf82df19f416a8302c7a7d10e2de265b162760fcd865eef"},{"version":"8455135ea42310a73404fa2513e212d170af1191584061f583ec1e0f6b75dd91","signature":"83e4298f0b6834e955ee6a76569d3e5b3192065d47f1daf4535bb9edb16e88cb"},{"version":"73529962207605bdc5285d5e745919b8d57b776daa0f22a14b75cd8a92d63af9","signature":"422fcd2a7fd87f05efdfaa6eab382ca607d5d54e1f175ba2efccd4aacd5433ef"},{"version":"ebe927d8a9739c9d32ef4df28c1c36cf82daa9abba7cdf3f79e320c5e99e99d8","signature":"2421f9c6b1ecedd50818719090a77e9d2748c2339c33f3d4817beebf7a39d211"},{"version":"165c56632fea46c85e2a62f1b4eae600b846ea0deacd3c137fde9bacb845c30e","signature":"79bf9e3846b43e706d181c00f3c1c50ae8fc60e587c97a16e521adc150317624"},{"version":"866e1d2cf16a41851b056a2cc0cdc5f0f00df0435376cc2c723a8c609f61fbd0","signature":"5f5bbca60f0bfed6ff714163c4e962a5e260e59db754c89ee2063403accd03e3"},{"version":"ecfa1b63e3829b310ac968b2cc1cc7016ba76ffb8532439aebecbcbc57173b99","signature":"2f1dda63ade2bd085704674523b56ede942bc8c2c37fe8ed9b9b0fdfd69b1262"},{"version":"51d2f746d7e599a5549f5a946565934b4556bb9155be1eed2c474e25f1474872","signature":"c15585fe8935ed5cfedec39b7d41ec49990973f40faaba4b3e14278861643d79"},{"version":"b1d1378906c54a2f4d230ad69d212beedd2552afe3f7ad171b7eacb4cecc26d7","signature":"f9e60e8f79a7f606f19e02e2d39a24995719767dbe587f564f970bb24e3ca29d"},{"version":"f5a156e5b3783ea0399ac0326b7ab31a00e8874c5fa9b5e26fac217da8b5adfd","signature":"cfa7179e0306fc04d93f062c96e7ae8bad58d0cc4a7aa0dd4494ff9d262b101c"},{"version":"3c9fefca9303bcfd5712de11a3cbda20b3d6e85f29019bc75cab24690fb0f90d","signature":"306683152ff5a6038cf05b03ddff85a15b1bc8e18ef268aad26b02fd8e0e8b9d"},"a11c3e55d22d6379fe0949793e2638a6b43aa6e9def4f7452c3e352a296ef8da",{"version":"2770956c9437d7d66650084891c559ff6bb94200b7e2820940fd5d5dd0efa489","signature":"2faaf4f254008bf5be0e145be10dba35dccfac7116e9083f9d697a476a8e7076"},{"version":"ceee917fd557b841b93f7e13103dfdad79d38fe9962408f538f27db03dc9368d","signature":"15003ff6ed10d259dca775c7e5f7a64b272a9c370b6085db2d42a2d4a1d81579"},{"version":"a1691ae6d70af82f3e26d9e2e021dc5063021bd9c335bfdb40dc97d3574d1b3f","signature":"cd1c566b611a70ff987a79d0465da67649a8ed7e7668feddfcdf6dceb01c09a8"},{"version":"a105417dd540f1a400f0665c877e5d7e48e2efe08f01c2e5c7272256e644faa5","signature":"b3a6ee392811d6cddb38378ebaa373d4a39aa7dc4ecac73497c6b33627e6430b"},{"version":"581b44cf6122e3ad267d6bda2428c214fef3d38b6d7249df9fa6bc240a880a78","signature":"0ca09d92d6469d906a3d1c7192a6294c7f65b75f4f7eb8072bbd1b68c7f021e1"},{"version":"2e6426c1a1ff8561aa5f01d9398426bf06e55307f688464939de3196f0d4c143","signature":"5357bd09c9816a9765e617f86a9b49f85133d0bc0f9c5e29e834f2f8e6d52acb"},{"version":"508279c48de5627ae6c30a0aee01f4391bf32450335d7f09d5dd82acbc4d13c5","signature":"11d546a505f70f9c5f8092916027d8045c280a817b709fcaf2c4e63fa026c89c"},{"version":"557f2e0a4e5ac8a59b7c3068b2b30162fb963d72d50152482ab8c414e81caf37","signature":"008eaae28119118f1c589a1e29ea7fd17277f2280d2d3bfddeacd71fd1671bb5"},{"version":"f45c172ca54fb28d64b2dd04e495f17038034e20f37bd286a9f3eeb286cf1388","signature":"75a8761564c8fc5581b062dd339ea698921baf60e52eae055c8177dfa89eba90"},{"version":"ea696a0517ad69afea472e47eb1f904aba1667f54d4557eb98b8c766469d56a2","signature":"7e125d9abc19f62d1480f6c04a45d7bb2c89153316245ae8b8e5a0234b078c4e"},{"version":"902937c505f88d8b5b32829b4c14243eb740013fd0e2f58e6485324bbfe197a6","signature":"dc7de7650e5a64fc010387db18e84d48fe8f562dbd9caac01e54f83681ac976b"},{"version":"842accda78bb1b6f494f264aae307b84d933486d607e91f6e1d3a4d2e4851783","signature":"430d9683c8e5aaab71f0e3b271c4240cd5120a91191f953722985499af51d7e6"},{"version":"45b1a895868587c78a2ddff937967669b4e1968ea72c01e1c2b6dd5993f53b36","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"99cab9373415bac71e9d2c84279782c0a361b59551d0ca8dfaee8d4c08ed3247","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"ba1fed463e8a21ffddb67a53df3f0d818b351991723736e167d065e2de1c7183",{"version":"22e311fec88bcc49b2b1fb3c9a7c082cd84b3388c9bcc7b9ef08253f6fa74e26","affectsGlobalScope":true},"c186097fd9b86681981cdeba08c0b6bbfcd8b562ab490c25656d85fef8f10c79","0b0c483e991e81c3f26e5f2da53ff26a15994c98c8b89cda1e4156dfc2428111","3340eb7b30bdee5f0349107d4068fd6f2f4712e11a2ba68e203b2f2489350317",{"version":"2000d60bd5195730ffff0d4ce9389003917928502c455ed2a9e296d3bf1a4b42","signature":"56335d3c9b867cc8654c05e633c508dd8de0038157f9958eb8794b7c123bb90e"},{"version":"dfceb5b9355a4a9002a7c291b1c3315511977c73cb23d9c123a72567783a18c0","signature":"b1802850887a3ea11a06df1fc1c65c6579332eefba1e63b3967a73dc937a2574"},{"version":"384fc0e3fa5966f524c96f1782b9d7a005346ba1621c43d0d1d819bf39077fbc","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"7fde517b3f03bb21ec3a46ba5f85c6797f8abf27deacb862183126e2f072788e","signature":"8b310edcfec83da25bc4f3adb20a7583bc5dae56d7d06c5b1431b76d390c1b72"},{"version":"894d93831d2afcd26f7362347e4960dd6d53f4153dad08813f3670e1327e387c","signature":"b1802850887a3ea11a06df1fc1c65c6579332eefba1e63b3967a73dc937a2574"},{"version":"8f9eac2c3ae305c25d4ffeff800b9811c8d3ec6a11b142fe96d08a2bc40f6440","signature":"08d6a2d1b004bbcac4249cd5baf6e9c662adc6139939c266b42e0422ef0c68b3"},{"version":"ac8980bdd810c30c444b59cca584c9b61d5ab274fa9474d778970537f3090240","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"1c024431c672cf9c6dcdb4d30c5b625435d81a5423b9d45e8de0082e969af8a8","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"eee1b57475023853cd09dd79b8d0d6639b6b82c3baee5863c2f2022b710f4102","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"377ba49d29102653a4b0c72b3870f9c599575df7db3a3fae7a21be5327ff84e2","signature":"c47f5db4df0a5031ed84bc6ee192c412b9e2d4d5e94681af77ccdcc25c851839"},{"version":"377ba49d29102653a4b0c72b3870f9c599575df7db3a3fae7a21be5327ff84e2","signature":"c47f5db4df0a5031ed84bc6ee192c412b9e2d4d5e94681af77ccdcc25c851839"},{"version":"39833acf7547216b2f31b2279dcfec3ed1359dec8adc9d1cb87c695ebf9bff94","signature":"7292d4dc9dac6d815dc30245a4a4a4959845d3a2b84ba0166857e4b23f2d033f"},{"version":"39833acf7547216b2f31b2279dcfec3ed1359dec8adc9d1cb87c695ebf9bff94","signature":"7292d4dc9dac6d815dc30245a4a4a4959845d3a2b84ba0166857e4b23f2d033f"},{"version":"529dd364d169ab3dbbb177ccdc4987c4a6f69187f553f3d36460ab65879ad998","signature":"3919e9d5911da2254732c31942e2cdc0057056ebfc2a16d34041c76a9b58d447"},{"version":"ebea587ca6477b9db29baf75d359924c55ab490fecdc38d7c0f16e589f0d27f9","signature":"0688c25f38e78e052338305d23046c7841074b3da5709a8f9e598ed705b9932b"},{"version":"de411013305dbe5c7a1ac13d2ea16dc36e52e6efd255b4e912fe53862058c649","signature":"2faaf4f254008bf5be0e145be10dba35dccfac7116e9083f9d697a476a8e7076"},"e432b56911b58550616fc4d54c1606f65fe98c74875b81d74601f5f965767c60","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","a46a2e69d12afe63876ec1e58d70e5dbee6d3e74132f4468f570c3d69f809f1c","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"712ba0d43b44d144dfd01593f61af6e2e21cfae83e834d297643e7973e55ed61","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","e383ff72aabf294913f8c346f5da1445ae6ad525836d28efd52cbadc01a361a6","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7980bf9d2972585cdf76b5a72105f7817be0723ccb2256090f6335f45b462abe","301d7466eb591139c7d456958f732153b3400f3243f68d3321956b43a64769e9","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2",{"version":"2abad7477cf6761b55c18bea4c21b5a5dcf319748c13696df3736b35f8ac149e","affectsGlobalScope":true},"d38e588a10943bbab1d4ce03d94759bf065ff802a9a72fc57aa75a72f1725b71","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","6209c901f30cc321f4b86800d11fad3d67e73a3308f19946b1bc642af0280298","60aaac5fb1858fbd4c4eb40e01706eb227eed9eca5c665564bd146971280dbd3","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","4266ccd2cf1d6a281efd9c7ddf9efd7daecf76575364148bd233e18919cac3ed","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","105b9a2234dcb06ae922f2cd8297201136d416503ff7d16c72bfc8791e9895c1"],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"jsx":2,"noEmitOnError":false,"noImplicitAny":true,"noUnusedLocals":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strictNullChecks":true,"target":1,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[211,260],[260],[260,273],[53,190,260],[192,194,260],[190,192,193,260],[53,260],[53,140,260],[69,260],[211,212,213,214,215,260],[211,213,260],[233,260,267],[260,269],[260,270],[260,275,277],[217,260],[220,260],[221,226,260],[222,232,233,240,249,259,260],[222,223,232,240,260],[224,260],[225,226,233,241,260],[226,249,256,260],[227,229,232,240,260],[228,260],[229,230,260],[231,232,260],[232,260],[232,233,234,249,259,260],[232,233,234,249,260],[235,240,249,259,260],[232,233,235,236,240,249,256,259,260],[235,237,249,256,259,260],[217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266],[232,238,260],[239,259,260],[229,232,240,249,260],[241,260],[242,260],[220,243,260],[244,258,260,264],[245,260],[246,260],[232,247,260],[247,248,260,262],[232,249,250,251,260],[249,251,260],[249,250,260],[252,260],[253,260],[232,254,255,260],[254,255,260],[226,240,249,256,260],[257,260],[240,258,260],[221,235,246,259,260],[226,260],[249,260,261],[260,262],[260,263],[221,226,232,234,243,249,259,260,262,264],[249,260,265],[76,77,260],[53,58,64,65,68,71,72,73,76,260],[74,260],[84,260],[53,57,82,260],[53,54,57,58,62,75,76,260],[53,76,105,106,260],[53,54,57,58,62,76,260],[82,91,260],[53,54,62,75,76,93,260],[53,55,58,61,62,65,75,76,260],[53,54,57,62,76,260],[53,54,57,62,260],[53,54,55,58,60,62,63,75,76,260],[53,76,260],[53,75,76,260],[53,54,57,58,61,62,75,76,82,93,260],[53,55,58,260],[53,54,57,60,75,76,93,103,260],[53,54,60,76,103,105,260],[53,54,57,60,62,93,103,260],[53,54,55,58,60,61,75,76,93,260],[58,260],[53,55,58,59,60,61,75,76,260],[82,260],[83,260],[53,54,55,57,58,61,66,67,75,76,260],[58,59,260],[53,64,65,70,75,76,260],[53,56,64,70,75,76,260],[53,58,62,260],[53,118,260],[53,57,260],[57,260],[76,260],[75,260],[66,74,76,260],[53,54,57,58,61,75,76,260],[128,260],[53,56,57,260],[91,260],[44,45,46,47,48,55,56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,260],[140,260],[46,260],[49,50,51,52,260],[232,235,237,240,259,260,267],[260,287],[260,275],[260,272,276],[260,274],[151,260],[53,141,142,143,144,146,147,148,149,150,157,260],[53,140,147,150,151,260],[143,144,260],[142,143,144,147,260],[143,260],[155,260],[157,260],[144,260],[53,144,260],[141,142,143,144,145,146,147,149,150,151,152,153,154,156,260],[149,260],[158,260],[43,140,166,177,260],[43,53,140,157,159,162,163,164,166,168,169,170,171,172,174,176,260],[43,53,140,162,165,260],[43,157,166,167,168,260],[43,53,140,165,166,168,170,171,177,260],[43,53,260],[43,167,260],[43,168,260],[43,53,140,157,162,163,166,172,191,195,260],[43,140,157,177,195,260],[43,53,140,157,177,179,191,198,260],[43,200,260],[43,157,170,171,173,260],[43,53,140,166,177,191,194,260],[43,53,140,166,179,191,194,260],[43,53,177,183,194,195,260],[43,260],[43,181,260],[43,53,177,180,181,182,183,260],[43,53,157,162,177,260],[43,53,140,180,182,184,260],[43,162,163,165,166,177,178,179,180,182,183,184,185,186,260],[43,53,140,160,161,260],[43,140,160,260],[43,140,260],[43,53,140,260],[43,157,260],[43,157,175,260],[43,53,140,157,175,260],[43,140,157,166,260],[43,140,157,170,171,260],[43,140,165,173,177,260],[53,140,166],[53,157,166,169],[53,140,162,165],[157,166],[53,140,166,177],[53],[191],[53,166,177,191,194],[53,166,179,191,194],[53,177,182,183,187],[53,162,177],[140,184],[162,163,165,166,177,178,179,180,182,183,184,185,186],[53,140],[140,160],[140],[157],[53,157],[140,157,166],[140,157],[177]],"referencedMap":[[213,1],[211,2],[274,3],[192,4],[193,5],[194,6],[191,4],[190,7],[69,8],[70,9],[273,2],[216,10],[212,1],[214,11],[215,1],[268,12],[269,2],[270,13],[271,14],[278,15],[279,2],[280,2],[217,16],[218,16],[220,17],[221,18],[222,19],[223,20],[224,21],[225,22],[226,23],[227,24],[228,25],[229,26],[230,26],[231,27],[232,28],[233,29],[234,30],[219,2],[266,2],[235,31],[236,32],[237,33],[267,34],[238,35],[239,36],[240,37],[241,38],[242,39],[243,40],[244,41],[245,42],[246,43],[247,44],[248,45],[249,46],[251,47],[250,48],[252,49],[253,50],[254,51],[255,52],[256,53],[257,54],[258,55],[259,56],[260,57],[261,58],[262,59],[263,60],[264,61],[265,62],[281,2],[282,2],[51,2],[78,63],[79,2],[74,64],[80,2],[81,65],[85,66],[86,2],[87,67],[88,68],[107,69],[89,2],[90,70],[92,71],[94,72],[95,73],[96,74],[63,74],[97,75],[64,76],[98,77],[99,68],[100,78],[101,79],[102,2],[60,80],[104,81],[106,82],[105,83],[103,84],[65,75],[61,85],[62,86],[108,2],[91,87],[83,87],[84,88],[68,89],[66,2],[67,2],[109,87],[110,90],[111,2],[112,71],[71,91],[72,92],[113,2],[114,93],[115,2],[116,2],[117,2],[119,94],[120,2],[56,7],[121,7],[122,95],[123,96],[124,2],[125,97],[127,97],[126,97],[76,98],[75,99],[77,97],[73,100],[128,2],[129,101],[58,102],[130,66],[131,66],[132,103],[133,87],[118,2],[134,2],[135,2],[136,2],[137,7],[138,2],[82,2],[140,104],[44,2],[45,105],[46,106],[48,2],[47,2],[93,2],[54,2],[139,105],[55,2],[59,85],[57,7],[283,7],[49,2],[53,107],[284,2],[52,2],[285,2],[286,108],[287,2],[288,109],[272,2],[50,2],[276,110],[277,111],[275,112],[149,2],[154,113],[151,114],[158,115],[147,116],[148,117],[141,2],[142,2],[145,116],[144,118],[156,119],[155,120],[153,116],[143,121],[146,122],[157,123],[175,124],[152,2],[150,7],[159,125],[43,2],[8,2],[9,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[35,2],[40,2],[41,2],[36,2],[37,2],[38,2],[39,2],[1,2],[42,2],[178,126],[177,127],[166,128],[169,129],[179,130],[164,131],[188,132],[189,133],[196,134],[197,135],[199,136],[201,137],[202,138],[195,139],[198,140],[203,141],[180,142],[182,143],[181,142],[184,144],[183,145],[185,142],[186,146],[170,142],[171,142],[172,142],[187,147],[162,148],[204,149],[205,149],[161,149],[160,131],[206,150],[207,150],[163,151],[208,131],[209,152],[210,152],[176,153],[200,154],[167,142],[168,155],[165,142],[173,156],[174,157]],"exportedModulesMap":[[213,1],[211,2],[274,3],[192,4],[193,5],[194,6],[191,4],[190,7],[69,8],[70,9],[273,2],[216,10],[212,1],[214,11],[215,1],[268,12],[269,2],[270,13],[271,14],[278,15],[279,2],[280,2],[217,16],[218,16],[220,17],[221,18],[222,19],[223,20],[224,21],[225,22],[226,23],[227,24],[228,25],[229,26],[230,26],[231,27],[232,28],[233,29],[234,30],[219,2],[266,2],[235,31],[236,32],[237,33],[267,34],[238,35],[239,36],[240,37],[241,38],[242,39],[243,40],[244,41],[245,42],[246,43],[247,44],[248,45],[249,46],[251,47],[250,48],[252,49],[253,50],[254,51],[255,52],[256,53],[257,54],[258,55],[259,56],[260,57],[261,58],[262,59],[263,60],[264,61],[265,62],[281,2],[282,2],[51,2],[78,63],[79,2],[74,64],[80,2],[81,65],[85,66],[86,2],[87,67],[88,68],[107,69],[89,2],[90,70],[92,71],[94,72],[95,73],[96,74],[63,74],[97,75],[64,76],[98,77],[99,68],[100,78],[101,79],[102,2],[60,80],[104,81],[106,82],[105,83],[103,84],[65,75],[61,85],[62,86],[108,2],[91,87],[83,87],[84,88],[68,89],[66,2],[67,2],[109,87],[110,90],[111,2],[112,71],[71,91],[72,92],[113,2],[114,93],[115,2],[116,2],[117,2],[119,94],[120,2],[56,7],[121,7],[122,95],[123,96],[124,2],[125,97],[127,97],[126,97],[76,98],[75,99],[77,97],[73,100],[128,2],[129,101],[58,102],[130,66],[131,66],[132,103],[133,87],[118,2],[134,2],[135,2],[136,2],[137,7],[138,2],[82,2],[140,104],[44,2],[45,105],[46,106],[48,2],[47,2],[93,2],[54,2],[139,105],[55,2],[59,85],[57,7],[283,7],[49,2],[53,107],[284,2],[52,2],[285,2],[286,108],[287,2],[288,109],[272,2],[50,2],[276,110],[277,111],[275,112],[149,2],[154,113],[151,114],[158,115],[147,116],[148,117],[141,2],[142,2],[145,116],[144,118],[156,119],[155,120],[153,116],[143,121],[146,122],[157,123],[175,124],[152,2],[150,7],[159,125],[43,2],[8,2],[9,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[35,2],[40,2],[41,2],[36,2],[37,2],[38,2],[39,2],[1,2],[42,2],[178,158],[177,159],[166,160],[169,161],[179,162],[164,163],[196,164],[199,164],[195,165],[198,166],[184,167],[183,168],[186,169],[187,170],[162,171],[204,172],[205,172],[161,172],[160,163],[206,173],[207,173],[163,171],[208,163],[209,174],[210,174],[176,174],[200,175],[168,176],[173,177],[174,178]],"semanticDiagnosticsPerFile":[213,211,274,192,193,194,191,190,69,70,273,216,212,214,215,268,269,270,271,278,279,280,217,218,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,219,266,235,236,237,267,238,239,240,241,242,243,244,245,246,247,248,249,251,250,252,253,254,255,256,257,258,259,260,261,262,263,264,265,281,282,51,78,79,74,80,81,85,86,87,88,107,89,90,92,94,95,96,63,97,64,98,99,100,101,102,60,104,106,105,103,65,61,62,108,91,83,84,68,66,67,109,110,111,112,71,72,113,114,115,116,117,119,120,56,121,122,123,124,125,127,126,76,75,77,73,128,129,58,130,131,132,133,118,134,135,136,137,138,82,140,44,45,46,48,47,93,54,139,55,59,57,283,49,53,284,52,285,286,287,288,272,50,276,277,275,149,154,151,158,147,148,141,142,145,144,156,155,153,143,146,157,175,152,150,159,43,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,35,40,41,36,37,38,39,1,42,178,177,166,169,179,164,188,189,196,197,199,201,202,195,198,203,180,182,181,184,183,185,186,170,171,172,187,162,204,205,161,160,206,207,163,208,209,210,176,200,167,168,165,173,174]},"version":"4.7.4"} +\ No newline at end of file +diff --git a/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift +index f18e92c..af1903c 100644 +--- a/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift ++++ b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift +@@ -4,31 +4,35 @@ import UIKit + + /// Container for all RecyclerListView children. This will automatically remove all gaps and overlaps for GridLayouts with flexible spans. + /// Note: This cannot work for masonry layouts i.e, pinterest like layout +-@objc class AutoLayoutView: UIView { ++@objc public class AutoLayoutView: UIView { ++ #if RCT_NEW_ARCH_ENABLED ++ @objc public var onBlankAreaEventHandler: ((CGFloat, CGFloat) -> Void)? ++ #endif ++ + @objc(onBlankAreaEvent) + var onBlankAreaEvent: RCTDirectEventBlock? + +- @objc func setHorizontal(_ horizontal: Bool) { ++ @objc public func setHorizontal(_ horizontal: Bool) { + self.horizontal = horizontal + } + +- @objc func setScrollOffset(_ scrollOffset: Int) { ++ @objc public func setScrollOffset(_ scrollOffset: Int) { + self.scrollOffset = CGFloat(scrollOffset) + } + +- @objc func setWindowSize(_ windowSize: Int) { ++ @objc public func setWindowSize(_ windowSize: Int) { + self.windowSize = CGFloat(windowSize) + } + +- @objc func setRenderAheadOffset(_ renderAheadOffset: Int) { ++ @objc public func setRenderAheadOffset(_ renderAheadOffset: Int) { + self.renderAheadOffset = CGFloat(renderAheadOffset) + } + +- @objc func setEnableInstrumentation(_ enableInstrumentation: Bool) { ++ @objc public func setEnableInstrumentation(_ enableInstrumentation: Bool) { + self.enableInstrumentation = enableInstrumentation + } + +- @objc func setDisableAutoLayout(_ disableAutoLayout: Bool) { ++ @objc public func setDisableAutoLayout(_ disableAutoLayout: Bool) { + self.disableAutoLayout = disableAutoLayout + } + +@@ -46,7 +50,15 @@ import UIKit + /// Tracks where first pixel is drawn in the visible window + private var lastMinBound: CGFloat = 0 + +- override func layoutSubviews() { ++ private var viewsToLayout: [UIView] { ++ #if RCT_NEW_ARCH_ENABLED ++ return superview?.subviews ?? [] ++ #else ++ return subviews ++ #endif ++ } ++ ++ override public func layoutSubviews() { + fixLayout() + super.layoutSubviews() + +@@ -69,12 +81,16 @@ import UIKit + distanceFromWindowEnd: distanceFromWindowEnd + ) + ++ #if RCT_NEW_ARCH_ENABLED ++ onBlankAreaEventHandler?(blankOffsetStart, blankOffsetEnd) ++ #else + onBlankAreaEvent?( + [ + "offsetStart": blankOffsetStart, + "offsetEnd": blankOffsetEnd, + ] + ) ++ #endif + } + + func getScrollView() -> UIScrollView? { +@@ -85,15 +101,21 @@ import UIKit + /// Performance: Sort is needed. Given relatively low number of views in RecyclerListView render tree this should be a non issue. + private func fixLayout() { + guard +- subviews.count > 1, ++ viewsToLayout.count > 1, + // Fixing layout during animation can interfere with it. + layer.animationKeys()?.isEmpty ?? true, + !disableAutoLayout + else { return } +- let cellContainers = subviews +- .compactMap { subview -> CellContainer? in +- if let cellContainer = subview as? CellContainer { ++ let cellContainers = viewsToLayout ++ .compactMap { subview -> CellContainerComponentView? in ++ if let cellContainer = subview as? CellContainerComponentView { + return cellContainer ++ } else if subview is AutoLayoutView { ++ // On Fabric, due to view flattening children of AutoLayoutView are moved one level up, so they appear ++ // as children of AutoLayoutViewComponentView in view hierarchy. viewsToLayout property takes it under ++ // consideration, returning children of AutoLayoutViewComponentView when on Fabric. Because of that ++ // AutoLayoutView may be on the list, in which case we want to ignore it. ++ return nil + } else { + assertionFailure("CellRendererComponent outer view should always be CellContainer. Learn more here: https://shopify.github.io/flash-list/docs/usage#cellrenderercomponent.") + return nil +@@ -106,7 +128,7 @@ import UIKit + + /// Checks for overlaps or gaps between adjacent items and then applies a correction. + /// Performance: RecyclerListView renders very small number of views and this is not going to trigger multiple layouts on the iOS side. +- private func clearGaps(for cellContainers: [CellContainer]) { ++ private func clearGaps(for cellContainers: [CellContainerComponentView]) { + var maxBound: CGFloat = 0 + var minBound: CGFloat = CGFloat(Int.max) + var maxBoundNextCell: CGFloat = 0 +@@ -192,7 +214,7 @@ import UIKit + lastMinBound = minBound + } + +- private func updateLastMaxBoundOverall(currentCell: CellContainer, nextCell: CellContainer) { ++ private func updateLastMaxBoundOverall(currentCell: CellContainerComponentView, nextCell: CellContainerComponentView) { + lastMaxBoundOverall = max(lastMaxBoundOverall, horizontal ? currentCell.frame.maxX : currentCell.frame.maxY, horizontal ? nextCell.frame.maxX : nextCell.frame.maxY) + } + +@@ -217,7 +239,7 @@ import UIKit + + /// It's important to avoid correcting views outside the render window. An item that isn't being recycled might still remain in the view tree. If views outside get considered then gaps between unused items will cause algorithm to fail. + func isWithinBounds( +- _ cellContainer: CellContainer, ++ _ cellContainer: CellContainerComponentView, + scrollOffset: CGFloat, + renderAheadOffset: CGFloat, + windowSize: CGFloat, +@@ -260,10 +282,10 @@ import UIKit + } + + private func footerDiff() -> CGFloat { +- if subviews.count == 0 { ++ if viewsToLayout.count == 0 { + lastMaxBoundOverall = 0 +- } else if subviews.count == 1 { +- let firstChild = subviews[0] ++ } else if viewsToLayout.count == 1 { ++ let firstChild = viewsToLayout[0] + lastMaxBoundOverall = horizontal ? firstChild.frame.maxX : firstChild.frame.maxY + } + let autoLayoutEnd = horizontal ? frame.width : frame.height +@@ -271,6 +293,13 @@ import UIKit + } + + private func footer() -> UIView? { +- return superview?.subviews.first(where:{($0 as? CellContainer)?.index == -1}) ++ // On Fabric, AutoLayoutView is wrapped with AutoLayoutViewComponentView, so we need to go up one more level ++ #if RCT_NEW_ARCH_ENABLED ++ let parentSubviews = superview?.superview?.subviews ++ #else ++ let parentSubviews = superview?.subviews ++ #endif ++ ++ return parentSubviews?.first(where:{($0 as? CellContainerComponentView)?.index == -1}) + } + } +diff --git a/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewComponentView.h b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewComponentView.h +new file mode 100644 +index 0000000..1ae0b66 +--- /dev/null ++++ b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewComponentView.h +@@ -0,0 +1,16 @@ ++#ifndef AutoLayoutViewComponentView_h ++#define AutoLayoutViewComponentView_h ++ ++#ifdef RCT_NEW_ARCH_ENABLED ++ ++#import ++#import ++ ++@interface AutoLayoutViewComponentView : RCTViewComponentView ++ ++@end ++ ++ ++#endif /* RCT_NEW_ARCH_ENABLED */ ++ ++#endif /* AutoLayoutViewComponentView_h */ +diff --git a/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewComponentView.mm b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewComponentView.mm +new file mode 100644 +index 0000000..2d4295c +--- /dev/null ++++ b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewComponentView.mm +@@ -0,0 +1,80 @@ ++#ifdef RCT_NEW_ARCH_ENABLED ++#import "AutoLayoutViewComponentView.h" ++#import ++#import ++ ++#import ++#import ++#import ++#import ++ ++#import "RCTFabricComponentsPlugins.h" ++#import ++ ++using namespace facebook::react; ++ ++@interface AutoLayoutViewComponentView () ++@end ++ ++@implementation AutoLayoutViewComponentView ++{ ++ AutoLayoutView *_autoLayoutView; ++} ++ ++- (instancetype)initWithFrame:(CGRect)frame ++{ ++ if (self = [super initWithFrame:frame]) { ++ static const auto defaultProps = std::make_shared(); ++ _props = defaultProps; ++ _autoLayoutView = [[AutoLayoutView alloc] initWithFrame:self.bounds]; ++ ++ // Due to view flattening, AutoLayoutView's children get moved to its parent (AutoLayoutViewComponentView) and ++ // AutoLayoutView is positioned above them consuming all events. Turning off userInteraction prevents that. ++ _autoLayoutView.userInteractionEnabled = false; ++ ++ self.contentView = _autoLayoutView; ++ ++ __weak AutoLayoutViewComponentView* weakSelf = self; ++ _autoLayoutView.onBlankAreaEventHandler = ^(CGFloat start, CGFloat end) { ++ AutoLayoutViewComponentView *strongSelf = weakSelf; ++ if (strongSelf != nullptr && strongSelf->_eventEmitter != nullptr) { ++ std::dynamic_pointer_cast(strongSelf->_eventEmitter) ++ ->onBlankAreaEvent(facebook::react::AutoLayoutViewEventEmitter::OnBlankAreaEvent{ ++ .offsetStart = (int) floor(start), ++ .offsetEnd = (int) floor(end), ++ }); ++ } ++ }; ++ } ++ ++ return self; ++} ++ ++#pragma mark - RCTComponentViewProtocol ++ +++ (ComponentDescriptorProvider)componentDescriptorProvider ++{ ++ return concreteComponentDescriptorProvider(); ++} ++ ++- (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &)oldProps ++{ ++ const auto &newProps = *std::static_pointer_cast(props); ++ ++ [_autoLayoutView setHorizontal:newProps.horizontal]; ++ [_autoLayoutView setScrollOffset:newProps.scrollOffset]; ++ [_autoLayoutView setWindowSize:newProps.windowSize]; ++ [_autoLayoutView setRenderAheadOffset:newProps.renderAheadOffset]; ++ [_autoLayoutView setEnableInstrumentation:newProps.enableInstrumentation]; ++ [_autoLayoutView setDisableAutoLayout:newProps.disableAutoLayout]; ++ ++ [super updateProps:props oldProps:oldProps]; ++} ++@end ++ ++Class AutoLayoutViewCls(void) ++{ ++ return AutoLayoutViewComponentView.class; ++} ++ ++#endif /* RCT_NEW_ARCH_ENABLED */ +diff --git a/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewManager.m b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewManager.mm +similarity index 100% +rename from node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewManager.m +rename to node_modules/@shopify/flash-list/ios/Sources/AutoLayoutViewManager.mm +diff --git a/node_modules/@shopify/flash-list/ios/Sources/CellContainer.swift b/node_modules/@shopify/flash-list/ios/Sources/CellContainer.swift +deleted file mode 100644 +index 7f09ce7..0000000 +--- a/node_modules/@shopify/flash-list/ios/Sources/CellContainer.swift ++++ /dev/null +@@ -1,9 +0,0 @@ +-import Foundation +- +-@objc class CellContainer: UIView { +- var index: Int = -1 +- +- @objc func setIndex(_ index: Int) { +- self.index = index +- } +-} +diff --git a/node_modules/@shopify/flash-list/ios/Sources/CellContainerComponentView.h b/node_modules/@shopify/flash-list/ios/Sources/CellContainerComponentView.h +new file mode 100644 +index 0000000..ca1cbfe +--- /dev/null ++++ b/node_modules/@shopify/flash-list/ios/Sources/CellContainerComponentView.h +@@ -0,0 +1,18 @@ ++#ifndef CellContainer_h ++#define CellContainer_h ++ ++#import ++ ++#ifdef RCT_NEW_ARCH_ENABLED ++#import ++ ++@interface CellContainerComponentView : RCTViewComponentView ++#else ++@interface CellContainerComponentView : UIView ++#endif ++ ++@property int64_t index; ++ ++@end ++ ++#endif /* CellContainer_h */ +diff --git a/node_modules/@shopify/flash-list/ios/Sources/CellContainerComponentView.mm b/node_modules/@shopify/flash-list/ios/Sources/CellContainerComponentView.mm +new file mode 100644 +index 0000000..3a1c57e +--- /dev/null ++++ b/node_modules/@shopify/flash-list/ios/Sources/CellContainerComponentView.mm +@@ -0,0 +1,57 @@ ++#import "CellContainerComponentView.h" ++ ++#ifdef RCT_NEW_ARCH_ENABLED ++#import ++ ++#import ++#import ++#import ++#import ++ ++#import "RCTFabricComponentsPlugins.h" ++#import ++ ++using namespace facebook::react; ++ ++@interface CellContainerComponentView () ++@end ++ ++@implementation CellContainerComponentView ++ ++- (instancetype)initWithFrame:(CGRect)frame ++{ ++ if (self = [super initWithFrame:frame]) { ++ static const auto defaultProps = std::make_shared(); ++ _props = defaultProps; ++ ++ self.userInteractionEnabled = true; ++ } ++ ++ return self; ++} ++ ++#pragma mark - RCTComponentViewProtocol ++ +++ (ComponentDescriptorProvider)componentDescriptorProvider ++{ ++ return concreteComponentDescriptorProvider(); ++} ++ ++- (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &)oldProps ++{ ++ const auto &newProps = *std::static_pointer_cast(props); ++ ++ self.index = newProps.index; ++ ++ [super updateProps:props oldProps:oldProps]; ++} ++@end ++ ++Class CellContainerCls(void) ++{ ++ return CellContainerComponentView.class; ++} ++#else ++@implementation CellContainerComponentView ++@end ++#endif /* RCT_NEW_ARCH_ENABLED */ +diff --git a/node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.m b/node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.mm +similarity index 100% +rename from node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.m +rename to node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.mm +diff --git a/node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.swift b/node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.swift +index a36fccd..dbe6c14 100644 +--- a/node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.swift ++++ b/node_modules/@shopify/flash-list/ios/Sources/CellContainerManager.swift +@@ -3,7 +3,7 @@ import Foundation + @objc(CellContainerManager) + class CellContainerManager: RCTViewManager { + override func view() -> UIView! { +- return CellContainer() ++ return CellContainerComponentView() + } + + override static func requiresMainQueueSetup() -> Bool { +diff --git a/node_modules/@shopify/flash-list/ios/Sources/FlatListPro-Bridging-Header.h b/node_modules/@shopify/flash-list/ios/Sources/FlatListPro-Bridging-Header.h +index e3e23d5..7ed83ce 100644 +--- a/node_modules/@shopify/flash-list/ios/Sources/FlatListPro-Bridging-Header.h ++++ b/node_modules/@shopify/flash-list/ios/Sources/FlatListPro-Bridging-Header.h +@@ -4,5 +4,8 @@ + #import + #import + #import ++#import ++ ++#import "CellContainerComponentView.h" + + #endif /* FlatListPro_Bridging_Header_h */ +diff --git a/node_modules/@shopify/flash-list/package.json b/node_modules/@shopify/flash-list/package.json +index b90c287..ccca16d 100644 +--- a/node_modules/@shopify/flash-list/package.json ++++ b/node_modules/@shopify/flash-list/package.json +@@ -25,6 +25,7 @@ + "author": "shopify", + "license": "MIT", + "homepage": "https://shopify.github.io/flash-list/", ++ "react-native": "src/index.ts", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { +@@ -64,7 +65,7 @@ + "@react-native-community/eslint-config": "^3.0.3", + "@shopify/eslint-plugin": "^41.3.1", + "@types/jest": "^28.1.3", +- "@types/react-native": "0.72.2", ++ "@types/react-native": "^0.72.2", + "babel-jest": "^28.1.1", + "enhanced-resolve": "^5.9.3", + "eslint": "8.18.0", +@@ -74,7 +75,7 @@ + "prettier": "^2.7.1", + "react": "17.0.2", + "react-native": "0.68.5", +- "typescript": "^4.7.4" ++ "typescript": "4.8.4" + }, + "files": [ + "android", +@@ -87,5 +88,10 @@ + "dependencies": { + "recyclerlistview": "4.2.0", + "tslib": "2.4.0" ++ }, ++ "codegenConfig": { ++ "name": "rnflashlist", ++ "type": "components", ++ "jsSrcsDir": "./src/fabric" + } + } +diff --git a/node_modules/@shopify/flash-list/src/FlashList.tsx b/node_modules/@shopify/flash-list/src/FlashList.tsx +index 64748fe..87dea16 100644 +--- a/node_modules/@shopify/flash-list/src/FlashList.tsx ++++ b/node_modules/@shopify/flash-list/src/FlashList.tsx +@@ -827,6 +827,12 @@ class FlashList extends React.PureComponent< + return this.rlvRef?.getScrollableNode?.() || null; + } + ++ public getNativeScrollRef(): number | null { ++ // eslint-disable-next-line @typescript-eslint/ban-ts-comment ++ // @ts-ignore ++ return this.rlvRef?.getNativeScrollRef?.() || null; ++ } ++ + /** + * Allows access to internal recyclerlistview. This is useful for enabling access to its public APIs. + * Warning: We may swap recyclerlistview for something else in the future. Use with caution. +diff --git a/node_modules/@shopify/flash-list/src/fabric/AutoLayoutNativeComponent.ts b/node_modules/@shopify/flash-list/src/fabric/AutoLayoutNativeComponent.ts +new file mode 100644 +index 0000000..93750de +--- /dev/null ++++ b/node_modules/@shopify/flash-list/src/fabric/AutoLayoutNativeComponent.ts +@@ -0,0 +1,24 @@ ++import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent"; ++import type { ViewProps } from "react-native"; ++import type { ++ Int32, ++ Double, ++ DirectEventHandler, ++} from "react-native/Libraries/Types/CodegenTypes"; ++ ++type BlankAreaEvent = Readonly<{ ++ offsetStart: Int32; ++ offsetEnd: Int32; ++}>; ++ ++interface NativeProps extends ViewProps { ++ horizontal?: boolean; ++ scrollOffset?: Double; ++ windowSize?: Double; ++ renderAheadOffset?: Double; ++ enableInstrumentation?: boolean; ++ disableAutoLayout?: boolean; ++ onBlankAreaEvent?: DirectEventHandler; ++} ++ ++export default codegenNativeComponent("AutoLayoutView"); +diff --git a/node_modules/@shopify/flash-list/src/fabric/CellContainerNativeComponent.ts b/node_modules/@shopify/flash-list/src/fabric/CellContainerNativeComponent.ts +new file mode 100644 +index 0000000..dd284ac +--- /dev/null ++++ b/node_modules/@shopify/flash-list/src/fabric/CellContainerNativeComponent.ts +@@ -0,0 +1,9 @@ ++import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent"; ++import type { Int32 } from "react-native/Libraries/Types/CodegenTypes"; ++import type { ViewProps } from "react-native"; ++ ++interface NativeProps extends ViewProps { ++ index?: Int32; ++} ++ ++export default codegenNativeComponent("CellContainer"); diff --git a/patches/@ua+react-native-airship+15.3.1.patch b/patches/@ua+react-native-airship+15.3.1.patch new file mode 100644 index 000000000000..1ab11c1f7444 --- /dev/null +++ b/patches/@ua+react-native-airship+15.3.1.patch @@ -0,0 +1,24 @@ +diff --git a/node_modules/@ua/react-native-airship/react-native-airship.podspec b/node_modules/@ua/react-native-airship/react-native-airship.podspec +index 5e0ce2d..4456f61 100644 +--- a/node_modules/@ua/react-native-airship/react-native-airship.podspec ++++ b/node_modules/@ua/react-native-airship/react-native-airship.podspec +@@ -20,18 +20,7 @@ Pod::Spec.new do |s| + + # Don't install the dependencies when we run `pod install` in the old architecture. + if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then +- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" +- s.pod_target_xcconfig = { +- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", +- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", +- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" +- } +- s.dependency "React-Codegen" +- s.dependency "React-RCTFabric" +- s.dependency "RCT-Folly" +- s.dependency "RCTRequired" +- s.dependency "RCTTypeSafety" +- s.dependency "ReactCommon/turbomodule/core" ++ install_modules_dependencies(s) + end + + diff --git a/patches/expo-modules-core+1.11.8.patch b/patches/expo-modules-core+1.11.8+001+initial.patch similarity index 100% rename from patches/expo-modules-core+1.11.8.patch rename to patches/expo-modules-core+1.11.8+001+initial.patch diff --git a/patches/expo-modules-core+1.11.8+002+disableViewRecycling.patch b/patches/expo-modules-core+1.11.8+002+disableViewRecycling.patch new file mode 100644 index 000000000000..4546e6cd6244 --- /dev/null +++ b/patches/expo-modules-core+1.11.8+002+disableViewRecycling.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/expo-modules-core/ios/Fabric/ExpoFabricViewObjC.mm b/node_modules/expo-modules-core/ios/Fabric/ExpoFabricViewObjC.mm +index 96bba7d..6e0b439 100644 +--- a/node_modules/expo-modules-core/ios/Fabric/ExpoFabricViewObjC.mm ++++ b/node_modules/expo-modules-core/ios/Fabric/ExpoFabricViewObjC.mm +@@ -155,6 +155,11 @@ - (void)updateProps:(const facebook::react::Props::Shared &)props oldProps:(cons + [self viewDidUpdateProps]; + } + +++ (BOOL)shouldBeRecycled ++{ ++ return NO; ++} ++ + - (void)updateEventEmitter:(const react::EventEmitter::Shared &)eventEmitter + { + [super updateEventEmitter:eventEmitter]; diff --git a/patches/lottie-react-native+6.5.1.patch b/patches/lottie-react-native+6.5.1.patch new file mode 100644 index 000000000000..ada142440749 --- /dev/null +++ b/patches/lottie-react-native+6.5.1.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/lottie-react-native/ios/Fabric/LottieAnimationViewComponentView.mm b/node_modules/lottie-react-native/ios/Fabric/LottieAnimationViewComponentView.mm +index a4be628..d8f304e 100644 +--- a/node_modules/lottie-react-native/ios/Fabric/LottieAnimationViewComponentView.mm ++++ b/node_modules/lottie-react-native/ios/Fabric/LottieAnimationViewComponentView.mm +@@ -40,6 +40,11 @@ - (instancetype) initWithFrame:(CGRect)frame + + #pragma mark - RCTComponentViewProtocol + +++ (BOOL)shouldBeRecycled ++{ ++ return NO; ++} ++ + + (ComponentDescriptorProvider)componentDescriptorProvider + { + return concreteComponentDescriptorProvider(); diff --git a/patches/react-native+0.73.2+001+initial.patch b/patches/react-native+0.73.4+001+initial.patch similarity index 100% rename from patches/react-native+0.73.2+001+initial.patch rename to patches/react-native+0.73.4+001+initial.patch diff --git a/patches/react-native+0.73.4+002+SuspenseFix.patch b/patches/react-native+0.73.4+002+SuspenseFix.patch new file mode 100644 index 000000000000..75fc57929a00 --- /dev/null +++ b/patches/react-native+0.73.4+002+SuspenseFix.patch @@ -0,0 +1,74 @@ +diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +index 1c5266e..d072621 100644 +--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js ++++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +@@ -20554,20 +20554,20 @@ function finishConcurrentRender(root, exitStatus, lanes) { + + var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. + +- if (_msUntilTimeout > 10) { +- // Instead of committing the fallback immediately, wait for more data +- // to arrive. +- root.timeoutHandle = scheduleTimeout( +- commitRoot.bind( +- null, +- root, +- workInProgressRootRecoverableErrors, +- workInProgressTransitions +- ), +- _msUntilTimeout +- ); +- break; +- } ++ // if (_msUntilTimeout > 10) { ++ // // Instead of committing the fallback immediately, wait for more data ++ // // to arrive. ++ // root.timeoutHandle = scheduleTimeout( ++ // commitRoot.bind( ++ // null, ++ // root, ++ // workInProgressRootRecoverableErrors, ++ // workInProgressTransitions ++ // ), ++ // _msUntilTimeout ++ // ); ++ // break; ++ // } + } // Commit the placeholder. + + commitRoot( +diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +index b85648d..8adba02 100644 +--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js ++++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +@@ -6702,18 +6702,18 @@ function performConcurrentWorkOnRoot(root, didTimeout) { + : 4320 > lanes + ? 4320 + : 1960 * ceil(lanes / 1960)) - lanes; +- if (10 < lanes) { +- root.timeoutHandle = scheduleTimeout( +- commitRoot.bind( +- null, +- root, +- workInProgressRootRecoverableErrors, +- workInProgressTransitions +- ), +- lanes +- ); +- break; +- } ++ // if (10 < lanes) { ++ // root.timeoutHandle = scheduleTimeout( ++ // commitRoot.bind( ++ // null, ++ // root, ++ // workInProgressRootRecoverableErrors, ++ // workInProgressTransitions ++ // ), ++ // lanes ++ // ); ++ // break; ++ // } + commitRoot( + root, + workInProgressRootRecoverableErrors, diff --git a/patches/react-native+0.73.4+003+iOSFontResolution.patch b/patches/react-native+0.73.4+003+iOSFontResolution.patch new file mode 100644 index 000000000000..99abb9481d20 --- /dev/null +++ b/patches/react-native+0.73.4+003+iOSFontResolution.patch @@ -0,0 +1,57 @@ +diff --git a/node_modules/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm b/node_modules/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +index 4f8d5aa..18171a6 100644 +--- a/node_modules/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm ++++ b/node_modules/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +@@ -35,9 +35,6 @@ static RCTFontProperties RCTResolveFontProperties( + { + fontProperties.family = fontProperties.family.length ? fontProperties.family : baseFontProperties.family; + fontProperties.size = !isnan(fontProperties.size) ? fontProperties.size : baseFontProperties.size; +- fontProperties.weight = !isnan(fontProperties.weight) ? fontProperties.weight : baseFontProperties.weight; +- fontProperties.style = +- fontProperties.style != RCTFontStyleUndefined ? fontProperties.style : baseFontProperties.style; + fontProperties.variant = + fontProperties.variant != RCTFontVariantUndefined ? fontProperties.variant : baseFontProperties.variant; + return fontProperties; +@@ -116,9 +113,14 @@ static RCTFontStyle RCTGetFontStyle(UIFont *font) + if ([fontProperties.family isEqualToString:defaultFontProperties.family]) { + // Handle system font as special case. This ensures that we preserve + // the specific metrics of the standard system font as closely as possible. ++ fontProperties.weight = !isnan(fontProperties.weight) ? fontProperties.weight : defaultFontProperties.weight; ++ fontProperties.style = ++ fontProperties.style != RCTFontStyleUndefined ? fontProperties.style : defaultFontProperties.style; + font = RCTDefaultFontWithFontProperties(fontProperties); + } else { + NSArray *fontNames = [UIFont fontNamesForFamilyName:fontProperties.family]; ++ UIFontWeight fontWeight = fontProperties.weight; ++ RCTFontStyle fontStyle = fontProperties.style; + + if (fontNames.count == 0) { + // Gracefully handle being given a font name rather than font family, for +@@ -129,18 +131,24 @@ static RCTFontStyle RCTGetFontStyle(UIFont *font) + // Failback to system font. + font = [UIFont systemFontOfSize:effectiveFontSize weight:fontProperties.weight]; + } +- } else { ++ ++ fontNames = [UIFont fontNamesForFamilyName:font.familyName]; ++ fontWeight = isnan(fontWeight) ? RCTGetFontWeight(font) : fontWeight; ++ fontStyle = fontStyle == RCTFontStyleUndefined ? RCTGetFontStyle(font) : fontStyle; ++ } ++ ++ if (fontNames.count != 0) { + // Get the closest font that matches the given weight for the fontFamily + CGFloat closestWeight = INFINITY; + for (NSString *name in fontNames) { + UIFont *fontMatch = [UIFont fontWithName:name size:effectiveFontSize]; + +- if (RCTGetFontStyle(fontMatch) != fontProperties.style) { ++ if (RCTGetFontStyle(fontMatch) != fontStyle) { + continue; + } + + CGFloat testWeight = RCTGetFontWeight(fontMatch); +- if (ABS(testWeight - fontProperties.weight) < ABS(closestWeight - fontProperties.weight)) { ++ if (ABS(testWeight - fontWeight) < ABS(closestWeight - fontWeight)) { + font = fontMatch; + closestWeight = testWeight; + } diff --git a/patches/react-native+0.73.4+004+AndroidModalSize.patch b/patches/react-native+0.73.4+004+AndroidModalSize.patch new file mode 100644 index 000000000000..d7adf15f790d --- /dev/null +++ b/patches/react-native+0.73.4+004+AndroidModalSize.patch @@ -0,0 +1,142 @@ +diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostHelper.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostHelper.java +deleted file mode 100644 +index 3a226c0..0000000 +--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostHelper.java ++++ /dev/null +@@ -1,63 +0,0 @@ +-/* +- * Copyright (c) Meta Platforms, Inc. and affiliates. +- * +- * This source code is licensed under the MIT license found in the +- * LICENSE file in the root directory of this source tree. +- */ +- +-package com.facebook.react.views.modal; +- +-import android.content.Context; +-import android.content.res.Resources; +-import android.content.res.TypedArray; +-import android.graphics.Point; +-import android.view.Display; +-import android.view.WindowManager; +-import com.facebook.infer.annotation.Assertions; +- +-/** Helper class for Modals. */ +-/*package*/ class ModalHostHelper { +- +- private static final Point MIN_POINT = new Point(); +- private static final Point MAX_POINT = new Point(); +- private static final Point SIZE_POINT = new Point(); +- +- /** +- * To get the size of the screen, we use information from the WindowManager and default Display. +- * We don't use DisplayMetricsHolder, or Display#getSize() because they return values that include +- * the status bar. We only want the values of what will actually be shown on screen. We use +- * Display#getSize() to determine if the screen is in portrait or landscape. We don't use +- * getRotation because the 'natural' rotation will be portrait on phones and landscape on tablets. +- * This should only be called on the native modules/shadow nodes thread. +- */ +- public static Point getModalHostSize(Context context) { +- WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); +- Display display = Assertions.assertNotNull(wm).getDefaultDisplay(); +- // getCurrentSizeRange will return the min and max width and height that the window can be +- display.getCurrentSizeRange(MIN_POINT, MAX_POINT); +- // getSize will return the dimensions of the screen in its current orientation +- display.getSize(SIZE_POINT); +- +- int[] attrs = {android.R.attr.windowFullscreen}; +- Resources.Theme theme = context.getTheme(); +- TypedArray ta = theme.obtainStyledAttributes(attrs); +- boolean windowFullscreen = ta.getBoolean(0, false); +- +- // We need to add the status bar height to the height if we have a fullscreen window, +- // because Display.getCurrentSizeRange doesn't include it. +- Resources resources = context.getResources(); +- int statusBarId = resources.getIdentifier("status_bar_height", "dimen", "android"); +- int statusBarHeight = 0; +- if (windowFullscreen && statusBarId > 0) { +- statusBarHeight = (int) resources.getDimension(statusBarId); +- } +- +- if (SIZE_POINT.x < SIZE_POINT.y) { +- // If we are vertical the width value comes from min width and height comes from max height +- return new Point(MIN_POINT.x, MAX_POINT.y + statusBarHeight); +- } else { +- // If we are horizontal the width value comes from max width and height comes from min height +- return new Point(MAX_POINT.x, MIN_POINT.y + statusBarHeight); +- } +- } +-} +diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java +deleted file mode 100644 +index 7288fe0..0000000 +--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java ++++ /dev/null +@@ -1,37 +0,0 @@ +-/* +- * Copyright (c) Meta Platforms, Inc. and affiliates. +- * +- * This source code is licensed under the MIT license found in the +- * LICENSE file in the root directory of this source tree. +- */ +- +-package com.facebook.react.views.modal; +- +-import android.graphics.Point; +-import com.facebook.react.uimanager.LayoutShadowNode; +-import com.facebook.react.uimanager.ReactShadowNodeImpl; +- +-/** +- * We implement the Modal by using an Android Dialog. That will fill the entire window of the +- * application. To get layout to work properly, we need to layout all the elements within the +- * Modal's inner content view as if they can fill the entire window. To do that, we need to +- * explicitly set the styleWidth and styleHeight on the LayoutShadowNode of the child of this node +- * to be the window size. This will then cause the children of the Modal to layout as if they can +- * fill the window. +- */ +-class ModalHostShadowNode extends LayoutShadowNode { +- +- public ModalHostShadowNode() {} +- +- /** +- * We need to set the styleWidth and styleHeight of the one child (represented by the +- * within the in Modal.js. This needs to fill the entire window. +- */ +- @Override +- public void addChildAt(ReactShadowNodeImpl child, int i) { +- super.addChildAt(child, i); +- Point modalSize = ModalHostHelper.getModalHostSize(getThemedContext()); +- child.setStyleWidth(modalSize.x); +- child.setStyleHeight(modalSize.y); +- } +-} +diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +index 74c6b8e..0d447e5 100644 +--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java ++++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +@@ -50,16 +50,6 @@ public class ReactModalHostManager extends ViewGroupManager + return new ReactModalHostView(reactContext); + } + +- @Override +- public LayoutShadowNode createShadowNodeInstance() { +- return new ModalHostShadowNode(); +- } +- +- @Override +- public Class getShadowNodeClass() { +- return ModalHostShadowNode.class; +- } +- + @Override + public void onDropViewInstance(ReactModalHostView view) { + super.onDropViewInstance(view); +@@ -168,8 +158,6 @@ public class ReactModalHostManager extends ViewGroupManager + public Object updateState( + ReactModalHostView view, ReactStylesDiffMap props, StateWrapper stateWrapper) { + view.setStateWrapper(stateWrapper); +- Point modalSize = ModalHostHelper.getModalHostSize(view.getContext()); +- view.updateState(modalSize.x, modalSize.y); + return null; + } + diff --git a/patches/react-native+0.73.4+005+TextInputs.patch b/patches/react-native+0.73.4+005+TextInputs.patch new file mode 100644 index 000000000000..a7ba5ae3b9dd --- /dev/null +++ b/patches/react-native+0.73.4+005+TextInputs.patch @@ -0,0 +1,61 @@ +diff --git a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +index e7b69bf..9f691c9 100644 +--- a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm ++++ b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +@@ -115,6 +115,10 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared & + [self _setMultiline:newTextInputProps.traits.multiline]; + } + ++ if (newTextInputProps.traits.showSoftInputOnFocus != oldTextInputProps.traits.showSoftInputOnFocus) { ++ [self _setShowSoftInputOnFocus:newTextInputProps.traits.showSoftInputOnFocus]; ++ } ++ + if (newTextInputProps.traits.autocapitalizationType != oldTextInputProps.traits.autocapitalizationType) { + _backedTextInputView.autocapitalizationType = + RCTUITextAutocapitalizationTypeFromAutocapitalizationType(newTextInputProps.traits.autocapitalizationType); +@@ -618,6 +622,25 @@ - (void)_setMultiline:(BOOL)multiline + RCTCopyBackedTextInput(_backedTextInputView, backedTextInputView); + _backedTextInputView = backedTextInputView; + [self addSubview:_backedTextInputView]; ++ ++ auto const ¤tTextInputProps = *std::static_pointer_cast(_props); ++ [self _setShowSoftInputOnFocus:currentTextInputProps.traits.showSoftInputOnFocus]; ++} ++ ++- (void)_setShowSoftInputOnFocus:(BOOL)showSoftInputOnFocus ++{ ++ if (showSoftInputOnFocus) { ++ // Resets to default keyboard. ++ _backedTextInputView.inputView = nil; ++ ++ // Without the call to reloadInputViews, the keyboard will not change until the textInput field (the first // responder) loses and regains focus. ++ if (_backedTextInputView.isFirstResponder) { ++ [_backedTextInputView reloadInputViews]; ++ } ++ } else { ++ // Hides keyboard, but keeps blinking cursor. ++ _backedTextInputView.inputView = [UIView new]; ++ } + } + + - (BOOL)_textOf:(NSAttributedString *)newText equals:(NSAttributedString *)oldText +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp +index 0c9cc69..fee423f 100644 +--- a/node_modules/react-native/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp +@@ -159,15 +159,6 @@ void AndroidTextInputShadowNode::updateStateIfNeeded() { + Size AndroidTextInputShadowNode::measureContent( + const LayoutContext& /*layoutContext*/, + const LayoutConstraints& layoutConstraints) const { +- if (getStateData().cachedAttributedStringId != 0) { +- return textLayoutManager_ +- ->measureCachedSpannableById( +- getStateData().cachedAttributedStringId, +- getConcreteProps().paragraphAttributes, +- layoutConstraints) +- .size; +- } +- + // Layout is called right after measure. + // Measure is marked as `const`, and `layout` is not; so State can be updated + // during layout, but not during `measure`. If State is out-of-date in layout, diff --git a/patches/react-native+0.73.4+006+Codegen.patch b/patches/react-native+0.73.4+006+Codegen.patch new file mode 100644 index 000000000000..076faa497825 --- /dev/null +++ b/patches/react-native+0.73.4+006+Codegen.patch @@ -0,0 +1,21 @@ +diff --git a/node_modules/react-native/scripts/cocoapods/new_architecture.rb b/node_modules/react-native/scripts/cocoapods/new_architecture.rb +index ba75b01..e5eaee8 100644 +--- a/node_modules/react-native/scripts/cocoapods/new_architecture.rb ++++ b/node_modules/react-native/scripts/cocoapods/new_architecture.rb +@@ -103,6 +103,7 @@ class NewArchitectureHelper + compiler_flags = hash["compiler_flags"] ? hash["compiler_flags"] : "" + current_config = hash["pod_target_xcconfig"] != nil ? hash["pod_target_xcconfig"] : {} + current_headers = current_config["HEADER_SEARCH_PATHS"] != nil ? current_config["HEADER_SEARCH_PATHS"] : "" ++ current_cpp_flags = current_config["OTHER_CPLUSPLUSFLAGS"] != nil ? current_config["OTHER_CPLUSPLUSFLAGS"] : "" + + header_search_paths = ["\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/Headers/Private/Yoga\""] + if ENV['USE_FRAMEWORKS'] +@@ -135,7 +136,7 @@ class NewArchitectureHelper + spec.dependency "glog" + + if new_arch_enabled +- current_config["OTHER_CPLUSPLUSFLAGS"] = @@new_arch_cpp_flags ++ current_config["OTHER_CPLUSPLUSFLAGS"] = current_cpp_flags.empty? ? @@new_arch_cpp_flags : "#{current_cpp_flags} #{@@new_arch_cpp_flags}" + spec.dependency "React-RCTFabric" # This is for Fabric Component + spec.dependency "React-Codegen" + diff --git a/patches/react-native+0.73.4+007+disableTextInputRecycling.patch b/patches/react-native+0.73.4+007+disableTextInputRecycling.patch new file mode 100644 index 000000000000..683bc91c43ca --- /dev/null +++ b/patches/react-native+0.73.4+007+disableTextInputRecycling.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +index 9f691c9..7ce04da 100644 +--- a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm ++++ b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +@@ -100,6 +100,11 @@ - (NSObject *)accessibilityElement + + #pragma mark - RCTComponentViewProtocol + +++ (BOOL)shouldBeRecycled ++{ ++ return NO; ++} ++ + + (ComponentDescriptorProvider)componentDescriptorProvider + { + return concreteComponentDescriptorProvider(); diff --git a/patches/react-native+0.73.4+008+checkForHashMap.patch b/patches/react-native+0.73.4+008+checkForHashMap.patch new file mode 100644 index 000000000000..e0a73c6325f1 --- /dev/null +++ b/patches/react-native+0.73.4+008+checkForHashMap.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java +index 6d07704..88dd74e 100644 +--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java ++++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java +@@ -204,6 +204,11 @@ import java.util.Set; + } + } + } ++ // When providing one event in Kotlin, it will create a SingletonMap by default ++ // which will throw on trying to add new element to it ++ if (!(events instanceof HashMap)) { ++ events = new HashMap(events); ++ } + for (String oldKey : keysToNormalize) { + Object value = events.get(oldKey); + String baseKey = ""; diff --git a/patches/react-native+0.73.4+009+properEventDispatchOrder.patch b/patches/react-native+0.73.4+009+properEventDispatchOrder.patch new file mode 100644 index 000000000000..894aa416bc71 --- /dev/null +++ b/patches/react-native+0.73.4+009+properEventDispatchOrder.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java +index 4c3387b..284720f 100644 +--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java ++++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java +@@ -38,10 +38,10 @@ public class FabricEventDispatcher implements EventDispatcher, LifecycleEventLis + + @Override + public void dispatchEvent(Event event) { +- event.dispatchModern(mReactEventEmitter); + for (EventDispatcherListener listener : mListeners) { + listener.onEventDispatch(event); + } ++ event.dispatchModern(mReactEventEmitter); + + event.dispose(); + maybePostFrameCallbackFromNonUI(); diff --git a/patches/react-native+0.73.4+010+resetAutoresizingOnView.patch b/patches/react-native+0.73.4+010+resetAutoresizingOnView.patch new file mode 100644 index 000000000000..871d06d91980 --- /dev/null +++ b/patches/react-native+0.73.4+010+resetAutoresizingOnView.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +index d06b0aa..9fe35a8 100644 +--- a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm ++++ b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +@@ -445,6 +445,8 @@ - (void)prepareForRecycle + self.layer.opacity = (float)props.opacity; + } + ++ self.autoresizingMask = UIViewAutoresizingNone; ++ + _propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN = nil; + _eventEmitter.reset(); + _isJSResponder = NO; diff --git a/patches/react-native+0.73.4+011+optionalViewRecycling.patch b/patches/react-native+0.73.4+011+optionalViewRecycling.patch new file mode 100644 index 000000000000..14a20de2ae1c --- /dev/null +++ b/patches/react-native+0.73.4+011+optionalViewRecycling.patch @@ -0,0 +1,62 @@ +diff --git a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +index b03a464..a2788a9 100644 +--- a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h ++++ b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +@@ -27,6 +27,11 @@ class RCTComponentViewClassDescriptor final { + */ + bool observesMountingTransactionWillMount{false}; + bool observesMountingTransactionDidMount{false}; ++ ++ /* ++ * Whether the component can be recycled or not ++ */ ++ bool shouldBeRecycled{true}; + }; + + NS_ASSUME_NONNULL_END +diff --git a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewDescriptor.h b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewDescriptor.h +index 3ca65d1..fd1c4b9 100644 +--- a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewDescriptor.h ++++ b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewDescriptor.h +@@ -29,6 +29,7 @@ class RCTComponentViewDescriptor final { + */ + bool observesMountingTransactionWillMount{false}; + bool observesMountingTransactionDidMount{false}; ++ bool shouldBeRecycled{true}; + }; + + inline bool operator==(const RCTComponentViewDescriptor &lhs, const RCTComponentViewDescriptor &rhs) +diff --git a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm +index 0b15d71..9bf4f2d 100644 +--- a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm ++++ b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewFactory.mm +@@ -95,6 +95,8 @@ - (RCTComponentViewClassDescriptor)_componentViewClassDescriptorFromClass:(Class + (bool)class_respondsToSelector(viewClass, @selector(mountingTransactionWillMount:withSurfaceTelemetry:)), + .observesMountingTransactionDidMount = + (bool)class_respondsToSelector(viewClass, @selector(mountingTransactionDidMount:withSurfaceTelemetry:)), ++ .shouldBeRecycled = ++ [viewClass respondsToSelector:@selector(shouldBeRecycled)] ? (bool)[viewClass performSelector:@selector(shouldBeRecycled)] : true, + }; + #pragma clang diagnostic pop + } +@@ -210,6 +212,7 @@ - (RCTComponentViewDescriptor)createComponentViewWithComponentHandle:(facebook:: + .view = [viewClass new], + .observesMountingTransactionWillMount = componentViewClassDescriptor.observesMountingTransactionWillMount, + .observesMountingTransactionDidMount = componentViewClassDescriptor.observesMountingTransactionDidMount, ++ .shouldBeRecycled = componentViewClassDescriptor.shouldBeRecycled, + }; + } + +diff --git a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewRegistry.mm b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewRegistry.mm +index e78e8ae..74ebc31 100644 +--- a/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewRegistry.mm ++++ b/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewRegistry.mm +@@ -107,7 +107,7 @@ - (void)_enqueueComponentViewWithComponentHandle:(ComponentHandle)componentHandl + RCTAssertMainQueue(); + auto &recycledViews = _recyclePool[componentHandle]; + +- if (recycledViews.size() > RCTComponentViewRegistryRecyclePoolMaxSize) { ++ if (recycledViews.size() > RCTComponentViewRegistryRecyclePoolMaxSize || !componentViewDescriptor.shouldBeRecycled) { + return; + } + diff --git a/patches/react-native+0.73.4+012+disableNonTranslucentStatusBar.patch b/patches/react-native+0.73.4+012+disableNonTranslucentStatusBar.patch new file mode 100644 index 000000000000..fedfe544f353 --- /dev/null +++ b/patches/react-native+0.73.4+012+disableNonTranslucentStatusBar.patch @@ -0,0 +1,14 @@ +diff --git a/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js b/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js +index 2ac3d1f..5a400bf 100644 +--- a/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js ++++ b/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js +@@ -479,8 +479,7 @@ class StatusBar extends React.Component { + } + // Activities are not translucent by default, so always set if true. + if ( +- !oldProps || +- oldProps.translucent !== mergedProps.translucent || ++ (oldProps && oldProps.translucent !== mergedProps.translucent) || + mergedProps.translucent + ) { + NativeStatusBarManagerAndroid.setTranslucent(mergedProps.translucent); diff --git a/patches/react-native+0.73.4+013+exposePrefabs.patch b/patches/react-native+0.73.4+013+exposePrefabs.patch new file mode 100644 index 000000000000..001a2dec9894 --- /dev/null +++ b/patches/react-native+0.73.4+013+exposePrefabs.patch @@ -0,0 +1,95 @@ +diff --git a/node_modules/react-native/ReactAndroid/build.gradle b/node_modules/react-native/ReactAndroid/build.gradle +index 78c57eb..ec147fd 100644 +--- a/node_modules/react-native/ReactAndroid/build.gradle ++++ b/node_modules/react-native/ReactAndroid/build.gradle +@@ -125,6 +125,19 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa + "rrc_root", + new Pair("../ReactCommon/react/renderer/components/root/", "react/renderer/components/root/") + ), ++ new PrefabPreprocessingEntry( ++ "rrc_text", ++ [ ++ new Pair("../ReactCommon/react/renderer/components/text/", "react/renderer/components/text/"), ++ new Pair("../ReactCommon/react/renderer/attributedstring", "react/renderer/attributedstring"), ++ ] ++ ), ++ new PrefabPreprocessingEntry( ++ "rrc_textinput", ++ [ ++ new Pair("../ReactCommon/react/renderer/components/textinput/androidtextinput", ""), ++ ] ++ ), + new PrefabPreprocessingEntry( + "rrc_view", + [ +@@ -132,6 +145,13 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa + new Pair("../ReactCommon/react/renderer/components/view/platform/android/", ""), + ] + ), ++ new PrefabPreprocessingEntry( ++ "react_render_textlayoutmanager", ++ [ ++ new Pair("../ReactCommon/react/renderer/textlayoutmanager/", "react/renderer/textlayoutmanager/"), ++ new Pair("../ReactCommon/react/renderer/textlayoutmanager/platform/android/", ""), ++ ] ++ ), + new PrefabPreprocessingEntry( + "rrc_legacyviewmanagerinterop", + new Pair("../ReactCommon/react/renderer/components/legacyviewmanagerinterop/", "react/renderer/components/legacyviewmanagerinterop/") +@@ -559,6 +579,9 @@ android { + "glog", + "fabricjni", + "react_render_mapbuffer", ++ "react_render_textlayoutmanager", ++ "rrc_textinput", ++ "rrc_text", + "yoga", + "folly_runtime", + "react_nativemodule_core", +@@ -683,6 +706,15 @@ android { + rrc_root { + headers(new File(prefabHeadersDir, "rrc_root").absolutePath) + } ++ rrc_text { ++ headers(new File(prefabHeadersDir, "rrc_text").absolutePath) ++ } ++ rrc_textinput { ++ headers(new File(prefabHeadersDir, "rrc_textinput").absolutePath) ++ } ++ react_render_textlayoutmanager { ++ headers(new File(prefabHeadersDir, "react_render_textlayoutmanager").absolutePath) ++ } + rrc_view { + headers(new File(prefabHeadersDir, "rrc_view").absolutePath) + } +diff --git a/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake b/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake +index d49fa9e..3607c69 100644 +--- a/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake ++++ b/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake +@@ -78,11 +78,14 @@ add_library(jsi ALIAS ReactAndroid::jsi) + add_library(glog ALIAS ReactAndroid::glog) + add_library(fabricjni ALIAS ReactAndroid::fabricjni) + add_library(react_render_mapbuffer ALIAS ReactAndroid::react_render_mapbuffer) ++add_library(react_render_textlayoutmanager ALIAS ReactAndroid::react_render_textlayoutmanager) + add_library(yoga ALIAS ReactAndroid::yoga) + add_library(folly_runtime ALIAS ReactAndroid::folly_runtime) + add_library(react_nativemodule_core ALIAS ReactAndroid::react_nativemodule_core) + add_library(react_render_imagemanager ALIAS ReactAndroid::react_render_imagemanager) + add_library(rrc_image ALIAS ReactAndroid::rrc_image) ++add_library(rrc_text ALIAS ReactAndroid::rrc_text) ++add_library(rrc_textinput ALIAS ReactAndroid::rrc_textinput) + add_library(rrc_legacyviewmanagerinterop ALIAS ReactAndroid::rrc_legacyviewmanagerinterop) + + find_package(fbjni REQUIRED CONFIG) +@@ -105,8 +108,11 @@ target_link_libraries(${CMAKE_PROJECT_NAME} + react_render_graphics # prefab ready + react_render_imagemanager # prefab ready + react_render_mapbuffer # prefab ready ++ react_render_textlayoutmanager # prefab ready + rrc_image # prefab ready + rrc_view # prefab ready ++ rrc_text # prefab ready ++ rrc_textinput # prefab ready + rrc_legacyviewmanagerinterop # prefab ready + runtimeexecutor # prefab ready + turbomodulejsijni # prefab ready diff --git a/patches/react-native-config+1.4.6.patch b/patches/react-native-config+1.4.6.patch deleted file mode 100644 index 880c723ddc37..000000000000 --- a/patches/react-native-config+1.4.6.patch +++ /dev/null @@ -1,44 +0,0 @@ -diff --git a/node_modules/react-native-config/android/dotenv.gradle b/node_modules/react-native-config/android/dotenv.gradle -index 2225375..48f94ca 100644 ---- a/node_modules/react-native-config/android/dotenv.gradle -+++ b/node_modules/react-native-config/android/dotenv.gradle -@@ -41,7 +41,8 @@ def loadDotEnv(flavor = getCurrentFlavor()) { - def env = [:] - println("Reading env from: $envFile") - -- File f = new File("$project.rootDir/../$envFile"); -+ def reactNativeProjectRoot = project.hasProperty('reactNativeProject') ? project.reactNativeProject : ".." -+ File f = new File("$project.rootDir/$reactNativeProjectRoot/$envFile"); - if (!f.exists()) { - f = new File("$envFile"); - } -diff --git a/node_modules/react-native-config/react-native-config.podspec b/node_modules/react-native-config/react-native-config.podspec -index 54985dd..c394ec7 100644 ---- a/node_modules/react-native-config/react-native-config.podspec -+++ b/node_modules/react-native-config/react-native-config.podspec -@@ -3,6 +3,7 @@ - require 'json' - - package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) -+REACT_NATIVE_DIR = ENV["REACT_NATIVE_DIR"] || ".." - - Pod::Spec.new do |s| - s.name = 'react-native-config' -@@ -21,7 +22,7 @@ Pod::Spec.new do |s| - name: 'Config codegen', - script: %( - set -ex --HOST_PATH="$SRCROOT/../.." -+HOST_PATH="$SRCROOT/../#{REACT_NATIVE_DIR}" - "${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig/BuildDotenvConfig.rb" "$HOST_PATH" "${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig" - ), - execution_position: :before_compile, -@@ -43,7 +44,7 @@ HOST_PATH="$SRCROOT/../.." - name: 'Config codegen', - script: %( - set -ex -- HOST_PATH="$SRCROOT/../.." -+ HOST_PATH="$SRCROOT/../#{REACT_NATIVE_DIR}" - "${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig/BuildDotenvConfig.rb" "$HOST_PATH" "${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig" - ), - execution_position: :before_compile, diff --git a/patches/react-native-config+1.5.0.patch b/patches/react-native-config+1.5.0.patch new file mode 100644 index 000000000000..4b5a597de4dd --- /dev/null +++ b/patches/react-native-config+1.5.0.patch @@ -0,0 +1,518 @@ +diff --git a/node_modules/react-native-config/README.md b/node_modules/react-native-config/README.md +index 8424402..ca29e39 100644 +--- a/node_modules/react-native-config/README.md ++++ b/node_modules/react-native-config/README.md +@@ -78,13 +78,13 @@ if cocoapods are used in the project then pod has to be installed as well: + **MainApplication.java** + + ```diff +- + import com.lugg.ReactNativeConfig.ReactNativeConfigPackage; ++ + import com.lugg.RNCConfig.RNCConfigPackage; + + @Override + protected List getPackages() { + return Arrays.asList( + new MainReactPackage() +- + new ReactNativeConfigPackage() ++ + new RNCConfigPackage() + ); + } + ``` +diff --git a/node_modules/react-native-config/android/build.gradle b/node_modules/react-native-config/android/build.gradle +index c8f7fd4..86b3e1a 100644 +--- a/node_modules/react-native-config/android/build.gradle ++++ b/node_modules/react-native-config/android/build.gradle +@@ -15,6 +15,55 @@ def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback + } + ++def resolveReactNativeDirectory() { ++ def reactNativeLocation = safeExtGet("REACT_NATIVE_NODE_MODULES_DIR", null) ++ if (reactNativeLocation != null) { ++ return file(reactNativeLocation) ++ } ++ ++ // monorepo workaround ++ // react-native can be hoisted or in project's own node_modules ++ def reactNativeFromProjectNodeModules = file("${rootProject.projectDir}/../node_modules/react-native") ++ if (reactNativeFromProjectNodeModules.exists()) { ++ return reactNativeFromProjectNodeModules ++ } ++ ++ def reactNativeFromNodeModulesWithRNCConfig = file("${projectDir}/../../react-native") ++ if (reactNativeFromNodeModulesWithRNCConfig.exists()) { ++ return reactNativeFromNodeModulesWithRNCConfig ++ } ++ ++ throw new Exception( ++ "[react-native-config] Unable to resolve react-native location in " + ++ "node_modules. You should add project extension property (in app/build.gradle) " + ++ "`REACT_NATIVE_NODE_MODULES_DIR` with path to react-native." ++ ) ++} ++ ++def getReactNativeMinorVersion() { ++ def REACT_NATIVE_DIR = resolveReactNativeDirectory() ++ ++ def reactProperties = new Properties() ++ file("$REACT_NATIVE_DIR/ReactAndroid/gradle.properties").withInputStream { reactProperties.load(it) } ++ ++ def REACT_NATIVE_VERSION = reactProperties.getProperty("VERSION_NAME") ++ def REACT_NATIVE_MINOR_VERSION = REACT_NATIVE_VERSION.startsWith("0.0.0-") ? 1000 : REACT_NATIVE_VERSION.split("\\.")[1].toInteger() ++ ++ return REACT_NATIVE_MINOR_VERSION ++} ++ ++def isNewArchitectureEnabled() { ++ // To opt-in for the New Architecture, you can either: ++ // - Set `newArchEnabled` to true inside the `gradle.properties` file ++ // - Invoke gradle with `-newArchEnabled=true` ++ // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` ++ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" ++} ++ ++if (isNewArchitectureEnabled()) { ++ apply plugin: "com.facebook.react" ++} ++ + android { + compileSdkVersion rootProject.ext.compileSdkVersion + +@@ -23,10 +72,23 @@ android { + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" ++ ++ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() + } + lintOptions { + abortOnError false + } ++ ++ sourceSets.main { ++ java { ++ if (!isNewArchitectureEnabled()) { ++ srcDirs += 'src/paper/java' ++ } else { ++ // This should be done by the RN gradle plugin, for some reason it sometimes doesn't work ++ srcDirs += 'build/generated/source/codegen/java' ++ } ++ } ++ } + } + + repositories { +@@ -34,5 +96,9 @@ repositories { + } + + dependencies { +- implementation "com.facebook.react:react-native:${safeExtGet("reactNative", "+")}" // from node_modules ++ if (isNewArchitectureEnabled() && getReactNativeMinorVersion() < 71) { ++ implementation project(":ReactAndroid") ++ } else { ++ implementation 'com.facebook.react:react-native:+' ++ } + } +diff --git a/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigModule.java b/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigModule.java +index 0b52515..bef2834 100644 +--- a/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigModule.java ++++ b/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigModule.java +@@ -13,20 +13,32 @@ import java.lang.reflect.Field; + import java.util.Map; + import java.util.HashMap; + +-public class RNCConfigModule extends ReactContextBaseJavaModule { ++public class RNCConfigModule extends NativeConfigModuleSpec { ++ public static final String NAME = "RNCConfigModule"; ++ + public RNCConfigModule(ReactApplicationContext reactContext) { + super(reactContext); + } + + @Override + public String getName() { +- return "RNCConfigModule"; ++ return NAME; + } + + @Override +- public Map getConstants() { ++ public Map getTypedExportedConstants() { + final Map constants = new HashMap<>(); + ++ // Codegen ensures that the constants defined in the module spec and in the native module implementation ++ // are consistent, which is tad problematic in this case, as the constants are dependant on the `.env` ++ // file. The simple workaround is to define a `constants` object that will contain actual constants. ++ // This way the types between JS and Native side remain consistent, while functionality stays the same. ++ // TL;DR: ++ // instead of exporting { constant1: "value1", constant2: "value2" } ++ // we export { constants: { constant1: "value1", constant2: "value2" } } ++ // because of type safety on the new arch ++ final Map realConstants = new HashMap<>(); ++ + try { + Context context = getReactApplicationContext(); + int resId = context.getResources().getIdentifier("build_config_package", "string", context.getPackageName()); +@@ -40,7 +52,7 @@ public class RNCConfigModule extends ReactContextBaseJavaModule { + Field[] fields = clazz.getDeclaredFields(); + for(Field f: fields) { + try { +- constants.put(f.getName(), f.get(null)); ++ realConstants.put(f.getName(), f.get(null)); + } + catch (IllegalAccessException e) { + Log.d("ReactNative", "ReactConfig: Could not access BuildConfig field " + f.getName()); +@@ -51,6 +63,8 @@ public class RNCConfigModule extends ReactContextBaseJavaModule { + Log.d("ReactNative", "ReactConfig: Could not find BuildConfig class"); + } + ++ constants.put("constants", realConstants); ++ + return constants; + } + } +diff --git a/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigPackage.java b/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigPackage.java +index 9251c09..2edd797 100644 +--- a/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigPackage.java ++++ b/node_modules/react-native-config/android/src/main/java/com/lugg/RNCConfig/RNCConfigPackage.java +@@ -1,29 +1,42 @@ + package com.lugg.RNCConfig; + +-import com.facebook.react.ReactPackage; +-import com.facebook.react.bridge.JavaScriptModule; ++import com.facebook.react.TurboReactPackage; + import com.facebook.react.bridge.NativeModule; + import com.facebook.react.bridge.ReactApplicationContext; +-import com.facebook.react.uimanager.ViewManager; ++import com.facebook.react.module.model.ReactModuleInfo; ++import com.facebook.react.module.model.ReactModuleInfoProvider; + +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; ++import java.util.HashMap; ++import java.util.Map; + +-public class RNCConfigPackage implements ReactPackage { +- @Override +- public List createNativeModules(ReactApplicationContext reactContext) { +- return Arrays.asList( +- new RNCConfigModule(reactContext) +- ); +- } ++public class RNCConfigPackage extends TurboReactPackage { + +- public List> createJSModules() { +- return Collections.emptyList(); ++ @Override ++ public NativeModule getModule(String name, ReactApplicationContext reactContext) { ++ if (name.equals(RNCConfigModule.NAME)) { ++ return new RNCConfigModule(reactContext); ++ } else { ++ return null; ++ } + } + + @Override +- public List createViewManagers(ReactApplicationContext reactContext) { +- return Collections.emptyList(); ++ public ReactModuleInfoProvider getReactModuleInfoProvider() { ++ return () -> { ++ final Map moduleInfos = new HashMap<>(); ++ boolean isTurboModule = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; ++ moduleInfos.put( ++ RNCConfigModule.NAME, ++ new ReactModuleInfo( ++ RNCConfigModule.NAME, ++ RNCConfigModule.NAME, ++ false, // canOverrideExistingModule ++ false, // needsEagerInit ++ true, // hasConstants ++ false, // isCxxModule ++ isTurboModule // isTurboModule ++ )); ++ return moduleInfos; ++ }; + } + } +diff --git a/node_modules/react-native-config/android/src/paper/java/com/lugg/RNCConfig/NativeConfigModuleSpec.java b/node_modules/react-native-config/android/src/paper/java/com/lugg/RNCConfig/NativeConfigModuleSpec.java +new file mode 100644 +index 0000000..7a65504 +--- /dev/null ++++ b/node_modules/react-native-config/android/src/paper/java/com/lugg/RNCConfig/NativeConfigModuleSpec.java +@@ -0,0 +1,58 @@ ++ ++/** ++ * 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: GenerateModuleJavaSpec.js ++ * ++ * @nolint ++ */ ++ ++package com.lugg.RNCConfig; ++ ++import com.facebook.proguard.annotations.DoNotStrip; ++import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.bridge.ReactContextBaseJavaModule; ++import com.facebook.react.bridge.ReactMethod; ++import com.facebook.react.bridge.ReactModuleWithSpec; ++import com.facebook.react.common.build.ReactBuildConfig; ++import com.facebook.react.turbomodule.core.interfaces.TurboModule; ++import java.util.Arrays; ++import java.util.HashSet; ++import java.util.Map; ++import java.util.Set; ++import javax.annotation.Nullable; ++ ++public abstract class NativeConfigModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule { ++ public NativeConfigModuleSpec(ReactApplicationContext reactContext) { ++ super(reactContext); ++ } ++ ++ protected abstract Map getTypedExportedConstants(); ++ ++ @Override ++ @DoNotStrip ++ public final @Nullable Map getConstants() { ++ Map constants = getTypedExportedConstants(); ++ if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) { ++ Set obligatoryFlowConstants = new HashSet<>(Arrays.asList( ++ "constants" ++ )); ++ Set optionalFlowConstants = new HashSet<>(); ++ Set undeclaredConstants = new HashSet<>(constants.keySet()); ++ undeclaredConstants.removeAll(obligatoryFlowConstants); ++ undeclaredConstants.removeAll(optionalFlowConstants); ++ if (!undeclaredConstants.isEmpty()) { ++ throw new IllegalStateException(String.format("Native Module Flow doesn't declare constants: %s", undeclaredConstants)); ++ } ++ undeclaredConstants = obligatoryFlowConstants; ++ undeclaredConstants.removeAll(constants.keySet()); ++ if (!undeclaredConstants.isEmpty()) { ++ throw new IllegalStateException(String.format("Native Module doesn't fill in constants: %s", undeclaredConstants)); ++ } ++ } ++ return constants; ++ } ++} +diff --git a/node_modules/react-native-config/codegen/NativeConfigModule.js b/node_modules/react-native-config/codegen/NativeConfigModule.js +new file mode 100644 +index 0000000..8cc9ac8 +--- /dev/null ++++ b/node_modules/react-native-config/codegen/NativeConfigModule.js +@@ -0,0 +1,11 @@ ++// @flow ++import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport'; ++import { TurboModuleRegistry } from 'react-native'; ++ ++export interface Spec extends TurboModule { ++ +getConstants: () => {| ++ constants: Object, ++ |}; ++} ++ ++export default (TurboModuleRegistry.get('RNCConfigModule'): ?Spec); +diff --git a/node_modules/react-native-config/index.js b/node_modules/react-native-config/index.js +index 70866c4..a8f3624 100644 +--- a/node_modules/react-native-config/index.js ++++ b/node_modules/react-native-config/index.js +@@ -1,9 +1,10 @@ + 'use strict'; + +-// Bridge to: +-// Android: buildConfigField vars set in build.gradle, and exported via ReactConfig +-// iOS: config vars set in xcconfig and exposed via RNCConfig.m +-import { NativeModules } from 'react-native'; ++import { NativeModules, Platform } from 'react-native'; ++ ++// new arch is not supported on Windows yet ++export const Config = Platform.OS === 'windows' ++ ? NativeModules.RNCConfigModule ++ : require('./codegen/NativeConfigModule').default.getConstants().constants; + +-export const Config = NativeModules.RNCConfigModule || {} + export default Config; +diff --git a/node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m b/node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m +index 04a2f3d..59df625 100644 +--- a/node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m ++++ b/node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m +@@ -1 +1 @@ +- #define DOT_ENV @{ }; ++ #define DOT_ENV @{ @"ENV":@"dev",@"API_URL":@"http://localhost" }; +diff --git a/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.h b/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.h +index 755d103..5341aca 100644 +--- a/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.h ++++ b/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.h +@@ -1,3 +1,9 @@ ++#ifdef RCT_NEW_ARCH_ENABLED ++#import "RNCConfigSpec.h" ++ ++@interface RNCConfigModule : NSObject ++#else ++ + #if __has_include() + #import + #elif __has_include("React/RCTBridgeModule.h") +@@ -7,6 +13,7 @@ + #endif + + @interface RNCConfigModule : NSObject ++#endif // RCT_NEW_ARCH_ENABLED + + + (NSDictionary *)env; + + (NSString *)envFor: (NSString *)key; +diff --git a/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.m b/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.m +deleted file mode 100644 +index 5365d4c..0000000 +--- a/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.m ++++ /dev/null +@@ -1,25 +0,0 @@ +-#import "RNCConfig.h" +-#import "RNCConfigModule.h" +- +-@implementation RNCConfigModule +- +-RCT_EXPORT_MODULE() +- +-+ (BOOL)requiresMainQueueSetup +-{ +- return YES; +-} +- +-+ (NSDictionary *)env { +- return RNCConfig.env; +-} +- +-+ (NSString *)envFor: (NSString *)key { +- return [RNCConfig envFor:key]; +-} +- +-- (NSDictionary *)constantsToExport { +- return RNCConfig.env; +-} +- +-@end +diff --git a/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.mm b/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.mm +new file mode 100644 +index 0000000..1cacb65 +--- /dev/null ++++ b/node_modules/react-native-config/ios/ReactNativeConfig/RNCConfigModule.mm +@@ -0,0 +1,37 @@ ++#import "RNCConfig.h" ++#import "RNCConfigModule.h" ++ ++@implementation RNCConfigModule ++ ++RCT_EXPORT_MODULE() ++ +++ (BOOL)requiresMainQueueSetup ++{ ++ return YES; ++} ++ +++ (NSDictionary *)env { ++ return RNCConfig.env; ++} ++ +++ (NSString *)envFor: (NSString *)key { ++ return [RNCConfig envFor:key]; ++} ++ ++- (NSDictionary *)constantsToExport { ++ return @{ @"constants": RNCConfig.env }; ++} ++ ++- (NSDictionary *)getConstants { ++ return self.constantsToExport; ++} ++ ++#ifdef RCT_NEW_ARCH_ENABLED ++- (std::shared_ptr)getTurboModule: ++ (const facebook::react::ObjCTurboModule::InitParams &)params ++{ ++ return std::make_shared(params); ++} ++#endif ++ ++@end +diff --git a/node_modules/react-native-config/package.json b/node_modules/react-native-config/package.json +index b4d1fba..0a018a7 100644 +--- a/node_modules/react-native-config/package.json ++++ b/node_modules/react-native-config/package.json +@@ -26,6 +26,7 @@ + "android/", + "ios/", + "windows/", ++ "codegen/", + "index.js", + "index.d.ts", + "react-native-config.podspec", +@@ -38,11 +39,21 @@ + "semantic-release": "^17.0.4" + }, + "peerDependencies": { ++ "react": "*", ++ "react-native": "*", + "react-native-windows": ">=0.61" + }, + "peerDependenciesMeta": { + "react-native-windows": { + "optional": true + } ++ }, ++ "codegenConfig": { ++ "name": "RNCConfigSpec", ++ "type": "modules", ++ "jsSrcsDir": "./codegen", ++ "android": { ++ "javaPackageName": "com.lugg.RNCConfig" ++ } + } + } +diff --git a/node_modules/react-native-config/react-native-config.podspec b/node_modules/react-native-config/react-native-config.podspec +index 35313d4..56bce4a 100644 +--- a/node_modules/react-native-config/react-native-config.podspec ++++ b/node_modules/react-native-config/react-native-config.podspec +@@ -4,6 +4,8 @@ require 'json' + + package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + ++fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' ++ + Pod::Spec.new do |s| + s.name = 'react-native-config' + s.version = package['version'] +@@ -33,8 +35,27 @@ HOST_PATH="$SRCROOT/../.." + s.default_subspec = 'App' + + s.subspec 'App' do |app| +- app.source_files = 'ios/**/*.{h,m}' +- app.dependency 'React-Core' ++ app.source_files = 'ios/**/*.{h,m,mm}' ++ ++ if fabric_enabled ++ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' ++ ++ app.pod_target_xcconfig = { ++ 'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/boost" "$(PODS_ROOT)/boost-for-react-native" "$(PODS_ROOT)/RCT-Folly"', ++ 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17', ++ } ++ app.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED' ++ ++ app.dependency "React" ++ app.dependency "React-RCTFabric" # This is for fabric component ++ app.dependency "React-Codegen" ++ app.dependency "RCT-Folly" ++ app.dependency "RCTRequired" ++ app.dependency "RCTTypeSafety" ++ app.dependency "ReactCommon/turbomodule/core" ++ else ++ app.dependency 'React-Core' ++ end + end + + # Use this subspec for iOS extensions that cannot use React dependency diff --git a/patches/react-native-device-info+10.3.1+001+initial.patch b/patches/react-native-device-info+10.3.1+001+initial.patch new file mode 100644 index 000000000000..819bb3b87e5a --- /dev/null +++ b/patches/react-native-device-info+10.3.1+001+initial.patch @@ -0,0 +1,4 @@ +diff --git a/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.m b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.mm +similarity index 100% +rename from node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.m +rename to node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.mm diff --git a/patches/react-native-device-info+10.3.1+002+turbomodule.patch b/patches/react-native-device-info+10.3.1+002+turbomodule.patch new file mode 100644 index 000000000000..90b2f7d675f8 --- /dev/null +++ b/patches/react-native-device-info+10.3.1+002+turbomodule.patch @@ -0,0 +1,3500 @@ +diff --git a/node_modules/react-native-device-info/README.md b/node_modules/react-native-device-info/README.md +index 43f5292..962ed46 100644 +--- a/node_modules/react-native-device-info/README.md ++++ b/node_modules/react-native-device-info/README.md +@@ -194,6 +194,7 @@ The example app in this repository shows an example usage of every single API, c + | [isHeadphonesConnected()](#isHeadphonesConnected) | `Promise` | ✅ | ✅ | ❌ | ❌ | + | [isPinOrFingerprintSet()](#ispinorfingerprintset) | `Promise` | ✅ | ✅ | ✅ | ❌ | + | [isTablet()](#istablet) | `boolean` | ✅ | ✅ | ✅ | ❌ | ++| [isDisplayZoomed()](#isdisplayzoomed) | `boolean` | ✅ | ❌ | ❌ | ❌ | + | [isTabletMode()](#istabletmode) | `Promise` | ❌ | ❌ | ✅ | ❌ | + | [supported32BitAbis()](#supported32BitAbis) | `Promise` | ❌ | ✅ | ❌ | ❌ | + | [supported64BitAbis()](#supported64BitAbis) | `Promise` | ❌ | ✅ | ❌ | ❌ | +@@ -1211,6 +1212,19 @@ let isTablet = DeviceInfo.isTablet(); + + --- + ++### isDisplayZoomed() ++ ++Tells if the user changed Display Zoom to Zoomed ++ ++#### Examples ++ ++```js ++let isDisplayZoomed = DeviceInfo.isDisplayZoomed(); ++// true ++``` ++ ++--- ++ + ### isTabletMode() + + Tells if the device is in tablet mode. +diff --git a/node_modules/react-native-device-info/RNDeviceInfo.podspec b/node_modules/react-native-device-info/RNDeviceInfo.podspec +index d07bbad..c7a80fd 100644 +--- a/node_modules/react-native-device-info/RNDeviceInfo.podspec ++++ b/node_modules/react-native-device-info/RNDeviceInfo.podspec +@@ -2,6 +2,8 @@ require 'json' + + package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + ++fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' ++ + Pod::Spec.new do |s| + s.name = "RNDeviceInfo" + s.version = package['version'] +@@ -15,7 +17,13 @@ Pod::Spec.new do |s| + s.tvos.deployment_target = '10.0' + + s.source = { :git => "https://github.com/react-native-device-info/react-native-device-info.git", :tag => "v#{s.version}" } +- s.source_files = "ios/**/*.{h,m}" ++ s.source_files = "ios/**/*.{h,m,mm}" ++ ++ if fabric_enabled ++ install_modules_dependencies(s) ++ else ++ s.platforms = { :ios => "9.0", :tvos => "9.0" } + +- s.dependency 'React-Core' ++ s.dependency "React-Core" ++ end + end +diff --git a/node_modules/react-native-device-info/android/build.gradle b/node_modules/react-native-device-info/android/build.gradle +index de22598..9bfea4b 100644 +--- a/node_modules/react-native-device-info/android/build.gradle ++++ b/node_modules/react-native-device-info/android/build.gradle +@@ -21,7 +21,58 @@ def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback + } + ++ ++def resolveReactNativeDirectory() { ++ // monorepo workaround ++ // react-native can be hoisted or in project's own node_modules ++ def reactNativeFromProjectNodeModules = file("${rootProject.projectDir}/../node_modules/react-native") ++ if (reactNativeFromProjectNodeModules.exists()) { ++ return reactNativeFromProjectNodeModules ++ } ++ ++ def reactNativeFromNodeModulesWithLibrary = file("${projectDir}/../../react-native") ++ if (reactNativeFromNodeModulesWithLibrary.exists()) { ++ return reactNativeFromNodeModulesWithLibrary ++ } ++ ++ throw new Exception( ++ "[react-native-clipboard] Unable to resolve react-native location in " + ++ "node_modules. You should add project extension property (in app/build.gradle) " + ++ "`REACT_NATIVE_NODE_MODULES_DIR` with path to react-native." ++ ) ++} ++ ++def REACT_NATIVE_DIR = resolveReactNativeDirectory() ++ ++def reactProperties = new Properties() ++file("$REACT_NATIVE_DIR/ReactAndroid/gradle.properties").withInputStream { reactProperties.load(it) } ++ ++def REACT_NATIVE_VERSION = reactProperties.getProperty("VERSION_NAME") ++def REACT_NATIVE_MINOR_VERSION = REACT_NATIVE_VERSION.startsWith("0.0.0-") ? 1000 : REACT_NATIVE_VERSION.split("\\.")[1].toInteger() ++ ++def isNewArchitectureEnabled() { ++ // To opt-in for the New Architecture, you can either: ++ // - Set `newArchEnabled` to true inside the `gradle.properties` file ++ // - Invoke gradle with `-newArchEnabled=true` ++ // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` ++ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" ++} ++ ++if (isNewArchitectureEnabled()) { ++ apply plugin: "com.facebook.react" ++} ++ + android { ++ ++ // Used to override the NDK path/version on internal CI or by allowing ++ // users to customize the NDK path/version from their root project (e.g. for M1 support) ++ if (rootProject.hasProperty("ndkPath")) { ++ ndkPath rootProject.ext.ndkPath ++ } ++ if (rootProject.hasProperty("ndkVersion")) { ++ ndkVersion rootProject.ext.ndkVersion ++ } ++ + compileSdkVersion safeExtGet('compileSdkVersion', 30) + + defaultConfig { +@@ -37,6 +88,14 @@ android { + testOptions { + unitTests.returnDefaultValues = true + } ++ ++ sourceSets.main { ++ java { ++ if (!isNewArchitectureEnabled()) { ++ srcDirs += 'src/paper/java' ++ } ++ } ++ } + } + + repositories { +@@ -49,7 +108,12 @@ repositories { + } + + dependencies { +- implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" ++ if (isNewArchitectureEnabled() && REACT_NATIVE_MINOR_VERSION < 71) { ++ implementation project(":ReactAndroid") ++ } else { ++ //noinspection GradleDynamicVersion ++ implementation 'com.facebook.react:react-native:+' ++ } + implementation "com.android.installreferrer:installreferrer:${safeExtGet('installReferrerVersion', '1.1.2')}" + def firebaseBomVersion = safeExtGet("firebaseBomVersion", null) + def firebaseIidVersion = safeExtGet('firebaseIidVersion', null) +diff --git a/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfo.java b/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfo.java +deleted file mode 100644 +index e9a08db..0000000 +--- a/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfo.java ++++ /dev/null +@@ -1,39 +0,0 @@ +-package com.learnium.RNDeviceInfo; +- +-import com.facebook.react.ReactPackage; +-import com.facebook.react.bridge.JavaScriptModule; +-import com.facebook.react.bridge.NativeModule; +-import com.facebook.react.bridge.ReactApplicationContext; +-import com.facebook.react.uimanager.ViewManager; +- +-import java.util.ArrayList; +-import java.util.Collections; +-import java.util.List; +- +-import javax.annotation.Nonnull; +- +-@SuppressWarnings("unused") +-public class RNDeviceInfo implements ReactPackage { +- +- @Override +- @Nonnull +- public List createNativeModules(@Nonnull ReactApplicationContext reactContext) { +- List modules = new ArrayList<>(); +- +- modules.add(new RNDeviceModule(reactContext)); +- +- return modules; +- } +- +- // Deprecated RN 0.47 +- public List> createJSModules() { +- return Collections.emptyList(); +- } +- +- @Override +- @Nonnull +- public List createViewManagers(@Nonnull ReactApplicationContext reactContext) { +- return Collections.emptyList(); +- } +- +-} +diff --git a/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfoPackage.java b/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfoPackage.java +new file mode 100644 +index 0000000..e91e5a2 +--- /dev/null ++++ b/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfoPackage.java +@@ -0,0 +1,95 @@ ++package com.learnium.RNDeviceInfo; ++ ++import com.facebook.react.TurboReactPackage; ++import com.facebook.react.bridge.NativeModule; ++import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.module.annotations.ReactModule; ++import com.facebook.react.module.annotations.ReactModuleList; ++import com.facebook.react.module.model.ReactModuleInfo; ++import com.facebook.react.module.model.ReactModuleInfoProvider; ++import com.facebook.react.turbomodule.core.interfaces.TurboModule; ++import com.facebook.react.uimanager.ViewManager; ++ ++import java.util.ArrayList; ++import java.util.Collections; ++import java.util.HashMap; ++import java.util.List; ++import java.util.Map; ++ ++import javax.annotation.Nonnull; ++ ++@ReactModuleList( ++ nativeModules = { ++ RNDeviceModule.class, ++ }) ++public class RNDeviceInfoPackage extends TurboReactPackage { ++ @Override ++ @Nonnull ++ public List createNativeModules(@Nonnull ReactApplicationContext reactContext) { ++ List modules = new ArrayList<>(); ++ ++ modules.add(new RNDeviceModule(reactContext)); ++ ++ return modules; ++ } ++ ++ @Override ++ public NativeModule getModule(String name, @Nonnull ReactApplicationContext reactContext) { ++ switch (name) { ++ case RNDeviceModule.NAME: ++ return new RNDeviceModule(reactContext); ++ default: ++ return null; ++ } ++ } ++ ++ @Override ++ public ReactModuleInfoProvider getReactModuleInfoProvider() { ++ try { ++ Class reactModuleInfoProviderClass = ++ Class.forName("com.learnium.RNDeviceInfo.RNDeviceInfoPackage$$ReactModuleInfoProvider"); ++ return (ReactModuleInfoProvider) reactModuleInfoProviderClass.newInstance(); ++ } catch (ClassNotFoundException e) { ++ // ReactModuleSpecProcessor does not run at build-time. Create this ReactModuleInfoProvider by ++ // hand. ++ return new ReactModuleInfoProvider() { ++ @Override ++ public Map getReactModuleInfos() { ++ final Map reactModuleInfoMap = new HashMap<>(); ++ ++ Class[] moduleList = ++ new Class[] { ++ RNDeviceModule.class, ++ }; ++ ++ for (Class moduleClass : moduleList) { ++ ReactModule reactModule = moduleClass.getAnnotation(ReactModule.class); ++ ++ reactModuleInfoMap.put( ++ reactModule.name(), ++ new ReactModuleInfo( ++ reactModule.name(), ++ moduleClass.getName(), ++ reactModule.canOverrideExistingModule(), ++ reactModule.needsEagerInit(), ++ reactModule.hasConstants(), ++ reactModule.isCxxModule(), ++ TurboModule.class.isAssignableFrom(moduleClass))); ++ } ++ ++ return reactModuleInfoMap; ++ } ++ }; ++ } catch (InstantiationException | IllegalAccessException e) { ++ throw new RuntimeException( ++ "No ReactModuleInfoProvider for com.learnium.RNDeviceInfo.RNDeviceInfoPackage$$ReactModuleInfoProvider", e); ++ } ++ } ++ ++ @Override ++ @Nonnull ++ public List createViewManagers(@Nonnull ReactApplicationContext reactContext) { ++ return Collections.emptyList(); ++ } ++ ++} +diff --git a/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java b/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java +index b01e9d2..9ac1628 100644 +--- a/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java ++++ b/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java +@@ -20,8 +20,6 @@ import android.os.Environment; + import android.os.PowerManager; + import android.os.StatFs; + import android.os.BatteryManager; +-import android.os.Debug; +-import android.os.Process; + import android.provider.Settings; + import android.webkit.WebSettings; + import android.telephony.TelephonyManager; +@@ -35,7 +33,6 @@ import androidx.annotation.Nullable; + import com.facebook.react.bridge.Arguments; + import com.facebook.react.bridge.ReactApplicationContext; + import com.facebook.react.bridge.ReactContext; +-import com.facebook.react.bridge.ReactContextBaseJavaModule; + import com.facebook.react.bridge.ReactMethod; + import com.facebook.react.bridge.Promise; + import com.facebook.react.bridge.WritableArray; +@@ -66,7 +63,7 @@ import static android.os.BatteryManager.BATTERY_STATUS_FULL; + import static android.provider.Settings.Secure.getString; + + @ReactModule(name = RNDeviceModule.NAME) +-public class RNDeviceModule extends ReactContextBaseJavaModule { ++public class RNDeviceModule extends NativeDeviceInfoModuleSpec { + public static final String NAME = "RNDeviceInfo"; + private final DeviceTypeResolver deviceTypeResolver; + private final DeviceIdResolver deviceIdResolver; +@@ -177,39 +174,13 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { + return null; + } + +- @Override +- public Map getConstants() { +- String appVersion, buildNumber, appName; +- +- try { +- appVersion = getPackageInfo().versionName; +- buildNumber = Integer.toString(getPackageInfo().versionCode); +- appName = getReactApplicationContext().getApplicationInfo().loadLabel(getReactApplicationContext().getPackageManager()).toString(); +- } catch (Exception e) { +- appVersion = "unknown"; +- buildNumber = "unknown"; +- appName = "unknown"; +- } +- +- final Map constants = new HashMap<>(); +- +- constants.put("deviceId", Build.BOARD); +- constants.put("bundleId", getReactApplicationContext().getPackageName()); +- constants.put("systemName", "Android"); +- constants.put("systemVersion", Build.VERSION.RELEASE); +- constants.put("appVersion", appVersion); +- constants.put("buildNumber", buildNumber); +- constants.put("isTablet", deviceTypeResolver.isTablet()); +- constants.put("appName", appName); +- constants.put("brand", Build.BRAND); +- constants.put("model", Build.MODEL); +- constants.put("deviceType", deviceTypeResolver.getDeviceType().getValue()); +- +- return constants; ++ @ReactMethod ++ public void addListener(String eventName) { ++ // Keep: Required for RN built in Event Emitter Calls. + } + + @ReactMethod +- public void addListener(String eventName) { ++ public void removeListeners(double count) { + // Keep: Required for RN built in Event Emitter Calls. + } + +@@ -252,7 +223,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { + } + + @ReactMethod(isBlockingSynchronousMethod = true) +- public float getFontScaleSync() { return getReactApplicationContext().getResources().getConfiguration().fontScale; } ++ public double getFontScaleSync() { return getReactApplicationContext().getResources().getConfiguration().fontScale; } + @ReactMethod + public void getFontScale(Promise p) { p.resolve(getFontScaleSync()); } + +@@ -265,6 +236,68 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { + System.err.println("Unable to determine keyguard status. KeyguardManager was null"); + return false; + } ++ ++ @Override ++ public void isMouseConnected(Promise promise) { ++ promise.reject("DeviceInfo:isMouseConnected", "isMouseConnected is not supported on Android"); ++ } ++ ++ @Override ++ public boolean isMouseConnectedSync() { ++ return false; ++ } ++ ++ @Override ++ public void isKeyboardConnected(Promise promise) { ++ promise.reject("DeviceInfo:isKeyboardConnected", "isKeyboardConnected is not supported on Android"); ++ } ++ ++ @Override ++ public boolean isKeyboardConnectedSync() { ++ return false; ++ } ++ ++ @Override ++ public void isTabletMode(Promise promise) { ++promise.reject("DeviceInfo:isTabletMode", "isTabletMode is not supported on Android"); ++ } ++ ++ @Override ++ public void syncUniqueId(Promise promise) { ++promise.reject("DeviceInfo:syncUniqueId", "syncUniqueId is not supported on Android"); ++ } ++ ++ @Override ++ protected Map getTypedExportedConstants() { ++ String appVersion, buildNumber, appName; ++ ++ try { ++ appVersion = getPackageInfo().versionName; ++ buildNumber = Integer.toString(getPackageInfo().versionCode); ++ appName = getReactApplicationContext().getApplicationInfo().loadLabel(getReactApplicationContext().getPackageManager()).toString(); ++ } catch (Exception e) { ++ appVersion = "unknown"; ++ buildNumber = "unknown"; ++ appName = "unknown"; ++ } ++ ++ final Map constants = new HashMap<>(); ++ ++ constants.put("deviceId", Build.BOARD); ++ constants.put("bundleId", getReactApplicationContext().getPackageName()); ++ constants.put("systemName", "Android"); ++ constants.put("systemVersion", Build.VERSION.RELEASE); ++ constants.put("appVersion", appVersion); ++ constants.put("buildNumber", buildNumber); ++ constants.put("isTablet", deviceTypeResolver.isTablet()); ++ constants.put("appName", appName); ++ constants.put("brand", Build.BRAND); ++ constants.put("model", Build.MODEL); ++ constants.put("deviceType", deviceTypeResolver.getDeviceType().getValue()); ++ ++ return constants; ++ } ++ + @ReactMethod + public void isPinOrFingerprintSet(Promise p) { p.resolve(isPinOrFingerprintSetSync()); } + +@@ -737,6 +770,12 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { + + @ReactMethod(isBlockingSynchronousMethod = true) + public String getDeviceSync() { return Build.DEVICE; } ++ ++ @Override ++ public void getDeviceToken(Promise promise) { ++ promise.reject("DeviceInfo:getDeviceToken", "getDeviceToken is not supported on Android"); ++ } ++ + @ReactMethod + public void getDevice(Promise p) { p.resolve(getDeviceSync()); } + +@@ -746,7 +785,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { + public void getBuildId(Promise p) { p.resolve(getBuildIdSync()); } + + @ReactMethod(isBlockingSynchronousMethod = true) +- public int getApiLevelSync() { return Build.VERSION.SDK_INT; } ++ public double getApiLevelSync() { return Build.VERSION.SDK_INT; } + @ReactMethod + public void getApiLevel(Promise p) { p.resolve(getApiLevelSync()); } + +@@ -858,11 +897,11 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { + public void getBaseOs(Promise p) { p.resolve(getBaseOsSync()); } + + @ReactMethod(isBlockingSynchronousMethod = true) +- public String getPreviewSdkIntSync() { ++ public double getPreviewSdkIntSync() { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { +- return Integer.toString(Build.VERSION.PREVIEW_SDK_INT); ++ return Build.VERSION.PREVIEW_SDK_INT; + } +- return "unknown"; ++ return -1; + } + @ReactMethod + public void getPreviewSdkInt(Promise p) { p.resolve(getPreviewSdkIntSync()); } +@@ -889,6 +928,17 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { + return System.getProperty("http.agent"); + } + } ++ ++ @Override ++ public void getBrightness(Promise promise) { ++ promise.reject("DeviceInfo:getBrightness", "getBrightness is not supported on Android"); ++ } ++ ++ @Override ++ public double getBrightnessSync() { ++ return 0; ++ } ++ + @ReactMethod + public void getUserAgent(Promise p) { p.resolve(getUserAgentSync()); } + +diff --git a/node_modules/react-native-device-info/android/src/paper/java/com/learnium/RNDeviceInfo/NativeDeviceInfoModuleSpec.java b/node_modules/react-native-device-info/android/src/paper/java/com/learnium/RNDeviceInfo/NativeDeviceInfoModuleSpec.java +new file mode 100644 +index 0000000..5aad02a +--- /dev/null ++++ b/node_modules/react-native-device-info/android/src/paper/java/com/learnium/RNDeviceInfo/NativeDeviceInfoModuleSpec.java +@@ -0,0 +1,565 @@ ++ ++/** ++ * 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: GenerateModuleJavaSpec.js ++ * ++ * @nolint ++ */ ++ ++package com.learnium.RNDeviceInfo; ++ ++import com.facebook.proguard.annotations.DoNotStrip; ++import com.facebook.react.bridge.Promise; ++import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.bridge.ReactContextBaseJavaModule; ++import com.facebook.react.bridge.ReactMethod; ++import com.facebook.react.bridge.ReactModuleWithSpec; ++import com.facebook.react.bridge.WritableArray; ++import com.facebook.react.bridge.WritableMap; ++import com.facebook.react.common.build.ReactBuildConfig; ++import com.facebook.react.turbomodule.core.interfaces.TurboModule; ++import java.util.Arrays; ++import java.util.HashSet; ++import java.util.Map; ++import java.util.Set; ++import javax.annotation.Nullable; ++ ++public abstract class NativeDeviceInfoModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule { ++ public NativeDeviceInfoModuleSpec(ReactApplicationContext reactContext) { ++ super(reactContext); ++ } ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getPowerState(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract WritableMap getPowerStateSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getSupported32BitAbis(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract WritableArray getSupported32BitAbisSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getSupported64BitAbis(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract WritableArray getSupported64BitAbisSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getSupportedAbis(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract WritableArray getSupportedAbisSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getSystemManufacturer(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getSystemManufacturerSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getAndroidId(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getAndroidIdSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getApiLevel(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getApiLevelSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getAvailableLocationProviders(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract WritableMap getAvailableLocationProvidersSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getBaseOs(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getBaseOsSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getBatteryLevel(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getBatteryLevelSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getBootloader(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getBootloaderSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getBuildId(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getBuildIdSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getCarrier(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getCarrierSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getCodename(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getCodenameSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getDevice(Promise promise); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getDeviceName(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getDeviceNameSync(); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getDeviceSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getDeviceToken(Promise promise); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getDisplay(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getDisplaySync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getFingerprint(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getFingerprintSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getFirstInstallTime(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getFirstInstallTimeSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getFontScale(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getFontScaleSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getFreeDiskStorage(Promise promise); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getFreeDiskStorageOld(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getFreeDiskStorageSync(); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getFreeDiskStorageOldSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getHardware(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getHardwareSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getHost(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getHostSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getIncremental(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getIncrementalSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getInstallerPackageName(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getInstallerPackageNameSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getInstallReferrer(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getInstallReferrerSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getInstanceId(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getInstanceIdSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getIpAddress(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getIpAddressSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getLastUpdateTime(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getLastUpdateTimeSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getMacAddress(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getMacAddressSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getMaxMemory(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getMaxMemorySync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getPhoneNumber(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getPhoneNumberSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getPreviewSdkInt(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getPreviewSdkIntSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getProduct(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getProductSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getSecurityPatch(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getSecurityPatchSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getSerialNumber(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getSerialNumberSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getSystemAvailableFeatures(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract WritableArray getSystemAvailableFeaturesSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getTags(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getTagsSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getTotalDiskCapacity(Promise promise); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getTotalDiskCapacityOld(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getTotalDiskCapacitySync(); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getTotalDiskCapacityOldSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getTotalMemory(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getTotalMemorySync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getType(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getTypeSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getUniqueId(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getUniqueIdSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getUsedMemory(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getUsedMemorySync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getUserAgent(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract String getUserAgentSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void getBrightness(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract double getBrightnessSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void hasGms(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean hasGmsSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void hasHms(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean hasHmsSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void hasSystemFeature(String feature, Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean hasSystemFeatureSync(String feature); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isAirplaneMode(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isAirplaneModeSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isBatteryCharging(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isBatteryChargingSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isCameraPresent(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isCameraPresentSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isEmulator(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isEmulatorSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isHeadphonesConnected(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isHeadphonesConnectedSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isLocationEnabled(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isLocationEnabledSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isPinOrFingerprintSet(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isPinOrFingerprintSetSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isMouseConnected(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isMouseConnectedSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isKeyboardConnected(Promise promise); ++ ++ @ReactMethod(isBlockingSynchronousMethod = true) ++ @DoNotStrip ++ public abstract boolean isKeyboardConnectedSync(); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void isTabletMode(Promise promise); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void syncUniqueId(Promise promise); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void addListener(String eventName); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void removeListeners(double count); ++ ++ protected abstract Map getTypedExportedConstants(); ++ ++ @Override ++ @DoNotStrip ++ public final @Nullable Map getConstants() { ++ Map constants = getTypedExportedConstants(); ++ if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) { ++ Set obligatoryFlowConstants = new HashSet<>(Arrays.asList( ++ "appName", ++ "appVersion", ++ "brand", ++ "buildNumber", ++ "bundleId", ++ "deviceId", ++ "deviceType", ++ "isTablet", ++ "model", ++ "systemName", ++ "systemVersion" ++ )); ++ Set optionalFlowConstants = new HashSet<>(Arrays.asList( ++ "isDisplayZoomed" ++ )); ++ Set undeclaredConstants = new HashSet<>(constants.keySet()); ++ undeclaredConstants.removeAll(obligatoryFlowConstants); ++ undeclaredConstants.removeAll(optionalFlowConstants); ++ if (!undeclaredConstants.isEmpty()) { ++ throw new IllegalStateException(String.format("Native Module Flow doesn't declare constants: %s", undeclaredConstants)); ++ } ++ undeclaredConstants = obligatoryFlowConstants; ++ undeclaredConstants.removeAll(constants.keySet()); ++ if (!undeclaredConstants.isEmpty()) { ++ throw new IllegalStateException(String.format("Native Module doesn't fill in constants: %s", undeclaredConstants)); ++ } ++ } ++ return constants; ++ } ++} +diff --git a/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.h b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.h +index f77b052..01def34 100644 +--- a/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.h ++++ b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.h +@@ -9,11 +9,20 @@ + #import + #import + #import ++#ifdef RCT_NEW_ARCH_ENABLED ++#import ++#else + #import ++#endif + #import + #import + +-@interface RNDeviceInfo : RCTEventEmitter ++@interface RNDeviceInfo : RCTEventEmitter ++#ifdef RCT_NEW_ARCH_ENABLED ++ ++#else ++ ++#endif + + @property (nonatomic) float lowBatteryThreshold; + +diff --git a/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.mm b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.mm +index 67dbd7a..552a5e7 100644 +--- a/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.mm ++++ b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.mm +@@ -14,8 +14,9 @@ + #import + #import "RNDeviceInfo.h" + #import "DeviceUID.h" +-#import ++//#import + #import "EnvironmentUtil.h" ++#import "RNDeviceInfoHelper.h" + + #if !(TARGET_OS_TV) + #import +@@ -32,11 +33,6 @@ typedef NS_ENUM(NSInteger, DeviceType) { + + #define DeviceTypeValues [NSArray arrayWithObjects: @"Handset", @"Tablet", @"Tv", @"Desktop", @"unknown", nil] + +-#if !(TARGET_OS_TV) +-@import CoreTelephony; +-@import Darwin.sys.sysctl; +-#endif +- + @implementation RNDeviceInfo + { + bool hasListeners; +@@ -67,6 +63,7 @@ - (NSDictionary *)constantsToExport { + @"brand": @"Apple", + @"model": [self getModel], + @"deviceType": [self getDeviceTypeName], ++ @"isDisplayZoomed": @([self isDisplayZoomed]), + }; + } + +@@ -132,7 +129,7 @@ - (DeviceType) getDeviceType + } + + - (NSDictionary *) getStorageDictionary { +- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); ++ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); + return [[NSFileManager defaultManager] attributesOfFileSystemForPath:[paths lastObject] error: nil]; + } + +@@ -155,10 +152,14 @@ - (NSString *) getDeviceName { + return self.getDeviceName; + } + +-RCT_EXPORT_METHOD(getDeviceName:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getDeviceName:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.getDeviceName); + } + ++- (BOOL) isDisplayZoomed { ++ return [UIScreen mainScreen].scale != [UIScreen mainScreen].nativeScale; ++} ++ + - (NSString *) getAppName { + NSString *displayName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]; + NSString *bundleName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"]; +@@ -324,42 +325,22 @@ - (NSString *) getModel { + } + + - (NSString *) getCarrier { +-#if (TARGET_OS_TV || TARGET_OS_MACCATALYST) +- return @"unknown"; +-#else +- CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init]; +- CTCarrier *carrier = [netinfo subscriberCellularProvider]; +- if (carrier.carrierName != nil) { +- return carrier.carrierName; +- } +- return @"unknown"; +-#endif ++ return [RNDeviceInfoHelper getCarrier]; + } + + RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getCarrierSync) { + return self.getCarrier; + } + +-RCT_EXPORT_METHOD(getCarrier:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getCarrier:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.getCarrier); + } + + - (NSString *) getBuildId { +-#if TARGET_OS_TV +- return @"unknown"; +-#else +- size_t bufferSize = 64; +- NSMutableData *buffer = [[NSMutableData alloc] initWithLength:bufferSize]; +- int status = sysctlbyname("kern.osversion", buffer.mutableBytes, &bufferSize, NULL, 0); +- if (status != 0) { +- return @"unknown"; +- } +- NSString* buildId = [[NSString alloc] initWithCString:buffer.mutableBytes encoding:NSUTF8StringEncoding]; +- return buildId; +-#endif ++ return [RNDeviceInfoHelper getBuildId]; + } + +-RCT_EXPORT_METHOD(getBuildId:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getBuildId:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.getBuildId); + } + +@@ -375,11 +356,11 @@ - (NSString *) uniqueId { + return self.uniqueId; + } + +-RCT_EXPORT_METHOD(getUniqueId:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getUniqueId:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.uniqueId); + } + +-RCT_EXPORT_METHOD(syncUniqueId:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(syncUniqueId:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve([DeviceUID syncUid]); + } + +@@ -407,7 +388,7 @@ - (BOOL) isEmulator { + return @(self.isEmulator); + } + +-RCT_EXPORT_METHOD(isEmulator:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(isEmulator:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.isEmulator)); + } + +@@ -419,28 +400,29 @@ - (BOOL) isTablet { + } + } + +-RCT_EXPORT_METHOD(getDeviceToken:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getDeviceToken:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + if (@available(iOS 11.0, *)) { + if (TARGET_IPHONE_SIMULATOR) { + reject(@"NOT AVAILABLE", @"Device check is only available for physical devices", nil); + return; + } + +- DCDevice *device = DCDevice.currentDevice; +- +- if ([device isSupported]) { +- [DCDevice.currentDevice generateTokenWithCompletionHandler:^(NSData * _Nullable token, NSError * _Nullable error) { +- if (error) { +- reject(@"ERROR GENERATING TOKEN", error.localizedDescription, error); +- return; +- } +- +- resolve([token base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed]); +- }]; +- } else { +- reject(@"NOT SUPPORTED", @"Device check is not supported by this device", nil); +- return; +- } ++ reject(@"NOT SUPPORTED", @"Device check is not supported by this device", nil); ++// DCDevice *device = DCDevice.currentDevice; ++// ++// if ([device isSupported]) { ++// [DCDevice.currentDevice generateTokenWithCompletionHandler:^(NSData * _Nullable token, NSError * _Nullable error) { ++// if (error) { ++// reject(@"ERROR GENERATING TOKEN", error.localizedDescription, error); ++// return; ++// } ++// ++// resolve([token base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed]); ++// }]; ++// } else { ++// reject(@"NOT SUPPORTED", @"Device check is not supported by this device", nil); ++// return; ++// } + } else { + reject(@"NOT AVAILABLE", @"Device check is only available for iOS > 11", nil); + return; +@@ -484,7 +466,7 @@ - (float) getFontScale { + return @(self.getFontScale); + } + +-RCT_EXPORT_METHOD(getFontScale:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getFontScale:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.getFontScale)); + } + +@@ -496,7 +478,7 @@ - (double) getTotalMemory { + return @(self.getTotalMemory); + } + +-RCT_EXPORT_METHOD(getTotalMemory:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getTotalMemory:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.getTotalMemory)); + } + +@@ -515,7 +497,7 @@ - (double) getTotalDiskCapacity { + return @(self.getTotalDiskCapacity); + } + +-RCT_EXPORT_METHOD(getTotalDiskCapacity:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getTotalDiskCapacity:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.getTotalDiskCapacity)); + } + +@@ -534,7 +516,7 @@ - (double) getFreeDiskStorage { + return @(self.getFreeDiskStorage); + } + +-RCT_EXPORT_METHOD(getFreeDiskStorage:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getFreeDiskStorage:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.getFreeDiskStorage)); + } + +@@ -553,7 +535,7 @@ - (NSArray *) getSupportedAbis { + return self.getSupportedAbis; + } + +-RCT_EXPORT_METHOD(getSupportedAbis:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getSupportedAbis:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.getSupportedAbis); + } + +@@ -602,7 +584,7 @@ - (NSString *) getIpAddress { + return self.getIpAddress; + } + +-RCT_EXPORT_METHOD(getIpAddress:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getIpAddress:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.getIpAddress); + } + +@@ -619,7 +601,7 @@ - (BOOL) isPinOrFingerprintSet { + return @(self.isPinOrFingerprintSet); + } + +-RCT_EXPORT_METHOD(isPinOrFingerprintSet:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(isPinOrFingerprintSet:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.isPinOrFingerprintSet)); + } + +@@ -688,7 +670,7 @@ - (NSDictionary *) powerState { + return self.powerState; + } + +-RCT_EXPORT_METHOD(getPowerState:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getPowerState:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.powerState); + } + +@@ -704,7 +686,7 @@ - (float) getBatteryLevel { + return @(self.getBatteryLevel); + } + +-RCT_EXPORT_METHOD(getBatteryLevel:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getBatteryLevel:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.getBatteryLevel)); + } + +@@ -716,7 +698,7 @@ - (BOOL) isBatteryCharging { + return @(self.isBatteryCharging); + } + +-RCT_EXPORT_METHOD(isBatteryCharging:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(isBatteryCharging:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.isBatteryCharging)); + } + +@@ -728,7 +710,7 @@ - (BOOL) isLocationEnabled { + return @(self.isLocationEnabled); + } + +-RCT_EXPORT_METHOD(isLocationEnabled:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(isLocationEnabled:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.isLocationEnabled)); + } + +@@ -752,7 +734,7 @@ - (BOOL) isHeadphonesConnected { + return @(self.isHeadphonesConnected); + } + +-RCT_EXPORT_METHOD(isHeadphonesConnected:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(isHeadphonesConnected:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.isHeadphonesConnected)); + } + +@@ -770,7 +752,7 @@ - (unsigned long) getUsedMemory { + return (unsigned long)info.resident_size; + } + +-RCT_EXPORT_METHOD(getUsedMemory:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getUsedMemory:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + unsigned long usedMemory = self.getUsedMemory; + if (usedMemory == -1) { + reject(@"fetch_error", @"task_info failed", nil); +@@ -783,7 +765,7 @@ - (unsigned long) getUsedMemory { + return @(self.getUsedMemory); + } + +-RCT_EXPORT_METHOD(getUserAgent:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getUserAgent:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + #if TARGET_OS_TV + reject(@"not_available_error", @"not available on tvOS", nil); + #else +@@ -827,7 +809,7 @@ - (NSDictionary *) getAvailableLocationProviders { + return self.getAvailableLocationProviders; + } + +-RCT_EXPORT_METHOD(getAvailableLocationProviders:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getAvailableLocationProviders:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.getAvailableLocationProviders); + } + +@@ -837,7 +819,7 @@ - (NSDictionary *) getAvailableLocationProviders { + return [EnvironmentValues objectAtIndex:[EnvironmentUtil currentAppEnvironment]]; + } + +-RCT_EXPORT_METHOD(getInstallerPackageName:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getInstallerPackageName:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve([EnvironmentValues objectAtIndex:[EnvironmentUtil currentAppEnvironment]]); + } + +@@ -853,7 +835,7 @@ - (NSNumber *) getBrightness { + return self.getBrightness; + } + +-RCT_EXPORT_METHOD(getBrightness:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getBrightness:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(self.getBrightness); + } + +@@ -861,10 +843,415 @@ - (NSNumber *) getBrightness { + return @(self.getFirstInstallTime); + } + +-RCT_EXPORT_METHOD(getFirstInstallTime:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { ++RCT_EXPORT_METHOD(getFirstInstallTime:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { + resolve(@(self.getFirstInstallTime)); + } + ++- (void)getAndroidId:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getAndroidId", @"getAndroidId is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getAndroidIdSync { ++ RCTLogError(@"DeviceInfo:getAndroidIdSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getApiLevel:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getApiLevel", @"getApiLevel is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)getApiLevelSync { ++ RCTLogError(@"DeviceInfo:getApiLevelSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getBaseOs:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getBaseOs", @"getBaseOs is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getBaseOsSync { ++ RCTLogError(@"DeviceInfo:getBaseOsSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getBootloader:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getBootloader", @"getBootloader is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getBootloaderSync { ++ RCTLogError(@"DeviceInfo:getBootloaderSync is not supported on iOS"); ++ return nil; ++} ++ ++- (void)getCodename:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getCodename", @"getCodename is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getCodenameSync { ++ RCTLogError(@"DeviceInfo:getCodenameSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (NSDictionary *)getConstants { ++ return [self constantsToExport]; ++} ++ ++ ++- (void)getDevice:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getDevice", @"getDevice is not supported on iOS", nil); ++} ++ ++- (NSString *)getDeviceSync { ++ RCTLogError(@"DeviceInfo:getDeviceSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getDisplay:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getDisplay", @"getDisplay is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getDisplaySync { ++ RCTLogError(@"DeviceInfo:getDisplaySync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getFingerprint:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getFingerprint", @"getFingerprint is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getFingerprintSync { ++ RCTLogError(@"DeviceInfo:getFingerprintSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getFreeDiskStorageOld:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getFreeDiskStorageOld", @"getFreeDiskStorageOld is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)getFreeDiskStorageOldSync { ++ RCTLogError(@"DeviceInfo:getFreeDiskStorageOldSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getHardware:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getHardware", @"getHardware is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getHardwareSync { ++ RCTLogError(@"DeviceInfo:getHardwareSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getHost:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getHost", @"getHost is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getHostSync { ++ RCTLogError(@"DeviceInfo:getHostSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getIncremental:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getIncremental", @"getIncremental is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getIncrementalSync { ++ RCTLogError(@"DeviceInfo:getIncrementalSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getInstallReferrer:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getInstallReferrer", @"getInstallReferrer is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getInstallReferrerSync { ++ RCTLogError(@"DeviceInfo:getInstallReferrerSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getInstanceId:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getInstanceId", @"getInstanceId is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getInstanceIdSync { ++ RCTLogError(@"DeviceInfo:getInstanceIdSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getLastUpdateTime:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getLastUpdateTime", @"getLastUpdateTime is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)getLastUpdateTimeSync { ++ RCTLogError(@"DeviceInfo:getLastUpdateTimeSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getMacAddress:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getMacAddress", @"getMacAddress is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getMacAddressSync { ++ RCTLogError(@"DeviceInfo:getMacAddressSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getMaxMemory:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getMaxMemory", @"getMaxMemory is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)getMaxMemorySync { ++ RCTLogError(@"DeviceInfo:getMaxMemorySync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getPhoneNumber:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getPhoneNumber", @"getPhoneNumber is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getPhoneNumberSync { ++ RCTLogError(@"DeviceInfo:getPhoneNumberSync is not supported on iOS"); ++ return nil; ++} ++ ++- (void)getPreviewSdkInt:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getPreviewSdkInt", @"getPreviewSdkInt is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)getPreviewSdkIntSync { ++ RCTLogError(@"DeviceInfo:getPreviewSdkIntSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getProduct:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getProduct", @"getProduct is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getProductSync { ++ RCTLogError(@"DeviceInfo:getProductSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getSecurityPatch:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getSecurityPatch", @"getSecurityPatch is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getSecurityPatchSync { ++ RCTLogError(@"DeviceInfo:getSecurityPatchSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getSerialNumber:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getSerialNumber", @"getSerialNumber is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getSerialNumberSync { ++ RCTLogError(@"DeviceInfo:getSerialNumberSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getSupported32BitAbis:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getSupported32BitAbis", @"getSupported32BitAbis is not supported on iOS", nil); ++} ++ ++ ++- (NSArray *)getSupported32BitAbisSync { ++ RCTLogError(@"DeviceInfo:getSupported32BitAbisSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getSupported64BitAbis:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getSupported64BitAbis", @"getSupported64BitAbis is not supported on iOS", nil); ++} ++ ++ ++- (NSArray *)getSupported64BitAbisSync { ++ RCTLogError(@"DeviceInfo:getSupported64BitAbisSync is not supported on iOS"); ++ return nil; ++} ++ ++- (void)getSystemAvailableFeatures:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getSystemAvailableFeatures", @"getSystemAvailableFeatures is not supported on iOS", nil); ++} ++ ++ ++- (NSArray *)getSystemAvailableFeaturesSync { ++ RCTLogError(@"DeviceInfo:getSystemAvailableFeaturesSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getSystemManufacturer:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getSystemManufacturer", @"getSystemManufacturer is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getSystemManufacturerSync { ++ RCTLogError(@"DeviceInfo:getSystemManufacturerSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getTags:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getTags", @"getTags is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getTagsSync { ++ RCTLogError(@"DeviceInfo:getTagsSync is not supported on iOS"); ++ return nil; ++} ++ ++- (void)getTotalDiskCapacityOld:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getTotalDiskCapacityOld", @"getTotalDiskCapacityOld is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)getTotalDiskCapacityOldSync { ++ RCTLogError(@"DeviceInfo:getTotalDiskCapacityOldSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)getType:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:getType", @"getType is not supported on iOS", nil); ++} ++ ++ ++- (NSString *)getTypeSync { ++ RCTLogError(@"DeviceInfo:getTypeSync is not supported on iOS"); ++ return nil; ++} ++ ++- (NSString *)getUserAgentSync { ++ RCTLogError(@"DeviceInfo:getUserAgentSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)hasGms:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:hasGms", @"hasGms is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)hasGmsSync { ++ RCTLogError(@"DeviceInfo:hasGmsSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)hasHms:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:hasHms", @"hasHms is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)hasHmsSync { ++ RCTLogError(@"DeviceInfo:hasHmsSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)hasSystemFeature:(NSString *)feature resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:hasSystemFeature", @"hasSystemFeature is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)hasSystemFeatureSync:(NSString *)feature { ++ RCTLogError(@"DeviceInfo:hasSystemFeatureSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)isAirplaneMode:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:isAirplaneMode", @"isAirplaneMode is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)isAirplaneModeSync { ++ RCTLogError(@"DeviceInfo:isAirplaneModeSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)isCameraPresent:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:isCameraPresent", @"isCameraPresent is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)isCameraPresentSync { ++ RCTLogError(@"DeviceInfo:isCameraPresentSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)isKeyboardConnected:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:isKeyboardConnected", @"isKeyboardConnected is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)isKeyboardConnectedSync { ++ RCTLogError(@"DeviceInfo:isKeyboardConnectedSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)isMouseConnected:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:isMouseConnected", @"isMouseConnected is not supported on iOS", nil); ++} ++ ++ ++- (NSNumber *)isMouseConnectedSync { ++ RCTLogError(@"DeviceInfo:isMouseConnectedSync is not supported on iOS"); ++ return nil; ++} ++ ++ ++- (void)isTabletMode:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { ++ reject(@"DeviceInfo:isTabletMode", @"isTabletMode is not supported on iOS", nil); ++} ++ + - (long long) getFirstInstallTime { + NSURL* urlToDocumentsFolder = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; + NSError *error; +@@ -879,4 +1266,12 @@ - (void)dealloc + [[NSNotificationCenter defaultCenter] removeObserver:self]; + } + ++#ifdef RCT_NEW_ARCH_ENABLED ++- (std::shared_ptr)getTurboModule: ++ (const facebook::react::ObjCTurboModule::InitParams &)params ++{ ++ return std::make_shared(params); ++} ++#endif ++ + @end +diff --git a/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfoHelper.h b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfoHelper.h +new file mode 100644 +index 0000000..71e7a26 +--- /dev/null ++++ b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfoHelper.h +@@ -0,0 +1,6 @@ ++#import ++ ++@interface RNDeviceInfoHelper : NSObject +++ (NSString *)getCarrier; +++ (NSString *)getBuildId; ++@end +diff --git a/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfoHelper.m b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfoHelper.m +new file mode 100644 +index 0000000..398bc04 +--- /dev/null ++++ b/node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfoHelper.m +@@ -0,0 +1,38 @@ ++#import "RNDeviceInfoHelper.h" ++ ++#if !(TARGET_OS_TV) ++@import CoreTelephony; ++@import Darwin.sys.sysctl; ++#endif ++ ++@implementation RNDeviceInfoHelper ++ +++ (NSString *)getCarrier { ++#if (TARGET_OS_TV || TARGET_OS_MACCATALYST) ++ return @"unknown"; ++#else ++ CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init]; ++ CTCarrier *carrier = [netinfo subscriberCellularProvider]; ++ if (carrier.carrierName != nil) { ++ return carrier.carrierName; ++ } ++ return @"unknown"; ++#endif ++} ++ +++ (NSString *)getBuildId { ++#if TARGET_OS_TV ++ return @"unknown"; ++#else ++ size_t bufferSize = 64; ++ NSMutableData *buffer = [[NSMutableData alloc] initWithLength:bufferSize]; ++ int status = sysctlbyname("kern.osversion", buffer.mutableBytes, &bufferSize, NULL, 0); ++ if (status != 0) { ++ return @"unknown"; ++ } ++ NSString* buildId = [[NSString alloc] initWithCString:(const char *)buffer.mutableBytes encoding:NSUTF8StringEncoding]; ++ return buildId; ++#endif ++} ++ ++@end +diff --git a/node_modules/react-native-device-info/lib/commonjs/fabric/NativeDeviceInfoModule.js b/node_modules/react-native-device-info/lib/commonjs/fabric/NativeDeviceInfoModule.js +new file mode 100644 +index 0000000..f5d7b6c +--- /dev/null ++++ b/node_modules/react-native-device-info/lib/commonjs/fabric/NativeDeviceInfoModule.js +@@ -0,0 +1,13 @@ ++"use strict"; ++ ++Object.defineProperty(exports, "__esModule", { ++ value: true ++}); ++exports.default = void 0; ++ ++var _reactNative = require("react-native"); ++ ++var _default = _reactNative.TurboModuleRegistry.get('RNDeviceInfo'); ++ ++exports.default = _default; ++//# sourceMappingURL=NativeDeviceInfoModule.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/commonjs/fabric/NativeDeviceInfoModule.js.map b/node_modules/react-native-device-info/lib/commonjs/fabric/NativeDeviceInfoModule.js.map +new file mode 100644 +index 0000000..e0d9c9d +--- /dev/null ++++ b/node_modules/react-native-device-info/lib/commonjs/fabric/NativeDeviceInfoModule.js.map +@@ -0,0 +1 @@ ++{"version":3,"sources":["NativeDeviceInfoModule.ts"],"names":["TurboModuleRegistry","getEnforcing"],"mappings":";;;;;;;AAAA;;eAuJeA,iCAAoBC,YAApB,CAAuC,cAAvC,C","sourcesContent":["import { TurboModuleRegistry, TurboModule } from 'react-native';\n\nexport interface Spec extends TurboModule {\n getPowerState: () => Promise<{\n batteryLevel: number;\n batteryState: string;\n lowPowerMode: boolean;\n }>;\n getPowerStateSync: () => {\n batteryLevel: number;\n batteryState: string;\n lowPowerMode: boolean;\n }; // should be PowerState\n getSupported32BitAbis: () => Promise;\n getSupported32BitAbisSync: () => string[];\n getSupported64BitAbis: () => Promise;\n getSupported64BitAbisSync: () => string[];\n getSupportedAbis: () => Promise;\n getSupportedAbisSync: () => string[];\n getSystemManufacturer: () => Promise;\n getSystemManufacturerSync: () => string;\n getAndroidId: () => Promise;\n getAndroidIdSync: () => string;\n getApiLevel: () => Promise;\n getApiLevelSync: () => number;\n getAvailableLocationProviders: () => Promise;\n getAvailableLocationProvidersSync: () => Object; // should be LocationProviderInfo\n getBaseOs: () => Promise;\n getBaseOsSync: () => string;\n getBatteryLevel: () => Promise;\n getBatteryLevelSync: () => number;\n getBootloader: () => Promise;\n getBootloaderSync: () => string;\n getBuildId: () => Promise;\n getBuildIdSync: () => string;\n getCarrier: () => Promise;\n getCarrierSync: () => string;\n getCodename: () => Promise;\n getCodenameSync: () => string;\n getDevice: () => Promise;\n getDeviceName: () => Promise;\n getDeviceNameSync: () => string;\n getDeviceSync: () => string;\n getDeviceToken: () => Promise;\n getDisplay: () => Promise;\n getDisplaySync: () => string;\n getFingerprint: () => Promise;\n getFingerprintSync: () => string;\n getFirstInstallTime: () => Promise;\n getFirstInstallTimeSync: () => number;\n getFontScale: () => Promise;\n getFontScaleSync: () => number;\n getFreeDiskStorage: () => Promise;\n getFreeDiskStorageOld: () => Promise;\n getFreeDiskStorageSync: () => number;\n getFreeDiskStorageOldSync: () => number;\n getHardware: () => Promise;\n getHardwareSync: () => string;\n getHost: () => Promise;\n getHostSync: () => string;\n getIncremental: () => Promise;\n getIncrementalSync: () => string;\n getInstallerPackageName: () => Promise;\n getInstallerPackageNameSync: () => string;\n getInstallReferrer: () => Promise;\n getInstallReferrerSync: () => string;\n getInstanceId: () => Promise;\n getInstanceIdSync: () => string;\n getIpAddress: () => Promise;\n getIpAddressSync: () => string;\n getLastUpdateTime: () => Promise;\n getLastUpdateTimeSync: () => number;\n getMacAddress: () => Promise;\n getMacAddressSync: () => string;\n getMaxMemory: () => Promise;\n getMaxMemorySync: () => number;\n getPhoneNumber: () => Promise;\n getPhoneNumberSync: () => string;\n getPreviewSdkInt: () => Promise;\n getPreviewSdkIntSync: () => number;\n getProduct: () => Promise;\n getProductSync: () => string;\n getSecurityPatch: () => Promise;\n getSecurityPatchSync: () => string;\n getSerialNumber: () => Promise;\n getSerialNumberSync: () => string;\n getSystemAvailableFeatures: () => Promise;\n getSystemAvailableFeaturesSync: () => string[];\n getTags: () => Promise;\n getTagsSync: () => string;\n getTotalDiskCapacity: () => Promise;\n getTotalDiskCapacityOld: () => Promise;\n getTotalDiskCapacitySync: () => number;\n getTotalDiskCapacityOldSync: () => number;\n getTotalMemory: () => Promise;\n getTotalMemorySync: () => number;\n getType: () => Promise;\n getTypeSync: () => string;\n getUniqueId: () => Promise;\n getUniqueIdSync: () => string;\n getUsedMemory: () => Promise;\n getUsedMemorySync: () => number;\n getUserAgent: () => Promise;\n getUserAgentSync: () => string;\n getBrightness: () => Promise;\n getBrightnessSync: () => number;\n hasGms: () => Promise;\n hasGmsSync: () => boolean;\n hasHms: () => Promise;\n hasHmsSync: () => boolean;\n hasSystemFeature: (feature: string) => Promise;\n hasSystemFeatureSync: (feature: string) => boolean;\n isAirplaneMode: () => Promise;\n isAirplaneModeSync: () => boolean;\n isBatteryCharging: () => Promise;\n isBatteryChargingSync: () => boolean;\n isCameraPresent: () => Promise;\n isCameraPresentSync: () => boolean;\n isEmulator: () => Promise;\n isEmulatorSync: () => boolean;\n isHeadphonesConnected: () => Promise;\n isHeadphonesConnectedSync: () => boolean;\n isLocationEnabled: () => Promise;\n isLocationEnabledSync: () => boolean;\n isPinOrFingerprintSet: () => Promise;\n isPinOrFingerprintSetSync: () => boolean;\n isMouseConnected: () => Promise;\n isMouseConnectedSync: () => boolean;\n isKeyboardConnected: () => Promise;\n isKeyboardConnectedSync: () => boolean;\n isTabletMode: () => Promise;\n syncUniqueId: () => Promise;\n\n addListener(eventName: string): void;\n removeListeners(count: number): void;\n getConstants(): {\n appName: string;\n appVersion: string;\n brand: string;\n buildNumber: string;\n bundleId: string;\n deviceId: string;\n deviceType: string;\n isTablet: boolean;\n isDisplayZoomed?: boolean;\n model: string;\n systemName: string;\n systemVersion: string;\n };\n}\n\nexport default TurboModuleRegistry.getEnforcing('RNDeviceInfo');\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/commonjs/index.js b/node_modules/react-native-device-info/lib/commonjs/index.js +index b305e00..46d3643 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/index.js ++++ b/node_modules/react-native-device-info/lib/commonjs/index.js +@@ -3,34 +3,43 @@ + Object.defineProperty(exports, "__esModule", { + value: true + }); +-exports.syncUniqueId = syncUniqueId; ++exports.getDeviceSync = exports.getDeviceNameSync = exports.getDeviceName = exports.getDeviceId = exports.getDevice = exports.getCodenameSync = exports.getCodename = exports.getCarrierSync = exports.getCarrier = exports.getBundleId = exports.getBuildNumber = exports.getBuildIdSync = exports.getBuildId = exports.getBrightnessSync = exports.getBrightness = exports.getBrand = exports.getBootloaderSync = exports.getBootloader = exports.getBatteryLevelSync = exports.getBatteryLevel = exports.getBaseOsSync = exports.getBaseOs = exports.getAvailableLocationProvidersSync = exports.getAvailableLocationProviders = exports.getApplicationName = exports.getApiLevelSync = exports.getApiLevel = exports.getAndroidIdSync = exports.getAndroidId = exports.default = void 0; ++exports.getDeviceToken = getDeviceToken; ++exports.getFreeDiskStorage = exports.getFontScaleSync = exports.getFontScale = exports.getFirstInstallTimeSync = exports.getFirstInstallTime = exports.getFingerprintSync = exports.getFingerprint = exports.getDisplaySync = exports.getDisplay = exports.getDeviceTypeSync = exports.getDeviceType = void 0; ++exports.getFreeDiskStorageOld = getFreeDiskStorageOld; ++exports.getFreeDiskStorageOldSync = getFreeDiskStorageOldSync; ++exports.getLastUpdateTimeSync = exports.getLastUpdateTime = exports.getIpAddressSync = exports.getIpAddress = exports.getInstanceIdSync = exports.getInstanceId = exports.getInstallerPackageNameSync = exports.getInstallerPackageName = exports.getInstallReferrerSync = exports.getInstallReferrer = exports.getIncrementalSync = exports.getIncremental = exports.getHostSync = exports.getHost = exports.getHardwareSync = exports.getHardware = exports.getFreeDiskStorageSync = void 0; + exports.getMacAddress = getMacAddress; + exports.getMacAddressSync = getMacAddressSync; ++exports.getProductSync = exports.getProduct = exports.getPreviewSdkIntSync = exports.getPreviewSdkInt = exports.getPowerStateSync = exports.getPowerState = exports.getPhoneNumberSync = exports.getPhoneNumber = exports.getModel = exports.getMaxMemorySync = exports.getMaxMemory = exports.getManufacturerSync = exports.getManufacturer = void 0; + exports.getReadableVersion = getReadableVersion; +-exports.hasNotch = hasNotch; +-exports.hasDynamicIsland = hasDynamicIsland; ++exports.getTotalDiskCapacity = exports.getTagsSync = exports.getTags = exports.getSystemVersion = exports.getSystemName = exports.getSystemAvailableFeaturesSync = exports.getSystemAvailableFeatures = exports.getSerialNumberSync = exports.getSerialNumber = exports.getSecurityPatchSync = exports.getSecurityPatch = void 0; + exports.getTotalDiskCapacityOld = getTotalDiskCapacityOld; + exports.getTotalDiskCapacityOldSync = getTotalDiskCapacityOldSync; +-exports.getFreeDiskStorageOld = getFreeDiskStorageOld; +-exports.getFreeDiskStorageOldSync = getFreeDiskStorageOldSync; +-exports.isLandscape = isLandscape; +-exports.isLandscapeSync = isLandscapeSync; ++exports.getUserAgent = exports.getUsedMemorySync = exports.getUsedMemory = exports.getUniqueIdSync = exports.getUniqueId = exports.getTypeSync = exports.getType = exports.getTotalMemorySync = exports.getTotalMemory = exports.getTotalDiskCapacitySync = void 0; ++exports.getVersion = exports.getUserAgentSync = exports.getUserAgent = exports.getUsedMemorySync = exports.getUsedMemory = exports.getUniqueIdSync = exports.getUniqueId = exports.getTypeSync = exports.getType = exports.getTotalMemorySync = exports.getTotalMemory = exports.getTotalDiskCapacitySync = void 0; ++exports.hasDynamicIsland = hasDynamicIsland; ++exports.hasHmsSync = exports.hasHms = exports.hasGmsSync = exports.hasGms = void 0; ++exports.hasNotch = hasNotch; + exports.hasSystemFeature = hasSystemFeature; + exports.hasSystemFeatureSync = hasSystemFeatureSync; ++exports.isKeyboardConnectedSync = exports.isKeyboardConnected = exports.isHeadphonesConnectedSync = exports.isHeadphonesConnected = exports.isEmulatorSync = exports.isEmulator = exports.isDisplayZoomed = exports.isCameraPresentSync = exports.isCameraPresent = exports.isBatteryChargingSync = exports.isBatteryCharging = exports.isAirplaneModeSync = exports.isAirplaneMode = void 0; ++exports.isLandscape = isLandscape; ++exports.isLandscapeSync = isLandscapeSync; ++exports.isLocationEnabledSync = exports.isLocationEnabled = void 0; + exports.isLowBatteryLevel = isLowBatteryLevel; +-exports.getDeviceToken = getDeviceToken; ++exports.supportedAbisSync = exports.supportedAbis = exports.supported64BitAbisSync = exports.supported64BitAbis = exports.supported32BitAbisSync = exports.supported32BitAbis = exports.isTabletMode = exports.isTablet = exports.isPinOrFingerprintSetSync = exports.isPinOrFingerprintSet = exports.isMouseConnectedSync = exports.isMouseConnected = void 0; ++exports.syncUniqueId = syncUniqueId; + exports.useBatteryLevel = useBatteryLevel; + exports.useBatteryLevelIsLow = useBatteryLevelIsLow; +-exports.usePowerState = usePowerState; +-exports.useIsHeadphonesConnected = useIsHeadphonesConnected; +-exports.useFirstInstallTime = useFirstInstallTime; ++exports.useBrightness = useBrightness; + exports.useDeviceName = useDeviceName; ++exports.useFirstInstallTime = useFirstInstallTime; + exports.useHasSystemFeature = useHasSystemFeature; + exports.useIsEmulator = useIsEmulator; ++exports.useIsHeadphonesConnected = useIsHeadphonesConnected; + exports.useManufacturer = useManufacturer; +-exports.useBrightness = useBrightness; +-exports.isAirplaneModeSync = exports.isAirplaneMode = exports.isBatteryChargingSync = exports.isBatteryCharging = exports.getPowerStateSync = exports.getPowerState = exports.getBatteryLevelSync = exports.getBatteryLevel = exports.getFreeDiskStorageSync = exports.getFreeDiskStorage = exports.getTotalDiskCapacitySync = exports.getTotalDiskCapacity = exports.getMaxMemorySync = exports.getMaxMemory = exports.getTotalMemorySync = exports.getTotalMemory = exports.getCarrierSync = exports.getCarrier = exports.getPhoneNumberSync = exports.getPhoneNumber = exports.getLastUpdateTimeSync = exports.getLastUpdateTime = exports.getInstallReferrerSync = exports.getInstallReferrer = exports.getFirstInstallTimeSync = exports.getFirstInstallTime = exports.hasHmsSync = exports.hasHms = exports.hasGmsSync = exports.hasGms = exports.isPinOrFingerprintSetSync = exports.isPinOrFingerprintSet = exports.isTablet = exports.isEmulatorSync = exports.isEmulator = exports.getIncrementalSync = exports.getIncremental = exports.getCodenameSync = exports.getCodename = exports.getSecurityPatchSync = exports.getSecurityPatch = exports.getPreviewSdkIntSync = exports.getPreviewSdkInt = exports.getBaseOsSync = exports.getBaseOs = exports.getTypeSync = exports.getType = exports.getTagsSync = exports.getTags = exports.getProductSync = exports.getProduct = exports.getHostSync = exports.getHost = exports.getHardwareSync = exports.getHardware = exports.getFingerprintSync = exports.getFingerprint = exports.getDisplaySync = exports.getDisplay = exports.getDeviceSync = exports.getDevice = exports.getBootloaderSync = exports.getBootloader = exports.getFontScaleSync = exports.getFontScale = exports.getUserAgentSync = exports.getUserAgent = exports.getUsedMemorySync = exports.getUsedMemory = exports.getDeviceNameSync = exports.getDeviceName = exports.getVersion = exports.getBuildNumber = exports.getApplicationName = exports.getInstallerPackageNameSync = exports.getInstallerPackageName = exports.getBundleId = exports.getApiLevelSync = exports.getApiLevel = exports.getBuildIdSync = exports.getBuildId = exports.getSystemVersion = exports.getSystemName = exports.getBrand = exports.getModel = exports.getManufacturerSync = exports.getManufacturer = exports.getDeviceId = exports.isCameraPresentSync = exports.isCameraPresent = exports.getIpAddressSync = exports.getIpAddress = exports.getAndroidIdSync = exports.getAndroidId = exports.getSerialNumberSync = exports.getSerialNumber = exports.getInstanceIdSync = exports.getInstanceId = exports.getUniqueIdSync = exports.getUniqueId = void 0; +-exports.default = exports.getBrightnessSync = exports.getBrightness = exports.getAvailableLocationProvidersSync = exports.getAvailableLocationProviders = exports.isTabletMode = exports.isKeyboardConnectedSync = exports.isKeyboardConnected = exports.isMouseConnectedSync = exports.isMouseConnected = exports.isHeadphonesConnectedSync = exports.isHeadphonesConnected = exports.isLocationEnabledSync = exports.isLocationEnabled = exports.getSystemAvailableFeaturesSync = exports.getSystemAvailableFeatures = exports.supported64BitAbisSync = exports.supported64BitAbis = exports.supported32BitAbisSync = exports.supported32BitAbis = exports.supportedAbisSync = exports.supportedAbis = exports.getDeviceTypeSync = exports.getDeviceType = void 0; ++exports.usePowerState = usePowerState; + + var _react = require("react"); + +@@ -48,6 +57,16 @@ var _supportedPlatformInfo = require("./internal/supported-platform-info"); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + ++let constants; ++ ++function getConstants() { ++ if (constants === undefined) { ++ constants = _nativeInterface.default.getConstants(); ++ } ++ ++ return constants; ++} ++ + const [getUniqueId, getUniqueIdSync] = (0, _supportedPlatformInfo.getSupportedPlatformInfoFunctions)({ + memoKey: 'uniqueId', + supportedPlatforms: ['android', 'ios', 'windows'], +@@ -136,7 +155,7 @@ function getMacAddressSync() { + const getDeviceId = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)({ + defaultValue: 'unknown', + memoKey: 'deviceId', +- getter: () => _nativeInterface.default.deviceId, ++ getter: () => getConstants().deviceId, + supportedPlatforms: ['android', 'ios', 'windows'] + }); + +@@ -155,7 +174,7 @@ const getModel = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)( + memoKey: 'model', + defaultValue: 'unknown', + supportedPlatforms: ['ios', 'android', 'windows'], +- getter: () => _nativeInterface.default.model ++ getter: () => getConstants().model + }); + + exports.getModel = getModel; +@@ -164,7 +183,7 @@ const getBrand = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)( + memoKey: 'brand', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => _nativeInterface.default.brand ++ getter: () => getConstants().brand + }); + + exports.getBrand = getBrand; +@@ -174,7 +193,7 @@ const getSystemName = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoS + supportedPlatforms: ['ios', 'android', 'windows'], + memoKey: 'systemName', + getter: () => _reactNative.Platform.select({ +- ios: _nativeInterface.default.systemName, ++ ios: getConstants().systemName, + android: 'Android', + windows: 'Windows', + default: 'unknown' +@@ -185,7 +204,7 @@ exports.getSystemName = getSystemName; + + const getSystemVersion = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)({ + defaultValue: 'unknown', +- getter: () => _nativeInterface.default.systemVersion, ++ getter: () => getConstants().systemVersion, + supportedPlatforms: ['android', 'ios', 'windows'], + memoKey: 'systemVersion' + }); +@@ -214,7 +233,7 @@ const getBundleId = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSyn + memoKey: 'bundleId', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => _nativeInterface.default.bundleId ++ getter: () => getConstants().bundleId + }); + + exports.getBundleId = getBundleId; +@@ -231,7 +250,7 @@ exports.getInstallerPackageName = getInstallerPackageName; + const getApplicationName = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)({ + memoKey: 'appName', + defaultValue: 'unknown', +- getter: () => _nativeInterface.default.appName, ++ getter: () => getConstants().appName, + supportedPlatforms: ['android', 'ios', 'windows'] + }); + +@@ -240,7 +259,7 @@ exports.getApplicationName = getApplicationName; + const getBuildNumber = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)({ + memoKey: 'buildNumber', + supportedPlatforms: ['android', 'ios', 'windows'], +- getter: () => _nativeInterface.default.buildNumber, ++ getter: () => getConstants().buildNumber, + defaultValue: 'unknown' + }); + +@@ -250,7 +269,7 @@ const getVersion = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync + memoKey: 'version', + defaultValue: 'unknown', + supportedPlatforms: ['android', 'ios', 'windows'], +- getter: () => _nativeInterface.default.appVersion ++ getter: () => getConstants().appVersion + }); + + exports.getVersion = getVersion; +@@ -441,10 +460,19 @@ const isTablet = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)( + defaultValue: false, + supportedPlatforms: ['android', 'ios', 'windows'], + memoKey: 'tablet', +- getter: () => _nativeInterface.default.isTablet ++ getter: () => getConstants().isTablet + }); + + exports.isTablet = isTablet; ++ ++const isDisplayZoomed = () => (0, _supportedPlatformInfo.getSupportedPlatformInfoSync)({ ++ defaultValue: false, ++ supportedPlatforms: ['ios'], ++ memoKey: 'zoomed', ++ getter: () => getConstants().isDisplayZoomed ++}); ++ ++exports.isDisplayZoomed = isDisplayZoomed; + const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = (0, _supportedPlatformInfo.getSupportedPlatformInfoFunctions)({ + supportedPlatforms: ['android', 'ios', 'windows'], + getter: () => _nativeInterface.default.isPinOrFingerprintSet(), +@@ -457,6 +485,8 @@ let notch; + + function hasNotch() { + if (notch === undefined) { ++ console.log(_nativeInterface.default); ++ + let _brand = getBrand(); + + let _model = getModel(); +@@ -676,7 +706,7 @@ const getDeviceType = () => { + memoKey: 'deviceType', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => _nativeInterface.default.deviceType ++ getter: () => getConstants().deviceType + }); + }; + +@@ -687,7 +717,7 @@ const getDeviceTypeSync = () => { + memoKey: 'deviceType', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => _nativeInterface.default.deviceType ++ getter: () => getConstants().deviceType + }); + }; + +@@ -817,7 +847,7 @@ async function getDeviceToken() { + return 'unknown'; + } + +-const deviceInfoEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.RNDeviceInfo); ++const deviceInfoEmitter = new _reactNative.NativeEventEmitter(_nativeInterface.default); + + function useBatteryLevel() { + const [batteryLevel, setBatteryLevel] = (0, _react.useState)(null); +@@ -1052,6 +1082,7 @@ const DeviceInfo = { + isKeyboardConnectedSync, + isTabletMode, + isTablet, ++ isDisplayZoomed, + supported32BitAbis, + supported32BitAbisSync, + supported64BitAbis, +diff --git a/node_modules/react-native-device-info/lib/commonjs/index.js.flow b/node_modules/react-native-device-info/lib/commonjs/index.js.flow +index 02fbb10..fdb85b0 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/index.js.flow ++++ b/node_modules/react-native-device-info/lib/commonjs/index.js.flow +@@ -153,6 +153,7 @@ declare module.exports: { + isKeyboardConnectedSync: () => boolean, + isTabletMode: () => Promise, + isTablet: () => boolean, ++ isDisplayZoomed: () => boolean, + supported32BitAbis: () => Promise, + supported32BitAbisSync: () => string[], + supported64BitAbis: () => Promise, +diff --git a/node_modules/react-native-device-info/lib/commonjs/index.js.map b/node_modules/react-native-device-info/lib/commonjs/index.js.map +index dc07090..0d79f29 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/index.js.map ++++ b/node_modules/react-native-device-info/lib/commonjs/index.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["index.ts"],"names":["getUniqueId","getUniqueIdSync","memoKey","supportedPlatforms","getter","RNDeviceInfo","syncGetter","defaultValue","uniqueId","syncUniqueId","Platform","OS","getInstanceId","getInstanceIdSync","getSerialNumber","getSerialNumberSync","getAndroidId","getAndroidIdSync","getIpAddress","getIpAddressSync","isCameraPresent","isCameraPresentSync","getMacAddress","getMacAddressSync","getDeviceId","deviceId","getManufacturer","getManufacturerSync","Promise","resolve","getSystemManufacturer","getSystemManufacturerSync","getModel","model","getBrand","brand","getSystemName","select","ios","systemName","android","windows","default","getSystemVersion","systemVersion","getBuildId","getBuildIdSync","getApiLevel","getApiLevelSync","getBundleId","bundleId","getInstallerPackageName","getInstallerPackageNameSync","getApplicationName","appName","getBuildNumber","buildNumber","getVersion","appVersion","getReadableVersion","getDeviceName","getDeviceNameSync","getUsedMemory","getUsedMemorySync","getUserAgent","getUserAgentSync","getFontScale","getFontScaleSync","getBootloader","getBootloaderSync","getDevice","getDeviceSync","getDisplay","getDisplaySync","getFingerprint","getFingerprintSync","getHardware","getHardwareSync","getHost","getHostSync","getProduct","getProductSync","getTags","getTagsSync","getType","getTypeSync","getBaseOs","getBaseOsSync","getPreviewSdkInt","getPreviewSdkIntSync","getSecurityPatch","getSecurityPatchSync","getCodename","getCodenameSync","getIncremental","getIncrementalSync","isEmulator","isEmulatorSync","isTablet","isPinOrFingerprintSet","isPinOrFingerprintSetSync","notch","hasNotch","undefined","_brand","_model","devicesWithNotch","findIndex","item","toLowerCase","dynamicIsland","hasDynamicIsland","devicesWithDynamicIsland","hasGms","hasGmsSync","hasHms","hasHmsSync","getFirstInstallTime","getFirstInstallTimeSync","getInstallReferrer","getInstallReferrerSync","getLastUpdateTime","getLastUpdateTimeSync","getPhoneNumber","getPhoneNumberSync","getCarrier","getCarrierSync","getTotalMemory","getTotalMemorySync","getMaxMemory","getMaxMemorySync","getTotalDiskCapacity","getTotalDiskCapacitySync","getTotalDiskCapacityOld","getTotalDiskCapacityOldSync","getFreeDiskStorage","getFreeDiskStorageSync","getFreeDiskStorageOld","getFreeDiskStorageOldSync","getBatteryLevel","getBatteryLevelSync","getPowerState","getPowerStateSync","isBatteryCharging","isBatteryChargingSync","isLandscape","isLandscapeSync","height","width","Dimensions","get","isAirplaneMode","isAirplaneModeSync","getDeviceType","deviceType","getDeviceTypeSync","supportedAbis","supportedAbisSync","getSupportedAbis","getSupportedAbisSync","supported32BitAbis","supported32BitAbisSync","getSupported32BitAbis","getSupported32BitAbisSync","supported64BitAbis","supported64BitAbisSync","getSupported64BitAbis","getSupported64BitAbisSync","hasSystemFeature","feature","hasSystemFeatureSync","isLowBatteryLevel","level","getSystemAvailableFeatures","getSystemAvailableFeaturesSync","isLocationEnabled","isLocationEnabledSync","isHeadphonesConnected","isHeadphonesConnectedSync","isMouseConnected","isMouseConnectedSync","isKeyboardConnected","isKeyboardConnectedSync","isTabletMode","getAvailableLocationProviders","getAvailableLocationProvidersSync","getBrightness","getBrightnessSync","getDeviceToken","deviceInfoEmitter","NativeEventEmitter","NativeModules","useBatteryLevel","batteryLevel","setBatteryLevel","setInitialValue","initialValue","onChange","subscription","addListener","remove","useBatteryLevelIsLow","batteryLevelIsLow","setBatteryLevelIsLow","usePowerState","powerState","setPowerState","state","useIsHeadphonesConnected","useFirstInstallTime","useDeviceName","useHasSystemFeature","asyncGetter","useIsEmulator","useManufacturer","useBrightness","brightness","setBrightness","value","DeviceInfo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAaO,MAAM,CAACA,WAAD,EAAcC,eAAd,IAAiC,8DAAkC;AAC9EC,EAAAA,OAAO,EAAE,UADqE;AAE9EC,EAAAA,kBAAkB,EAAE,CAAC,SAAD,EAAY,KAAZ,EAAmB,SAAnB,CAF0D;AAG9EC,EAAAA,MAAM,EAAE,MAAMC,yBAAaL,WAAb,EAHgE;AAI9EM,EAAAA,UAAU,EAAE,MAAMD,yBAAaJ,eAAb,EAJ4D;AAK9EM,EAAAA,YAAY,EAAE;AALgE,CAAlC,CAAvC;;;AAQP,IAAIC,QAAJ;;AACO,e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C;AAgJnCT,EAAAA,aAhJmC;AAiJnCU,EAAAA,eAjJmC;AAkJnCN,EAAAA,wBAlJmC;AAmJnCO,EAAAA;AAnJmC,CAArC;eAsJeI,U","sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport { Dimensions, NativeEventEmitter, NativeModules, Platform } from 'react-native';\nimport { useOnEvent, useOnMount } from './internal/asyncHookWrappers';\nimport devicesWithDynamicIsland from \"./internal/devicesWithDynamicIsland\";\nimport devicesWithNotch from './internal/devicesWithNotch';\nimport RNDeviceInfo from './internal/nativeInterface';\nimport {\n getSupportedPlatformInfoAsync,\n getSupportedPlatformInfoFunctions,\n getSupportedPlatformInfoSync,\n} from './internal/supported-platform-info';\nimport { DeviceInfoModule } from './internal/privateTypes';\nimport type {\n AsyncHookResult,\n DeviceType,\n LocationProviderInfo,\n PowerState,\n} from './internal/types';\n\nexport const [getUniqueId, getUniqueIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'uniqueId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getUniqueId(),\n syncGetter: () => RNDeviceInfo.getUniqueIdSync(),\n defaultValue: 'unknown',\n});\n\nlet uniqueId: string;\nexport async function syncUniqueId() {\n if (Platform.OS === 'ios') {\n uniqueId = await RNDeviceInfo.syncUniqueId();\n } else {\n uniqueId = await getUniqueId();\n }\n return uniqueId;\n}\n\nexport const [getInstanceId, getInstanceIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'instanceId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getInstanceId(),\n syncGetter: () => RNDeviceInfo.getInstanceIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getSerialNumber, getSerialNumberSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'serialNumber',\n supportedPlatforms: ['android', 'windows'],\n getter: () => RNDeviceInfo.getSerialNumber(),\n syncGetter: () => RNDeviceInfo.getSerialNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getAndroidId, getAndroidIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'androidId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getAndroidId(),\n syncGetter: () => RNDeviceInfo.getAndroidIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIpAddress, getIpAddressSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getIpAddress(),\n syncGetter: () => RNDeviceInfo.getIpAddressSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isCameraPresent, isCameraPresentSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.isCameraPresent(),\n syncGetter: () => RNDeviceInfo.isCameraPresentSync(),\n defaultValue: false,\n});\n\nexport async function getMacAddress() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddress();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport function getMacAddressSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddressSync();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport const getDeviceId = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n memoKey: 'deviceId',\n getter: () => RNDeviceInfo.deviceId,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const [getManufacturer, getManufacturerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'manufacturer',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () =>\n Platform.OS == 'ios' ? Promise.resolve('Apple') : RNDeviceInfo.getSystemManufacturer(),\n syncGetter: () => (Platform.OS == 'ios' ? 'Apple' : RNDeviceInfo.getSystemManufacturerSync()),\n defaultValue: 'unknown',\n});\n\nexport const getModel = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'model',\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n getter: () => RNDeviceInfo.model,\n });\n\nexport const getBrand = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'brand',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.brand,\n });\n\nexport const getSystemName = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n memoKey: 'systemName',\n getter: () =>\n Platform.select({\n ios: RNDeviceInfo.systemName,\n android: 'Android',\n windows: 'Windows',\n default: 'unknown',\n }),\n });\n\nexport const getSystemVersion = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.systemVersion,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'systemVersion',\n });\n\nexport const [getBuildId, getBuildIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'buildId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getBuildId(),\n syncGetter: () => RNDeviceInfo.getBuildIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getApiLevel, getApiLevelSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'apiLevel',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getApiLevel(),\n syncGetter: () => RNDeviceInfo.getApiLevelSync(),\n defaultValue: -1,\n});\n\nexport const getBundleId = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'bundleId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.bundleId,\n });\n\nexport const [\n getInstallerPackageName,\n getInstallerPackageNameSync,\n] = getSupportedPlatformInfoFunctions({\n memoKey: 'installerPackageName',\n supportedPlatforms: ['android', 'windows', 'ios'],\n getter: () => RNDeviceInfo.getInstallerPackageName(),\n syncGetter: () => RNDeviceInfo.getInstallerPackageNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const getApplicationName = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'appName',\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.appName,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const getBuildNumber = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'buildNumber',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.buildNumber,\n defaultValue: 'unknown',\n });\n\nexport const getVersion = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'version',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.appVersion,\n });\n\nexport function getReadableVersion() {\n return getVersion() + '.' + getBuildNumber();\n}\n\nexport const [getDeviceName, getDeviceNameSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getDeviceName(),\n syncGetter: () => RNDeviceInfo.getDeviceNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getUsedMemory, getUsedMemorySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getUsedMemory(),\n syncGetter: () => RNDeviceInfo.getUsedMemorySync(),\n defaultValue: -1,\n});\n\nexport const getUserAgent = () =>\n getSupportedPlatformInfoAsync({\n memoKey: 'userAgent',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.getUserAgent(),\n });\n\nexport const getUserAgentSync = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'userAgentSync',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.getUserAgentSync(),\n });\n\nexport const [getFontScale, getFontScaleSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFontScale(),\n syncGetter: () => RNDeviceInfo.getFontScaleSync(),\n defaultValue: -1,\n});\n\nexport const [getBootloader, getBootloaderSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'bootloader',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getBootloader(),\n syncGetter: () => RNDeviceInfo.getBootloaderSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getDevice, getDeviceSync] = getSupportedPlatformInfoFunctions({\n getter: () => RNDeviceInfo.getDevice(),\n syncGetter: () => RNDeviceInfo.getDeviceSync(),\n defaultValue: 'unknown',\n memoKey: 'device',\n supportedPlatforms: ['android'],\n});\n\nexport const [getDisplay, getDisplaySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'display',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getDisplay(),\n syncGetter: () => RNDeviceInfo.getDisplaySync(),\n defaultValue: 'unknown',\n});\n\nexport const [getFingerprint, getFingerprintSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'fingerprint',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getFingerprint(),\n syncGetter: () => RNDeviceInfo.getFingerprintSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHardware, getHardwareSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'hardware',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHardware(),\n syncGetter: () => RNDeviceInfo.getHardwareSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHost, getHostSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'host',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHost(),\n syncGetter: () => RNDeviceInfo.getHostSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getProduct, getProductSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'product',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getProduct(),\n syncGetter: () => RNDeviceInfo.getProductSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTags, getTagsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'tags',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getTags(),\n syncGetter: () => RNDeviceInfo.getTagsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getType, getTypeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'type',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getType(),\n syncGetter: () => RNDeviceInfo.getTypeSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getBaseOs, getBaseOsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'baseOs',\n supportedPlatforms: ['android', 'web', 'windows'],\n getter: () => RNDeviceInfo.getBaseOs(),\n syncGetter: () => RNDeviceInfo.getBaseOsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getPreviewSdkInt, getPreviewSdkIntSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'previewSdkInt',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPreviewSdkInt(),\n syncGetter: () => RNDeviceInfo.getPreviewSdkIntSync(),\n defaultValue: -1,\n});\n\nexport const [getSecurityPatch, getSecurityPatchSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'securityPatch',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSecurityPatch(),\n syncGetter: () => RNDeviceInfo.getSecurityPatchSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCodename, getCodenameSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'codeName',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getCodename(),\n syncGetter: () => RNDeviceInfo.getCodenameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIncremental, getIncrementalSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'incremental',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getIncremental(),\n syncGetter: () => RNDeviceInfo.getIncrementalSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isEmulator, isEmulatorSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'emulator',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isEmulator(),\n syncGetter: () => RNDeviceInfo.isEmulatorSync(),\n defaultValue: false,\n});\n\nexport const isTablet = () =>\n getSupportedPlatformInfoSync({\n defaultValue: false,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'tablet',\n getter: () => RNDeviceInfo.isTablet,\n });\n\nexport const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isPinOrFingerprintSet(),\n syncGetter: () => RNDeviceInfo.isPinOrFingerprintSetSync(),\n defaultValue: false,\n }\n);\n\nlet notch: boolean;\nexport function hasNotch() {\n if (notch === undefined) {\n let _brand = getBrand();\n let _model = getModel();\n notch =\n devicesWithNotch.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return notch;\n}\n\nlet dynamicIsland: boolean;\nexport function hasDynamicIsland() {\n if (dynamicIsland === undefined) {\n let _brand = getBrand();\n let _model = getModel();\n dynamicIsland =\n devicesWithDynamicIsland.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return dynamicIsland;\n}\n\nexport const [hasGms, hasGmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasGms(),\n syncGetter: () => RNDeviceInfo.hasGmsSync(),\n defaultValue: false,\n});\n\nexport const [hasHms, hasHmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasHms(),\n syncGetter: () => RNDeviceInfo.hasHmsSync(),\n defaultValue: false,\n});\n\nexport const [getFirstInstallTime, getFirstInstallTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'firstInstallTime',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFirstInstallTime(),\n syncGetter: () => RNDeviceInfo.getFirstInstallTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getInstallReferrer, getInstallReferrerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'installReferrer',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getInstallReferrer(),\n syncGetter: () => RNDeviceInfo.getInstallReferrerSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getLastUpdateTime, getLastUpdateTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'lastUpdateTime',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getLastUpdateTime(),\n syncGetter: () => RNDeviceInfo.getLastUpdateTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getPhoneNumber, getPhoneNumberSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPhoneNumber(),\n syncGetter: () => RNDeviceInfo.getPhoneNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCarrier, getCarrierSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getCarrier(),\n syncGetter: () => RNDeviceInfo.getCarrierSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTotalMemory, getTotalMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'totalMemory',\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalMemory(),\n syncGetter: () => RNDeviceInfo.getTotalMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getMaxMemory, getMaxMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'maxMemory',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getMaxMemory(),\n syncGetter: () => RNDeviceInfo.getMaxMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getTotalDiskCapacity, getTotalDiskCapacitySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalDiskCapacity(),\n syncGetter: () => RNDeviceInfo.getTotalDiskCapacitySync(),\n defaultValue: -1,\n});\n\nexport async function getTotalDiskCapacityOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacity();\n }\n\n return -1;\n}\n\nexport function getTotalDiskCapacityOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacitySync();\n }\n\n return -1;\n}\n\nexport const [getFreeDiskStorage, getFreeDiskStorageSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getFreeDiskStorage(),\n syncGetter: () => RNDeviceInfo.getFreeDiskStorageSync(),\n defaultValue: -1,\n});\n\nexport async function getFreeDiskStorageOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorage();\n }\n\n return -1;\n}\n\nexport function getFreeDiskStorageOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorageSync();\n }\n\n return -1;\n}\n\nexport const [getBatteryLevel, getBatteryLevelSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getBatteryLevel(),\n syncGetter: () => RNDeviceInfo.getBatteryLevelSync(),\n defaultValue: -1,\n});\n\nexport const [getPowerState, getPowerStateSync] = getSupportedPlatformInfoFunctions<\n Partial\n>({\n supportedPlatforms: ['ios', 'android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getPowerState(),\n syncGetter: () => RNDeviceInfo.getPowerStateSync(),\n defaultValue: {},\n});\n\nexport const [isBatteryCharging, isBatteryChargingSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.isBatteryCharging(),\n syncGetter: () => RNDeviceInfo.isBatteryChargingSync(),\n defaultValue: false,\n});\n\nexport async function isLandscape() {\n return Promise.resolve(isLandscapeSync());\n}\n\nexport function isLandscapeSync() {\n const { height, width } = Dimensions.get('window');\n return width >= height;\n}\n\nexport const [isAirplaneMode, isAirplaneModeSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.isAirplaneMode(),\n syncGetter: () => RNDeviceInfo.isAirplaneModeSync(),\n defaultValue: false,\n});\n\nexport const getDeviceType = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.deviceType,\n });\n};\n\nexport const getDeviceTypeSync = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.deviceType,\n });\n};\n\nexport const [supportedAbis, supportedAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supportedAbis',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getSupportedAbis(),\n syncGetter: () => RNDeviceInfo.getSupportedAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported32BitAbis, supported32BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported32BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported32BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported32BitAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported64BitAbis, supported64BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported64BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported64BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported64BitAbisSync(),\n defaultValue: [],\n});\n\nexport async function hasSystemFeature(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeature(feature);\n }\n return false;\n}\n\nexport function hasSystemFeatureSync(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeatureSync(feature);\n }\n return false;\n}\n\nexport function isLowBatteryLevel(level: number): boolean {\n if (Platform.OS === 'android') {\n return level < 0.15;\n }\n return level < 0.2;\n}\n\nexport const [\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSystemAvailableFeatures(),\n syncGetter: () => RNDeviceInfo.getSystemAvailableFeaturesSync(),\n defaultValue: [] as string[],\n});\n\nexport const [isLocationEnabled, isLocationEnabledSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.isLocationEnabled(),\n syncGetter: () => RNDeviceInfo.isLocationEnabledSync(),\n defaultValue: false,\n});\n\nexport const [isHeadphonesConnected, isHeadphonesConnectedSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.isHeadphonesConnected(),\n syncGetter: () => RNDeviceInfo.isHeadphonesConnectedSync(),\n defaultValue: false,\n }\n);\n\nexport const [isMouseConnected, isMouseConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isMouseConnected(),\n syncGetter: () => RNDeviceInfo.isMouseConnectedSync(),\n defaultValue: false,\n});\n\nexport const [isKeyboardConnected, isKeyboardConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isKeyboardConnected(),\n syncGetter: () => RNDeviceInfo.isKeyboardConnectedSync(),\n defaultValue: false,\n});\n\nexport const isTabletMode = () =>\n getSupportedPlatformInfoAsync({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isTabletMode(),\n defaultValue: false,\n });\n\nexport const [\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getAvailableLocationProviders(),\n syncGetter: () => RNDeviceInfo.getAvailableLocationProvidersSync(),\n defaultValue: {},\n});\n\nexport const [getBrightness, getBrightnessSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['ios'],\n getter: () => RNDeviceInfo.getBrightness(),\n syncGetter: () => RNDeviceInfo.getBrightnessSync(),\n defaultValue: -1,\n});\n\nexport async function getDeviceToken() {\n if (Platform.OS === 'ios') {\n return RNDeviceInfo.getDeviceToken();\n }\n return 'unknown';\n}\n\nconst deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\nexport function useBatteryLevel(): number | null {\n const [batteryLevel, setBatteryLevel] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n setBatteryLevel(initialValue);\n };\n\n const onChange = (level: number) => {\n setBatteryLevel(level);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_batteryLevelDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevel;\n}\n\nexport function useBatteryLevelIsLow(): number | null {\n const [batteryLevelIsLow, setBatteryLevelIsLow] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n isLowBatteryLevel(initialValue) && setBatteryLevelIsLow(initialValue);\n };\n\n setInitialValue();\n\n const onChange = (level: number) => {\n setBatteryLevelIsLow(level);\n };\n\n const subscription = deviceInfoEmitter.addListener('RNDeviceInfo_batteryLevelIsLow', onChange);\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevelIsLow;\n}\n\nexport function usePowerState(): Partial {\n const [powerState, setPowerState] = useState>({});\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: Partial = await getPowerState();\n setPowerState(initialValue);\n };\n\n const onChange = (state: PowerState) => {\n setPowerState(state);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_powerStateDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return powerState;\n}\n\nexport function useIsHeadphonesConnected(): AsyncHookResult {\n return useOnEvent('RNDeviceInfo_headphoneConnectionDidChange', isHeadphonesConnected, false);\n}\n\nexport function useFirstInstallTime(): AsyncHookResult {\n return useOnMount(getFirstInstallTime, -1);\n}\n\nexport function useDeviceName(): AsyncHookResult {\n return useOnMount(getDeviceName, 'unknown');\n}\n\nexport function useHasSystemFeature(feature: string): AsyncHookResult {\n const asyncGetter = useCallback(() => hasSystemFeature(feature), [feature]);\n return useOnMount(asyncGetter, false);\n}\n\nexport function useIsEmulator(): AsyncHookResult {\n return useOnMount(isEmulator, false);\n}\n\nexport function useManufacturer(): AsyncHookResult {\n return useOnMount(getManufacturer, 'unknown');\n}\n\nexport function useBrightness(): number | null {\n const [brightness, setBrightness] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBrightness();\n setBrightness(initialValue);\n };\n\n const onChange = (value: number) => {\n setBrightness(value);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_brightnessDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return brightness;\n}\n\nexport type { AsyncHookResult, DeviceType, LocationProviderInfo, PowerState };\n\nconst DeviceInfo: DeviceInfoModule = {\n getAndroidId,\n getAndroidIdSync,\n getApiLevel,\n getApiLevelSync,\n getApplicationName,\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n getBaseOs,\n getBaseOsSync,\n getBatteryLevel,\n getBatteryLevelSync,\n getBootloader,\n getBootloaderSync,\n getBrand,\n getBuildId,\n getBuildIdSync,\n getBuildNumber,\n getBundleId,\n getCarrier,\n getCarrierSync,\n getCodename,\n getCodenameSync,\n getDevice,\n getDeviceId,\n getDeviceName,\n getDeviceNameSync,\n getDeviceSync,\n getDeviceToken,\n getDeviceType,\n getDisplay,\n getDisplaySync,\n getFingerprint,\n getFingerprintSync,\n getFirstInstallTime,\n getFirstInstallTimeSync,\n getFontScale,\n getFontScaleSync,\n getFreeDiskStorage,\n getFreeDiskStorageOld,\n getFreeDiskStorageSync,\n getFreeDiskStorageOldSync,\n getHardware,\n getHardwareSync,\n getHost,\n getHostSync,\n getIncremental,\n getIncrementalSync,\n getInstallerPackageName,\n getInstallerPackageNameSync,\n getInstallReferrer,\n getInstallReferrerSync,\n getInstanceId,\n getInstanceIdSync,\n getIpAddress,\n getIpAddressSync,\n getLastUpdateTime,\n getLastUpdateTimeSync,\n getMacAddress,\n getMacAddressSync,\n getManufacturer,\n getManufacturerSync,\n getMaxMemory,\n getMaxMemorySync,\n getModel,\n getPhoneNumber,\n getPhoneNumberSync,\n getPowerState,\n getPowerStateSync,\n getPreviewSdkInt,\n getPreviewSdkIntSync,\n getProduct,\n getProductSync,\n getReadableVersion,\n getSecurityPatch,\n getSecurityPatchSync,\n getSerialNumber,\n getSerialNumberSync,\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n getSystemName,\n getSystemVersion,\n getTags,\n getTagsSync,\n getTotalDiskCapacity,\n getTotalDiskCapacityOld,\n getTotalDiskCapacitySync,\n getTotalDiskCapacityOldSync,\n getTotalMemory,\n getTotalMemorySync,\n getType,\n getTypeSync,\n getUniqueId,\n getUniqueIdSync,\n getUsedMemory,\n getUsedMemorySync,\n getUserAgent,\n getUserAgentSync,\n getVersion,\n getBrightness,\n getBrightnessSync,\n hasGms,\n hasGmsSync,\n hasHms,\n hasHmsSync,\n hasNotch,\n hasDynamicIsland,\n hasSystemFeature,\n hasSystemFeatureSync,\n isAirplaneMode,\n isAirplaneModeSync,\n isBatteryCharging,\n isBatteryChargingSync,\n isCameraPresent,\n isCameraPresentSync,\n isEmulator,\n isEmulatorSync,\n isHeadphonesConnected,\n isHeadphonesConnectedSync,\n isLandscape,\n isLandscapeSync,\n isLocationEnabled,\n isLocationEnabledSync,\n isPinOrFingerprintSet,\n isPinOrFingerprintSetSync,\n isMouseConnected,\n isMouseConnectedSync,\n isKeyboardConnected,\n isKeyboardConnectedSync,\n isTabletMode,\n isTablet,\n supported32BitAbis,\n supported32BitAbisSync,\n supported64BitAbis,\n supported64BitAbisSync,\n supportedAbis,\n supportedAbisSync,\n syncUniqueId,\n useBatteryLevel,\n useBatteryLevelIsLow,\n useDeviceName,\n useFirstInstallTime,\n useHasSystemFeature,\n useIsEmulator,\n usePowerState,\n useManufacturer,\n useIsHeadphonesConnected,\n useBrightness,\n};\n\nexport default DeviceInfo;\n"]} +\ No newline at end of file ++{"version":3,"sources":["index.ts"],"names":["constants","getConstants","undefined","RNDeviceInfo","getUniqueId","getUniqueIdSync","memoKey","supportedPlatforms","getter","syncGetter","defaultValue","uniqueId","syncUniqueId","Platform","OS","getInstanceId","getInstanceIdSync","getSerialNumber","getSerialNumberSync","getAndroidId","getAndroidIdSync","getIpAddress","getIpAddressSync","isCameraPresent","isCameraPresentSync","getMacAddress","getMacAddressSync","getDeviceId","deviceId","getManufacturer","getManufacturerSync","Promise","resolve","getSystemManufacturer","getSystemManufacturerSync","getModel","model","getBrand","brand","getSystemName","select","ios","systemName","android","windows","default","getSystemVersion","systemVersion","getBuildId","getBuildIdSync","getApiLevel","getApiLevelSync","getBundleId","bundleId","getInstallerPackageName","getInstallerPackageNameSync","getApplicationName","appName","getBuildNumber","buildNumber","getVersion","appVersion","getReadableVersion","getDeviceName","getDeviceNameSync","getUsedMemory","getUsedMemorySync","getUserAgent","getUserAgentSync","getFontScale","getFontScaleSync","getBootloader","getBootloaderSync","getDevice","getDeviceSync","getDisplay","getDisplaySync","getFingerprint","getFingerprintSync","getHardware","getHardwareSync","getHost","getHostSync","getProduct","getProductSync","getTags","getTagsSync","getType","getTypeSync","getBaseOs","getBaseOsSync","getPreviewSdkInt","getPreviewSdkIntSync","getSecurityPatch","getSecurityPatchSync","getCodename","getCodenameSync","getIncremental","getIncrementalSync","isEmulator","isEmulatorSync","isTablet","isDisplayZoomed","isPinOrFingerprintSet","isPinOrFingerprintSetSync","notch","hasNotch","console","log","_brand","_model","devicesWithNotch","findIndex","item","toLowerCase","dynamicIsland","hasDynamicIsland","devicesWithDynamicIsland","hasGms","hasGmsSync","hasHms","hasHmsSync","getFirstInstallTime","getFirstInstallTimeSync","getInstallReferrer","getInstallReferrerSync","getLastUpdateTime","getLastUpdateTimeSync","getPhoneNumber","getPhoneNumberSync","getCarrier","getCarrierSync","getTotalMemory","getTotalMemorySync","getMaxMemory","getMaxMemorySync","getTotalDiskCapacity","getTotalDiskCapacitySync","getTotalDiskCapacityOld","getTotalDiskCapacityOldSync","getFreeDiskStorage","getFreeDiskStorageSync","getFreeDiskStorageOld","getFreeDiskStorageOldSync","getBatteryLevel","getBatteryLevelSync","getPowerState","getPowerStateSync","isBatteryCharging","isBatteryChargingSync","isLandscape","isLandscapeSync","height","width","Dimensions","get","isAirplaneMode","isAirplaneModeSync","getDeviceType","deviceType","getDeviceTypeSync","supportedAbis","supportedAbisSync","getSupportedAbis","getSupportedAbisSync","supported32BitAbis","supported32BitAbisSync","getSupported32BitAbis","getSupported32BitAbisSync","supported64BitAbis","supported64BitAbisSync","getSupported64BitAbis","getSupported64BitAbisSync","hasSystemFeature","feature","hasSystemFeatureSync","isLowBatteryLevel","level","getSystemAvailableFeatures","getSystemAvailableFeaturesSync","isLocationEnabled","isLocationEnabledSync","isHeadphonesConnected","isHeadphonesConnectedSync","isMouseConnected","isMouseConnectedSync","isKeyboardConnected","isKeyboardConnectedSync","isTabletMode","getAvailableLocationProviders","getAvailableLocationProvidersSync","getBrightness","getBrightnessSync","getDeviceToken","deviceInfoEmitter","NativeEventEmitter","useBatteryLevel","batteryLevel","setBatteryLevel","setInitialValue","initialValue","onChange","subscription","addListener","remove","useBatteryLevelIsLow","batteryLevelIsLow","setBatteryLevelIsLow","usePowerState","powerState","setPowerState","state","useIsHeadphonesConnected","useFirstInstallTime","useDeviceName","useHasSystemFeature","asyncGetter","useIsEmulator","useManufacturer","useBrightness","brightness","setBrightness","value","DeviceInfo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAaA,IAAIA,SAAJ;;AAEA,SAASC,YAAT,GAAwB;AACtB,MAAID,SAAS,KAAKE,SAAlB,EAA6B;AAC3BF,IAAAA,SAAS,GAAGG,yBAAaF,YAAb,EAAZ;AACD;;AACD,SAAOD,SAAP;AACD;;AAEM,MAAM,CAACI,WAAD,EAAcC,eAAd,IAAiC,8DAAkC;AAC9EC,EAAAA,OAAO,EAAE,UADqE;AAE9EC,EAAAA,kBAAkB,EAAE,CAAC,SAAD,EAAY,KAAZ,EAAmB,SAAnB,CAF0D;AAG9EC,EAAAA,MAAM,EAAE,MAAML,yBAAaC,WAAb,EAHgE;AAI9EK,EAAAA,UAAU,EAAE,MAAMN,yBAAaE,eAAb,EAJ4D;AAK9EK,EAAAA,YAAY,EAAE;AALgE,CAAlC,CAAvC;;;AAQP,IAAIC,QAAJ;;AACO,eAAeC,YAAf,GAA8B;AACnC,MAAIC,sBAASC,EAAT,KAAgB,KAApB,EAA2B;AACzBH,IAAAA,QAAQ,GAAG,MAAMR,yBAAaS,YAAb,EAAjB;AACD,GAFD,MAEO;AACLD,IAAAA,QAAQ,GAAG,MAAMP,WAAW,EAA5B;AACD;;AACD,SAAOO,QAAP;AACD;;AAEM,MAAM,CAACI,aAAD,EAAgBC,iBAAhB,IAAqC,8DAAkC;AAClFV,EAAAA,OAAO,EAAE,YADyE;AAElFC,EAAAA,kBAAkB,EAA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;AAkJnCU,EAAAA,eAlJmC;AAmJnCN,EAAAA,wBAnJmC;AAoJnCO,EAAAA;AApJmC,CAArC;eAuJeI,U","sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport { Dimensions, NativeEventEmitter, Platform } from 'react-native';\nimport { useOnEvent, useOnMount } from './internal/asyncHookWrappers';\nimport devicesWithDynamicIsland from './internal/devicesWithDynamicIsland';\nimport devicesWithNotch from './internal/devicesWithNotch';\nimport RNDeviceInfo from './internal/nativeInterface';\nimport {\n getSupportedPlatformInfoAsync,\n getSupportedPlatformInfoFunctions,\n getSupportedPlatformInfoSync,\n} from './internal/supported-platform-info';\nimport { DeviceInfoModule, NativeConstants } from './internal/privateTypes';\nimport type {\n AsyncHookResult,\n DeviceType,\n LocationProviderInfo,\n PowerState,\n} from './internal/types';\n\nlet constants: NativeConstants;\n\nfunction getConstants() {\n if (constants === undefined) {\n constants = RNDeviceInfo.getConstants() as NativeConstants;\n }\n return constants;\n}\n\nexport const [getUniqueId, getUniqueIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'uniqueId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getUniqueId(),\n syncGetter: () => RNDeviceInfo.getUniqueIdSync(),\n defaultValue: 'unknown',\n});\n\nlet uniqueId: string;\nexport async function syncUniqueId() {\n if (Platform.OS === 'ios') {\n uniqueId = await RNDeviceInfo.syncUniqueId();\n } else {\n uniqueId = await getUniqueId();\n }\n return uniqueId;\n}\n\nexport const [getInstanceId, getInstanceIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'instanceId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getInstanceId(),\n syncGetter: () => RNDeviceInfo.getInstanceIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getSerialNumber, getSerialNumberSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'serialNumber',\n supportedPlatforms: ['android', 'windows'],\n getter: () => RNDeviceInfo.getSerialNumber(),\n syncGetter: () => RNDeviceInfo.getSerialNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getAndroidId, getAndroidIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'androidId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getAndroidId(),\n syncGetter: () => RNDeviceInfo.getAndroidIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIpAddress, getIpAddressSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getIpAddress(),\n syncGetter: () => RNDeviceInfo.getIpAddressSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isCameraPresent, isCameraPresentSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.isCameraPresent(),\n syncGetter: () => RNDeviceInfo.isCameraPresentSync(),\n defaultValue: false,\n});\n\nexport async function getMacAddress() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddress();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport function getMacAddressSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddressSync();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport const getDeviceId = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n memoKey: 'deviceId',\n getter: () => getConstants().deviceId,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const [getManufacturer, getManufacturerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'manufacturer',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () =>\n Platform.OS == 'ios' ? Promise.resolve('Apple') : RNDeviceInfo.getSystemManufacturer(),\n syncGetter: () => (Platform.OS == 'ios' ? 'Apple' : RNDeviceInfo.getSystemManufacturerSync()),\n defaultValue: 'unknown',\n});\n\nexport const getModel = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'model',\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n getter: () => getConstants().model,\n });\n\nexport const getBrand = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'brand',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().brand,\n });\n\nexport const getSystemName = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n memoKey: 'systemName',\n getter: () =>\n Platform.select({\n ios: getConstants().systemName,\n android: 'Android',\n windows: 'Windows',\n default: 'unknown',\n }),\n });\n\nexport const getSystemVersion = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n getter: () => getConstants().systemVersion,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'systemVersion',\n });\n\nexport const [getBuildId, getBuildIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'buildId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getBuildId(),\n syncGetter: () => RNDeviceInfo.getBuildIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getApiLevel, getApiLevelSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'apiLevel',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getApiLevel(),\n syncGetter: () => RNDeviceInfo.getApiLevelSync(),\n defaultValue: -1,\n});\n\nexport const getBundleId = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'bundleId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().bundleId,\n });\n\nexport const [\n getInstallerPackageName,\n getInstallerPackageNameSync,\n] = getSupportedPlatformInfoFunctions({\n memoKey: 'installerPackageName',\n supportedPlatforms: ['android', 'windows', 'ios'],\n getter: () => RNDeviceInfo.getInstallerPackageName(),\n syncGetter: () => RNDeviceInfo.getInstallerPackageNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const getApplicationName = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'appName',\n defaultValue: 'unknown',\n getter: () => getConstants().appName,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const getBuildNumber = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'buildNumber',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => getConstants().buildNumber,\n defaultValue: 'unknown',\n });\n\nexport const getVersion = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'version',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => getConstants().appVersion,\n });\n\nexport function getReadableVersion() {\n return getVersion() + '.' + getBuildNumber();\n}\n\nexport const [getDeviceName, getDeviceNameSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getDeviceName(),\n syncGetter: () => RNDeviceInfo.getDeviceNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getUsedMemory, getUsedMemorySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getUsedMemory(),\n syncGetter: () => RNDeviceInfo.getUsedMemorySync(),\n defaultValue: -1,\n});\n\nexport const getUserAgent = () =>\n getSupportedPlatformInfoAsync({\n memoKey: 'userAgent',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.getUserAgent(),\n });\n\nexport const getUserAgentSync = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'userAgentSync',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.getUserAgentSync(),\n });\n\nexport const [getFontScale, getFontScaleSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFontScale(),\n syncGetter: () => RNDeviceInfo.getFontScaleSync(),\n defaultValue: -1,\n});\n\nexport const [getBootloader, getBootloaderSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'bootloader',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getBootloader(),\n syncGetter: () => RNDeviceInfo.getBootloaderSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getDevice, getDeviceSync] = getSupportedPlatformInfoFunctions({\n getter: () => RNDeviceInfo.getDevice(),\n syncGetter: () => RNDeviceInfo.getDeviceSync(),\n defaultValue: 'unknown',\n memoKey: 'device',\n supportedPlatforms: ['android'],\n});\n\nexport const [getDisplay, getDisplaySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'display',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getDisplay(),\n syncGetter: () => RNDeviceInfo.getDisplaySync(),\n defaultValue: 'unknown',\n});\n\nexport const [getFingerprint, getFingerprintSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'fingerprint',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getFingerprint(),\n syncGetter: () => RNDeviceInfo.getFingerprintSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHardware, getHardwareSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'hardware',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHardware(),\n syncGetter: () => RNDeviceInfo.getHardwareSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHost, getHostSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'host',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHost(),\n syncGetter: () => RNDeviceInfo.getHostSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getProduct, getProductSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'product',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getProduct(),\n syncGetter: () => RNDeviceInfo.getProductSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTags, getTagsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'tags',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getTags(),\n syncGetter: () => RNDeviceInfo.getTagsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getType, getTypeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'type',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getType(),\n syncGetter: () => RNDeviceInfo.getTypeSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getBaseOs, getBaseOsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'baseOs',\n supportedPlatforms: ['android', 'web', 'windows'],\n getter: () => RNDeviceInfo.getBaseOs(),\n syncGetter: () => RNDeviceInfo.getBaseOsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getPreviewSdkInt, getPreviewSdkIntSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'previewSdkInt',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPreviewSdkInt(),\n syncGetter: () => RNDeviceInfo.getPreviewSdkIntSync(),\n defaultValue: -1,\n});\n\nexport const [getSecurityPatch, getSecurityPatchSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'securityPatch',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSecurityPatch(),\n syncGetter: () => RNDeviceInfo.getSecurityPatchSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCodename, getCodenameSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'codeName',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getCodename(),\n syncGetter: () => RNDeviceInfo.getCodenameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIncremental, getIncrementalSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'incremental',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getIncremental(),\n syncGetter: () => RNDeviceInfo.getIncrementalSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isEmulator, isEmulatorSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'emulator',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isEmulator(),\n syncGetter: () => RNDeviceInfo.isEmulatorSync(),\n defaultValue: false,\n});\n\nexport const isTablet = () =>\n getSupportedPlatformInfoSync({\n defaultValue: false,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'tablet',\n getter: () => getConstants().isTablet,\n });\n\nexport const isDisplayZoomed = () =>\n getSupportedPlatformInfoSync({\n defaultValue: false,\n supportedPlatforms: ['ios'],\n memoKey: 'zoomed',\n getter: () => getConstants().isDisplayZoomed,\n });\n\nexport const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isPinOrFingerprintSet(),\n syncGetter: () => RNDeviceInfo.isPinOrFingerprintSetSync(),\n defaultValue: false,\n }\n);\n\nlet notch: boolean;\nexport function hasNotch() {\n if (notch === undefined) {\n console.log(RNDeviceInfo);\n let _brand = getBrand();\n let _model = getModel();\n notch =\n devicesWithNotch.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return notch;\n}\n\nlet dynamicIsland: boolean;\nexport function hasDynamicIsland() {\n if (dynamicIsland === undefined) {\n let _brand = getBrand();\n let _model = getModel();\n dynamicIsland =\n devicesWithDynamicIsland.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return dynamicIsland;\n}\n\nexport const [hasGms, hasGmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasGms(),\n syncGetter: () => RNDeviceInfo.hasGmsSync(),\n defaultValue: false,\n});\n\nexport const [hasHms, hasHmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasHms(),\n syncGetter: () => RNDeviceInfo.hasHmsSync(),\n defaultValue: false,\n});\n\nexport const [getFirstInstallTime, getFirstInstallTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'firstInstallTime',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFirstInstallTime(),\n syncGetter: () => RNDeviceInfo.getFirstInstallTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getInstallReferrer, getInstallReferrerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'installReferrer',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getInstallReferrer(),\n syncGetter: () => RNDeviceInfo.getInstallReferrerSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getLastUpdateTime, getLastUpdateTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'lastUpdateTime',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getLastUpdateTime(),\n syncGetter: () => RNDeviceInfo.getLastUpdateTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getPhoneNumber, getPhoneNumberSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPhoneNumber(),\n syncGetter: () => RNDeviceInfo.getPhoneNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCarrier, getCarrierSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getCarrier(),\n syncGetter: () => RNDeviceInfo.getCarrierSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTotalMemory, getTotalMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'totalMemory',\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalMemory(),\n syncGetter: () => RNDeviceInfo.getTotalMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getMaxMemory, getMaxMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'maxMemory',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getMaxMemory(),\n syncGetter: () => RNDeviceInfo.getMaxMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getTotalDiskCapacity, getTotalDiskCapacitySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalDiskCapacity(),\n syncGetter: () => RNDeviceInfo.getTotalDiskCapacitySync(),\n defaultValue: -1,\n});\n\nexport async function getTotalDiskCapacityOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacity();\n }\n\n return -1;\n}\n\nexport function getTotalDiskCapacityOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacitySync();\n }\n\n return -1;\n}\n\nexport const [getFreeDiskStorage, getFreeDiskStorageSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getFreeDiskStorage(),\n syncGetter: () => RNDeviceInfo.getFreeDiskStorageSync(),\n defaultValue: -1,\n});\n\nexport async function getFreeDiskStorageOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorage();\n }\n\n return -1;\n}\n\nexport function getFreeDiskStorageOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorageSync();\n }\n\n return -1;\n}\n\nexport const [getBatteryLevel, getBatteryLevelSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getBatteryLevel(),\n syncGetter: () => RNDeviceInfo.getBatteryLevelSync(),\n defaultValue: -1,\n});\n\nexport const [getPowerState, getPowerStateSync] = getSupportedPlatformInfoFunctions<\n Partial\n>({\n supportedPlatforms: ['ios', 'android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getPowerState() as Promise>,\n syncGetter: () => RNDeviceInfo.getPowerStateSync() as Partial,\n defaultValue: {},\n});\n\nexport const [isBatteryCharging, isBatteryChargingSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.isBatteryCharging(),\n syncGetter: () => RNDeviceInfo.isBatteryChargingSync(),\n defaultValue: false,\n});\n\nexport async function isLandscape() {\n return Promise.resolve(isLandscapeSync());\n}\n\nexport function isLandscapeSync() {\n const { height, width } = Dimensions.get('window');\n return width >= height;\n}\n\nexport const [isAirplaneMode, isAirplaneModeSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.isAirplaneMode(),\n syncGetter: () => RNDeviceInfo.isAirplaneModeSync(),\n defaultValue: false,\n});\n\nexport const getDeviceType = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().deviceType,\n });\n};\n\nexport const getDeviceTypeSync = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().deviceType,\n });\n};\n\nexport const [supportedAbis, supportedAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supportedAbis',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getSupportedAbis(),\n syncGetter: () => RNDeviceInfo.getSupportedAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported32BitAbis, supported32BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported32BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported32BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported32BitAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported64BitAbis, supported64BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported64BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported64BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported64BitAbisSync(),\n defaultValue: [],\n});\n\nexport async function hasSystemFeature(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeature(feature);\n }\n return false;\n}\n\nexport function hasSystemFeatureSync(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeatureSync(feature);\n }\n return false;\n}\n\nexport function isLowBatteryLevel(level: number): boolean {\n if (Platform.OS === 'android') {\n return level < 0.15;\n }\n return level < 0.2;\n}\n\nexport const [\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSystemAvailableFeatures(),\n syncGetter: () => RNDeviceInfo.getSystemAvailableFeaturesSync(),\n defaultValue: [] as string[],\n});\n\nexport const [isLocationEnabled, isLocationEnabledSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.isLocationEnabled(),\n syncGetter: () => RNDeviceInfo.isLocationEnabledSync(),\n defaultValue: false,\n});\n\nexport const [isHeadphonesConnected, isHeadphonesConnectedSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.isHeadphonesConnected(),\n syncGetter: () => RNDeviceInfo.isHeadphonesConnectedSync(),\n defaultValue: false,\n }\n);\n\nexport const [isMouseConnected, isMouseConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isMouseConnected(),\n syncGetter: () => RNDeviceInfo.isMouseConnectedSync(),\n defaultValue: false,\n});\n\nexport const [isKeyboardConnected, isKeyboardConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isKeyboardConnected(),\n syncGetter: () => RNDeviceInfo.isKeyboardConnectedSync(),\n defaultValue: false,\n});\n\nexport const isTabletMode = () =>\n getSupportedPlatformInfoAsync({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isTabletMode(),\n defaultValue: false,\n });\n\nexport const [\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getAvailableLocationProviders() as Promise,\n syncGetter: () => RNDeviceInfo.getAvailableLocationProvidersSync() as LocationProviderInfo,\n defaultValue: {},\n});\n\nexport const [getBrightness, getBrightnessSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['ios'],\n getter: () => RNDeviceInfo.getBrightness(),\n syncGetter: () => RNDeviceInfo.getBrightnessSync(),\n defaultValue: -1,\n});\n\nexport async function getDeviceToken() {\n if (Platform.OS === 'ios') {\n return RNDeviceInfo.getDeviceToken();\n }\n return 'unknown';\n}\n\nconst deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo);\nexport function useBatteryLevel(): number | null {\n const [batteryLevel, setBatteryLevel] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n setBatteryLevel(initialValue);\n };\n\n const onChange = (level: number) => {\n setBatteryLevel(level);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_batteryLevelDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevel;\n}\n\nexport function useBatteryLevelIsLow(): number | null {\n const [batteryLevelIsLow, setBatteryLevelIsLow] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n isLowBatteryLevel(initialValue) && setBatteryLevelIsLow(initialValue);\n };\n\n setInitialValue();\n\n const onChange = (level: number) => {\n setBatteryLevelIsLow(level);\n };\n\n const subscription = deviceInfoEmitter.addListener('RNDeviceInfo_batteryLevelIsLow', onChange);\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevelIsLow;\n}\n\nexport function usePowerState(): Partial {\n const [powerState, setPowerState] = useState>({});\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: Partial = await getPowerState();\n setPowerState(initialValue);\n };\n\n const onChange = (state: PowerState) => {\n setPowerState(state);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_powerStateDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return powerState;\n}\n\nexport function useIsHeadphonesConnected(): AsyncHookResult {\n return useOnEvent('RNDeviceInfo_headphoneConnectionDidChange', isHeadphonesConnected, false);\n}\n\nexport function useFirstInstallTime(): AsyncHookResult {\n return useOnMount(getFirstInstallTime, -1);\n}\n\nexport function useDeviceName(): AsyncHookResult {\n return useOnMount(getDeviceName, 'unknown');\n}\n\nexport function useHasSystemFeature(feature: string): AsyncHookResult {\n const asyncGetter = useCallback(() => hasSystemFeature(feature), [feature]);\n return useOnMount(asyncGetter, false);\n}\n\nexport function useIsEmulator(): AsyncHookResult {\n return useOnMount(isEmulator, false);\n}\n\nexport function useManufacturer(): AsyncHookResult {\n return useOnMount(getManufacturer, 'unknown');\n}\n\nexport function useBrightness(): number | null {\n const [brightness, setBrightness] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBrightness();\n setBrightness(initialValue);\n };\n\n const onChange = (value: number) => {\n setBrightness(value);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_brightnessDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return brightness;\n}\n\nexport type { AsyncHookResult, DeviceType, LocationProviderInfo, PowerState };\n\nconst DeviceInfo: DeviceInfoModule = {\n getAndroidId,\n getAndroidIdSync,\n getApiLevel,\n getApiLevelSync,\n getApplicationName,\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n getBaseOs,\n getBaseOsSync,\n getBatteryLevel,\n getBatteryLevelSync,\n getBootloader,\n getBootloaderSync,\n getBrand,\n getBuildId,\n getBuildIdSync,\n getBuildNumber,\n getBundleId,\n getCarrier,\n getCarrierSync,\n getCodename,\n getCodenameSync,\n getDevice,\n getDeviceId,\n getDeviceName,\n getDeviceNameSync,\n getDeviceSync,\n getDeviceToken,\n getDeviceType,\n getDisplay,\n getDisplaySync,\n getFingerprint,\n getFingerprintSync,\n getFirstInstallTime,\n getFirstInstallTimeSync,\n getFontScale,\n getFontScaleSync,\n getFreeDiskStorage,\n getFreeDiskStorageOld,\n getFreeDiskStorageSync,\n getFreeDiskStorageOldSync,\n getHardware,\n getHardwareSync,\n getHost,\n getHostSync,\n getIncremental,\n getIncrementalSync,\n getInstallerPackageName,\n getInstallerPackageNameSync,\n getInstallReferrer,\n getInstallReferrerSync,\n getInstanceId,\n getInstanceIdSync,\n getIpAddress,\n getIpAddressSync,\n getLastUpdateTime,\n getLastUpdateTimeSync,\n getMacAddress,\n getMacAddressSync,\n getManufacturer,\n getManufacturerSync,\n getMaxMemory,\n getMaxMemorySync,\n getModel,\n getPhoneNumber,\n getPhoneNumberSync,\n getPowerState,\n getPowerStateSync,\n getPreviewSdkInt,\n getPreviewSdkIntSync,\n getProduct,\n getProductSync,\n getReadableVersion,\n getSecurityPatch,\n getSecurityPatchSync,\n getSerialNumber,\n getSerialNumberSync,\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n getSystemName,\n getSystemVersion,\n getTags,\n getTagsSync,\n getTotalDiskCapacity,\n getTotalDiskCapacityOld,\n getTotalDiskCapacitySync,\n getTotalDiskCapacityOldSync,\n getTotalMemory,\n getTotalMemorySync,\n getType,\n getTypeSync,\n getUniqueId,\n getUniqueIdSync,\n getUsedMemory,\n getUsedMemorySync,\n getUserAgent,\n getUserAgentSync,\n getVersion,\n getBrightness,\n getBrightnessSync,\n hasGms,\n hasGmsSync,\n hasHms,\n hasHmsSync,\n hasNotch,\n hasDynamicIsland,\n hasSystemFeature,\n hasSystemFeatureSync,\n isAirplaneMode,\n isAirplaneModeSync,\n isBatteryCharging,\n isBatteryChargingSync,\n isCameraPresent,\n isCameraPresentSync,\n isEmulator,\n isEmulatorSync,\n isHeadphonesConnected,\n isHeadphonesConnectedSync,\n isLandscape,\n isLandscapeSync,\n isLocationEnabled,\n isLocationEnabledSync,\n isPinOrFingerprintSet,\n isPinOrFingerprintSetSync,\n isMouseConnected,\n isMouseConnectedSync,\n isKeyboardConnected,\n isKeyboardConnectedSync,\n isTabletMode,\n isTablet,\n isDisplayZoomed,\n supported32BitAbis,\n supported32BitAbisSync,\n supported64BitAbis,\n supported64BitAbisSync,\n supportedAbis,\n supportedAbisSync,\n syncUniqueId,\n useBatteryLevel,\n useBatteryLevelIsLow,\n useDeviceName,\n useFirstInstallTime,\n useHasSystemFeature,\n useIsEmulator,\n usePowerState,\n useManufacturer,\n useIsHeadphonesConnected,\n useBrightness,\n};\n\nexport default DeviceInfo;\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js b/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js +index 2998179..c792b00 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js ++++ b/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js +@@ -3,14 +3,18 @@ + Object.defineProperty(exports, "__esModule", { + value: true + }); +-exports.useOnMount = useOnMount; +-exports.useOnEvent = useOnEvent; + exports.deviceInfoEmitter = void 0; ++exports.useOnEvent = useOnEvent; ++exports.useOnMount = useOnMount; + + var _react = require("react"); + + var _reactNative = require("react-native"); + ++var _nativeInterface = _interopRequireDefault(require("./nativeInterface")); ++ ++function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } ++ + /** + * simple hook wrapper for async functions for 'on-mount / componentDidMount' that only need to fired once + * @param asyncGetter async function that 'gets' something +@@ -36,7 +40,7 @@ function useOnMount(asyncGetter, initialResult) { + return response; + } + +-const deviceInfoEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.RNDeviceInfo); ++const deviceInfoEmitter = new _reactNative.NativeEventEmitter(_nativeInterface.default); + /** + * simple hook wrapper for handling events + * @param eventName +diff --git a/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js.map b/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js.map +index 1dfb0e4..733e774 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js.map ++++ b/node_modules/react-native-device-info/lib/commonjs/internal/asyncHookWrappers.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["asyncHookWrappers.ts"],"names":["useOnMount","asyncGetter","initialResult","response","setResponse","loading","result","getAsync","deviceInfoEmitter","NativeEventEmitter","NativeModules","RNDeviceInfo","useOnEvent","eventName","initialValueAsyncGetter","defaultValue","setResult","subscription","addListener","remove"],"mappings":";;;;;;;;;AAAA;;AACA;;AAGA;AACA;AACA;AACA;AACA;AACO,SAASA,UAAT,CAAuBC,WAAvB,EAAsDC,aAAtD,EAA4F;AACjG,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,qBAA6B;AAC3DC,IAAAA,OAAO,EAAE,IADkD;AAE3DC,IAAAA,MAAM,EAAEJ;AAFmD,GAA7B,CAAhC;AAKA,wBAAU,MAAM;AACd;AACA,UAAMK,QAAQ,GAAG,YAAY;AAC3B,YAAMD,MAAM,GAAG,MAAML,WAAW,EAAhC;AACAG,MAAAA,WAAW,CAAC;AAAEC,QAAAA,OAAO,EAAE,KAAX;AAAkBC,QAAAA;AAAlB,OAAD,CAAX;AACD,KAHD;;AAKAC,IAAAA,QAAQ;AACT,GARD,EAQG,CAACN,WAAD,CARH;AAUA,SAAOE,QAAP;AACD;;AAEM,MAAMK,iBAAiB,GAAG,IAAIC,+BAAJ,CAAuBC,2BAAcC,YAArC,CAA1B;AAEP;AACA;AACA;AACA;AACA;AACA;;;;AACO,SAASC,UAAT,CACLC,SADK,EAELC,uBAFK,EAGLC,YAHK,EAIe;AACpB,QAAM;AAAEV,IAAAA,OAAF;AAAWC,IAAAA,MAAM,EAAEJ;AAAnB,MAAqCF,UAAU,CAACc,uBAAD,EAA0BC,YAA1B,CAArD;AACA,QAAM,CAACT,MAAD,EAASU,SAAT,IAAsB,qBAAYD,YAAZ,CAA5B,CAFoB,CAIpB;;AACA,wBAAU,MAAM;AACdC,IAAAA,SAAS,CAACd,aAAD,CAAT;AACD,GAFD,EAEG,CAACA,aAAD,CAFH,EALoB,CASpB;AACA;;AACA,wBAAU,MAAM;AACd,UAAMe,YAAY,GAAGT,iBAAiB,CAACU,WAAlB,CAA8BL,SAA9B,EAAyCG,SAAzC,CAArB;AACA,WAAO,MAAMC,YAAY,CAACE,MAAb,EAAb;AACD,GAHD,EAGG,CAACN,SAAD,CAHH,EAXoB,CAgBpB;;AACA,SAAO;AAAER,IAAAA,OAAF;AAAWC,IAAAA;AAAX,GAAP;AACD","sourcesContent":["import { useState, useEffect } from 'react';\nimport { NativeEventEmitter, NativeModules } from 'react-native';\nimport type { AsyncHookResult } from './types';\n\n/**\n * simple hook wrapper for async functions for 'on-mount / componentDidMount' that only need to fired once\n * @param asyncGetter async function that 'gets' something\n * @param initialResult -1 | false | 'unknown'\n */\nexport function useOnMount(asyncGetter: () => Promise, initialResult: T): AsyncHookResult {\n const [response, setResponse] = useState>({\n loading: true,\n result: initialResult,\n });\n\n useEffect(() => {\n // async function cuz react complains if useEffect's effect param is an async function\n const getAsync = async () => {\n const result = await asyncGetter();\n setResponse({ loading: false, result });\n };\n\n getAsync();\n }, [asyncGetter]);\n\n return response;\n}\n\nexport const deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\n\n/**\n * simple hook wrapper for handling events\n * @param eventName\n * @param initialValueAsyncGetter\n * @param defaultValue\n */\nexport function useOnEvent(\n eventName: string,\n initialValueAsyncGetter: () => Promise,\n defaultValue: T\n): AsyncHookResult {\n const { loading, result: initialResult } = useOnMount(initialValueAsyncGetter, defaultValue);\n const [result, setResult] = useState(defaultValue);\n\n // sets the result to what the intial value is on mount\n useEffect(() => {\n setResult(initialResult);\n }, [initialResult]);\n\n // - set up the event listener to set the result\n // - set up the clean up function to remove subscription on unmount\n useEffect(() => {\n const subscription = deviceInfoEmitter.addListener(eventName, setResult);\n return () => subscription.remove();\n }, [eventName]);\n\n // loading will only be true while getting the inital value. After that, it will always be false, but a new result may occur\n return { loading, result };\n}\n"]} +\ No newline at end of file ++{"version":3,"sources":["asyncHookWrappers.ts"],"names":["useOnMount","asyncGetter","initialResult","response","setResponse","loading","result","getAsync","deviceInfoEmitter","NativeEventEmitter","RNDeviceInfo","useOnEvent","eventName","initialValueAsyncGetter","defaultValue","setResult","subscription","addListener","remove"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;AAGA;AACA;AACA;AACA;AACA;AACO,SAASA,UAAT,CAAuBC,WAAvB,EAAsDC,aAAtD,EAA4F;AACjG,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,qBAA6B;AAC3DC,IAAAA,OAAO,EAAE,IADkD;AAE3DC,IAAAA,MAAM,EAAEJ;AAFmD,GAA7B,CAAhC;AAKA,wBAAU,MAAM;AACd;AACA,UAAMK,QAAQ,GAAG,YAAY;AAC3B,YAAMD,MAAM,GAAG,MAAML,WAAW,EAAhC;AACAG,MAAAA,WAAW,CAAC;AAAEC,QAAAA,OAAO,EAAE,KAAX;AAAkBC,QAAAA;AAAlB,OAAD,CAAX;AACD,KAHD;;AAKAC,IAAAA,QAAQ;AACT,GARD,EAQG,CAACN,WAAD,CARH;AAUA,SAAOE,QAAP;AACD;;AAEM,MAAMK,iBAAiB,GAAG,IAAIC,+BAAJ,CAAuBC,wBAAvB,CAA1B;AAEP;AACA;AACA;AACA;AACA;AACA;;;;AACO,SAASC,UAAT,CACLC,SADK,EAELC,uBAFK,EAGLC,YAHK,EAIe;AACpB,QAAM;AAAET,IAAAA,OAAF;AAAWC,IAAAA,MAAM,EAAEJ;AAAnB,MAAqCF,UAAU,CAACa,uBAAD,EAA0BC,YAA1B,CAArD;AACA,QAAM,CAACR,MAAD,EAASS,SAAT,IAAsB,qBAAYD,YAAZ,CAA5B,CAFoB,CAIpB;;AACA,wBAAU,MAAM;AACdC,IAAAA,SAAS,CAACb,aAAD,CAAT;AACD,GAFD,EAEG,CAACA,aAAD,CAFH,EALoB,CASpB;AACA;;AACA,wBAAU,MAAM;AACd,UAAMc,YAAY,GAAGR,iBAAiB,CAACS,WAAlB,CAA8BL,SAA9B,EAAyCG,SAAzC,CAArB;AACA,WAAO,MAAMC,YAAY,CAACE,MAAb,EAAb;AACD,GAHD,EAGG,CAACN,SAAD,CAHH,EAXoB,CAgBpB;;AACA,SAAO;AAAEP,IAAAA,OAAF;AAAWC,IAAAA;AAAX,GAAP;AACD","sourcesContent":["import { useState, useEffect } from 'react';\nimport { NativeEventEmitter } from 'react-native';\nimport RNDeviceInfo from './nativeInterface';\nimport type { AsyncHookResult } from './types';\n\n/**\n * simple hook wrapper for async functions for 'on-mount / componentDidMount' that only need to fired once\n * @param asyncGetter async function that 'gets' something\n * @param initialResult -1 | false | 'unknown'\n */\nexport function useOnMount(asyncGetter: () => Promise, initialResult: T): AsyncHookResult {\n const [response, setResponse] = useState>({\n loading: true,\n result: initialResult,\n });\n\n useEffect(() => {\n // async function cuz react complains if useEffect's effect param is an async function\n const getAsync = async () => {\n const result = await asyncGetter();\n setResponse({ loading: false, result });\n };\n\n getAsync();\n }, [asyncGetter]);\n\n return response;\n}\n\nexport const deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo);\n\n/**\n * simple hook wrapper for handling events\n * @param eventName\n * @param initialValueAsyncGetter\n * @param defaultValue\n */\nexport function useOnEvent(\n eventName: string,\n initialValueAsyncGetter: () => Promise,\n defaultValue: T\n): AsyncHookResult {\n const { loading, result: initialResult } = useOnMount(initialValueAsyncGetter, defaultValue);\n const [result, setResult] = useState(defaultValue);\n\n // sets the result to what the intial value is on mount\n useEffect(() => {\n setResult(initialResult);\n }, [initialResult]);\n\n // - set up the event listener to set the result\n // - set up the clean up function to remove subscription on unmount\n useEffect(() => {\n const subscription = deviceInfoEmitter.addListener(eventName, setResult);\n return () => subscription.remove();\n }, [eventName]);\n\n // loading will only be true while getting the inital value. After that, it will always be false, but a new result may occur\n return { loading, result };\n}\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js b/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js +index f00bade..155dc1c 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js ++++ b/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js +@@ -7,11 +7,7 @@ exports.default = void 0; + + var _reactNative = require("react-native"); + +-let RNDeviceInfo = _reactNative.NativeModules.RNDeviceInfo; // @ts-ignore +- +-if (_reactNative.Platform.OS === 'web' || _reactNative.Platform.OS === 'dom') { +- RNDeviceInfo = require('../web'); +-} ++let RNDeviceInfo = require('../web'); + + if (!RNDeviceInfo) { + // Produce an error if we don't have the native module +diff --git a/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js.map b/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js.map +index ef378b6..d6ccc7f 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js.map ++++ b/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeInterface.ts"],"names":["RNDeviceInfo","NativeModules","Platform","OS","require","Error"],"mappings":";;;;;;;AAAA;;AAGA,IAAIA,YAAgD,GAAGC,2BAAcD,YAArE,C,CAEA;;AACA,IAAIE,sBAASC,EAAT,KAAgB,KAAhB,IAAyBD,sBAASC,EAAT,KAAgB,KAA7C,EAAoD;AAClDH,EAAAA,YAAY,GAAGI,OAAO,CAAC,QAAD,CAAtB;AACD;;AAED,IAAI,CAACJ,YAAL,EAAmB;AACjB;AACA,MACEE,sBAASC,EAAT,KAAgB,SAAhB,IACAD,sBAASC,EAAT,KAAgB,KADhB,IAEAD,sBAASC,EAAT,KAAgB,KAFhB,IAGA;AACAD,wBAASC,EAAT,KAAgB,KALlB,EAME;AACA,UAAM,IAAIE,KAAJ,CAAW;AACrB;AACA;AACA;AACA,sJAJU,CAAN;AAKD;AACF;;eAEcL,Y","sourcesContent":["import { Platform, NativeModules } from 'react-native';\nimport { DeviceInfoNativeModule } from './privateTypes';\n\nlet RNDeviceInfo: DeviceInfoNativeModule | undefined = NativeModules.RNDeviceInfo;\n\n// @ts-ignore\nif (Platform.OS === 'web' || Platform.OS === 'dom') {\n RNDeviceInfo = require('../web');\n}\n\nif (!RNDeviceInfo) {\n // Produce an error if we don't have the native module\n if (\n Platform.OS === 'android' ||\n Platform.OS === 'ios' ||\n Platform.OS === 'web' ||\n // @ts-ignore\n Platform.OS === 'dom'\n ) {\n throw new Error(`react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:\n • For react-native <= 0.59: Run \\`react-native link react-native-device-info\\` in the project root.\n • Rebuild and re-run the app.\n • If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-device-info/react-native-device-info`);\n }\n}\n\nexport default RNDeviceInfo as DeviceInfoNativeModule;\n"]} +\ No newline at end of file ++{"version":3,"sources":["nativeInterface.ts"],"names":["RNDeviceInfo","RNDeviceInfoModule","Platform","OS","require","Error"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEA,IAAIA,YAAY,GAAGC,+BAAnB,C,CAEA;;AACA,IAAIC,sBAASC,EAAT,KAAgB,KAAhB,IAAyBD,sBAASC,EAAT,KAAgB,KAA7C,EAAoD;AAClDH,EAAAA,YAAY,GAAGI,OAAO,CAAC,QAAD,CAAtB;AACD;;AAED,IAAI,CAACJ,YAAL,EAAmB;AACjB;AACA,MACEE,sBAASC,EAAT,KAAgB,SAAhB,IACAD,sBAASC,EAAT,KAAgB,KADhB,IAEAD,sBAASC,EAAT,KAAgB,KAFhB,IAGA;AACAD,wBAASC,EAAT,KAAgB,KALlB,EAME;AACA,UAAM,IAAIE,KAAJ,CAAW;AACrB;AACA;AACA;AACA,sJAJU,CAAN;AAKD;AACF;;eAEcL,Y","sourcesContent":["import { Platform } from 'react-native';\nimport RNDeviceInfoModule from '../fabric/NativeDeviceInfoModule';\n\nlet RNDeviceInfo = RNDeviceInfoModule;\n\n// @ts-ignore\nif (Platform.OS === 'web' || Platform.OS === 'dom') {\n RNDeviceInfo = require('../web');\n}\n\nif (!RNDeviceInfo) {\n // Produce an error if we don't have the native module\n if (\n Platform.OS === 'android' ||\n Platform.OS === 'ios' ||\n Platform.OS === 'web' ||\n // @ts-ignore\n Platform.OS === 'dom'\n ) {\n throw new Error(`react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:\n • For react-native <= 0.59: Run \\`react-native link react-native-device-info\\` in the project root.\n • Rebuild and re-run the app.\n • If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-device-info/react-native-device-info`);\n }\n}\n\nexport default RNDeviceInfo;\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.native.js b/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.native.js +new file mode 100644 +index 0000000..6e8494e +--- /dev/null ++++ b/node_modules/react-native-device-info/lib/commonjs/internal/nativeInterface.native.js +@@ -0,0 +1,18 @@ ++"use strict"; ++ ++Object.defineProperty(exports, "__esModule", { ++ value: true ++}); ++exports.default = void 0; ++ ++var _reactNative = require("react-native"); ++ ++var _NativeDeviceInfoModule = _interopRequireDefault(require("../fabric/NativeDeviceInfoModule")); ++ ++function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } ++ ++let RNDeviceInfo = _NativeDeviceInfoModule.default; // @ts-ignore ++ ++var _default = RNDeviceInfo; ++exports.default = _default; ++//# sourceMappingURL=nativeInterface.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js b/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js +index 3053d7f..bb43c78 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js ++++ b/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js +@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.clearMemo = clearMemo; +-exports.getSupportedPlatformInfoSync = getSupportedPlatformInfoSync; + exports.getSupportedPlatformInfoAsync = getSupportedPlatformInfoAsync; + exports.getSupportedPlatformInfoFunctions = getSupportedPlatformInfoFunctions; ++exports.getSupportedPlatformInfoSync = getSupportedPlatformInfoSync; + + var _reactNative = require("react-native"); + +@@ -37,12 +37,14 @@ function getSupportedFunction(supportedPlatforms, getter, defaultGetter) { + */ + + +-function getSupportedPlatformInfoSync({ +- getter, +- supportedPlatforms, +- defaultValue, +- memoKey +-}) { ++function getSupportedPlatformInfoSync(_ref) { ++ let { ++ getter, ++ supportedPlatforms, ++ defaultValue, ++ memoKey ++ } = _ref; ++ + if (memoKey && memo[memoKey] != undefined) { + return memo[memoKey]; + } else { +@@ -61,12 +63,14 @@ function getSupportedPlatformInfoSync({ + */ + + +-async function getSupportedPlatformInfoAsync({ +- getter, +- supportedPlatforms, +- defaultValue, +- memoKey +-}) { ++async function getSupportedPlatformInfoAsync(_ref2) { ++ let { ++ getter, ++ supportedPlatforms, ++ defaultValue, ++ memoKey ++ } = _ref2; ++ + if (memoKey && memo[memoKey] != undefined) { + return memo[memoKey]; + } else { +@@ -85,10 +89,11 @@ async function getSupportedPlatformInfoAsync({ + */ + + +-function getSupportedPlatformInfoFunctions({ +- syncGetter, +- ...asyncParams +-}) { ++function getSupportedPlatformInfoFunctions(_ref3) { ++ let { ++ syncGetter, ++ ...asyncParams ++ } = _ref3; + return [() => getSupportedPlatformInfoAsync(asyncParams), () => getSupportedPlatformInfoSync({ ...asyncParams, + getter: syncGetter + })]; +diff --git a/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js.map b/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js.map +index 4b5bf6e..079791a 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js.map ++++ b/node_modules/react-native-device-info/lib/commonjs/internal/supported-platform-info.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["supported-platform-info.ts"],"names":["memo","clearMemo","getSupportedFunction","supportedPlatforms","getter","defaultGetter","supportedMap","filter","key","Platform","OS","forEach","select","default","getSupportedPlatformInfoSync","defaultValue","memoKey","undefined","output","getSupportedPlatformInfoAsync","Promise","resolve","getSupportedPlatformInfoFunctions","syncGetter","asyncParams"],"mappings":";;;;;;;;;;AAAA;;AAWA;AACA,IAAIA,IAAc,GAAG,EAArB;;AAEO,SAASC,SAAT,GAAqB;AAC1BD,EAAAA,IAAI,GAAG,EAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASE,oBAAT,CACEC,kBADF,EAEEC,MAFF,EAGEC,aAHF,EAIa;AACX,MAAIC,YAAiB,GAAG,EAAxB;AACAH,EAAAA,kBAAkB,CACfI,MADH,CACWC,GAAD,IAASC,sBAASC,EAAT,IAAeF,GADlC,EAEGG,OAFH,CAEYH,GAAD,IAAUF,YAAY,CAACE,GAAD,CAAZ,GAAoBJ,MAFzC;AAGA,SAAOK,sBAASG,MAAT,CAAgB,EACrB,GAAGN,YADkB;AAErBO,IAAAA,OAAO,EAAER;AAFY,GAAhB,CAAP;AAID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AGU,WAAL;AAAkBpB,IAAAA,MAAM,EAAEmB;AAA1B,GAAD,CAF7B,CAAP;AAID","sourcesContent":["import { Platform } from 'react-native';\n\nimport {\n PlatformArray,\n Getter,\n GetSupportedPlatformInfoAsyncParams,\n GetSupportedPlatformInfoSyncParams,\n GetSupportedPlatformInfoFunctionsParams,\n} from './privateTypes';\n\ntype MemoType = { [key: string]: any };\n// centralized memo object\nlet memo: MemoType = {};\n\nexport function clearMemo() {\n memo = {};\n}\n\n/**\n * function returns the proper getter based current platform X supported platforms\n * @param supportedPlatforms array of supported platforms (OS)\n * @param getter desired function used to get info\n * @param defaultGetter getter that returns a default value if desired getter is not supported by current platform\n */\nfunction getSupportedFunction(\n supportedPlatforms: PlatformArray,\n getter: Getter,\n defaultGetter: Getter\n): Getter {\n let supportedMap: any = {};\n supportedPlatforms\n .filter((key) => Platform.OS == key)\n .forEach((key) => (supportedMap[key] = getter));\n return Platform.select({\n ...supportedMap,\n default: defaultGetter,\n });\n}\n\n/**\n * function used to get desired info synchronously — with optional memoization\n * @param param0\n */\nexport function getSupportedPlatformInfoSync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoSyncParams): T {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = getSupportedFunction(supportedPlatforms, getter, () => defaultValue)();\n if (memoKey) {\n memo[memoKey] = output;\n }\n return output;\n }\n}\n\n/**\n * function used to get desired info asynchronously — with optional memoization\n * @param param0\n */\nexport async function getSupportedPlatformInfoAsync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoAsyncParams): Promise {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = await getSupportedFunction(supportedPlatforms, getter, () =>\n Promise.resolve(defaultValue)\n )();\n if (memoKey) {\n memo[memoKey] = output;\n }\n\n return output;\n }\n}\n\n/**\n * function that returns array of getter functions [async, sync]\n * @param param0\n */\nexport function getSupportedPlatformInfoFunctions({\n syncGetter,\n ...asyncParams\n}: GetSupportedPlatformInfoFunctionsParams): [Getter>, Getter] {\n return [\n () => getSupportedPlatformInfoAsync(asyncParams),\n () => getSupportedPlatformInfoSync({ ...asyncParams, getter: syncGetter }),\n ];\n}\n"]} +\ No newline at end of file ++{"version":3,"sources":["supported-platform-info.ts"],"names":["memo","clearMemo","getSupportedFunction","supportedPlatforms","getter","defaultGetter","supportedMap","filter","key","Platform","OS","forEach","select","default","getSupportedPlatformInfoSync","defaultValue","memoKey","undefined","output","getSupportedPlatformInfoAsync","Promise","resolve","getSupportedPlatformInfoFunctions","syncGetter","asyncParams"],"mappings":";;;;;;;;;;AAAA;;AAWA;AACA,IAAIA,IAAc,GAAG,EAArB;;AAEO,SAASC,SAAT,GAAqB;AAC1BD,EAAAA,IAAI,GAAG,EAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASE,oBAAT,CACEC,kBADF,EAEEC,MAFF,EAGEC,aAHF,EAIa;AACX,MAAIC,YAAiB,GAAG,EAAxB;AACAH,EAAAA,kBAAkB,CACfI,MADH,CACWC,GAAD,IAASC,sBAASC,EAAT,IAAeF,GADlC,EAEGG,OAFH,CAEYH,GAAD,IAAUF,YAAY,CAACE,GAAD,CAAZ,GAAoBJ,MAFzC;AAGA,SAAOK,sBAASG,MAAT,CAAgB,EACrB,GAAGN,YADkB;AAErBO,IAAAA,OAAO,EAAER;AAFY,GAAhB,CAAP;AAID;AAED;AACA;AACA;AACA;;;AACO,SAASS,4BAAT,OAKsC;AAAA,MALG;AAC9CV,IAAAA,MAD8C;AAE9CD,IAAAA,kBAF8C;AAG9CY,IAAAA,YAH8C;AAI9CC,IAAAA;AAJ8C,GAKH;;AAC3C,MAAIA,OAAO,IAAIhB,IAAI,CAACgB,OAAD,CAAJ,IAAiBC,SAAhC,EAA2C;AACzC,WAAOjB,IAAI,CAACgB,OAAD,CAAX;AACD,GAFD,MAEO;AACL,UAAME,MAAM,GAAGhB,oBAAoB,CAACC,kBAAD,EAAqBC,MAArB,EAA6B,MAAMW,YAAnC,CAApB,EAAf;;AACA,QAAIC,OAAJ,EAAa;AACXhB,MAAAA,IAAI,CAACgB,OAAD,CAAJ,GAAgBE,MAAhB;AACD;;AACD,WAAOA,MAAP;AACD;AACF;AAED;AACA;AACA;AACA;;;AACO,eAAeC,6BAAf,QAKgD;AAAA,MALA;AACrDf,IAAAA,MADqD;AAErDD,IAAAA,kBAFqD;AAGrDY,IAAAA,YAHqD;AAIrDC,IAAAA;AAJqD,GAKA;;AACrD,MAAIA,OAAO,IAAIhB,IAAI,CAACgB,OAAD,CAAJ,IAAiBC,SAAhC,EAA2C;AACzC,WAAOjB,IAAI,CAACgB,OAAD,CAAX;AACD,GAFD,MAEO;AACL,UAAME,MAAM,GAAG,MAAMhB,oBAAoB,CAACC,kBAAD,EAAqBC,MAArB,EAA6B,MACpEgB,OAAO,CAACC,OAAR,CAAgBN,YAAhB,CADuC,CAApB,EAArB;;AAGA,QAAIC,OAAJ,EAAa;AACXhB,MAAAA,IAAI,CAACgB,OAAD,CAAJ,GAAgBE,MAAhB;AACD;;AAED,WAAOA,MAAP;AACD;AACF;AAED;AACA;AACA;AACA;;;AACO,SAASI,iCAAT,QAGyE;AAAA,MAH3B;AACnDC,IAAAA,UADmD;AAEnD,OAAGC;AAFgD,GAG2B;AAC9E,SAAO,CACL,MAAML,6BAA6B,CAACK,WAAD,CAD9B,EAEL,MAAMV,4BAA4B,CAAC,EAAE,GAAGU,WAAL;AAAkBpB,IAAAA,MAAM,EAAEmB;AAA1B,GAAD,CAF7B,CAAP;AAID","sourcesContent":["import { Platform } from 'react-native';\n\nimport {\n PlatformArray,\n Getter,\n GetSupportedPlatformInfoAsyncParams,\n GetSupportedPlatformInfoSyncParams,\n GetSupportedPlatformInfoFunctionsParams,\n} from './privateTypes';\n\ntype MemoType = { [key: string]: any };\n// centralized memo object\nlet memo: MemoType = {};\n\nexport function clearMemo() {\n memo = {};\n}\n\n/**\n * function returns the proper getter based current platform X supported platforms\n * @param supportedPlatforms array of supported platforms (OS)\n * @param getter desired function used to get info\n * @param defaultGetter getter that returns a default value if desired getter is not supported by current platform\n */\nfunction getSupportedFunction(\n supportedPlatforms: PlatformArray,\n getter: Getter,\n defaultGetter: Getter\n): Getter {\n let supportedMap: any = {};\n supportedPlatforms\n .filter((key) => Platform.OS == key)\n .forEach((key) => (supportedMap[key] = getter));\n return Platform.select({\n ...supportedMap,\n default: defaultGetter,\n });\n}\n\n/**\n * function used to get desired info synchronously — with optional memoization\n * @param param0\n */\nexport function getSupportedPlatformInfoSync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoSyncParams): T {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = getSupportedFunction(supportedPlatforms, getter, () => defaultValue)();\n if (memoKey) {\n memo[memoKey] = output;\n }\n return output;\n }\n}\n\n/**\n * function used to get desired info asynchronously — with optional memoization\n * @param param0\n */\nexport async function getSupportedPlatformInfoAsync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoAsyncParams): Promise {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = await getSupportedFunction(supportedPlatforms, getter, () =>\n Promise.resolve(defaultValue)\n )();\n if (memoKey) {\n memo[memoKey] = output;\n }\n\n return output;\n }\n}\n\n/**\n * function that returns array of getter functions [async, sync]\n * @param param0\n */\nexport function getSupportedPlatformInfoFunctions({\n syncGetter,\n ...asyncParams\n}: GetSupportedPlatformInfoFunctionsParams): [Getter>, Getter] {\n return [\n () => getSupportedPlatformInfoAsync(asyncParams),\n () => getSupportedPlatformInfoSync({ ...asyncParams, getter: syncGetter }),\n ];\n}\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/commonjs/web/index.js b/node_modules/react-native-device-info/lib/commonjs/web/index.js +index d222f30..656b19a 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/web/index.js ++++ b/node_modules/react-native-device-info/lib/commonjs/web/index.js +@@ -3,7 +3,7 @@ + Object.defineProperty(exports, "__esModule", { + value: true + }); +-exports.getPowerStateSync = exports.getPowerState = exports.getTotalMemory = exports.getUsedMemory = exports.getMaxMemory = exports.getFreeDiskStorageSync = exports.getFreeDiskStorage = exports.getTotalDiskCapacitySync = exports.getTotalDiskCapacity = exports.getBaseOs = exports.isAirplaneMode = exports.isLocationEnabled = exports.getBatteryLevelSync = exports.getBatteryLevel = exports.isCameraPresentSync = exports.isCameraPresent = exports.isBatteryChargingSync = exports.isBatteryCharging = exports.getUserAgent = exports.getInstallReferrer = exports.getUsedMemorySync = exports.getTotalMemorySync = exports.isLocationEnabledSync = exports.getUserAgentSync = exports.isAirplaneModeSync = exports.getInstallReferrerSync = exports.getMaxMemorySync = void 0; ++exports.isLocationEnabledSync = exports.isLocationEnabled = exports.isCameraPresentSync = exports.isCameraPresent = exports.isBatteryChargingSync = exports.isBatteryCharging = exports.isAirplaneModeSync = exports.isAirplaneMode = exports.getUserAgentSync = exports.getUserAgent = exports.getUsedMemorySync = exports.getUsedMemory = exports.getTotalMemorySync = exports.getTotalMemory = exports.getTotalDiskCapacitySync = exports.getTotalDiskCapacity = exports.getPowerStateSync = exports.getPowerState = exports.getMaxMemorySync = exports.getMaxMemory = exports.getInstallReferrerSync = exports.getInstallReferrer = exports.getFreeDiskStorageSync = exports.getFreeDiskStorage = exports.getBatteryLevelSync = exports.getBatteryLevel = exports.getBaseOs = void 0; + + var _reactNative = require("react-native"); + +@@ -220,9 +220,12 @@ exports.getBaseOs = getBaseOs; + + const getTotalDiskCapacity = async () => { + if (navigator.storage && navigator.storage.estimate) { +- return navigator.storage.estimate().then(({ +- quota +- }) => quota); ++ return navigator.storage.estimate().then(_ref => { ++ let { ++ quota ++ } = _ref; ++ return quota; ++ }); + } + + return -1; +@@ -239,10 +242,13 @@ exports.getTotalDiskCapacitySync = getTotalDiskCapacitySync; + + const getFreeDiskStorage = async () => { + if (navigator.storage && navigator.storage.estimate) { +- return navigator.storage.estimate().then(({ +- quota, +- usage +- }) => quota - usage); ++ return navigator.storage.estimate().then(_ref2 => { ++ let { ++ quota, ++ usage ++ } = _ref2; ++ return quota - usage; ++ }); + } + + return -1; +diff --git a/node_modules/react-native-device-info/lib/commonjs/web/index.js.map b/node_modules/react-native-device-info/lib/commonjs/web/index.js.map +index 7c4991f..a0e32de 100644 +--- a/node_modules/react-native-device-info/lib/commonjs/web/index.js.map ++++ b/node_modules/react-native-device-info/lib/commonjs/web/index.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["index.js"],"names":["deviceInfoEmitter","NativeEventEmitter","NativeModules","RNDeviceInfo","batteryCharging","batteryLevel","powerState","_readPowerState","battery","level","charging","chargingtime","dischargingtime","lowPowerMode","batteryState","getMaxMemorySync","window","performance","memory","jsHeapSizeLimit","getInstallReferrerSync","document","referrer","isAirplaneModeSync","navigator","onLine","getUserAgentSync","userAgent","isLocationEnabledSync","geolocation","getTotalMemorySync","deviceMemory","getUsedMemorySync","usedJSHeapSize","init","getBattery","then","addEventListener","emit","getBaseOsSync","platform","macosPlatforms","windowsPlatforms","iosPlatforms","os","indexOf","test","getInstallReferrer","getUserAgent","isBatteryCharging","isBatteryChargingSync","isCameraPresent","mediaDevices","enumerateDevices","devices","find","d","kind","isCameraPresentSync","console","log","getBatteryLevel","getBatteryLevelSync","isLocationEnabled","isAirplaneMode","getBaseOs","getTotalDiskCapacity","storage","estimate","quota","getTotalDiskCapacitySync","getFreeDiskStorage","usage","getFreeDiskStorageSync","getMaxMemory","getUsedMemory","getTotalMemory","getPowerState","getPowerStateSync"],"mappings":";;;;;;;AAAA;;AAEA,MAAMA,iBAAiB,GAAG,IAAIC,+BAAJ,CAAuBC,2BAAcC,YAArC,CAA1B;AAEA,IAAIC,eAAe,GAAG,KAAtB;AAAA,IACEC,YAAY,GAAG,CAAC,CADlB;AAAA,IAEEC,UAAU,GAAG,EAFf;;AAIA,MAAMC,eAAe,GAAI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AAkC,CAAC;AAAEiC,MAAAA;AAAF,KAAD,KAAeA,KAAjD,CAAP;AACD;;AACD,SAAO,CAAC,CAAR;AACD,CALM;;;;AAOA,MAAMC,wBAAwB,GAAG,MAAM;AAC5CX,EAAAA,OAAO,CAACC,GAAR,CACE,qGADF;AAGA,SAAO,CAAC,CAAR;AACD,CALM;;;;AAOA,MAAMW,kBAAkB,GAAG,YAAY;AAC5C,MAAI/C,SAAS,CAAC2C,OAAV,IAAqB3C,SAAS,CAAC2C,OAAV,CAAkBC,QAA3C,EAAqD;AACnD,WAAO5C,SAAS,CAAC2C,OAAV,CAAkBC,QAAlB,GAA6BhC,IAA7B,CAAkC,CAAC;AAAEiC,MAAAA,KAAF;AAASG,MAAAA;AAAT,KAAD,KAAsBH,KAAK,GAAGG,KAAhE,CAAP;AACD;;AACD,SAAO,CAAC,CAAR;AACD,CALM;;;;AAOA,MAAMC,sBAAsB,GAAG,MAAM;AAC1Cd,EAAAA,OAAO,CAACC,GAAR,CACE,iGADF;AAGA,SAAO,CAAC,CAAR;AACD,CALM;;;;AAOA,MAAMc,YAAY,GAAG,YAAY;AACtC,SAAO3D,gBAAgB,EAAvB;AACD,CAFM;;;;AAIA,MAAM4D,aAAa,GAAG,YAAY;AACvC,SAAO3C,iBAAiB,EAAxB;AACD,CAFM;;;;AAIA,MAAM4C,cAAc,GAAG,YAAY;AACxC,SAAO9C,kBAAkB,EAAzB;AACD,CAFM;;;;AAIA,MAAM+C,aAAa,GAAG,YAAY;AACvC,MAAIrD,SAAS,CAACW,UAAd,EAA0B;AACxB,WAAOX,SAAS,CAACW,UAAV,GAAuBC,IAAvB,CAA6B5B,OAAD,IAAaD,eAAe,CAACC,OAAD,CAAxD,CAAP;AACD;;AACD,SAAO,EAAP;AACD,CALM;;;;AAOA,MAAMsE,iBAAiB,GAAG,MAAM;AACrC,SAAOxE,UAAP;AACD,CAFM","sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native';\n\nconst deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\n\nlet batteryCharging = false,\n batteryLevel = -1,\n powerState = {};\n\nconst _readPowerState = (battery) => {\n const { level, charging, chargingtime, dischargingtime } = battery;\n\n return {\n batteryLevel: level,\n lowPowerMode: false,\n batteryState: level === 1 ? 'full' : charging ? 'charging' : 'unplugged',\n chargingtime,\n dischargingtime,\n };\n};\n\nexport const getMaxMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.jsHeapSizeLimit;\n }\n return -1;\n};\n\nexport const getInstallReferrerSync = () => {\n return document.referrer;\n};\n\nexport const isAirplaneModeSync = () => {\n return !!navigator.onLine;\n};\n\nexport const getUserAgentSync = () => {\n return window.navigator.userAgent;\n};\n\nexport const isLocationEnabledSync = () => {\n return !!navigator.geolocation;\n};\n\nexport const getTotalMemorySync = () => {\n if (navigator.deviceMemory) {\n return navigator.deviceMemory * 1000000000;\n }\n return -1;\n};\n\nexport const getUsedMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.usedJSHeapSize;\n }\n return -1;\n};\n\nconst init = () => {\n if (typeof navigator === 'undefined' || !navigator.getBattery) return;\n\n navigator.getBattery().then((battery) => {\n batteryCharging = battery.charging;\n\n battery.addEventListener('chargingchange', () => {\n const { charging } = battery;\n\n batteryCharging = charging;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_powerStateDidChange', powerState);\n });\n\n battery.addEventListener('levelchange', () => {\n const { level } = battery;\n\n batteryLevel = level;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelDidChange', level);\n if (level < 0.2) {\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelIsLow', level);\n }\n });\n });\n};\n\nconst getBaseOsSync = () => {\n const userAgent = window.navigator.userAgent,\n platform = window.navigator.platform,\n macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],\n windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],\n iosPlatforms = ['iPhone', 'iPad', 'iPod'];\n\n let os = platform;\n\n if (macosPlatforms.indexOf(platform) !== -1) {\n os = 'Mac OS';\n } else if (iosPlatforms.indexOf(platform) !== -1) {\n os = 'iOS';\n } else if (windowsPlatforms.indexOf(platform) !== -1) {\n os = 'Windows';\n } else if (/Android/.test(userAgent)) {\n os = 'Android';\n } else if (!os && /Linux/.test(platform)) {\n os = 'Linux';\n }\n\n return os;\n};\n\ninit();\n/**\n * react-native-web empty polyfill.\n */\n\nexport const getInstallReferrer = async () => {\n return getInstallReferrerSync();\n};\n\nexport const getUserAgent = async () => {\n return getUserAgentSync();\n};\n\nexport const isBatteryCharging = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.charging);\n }\n return false;\n};\n\nexport const isBatteryChargingSync = () => {\n return batteryCharging;\n};\n\nexport const isCameraPresent = async () => {\n if (navigator.mediaDevices && navigator.mediaDevices.enumerateDevices) {\n return navigator.mediaDevices.enumerateDevices().then(devices => {\n return !!devices.find((d) => d.kind === 'videoinput');\n });\n }\n return false;\n};\n\nexport const isCameraPresentSync = () => {\n console.log(\n '[react-native-device-info] isCameraPresentSync not supported - please use isCameraPresent'\n );\n return false;\n};\n\nexport const getBatteryLevel = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.level);\n }\n return -1;\n};\n\nexport const getBatteryLevelSync = () => {\n return batteryLevel;\n};\n\nexport const isLocationEnabled = async () => {\n return isLocationEnabledSync();\n};\n\nexport const isAirplaneMode = async () => {\n return isAirplaneModeSync();\n};\n\nexport const getBaseOs = async () => {\n return getBaseOsSync();\n};\n\nexport const getTotalDiskCapacity = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota }) => quota)\n }\n return -1;\n};\n\nexport const getTotalDiskCapacitySync = () => {\n console.log(\n '[react-native-device-info] getTotalDiskCapacitySync not supported - please use getTotalDiskCapacity'\n );\n return -1;\n};\n\nexport const getFreeDiskStorage = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota, usage }) => quota - usage)\n }\n return -1;\n};\n\nexport const getFreeDiskStorageSync = () => {\n console.log(\n '[react-native-device-info] getFreeDiskStorageSync not supported - please use getFreeDiskStorage'\n );\n return -1;\n};\n\nexport const getMaxMemory = async () => {\n return getMaxMemorySync();\n};\n\nexport const getUsedMemory = async () => {\n return getUsedMemorySync();\n};\n\nexport const getTotalMemory = async () => {\n return getTotalMemorySync();\n};\n\nexport const getPowerState = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then((battery) => _readPowerState(battery))\n }\n return {};\n};\n\nexport const getPowerStateSync = () => {\n return powerState;\n};\n"]} +\ No newline at end of file ++{"version":3,"sources":["index.js"],"names":["deviceInfoEmitter","NativeEventEmitter","NativeModules","RNDeviceInfo","batteryCharging","batteryLevel","powerState","_readPowerState","battery","level","charging","chargingtime","dischargingtime","lowPowerMode","batteryState","getMaxMemorySync","window","performance","memory","jsHeapSizeLimit","getInstallReferrerSync","document","referrer","isAirplaneModeSync","navigator","onLine","getUserAgentSync","userAgent","isLocationEnabledSync","geolocation","getTotalMemorySync","deviceMemory","getUsedMemorySync","usedJSHeapSize","init","getBattery","then","addEventListener","emit","getBaseOsSync","platform","macosPlatforms","windowsPlatforms","iosPlatforms","os","indexOf","test","getInstallReferrer","getUserAgent","isBatteryCharging","isBatteryChargingSync","isCameraPresent","mediaDevices","enumerateDevices","devices","find","d","kind","isCameraPresentSync","console","log","getBatteryLevel","getBatteryLevelSync","isLocationEnabled","isAirplaneMode","getBaseOs","getTotalDiskCapacity","storage","estimate","quota","getTotalDiskCapacitySync","getFreeDiskStorage","usage","getFreeDiskStorageSync","getMaxMemory","getUsedMemory","getTotalMemory","getPowerState","getPowerStateSync"],"mappings":";;;;;;;AAAA;;AAEA,MAAMA,iBAAiB,GAAG,IAAIC,+BAAJ,CAAuBC,2BAAcC,YAArC,CAA1B;AAEA,IAAIC,eAAe,GAAG,KAAtB;AA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CALM;;;;AAOA,MAAMsE,iBAAiB,GAAG,MAAM;AACrC,SAAOxE,UAAP;AACD,CAFM","sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native';\n\nconst deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\n\nlet batteryCharging = false,\n batteryLevel = -1,\n powerState = {};\n\nconst _readPowerState = (battery) => {\n const { level, charging, chargingtime, dischargingtime } = battery;\n\n return {\n batteryLevel: level,\n lowPowerMode: false,\n batteryState: level === 1 ? 'full' : charging ? 'charging' : 'unplugged',\n chargingtime,\n dischargingtime,\n };\n};\n\nexport const getMaxMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.jsHeapSizeLimit;\n }\n return -1;\n};\n\nexport const getInstallReferrerSync = () => {\n return document.referrer;\n};\n\nexport const isAirplaneModeSync = () => {\n return !!navigator.onLine;\n};\n\nexport const getUserAgentSync = () => {\n return window.navigator.userAgent;\n};\n\nexport const isLocationEnabledSync = () => {\n return !!navigator.geolocation;\n};\n\nexport const getTotalMemorySync = () => {\n if (navigator.deviceMemory) {\n return navigator.deviceMemory * 1000000000;\n }\n return -1;\n};\n\nexport const getUsedMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.usedJSHeapSize;\n }\n return -1;\n};\n\nconst init = () => {\n if (typeof navigator === 'undefined' || !navigator.getBattery) return;\n\n navigator.getBattery().then((battery) => {\n batteryCharging = battery.charging;\n\n battery.addEventListener('chargingchange', () => {\n const { charging } = battery;\n\n batteryCharging = charging;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_powerStateDidChange', powerState);\n });\n\n battery.addEventListener('levelchange', () => {\n const { level } = battery;\n\n batteryLevel = level;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelDidChange', level);\n if (level < 0.2) {\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelIsLow', level);\n }\n });\n });\n};\n\nconst getBaseOsSync = () => {\n const userAgent = window.navigator.userAgent,\n platform = window.navigator.platform,\n macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],\n windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],\n iosPlatforms = ['iPhone', 'iPad', 'iPod'];\n\n let os = platform;\n\n if (macosPlatforms.indexOf(platform) !== -1) {\n os = 'Mac OS';\n } else if (iosPlatforms.indexOf(platform) !== -1) {\n os = 'iOS';\n } else if (windowsPlatforms.indexOf(platform) !== -1) {\n os = 'Windows';\n } else if (/Android/.test(userAgent)) {\n os = 'Android';\n } else if (!os && /Linux/.test(platform)) {\n os = 'Linux';\n }\n\n return os;\n};\n\ninit();\n/**\n * react-native-web empty polyfill.\n */\n\nexport const getInstallReferrer = async () => {\n return getInstallReferrerSync();\n};\n\nexport const getUserAgent = async () => {\n return getUserAgentSync();\n};\n\nexport const isBatteryCharging = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.charging);\n }\n return false;\n};\n\nexport const isBatteryChargingSync = () => {\n return batteryCharging;\n};\n\nexport const isCameraPresent = async () => {\n if (navigator.mediaDevices && navigator.mediaDevices.enumerateDevices) {\n return navigator.mediaDevices.enumerateDevices().then(devices => {\n return !!devices.find((d) => d.kind === 'videoinput');\n });\n }\n return false;\n};\n\nexport const isCameraPresentSync = () => {\n console.log(\n '[react-native-device-info] isCameraPresentSync not supported - please use isCameraPresent'\n );\n return false;\n};\n\nexport const getBatteryLevel = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.level);\n }\n return -1;\n};\n\nexport const getBatteryLevelSync = () => {\n return batteryLevel;\n};\n\nexport const isLocationEnabled = async () => {\n return isLocationEnabledSync();\n};\n\nexport const isAirplaneMode = async () => {\n return isAirplaneModeSync();\n};\n\nexport const getBaseOs = async () => {\n return getBaseOsSync();\n};\n\nexport const getTotalDiskCapacity = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota }) => quota)\n }\n return -1;\n};\n\nexport const getTotalDiskCapacitySync = () => {\n console.log(\n '[react-native-device-info] getTotalDiskCapacitySync not supported - please use getTotalDiskCapacity'\n );\n return -1;\n};\n\nexport const getFreeDiskStorage = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota, usage }) => quota - usage)\n }\n return -1;\n};\n\nexport const getFreeDiskStorageSync = () => {\n console.log(\n '[react-native-device-info] getFreeDiskStorageSync not supported - please use getFreeDiskStorage'\n );\n return -1;\n};\n\nexport const getMaxMemory = async () => {\n return getMaxMemorySync();\n};\n\nexport const getUsedMemory = async () => {\n return getUsedMemorySync();\n};\n\nexport const getTotalMemory = async () => {\n return getTotalMemorySync();\n};\n\nexport const getPowerState = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then((battery) => _readPowerState(battery))\n }\n return {};\n};\n\nexport const getPowerStateSync = () => {\n return powerState;\n};\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/fabric/NativeDeviceInfoModule.js b/node_modules/react-native-device-info/lib/module/fabric/NativeDeviceInfoModule.js +new file mode 100644 +index 0000000..9455226 +--- /dev/null ++++ b/node_modules/react-native-device-info/lib/module/fabric/NativeDeviceInfoModule.js +@@ -0,0 +1,3 @@ ++import { TurboModuleRegistry } from 'react-native'; ++export default TurboModuleRegistry.get('RNDeviceInfo'); ++//# sourceMappingURL=NativeDeviceInfoModule.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/fabric/NativeDeviceInfoModule.js.map b/node_modules/react-native-device-info/lib/module/fabric/NativeDeviceInfoModule.js.map +new file mode 100644 +index 0000000..7915f74 +--- /dev/null ++++ b/node_modules/react-native-device-info/lib/module/fabric/NativeDeviceInfoModule.js.map +@@ -0,0 +1 @@ ++{"version":3,"sources":["NativeDeviceInfoModule.ts"],"names":["TurboModuleRegistry","getEnforcing"],"mappings":"AAAA,SAASA,mBAAT,QAAiD,cAAjD;AAuJA,eAAeA,mBAAmB,CAACC,YAApB,CAAuC,cAAvC,CAAf","sourcesContent":["import { TurboModuleRegistry, TurboModule } from 'react-native';\n\nexport interface Spec extends TurboModule {\n getPowerState: () => Promise<{\n batteryLevel: number;\n batteryState: string;\n lowPowerMode: boolean;\n }>;\n getPowerStateSync: () => {\n batteryLevel: number;\n batteryState: string;\n lowPowerMode: boolean;\n }; // should be PowerState\n getSupported32BitAbis: () => Promise;\n getSupported32BitAbisSync: () => string[];\n getSupported64BitAbis: () => Promise;\n getSupported64BitAbisSync: () => string[];\n getSupportedAbis: () => Promise;\n getSupportedAbisSync: () => string[];\n getSystemManufacturer: () => Promise;\n getSystemManufacturerSync: () => string;\n getAndroidId: () => Promise;\n getAndroidIdSync: () => string;\n getApiLevel: () => Promise;\n getApiLevelSync: () => number;\n getAvailableLocationProviders: () => Promise;\n getAvailableLocationProvidersSync: () => Object; // should be LocationProviderInfo\n getBaseOs: () => Promise;\n getBaseOsSync: () => string;\n getBatteryLevel: () => Promise;\n getBatteryLevelSync: () => number;\n getBootloader: () => Promise;\n getBootloaderSync: () => string;\n getBuildId: () => Promise;\n getBuildIdSync: () => string;\n getCarrier: () => Promise;\n getCarrierSync: () => string;\n getCodename: () => Promise;\n getCodenameSync: () => string;\n getDevice: () => Promise;\n getDeviceName: () => Promise;\n getDeviceNameSync: () => string;\n getDeviceSync: () => string;\n getDeviceToken: () => Promise;\n getDisplay: () => Promise;\n getDisplaySync: () => string;\n getFingerprint: () => Promise;\n getFingerprintSync: () => string;\n getFirstInstallTime: () => Promise;\n getFirstInstallTimeSync: () => number;\n getFontScale: () => Promise;\n getFontScaleSync: () => number;\n getFreeDiskStorage: () => Promise;\n getFreeDiskStorageOld: () => Promise;\n getFreeDiskStorageSync: () => number;\n getFreeDiskStorageOldSync: () => number;\n getHardware: () => Promise;\n getHardwareSync: () => string;\n getHost: () => Promise;\n getHostSync: () => string;\n getIncremental: () => Promise;\n getIncrementalSync: () => string;\n getInstallerPackageName: () => Promise;\n getInstallerPackageNameSync: () => string;\n getInstallReferrer: () => Promise;\n getInstallReferrerSync: () => string;\n getInstanceId: () => Promise;\n getInstanceIdSync: () => string;\n getIpAddress: () => Promise;\n getIpAddressSync: () => string;\n getLastUpdateTime: () => Promise;\n getLastUpdateTimeSync: () => number;\n getMacAddress: () => Promise;\n getMacAddressSync: () => string;\n getMaxMemory: () => Promise;\n getMaxMemorySync: () => number;\n getPhoneNumber: () => Promise;\n getPhoneNumberSync: () => string;\n getPreviewSdkInt: () => Promise;\n getPreviewSdkIntSync: () => number;\n getProduct: () => Promise;\n getProductSync: () => string;\n getSecurityPatch: () => Promise;\n getSecurityPatchSync: () => string;\n getSerialNumber: () => Promise;\n getSerialNumberSync: () => string;\n getSystemAvailableFeatures: () => Promise;\n getSystemAvailableFeaturesSync: () => string[];\n getTags: () => Promise;\n getTagsSync: () => string;\n getTotalDiskCapacity: () => Promise;\n getTotalDiskCapacityOld: () => Promise;\n getTotalDiskCapacitySync: () => number;\n getTotalDiskCapacityOldSync: () => number;\n getTotalMemory: () => Promise;\n getTotalMemorySync: () => number;\n getType: () => Promise;\n getTypeSync: () => string;\n getUniqueId: () => Promise;\n getUniqueIdSync: () => string;\n getUsedMemory: () => Promise;\n getUsedMemorySync: () => number;\n getUserAgent: () => Promise;\n getUserAgentSync: () => string;\n getBrightness: () => Promise;\n getBrightnessSync: () => number;\n hasGms: () => Promise;\n hasGmsSync: () => boolean;\n hasHms: () => Promise;\n hasHmsSync: () => boolean;\n hasSystemFeature: (feature: string) => Promise;\n hasSystemFeatureSync: (feature: string) => boolean;\n isAirplaneMode: () => Promise;\n isAirplaneModeSync: () => boolean;\n isBatteryCharging: () => Promise;\n isBatteryChargingSync: () => boolean;\n isCameraPresent: () => Promise;\n isCameraPresentSync: () => boolean;\n isEmulator: () => Promise;\n isEmulatorSync: () => boolean;\n isHeadphonesConnected: () => Promise;\n isHeadphonesConnectedSync: () => boolean;\n isLocationEnabled: () => Promise;\n isLocationEnabledSync: () => boolean;\n isPinOrFingerprintSet: () => Promise;\n isPinOrFingerprintSetSync: () => boolean;\n isMouseConnected: () => Promise;\n isMouseConnectedSync: () => boolean;\n isKeyboardConnected: () => Promise;\n isKeyboardConnectedSync: () => boolean;\n isTabletMode: () => Promise;\n syncUniqueId: () => Promise;\n\n addListener(eventName: string): void;\n removeListeners(count: number): void;\n getConstants(): {\n appName: string;\n appVersion: string;\n brand: string;\n buildNumber: string;\n bundleId: string;\n deviceId: string;\n deviceType: string;\n isTablet: boolean;\n isDisplayZoomed?: boolean;\n model: string;\n systemName: string;\n systemVersion: string;\n };\n}\n\nexport default TurboModuleRegistry.getEnforcing('RNDeviceInfo');\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/index.js b/node_modules/react-native-device-info/lib/module/index.js +index 9db4a5c..6ba1b7f 100644 +--- a/node_modules/react-native-device-info/lib/module/index.js ++++ b/node_modules/react-native-device-info/lib/module/index.js +@@ -1,10 +1,20 @@ + import { useCallback, useEffect, useState } from 'react'; +-import { Dimensions, NativeEventEmitter, NativeModules, Platform } from 'react-native'; ++import { Dimensions, NativeEventEmitter, Platform } from 'react-native'; + import { useOnEvent, useOnMount } from './internal/asyncHookWrappers'; +-import devicesWithDynamicIsland from "./internal/devicesWithDynamicIsland"; ++import devicesWithDynamicIsland from './internal/devicesWithDynamicIsland'; + import devicesWithNotch from './internal/devicesWithNotch'; + import RNDeviceInfo from './internal/nativeInterface'; + import { getSupportedPlatformInfoAsync, getSupportedPlatformInfoFunctions, getSupportedPlatformInfoSync } from './internal/supported-platform-info'; ++let constants; ++ ++function getConstants() { ++ if (constants === undefined) { ++ constants = RNDeviceInfo.getConstants(); ++ } ++ ++ return constants; ++} ++ + export const [getUniqueId, getUniqueIdSync] = getSupportedPlatformInfoFunctions({ + memoKey: 'uniqueId', + supportedPlatforms: ['android', 'ios', 'windows'], +@@ -76,7 +86,7 @@ export function getMacAddressSync() { + export const getDeviceId = () => getSupportedPlatformInfoSync({ + defaultValue: 'unknown', + memoKey: 'deviceId', +- getter: () => RNDeviceInfo.deviceId, ++ getter: () => getConstants().deviceId, + supportedPlatforms: ['android', 'ios', 'windows'] + }); + export const [getManufacturer, getManufacturerSync] = getSupportedPlatformInfoFunctions({ +@@ -90,20 +100,20 @@ export const getModel = () => getSupportedPlatformInfoSync({ + memoKey: 'model', + defaultValue: 'unknown', + supportedPlatforms: ['ios', 'android', 'windows'], +- getter: () => RNDeviceInfo.model ++ getter: () => getConstants().model + }); + export const getBrand = () => getSupportedPlatformInfoSync({ + memoKey: 'brand', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.brand ++ getter: () => getConstants().brand + }); + export const getSystemName = () => getSupportedPlatformInfoSync({ + defaultValue: 'unknown', + supportedPlatforms: ['ios', 'android', 'windows'], + memoKey: 'systemName', + getter: () => Platform.select({ +- ios: RNDeviceInfo.systemName, ++ ios: getConstants().systemName, + android: 'Android', + windows: 'Windows', + default: 'unknown' +@@ -111,7 +121,7 @@ export const getSystemName = () => getSupportedPlatformInfoSync({ + }); + export const getSystemVersion = () => getSupportedPlatformInfoSync({ + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.systemVersion, ++ getter: () => getConstants().systemVersion, + supportedPlatforms: ['android', 'ios', 'windows'], + memoKey: 'systemVersion' + }); +@@ -133,7 +143,7 @@ export const getBundleId = () => getSupportedPlatformInfoSync({ + memoKey: 'bundleId', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.bundleId ++ getter: () => getConstants().bundleId + }); + export const [getInstallerPackageName, getInstallerPackageNameSync] = getSupportedPlatformInfoFunctions({ + memoKey: 'installerPackageName', +@@ -145,20 +155,20 @@ export const [getInstallerPackageName, getInstallerPackageNameSync] = getSupport + export const getApplicationName = () => getSupportedPlatformInfoSync({ + memoKey: 'appName', + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.appName, ++ getter: () => getConstants().appName, + supportedPlatforms: ['android', 'ios', 'windows'] + }); + export const getBuildNumber = () => getSupportedPlatformInfoSync({ + memoKey: 'buildNumber', + supportedPlatforms: ['android', 'ios', 'windows'], +- getter: () => RNDeviceInfo.buildNumber, ++ getter: () => getConstants().buildNumber, + defaultValue: 'unknown' + }); + export const getVersion = () => getSupportedPlatformInfoSync({ + memoKey: 'version', + defaultValue: 'unknown', + supportedPlatforms: ['android', 'ios', 'windows'], +- getter: () => RNDeviceInfo.appVersion ++ getter: () => getConstants().appVersion + }); + export function getReadableVersion() { + return getVersion() + '.' + getBuildNumber(); +@@ -302,7 +312,13 @@ export const isTablet = () => getSupportedPlatformInfoSync({ + defaultValue: false, + supportedPlatforms: ['android', 'ios', 'windows'], + memoKey: 'tablet', +- getter: () => RNDeviceInfo.isTablet ++ getter: () => getConstants().isTablet ++}); ++export const isDisplayZoomed = () => getSupportedPlatformInfoSync({ ++ defaultValue: false, ++ supportedPlatforms: ['ios'], ++ memoKey: 'zoomed', ++ getter: () => getConstants().isDisplayZoomed + }); + export const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPlatformInfoFunctions({ + supportedPlatforms: ['android', 'ios', 'windows'], +@@ -313,6 +329,8 @@ export const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPl + let notch; + export function hasNotch() { + if (notch === undefined) { ++ console.log(RNDeviceInfo); ++ + let _brand = getBrand(); + + let _model = getModel(); +@@ -488,7 +506,7 @@ export const getDeviceType = () => { + memoKey: 'deviceType', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.deviceType ++ getter: () => getConstants().deviceType + }); + }; + export const getDeviceTypeSync = () => { +@@ -496,7 +514,7 @@ export const getDeviceTypeSync = () => { + memoKey: 'deviceType', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.deviceType ++ getter: () => getConstants().deviceType + }); + }; + export const [supportedAbis, supportedAbisSync] = getSupportedPlatformInfoFunctions({ +@@ -595,7 +613,7 @@ export async function getDeviceToken() { + + return 'unknown'; + } +-const deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo); ++const deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo); + export function useBatteryLevel() { + const [batteryLevel, setBatteryLevel] = useState(null); + useEffect(() => { +@@ -819,6 +837,7 @@ const DeviceInfo = { + isKeyboardConnectedSync, + isTabletMode, + isTablet, ++ isDisplayZoomed, + supported32BitAbis, + supported32BitAbisSync, + supported64BitAbis, +diff --git a/node_modules/react-native-device-info/lib/module/index.js.flow b/node_modules/react-native-device-info/lib/module/index.js.flow +index 02fbb10..fdb85b0 100644 +--- a/node_modules/react-native-device-info/lib/module/index.js.flow ++++ b/node_modules/react-native-device-info/lib/module/index.js.flow +@@ -153,6 +153,7 @@ declare module.exports: { + isKeyboardConnectedSync: () => boolean, + isTabletMode: () => Promise, + isTablet: () => boolean, ++ isDisplayZoomed: () => boolean, + supported32BitAbis: () => Promise, + supported32BitAbisSync: () => string[], + supported64BitAbis: () => Promise, +diff --git a/node_modules/react-native-device-info/lib/module/index.js.map b/node_modules/react-native-device-info/lib/module/index.js.map +index ee4ed0f..05b2714 100644 +--- a/node_modules/react-native-device-info/lib/module/index.js.map ++++ b/node_modules/react-native-device-info/lib/module/index.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["index.ts"],"names":["useCallback","useEffect","useState","Dimensions","NativeEventEmitter","NativeModules","Platform","useOnEvent","useOnMount","devicesWithDynamicIsland","devicesWithNotch","RNDeviceInfo","getSupportedPlatformInfoAsync","getSupportedPlatformInfoFunctions","getSupportedPlatformInfoSync","getUniqueId","getUniqueIdSync","memoKey","supportedPlatforms","getter","syncGetter","defaultValue","uniqueId","syncUniqueId","OS","getInstanceId","getInstanceIdSync","getSerialNumber","getSerialNumberSync","getAndroidId","getAndroidIdSync","getIpAddress","getIpAddressSync","isCameraPresent","isCameraPresentSync","getMacAddress","getMacAddressSync","getDeviceId","deviceId","getManufacturer","getManufacturerSync","Promise","resolve","getSystemManufacturer","getSystemManufacturerSync","getModel","model","getBrand","brand","getSystemName","select","ios","systemName","android","windows","default","getSystemVersion","systemVersion","getBuildId","getBuildIdSync","getApiLevel","getApiLevelSync","getBundleId","bundleId","getInstallerPackageName","getInstallerPackageNameSync","getApplicationName","appName","getBuildNumber","buildNumber","getVersion","appVersion","getReadableVersion","getDeviceName","getDeviceNameSync","getUsedMemory","getUsedMemorySync","getUserAgent","getUserAgentSync","getFontScale","getFontScaleSync","getBootloader","getBootloaderSync","getDevice","getDeviceSync","getDisplay","getDisplaySync","getFingerprint","getFingerprintSync","getHardware","getHardwareSync","getHost","getHostSync","getProduct","getProductSync","getTags","getTagsSync","getType","getTypeSync","getBaseOs","getBaseOsSync","getPreviewSdkInt","getPreviewSdkIntSync","getSecurityPatch","getSecurityPatchSync","getCodename","getCodenameSync","getIncremental","getIncrementalSync","isEmulator","isEmulatorSync","isTablet","isPinOrFingerprintSet","isPinOrFingerprintSetSync","notch","hasNotch","undefined","_brand","_model","findIndex","item","toLowerCase","dynamicIsland","hasDynamicIsland","hasGms","hasGmsSync","hasHms","hasHmsSync","getFirstInstallTime","getFirstInstallTimeSync","getInstallReferrer","getInstallReferrerSync","getLastUpdateTime","getLastUpdateTimeSync","getPhoneNumber","getPhoneNumberSync","getCarrier","getCarrierSync","getTotalMemory","getTotalMemorySync","getMaxMemory","getMaxMemorySync","getTotalDiskCapacity","getTotalDiskCapacitySync","getTotalDiskCapacityOld","getTotalDiskCapacityOldSync","getFreeDiskStorage","getFreeDiskStorageSync","getFreeDiskStorageOld","getFreeDiskStorageOldSync","getBatteryLevel","getBatteryLevelSync","getPowerState","getPowerStateSync","isBatteryCharging","isBatteryChargingSync","isLandscape","isLandscapeSync","height","width","get","isAirplaneMode","isAirplaneModeSync","getDeviceType","deviceType","getDeviceTypeSync","supportedAbis","supportedAbisSync","getSupportedAbis","getSupportedAbisSync","supported32BitAbis","supported32BitAbisSync","getSupported32BitAbis","getSupported32BitAbisSync","supported64BitAbis","supported64BitAbisSync","getSupported64BitAbis","getSupported64BitAbisSync","hasSystemFeature","feature","hasSystemFeatureSync","isLowBatteryLevel","level","getSystemAvailableFeatures","getSystemAvailableFeaturesSync","isLocationEnabled","isLocationEnabledSync","isHeadphonesConnected","isHeadphonesConnectedSync","isMouseConnected","isMouseConnectedSync","isKeyboardConnected","isKeyboardConnectedSync","isTabletMode","getAvailableLocationProviders","getAvailableLocationProvidersSync","getBrightness","getBrightnessSync","getDeviceToken","deviceInfoEmitter","useBatteryLevel","batteryLevel","setBatteryLevel","setInitialValue","initialValue","onChange","subscription","addListener","remove","useBatteryLevelIsLow","batteryLevelIsLow","setBatteryLevelIsLow","usePowerState","powerState","setPowerState","state","useIsHeadphonesConnected","useFirstInstallTime","useDeviceName","useHasSystemFeature","asyncGetter","useIsEmulator","useManufacturer","useBrightness","brightness","setBrightness","value","DeviceInfo"],"mappings":"AAAA,SAASA,WAAT,EAAsBC,SAAtB,EAAiCC,QAAjC,QAAiD,OAAjD;AACA,SAASC,UAAT,EAAqBC,kBAArB,EAAyCC,aAAzC,EAAwDC,QAAxD,QAAwE,cAAxE;AACA,SAASC,UAAT,EAAqBC,UAArB,QAAuC,8BAAvC;AACA,OAAOC,wBAAP,MAAqC,qCAArC;AACA,OAAOC,gBAAP,MAA6B,6BAA7B;AACA,OAAOC,YAAP,MAAyB,4BAAzB;AACA,SACEC,6BADF,EAEEC,iCAFF,EAGEC,4BAHF,QAIO,oCAJP;AAaA,OAAO,MAAM,CAACC,WAAD,EAAcC,eAAd,IAAiCH,iCAAiC,CAAC;AAC9EI,EAAAA,OAAO,EAAE,UADqE;AAE9EC,EAAAA,kBAAkB,EAAE,CAAC,SAAD,EAAY,KAAZ,EAAmB,SAAnB,CAF0D;AAG9EC,EAAAA,MAAM,EAAE,MAAMR,YAAY,CAACI,WAAb,EAHgE;AAI9EK,EAAAA,UAAU,EAAE,MAAMT,YAAY,CAACK,eAAb,EAJ4D;AAK9EK,EAAAA,YAAY,E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C;AAyHnC4B,EAAAA,iBAzHmC;AA0HnCC,EAAAA,qBA1HmC;AA2HnC1E,EAAAA,qBA3HmC;AA4HnCC,EAAAA,yBA5HmC;AA6HnC4E,EAAAA,gBA7HmC;AA8HnCC,EAAAA,oBA9HmC;AA+HnCC,EAAAA,mBA/HmC;AAgInCC,EAAAA,uBAhImC;AAiInCC,EAAAA,YAjImC;AAkInClF,EAAAA,QAlImC;AAmInC2D,EAAAA,kBAnImC;AAoInCC,EAAAA,sBApImC;AAqInCG,EAAAA,kBArImC;AAsInCC,EAAAA,sBAtImC;AAuInCT,EAAAA,aAvImC;AAwInCC,EAAAA,iBAxImC;AAyInChJ,EAAAA,YAzImC;AA0InCiL,EAAAA,eA1ImC;AA2InCS,EAAAA,oBA3ImC;AA4InCS,EAAAA,aA5ImC;AA6InCD,EAAAA,mBA7ImC;AA8InCE,EAAAA,mBA9ImC;AA+InCE,EAAAA,aA/ImC;AAgJnCT,EAAAA,aAhJmC;AAiJnCU,EAAAA,eAjJmC;AAkJnCN,EAAAA,wBAlJmC;AAmJnCO,EAAAA;AAnJmC,CAArC;AAsJA,eAAeI,UAAf","sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport { Dimensions, NativeEventEmitter, NativeModules, Platform } from 'react-native';\nimport { useOnEvent, useOnMount } from './internal/asyncHookWrappers';\nimport devicesWithDynamicIsland from \"./internal/devicesWithDynamicIsland\";\nimport devicesWithNotch from './internal/devicesWithNotch';\nimport RNDeviceInfo from './internal/nativeInterface';\nimport {\n getSupportedPlatformInfoAsync,\n getSupportedPlatformInfoFunctions,\n getSupportedPlatformInfoSync,\n} from './internal/supported-platform-info';\nimport { DeviceInfoModule } from './internal/privateTypes';\nimport type {\n AsyncHookResult,\n DeviceType,\n LocationProviderInfo,\n PowerState,\n} from './internal/types';\n\nexport const [getUniqueId, getUniqueIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'uniqueId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getUniqueId(),\n syncGetter: () => RNDeviceInfo.getUniqueIdSync(),\n defaultValue: 'unknown',\n});\n\nlet uniqueId: string;\nexport async function syncUniqueId() {\n if (Platform.OS === 'ios') {\n uniqueId = await RNDeviceInfo.syncUniqueId();\n } else {\n uniqueId = await getUniqueId();\n }\n return uniqueId;\n}\n\nexport const [getInstanceId, getInstanceIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'instanceId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getInstanceId(),\n syncGetter: () => RNDeviceInfo.getInstanceIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getSerialNumber, getSerialNumberSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'serialNumber',\n supportedPlatforms: ['android', 'windows'],\n getter: () => RNDeviceInfo.getSerialNumber(),\n syncGetter: () => RNDeviceInfo.getSerialNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getAndroidId, getAndroidIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'androidId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getAndroidId(),\n syncGetter: () => RNDeviceInfo.getAndroidIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIpAddress, getIpAddressSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getIpAddress(),\n syncGetter: () => RNDeviceInfo.getIpAddressSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isCameraPresent, isCameraPresentSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.isCameraPresent(),\n syncGetter: () => RNDeviceInfo.isCameraPresentSync(),\n defaultValue: false,\n});\n\nexport async function getMacAddress() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddress();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport function getMacAddressSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddressSync();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport const getDeviceId = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n memoKey: 'deviceId',\n getter: () => RNDeviceInfo.deviceId,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const [getManufacturer, getManufacturerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'manufacturer',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () =>\n Platform.OS == 'ios' ? Promise.resolve('Apple') : RNDeviceInfo.getSystemManufacturer(),\n syncGetter: () => (Platform.OS == 'ios' ? 'Apple' : RNDeviceInfo.getSystemManufacturerSync()),\n defaultValue: 'unknown',\n});\n\nexport const getModel = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'model',\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n getter: () => RNDeviceInfo.model,\n });\n\nexport const getBrand = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'brand',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.brand,\n });\n\nexport const getSystemName = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n memoKey: 'systemName',\n getter: () =>\n Platform.select({\n ios: RNDeviceInfo.systemName,\n android: 'Android',\n windows: 'Windows',\n default: 'unknown',\n }),\n });\n\nexport const getSystemVersion = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.systemVersion,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'systemVersion',\n });\n\nexport const [getBuildId, getBuildIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'buildId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getBuildId(),\n syncGetter: () => RNDeviceInfo.getBuildIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getApiLevel, getApiLevelSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'apiLevel',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getApiLevel(),\n syncGetter: () => RNDeviceInfo.getApiLevelSync(),\n defaultValue: -1,\n});\n\nexport const getBundleId = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'bundleId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.bundleId,\n });\n\nexport const [\n getInstallerPackageName,\n getInstallerPackageNameSync,\n] = getSupportedPlatformInfoFunctions({\n memoKey: 'installerPackageName',\n supportedPlatforms: ['android', 'windows', 'ios'],\n getter: () => RNDeviceInfo.getInstallerPackageName(),\n syncGetter: () => RNDeviceInfo.getInstallerPackageNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const getApplicationName = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'appName',\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.appName,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const getBuildNumber = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'buildNumber',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.buildNumber,\n defaultValue: 'unknown',\n });\n\nexport const getVersion = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'version',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.appVersion,\n });\n\nexport function getReadableVersion() {\n return getVersion() + '.' + getBuildNumber();\n}\n\nexport const [getDeviceName, getDeviceNameSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getDeviceName(),\n syncGetter: () => RNDeviceInfo.getDeviceNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getUsedMemory, getUsedMemorySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getUsedMemory(),\n syncGetter: () => RNDeviceInfo.getUsedMemorySync(),\n defaultValue: -1,\n});\n\nexport const getUserAgent = () =>\n getSupportedPlatformInfoAsync({\n memoKey: 'userAgent',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.getUserAgent(),\n });\n\nexport const getUserAgentSync = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'userAgentSync',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.getUserAgentSync(),\n });\n\nexport const [getFontScale, getFontScaleSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFontScale(),\n syncGetter: () => RNDeviceInfo.getFontScaleSync(),\n defaultValue: -1,\n});\n\nexport const [getBootloader, getBootloaderSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'bootloader',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getBootloader(),\n syncGetter: () => RNDeviceInfo.getBootloaderSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getDevice, getDeviceSync] = getSupportedPlatformInfoFunctions({\n getter: () => RNDeviceInfo.getDevice(),\n syncGetter: () => RNDeviceInfo.getDeviceSync(),\n defaultValue: 'unknown',\n memoKey: 'device',\n supportedPlatforms: ['android'],\n});\n\nexport const [getDisplay, getDisplaySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'display',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getDisplay(),\n syncGetter: () => RNDeviceInfo.getDisplaySync(),\n defaultValue: 'unknown',\n});\n\nexport const [getFingerprint, getFingerprintSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'fingerprint',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getFingerprint(),\n syncGetter: () => RNDeviceInfo.getFingerprintSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHardware, getHardwareSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'hardware',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHardware(),\n syncGetter: () => RNDeviceInfo.getHardwareSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHost, getHostSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'host',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHost(),\n syncGetter: () => RNDeviceInfo.getHostSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getProduct, getProductSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'product',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getProduct(),\n syncGetter: () => RNDeviceInfo.getProductSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTags, getTagsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'tags',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getTags(),\n syncGetter: () => RNDeviceInfo.getTagsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getType, getTypeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'type',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getType(),\n syncGetter: () => RNDeviceInfo.getTypeSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getBaseOs, getBaseOsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'baseOs',\n supportedPlatforms: ['android', 'web', 'windows'],\n getter: () => RNDeviceInfo.getBaseOs(),\n syncGetter: () => RNDeviceInfo.getBaseOsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getPreviewSdkInt, getPreviewSdkIntSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'previewSdkInt',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPreviewSdkInt(),\n syncGetter: () => RNDeviceInfo.getPreviewSdkIntSync(),\n defaultValue: -1,\n});\n\nexport const [getSecurityPatch, getSecurityPatchSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'securityPatch',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSecurityPatch(),\n syncGetter: () => RNDeviceInfo.getSecurityPatchSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCodename, getCodenameSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'codeName',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getCodename(),\n syncGetter: () => RNDeviceInfo.getCodenameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIncremental, getIncrementalSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'incremental',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getIncremental(),\n syncGetter: () => RNDeviceInfo.getIncrementalSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isEmulator, isEmulatorSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'emulator',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isEmulator(),\n syncGetter: () => RNDeviceInfo.isEmulatorSync(),\n defaultValue: false,\n});\n\nexport const isTablet = () =>\n getSupportedPlatformInfoSync({\n defaultValue: false,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'tablet',\n getter: () => RNDeviceInfo.isTablet,\n });\n\nexport const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isPinOrFingerprintSet(),\n syncGetter: () => RNDeviceInfo.isPinOrFingerprintSetSync(),\n defaultValue: false,\n }\n);\n\nlet notch: boolean;\nexport function hasNotch() {\n if (notch === undefined) {\n let _brand = getBrand();\n let _model = getModel();\n notch =\n devicesWithNotch.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return notch;\n}\n\nlet dynamicIsland: boolean;\nexport function hasDynamicIsland() {\n if (dynamicIsland === undefined) {\n let _brand = getBrand();\n let _model = getModel();\n dynamicIsland =\n devicesWithDynamicIsland.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return dynamicIsland;\n}\n\nexport const [hasGms, hasGmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasGms(),\n syncGetter: () => RNDeviceInfo.hasGmsSync(),\n defaultValue: false,\n});\n\nexport const [hasHms, hasHmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasHms(),\n syncGetter: () => RNDeviceInfo.hasHmsSync(),\n defaultValue: false,\n});\n\nexport const [getFirstInstallTime, getFirstInstallTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'firstInstallTime',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFirstInstallTime(),\n syncGetter: () => RNDeviceInfo.getFirstInstallTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getInstallReferrer, getInstallReferrerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'installReferrer',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getInstallReferrer(),\n syncGetter: () => RNDeviceInfo.getInstallReferrerSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getLastUpdateTime, getLastUpdateTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'lastUpdateTime',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getLastUpdateTime(),\n syncGetter: () => RNDeviceInfo.getLastUpdateTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getPhoneNumber, getPhoneNumberSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPhoneNumber(),\n syncGetter: () => RNDeviceInfo.getPhoneNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCarrier, getCarrierSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getCarrier(),\n syncGetter: () => RNDeviceInfo.getCarrierSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTotalMemory, getTotalMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'totalMemory',\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalMemory(),\n syncGetter: () => RNDeviceInfo.getTotalMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getMaxMemory, getMaxMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'maxMemory',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getMaxMemory(),\n syncGetter: () => RNDeviceInfo.getMaxMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getTotalDiskCapacity, getTotalDiskCapacitySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalDiskCapacity(),\n syncGetter: () => RNDeviceInfo.getTotalDiskCapacitySync(),\n defaultValue: -1,\n});\n\nexport async function getTotalDiskCapacityOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacity();\n }\n\n return -1;\n}\n\nexport function getTotalDiskCapacityOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacitySync();\n }\n\n return -1;\n}\n\nexport const [getFreeDiskStorage, getFreeDiskStorageSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getFreeDiskStorage(),\n syncGetter: () => RNDeviceInfo.getFreeDiskStorageSync(),\n defaultValue: -1,\n});\n\nexport async function getFreeDiskStorageOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorage();\n }\n\n return -1;\n}\n\nexport function getFreeDiskStorageOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorageSync();\n }\n\n return -1;\n}\n\nexport const [getBatteryLevel, getBatteryLevelSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getBatteryLevel(),\n syncGetter: () => RNDeviceInfo.getBatteryLevelSync(),\n defaultValue: -1,\n});\n\nexport const [getPowerState, getPowerStateSync] = getSupportedPlatformInfoFunctions<\n Partial\n>({\n supportedPlatforms: ['ios', 'android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getPowerState(),\n syncGetter: () => RNDeviceInfo.getPowerStateSync(),\n defaultValue: {},\n});\n\nexport const [isBatteryCharging, isBatteryChargingSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.isBatteryCharging(),\n syncGetter: () => RNDeviceInfo.isBatteryChargingSync(),\n defaultValue: false,\n});\n\nexport async function isLandscape() {\n return Promise.resolve(isLandscapeSync());\n}\n\nexport function isLandscapeSync() {\n const { height, width } = Dimensions.get('window');\n return width >= height;\n}\n\nexport const [isAirplaneMode, isAirplaneModeSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.isAirplaneMode(),\n syncGetter: () => RNDeviceInfo.isAirplaneModeSync(),\n defaultValue: false,\n});\n\nexport const getDeviceType = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.deviceType,\n });\n};\n\nexport const getDeviceTypeSync = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => RNDeviceInfo.deviceType,\n });\n};\n\nexport const [supportedAbis, supportedAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supportedAbis',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getSupportedAbis(),\n syncGetter: () => RNDeviceInfo.getSupportedAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported32BitAbis, supported32BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported32BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported32BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported32BitAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported64BitAbis, supported64BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported64BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported64BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported64BitAbisSync(),\n defaultValue: [],\n});\n\nexport async function hasSystemFeature(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeature(feature);\n }\n return false;\n}\n\nexport function hasSystemFeatureSync(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeatureSync(feature);\n }\n return false;\n}\n\nexport function isLowBatteryLevel(level: number): boolean {\n if (Platform.OS === 'android') {\n return level < 0.15;\n }\n return level < 0.2;\n}\n\nexport const [\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSystemAvailableFeatures(),\n syncGetter: () => RNDeviceInfo.getSystemAvailableFeaturesSync(),\n defaultValue: [] as string[],\n});\n\nexport const [isLocationEnabled, isLocationEnabledSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.isLocationEnabled(),\n syncGetter: () => RNDeviceInfo.isLocationEnabledSync(),\n defaultValue: false,\n});\n\nexport const [isHeadphonesConnected, isHeadphonesConnectedSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.isHeadphonesConnected(),\n syncGetter: () => RNDeviceInfo.isHeadphonesConnectedSync(),\n defaultValue: false,\n }\n);\n\nexport const [isMouseConnected, isMouseConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isMouseConnected(),\n syncGetter: () => RNDeviceInfo.isMouseConnectedSync(),\n defaultValue: false,\n});\n\nexport const [isKeyboardConnected, isKeyboardConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isKeyboardConnected(),\n syncGetter: () => RNDeviceInfo.isKeyboardConnectedSync(),\n defaultValue: false,\n});\n\nexport const isTabletMode = () =>\n getSupportedPlatformInfoAsync({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isTabletMode(),\n defaultValue: false,\n });\n\nexport const [\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getAvailableLocationProviders(),\n syncGetter: () => RNDeviceInfo.getAvailableLocationProvidersSync(),\n defaultValue: {},\n});\n\nexport const [getBrightness, getBrightnessSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['ios'],\n getter: () => RNDeviceInfo.getBrightness(),\n syncGetter: () => RNDeviceInfo.getBrightnessSync(),\n defaultValue: -1,\n});\n\nexport async function getDeviceToken() {\n if (Platform.OS === 'ios') {\n return RNDeviceInfo.getDeviceToken();\n }\n return 'unknown';\n}\n\nconst deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\nexport function useBatteryLevel(): number | null {\n const [batteryLevel, setBatteryLevel] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n setBatteryLevel(initialValue);\n };\n\n const onChange = (level: number) => {\n setBatteryLevel(level);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_batteryLevelDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevel;\n}\n\nexport function useBatteryLevelIsLow(): number | null {\n const [batteryLevelIsLow, setBatteryLevelIsLow] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n isLowBatteryLevel(initialValue) && setBatteryLevelIsLow(initialValue);\n };\n\n setInitialValue();\n\n const onChange = (level: number) => {\n setBatteryLevelIsLow(level);\n };\n\n const subscription = deviceInfoEmitter.addListener('RNDeviceInfo_batteryLevelIsLow', onChange);\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevelIsLow;\n}\n\nexport function usePowerState(): Partial {\n const [powerState, setPowerState] = useState>({});\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: Partial = await getPowerState();\n setPowerState(initialValue);\n };\n\n const onChange = (state: PowerState) => {\n setPowerState(state);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_powerStateDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return powerState;\n}\n\nexport function useIsHeadphonesConnected(): AsyncHookResult {\n return useOnEvent('RNDeviceInfo_headphoneConnectionDidChange', isHeadphonesConnected, false);\n}\n\nexport function useFirstInstallTime(): AsyncHookResult {\n return useOnMount(getFirstInstallTime, -1);\n}\n\nexport function useDeviceName(): AsyncHookResult {\n return useOnMount(getDeviceName, 'unknown');\n}\n\nexport function useHasSystemFeature(feature: string): AsyncHookResult {\n const asyncGetter = useCallback(() => hasSystemFeature(feature), [feature]);\n return useOnMount(asyncGetter, false);\n}\n\nexport function useIsEmulator(): AsyncHookResult {\n return useOnMount(isEmulator, false);\n}\n\nexport function useManufacturer(): AsyncHookResult {\n return useOnMount(getManufacturer, 'unknown');\n}\n\nexport function useBrightness(): number | null {\n const [brightness, setBrightness] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBrightness();\n setBrightness(initialValue);\n };\n\n const onChange = (value: number) => {\n setBrightness(value);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_brightnessDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return brightness;\n}\n\nexport type { AsyncHookResult, DeviceType, LocationProviderInfo, PowerState };\n\nconst DeviceInfo: DeviceInfoModule = {\n getAndroidId,\n getAndroidIdSync,\n getApiLevel,\n getApiLevelSync,\n getApplicationName,\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n getBaseOs,\n getBaseOsSync,\n getBatteryLevel,\n getBatteryLevelSync,\n getBootloader,\n getBootloaderSync,\n getBrand,\n getBuildId,\n getBuildIdSync,\n getBuildNumber,\n getBundleId,\n getCarrier,\n getCarrierSync,\n getCodename,\n getCodenameSync,\n getDevice,\n getDeviceId,\n getDeviceName,\n getDeviceNameSync,\n getDeviceSync,\n getDeviceToken,\n getDeviceType,\n getDisplay,\n getDisplaySync,\n getFingerprint,\n getFingerprintSync,\n getFirstInstallTime,\n getFirstInstallTimeSync,\n getFontScale,\n getFontScaleSync,\n getFreeDiskStorage,\n getFreeDiskStorageOld,\n getFreeDiskStorageSync,\n getFreeDiskStorageOldSync,\n getHardware,\n getHardwareSync,\n getHost,\n getHostSync,\n getIncremental,\n getIncrementalSync,\n getInstallerPackageName,\n getInstallerPackageNameSync,\n getInstallReferrer,\n getInstallReferrerSync,\n getInstanceId,\n getInstanceIdSync,\n getIpAddress,\n getIpAddressSync,\n getLastUpdateTime,\n getLastUpdateTimeSync,\n getMacAddress,\n getMacAddressSync,\n getManufacturer,\n getManufacturerSync,\n getMaxMemory,\n getMaxMemorySync,\n getModel,\n getPhoneNumber,\n getPhoneNumberSync,\n getPowerState,\n getPowerStateSync,\n getPreviewSdkInt,\n getPreviewSdkIntSync,\n getProduct,\n getProductSync,\n getReadableVersion,\n getSecurityPatch,\n getSecurityPatchSync,\n getSerialNumber,\n getSerialNumberSync,\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n getSystemName,\n getSystemVersion,\n getTags,\n getTagsSync,\n getTotalDiskCapacity,\n getTotalDiskCapacityOld,\n getTotalDiskCapacitySync,\n getTotalDiskCapacityOldSync,\n getTotalMemory,\n getTotalMemorySync,\n getType,\n getTypeSync,\n getUniqueId,\n getUniqueIdSync,\n getUsedMemory,\n getUsedMemorySync,\n getUserAgent,\n getUserAgentSync,\n getVersion,\n getBrightness,\n getBrightnessSync,\n hasGms,\n hasGmsSync,\n hasHms,\n hasHmsSync,\n hasNotch,\n hasDynamicIsland,\n hasSystemFeature,\n hasSystemFeatureSync,\n isAirplaneMode,\n isAirplaneModeSync,\n isBatteryCharging,\n isBatteryChargingSync,\n isCameraPresent,\n isCameraPresentSync,\n isEmulator,\n isEmulatorSync,\n isHeadphonesConnected,\n isHeadphonesConnectedSync,\n isLandscape,\n isLandscapeSync,\n isLocationEnabled,\n isLocationEnabledSync,\n isPinOrFingerprintSet,\n isPinOrFingerprintSetSync,\n isMouseConnected,\n isMouseConnectedSync,\n isKeyboardConnected,\n isKeyboardConnectedSync,\n isTabletMode,\n isTablet,\n supported32BitAbis,\n supported32BitAbisSync,\n supported64BitAbis,\n supported64BitAbisSync,\n supportedAbis,\n supportedAbisSync,\n syncUniqueId,\n useBatteryLevel,\n useBatteryLevelIsLow,\n useDeviceName,\n useFirstInstallTime,\n useHasSystemFeature,\n useIsEmulator,\n usePowerState,\n useManufacturer,\n useIsHeadphonesConnected,\n useBrightness,\n};\n\nexport default DeviceInfo;\n"]} +\ No newline at end of file ++{"version":3,"sources":["index.ts"],"names":["useCallback","useEffect","useState","Dimensions","NativeEventEmitter","Platform","useOnEvent","useOnMount","devicesWithDynamicIsland","devicesWithNotch","RNDeviceInfo","getSupportedPlatformInfoAsync","getSupportedPlatformInfoFunctions","getSupportedPlatformInfoSync","constants","getConstants","undefined","getUniqueId","getUniqueIdSync","memoKey","supportedPlatforms","getter","syncGetter","defaultValue","uniqueId","syncUniqueId","OS","getInstanceId","getInstanceIdSync","getSerialNumber","getSerialNumberSync","getAndroidId","getAndroidIdSync","getIpAddress","getIpAddressSync","isCameraPresent","isCameraPresentSync","getMacAddress","getMacAddressSync","getDeviceId","deviceId","getManufacturer","getManufacturerSync","Promise","resolve","getSystemManufacturer","getSystemManufacturerSync","getModel","model","getBrand","brand","getSystemName","select","ios","systemName","android","windows","default","getSystemVersion","systemVersion","getBuildId","getBuildIdSync","getApiLevel","getApiLevelSync","getBundleId","bundleId","getInstallerPackageName","getInstallerPackageNameSync","getApplicationName","appName","getBuildNumber","buildNumber","getVersion","appVersion","getReadableVersion","getDeviceName","getDeviceNameSync","getUsedMemory","getUsedMemorySync","getUserAgent","getUserAgentSync","getFontScale","getFontScaleSync","getBootloader","getBootloaderSync","getDevice","getDeviceSync","getDisplay","getDisplaySync","getFingerprint","getFingerprintSync","getHardware","getHardwareSync","getHost","getHostSync","getProduct","getProductSync","getTags","getTagsSync","getType","getTypeSync","getBaseOs","getBaseOsSync","getPreviewSdkInt","getPreviewSdkIntSync","getSecurityPatch","getSecurityPatchSync","getCodename","getCodenameSync","getIncremental","getIncrementalSync","isEmulator","isEmulatorSync","isTablet","isDisplayZoomed","isPinOrFingerprintSet","isPinOrFingerprintSetSync","notch","hasNotch","console","log","_brand","_model","findIndex","item","toLowerCase","dynamicIsland","hasDynamicIsland","hasGms","hasGmsSync","hasHms","hasHmsSync","getFirstInstallTime","getFirstInstallTimeSync","getInstallReferrer","getInstallReferrerSync","getLastUpdateTime","getLastUpdateTimeSync","getPhoneNumber","getPhoneNumberSync","getCarrier","getCarrierSync","getTotalMemory","getTotalMemorySync","getMaxMemory","getMaxMemorySync","getTotalDiskCapacity","getTotalDiskCapacitySync","getTotalDiskCapacityOld","getTotalDiskCapacityOldSync","getFreeDiskStorage","getFreeDiskStorageSync","getFreeDiskStorageOld","getFreeDiskStorageOldSync","getBatteryLevel","getBatteryLevelSync","getPowerState","getPowerStateSync","isBatteryCharging","isBatteryChargingSync","isLandscape","isLandscapeSync","height","width","get","isAirplaneMode","isAirplaneModeSync","getDeviceType","deviceType","getDeviceTypeSync","supportedAbis","supportedAbisSync","getSupportedAbis","getSupportedAbisSync","supported32BitAbis","supported32BitAbisSync","getSupported32BitAbis","getSupported32BitAbisSync","supported64BitAbis","supported64BitAbisSync","getSupported64BitAbis","getSupported64BitAbisSync","hasSystemFeature","feature","hasSystemFeatureSync","isLowBatteryLevel","level","getSystemAvailableFeatures","getSystemAvailableFeaturesSync","isLocationEnabled","isLocationEnabledSync","isHeadphonesConnected","isHeadphonesConnectedSync","isMouseConnected","isMouseConnectedSync","isKeyboardConnected","isKeyboardConnectedSync","isTabletMode","getAvailableLocationProviders","getAvailableLocationProvidersSync","getBrightness","getBrightnessSync","getDeviceToken","deviceInfoEmitter","useBatteryLevel","batteryLevel","setBatteryLevel","setInitialValue","initialValue","onChange","subscription","addListener","remove","useBatteryLevelIsLow","batteryLevelIsLow","setBatteryLevelIsLow","usePowerState","powerState","setPowerState","state","useIsHeadphonesConnected","useFirstInstallTime","useDeviceName","useHasSystemFeature","asyncGetter","useIsEmulator","useManufacturer","useBrightness","brightness","setBrightness","value","DeviceInfo"],"mappings":"AAAA,SAASA,WAAT,EAAsBC,SAAtB,EAAiCC,QAAjC,QAAiD,OAAjD;AACA,SAASC,UAAT,EAAqBC,kBAArB,EAAyCC,QAAzC,QAAyD,cAAzD;AACA,SAASC,UAAT,EAAqBC,UAArB,QAAuC,8BAAvC;AACA,OAAOC,wBAAP,MAAqC,qCAArC;AACA,OAAOC,gBAAP,MAA6B,6BAA7B;AACA,OAAOC,YAAP,MAAyB,4BAAzB;AAC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AA,eAnImC;AAoInC4D,EAAAA,kBApImC;AAqInCC,EAAAA,sBArImC;AAsInCG,EAAAA,kBAtImC;AAuInCC,EAAAA,sBAvImC;AAwInCT,EAAAA,aAxImC;AAyInCC,EAAAA,iBAzImC;AA0InClJ,EAAAA,YA1ImC;AA2InCmL,EAAAA,eA3ImC;AA4InCS,EAAAA,oBA5ImC;AA6InCS,EAAAA,aA7ImC;AA8InCD,EAAAA,mBA9ImC;AA+InCE,EAAAA,mBA/ImC;AAgJnCE,EAAAA,aAhJmC;AAiJnCT,EAAAA,aAjJmC;AAkJnCU,EAAAA,eAlJmC;AAmJnCN,EAAAA,wBAnJmC;AAoJnCO,EAAAA;AApJmC,CAArC;AAuJA,eAAeI,UAAf","sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport { Dimensions, NativeEventEmitter, Platform } from 'react-native';\nimport { useOnEvent, useOnMount } from './internal/asyncHookWrappers';\nimport devicesWithDynamicIsland from './internal/devicesWithDynamicIsland';\nimport devicesWithNotch from './internal/devicesWithNotch';\nimport RNDeviceInfo from './internal/nativeInterface';\nimport {\n getSupportedPlatformInfoAsync,\n getSupportedPlatformInfoFunctions,\n getSupportedPlatformInfoSync,\n} from './internal/supported-platform-info';\nimport { DeviceInfoModule, NativeConstants } from './internal/privateTypes';\nimport type {\n AsyncHookResult,\n DeviceType,\n LocationProviderInfo,\n PowerState,\n} from './internal/types';\n\nlet constants: NativeConstants;\n\nfunction getConstants() {\n if (constants === undefined) {\n constants = RNDeviceInfo.getConstants() as NativeConstants;\n }\n return constants;\n}\n\nexport const [getUniqueId, getUniqueIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'uniqueId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getUniqueId(),\n syncGetter: () => RNDeviceInfo.getUniqueIdSync(),\n defaultValue: 'unknown',\n});\n\nlet uniqueId: string;\nexport async function syncUniqueId() {\n if (Platform.OS === 'ios') {\n uniqueId = await RNDeviceInfo.syncUniqueId();\n } else {\n uniqueId = await getUniqueId();\n }\n return uniqueId;\n}\n\nexport const [getInstanceId, getInstanceIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'instanceId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getInstanceId(),\n syncGetter: () => RNDeviceInfo.getInstanceIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getSerialNumber, getSerialNumberSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'serialNumber',\n supportedPlatforms: ['android', 'windows'],\n getter: () => RNDeviceInfo.getSerialNumber(),\n syncGetter: () => RNDeviceInfo.getSerialNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getAndroidId, getAndroidIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'androidId',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getAndroidId(),\n syncGetter: () => RNDeviceInfo.getAndroidIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIpAddress, getIpAddressSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getIpAddress(),\n syncGetter: () => RNDeviceInfo.getIpAddressSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isCameraPresent, isCameraPresentSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.isCameraPresent(),\n syncGetter: () => RNDeviceInfo.isCameraPresentSync(),\n defaultValue: false,\n});\n\nexport async function getMacAddress() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddress();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport function getMacAddressSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getMacAddressSync();\n } else if (Platform.OS === 'ios') {\n return '02:00:00:00:00:00';\n }\n return 'unknown';\n}\n\nexport const getDeviceId = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n memoKey: 'deviceId',\n getter: () => getConstants().deviceId,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const [getManufacturer, getManufacturerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'manufacturer',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () =>\n Platform.OS == 'ios' ? Promise.resolve('Apple') : RNDeviceInfo.getSystemManufacturer(),\n syncGetter: () => (Platform.OS == 'ios' ? 'Apple' : RNDeviceInfo.getSystemManufacturerSync()),\n defaultValue: 'unknown',\n});\n\nexport const getModel = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'model',\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n getter: () => getConstants().model,\n });\n\nexport const getBrand = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'brand',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().brand,\n });\n\nexport const getSystemName = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n supportedPlatforms: ['ios', 'android', 'windows'],\n memoKey: 'systemName',\n getter: () =>\n Platform.select({\n ios: getConstants().systemName,\n android: 'Android',\n windows: 'Windows',\n default: 'unknown',\n }),\n });\n\nexport const getSystemVersion = () =>\n getSupportedPlatformInfoSync({\n defaultValue: 'unknown',\n getter: () => getConstants().systemVersion,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'systemVersion',\n });\n\nexport const [getBuildId, getBuildIdSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'buildId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getBuildId(),\n syncGetter: () => RNDeviceInfo.getBuildIdSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getApiLevel, getApiLevelSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'apiLevel',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getApiLevel(),\n syncGetter: () => RNDeviceInfo.getApiLevelSync(),\n defaultValue: -1,\n});\n\nexport const getBundleId = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'bundleId',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().bundleId,\n });\n\nexport const [\n getInstallerPackageName,\n getInstallerPackageNameSync,\n] = getSupportedPlatformInfoFunctions({\n memoKey: 'installerPackageName',\n supportedPlatforms: ['android', 'windows', 'ios'],\n getter: () => RNDeviceInfo.getInstallerPackageName(),\n syncGetter: () => RNDeviceInfo.getInstallerPackageNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const getApplicationName = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'appName',\n defaultValue: 'unknown',\n getter: () => getConstants().appName,\n supportedPlatforms: ['android', 'ios', 'windows'],\n });\n\nexport const getBuildNumber = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'buildNumber',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => getConstants().buildNumber,\n defaultValue: 'unknown',\n });\n\nexport const getVersion = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'version',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => getConstants().appVersion,\n });\n\nexport function getReadableVersion() {\n return getVersion() + '.' + getBuildNumber();\n}\n\nexport const [getDeviceName, getDeviceNameSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getDeviceName(),\n syncGetter: () => RNDeviceInfo.getDeviceNameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getUsedMemory, getUsedMemorySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getUsedMemory(),\n syncGetter: () => RNDeviceInfo.getUsedMemorySync(),\n defaultValue: -1,\n});\n\nexport const getUserAgent = () =>\n getSupportedPlatformInfoAsync({\n memoKey: 'userAgent',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.getUserAgent(),\n });\n\nexport const getUserAgentSync = () =>\n getSupportedPlatformInfoSync({\n memoKey: 'userAgentSync',\n defaultValue: 'unknown',\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.getUserAgentSync(),\n });\n\nexport const [getFontScale, getFontScaleSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFontScale(),\n syncGetter: () => RNDeviceInfo.getFontScaleSync(),\n defaultValue: -1,\n});\n\nexport const [getBootloader, getBootloaderSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'bootloader',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getBootloader(),\n syncGetter: () => RNDeviceInfo.getBootloaderSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getDevice, getDeviceSync] = getSupportedPlatformInfoFunctions({\n getter: () => RNDeviceInfo.getDevice(),\n syncGetter: () => RNDeviceInfo.getDeviceSync(),\n defaultValue: 'unknown',\n memoKey: 'device',\n supportedPlatforms: ['android'],\n});\n\nexport const [getDisplay, getDisplaySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'display',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getDisplay(),\n syncGetter: () => RNDeviceInfo.getDisplaySync(),\n defaultValue: 'unknown',\n});\n\nexport const [getFingerprint, getFingerprintSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'fingerprint',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getFingerprint(),\n syncGetter: () => RNDeviceInfo.getFingerprintSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHardware, getHardwareSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'hardware',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHardware(),\n syncGetter: () => RNDeviceInfo.getHardwareSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getHost, getHostSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'host',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getHost(),\n syncGetter: () => RNDeviceInfo.getHostSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getProduct, getProductSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'product',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getProduct(),\n syncGetter: () => RNDeviceInfo.getProductSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTags, getTagsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'tags',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getTags(),\n syncGetter: () => RNDeviceInfo.getTagsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getType, getTypeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'type',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getType(),\n syncGetter: () => RNDeviceInfo.getTypeSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getBaseOs, getBaseOsSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'baseOs',\n supportedPlatforms: ['android', 'web', 'windows'],\n getter: () => RNDeviceInfo.getBaseOs(),\n syncGetter: () => RNDeviceInfo.getBaseOsSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getPreviewSdkInt, getPreviewSdkIntSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'previewSdkInt',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPreviewSdkInt(),\n syncGetter: () => RNDeviceInfo.getPreviewSdkIntSync(),\n defaultValue: -1,\n});\n\nexport const [getSecurityPatch, getSecurityPatchSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'securityPatch',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSecurityPatch(),\n syncGetter: () => RNDeviceInfo.getSecurityPatchSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCodename, getCodenameSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'codeName',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getCodename(),\n syncGetter: () => RNDeviceInfo.getCodenameSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getIncremental, getIncrementalSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'incremental',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getIncremental(),\n syncGetter: () => RNDeviceInfo.getIncrementalSync(),\n defaultValue: 'unknown',\n});\n\nexport const [isEmulator, isEmulatorSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'emulator',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isEmulator(),\n syncGetter: () => RNDeviceInfo.isEmulatorSync(),\n defaultValue: false,\n});\n\nexport const isTablet = () =>\n getSupportedPlatformInfoSync({\n defaultValue: false,\n supportedPlatforms: ['android', 'ios', 'windows'],\n memoKey: 'tablet',\n getter: () => getConstants().isTablet,\n });\n\nexport const isDisplayZoomed = () =>\n getSupportedPlatformInfoSync({\n defaultValue: false,\n supportedPlatforms: ['ios'],\n memoKey: 'zoomed',\n getter: () => getConstants().isDisplayZoomed,\n });\n\nexport const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.isPinOrFingerprintSet(),\n syncGetter: () => RNDeviceInfo.isPinOrFingerprintSetSync(),\n defaultValue: false,\n }\n);\n\nlet notch: boolean;\nexport function hasNotch() {\n if (notch === undefined) {\n console.log(RNDeviceInfo);\n let _brand = getBrand();\n let _model = getModel();\n notch =\n devicesWithNotch.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return notch;\n}\n\nlet dynamicIsland: boolean;\nexport function hasDynamicIsland() {\n if (dynamicIsland === undefined) {\n let _brand = getBrand();\n let _model = getModel();\n dynamicIsland =\n devicesWithDynamicIsland.findIndex(\n (item) =>\n item.brand.toLowerCase() === _brand.toLowerCase() &&\n item.model.toLowerCase() === _model.toLowerCase()\n ) !== -1;\n }\n return dynamicIsland;\n}\n\nexport const [hasGms, hasGmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasGms(),\n syncGetter: () => RNDeviceInfo.hasGmsSync(),\n defaultValue: false,\n});\n\nexport const [hasHms, hasHmsSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.hasHms(),\n syncGetter: () => RNDeviceInfo.hasHmsSync(),\n defaultValue: false,\n});\n\nexport const [getFirstInstallTime, getFirstInstallTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'firstInstallTime',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getFirstInstallTime(),\n syncGetter: () => RNDeviceInfo.getFirstInstallTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getInstallReferrer, getInstallReferrerSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'installReferrer',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getInstallReferrer(),\n syncGetter: () => RNDeviceInfo.getInstallReferrerSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getLastUpdateTime, getLastUpdateTimeSync] = getSupportedPlatformInfoFunctions({\n memoKey: 'lastUpdateTime',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getLastUpdateTime(),\n syncGetter: () => RNDeviceInfo.getLastUpdateTimeSync(),\n defaultValue: -1,\n});\n\nexport const [getPhoneNumber, getPhoneNumberSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getPhoneNumber(),\n syncGetter: () => RNDeviceInfo.getPhoneNumberSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getCarrier, getCarrierSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getCarrier(),\n syncGetter: () => RNDeviceInfo.getCarrierSync(),\n defaultValue: 'unknown',\n});\n\nexport const [getTotalMemory, getTotalMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'totalMemory',\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalMemory(),\n syncGetter: () => RNDeviceInfo.getTotalMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getMaxMemory, getMaxMemorySync] = getSupportedPlatformInfoFunctions({\n memoKey: 'maxMemory',\n supportedPlatforms: ['android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getMaxMemory(),\n syncGetter: () => RNDeviceInfo.getMaxMemorySync(),\n defaultValue: -1,\n});\n\nexport const [getTotalDiskCapacity, getTotalDiskCapacitySync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getTotalDiskCapacity(),\n syncGetter: () => RNDeviceInfo.getTotalDiskCapacitySync(),\n defaultValue: -1,\n});\n\nexport async function getTotalDiskCapacityOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacity();\n }\n\n return -1;\n}\n\nexport function getTotalDiskCapacityOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getTotalDiskCapacityOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getTotalDiskCapacitySync();\n }\n\n return -1;\n}\n\nexport const [getFreeDiskStorage, getFreeDiskStorageSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getFreeDiskStorage(),\n syncGetter: () => RNDeviceInfo.getFreeDiskStorageSync(),\n defaultValue: -1,\n});\n\nexport async function getFreeDiskStorageOld() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOld();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorage();\n }\n\n return -1;\n}\n\nexport function getFreeDiskStorageOldSync() {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.getFreeDiskStorageOldSync();\n }\n if (Platform.OS === 'ios' || Platform.OS === 'windows' || Platform.OS === 'web') {\n return getFreeDiskStorageSync();\n }\n\n return -1;\n}\n\nexport const [getBatteryLevel, getBatteryLevelSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.getBatteryLevel(),\n syncGetter: () => RNDeviceInfo.getBatteryLevelSync(),\n defaultValue: -1,\n});\n\nexport const [getPowerState, getPowerStateSync] = getSupportedPlatformInfoFunctions<\n Partial\n>({\n supportedPlatforms: ['ios', 'android', 'windows', 'web'],\n getter: () => RNDeviceInfo.getPowerState() as Promise>,\n syncGetter: () => RNDeviceInfo.getPowerStateSync() as Partial,\n defaultValue: {},\n});\n\nexport const [isBatteryCharging, isBatteryChargingSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'windows', 'web'],\n getter: () => RNDeviceInfo.isBatteryCharging(),\n syncGetter: () => RNDeviceInfo.isBatteryChargingSync(),\n defaultValue: false,\n});\n\nexport async function isLandscape() {\n return Promise.resolve(isLandscapeSync());\n}\n\nexport function isLandscapeSync() {\n const { height, width } = Dimensions.get('window');\n return width >= height;\n}\n\nexport const [isAirplaneMode, isAirplaneModeSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'web'],\n getter: () => RNDeviceInfo.isAirplaneMode(),\n syncGetter: () => RNDeviceInfo.isAirplaneModeSync(),\n defaultValue: false,\n});\n\nexport const getDeviceType = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().deviceType,\n });\n};\n\nexport const getDeviceTypeSync = () => {\n return getSupportedPlatformInfoSync({\n memoKey: 'deviceType',\n supportedPlatforms: ['android', 'ios', 'windows'],\n defaultValue: 'unknown',\n getter: () => getConstants().deviceType,\n });\n};\n\nexport const [supportedAbis, supportedAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supportedAbis',\n supportedPlatforms: ['android', 'ios', 'windows'],\n getter: () => RNDeviceInfo.getSupportedAbis(),\n syncGetter: () => RNDeviceInfo.getSupportedAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported32BitAbis, supported32BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported32BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported32BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported32BitAbisSync(),\n defaultValue: [] as string[],\n});\n\nexport const [supported64BitAbis, supported64BitAbisSync] = getSupportedPlatformInfoFunctions({\n memoKey: '_supported64BitAbis',\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSupported64BitAbis(),\n syncGetter: () => RNDeviceInfo.getSupported64BitAbisSync(),\n defaultValue: [],\n});\n\nexport async function hasSystemFeature(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeature(feature);\n }\n return false;\n}\n\nexport function hasSystemFeatureSync(feature: string) {\n if (Platform.OS === 'android') {\n return RNDeviceInfo.hasSystemFeatureSync(feature);\n }\n return false;\n}\n\nexport function isLowBatteryLevel(level: number): boolean {\n if (Platform.OS === 'android') {\n return level < 0.15;\n }\n return level < 0.2;\n}\n\nexport const [\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android'],\n getter: () => RNDeviceInfo.getSystemAvailableFeatures(),\n syncGetter: () => RNDeviceInfo.getSystemAvailableFeaturesSync(),\n defaultValue: [] as string[],\n});\n\nexport const [isLocationEnabled, isLocationEnabledSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios', 'web'],\n getter: () => RNDeviceInfo.isLocationEnabled(),\n syncGetter: () => RNDeviceInfo.isLocationEnabledSync(),\n defaultValue: false,\n});\n\nexport const [isHeadphonesConnected, isHeadphonesConnectedSync] = getSupportedPlatformInfoFunctions(\n {\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.isHeadphonesConnected(),\n syncGetter: () => RNDeviceInfo.isHeadphonesConnectedSync(),\n defaultValue: false,\n }\n);\n\nexport const [isMouseConnected, isMouseConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isMouseConnected(),\n syncGetter: () => RNDeviceInfo.isMouseConnectedSync(),\n defaultValue: false,\n});\n\nexport const [isKeyboardConnected, isKeyboardConnectedSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isKeyboardConnected(),\n syncGetter: () => RNDeviceInfo.isKeyboardConnectedSync(),\n defaultValue: false,\n});\n\nexport const isTabletMode = () =>\n getSupportedPlatformInfoAsync({\n supportedPlatforms: ['windows'],\n getter: () => RNDeviceInfo.isTabletMode(),\n defaultValue: false,\n });\n\nexport const [\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['android', 'ios'],\n getter: () => RNDeviceInfo.getAvailableLocationProviders() as Promise,\n syncGetter: () => RNDeviceInfo.getAvailableLocationProvidersSync() as LocationProviderInfo,\n defaultValue: {},\n});\n\nexport const [getBrightness, getBrightnessSync] = getSupportedPlatformInfoFunctions({\n supportedPlatforms: ['ios'],\n getter: () => RNDeviceInfo.getBrightness(),\n syncGetter: () => RNDeviceInfo.getBrightnessSync(),\n defaultValue: -1,\n});\n\nexport async function getDeviceToken() {\n if (Platform.OS === 'ios') {\n return RNDeviceInfo.getDeviceToken();\n }\n return 'unknown';\n}\n\nconst deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo);\nexport function useBatteryLevel(): number | null {\n const [batteryLevel, setBatteryLevel] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n setBatteryLevel(initialValue);\n };\n\n const onChange = (level: number) => {\n setBatteryLevel(level);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_batteryLevelDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevel;\n}\n\nexport function useBatteryLevelIsLow(): number | null {\n const [batteryLevelIsLow, setBatteryLevelIsLow] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBatteryLevel();\n isLowBatteryLevel(initialValue) && setBatteryLevelIsLow(initialValue);\n };\n\n setInitialValue();\n\n const onChange = (level: number) => {\n setBatteryLevelIsLow(level);\n };\n\n const subscription = deviceInfoEmitter.addListener('RNDeviceInfo_batteryLevelIsLow', onChange);\n\n return () => subscription.remove();\n }, []);\n\n return batteryLevelIsLow;\n}\n\nexport function usePowerState(): Partial {\n const [powerState, setPowerState] = useState>({});\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: Partial = await getPowerState();\n setPowerState(initialValue);\n };\n\n const onChange = (state: PowerState) => {\n setPowerState(state);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_powerStateDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return powerState;\n}\n\nexport function useIsHeadphonesConnected(): AsyncHookResult {\n return useOnEvent('RNDeviceInfo_headphoneConnectionDidChange', isHeadphonesConnected, false);\n}\n\nexport function useFirstInstallTime(): AsyncHookResult {\n return useOnMount(getFirstInstallTime, -1);\n}\n\nexport function useDeviceName(): AsyncHookResult {\n return useOnMount(getDeviceName, 'unknown');\n}\n\nexport function useHasSystemFeature(feature: string): AsyncHookResult {\n const asyncGetter = useCallback(() => hasSystemFeature(feature), [feature]);\n return useOnMount(asyncGetter, false);\n}\n\nexport function useIsEmulator(): AsyncHookResult {\n return useOnMount(isEmulator, false);\n}\n\nexport function useManufacturer(): AsyncHookResult {\n return useOnMount(getManufacturer, 'unknown');\n}\n\nexport function useBrightness(): number | null {\n const [brightness, setBrightness] = useState(null);\n\n useEffect(() => {\n const setInitialValue = async () => {\n const initialValue: number = await getBrightness();\n setBrightness(initialValue);\n };\n\n const onChange = (value: number) => {\n setBrightness(value);\n };\n\n setInitialValue();\n\n const subscription = deviceInfoEmitter.addListener(\n 'RNDeviceInfo_brightnessDidChange',\n onChange\n );\n\n return () => subscription.remove();\n }, []);\n\n return brightness;\n}\n\nexport type { AsyncHookResult, DeviceType, LocationProviderInfo, PowerState };\n\nconst DeviceInfo: DeviceInfoModule = {\n getAndroidId,\n getAndroidIdSync,\n getApiLevel,\n getApiLevelSync,\n getApplicationName,\n getAvailableLocationProviders,\n getAvailableLocationProvidersSync,\n getBaseOs,\n getBaseOsSync,\n getBatteryLevel,\n getBatteryLevelSync,\n getBootloader,\n getBootloaderSync,\n getBrand,\n getBuildId,\n getBuildIdSync,\n getBuildNumber,\n getBundleId,\n getCarrier,\n getCarrierSync,\n getCodename,\n getCodenameSync,\n getDevice,\n getDeviceId,\n getDeviceName,\n getDeviceNameSync,\n getDeviceSync,\n getDeviceToken,\n getDeviceType,\n getDisplay,\n getDisplaySync,\n getFingerprint,\n getFingerprintSync,\n getFirstInstallTime,\n getFirstInstallTimeSync,\n getFontScale,\n getFontScaleSync,\n getFreeDiskStorage,\n getFreeDiskStorageOld,\n getFreeDiskStorageSync,\n getFreeDiskStorageOldSync,\n getHardware,\n getHardwareSync,\n getHost,\n getHostSync,\n getIncremental,\n getIncrementalSync,\n getInstallerPackageName,\n getInstallerPackageNameSync,\n getInstallReferrer,\n getInstallReferrerSync,\n getInstanceId,\n getInstanceIdSync,\n getIpAddress,\n getIpAddressSync,\n getLastUpdateTime,\n getLastUpdateTimeSync,\n getMacAddress,\n getMacAddressSync,\n getManufacturer,\n getManufacturerSync,\n getMaxMemory,\n getMaxMemorySync,\n getModel,\n getPhoneNumber,\n getPhoneNumberSync,\n getPowerState,\n getPowerStateSync,\n getPreviewSdkInt,\n getPreviewSdkIntSync,\n getProduct,\n getProductSync,\n getReadableVersion,\n getSecurityPatch,\n getSecurityPatchSync,\n getSerialNumber,\n getSerialNumberSync,\n getSystemAvailableFeatures,\n getSystemAvailableFeaturesSync,\n getSystemName,\n getSystemVersion,\n getTags,\n getTagsSync,\n getTotalDiskCapacity,\n getTotalDiskCapacityOld,\n getTotalDiskCapacitySync,\n getTotalDiskCapacityOldSync,\n getTotalMemory,\n getTotalMemorySync,\n getType,\n getTypeSync,\n getUniqueId,\n getUniqueIdSync,\n getUsedMemory,\n getUsedMemorySync,\n getUserAgent,\n getUserAgentSync,\n getVersion,\n getBrightness,\n getBrightnessSync,\n hasGms,\n hasGmsSync,\n hasHms,\n hasHmsSync,\n hasNotch,\n hasDynamicIsland,\n hasSystemFeature,\n hasSystemFeatureSync,\n isAirplaneMode,\n isAirplaneModeSync,\n isBatteryCharging,\n isBatteryChargingSync,\n isCameraPresent,\n isCameraPresentSync,\n isEmulator,\n isEmulatorSync,\n isHeadphonesConnected,\n isHeadphonesConnectedSync,\n isLandscape,\n isLandscapeSync,\n isLocationEnabled,\n isLocationEnabledSync,\n isPinOrFingerprintSet,\n isPinOrFingerprintSetSync,\n isMouseConnected,\n isMouseConnectedSync,\n isKeyboardConnected,\n isKeyboardConnectedSync,\n isTabletMode,\n isTablet,\n isDisplayZoomed,\n supported32BitAbis,\n supported32BitAbisSync,\n supported64BitAbis,\n supported64BitAbisSync,\n supportedAbis,\n supportedAbisSync,\n syncUniqueId,\n useBatteryLevel,\n useBatteryLevelIsLow,\n useDeviceName,\n useFirstInstallTime,\n useHasSystemFeature,\n useIsEmulator,\n usePowerState,\n useManufacturer,\n useIsHeadphonesConnected,\n useBrightness,\n};\n\nexport default DeviceInfo;\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js b/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js +index 0d5dca5..1a7cae1 100644 +--- a/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js ++++ b/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js +@@ -1,5 +1,6 @@ + import { useState, useEffect } from 'react'; +-import { NativeEventEmitter, NativeModules } from 'react-native'; ++import { NativeEventEmitter } from 'react-native'; ++import RNDeviceInfo from './nativeInterface'; + + /** + * simple hook wrapper for async functions for 'on-mount / componentDidMount' that only need to fired once +@@ -25,7 +26,7 @@ export function useOnMount(asyncGetter, initialResult) { + }, [asyncGetter]); + return response; + } +-export const deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo); ++export const deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo); + /** + * simple hook wrapper for handling events + * @param eventName +diff --git a/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js.map b/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js.map +index 87af78b..9705ec1 100644 +--- a/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js.map ++++ b/node_modules/react-native-device-info/lib/module/internal/asyncHookWrappers.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["asyncHookWrappers.ts"],"names":["useState","useEffect","NativeEventEmitter","NativeModules","useOnMount","asyncGetter","initialResult","response","setResponse","loading","result","getAsync","deviceInfoEmitter","RNDeviceInfo","useOnEvent","eventName","initialValueAsyncGetter","defaultValue","setResult","subscription","addListener","remove"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,SAAnB,QAAoC,OAApC;AACA,SAASC,kBAAT,EAA6BC,aAA7B,QAAkD,cAAlD;;AAGA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAT,CAAuBC,WAAvB,EAAsDC,aAAtD,EAA4F;AACjG,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BR,QAAQ,CAAqB;AAC3DS,IAAAA,OAAO,EAAE,IADkD;AAE3DC,IAAAA,MAAM,EAAEJ;AAFmD,GAArB,CAAxC;AAKAL,EAAAA,SAAS,CAAC,MAAM;AACd;AACA,UAAMU,QAAQ,GAAG,YAAY;AAC3B,YAAMD,MAAM,GAAG,MAAML,WAAW,EAAhC;AACAG,MAAAA,WAAW,CAAC;AAAEC,QAAAA,OAAO,EAAE,KAAX;AAAkBC,QAAAA;AAAlB,OAAD,CAAX;AACD,KAHD;;AAKAC,IAAAA,QAAQ;AACT,GARQ,EAQN,CAACN,WAAD,CARM,CAAT;AAUA,SAAOE,QAAP;AACD;AAED,OAAO,MAAMK,iBAAiB,GAAG,IAAIV,kBAAJ,CAAuBC,aAAa,CAACU,YAArC,CAA1B;AAEP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,UAAT,CACLC,SADK,EAELC,uBAFK,EAGLC,YAHK,EAIe;AACpB,QAAM;AAAER,IAAAA,OAAF;AAAWC,IAAAA,MAAM,EAAEJ;AAAnB,MAAqCF,UAAU,CAACY,uBAAD,EAA0BC,YAA1B,CAArD;AACA,QAAM,CAACP,MAAD,EAASQ,SAAT,IAAsBlB,QAAQ,CAAIiB,YAAJ,CAApC,CAFoB,CAIpB;;AACAhB,EAAAA,SAAS,CAAC,MAAM;AACdiB,IAAAA,SAAS,CAACZ,aAAD,CAAT;AACD,GAFQ,EAEN,CAACA,aAAD,CAFM,CAAT,CALoB,CASpB;AACA;;AACAL,EAAAA,SAAS,CAAC,MAAM;AACd,UAAMkB,YAAY,GAAGP,iBAAiB,CAACQ,WAAlB,CAA8BL,SAA9B,EAAyCG,SAAzC,CAArB;AACA,WAAO,MAAMC,YAAY,CAACE,MAAb,EAAb;AACD,GAHQ,EAGN,CAACN,SAAD,CAHM,CAAT,CAXoB,CAgBpB;;AACA,SAAO;AAAEN,IAAAA,OAAF;AAAWC,IAAAA;AAAX,GAAP;AACD","sourcesContent":["import { useState, useEffect } from 'react';\nimport { NativeEventEmitter, NativeModules } from 'react-native';\nimport type { AsyncHookResult } from './types';\n\n/**\n * simple hook wrapper for async functions for 'on-mount / componentDidMount' that only need to fired once\n * @param asyncGetter async function that 'gets' something\n * @param initialResult -1 | false | 'unknown'\n */\nexport function useOnMount(asyncGetter: () => Promise, initialResult: T): AsyncHookResult {\n const [response, setResponse] = useState>({\n loading: true,\n result: initialResult,\n });\n\n useEffect(() => {\n // async function cuz react complains if useEffect's effect param is an async function\n const getAsync = async () => {\n const result = await asyncGetter();\n setResponse({ loading: false, result });\n };\n\n getAsync();\n }, [asyncGetter]);\n\n return response;\n}\n\nexport const deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\n\n/**\n * simple hook wrapper for handling events\n * @param eventName\n * @param initialValueAsyncGetter\n * @param defaultValue\n */\nexport function useOnEvent(\n eventName: string,\n initialValueAsyncGetter: () => Promise,\n defaultValue: T\n): AsyncHookResult {\n const { loading, result: initialResult } = useOnMount(initialValueAsyncGetter, defaultValue);\n const [result, setResult] = useState(defaultValue);\n\n // sets the result to what the intial value is on mount\n useEffect(() => {\n setResult(initialResult);\n }, [initialResult]);\n\n // - set up the event listener to set the result\n // - set up the clean up function to remove subscription on unmount\n useEffect(() => {\n const subscription = deviceInfoEmitter.addListener(eventName, setResult);\n return () => subscription.remove();\n }, [eventName]);\n\n // loading will only be true while getting the inital value. After that, it will always be false, but a new result may occur\n return { loading, result };\n}\n"]} +\ No newline at end of file ++{"version":3,"sources":["asyncHookWrappers.ts"],"names":["useState","useEffect","NativeEventEmitter","RNDeviceInfo","useOnMount","asyncGetter","initialResult","response","setResponse","loading","result","getAsync","deviceInfoEmitter","useOnEvent","eventName","initialValueAsyncGetter","defaultValue","setResult","subscription","addListener","remove"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,SAAnB,QAAoC,OAApC;AACA,SAASC,kBAAT,QAAmC,cAAnC;AACA,OAAOC,YAAP,MAAyB,mBAAzB;;AAGA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAT,CAAuBC,WAAvB,EAAsDC,aAAtD,EAA4F;AACjG,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BR,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ter } from 'react-native';\nimport RNDeviceInfo from './nativeInterface';\nimport type { AsyncHookResult } from './types';\n\n/**\n * simple hook wrapper for async functions for 'on-mount / componentDidMount' that only need to fired once\n * @param asyncGetter async function that 'gets' something\n * @param initialResult -1 | false | 'unknown'\n */\nexport function useOnMount(asyncGetter: () => Promise, initialResult: T): AsyncHookResult {\n const [response, setResponse] = useState>({\n loading: true,\n result: initialResult,\n });\n\n useEffect(() => {\n // async function cuz react complains if useEffect's effect param is an async function\n const getAsync = async () => {\n const result = await asyncGetter();\n setResponse({ loading: false, result });\n };\n\n getAsync();\n }, [asyncGetter]);\n\n return response;\n}\n\nexport const deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo);\n\n/**\n * simple hook wrapper for handling events\n * @param eventName\n * @param initialValueAsyncGetter\n * @param defaultValue\n */\nexport function useOnEvent(\n eventName: string,\n initialValueAsyncGetter: () => Promise,\n defaultValue: T\n): AsyncHookResult {\n const { loading, result: initialResult } = useOnMount(initialValueAsyncGetter, defaultValue);\n const [result, setResult] = useState(defaultValue);\n\n // sets the result to what the intial value is on mount\n useEffect(() => {\n setResult(initialResult);\n }, [initialResult]);\n\n // - set up the event listener to set the result\n // - set up the clean up function to remove subscription on unmount\n useEffect(() => {\n const subscription = deviceInfoEmitter.addListener(eventName, setResult);\n return () => subscription.remove();\n }, [eventName]);\n\n // loading will only be true while getting the inital value. After that, it will always be false, but a new result may occur\n return { loading, result };\n}\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js b/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js +index 6b443c3..a6a0640 100644 +--- a/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js ++++ b/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js +@@ -1,9 +1,5 @@ +-import { Platform, NativeModules } from 'react-native'; +-let RNDeviceInfo = NativeModules.RNDeviceInfo; // @ts-ignore +- +-if (Platform.OS === 'web' || Platform.OS === 'dom') { +- RNDeviceInfo = require('../web'); +-} ++import { Platform } from 'react-native'; ++let RNDeviceInfo = require('../web'); + + if (!RNDeviceInfo) { + // Produce an error if we don't have the native module +diff --git a/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js.map b/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js.map +index 0cd28c5..bd0d8fa 100644 +--- a/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js.map ++++ b/node_modules/react-native-device-info/lib/module/internal/nativeInterface.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["nativeInterface.ts"],"names":["Platform","NativeModules","RNDeviceInfo","OS","require","Error"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,aAAnB,QAAwC,cAAxC;AAGA,IAAIC,YAAgD,GAAGD,aAAa,CAACC,YAArE,C,CAEA;;AACA,IAAIF,QAAQ,CAACG,EAAT,KAAgB,KAAhB,IAAyBH,QAAQ,CAACG,EAAT,KAAgB,KAA7C,EAAoD;AAClDD,EAAAA,YAAY,GAAGE,OAAO,CAAC,QAAD,CAAtB;AACD;;AAED,IAAI,CAACF,YAAL,EAAmB;AACjB;AACA,MACEF,QAAQ,CAACG,EAAT,KAAgB,SAAhB,IACAH,QAAQ,CAACG,EAAT,KAAgB,KADhB,IAEAH,QAAQ,CAACG,EAAT,KAAgB,KAFhB,IAGA;AACAH,EAAAA,QAAQ,CAACG,EAAT,KAAgB,KALlB,EAME;AACA,UAAM,IAAIE,KAAJ,CAAW;AACrB;AACA;AACA;AACA,sJAJU,CAAN;AAKD;AACF;;AAED,eAAeH,YAAf","sourcesContent":["import { Platform, NativeModules } from 'react-native';\nimport { DeviceInfoNativeModule } from './privateTypes';\n\nlet RNDeviceInfo: DeviceInfoNativeModule | undefined = NativeModules.RNDeviceInfo;\n\n// @ts-ignore\nif (Platform.OS === 'web' || Platform.OS === 'dom') {\n RNDeviceInfo = require('../web');\n}\n\nif (!RNDeviceInfo) {\n // Produce an error if we don't have the native module\n if (\n Platform.OS === 'android' ||\n Platform.OS === 'ios' ||\n Platform.OS === 'web' ||\n // @ts-ignore\n Platform.OS === 'dom'\n ) {\n throw new Error(`react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:\n • For react-native <= 0.59: Run \\`react-native link react-native-device-info\\` in the project root.\n • Rebuild and re-run the app.\n • If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-device-info/react-native-device-info`);\n }\n}\n\nexport default RNDeviceInfo as DeviceInfoNativeModule;\n"]} +\ No newline at end of file ++{"version":3,"sources":["nativeInterface.ts"],"names":["Platform","RNDeviceInfoModule","RNDeviceInfo","OS","require","Error"],"mappings":"AAAA,SAASA,QAAT,QAAyB,cAAzB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AAEA,IAAIC,YAAY,GAAGD,kBAAnB,C,CAEA;;AACA,IAAID,QAAQ,CAACG,EAAT,KAAgB,KAAhB,IAAyBH,QAAQ,CAACG,EAAT,KAAgB,KAA7C,EAAoD;AAClDD,EAAAA,YAAY,GAAGE,OAAO,CAAC,QAAD,CAAtB;AACD;;AAED,IAAI,CAACF,YAAL,EAAmB;AACjB;AACA,MACEF,QAAQ,CAACG,EAAT,KAAgB,SAAhB,IACAH,QAAQ,CAACG,EAAT,KAAgB,KADhB,IAEAH,QAAQ,CAACG,EAAT,KAAgB,KAFhB,IAGA;AACAH,EAAAA,QAAQ,CAACG,EAAT,KAAgB,KALlB,EAME;AACA,UAAM,IAAIE,KAAJ,CAAW;AACrB;AACA;AACA;AACA,sJAJU,CAAN;AAKD;AACF;;AAED,eAAeH,YAAf","sourcesContent":["import { Platform } from 'react-native';\nimport RNDeviceInfoModule from '../fabric/NativeDeviceInfoModule';\n\nlet RNDeviceInfo = RNDeviceInfoModule;\n\n// @ts-ignore\nif (Platform.OS === 'web' || Platform.OS === 'dom') {\n RNDeviceInfo = require('../web');\n}\n\nif (!RNDeviceInfo) {\n // Produce an error if we don't have the native module\n if (\n Platform.OS === 'android' ||\n Platform.OS === 'ios' ||\n Platform.OS === 'web' ||\n // @ts-ignore\n Platform.OS === 'dom'\n ) {\n throw new Error(`react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:\n • For react-native <= 0.59: Run \\`react-native link react-native-device-info\\` in the project root.\n • Rebuild and re-run the app.\n • If you are using CocoaPods on iOS, run \\`pod install\\` in the \\`ios\\` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-device-info/react-native-device-info`);\n }\n}\n\nexport default RNDeviceInfo;\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/internal/nativeInterface.native.js b/node_modules/react-native-device-info/lib/module/internal/nativeInterface.native.js +new file mode 100644 +index 0000000..fdb1e56 +--- /dev/null ++++ b/node_modules/react-native-device-info/lib/module/internal/nativeInterface.native.js +@@ -0,0 +1,6 @@ ++import { Platform } from 'react-native'; ++import RNDeviceInfoModule from '../fabric/NativeDeviceInfoModule'; ++let RNDeviceInfo = RNDeviceInfoModule; // @ts-ignore ++ ++export default RNDeviceInfo; ++//# sourceMappingURL=nativeInterface.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js b/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js +index 159dece..7af2eda 100644 +--- a/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js ++++ b/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js +@@ -24,12 +24,14 @@ function getSupportedFunction(supportedPlatforms, getter, defaultGetter) { + */ + + +-export function getSupportedPlatformInfoSync({ +- getter, +- supportedPlatforms, +- defaultValue, +- memoKey +-}) { ++export function getSupportedPlatformInfoSync(_ref) { ++ let { ++ getter, ++ supportedPlatforms, ++ defaultValue, ++ memoKey ++ } = _ref; ++ + if (memoKey && memo[memoKey] != undefined) { + return memo[memoKey]; + } else { +@@ -47,12 +49,14 @@ export function getSupportedPlatformInfoSync({ + * @param param0 + */ + +-export async function getSupportedPlatformInfoAsync({ +- getter, +- supportedPlatforms, +- defaultValue, +- memoKey +-}) { ++export async function getSupportedPlatformInfoAsync(_ref2) { ++ let { ++ getter, ++ supportedPlatforms, ++ defaultValue, ++ memoKey ++ } = _ref2; ++ + if (memoKey && memo[memoKey] != undefined) { + return memo[memoKey]; + } else { +@@ -70,10 +74,11 @@ export async function getSupportedPlatformInfoAsync({ + * @param param0 + */ + +-export function getSupportedPlatformInfoFunctions({ +- syncGetter, +- ...asyncParams +-}) { ++export function getSupportedPlatformInfoFunctions(_ref3) { ++ let { ++ syncGetter, ++ ...asyncParams ++ } = _ref3; + return [() => getSupportedPlatformInfoAsync(asyncParams), () => getSupportedPlatformInfoSync({ ...asyncParams, + getter: syncGetter + })]; +diff --git a/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js.map b/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js.map +index ec1b98e..b5c3120 100644 +--- a/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js.map ++++ b/node_modules/react-native-device-info/lib/module/internal/supported-platform-info.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["supported-platform-info.ts"],"names":["Platform","memo","clearMemo","getSupportedFunction","supportedPlatforms","getter","defaultGetter","supportedMap","filter","key","OS","forEach","select","default","getSupportedPlatformInfoSync","defaultValue","memoKey","undefined","output","getSupportedPlatformInfoAsync","Promise","resolve","getSupportedPlatformInfoFunctions","syncGetter","asyncParams"],"mappings":"AAAA,SAASA,QAAT,QAAyB,cAAzB;AAWA;AACA,IAAIC,IAAc,GAAG,EAArB;AAEA,OAAO,SAASC,SAAT,GAAqB;AAC1BD,EAAAA,IAAI,GAAG,EAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;;AACA,SAASE,oBAAT,CACEC,kBADF,EAEEC,MAFF,EAGEC,aAHF,EAIa;AACX,MAAIC,YAAiB,GAAG,EAAxB;AACAH,EAAAA,kBA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CAAJ,GAAgBE,MAAhB;AACD;;AAED,WAAOA,MAAP;AACD;AACF;AAED;AACA;AACA;AACA;;AACA,OAAO,SAASI,iCAAT,CAA8C;AACnDC,EAAAA,UADmD;AAEnD,KAAGC;AAFgD,CAA9C,EAGyE;AAC9E,SAAO,CACL,MAAML,6BAA6B,CAACK,WAAD,CAD9B,EAEL,MAAMV,4BAA4B,CAAC,EAAE,GAAGU,WAAL;AAAkBnB,IAAAA,MAAM,EAAEkB;AAA1B,GAAD,CAF7B,CAAP;AAID","sourcesContent":["import { Platform } from 'react-native';\n\nimport {\n PlatformArray,\n Getter,\n GetSupportedPlatformInfoAsyncParams,\n GetSupportedPlatformInfoSyncParams,\n GetSupportedPlatformInfoFunctionsParams,\n} from './privateTypes';\n\ntype MemoType = { [key: string]: any };\n// centralized memo object\nlet memo: MemoType = {};\n\nexport function clearMemo() {\n memo = {};\n}\n\n/**\n * function returns the proper getter based current platform X supported platforms\n * @param supportedPlatforms array of supported platforms (OS)\n * @param getter desired function used to get info\n * @param defaultGetter getter that returns a default value if desired getter is not supported by current platform\n */\nfunction getSupportedFunction(\n supportedPlatforms: PlatformArray,\n getter: Getter,\n defaultGetter: Getter\n): Getter {\n let supportedMap: any = {};\n supportedPlatforms\n .filter((key) => Platform.OS == key)\n .forEach((key) => (supportedMap[key] = getter));\n return Platform.select({\n ...supportedMap,\n default: defaultGetter,\n });\n}\n\n/**\n * function used to get desired info synchronously — with optional memoization\n * @param param0\n */\nexport function getSupportedPlatformInfoSync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoSyncParams): T {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = getSupportedFunction(supportedPlatforms, getter, () => defaultValue)();\n if (memoKey) {\n memo[memoKey] = output;\n }\n return output;\n }\n}\n\n/**\n * function used to get desired info asynchronously — with optional memoization\n * @param param0\n */\nexport async function getSupportedPlatformInfoAsync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoAsyncParams): Promise {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = await getSupportedFunction(supportedPlatforms, getter, () =>\n Promise.resolve(defaultValue)\n )();\n if (memoKey) {\n memo[memoKey] = output;\n }\n\n return output;\n }\n}\n\n/**\n * function that returns array of getter functions [async, sync]\n * @param param0\n */\nexport function getSupportedPlatformInfoFunctions({\n syncGetter,\n ...asyncParams\n}: GetSupportedPlatformInfoFunctionsParams): [Getter>, Getter] {\n return [\n () => getSupportedPlatformInfoAsync(asyncParams),\n () => getSupportedPlatformInfoSync({ ...asyncParams, getter: syncGetter }),\n ];\n}\n"]} +\ No newline at end of file ++{"version":3,"sources":["supported-platform-info.ts"],"names":["Platform","memo","clearMemo","getSupportedFunction","supportedPlatforms","getter","defaultGetter","supportedMap","filter","key","OS","forEach","select","default","getSupportedPlatformInfoSync","defaultValue","memoKey","undefined","output","getSupportedPlatformInfoAsync","Promise","resolve","getSupportedPlatformInfoFunctions","syncGetter","asyncParams"],"mappings":"AAAA,SAASA,QAAT,QAAyB,cAAzB;AAWA;AACA,IAAIC,IAAc,GAAG,EAArB;AAEA,OAAO,SAASC,SAAT,GAAqB;AAC1BD,EAAAA,IAAI,GAAG,EAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;;AACA,SAASE,oBAAT,CACEC,kBADF,EAEEC,MAFF,EAGEC,aAHF,EAIa;AACX,MAAIC,YAAiB,GAAG,EAAxB;AACAH,EAAAA,kBAAkB,CACfI,MADH,CACWC,GAAD,IAAST,QAAQ,CAACU,EAAT,IAAeD,GADlC,EAEGE,OAFH,CAEYF,GAAD,IAAUF,YAAY,CAACE,GAAD,CAAZ,GAAoBJ,MAFzC;AAGA,SAAOL,QAAQ,CAACY,MAAT,CAAgB,EACrB,GAAGL,YADkB;AAErBM,IAAAA,OAAO,EAAEP;AAFY,GAAhB,CAAP;AAID;AAED;AACA;AACA;AACA;;;AACA,OAAO,SAASQ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A,MAAM,EAAEkB;AAA1B,GAAD,CAF7B,CAAP;AAID","sourcesContent":["import { Platform } from 'react-native';\n\nimport {\n PlatformArray,\n Getter,\n GetSupportedPlatformInfoAsyncParams,\n GetSupportedPlatformInfoSyncParams,\n GetSupportedPlatformInfoFunctionsParams,\n} from './privateTypes';\n\ntype MemoType = { [key: string]: any };\n// centralized memo object\nlet memo: MemoType = {};\n\nexport function clearMemo() {\n memo = {};\n}\n\n/**\n * function returns the proper getter based current platform X supported platforms\n * @param supportedPlatforms array of supported platforms (OS)\n * @param getter desired function used to get info\n * @param defaultGetter getter that returns a default value if desired getter is not supported by current platform\n */\nfunction getSupportedFunction(\n supportedPlatforms: PlatformArray,\n getter: Getter,\n defaultGetter: Getter\n): Getter {\n let supportedMap: any = {};\n supportedPlatforms\n .filter((key) => Platform.OS == key)\n .forEach((key) => (supportedMap[key] = getter));\n return Platform.select({\n ...supportedMap,\n default: defaultGetter,\n });\n}\n\n/**\n * function used to get desired info synchronously — with optional memoization\n * @param param0\n */\nexport function getSupportedPlatformInfoSync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoSyncParams): T {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = getSupportedFunction(supportedPlatforms, getter, () => defaultValue)();\n if (memoKey) {\n memo[memoKey] = output;\n }\n return output;\n }\n}\n\n/**\n * function used to get desired info asynchronously — with optional memoization\n * @param param0\n */\nexport async function getSupportedPlatformInfoAsync({\n getter,\n supportedPlatforms,\n defaultValue,\n memoKey,\n}: GetSupportedPlatformInfoAsyncParams): Promise {\n if (memoKey && memo[memoKey] != undefined) {\n return memo[memoKey];\n } else {\n const output = await getSupportedFunction(supportedPlatforms, getter, () =>\n Promise.resolve(defaultValue)\n )();\n if (memoKey) {\n memo[memoKey] = output;\n }\n\n return output;\n }\n}\n\n/**\n * function that returns array of getter functions [async, sync]\n * @param param0\n */\nexport function getSupportedPlatformInfoFunctions({\n syncGetter,\n ...asyncParams\n}: GetSupportedPlatformInfoFunctionsParams): [Getter>, Getter] {\n return [\n () => getSupportedPlatformInfoAsync(asyncParams),\n () => getSupportedPlatformInfoSync({ ...asyncParams, getter: syncGetter }),\n ];\n}\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/module/web/index.js b/node_modules/react-native-device-info/lib/module/web/index.js +index 147a2c5..a4810c0 100644 +--- a/node_modules/react-native-device-info/lib/module/web/index.js ++++ b/node_modules/react-native-device-info/lib/module/web/index.js +@@ -159,9 +159,12 @@ export const getBaseOs = async () => { + }; + export const getTotalDiskCapacity = async () => { + if (navigator.storage && navigator.storage.estimate) { +- return navigator.storage.estimate().then(({ +- quota +- }) => quota); ++ return navigator.storage.estimate().then(_ref => { ++ let { ++ quota ++ } = _ref; ++ return quota; ++ }); + } + + return -1; +@@ -172,10 +175,13 @@ export const getTotalDiskCapacitySync = () => { + }; + export const getFreeDiskStorage = async () => { + if (navigator.storage && navigator.storage.estimate) { +- return navigator.storage.estimate().then(({ +- quota, +- usage +- }) => quota - usage); ++ return navigator.storage.estimate().then(_ref2 => { ++ let { ++ quota, ++ usage ++ } = _ref2; ++ return quota - usage; ++ }); + } + + return -1; +diff --git a/node_modules/react-native-device-info/lib/module/web/index.js.map b/node_modules/react-native-device-info/lib/module/web/index.js.map +index 68c17e6..2f2cfbd 100644 +--- a/node_modules/react-native-device-info/lib/module/web/index.js.map ++++ b/node_modules/react-native-device-info/lib/module/web/index.js.map +@@ -1 +1 @@ +-{"version":3,"sources":["index.js"],"names":["NativeEventEmitter","NativeModules","deviceInfoEmitter","RNDeviceInfo","batteryCharging","batteryLevel","powerState","_readPowerState","battery","level","charging","chargingtime","dischargingtime","lowPowerMode","batteryState","getMaxMemorySync","window","performance","memory","jsHeapSizeLimit","getInstallReferrerSync","document","referrer","isAirplaneModeSync","navigator","onLine","getUserAgentSync","userAgent","isLocationEnabledSync","geolocation","getTotalMemorySync","deviceMemory","getUsedMemorySync","usedJSHeapSize","init","getBattery","then","addEventListener","emit","getBaseOsSync","platform","macosPlatforms","windowsPlatforms","iosPlatforms","os","indexOf","test","getInstallReferrer","getUserAgent","isBatteryCharging","isBatteryChargingSync","isCameraPresent","mediaDevices","enumerateDevices","devices","find","d","kind","isCameraPresentSync","console","log","getBatteryLevel","getBatteryLevelSync","isLocationEnabled","isAirplaneMode","getBaseOs","getTotalDiskCapacity","storage","estimate","quota","getTotalDiskCapacitySync","getFreeDiskStorage","usage","getFreeDiskStorageSync","getMaxMemory","getUsedMemory","getTotalMemory","getPowerState","getPowerStateSync"],"mappings":"AAAA,SAASA,kBAAT,EAA6BC,aAA7B,QAAkD,cAAlD;AAEA,MAAMC,iBAAiB,GAAG,IAAIF,kBAAJ,CAAuBC,aAAa,CAACE,YAArC,CAA1B;AAEA,IAAIC,eAAe,GAAG,KAAtB;AAAA,IACEC,YAAY,GAAG,CAAC,CADlB;AAAA,IAEEC,UAAU,GAAG,EAFf;;AAIA,MAAMC,eAAe,GAAIC,OAAD,IAAa;AACnC,QAAM;AAAEC,IAAAA,KAAF;AAASC,IAAAA,QAAT;AAAmBC,IAAAA,YAAnB;AAAiCC,IAAAA;AAAjC,MAAqDJ,OAA3D;AAEA,SAAO;AACLH,IAAAA,YAAY,EAAEI,KADT;AAELI,IAAAA,YAAY,EAAE,KAFT;AAGLC,IAAAA,YAAY,EAAEL,KAAK,KAAK,CAAV,GAAc,MAAd,GAAuBC,QAAQ,GAAG,UAAH,GAAgB,WAHxD;AAILC,IAAAA,YAJK;AAKLC,IAAAA;AALK,GAAP;AAOD,CAVD;;AAYA,OAAO,MAAMG,gBAAgB,GAAG,MAAM;AACpC,MAAIC,MAAM,CAACC,WAAP,IAAsBD,MAAM,CAACC,WAAP,CAAmBC,MAA7C,EAAqD;AACnD,WAAOF,MAAM,CAACC,WAAP,CAAmBC,MAAnB,CAA0BC,eAAjC;AACD;;AACD,SAAO,CAAC,CAAR;AACD,CALM;AAOP,OAAO,MAAMC,sBAAsB,GAAG,MAA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AsB,GAAG,MAAM;AAC1Cd,EAAAA,OAAO,CAACC,GAAR,CACE,iGADF;AAGA,SAAO,CAAC,CAAR;AACD,CALM;AAOP,OAAO,MAAMc,YAAY,GAAG,YAAY;AACtC,SAAO3D,gBAAgB,EAAvB;AACD,CAFM;AAIP,OAAO,MAAM4D,aAAa,GAAG,YAAY;AACvC,SAAO3C,iBAAiB,EAAxB;AACD,CAFM;AAIP,OAAO,MAAM4C,cAAc,GAAG,YAAY;AACxC,SAAO9C,kBAAkB,EAAzB;AACD,CAFM;AAIP,OAAO,MAAM+C,aAAa,GAAG,YAAY;AACvC,MAAIrD,SAAS,CAACW,UAAd,EAA0B;AACxB,WAAOX,SAAS,CAACW,UAAV,GAAuBC,IAAvB,CAA6B5B,OAAD,IAAaD,eAAe,CAACC,OAAD,CAAxD,CAAP;AACD;;AACD,SAAO,EAAP;AACD,CALM;AAOP,OAAO,MAAMsE,iBAAiB,GAAG,MAAM;AACrC,SAAOxE,UAAP;AACD,CAFM","sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native';\n\nconst deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\n\nlet batteryCharging = false,\n batteryLevel = -1,\n powerState = {};\n\nconst _readPowerState = (battery) => {\n const { level, charging, chargingtime, dischargingtime } = battery;\n\n return {\n batteryLevel: level,\n lowPowerMode: false,\n batteryState: level === 1 ? 'full' : charging ? 'charging' : 'unplugged',\n chargingtime,\n dischargingtime,\n };\n};\n\nexport const getMaxMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.jsHeapSizeLimit;\n }\n return -1;\n};\n\nexport const getInstallReferrerSync = () => {\n return document.referrer;\n};\n\nexport const isAirplaneModeSync = () => {\n return !!navigator.onLine;\n};\n\nexport const getUserAgentSync = () => {\n return window.navigator.userAgent;\n};\n\nexport const isLocationEnabledSync = () => {\n return !!navigator.geolocation;\n};\n\nexport const getTotalMemorySync = () => {\n if (navigator.deviceMemory) {\n return navigator.deviceMemory * 1000000000;\n }\n return -1;\n};\n\nexport const getUsedMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.usedJSHeapSize;\n }\n return -1;\n};\n\nconst init = () => {\n if (typeof navigator === 'undefined' || !navigator.getBattery) return;\n\n navigator.getBattery().then((battery) => {\n batteryCharging = battery.charging;\n\n battery.addEventListener('chargingchange', () => {\n const { charging } = battery;\n\n batteryCharging = charging;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_powerStateDidChange', powerState);\n });\n\n battery.addEventListener('levelchange', () => {\n const { level } = battery;\n\n batteryLevel = level;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelDidChange', level);\n if (level < 0.2) {\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelIsLow', level);\n }\n });\n });\n};\n\nconst getBaseOsSync = () => {\n const userAgent = window.navigator.userAgent,\n platform = window.navigator.platform,\n macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],\n windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],\n iosPlatforms = ['iPhone', 'iPad', 'iPod'];\n\n let os = platform;\n\n if (macosPlatforms.indexOf(platform) !== -1) {\n os = 'Mac OS';\n } else if (iosPlatforms.indexOf(platform) !== -1) {\n os = 'iOS';\n } else if (windowsPlatforms.indexOf(platform) !== -1) {\n os = 'Windows';\n } else if (/Android/.test(userAgent)) {\n os = 'Android';\n } else if (!os && /Linux/.test(platform)) {\n os = 'Linux';\n }\n\n return os;\n};\n\ninit();\n/**\n * react-native-web empty polyfill.\n */\n\nexport const getInstallReferrer = async () => {\n return getInstallReferrerSync();\n};\n\nexport const getUserAgent = async () => {\n return getUserAgentSync();\n};\n\nexport const isBatteryCharging = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.charging);\n }\n return false;\n};\n\nexport const isBatteryChargingSync = () => {\n return batteryCharging;\n};\n\nexport const isCameraPresent = async () => {\n if (navigator.mediaDevices && navigator.mediaDevices.enumerateDevices) {\n return navigator.mediaDevices.enumerateDevices().then(devices => {\n return !!devices.find((d) => d.kind === 'videoinput');\n });\n }\n return false;\n};\n\nexport const isCameraPresentSync = () => {\n console.log(\n '[react-native-device-info] isCameraPresentSync not supported - please use isCameraPresent'\n );\n return false;\n};\n\nexport const getBatteryLevel = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.level);\n }\n return -1;\n};\n\nexport const getBatteryLevelSync = () => {\n return batteryLevel;\n};\n\nexport const isLocationEnabled = async () => {\n return isLocationEnabledSync();\n};\n\nexport const isAirplaneMode = async () => {\n return isAirplaneModeSync();\n};\n\nexport const getBaseOs = async () => {\n return getBaseOsSync();\n};\n\nexport const getTotalDiskCapacity = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota }) => quota)\n }\n return -1;\n};\n\nexport const getTotalDiskCapacitySync = () => {\n console.log(\n '[react-native-device-info] getTotalDiskCapacitySync not supported - please use getTotalDiskCapacity'\n );\n return -1;\n};\n\nexport const getFreeDiskStorage = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota, usage }) => quota - usage)\n }\n return -1;\n};\n\nexport const getFreeDiskStorageSync = () => {\n console.log(\n '[react-native-device-info] getFreeDiskStorageSync not supported - please use getFreeDiskStorage'\n );\n return -1;\n};\n\nexport const getMaxMemory = async () => {\n return getMaxMemorySync();\n};\n\nexport const getUsedMemory = async () => {\n return getUsedMemorySync();\n};\n\nexport const getTotalMemory = async () => {\n return getTotalMemorySync();\n};\n\nexport const getPowerState = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then((battery) => _readPowerState(battery))\n }\n return {};\n};\n\nexport const getPowerStateSync = () => {\n return powerState;\n};\n"]} +\ No newline at end of file ++{"version":3,"sources":["index.js"],"names":["NativeEventEmitter","NativeModules","deviceInfoEmitter","RNDeviceInfo","batteryCharging","batteryLevel","powerState","_readPowerState","battery","level","charging","chargingtime","dischargingtime","lowPowerMode","batteryState","getMaxMemorySync","window","performance","memory","jsHeapSizeLimit","getInstallReferrerSync","document","referrer","isAirplaneModeSync","navigator","onLine","getUserAgentSync","userAgent","isLocationEnabledSync","geolocation","getTotalMemorySync","deviceMemory","getUsedMemorySync","usedJSHeapSize","init","getBattery","then","addEventListener","emit","getBaseOsSync","platform","macosPlatforms","windowsPlatforms","iosPlatforms","os","indexOf","test","getInstallReferrer","getUserAgent","isBatteryCharging","isBatteryChargingSync","isCameraPresent","mediaDevices","enumerateDevices","devices","find","d","kind","isCameraPresentSync","console","log","getBatteryLevel","getBatteryLevelSync","isLocationEnabled","isAirplaneMode","getBaseOs","getTotalDiskCapacity","storage","estimate","quota","getTotalDiskCapacitySync","getFreeDiskStorage","usage","getFreeDiskStorageSync","getMaxMemory","getUsedMemory","getTotalMemory","getPowerState","getPowerStateSync"],"mappings":"AAAA,SAASA,kBAAT,EAA6BC,aAA7B,QAAkD,cAAlD;AAEA,MAAMC,iBAAiB,GAAG,IAAIF,kBAAJ,CAAuBC,aAAa,CAACE,YAArC,CAA1B;AAEA,IAAIC,eAAe,GAAG,KAAtB;AAAA,IACEC,YAAY,GAAG,CAAC,CADlB;AAAA,IAEEC,UAAU,GAAG,EAFf;;AAIA,MAAMC,eAAe,GAAIC,OAAD,IAAa;AACnC,QAAM;AAAEC,IAAAA,KAAF;AAASC,IAAAA,QAAT;AAAmBC,IAAAA,YAAnB;AAAiCC,IAAAA;AAAjC,MAAqDJ,OAA3D;AAEA,SAAO;AACLH,IAAAA,YAAY,EAAEI,KADT;AAELI,IAAAA,YAAY,EAAE,KAFT;AAGLC,IAAAA,YAAY,EAAEL,KAAK,KAAK,CAAV,GAAc,MAAd,GAAuBC,QAAQ,GAAG,UAAH,GAAgB,WAHxD;AAILC,IAAAA,YAJK;AAKLC,IAAAA;AALK,GAAP;AAOD,CAVD;;AAYA,OAAO,MAAMG,gBAAgB,GAAG,MAAM;AACpC,MAAIC,MAAM,C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ACnD,WAAO5C,SAAS,CAAC2C,OAAV,CAAkBC,QAAlB,GAA6BhC,IAA7B,CAAkC;AAAA,UAAC;AAAEiC,QAAAA,KAAF;AAASG,QAAAA;AAAT,OAAD;AAAA,aAAsBH,KAAK,GAAGG,KAA9B;AAAA,KAAlC,CAAP;AACD;;AACD,SAAO,CAAC,CAAR;AACD,CALM;AAOP,OAAO,MAAMC,sBAAsB,GAAG,MAAM;AAC1Cd,EAAAA,OAAO,CAACC,GAAR,CACE,iGADF;AAGA,SAAO,CAAC,CAAR;AACD,CALM;AAOP,OAAO,MAAMc,YAAY,GAAG,YAAY;AACtC,SAAO3D,gBAAgB,EAAvB;AACD,CAFM;AAIP,OAAO,MAAM4D,aAAa,GAAG,YAAY;AACvC,SAAO3C,iBAAiB,EAAxB;AACD,CAFM;AAIP,OAAO,MAAM4C,cAAc,GAAG,YAAY;AACxC,SAAO9C,kBAAkB,EAAzB;AACD,CAFM;AAIP,OAAO,MAAM+C,aAAa,GAAG,YAAY;AACvC,MAAIrD,SAAS,CAACW,UAAd,EAA0B;AACxB,WAAOX,SAAS,CAACW,UAAV,GAAuBC,IAAvB,CAA6B5B,OAAD,IAAaD,eAAe,CAACC,OAAD,CAAxD,CAAP;AACD;;AACD,SAAO,EAAP;AACD,CALM;AAOP,OAAO,MAAMsE,iBAAiB,GAAG,MAAM;AACrC,SAAOxE,UAAP;AACD,CAFM","sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native';\n\nconst deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo);\n\nlet batteryCharging = false,\n batteryLevel = -1,\n powerState = {};\n\nconst _readPowerState = (battery) => {\n const { level, charging, chargingtime, dischargingtime } = battery;\n\n return {\n batteryLevel: level,\n lowPowerMode: false,\n batteryState: level === 1 ? 'full' : charging ? 'charging' : 'unplugged',\n chargingtime,\n dischargingtime,\n };\n};\n\nexport const getMaxMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.jsHeapSizeLimit;\n }\n return -1;\n};\n\nexport const getInstallReferrerSync = () => {\n return document.referrer;\n};\n\nexport const isAirplaneModeSync = () => {\n return !!navigator.onLine;\n};\n\nexport const getUserAgentSync = () => {\n return window.navigator.userAgent;\n};\n\nexport const isLocationEnabledSync = () => {\n return !!navigator.geolocation;\n};\n\nexport const getTotalMemorySync = () => {\n if (navigator.deviceMemory) {\n return navigator.deviceMemory * 1000000000;\n }\n return -1;\n};\n\nexport const getUsedMemorySync = () => {\n if (window.performance && window.performance.memory) {\n return window.performance.memory.usedJSHeapSize;\n }\n return -1;\n};\n\nconst init = () => {\n if (typeof navigator === 'undefined' || !navigator.getBattery) return;\n\n navigator.getBattery().then((battery) => {\n batteryCharging = battery.charging;\n\n battery.addEventListener('chargingchange', () => {\n const { charging } = battery;\n\n batteryCharging = charging;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_powerStateDidChange', powerState);\n });\n\n battery.addEventListener('levelchange', () => {\n const { level } = battery;\n\n batteryLevel = level;\n powerState = _readPowerState(battery);\n\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelDidChange', level);\n if (level < 0.2) {\n deviceInfoEmitter.emit('RNDeviceInfo_batteryLevelIsLow', level);\n }\n });\n });\n};\n\nconst getBaseOsSync = () => {\n const userAgent = window.navigator.userAgent,\n platform = window.navigator.platform,\n macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],\n windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],\n iosPlatforms = ['iPhone', 'iPad', 'iPod'];\n\n let os = platform;\n\n if (macosPlatforms.indexOf(platform) !== -1) {\n os = 'Mac OS';\n } else if (iosPlatforms.indexOf(platform) !== -1) {\n os = 'iOS';\n } else if (windowsPlatforms.indexOf(platform) !== -1) {\n os = 'Windows';\n } else if (/Android/.test(userAgent)) {\n os = 'Android';\n } else if (!os && /Linux/.test(platform)) {\n os = 'Linux';\n }\n\n return os;\n};\n\ninit();\n/**\n * react-native-web empty polyfill.\n */\n\nexport const getInstallReferrer = async () => {\n return getInstallReferrerSync();\n};\n\nexport const getUserAgent = async () => {\n return getUserAgentSync();\n};\n\nexport const isBatteryCharging = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.charging);\n }\n return false;\n};\n\nexport const isBatteryChargingSync = () => {\n return batteryCharging;\n};\n\nexport const isCameraPresent = async () => {\n if (navigator.mediaDevices && navigator.mediaDevices.enumerateDevices) {\n return navigator.mediaDevices.enumerateDevices().then(devices => {\n return !!devices.find((d) => d.kind === 'videoinput');\n });\n }\n return false;\n};\n\nexport const isCameraPresentSync = () => {\n console.log(\n '[react-native-device-info] isCameraPresentSync not supported - please use isCameraPresent'\n );\n return false;\n};\n\nexport const getBatteryLevel = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then(battery => battery.level);\n }\n return -1;\n};\n\nexport const getBatteryLevelSync = () => {\n return batteryLevel;\n};\n\nexport const isLocationEnabled = async () => {\n return isLocationEnabledSync();\n};\n\nexport const isAirplaneMode = async () => {\n return isAirplaneModeSync();\n};\n\nexport const getBaseOs = async () => {\n return getBaseOsSync();\n};\n\nexport const getTotalDiskCapacity = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota }) => quota)\n }\n return -1;\n};\n\nexport const getTotalDiskCapacitySync = () => {\n console.log(\n '[react-native-device-info] getTotalDiskCapacitySync not supported - please use getTotalDiskCapacity'\n );\n return -1;\n};\n\nexport const getFreeDiskStorage = async () => {\n if (navigator.storage && navigator.storage.estimate) {\n return navigator.storage.estimate().then(({ quota, usage }) => quota - usage)\n }\n return -1;\n};\n\nexport const getFreeDiskStorageSync = () => {\n console.log(\n '[react-native-device-info] getFreeDiskStorageSync not supported - please use getFreeDiskStorage'\n );\n return -1;\n};\n\nexport const getMaxMemory = async () => {\n return getMaxMemorySync();\n};\n\nexport const getUsedMemory = async () => {\n return getUsedMemorySync();\n};\n\nexport const getTotalMemory = async () => {\n return getTotalMemorySync();\n};\n\nexport const getPowerState = async () => {\n if (navigator.getBattery) {\n return navigator.getBattery().then((battery) => _readPowerState(battery))\n }\n return {};\n};\n\nexport const getPowerStateSync = () => {\n return powerState;\n};\n"]} +\ No newline at end of file +diff --git a/node_modules/react-native-device-info/lib/typescript/fabric/NativeDeviceInfoModule.d.ts b/node_modules/react-native-device-info/lib/typescript/fabric/NativeDeviceInfoModule.d.ts +new file mode 100644 +index 0000000..08ca7ee +--- /dev/null ++++ b/node_modules/react-native-device-info/lib/typescript/fabric/NativeDeviceInfoModule.d.ts +@@ -0,0 +1,150 @@ ++import { TurboModule } from 'react-native'; ++export interface Spec extends TurboModule { ++ getPowerState: () => Promise<{ ++ batteryLevel: number; ++ batteryState: string; ++ lowPowerMode: boolean; ++ }>; ++ getPowerStateSync: () => { ++ batteryLevel: number; ++ batteryState: string; ++ lowPowerMode: boolean; ++ }; ++ getSupported32BitAbis: () => Promise; ++ getSupported32BitAbisSync: () => string[]; ++ getSupported64BitAbis: () => Promise; ++ getSupported64BitAbisSync: () => string[]; ++ getSupportedAbis: () => Promise; ++ getSupportedAbisSync: () => string[]; ++ getSystemManufacturer: () => Promise; ++ getSystemManufacturerSync: () => string; ++ getAndroidId: () => Promise; ++ getAndroidIdSync: () => string; ++ getApiLevel: () => Promise; ++ getApiLevelSync: () => number; ++ getAvailableLocationProviders: () => Promise; ++ getAvailableLocationProvidersSync: () => Object; ++ getBaseOs: () => Promise; ++ getBaseOsSync: () => string; ++ getBatteryLevel: () => Promise; ++ getBatteryLevelSync: () => number; ++ getBootloader: () => Promise; ++ getBootloaderSync: () => string; ++ getBuildId: () => Promise; ++ getBuildIdSync: () => string; ++ getCarrier: () => Promise; ++ getCarrierSync: () => string; ++ getCodename: () => Promise; ++ getCodenameSync: () => string; ++ getDevice: () => Promise; ++ getDeviceName: () => Promise; ++ getDeviceNameSync: () => string; ++ getDeviceSync: () => string; ++ getDeviceToken: () => Promise; ++ getDisplay: () => Promise; ++ getDisplaySync: () => string; ++ getFingerprint: () => Promise; ++ getFingerprintSync: () => string; ++ getFirstInstallTime: () => Promise; ++ getFirstInstallTimeSync: () => number; ++ getFontScale: () => Promise; ++ getFontScaleSync: () => number; ++ getFreeDiskStorage: () => Promise; ++ getFreeDiskStorageOld: () => Promise; ++ getFreeDiskStorageSync: () => number; ++ getFreeDiskStorageOldSync: () => number; ++ getHardware: () => Promise; ++ getHardwareSync: () => string; ++ getHost: () => Promise; ++ getHostSync: () => string; ++ getIncremental: () => Promise; ++ getIncrementalSync: () => string; ++ getInstallerPackageName: () => Promise; ++ getInstallerPackageNameSync: () => string; ++ getInstallReferrer: () => Promise; ++ getInstallReferrerSync: () => string; ++ getInstanceId: () => Promise; ++ getInstanceIdSync: () => string; ++ getIpAddress: () => Promise; ++ getIpAddressSync: () => string; ++ getLastUpdateTime: () => Promise; ++ getLastUpdateTimeSync: () => number; ++ getMacAddress: () => Promise; ++ getMacAddressSync: () => string; ++ getMaxMemory: () => Promise; ++ getMaxMemorySync: () => number; ++ getPhoneNumber: () => Promise; ++ getPhoneNumberSync: () => string; ++ getPreviewSdkInt: () => Promise; ++ getPreviewSdkIntSync: () => number; ++ getProduct: () => Promise; ++ getProductSync: () => string; ++ getSecurityPatch: () => Promise; ++ getSecurityPatchSync: () => string; ++ getSerialNumber: () => Promise; ++ getSerialNumberSync: () => string; ++ getSystemAvailableFeatures: () => Promise; ++ getSystemAvailableFeaturesSync: () => string[]; ++ getTags: () => Promise; ++ getTagsSync: () => string; ++ getTotalDiskCapacity: () => Promise; ++ getTotalDiskCapacityOld: () => Promise; ++ getTotalDiskCapacitySync: () => number; ++ getTotalDiskCapacityOldSync: () => number; ++ getTotalMemory: () => Promise; ++ getTotalMemorySync: () => number; ++ getType: () => Promise; ++ getTypeSync: () => string; ++ getUniqueId: () => Promise; ++ getUniqueIdSync: () => string; ++ getUsedMemory: () => Promise; ++ getUsedMemorySync: () => number; ++ getUserAgent: () => Promise; ++ getUserAgentSync: () => string; ++ getBrightness: () => Promise; ++ getBrightnessSync: () => number; ++ hasGms: () => Promise; ++ hasGmsSync: () => boolean; ++ hasHms: () => Promise; ++ hasHmsSync: () => boolean; ++ hasSystemFeature: (feature: string) => Promise; ++ hasSystemFeatureSync: (feature: string) => boolean; ++ isAirplaneMode: () => Promise; ++ isAirplaneModeSync: () => boolean; ++ isBatteryCharging: () => Promise; ++ isBatteryChargingSync: () => boolean; ++ isCameraPresent: () => Promise; ++ isCameraPresentSync: () => boolean; ++ isEmulator: () => Promise; ++ isEmulatorSync: () => boolean; ++ isHeadphonesConnected: () => Promise; ++ isHeadphonesConnectedSync: () => boolean; ++ isLocationEnabled: () => Promise; ++ isLocationEnabledSync: () => boolean; ++ isPinOrFingerprintSet: () => Promise; ++ isPinOrFingerprintSetSync: () => boolean; ++ isMouseConnected: () => Promise; ++ isMouseConnectedSync: () => boolean; ++ isKeyboardConnected: () => Promise; ++ isKeyboardConnectedSync: () => boolean; ++ isTabletMode: () => Promise; ++ syncUniqueId: () => Promise; ++ addListener(eventName: string): void; ++ removeListeners(count: number): void; ++ getConstants(): { ++ appName: string; ++ appVersion: string; ++ brand: string; ++ buildNumber: string; ++ bundleId: string; ++ deviceId: string; ++ deviceType: string; ++ isTablet: boolean; ++ isDisplayZoomed?: boolean; ++ model: string; ++ systemName: string; ++ systemVersion: string; ++ }; ++} ++declare const _default: Spec; ++export default _default; +diff --git a/node_modules/react-native-device-info/lib/typescript/index.d.ts b/node_modules/react-native-device-info/lib/typescript/index.d.ts +index 9ee719c..bf0912a 100644 +--- a/node_modules/react-native-device-info/lib/typescript/index.d.ts ++++ b/node_modules/react-native-device-info/lib/typescript/index.d.ts +@@ -44,6 +44,7 @@ export declare const getCodename: import("./internal/privateTypes").Getter>, getIncrementalSync: import("./internal/privateTypes").Getter; + export declare const isEmulator: import("./internal/privateTypes").Getter>, isEmulatorSync: import("./internal/privateTypes").Getter; + export declare const isTablet: () => boolean; ++export declare const isDisplayZoomed: () => boolean | undefined; + export declare const isPinOrFingerprintSet: import("./internal/privateTypes").Getter>, isPinOrFingerprintSetSync: import("./internal/privateTypes").Getter; + export declare function hasNotch(): boolean; + export declare function hasDynamicIsland(): boolean; +diff --git a/node_modules/react-native-device-info/lib/typescript/internal/nativeInterface.d.ts b/node_modules/react-native-device-info/lib/typescript/internal/nativeInterface.d.ts +index 56c84eb..59f6bc5 100644 +--- a/node_modules/react-native-device-info/lib/typescript/internal/nativeInterface.d.ts ++++ b/node_modules/react-native-device-info/lib/typescript/internal/nativeInterface.d.ts +@@ -1,3 +1,2 @@ +-import { DeviceInfoNativeModule } from './privateTypes'; +-declare const _default: DeviceInfoNativeModule; +-export default _default; ++declare let RNDeviceInfo: import("../fabric/NativeDeviceInfoModule").Spec; ++export default RNDeviceInfo; +diff --git a/node_modules/react-native-device-info/lib/typescript/internal/privateTypes.d.ts b/node_modules/react-native-device-info/lib/typescript/internal/privateTypes.d.ts +index f137e75..129b5ef 100644 +--- a/node_modules/react-native-device-info/lib/typescript/internal/privateTypes.d.ts ++++ b/node_modules/react-native-device-info/lib/typescript/internal/privateTypes.d.ts +@@ -5,7 +5,7 @@ export declare type NotchDevice = { + model: string; + [key: string]: string; + }; +-interface NativeConstants { ++export interface NativeConstants { + appName: string; + appVersion: string; + brand: string; +@@ -14,6 +14,7 @@ interface NativeConstants { + deviceId: string; + deviceType: DeviceType; + isTablet: boolean; ++ isDisplayZoomed?: boolean; + model: string; + systemName: string; + systemVersion: string; +@@ -170,6 +171,7 @@ export interface DeviceInfoModule extends ExposedNativeMethods { + isLandscape: () => Promise; + isLandscapeSync: () => boolean; + isTablet: () => boolean; ++ isDisplayZoomed: () => boolean | undefined; + supported32BitAbis: () => Promise; + supported32BitAbisSync: () => string[]; + supported64BitAbis: () => Promise; +diff --git a/node_modules/react-native-device-info/package.json b/node_modules/react-native-device-info/package.json +index f15e34f..8afd532 100644 +--- a/node_modules/react-native-device-info/package.json ++++ b/node_modules/react-native-device-info/package.json +@@ -104,7 +104,7 @@ + "@testing-library/react-hooks": "^7.0.2", + "@types/jest": "^27.4.1", + "@types/react": "17.0.39", +- "@types/react-native": "^0.67.2", ++ "@types/react-native": "^0.71.3", + "eslint": "^7", + "eslint-plugin-prettier": "^4.0.0", + "husky": "^7.0.4", +@@ -134,5 +134,13 @@ + "module", + "typescript" + ] ++ }, ++ "codegenConfig": { ++ "name": "rndeviceinfomodule", ++ "type": "modules", ++ "jsSrcsDir": "./src/fabric", ++ "android": { ++ "javaPackageName": "com.learnium.RNDeviceInfo" ++ } + } + } +diff --git a/node_modules/react-native-device-info/src/fabric/NativeDeviceInfoModule.ts b/node_modules/react-native-device-info/src/fabric/NativeDeviceInfoModule.ts +new file mode 100644 +index 0000000..0dce963 +--- /dev/null ++++ b/node_modules/react-native-device-info/src/fabric/NativeDeviceInfoModule.ts +@@ -0,0 +1,152 @@ ++import { TurboModuleRegistry, TurboModule } from 'react-native'; ++ ++export interface Spec extends TurboModule { ++ getPowerState: () => Promise<{ ++ batteryLevel: number; ++ batteryState: string; ++ lowPowerMode: boolean; ++ }>; ++ getPowerStateSync: () => { ++ batteryLevel: number; ++ batteryState: string; ++ lowPowerMode: boolean; ++ }; // should be PowerState ++ getSupported32BitAbis: () => Promise; ++ getSupported32BitAbisSync: () => string[]; ++ getSupported64BitAbis: () => Promise; ++ getSupported64BitAbisSync: () => string[]; ++ getSupportedAbis: () => Promise; ++ getSupportedAbisSync: () => string[]; ++ getSystemManufacturer: () => Promise; ++ getSystemManufacturerSync: () => string; ++ getAndroidId: () => Promise; ++ getAndroidIdSync: () => string; ++ getApiLevel: () => Promise; ++ getApiLevelSync: () => number; ++ getAvailableLocationProviders: () => Promise; ++ getAvailableLocationProvidersSync: () => Object; // should be LocationProviderInfo ++ getBaseOs: () => Promise; ++ getBaseOsSync: () => string; ++ getBatteryLevel: () => Promise; ++ getBatteryLevelSync: () => number; ++ getBootloader: () => Promise; ++ getBootloaderSync: () => string; ++ getBuildId: () => Promise; ++ getBuildIdSync: () => string; ++ getCarrier: () => Promise; ++ getCarrierSync: () => string; ++ getCodename: () => Promise; ++ getCodenameSync: () => string; ++ getDevice: () => Promise; ++ getDeviceName: () => Promise; ++ getDeviceNameSync: () => string; ++ getDeviceSync: () => string; ++ getDeviceToken: () => Promise; ++ getDisplay: () => Promise; ++ getDisplaySync: () => string; ++ getFingerprint: () => Promise; ++ getFingerprintSync: () => string; ++ getFirstInstallTime: () => Promise; ++ getFirstInstallTimeSync: () => number; ++ getFontScale: () => Promise; ++ getFontScaleSync: () => number; ++ getFreeDiskStorage: () => Promise; ++ getFreeDiskStorageOld: () => Promise; ++ getFreeDiskStorageSync: () => number; ++ getFreeDiskStorageOldSync: () => number; ++ getHardware: () => Promise; ++ getHardwareSync: () => string; ++ getHost: () => Promise; ++ getHostSync: () => string; ++ getIncremental: () => Promise; ++ getIncrementalSync: () => string; ++ getInstallerPackageName: () => Promise; ++ getInstallerPackageNameSync: () => string; ++ getInstallReferrer: () => Promise; ++ getInstallReferrerSync: () => string; ++ getInstanceId: () => Promise; ++ getInstanceIdSync: () => string; ++ getIpAddress: () => Promise; ++ getIpAddressSync: () => string; ++ getLastUpdateTime: () => Promise; ++ getLastUpdateTimeSync: () => number; ++ getMacAddress: () => Promise; ++ getMacAddressSync: () => string; ++ getMaxMemory: () => Promise; ++ getMaxMemorySync: () => number; ++ getPhoneNumber: () => Promise; ++ getPhoneNumberSync: () => string; ++ getPreviewSdkInt: () => Promise; ++ getPreviewSdkIntSync: () => number; ++ getProduct: () => Promise; ++ getProductSync: () => string; ++ getSecurityPatch: () => Promise; ++ getSecurityPatchSync: () => string; ++ getSerialNumber: () => Promise; ++ getSerialNumberSync: () => string; ++ getSystemAvailableFeatures: () => Promise; ++ getSystemAvailableFeaturesSync: () => string[]; ++ getTags: () => Promise; ++ getTagsSync: () => string; ++ getTotalDiskCapacity: () => Promise; ++ getTotalDiskCapacityOld: () => Promise; ++ getTotalDiskCapacitySync: () => number; ++ getTotalDiskCapacityOldSync: () => number; ++ getTotalMemory: () => Promise; ++ getTotalMemorySync: () => number; ++ getType: () => Promise; ++ getTypeSync: () => string; ++ getUniqueId: () => Promise; ++ getUniqueIdSync: () => string; ++ getUsedMemory: () => Promise; ++ getUsedMemorySync: () => number; ++ getUserAgent: () => Promise; ++ getUserAgentSync: () => string; ++ getBrightness: () => Promise; ++ getBrightnessSync: () => number; ++ hasGms: () => Promise; ++ hasGmsSync: () => boolean; ++ hasHms: () => Promise; ++ hasHmsSync: () => boolean; ++ hasSystemFeature: (feature: string) => Promise; ++ hasSystemFeatureSync: (feature: string) => boolean; ++ isAirplaneMode: () => Promise; ++ isAirplaneModeSync: () => boolean; ++ isBatteryCharging: () => Promise; ++ isBatteryChargingSync: () => boolean; ++ isCameraPresent: () => Promise; ++ isCameraPresentSync: () => boolean; ++ isEmulator: () => Promise; ++ isEmulatorSync: () => boolean; ++ isHeadphonesConnected: () => Promise; ++ isHeadphonesConnectedSync: () => boolean; ++ isLocationEnabled: () => Promise; ++ isLocationEnabledSync: () => boolean; ++ isPinOrFingerprintSet: () => Promise; ++ isPinOrFingerprintSetSync: () => boolean; ++ isMouseConnected: () => Promise; ++ isMouseConnectedSync: () => boolean; ++ isKeyboardConnected: () => Promise; ++ isKeyboardConnectedSync: () => boolean; ++ isTabletMode: () => Promise; ++ syncUniqueId: () => Promise; ++ ++ addListener(eventName: string): void; ++ removeListeners(count: number): void; ++ getConstants(): { ++ appName: string; ++ appVersion: string; ++ brand: string; ++ buildNumber: string; ++ bundleId: string; ++ deviceId: string; ++ deviceType: string; ++ isTablet: boolean; ++ isDisplayZoomed?: boolean; ++ model: string; ++ systemName: string; ++ systemVersion: string; ++ }; ++} ++ ++export default TurboModuleRegistry.get('RNDeviceInfo'); +diff --git a/node_modules/react-native-device-info/src/index.js.flow b/node_modules/react-native-device-info/src/index.js.flow +index 02fbb10..fdb85b0 100644 +--- a/node_modules/react-native-device-info/src/index.js.flow ++++ b/node_modules/react-native-device-info/src/index.js.flow +@@ -153,6 +153,7 @@ declare module.exports: { + isKeyboardConnectedSync: () => boolean, + isTabletMode: () => Promise, + isTablet: () => boolean, ++ isDisplayZoomed: () => boolean, + supported32BitAbis: () => Promise, + supported32BitAbisSync: () => string[], + supported64BitAbis: () => Promise, +diff --git a/node_modules/react-native-device-info/src/index.ts b/node_modules/react-native-device-info/src/index.ts +index 6108ab9..85b1c44 100644 +--- a/node_modules/react-native-device-info/src/index.ts ++++ b/node_modules/react-native-device-info/src/index.ts +@@ -1,7 +1,7 @@ + import { useCallback, useEffect, useState } from 'react'; +-import { Dimensions, NativeEventEmitter, NativeModules, Platform } from 'react-native'; ++import { Dimensions, NativeEventEmitter, Platform } from 'react-native'; + import { useOnEvent, useOnMount } from './internal/asyncHookWrappers'; +-import devicesWithDynamicIsland from "./internal/devicesWithDynamicIsland"; ++import devicesWithDynamicIsland from './internal/devicesWithDynamicIsland'; + import devicesWithNotch from './internal/devicesWithNotch'; + import RNDeviceInfo from './internal/nativeInterface'; + import { +@@ -9,7 +9,7 @@ import { + getSupportedPlatformInfoFunctions, + getSupportedPlatformInfoSync, + } from './internal/supported-platform-info'; +-import { DeviceInfoModule } from './internal/privateTypes'; ++import { DeviceInfoModule, NativeConstants } from './internal/privateTypes'; + import type { + AsyncHookResult, + DeviceType, +@@ -17,6 +17,15 @@ import type { + PowerState, + } from './internal/types'; + ++let constants: NativeConstants; ++ ++function getConstants() { ++ if (constants === undefined) { ++ constants = RNDeviceInfo.getConstants() as NativeConstants; ++ } ++ return constants; ++} ++ + export const [getUniqueId, getUniqueIdSync] = getSupportedPlatformInfoFunctions({ + memoKey: 'uniqueId', + supportedPlatforms: ['android', 'ios', 'windows'], +@@ -95,7 +104,7 @@ export const getDeviceId = () => + getSupportedPlatformInfoSync({ + defaultValue: 'unknown', + memoKey: 'deviceId', +- getter: () => RNDeviceInfo.deviceId, ++ getter: () => getConstants().deviceId, + supportedPlatforms: ['android', 'ios', 'windows'], + }); + +@@ -113,7 +122,7 @@ export const getModel = () => + memoKey: 'model', + defaultValue: 'unknown', + supportedPlatforms: ['ios', 'android', 'windows'], +- getter: () => RNDeviceInfo.model, ++ getter: () => getConstants().model, + }); + + export const getBrand = () => +@@ -121,7 +130,7 @@ export const getBrand = () => + memoKey: 'brand', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.brand, ++ getter: () => getConstants().brand, + }); + + export const getSystemName = () => +@@ -131,7 +140,7 @@ export const getSystemName = () => + memoKey: 'systemName', + getter: () => + Platform.select({ +- ios: RNDeviceInfo.systemName, ++ ios: getConstants().systemName, + android: 'Android', + windows: 'Windows', + default: 'unknown', +@@ -141,7 +150,7 @@ export const getSystemName = () => + export const getSystemVersion = () => + getSupportedPlatformInfoSync({ + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.systemVersion, ++ getter: () => getConstants().systemVersion, + supportedPlatforms: ['android', 'ios', 'windows'], + memoKey: 'systemVersion', + }); +@@ -167,7 +176,7 @@ export const getBundleId = () => + memoKey: 'bundleId', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.bundleId, ++ getter: () => getConstants().bundleId, + }); + + export const [ +@@ -185,7 +194,7 @@ export const getApplicationName = () => + getSupportedPlatformInfoSync({ + memoKey: 'appName', + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.appName, ++ getter: () => getConstants().appName, + supportedPlatforms: ['android', 'ios', 'windows'], + }); + +@@ -193,7 +202,7 @@ export const getBuildNumber = () => + getSupportedPlatformInfoSync({ + memoKey: 'buildNumber', + supportedPlatforms: ['android', 'ios', 'windows'], +- getter: () => RNDeviceInfo.buildNumber, ++ getter: () => getConstants().buildNumber, + defaultValue: 'unknown', + }); + +@@ -202,7 +211,7 @@ export const getVersion = () => + memoKey: 'version', + defaultValue: 'unknown', + supportedPlatforms: ['android', 'ios', 'windows'], +- getter: () => RNDeviceInfo.appVersion, ++ getter: () => getConstants().appVersion, + }); + + export function getReadableVersion() { +@@ -371,7 +380,15 @@ export const isTablet = () => + defaultValue: false, + supportedPlatforms: ['android', 'ios', 'windows'], + memoKey: 'tablet', +- getter: () => RNDeviceInfo.isTablet, ++ getter: () => getConstants().isTablet, ++ }); ++ ++export const isDisplayZoomed = () => ++ getSupportedPlatformInfoSync({ ++ defaultValue: false, ++ supportedPlatforms: ['ios'], ++ memoKey: 'zoomed', ++ getter: () => getConstants().isDisplayZoomed, + }); + + export const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPlatformInfoFunctions( +@@ -386,6 +403,7 @@ export const [isPinOrFingerprintSet, isPinOrFingerprintSetSync] = getSupportedPl + let notch: boolean; + export function hasNotch() { + if (notch === undefined) { ++ console.log(RNDeviceInfo); + let _brand = getBrand(); + let _model = getModel(); + notch = +@@ -550,8 +568,8 @@ export const [getPowerState, getPowerStateSync] = getSupportedPlatformInfoFuncti + Partial + >({ + supportedPlatforms: ['ios', 'android', 'windows', 'web'], +- getter: () => RNDeviceInfo.getPowerState(), +- syncGetter: () => RNDeviceInfo.getPowerStateSync(), ++ getter: () => RNDeviceInfo.getPowerState() as Promise>, ++ syncGetter: () => RNDeviceInfo.getPowerStateSync() as Partial, + defaultValue: {}, + }); + +@@ -583,7 +601,7 @@ export const getDeviceType = () => { + memoKey: 'deviceType', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.deviceType, ++ getter: () => getConstants().deviceType, + }); + }; + +@@ -592,7 +610,7 @@ export const getDeviceTypeSync = () => { + memoKey: 'deviceType', + supportedPlatforms: ['android', 'ios', 'windows'], + defaultValue: 'unknown', +- getter: () => RNDeviceInfo.deviceType, ++ getter: () => getConstants().deviceType, + }); + }; + +@@ -693,8 +711,8 @@ export const [ + getAvailableLocationProvidersSync, + ] = getSupportedPlatformInfoFunctions({ + supportedPlatforms: ['android', 'ios'], +- getter: () => RNDeviceInfo.getAvailableLocationProviders(), +- syncGetter: () => RNDeviceInfo.getAvailableLocationProvidersSync(), ++ getter: () => RNDeviceInfo.getAvailableLocationProviders() as Promise, ++ syncGetter: () => RNDeviceInfo.getAvailableLocationProvidersSync() as LocationProviderInfo, + defaultValue: {}, + }); + +@@ -712,7 +730,7 @@ export async function getDeviceToken() { + return 'unknown'; + } + +-const deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo); ++const deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo); + export function useBatteryLevel(): number | null { + const [batteryLevel, setBatteryLevel] = useState(null); + +@@ -972,6 +990,7 @@ const DeviceInfo: DeviceInfoModule = { + isKeyboardConnectedSync, + isTabletMode, + isTablet, ++ isDisplayZoomed, + supported32BitAbis, + supported32BitAbisSync, + supported64BitAbis, +diff --git a/node_modules/react-native-device-info/src/internal/asyncHookWrappers.ts b/node_modules/react-native-device-info/src/internal/asyncHookWrappers.ts +index 2f39850..aa69cd1 100644 +--- a/node_modules/react-native-device-info/src/internal/asyncHookWrappers.ts ++++ b/node_modules/react-native-device-info/src/internal/asyncHookWrappers.ts +@@ -1,5 +1,6 @@ + import { useState, useEffect } from 'react'; +-import { NativeEventEmitter, NativeModules } from 'react-native'; ++import { NativeEventEmitter } from 'react-native'; ++import RNDeviceInfo from './nativeInterface'; + import type { AsyncHookResult } from './types'; + + /** +@@ -26,7 +27,7 @@ export function useOnMount(asyncGetter: () => Promise, initialResult: T): + return response; + } + +-export const deviceInfoEmitter = new NativeEventEmitter(NativeModules.RNDeviceInfo); ++export const deviceInfoEmitter = new NativeEventEmitter(RNDeviceInfo); + + /** + * simple hook wrapper for handling events +diff --git a/node_modules/react-native-device-info/src/internal/nativeInterface.native.ts b/node_modules/react-native-device-info/src/internal/nativeInterface.native.ts +new file mode 100644 +index 0000000..6408740 +--- /dev/null ++++ b/node_modules/react-native-device-info/src/internal/nativeInterface.native.ts +@@ -0,0 +1,3 @@ ++import RNDeviceInfoModule from '../fabric/NativeDeviceInfoModule'; ++ ++export default RNDeviceInfoModule; +diff --git a/node_modules/react-native-device-info/src/internal/nativeInterface.ts b/node_modules/react-native-device-info/src/internal/nativeInterface.ts +index 0e47d75..0ce6bc1 100644 +--- a/node_modules/react-native-device-info/src/internal/nativeInterface.ts ++++ b/node_modules/react-native-device-info/src/internal/nativeInterface.ts +@@ -1,12 +1,6 @@ +-import { Platform, NativeModules } from 'react-native'; +-import { DeviceInfoNativeModule } from './privateTypes'; ++import { Platform } from 'react-native'; + +-let RNDeviceInfo: DeviceInfoNativeModule | undefined = NativeModules.RNDeviceInfo; +- +-// @ts-ignore +-if (Platform.OS === 'web' || Platform.OS === 'dom') { +- RNDeviceInfo = require('../web'); +-} ++let RNDeviceInfo = require('../web'); + + if (!RNDeviceInfo) { + // Produce an error if we don't have the native module +@@ -25,4 +19,4 @@ if (!RNDeviceInfo) { + } + } + +-export default RNDeviceInfo as DeviceInfoNativeModule; ++export default RNDeviceInfo; +diff --git a/node_modules/react-native-device-info/src/internal/privateTypes.ts b/node_modules/react-native-device-info/src/internal/privateTypes.ts +index fb71735..9c41855 100644 +--- a/node_modules/react-native-device-info/src/internal/privateTypes.ts ++++ b/node_modules/react-native-device-info/src/internal/privateTypes.ts +@@ -8,7 +8,7 @@ export type NotchDevice = { + [key: string]: string; + }; + +-interface NativeConstants { ++export interface NativeConstants { + appName: string; + appVersion: string; + brand: string; +@@ -17,6 +17,7 @@ interface NativeConstants { + deviceId: string; + deviceType: DeviceType; + isTablet: boolean; ++ isDisplayZoomed?: boolean; + model: string; + systemName: string; + systemVersion: string; +@@ -179,6 +180,7 @@ export interface DeviceInfoModule extends ExposedNativeMethods { + isLandscape: () => Promise; + isLandscapeSync: () => boolean; + isTablet: () => boolean; ++ isDisplayZoomed: () => boolean | undefined; + supported32BitAbis: () => Promise; + supported32BitAbisSync: () => string[]; + supported64BitAbis: () => Promise; diff --git a/patches/react-native-pdf+6.7.3.patch b/patches/react-native-pdf+6.7.3.patch index 63024e7d4c1f..0f0f270cefd1 100644 --- a/patches/react-native-pdf+6.7.3.patch +++ b/patches/react-native-pdf+6.7.3.patch @@ -1,3 +1,33 @@ +diff --git a/node_modules/react-native-pdf/react-native-pdf.podspec b/node_modules/react-native-pdf/react-native-pdf.podspec +index fb36140..5d5f19e 100644 +--- a/node_modules/react-native-pdf/react-native-pdf.podspec ++++ b/node_modules/react-native-pdf/react-native-pdf.podspec +@@ -17,24 +17,11 @@ Pod::Spec.new do |s| + s.framework = "PDFKit" + + if fabric_enabled +- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' +- +- s.pod_target_xcconfig = { +- 'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/boost" "$(PODS_ROOT)/boost-for-react-native" "$(PODS_ROOT)/RCT-Folly"', +- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17", +- } + s.platforms = { ios: '11.0', tvos: '11.0' } +- s.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED' + s.source_files = 'ios/**/*.{h,m,mm,cpp}' + s.requires_arc = true + +- s.dependency "React" +- s.dependency "React-RCTFabric" +- s.dependency "React-Codegen" +- s.dependency "RCT-Folly" +- s.dependency "RCTRequired" +- s.dependency "RCTTypeSafety" +- s.dependency "ReactCommon/turbomodule/core" ++ install_modules_dependencies(s) + else + s.platform = :ios, '8.0' + s.source_files = 'ios/**/*.{h,m,mm}' diff --git a/node_modules/react-native-pdf/index.js b/node_modules/react-native-pdf/index.js index c05de52..bea7af8 100644 --- a/node_modules/react-native-pdf/index.js diff --git a/patches/react-native-plaid-link-sdk+11.5.0+001+initial.patch b/patches/react-native-plaid-link-sdk+11.5.0+001+initial.patch new file mode 100644 index 000000000000..6035477256b7 --- /dev/null +++ b/patches/react-native-plaid-link-sdk+11.5.0+001+initial.patch @@ -0,0 +1,4 @@ +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.m b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.mm +similarity index 100% +rename from node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.m +rename to node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.mm diff --git a/patches/react-native-plaid-link-sdk+11.5.0+002+turbomodule.patch b/patches/react-native-plaid-link-sdk+11.5.0+002+turbomodule.patch new file mode 100644 index 000000000000..7d5aab6c84cf --- /dev/null +++ b/patches/react-native-plaid-link-sdk+11.5.0+002+turbomodule.patch @@ -0,0 +1,3287 @@ +diff --git a/node_modules/react-native-plaid-link-sdk/README.md b/node_modules/react-native-plaid-link-sdk/README.md +index 93ebca6..7bea608 100644 +--- a/node_modules/react-native-plaid-link-sdk/README.md ++++ b/node_modules/react-native-plaid-link-sdk/README.md +@@ -49,7 +49,6 @@ cd ios && bundle install && bundle exec pod install + + AutoLinking should handle all of the Android setup. + +- + ### React Native Setup + + - To initialize `PlaidLink`, you will need to first create a `link_token` at [/link/token/create](https://plaid.com/docs/#create-link-token). Check out our [QuickStart guide](https://plaid.com/docs/quickstart/#introduction) for additional API information. +@@ -58,7 +57,13 @@ AutoLinking should handle all of the Android setup. + + ```javascript + import { Text } from 'react-native'; +-import { PlaidLink, LinkSuccess, LinkExit, LinkLogLevel, LinkIOSPresentationStyle } from 'react-native-plaid-link-sdk'; ++import { ++ PlaidLink, ++ LinkSuccess, ++ LinkExit, ++ LinkLogLevel, ++ LinkIOSPresentationStyle, ++} from 'react-native-plaid-link-sdk'; + + const MyPlaidComponent = () => { + return ( +@@ -77,7 +82,7 @@ const MyPlaidComponent = () => { + // UI is always presented in full screen on Android. + iOSPresentationStyle={LinkIOSPresentationStyle.MODAL} + > +- Add Account ++ Add Account + + ); + }; +@@ -92,6 +97,7 @@ const MyPlaidComponent = () => { + ##### Android OAuth Requirements + + ###### Register your app package name ++ + 1. Log into your [Plaid Dashboard](https://dashboard.plaid.com/developers/api) and navigate to the API page under the Developers tab. + 2. Next to Allowed Android package names click "Configure" then "Add New Android Package Name". + 3. Enter your package name, for example `com.plaid.example`. +@@ -100,17 +106,16 @@ const MyPlaidComponent = () => { + ##### iOS OAuth Requirements + + For iOS OAuth to work, specific requirements must be met. ++ + 1. Redirect URIs must be [registered](https://plaid.com/docs/link/ios/#register-your-redirect-uri), and set up as [universal links](https://developer.apple.com/documentation/xcode/supporting-associated-domains). + 2. Your native iOS application, must be configured with your associated domain. See your iOS [set up universal links](https://plaid.com/docs/link/ios/#set-up-universal-links) for more information. + +- + ##### Link Token OAuth Requirements + + - On iOS you must configure your `link_token` with a [redirect_uri](https://plaid.com/docs/api/tokens/#link-token-create-request-redirect-uri) to support OAuth. When creating a `link_token` for initializing Link on Android, `android_package_name` must be specified and `redirect_uri` must be left blank. + + - On Android you must configure your `link_token` with an [android_package_name](https://plaid.com/docs/api/tokens/#link-token-create-request-android-package-name) to support OAuth. When creating a `link_token` for initializing Link on iOS, `android_package_name` must be left blank and `redirect_uri` should be used instead. + +- + #### To receive onEvent callbacks: + + The React Native Plaid module emits `onEvent` events throughout the account linking process — see [details here](https://plaid.com/docs/link/react-native/#onevent). To receive these events in your React Native app, wrap the `PlaidLink` react component with the following in order to listen for those events: +@@ -139,9 +144,9 @@ class PlaidEventContainer extends React.Component { + You can also use the `usePlaidEmitter` hook in react functional components: + + ```javascript +- usePlaidEmitter((event: LinkEvent) => { +- console.log(event) +- }) ++usePlaidEmitter((event: LinkEvent) => { ++ console.log(event); ++}); + ``` + + ## Upgrading +@@ -165,6 +170,8 @@ While these older versions are expected to continue to work without disruption, + | 11.0.2 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 | + | 11.0.1 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 | + | 11.0.0 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 | ++| 10.13.0 | >= 0.66.0 | [3.14.3+] | 21 | 33 | >=4.7.2 | 11.0 | Active, supports Xcode 14 | ++| 10.12.0 | >= 0.66.0 | [3.14.3+] | 21 | 33 | >=4.7.1 | 11.0 | Active, supports Xcode 14 | + | 10.11.0 | >= 0.66.0 | [3.14.1+] | 21 | 33 | >=4.7.1 | 11.0 | Active, supports Xcode 14 | + | ~10.10.0~ | >= 0.66.0 | [3.14.2+] | 21 | 33 | >=4.7.1 | 11.0 | **Deprecated** | + | 10.9.1 | >= 0.66.0 | [3.14.1+] | 21 | 33 | >=4.7.0 | 11.0 | Active, supports Xcode 14 | +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/checksums.lock b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/checksums.lock +deleted file mode 100644 +index b5da584..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/checksums.lock and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/md5-checksums.bin b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/md5-checksums.bin +deleted file mode 100644 +index ef608b4..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/md5-checksums.bin and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/sha1-checksums.bin b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/sha1-checksums.bin +deleted file mode 100644 +index 0856ae4..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/checksums/sha1-checksums.bin and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +deleted file mode 100644 +index 12aea68..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/dependencies-accessors/gc.properties b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/dependencies-accessors/gc.properties +deleted file mode 100644 +index e69de29..0000000 +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/fileChanges/last-build.bin b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/fileChanges/last-build.bin +deleted file mode 100644 +index f76dd23..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/fileChanges/last-build.bin and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/fileHashes/fileHashes.lock b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/fileHashes/fileHashes.lock +deleted file mode 100644 +index 752a252..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/fileHashes/fileHashes.lock and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/gc.properties b/node_modules/react-native-plaid-link-sdk/android/.gradle/7.4.2/gc.properties +deleted file mode 100644 +index e69de29..0000000 +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/node_modules/react-native-plaid-link-sdk/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +deleted file mode 100644 +index 470ca89..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/buildOutputCleanup/cache.properties b/node_modules/react-native-plaid-link-sdk/android/.gradle/buildOutputCleanup/cache.properties +deleted file mode 100644 +index 1439672..0000000 +--- a/node_modules/react-native-plaid-link-sdk/android/.gradle/buildOutputCleanup/cache.properties ++++ /dev/null +@@ -1,2 +0,0 @@ +-#Thu Nov 09 09:41:17 PST 2023 +-gradle.version=7.4.2 +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/checksums.lock b/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/checksums.lock +deleted file mode 100644 +index 34602e1..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/checksums.lock and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/md5-checksums.bin b/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/md5-checksums.bin +deleted file mode 100644 +index 2420123..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/md5-checksums.bin and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/sha1-checksums.bin b/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/sha1-checksums.bin +deleted file mode 100644 +index 1081852..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/android/.gradle/checksums/sha1-checksums.bin and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/android/.gradle/vcs-1/gc.properties b/node_modules/react-native-plaid-link-sdk/android/.gradle/vcs-1/gc.properties +deleted file mode 100644 +index e69de29..0000000 +diff --git a/node_modules/react-native-plaid-link-sdk/android/.idea/gradle.xml b/node_modules/react-native-plaid-link-sdk/android/.idea/gradle.xml +deleted file mode 100644 +index 0364d75..0000000 +--- a/node_modules/react-native-plaid-link-sdk/android/.idea/gradle.xml ++++ /dev/null +@@ -1,14 +0,0 @@ +- +- +- +- +- +- +- +\ No newline at end of file +diff --git a/node_modules/react-native-plaid-link-sdk/android/.idea/misc.xml b/node_modules/react-native-plaid-link-sdk/android/.idea/misc.xml +deleted file mode 100644 +index a318cae..0000000 +--- a/node_modules/react-native-plaid-link-sdk/android/.idea/misc.xml ++++ /dev/null +@@ -1,9 +0,0 @@ +- +- +- +- +- +- +- +- +\ No newline at end of file +diff --git a/node_modules/react-native-plaid-link-sdk/android/.idea/vcs.xml b/node_modules/react-native-plaid-link-sdk/android/.idea/vcs.xml +deleted file mode 100644 +index 6c0b863..0000000 +--- a/node_modules/react-native-plaid-link-sdk/android/.idea/vcs.xml ++++ /dev/null +@@ -1,6 +0,0 @@ +- +- +- +- +- +- +\ No newline at end of file +diff --git a/node_modules/react-native-plaid-link-sdk/android/build.gradle b/node_modules/react-native-plaid-link-sdk/android/build.gradle +index 2d9e2ce..e88208b 100644 +--- a/node_modules/react-native-plaid-link-sdk/android/build.gradle ++++ b/node_modules/react-native-plaid-link-sdk/android/build.gradle +@@ -12,7 +12,12 @@ allprojects { + + + buildscript { +- ext.kotlin_version = '1.8.22' ++ ext { ++ kotlin_version = '1.8.22' ++ } ++ ext.safeExtGet = {prop, fallback -> ++ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback ++ } + repositories { + google() + mavenCentral() +@@ -25,10 +30,32 @@ buildscript { + } + } + ++def isNewArchitectureEnabled() { ++ // To opt-in for the New Architecture, you can either: ++ // - Set `newArchEnabled` to true inside the `gradle.properties` file ++ // - Invoke gradle with `-newArchEnabled=true` ++ // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` ++ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" ++} ++ ++if (isNewArchitectureEnabled()) { ++ apply plugin: "com.facebook.react" ++} ++ + apply plugin: 'com.android.library' + apply plugin: "kotlin-android" + + android { ++ ++ // Used to override the NDK path/version on internal CI or by allowing ++ // users to customize the NDK path/version from their root project (e.g. for M1 support) ++ if (rootProject.hasProperty("ndkPath")) { ++ ndkPath rootProject.ext.ndkPath ++ } ++ if (rootProject.hasProperty("ndkVersion")) { ++ ndkVersion rootProject.ext.ndkVersion ++ } ++ + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger() + if (agpVersion >= 7) { + namespace 'com.plaid' +@@ -52,6 +79,14 @@ android { + } + } + ++ sourceSets.main { ++ java { ++ if (!isNewArchitectureEnabled()) { ++ srcDirs += 'src/paper/java' ++ } ++ } ++ } ++ + buildTypes { + release { + debuggable = false +diff --git a/node_modules/react-native-plaid-link-sdk/android/local.properties b/node_modules/react-native-plaid-link-sdk/android/local.properties +deleted file mode 100644 +index 0b4e321..0000000 +--- a/node_modules/react-native-plaid-link-sdk/android/local.properties ++++ /dev/null +@@ -1,8 +0,0 @@ +-## This file must *NOT* be checked into Version Control Systems, +-# as it contains information specific to your local configuration. +-# +-# Location of the SDK. This is only used by Gradle. +-# For customization when using a Version Control System, please read the +-# header note. +-#Fri Aug 11 13:58:32 PDT 2023 +-sdk.dir=/Users/dtroupe/Library/Android/sdk +diff --git a/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PLKEmbeddedViewManager.kt b/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PLKEmbeddedViewManager.kt +index c73011f..66fd266 100644 +--- a/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PLKEmbeddedViewManager.kt ++++ b/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PLKEmbeddedViewManager.kt +@@ -19,9 +19,9 @@ class PLKEmbeddedViewManager : SimpleViewManager() { + } + + override fun getExportedCustomBubblingEventTypeConstants(): Map { +- return mapOf( +- EVENT_NAME to mapOf( +- "phasedRegistrationNames" to mapOf( ++ return mutableMapOf( ++ EVENT_NAME to mutableMapOf( ++ "phasedRegistrationNames" to mutableMapOf( + "bubbled" to EVENT_NAME + ) + )) +diff --git a/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidModule.kt b/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidModule.kt +index 293374a..b79352e 100644 +--- a/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidModule.kt ++++ b/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidModule.kt +@@ -24,9 +24,9 @@ import org.json.JSONException + import org.json.JSONObject + import java.util.ArrayList + +-@ReactModule(name = PlaidModule.TAG) ++@ReactModule(name = PlaidModule.NAME) + class PlaidModule internal constructor(reactContext: ReactApplicationContext) : +- ReactContextBaseJavaModule(reactContext), ActivityEventListener { ++ NativePlaidLinkModuleAndroidSpec(reactContext), ActivityEventListener { + + val mActivityResultManager by lazy { ActivityResultManager() } + +@@ -38,11 +38,11 @@ class PlaidModule internal constructor(reactContext: ReactApplicationContext) : + companion object { + private const val LINK_TOKEN_PREFIX = "link" + +- const val TAG = "PlaidAndroid" ++ const val NAME = "PlaidAndroid" + } + + override fun getName(): String { +- return PlaidModule.TAG ++ return NAME + } + + override fun initialize() { +@@ -78,7 +78,7 @@ class PlaidModule internal constructor(reactContext: ReactApplicationContext) : + + @ReactMethod + @Suppress("unused") +- fun startLinkActivityForResult( ++ override fun startLinkActivityForResult( + token: String, + noLoadingState: Boolean, + logLevel: String, +@@ -113,6 +113,10 @@ class PlaidModule internal constructor(reactContext: ReactApplicationContext) : + } + } + ++ override fun addListener(eventName: String?) = Unit ++ ++ override fun removeListeners(count: Double) = Unit ++ + private fun maybeGetStringField(obj: JSONObject, fieldName: String): String? { + if (obj.has(fieldName) && !TextUtils.isEmpty(obj.getString(fieldName))) { + return obj.getString(fieldName) +diff --git a/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidPackage.java b/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidPackage.java +index c59299e..d6b310e 100644 +--- a/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidPackage.java ++++ b/node_modules/react-native-plaid-link-sdk/android/src/main/java/com/plaid/PlaidPackage.java +@@ -6,19 +6,54 @@ import java.util.List; + import java.util.Map; + + import com.facebook.react.TurboReactPackage; ++import com.facebook.react.ViewManagerOnDemandReactPackage; ++import com.facebook.react.bridge.ModuleSpec; + import com.facebook.react.bridge.NativeModule; + import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.module.annotations.ReactModule; ++import com.facebook.react.module.annotations.ReactModuleList; + import com.facebook.react.module.model.ReactModuleInfo; + import com.facebook.react.module.model.ReactModuleInfoProvider; ++import com.facebook.react.turbomodule.core.interfaces.TurboModule; + import com.facebook.react.uimanager.ViewManager; + +-@SuppressWarnings("unused") +-public class PlaidPackage extends TurboReactPackage { ++import javax.annotation.Nonnull; ++import javax.annotation.Nullable; + ++@ReactModuleList(nativeModules = {PlaidModule.class}) ++public class PlaidPackage extends TurboReactPackage implements ViewManagerOnDemandReactPackage { ++ ++ /** ++ * {@inheritDoc} ++ */ ++ @Override ++ public List getViewManagerNames(ReactApplicationContext reactContext) { ++ return null; ++ } ++ ++ @Override ++ protected List getViewManagers(ReactApplicationContext reactContext) { ++ return null; ++ } ++ ++ /** ++ * {@inheritDoc} ++ */ + @Override +- public NativeModule getModule( +- String name, ReactApplicationContext reactContext) { +- return new PlaidModule(reactContext); ++ public @Nullable ++ ViewManager createViewManager( ++ ReactApplicationContext reactContext, String viewManagerName) { ++ return null; ++ } ++ ++ @Override ++ public NativeModule getModule(String name, @Nonnull ReactApplicationContext reactContext) { ++ switch (name) { ++ case PlaidModule.NAME: ++ return new PlaidModule(reactContext); ++ default: ++ return null; ++ } + } + + @Override +@@ -28,19 +63,44 @@ public class PlaidPackage extends TurboReactPackage { + + @Override + public ReactModuleInfoProvider getReactModuleInfoProvider() { +- return () -> { +- Map map = new HashMap<>(); +- map.put( +- "PlaidAndroid", +- new ReactModuleInfo( +- "PlaidAndroid", +- "com.reactlibrary.PlaidModule", +- false, +- false, +- true, +- false, +- false)); +- return map; +- }; ++ try { ++ Class reactModuleInfoProviderClass = ++ Class.forName("com.plaid.PlaidPackage$$ReactModuleInfoProvider"); ++ return (ReactModuleInfoProvider) reactModuleInfoProviderClass.newInstance(); ++ } catch (ClassNotFoundException e) { ++ // ReactModuleSpecProcessor does not run at build-time. Create this ReactModuleInfoProvider by ++ // hand. ++ return new ReactModuleInfoProvider() { ++ @Override ++ public Map getReactModuleInfos() { ++ final Map reactModuleInfoMap = new HashMap<>(); ++ ++ Class[] moduleList = ++ new Class[]{ ++ PlaidModule.class, ++ }; ++ ++ for (Class moduleClass : moduleList) { ++ ReactModule reactModule = moduleClass.getAnnotation(ReactModule.class); ++ ++ reactModuleInfoMap.put( ++ reactModule.name(), ++ new ReactModuleInfo( ++ reactModule.name(), ++ moduleClass.getName(), ++ reactModule.canOverrideExistingModule(), ++ reactModule.needsEagerInit(), ++ reactModule.hasConstants(), ++ reactModule.isCxxModule(), ++ TurboModule.class.isAssignableFrom(moduleClass))); ++ } ++ ++ return reactModuleInfoMap; ++ } ++ }; ++ } catch (InstantiationException | IllegalAccessException e) { ++ throw new RuntimeException( ++ "No ReactModuleInfoProvider for com.plaid.PlaidPackage$$ReactModuleInfoProvider", e); ++ } + } + } +diff --git a/node_modules/react-native-plaid-link-sdk/android/src/paper/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java b/node_modules/react-native-plaid-link-sdk/android/src/paper/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +new file mode 100644 +index 0000000..fee5a11 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/android/src/paper/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +@@ -0,0 +1,46 @@ ++ ++/** ++ * 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: GenerateModuleJavaSpec.js ++ * ++ * @nolint ++ */ ++ ++package com.plaid; ++ ++import com.facebook.proguard.annotations.DoNotStrip; ++import com.facebook.react.bridge.Callback; ++import com.facebook.react.bridge.ReactApplicationContext; ++import com.facebook.react.bridge.ReactContextBaseJavaModule; ++import com.facebook.react.bridge.ReactMethod; ++import com.facebook.react.turbomodule.core.interfaces.TurboModule; ++import javax.annotation.Nonnull; ++ ++public abstract class NativePlaidLinkModuleAndroidSpec extends ReactContextBaseJavaModule implements TurboModule { ++ public static final String NAME = "PlaidAndroid"; ++ ++ public NativePlaidLinkModuleAndroidSpec(ReactApplicationContext reactContext) { ++ super(reactContext); ++ } ++ ++ @Override ++ public @Nonnull String getName() { ++ return NAME; ++ } ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void startLinkActivityForResult(String token, boolean noLoadingState, String logLevel, Callback onSuccessCallback, Callback onExitCallback); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void addListener(String eventName); ++ ++ @ReactMethod ++ @DoNotStrip ++ public abstract void removeListeners(double count); ++} +diff --git a/node_modules/react-native-plaid-link-sdk/dist/EmbeddedLink/EmbeddedLinkView.js b/node_modules/react-native-plaid-link-sdk/dist/EmbeddedLink/EmbeddedLinkView.js +index c7b1e96..c429da7 100644 +--- a/node_modules/react-native-plaid-link-sdk/dist/EmbeddedLink/EmbeddedLinkView.js ++++ b/node_modules/react-native-plaid-link-sdk/dist/EmbeddedLink/EmbeddedLinkView.js +@@ -1,55 +1,69 @@ + import React from 'react'; + import NativeEmbeddedLinkView from './NativeEmbeddedLinkView'; + class EmbeddedEvent { +- constructor(event) { +- this.eventName = event.eventName; +- this.metadata = event.metadata; +- } ++ constructor(event) { ++ this.eventName = event.eventName; ++ this.metadata = event.metadata; ++ } + } + class EmbeddedExit { +- constructor(event) { +- this.error = event.error; +- this.metadata = event.metadata; +- } ++ constructor(event) { ++ this.error = event.error; ++ this.metadata = event.metadata; ++ } + } + class EmbeddedSuccess { +- constructor(event) { +- this.publicToken = event.publicToken; +- this.metadata = event.metadata; +- } ++ constructor(event) { ++ this.publicToken = event.publicToken; ++ this.metadata = event.metadata; ++ } + } +-export const EmbeddedLinkView = (props) => { +- const { token, iOSPresentationStyle, onEvent, onSuccess, onExit, style } = props; +- const onEmbeddedEvent = (event) => { +- switch (event.nativeEvent.embeddedEventName) { +- case 'onSuccess': { +- if (!onSuccess) { +- return; +- } +- const embeddedSuccess = new EmbeddedSuccess(event.nativeEvent); +- onSuccess(embeddedSuccess); +- break; +- } +- case 'onExit': { +- if (!onExit) { +- return; +- } +- const embeddedExit = new EmbeddedExit(event.nativeEvent); +- onExit(embeddedExit); +- break; +- } +- case 'onEvent': { +- if (!onEvent) { +- return; +- } +- const embeddedEvent = new EmbeddedEvent(event.nativeEvent); +- onEvent(embeddedEvent); +- break; +- } +- default: { +- return; +- } ++export const EmbeddedLinkView = props => { ++ const { ++ token, ++ iOSPresentationStyle, ++ onEvent, ++ onSuccess, ++ onExit, ++ style, ++ } = props; ++ const onEmbeddedEvent = event => { ++ switch (event.nativeEvent.embeddedEventName) { ++ case 'onSuccess': { ++ if (!onSuccess) { ++ return; + } +- }; +- return ; ++ const embeddedSuccess = new EmbeddedSuccess(event.nativeEvent); ++ onSuccess(embeddedSuccess); ++ break; ++ } ++ case 'onExit': { ++ if (!onExit) { ++ return; ++ } ++ const embeddedExit = new EmbeddedExit(event.nativeEvent); ++ onExit(embeddedExit); ++ break; ++ } ++ case 'onEvent': { ++ if (!onEvent) { ++ return; ++ } ++ const embeddedEvent = new EmbeddedEvent(event.nativeEvent); ++ onEvent(embeddedEvent); ++ break; ++ } ++ default: { ++ return; ++ } ++ } ++ }; ++ return ( ++ ++ ); + }; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.d.ts b/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.d.ts +index a48b319..43205dd 100644 +--- a/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.d.ts ++++ b/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.d.ts +@@ -4,9 +4,9 @@ import { LinkEventListener, PlaidLinkComponentProps, PlaidLinkProps } from './Ty + * A hook that registers a listener on the Plaid emitter for the 'onEvent' type. + * The listener is cleaned up when this view is unmounted + * +- * @param LinkEventListener the listener to call ++ * @param linkEventListener the listener to call + */ +-export declare const usePlaidEmitter: (LinkEventListener: LinkEventListener) => void; ++export declare const usePlaidEmitter: (linkEventListener: LinkEventListener) => void; + export declare const openLink: (props: PlaidLinkProps) => Promise; + export declare const dismissLink: () => void; + export declare const PlaidLink: (props: PlaidLinkComponentProps) => React.JSX.Element; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.js b/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.js +index 21da2bc..6c43633 100644 +--- a/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.js ++++ b/node_modules/react-native-plaid-link-sdk/dist/PlaidLink.js +@@ -1,83 +1,146 @@ +-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { +- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } +- return new (P || (P = Promise))(function (resolve, reject) { +- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } +- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } +- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } +- step((generator = generator.apply(thisArg, _arguments || [])).next()); ++var __awaiter = ++ (this && this.__awaiter) || ++ function(thisArg, _arguments, P, generator) { ++ function adopt(value) { ++ return value instanceof P ++ ? value ++ : new P(function(resolve) { ++ resolve(value); ++ }); ++ } ++ return new (P || (P = Promise))(function(resolve, reject) { ++ function fulfilled(value) { ++ try { ++ step(generator.next(value)); ++ } catch (e) { ++ reject(e); ++ } ++ } ++ function rejected(value) { ++ try { ++ step(generator['throw'](value)); ++ } catch (e) { ++ reject(e); ++ } ++ } ++ function step(result) { ++ result.done ++ ? resolve(result.value) ++ : adopt(result.value).then(fulfilled, rejected); ++ } ++ step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +-}; ++ }; ++var _a; + import React, { useEffect } from 'react'; +-import { NativeEventEmitter, NativeModules, Platform, TouchableOpacity, } from 'react-native'; +-import { LinkIOSPresentationStyle, LinkLogLevel, } from './Types'; ++import { NativeEventEmitter, Platform, TouchableOpacity } from 'react-native'; ++import { LinkIOSPresentationStyle, LinkLogLevel } from './Types'; ++import RNLinksdkAndroid from './fabric/NativePlaidLinkModuleAndroid'; ++import RNLinksdkiOS from './fabric/NativePlaidLinkModuleiOS'; ++const RNLinksdk = ++ (_a = Platform.OS === 'android' ? RNLinksdkAndroid : RNLinksdkiOS) !== null && ++ _a !== void 0 ++ ? _a ++ : undefined; + /** + * A hook that registers a listener on the Plaid emitter for the 'onEvent' type. + * The listener is cleaned up when this view is unmounted + * +- * @param LinkEventListener the listener to call ++ * @param linkEventListener the listener to call + */ +-export const usePlaidEmitter = (LinkEventListener) => { +- useEffect(() => { +- const emitter = new NativeEventEmitter(Platform.OS === 'ios' +- ? NativeModules.RNLinksdk +- : NativeModules.PlaidAndroid); +- const listener = emitter.addListener('onEvent', LinkEventListener); +- // Clean up after this effect: +- return function cleanup() { +- listener.remove(); +- }; +- }, []); ++export const usePlaidEmitter = linkEventListener => { ++ useEffect(() => { ++ const emitter = new NativeEventEmitter(RNLinksdk); ++ const listener = emitter.addListener('onEvent', linkEventListener); ++ // Clean up after this effect: ++ return function cleanup() { ++ listener.remove(); ++ }; ++ }, []); + }; +-export const openLink = (props) => __awaiter(void 0, void 0, void 0, function* () { +- var _a, _b; ++export const openLink = props => ++ __awaiter(void 0, void 0, void 0, function*() { ++ var _b, _c; + let config = props.tokenConfig; +- let noLoadingState = (_a = config.noLoadingState) !== null && _a !== void 0 ? _a : false; ++ let noLoadingState = ++ (_b = config.noLoadingState) !== null && _b !== void 0 ? _b : false; + if (Platform.OS === 'android') { +- NativeModules.PlaidAndroid.startLinkActivityForResult(config.token, noLoadingState, (_b = config.logLevel) !== null && _b !== void 0 ? _b : LinkLogLevel.ERROR, (result) => { +- if (props.onSuccess != null) { +- props.onSuccess(result); +- } +- }, (result) => { +- if (props.onExit != null) { +- if (result.error != null && result.error.displayMessage != null) { +- //TODO(RNSDK-118): Remove errorDisplayMessage field in next major update. +- result.error.errorDisplayMessage = result.error.displayMessage; +- } +- props.onExit(result); ++ if (RNLinksdkAndroid === null) { ++ throw new Error( ++ '[react-native-plaid-link-sdk] RNLinksdkAndroid is not defined', ++ ); ++ } ++ RNLinksdkAndroid.startLinkActivityForResult( ++ config.token, ++ noLoadingState, ++ (_c = config.logLevel) !== null && _c !== void 0 ++ ? _c ++ : LinkLogLevel.ERROR, ++ // @ts-ignore we use Object type in the spec file as it maps to NSDictionary and ReadableMap ++ result => { ++ if (props.onSuccess != null) { ++ props.onSuccess(result); ++ } ++ }, ++ result => { ++ if (props.onExit != null) { ++ if (result.error != null && result.error.displayMessage != null) { ++ //TODO(RNSDK-118): Remove errorDisplayMessage field in next major update. ++ result.error.errorDisplayMessage = result.error.displayMessage; + } +- }); +- } +- else { +- NativeModules.RNLinksdk.create(config.token, noLoadingState); +- let presentFullScreen = props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN; +- NativeModules.RNLinksdk.open(presentFullScreen, (result) => { +- if (props.onSuccess != null) { +- props.onSuccess(result); +- } +- }, (error, result) => { +- if (props.onExit != null) { +- if (error) { +- var data = result || {}; +- data.error = error; +- props.onExit(data); +- } +- else { +- props.onExit(result); +- } ++ props.onExit(result); ++ } ++ }, ++ ); ++ } else { ++ if (RNLinksdkiOS === null) { ++ throw new Error( ++ '[react-native-plaid-link-sdk] RNLinksdkiOS is not defined', ++ ); ++ } ++ RNLinksdkiOS.create(config.token, noLoadingState); ++ let presentFullScreen = ++ props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN; ++ RNLinksdkiOS.open( ++ presentFullScreen, ++ // @ts-ignore we use Object type in the spec file as it maps to NSDictionary and ReadableMap ++ result => { ++ if (props.onSuccess != null) { ++ props.onSuccess(result); ++ } ++ }, ++ (error, result) => { ++ if (props.onExit != null) { ++ if (error) { ++ var data = result || {}; ++ data.error = error; ++ props.onExit(data); ++ } else { ++ props.onExit(result); + } +- }); ++ } ++ }, ++ ); + } +-}); ++ }); + export const dismissLink = () => { +- if (Platform.OS === 'ios') { +- NativeModules.RNLinksdk.dismiss(); ++ if (Platform.OS === 'ios') { ++ if (RNLinksdkiOS === null) { ++ throw new Error( ++ '[react-native-plaid-link-sdk] RNLinksdkiOS is not defined', ++ ); + } ++ RNLinksdkiOS.dismiss(); ++ } + }; +-export const PlaidLink = (props) => { +- function onPress() { +- var _a; +- (_a = props.onPress) === null || _a === void 0 ? void 0 : _a.call(props); +- openLink(props); +- } +- return {props.children}; ++export const PlaidLink = props => { ++ function onPress() { ++ var _a; ++ (_a = props.onPress) === null || _a === void 0 ? void 0 : _a.call(props); ++ openLink(props); ++ } ++ return ( ++ // @ts-ignore some types directories misconfiguration ++ {props.children} ++ ); + }; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/Types.js b/node_modules/react-native-plaid-link-sdk/dist/Types.js +index 184adad..11b34e3 100644 +--- a/node_modules/react-native-plaid-link-sdk/dist/Types.js ++++ b/node_modules/react-native-plaid-link-sdk/dist/Types.js +@@ -1,430 +1,681 @@ + export var LinkLogLevel; +-(function (LinkLogLevel) { +- LinkLogLevel["DEBUG"] = "debug"; +- LinkLogLevel["INFO"] = "info"; +- LinkLogLevel["WARN"] = "warn"; +- LinkLogLevel["ERROR"] = "error"; ++(function(LinkLogLevel) { ++ LinkLogLevel['DEBUG'] = 'debug'; ++ LinkLogLevel['INFO'] = 'info'; ++ LinkLogLevel['WARN'] = 'warn'; ++ LinkLogLevel['ERROR'] = 'error'; + })(LinkLogLevel || (LinkLogLevel = {})); + export var PlaidEnvironment; +-(function (PlaidEnvironment) { +- PlaidEnvironment["PRODUCTION"] = "production"; +- PlaidEnvironment["DEVELOPMENT"] = "development"; +- PlaidEnvironment["SANDBOX"] = "sandbox"; ++(function(PlaidEnvironment) { ++ PlaidEnvironment['PRODUCTION'] = 'production'; ++ PlaidEnvironment['DEVELOPMENT'] = 'development'; ++ PlaidEnvironment['SANDBOX'] = 'sandbox'; + })(PlaidEnvironment || (PlaidEnvironment = {})); + export var PlaidProduct; +-(function (PlaidProduct) { +- PlaidProduct["ASSETS"] = "assets"; +- PlaidProduct["AUTH"] = "auth"; +- PlaidProduct["DEPOSIT_SWITCH"] = "deposit_switch"; +- PlaidProduct["IDENTITY"] = "identity"; +- PlaidProduct["INCOME"] = "income"; +- PlaidProduct["INVESTMENTS"] = "investments"; +- PlaidProduct["LIABILITIES"] = "liabilities"; +- PlaidProduct["LIABILITIES_REPORT"] = "liabilities_report"; +- PlaidProduct["PAYMENT_INITIATION"] = "payment_initiation"; +- PlaidProduct["TRANSACTIONS"] = "transactions"; ++(function(PlaidProduct) { ++ PlaidProduct['ASSETS'] = 'assets'; ++ PlaidProduct['AUTH'] = 'auth'; ++ PlaidProduct['DEPOSIT_SWITCH'] = 'deposit_switch'; ++ PlaidProduct['IDENTITY'] = 'identity'; ++ PlaidProduct['INCOME'] = 'income'; ++ PlaidProduct['INVESTMENTS'] = 'investments'; ++ PlaidProduct['LIABILITIES'] = 'liabilities'; ++ PlaidProduct['LIABILITIES_REPORT'] = 'liabilities_report'; ++ PlaidProduct['PAYMENT_INITIATION'] = 'payment_initiation'; ++ PlaidProduct['TRANSACTIONS'] = 'transactions'; + })(PlaidProduct || (PlaidProduct = {})); + export var LinkAccountType; +-(function (LinkAccountType) { +- LinkAccountType["CREDIT"] = "credit"; +- LinkAccountType["DEPOSITORY"] = "depository"; +- LinkAccountType["INVESTMENT"] = "investment"; +- LinkAccountType["LOAN"] = "loan"; +- LinkAccountType["OTHER"] = "other"; ++(function(LinkAccountType) { ++ LinkAccountType['CREDIT'] = 'credit'; ++ LinkAccountType['DEPOSITORY'] = 'depository'; ++ LinkAccountType['INVESTMENT'] = 'investment'; ++ LinkAccountType['LOAN'] = 'loan'; ++ LinkAccountType['OTHER'] = 'other'; + })(LinkAccountType || (LinkAccountType = {})); + export var LinkAccountSubtypes; +-(function (LinkAccountSubtypes) { +- LinkAccountSubtypes["ALL"] = "all"; +- LinkAccountSubtypes["CREDIT_CARD"] = "credit card"; +- LinkAccountSubtypes["PAYPAL"] = "paypal"; +- LinkAccountSubtypes["AUTO"] = "auto"; +- LinkAccountSubtypes["BUSINESS"] = "business"; +- LinkAccountSubtypes["COMMERCIAL"] = "commercial"; +- LinkAccountSubtypes["CONSTRUCTION"] = "construction"; +- LinkAccountSubtypes["CONSUMER"] = "consumer"; +- LinkAccountSubtypes["HOME_EQUITY"] = "home equity"; +- LinkAccountSubtypes["LINE_OF_CREDIT"] = "line of credit"; +- LinkAccountSubtypes["LOAN"] = "loan"; +- LinkAccountSubtypes["MORTGAGE"] = "mortgage"; +- LinkAccountSubtypes["OVERDRAFT"] = "overdraft"; +- LinkAccountSubtypes["STUDENT"] = "student"; +- LinkAccountSubtypes["CASH_MANAGEMENT"] = "cash management"; +- LinkAccountSubtypes["CD"] = "cd"; +- LinkAccountSubtypes["CHECKING"] = "checking"; +- LinkAccountSubtypes["EBT"] = "ebt"; +- LinkAccountSubtypes["HSA"] = "hsa"; +- LinkAccountSubtypes["MONEY_MARKET"] = "money market"; +- LinkAccountSubtypes["PREPAID"] = "prepaid"; +- LinkAccountSubtypes["SAVINGS"] = "savings"; +- LinkAccountSubtypes["FOUR_0_1_A"] = "401a"; +- LinkAccountSubtypes["FOUR_0_1_K"] = "401k"; +- LinkAccountSubtypes["FOUR_0_3_B"] = "403B"; +- LinkAccountSubtypes["FOUR_5_7_B"] = "457b"; +- LinkAccountSubtypes["FIVE_2_9"] = "529"; +- LinkAccountSubtypes["BROKERAGE"] = "brokerage"; +- LinkAccountSubtypes["CASH_ISA"] = "cash isa"; +- LinkAccountSubtypes["EDUCATION_SAVINGS_ACCOUNT"] = "education savings account"; +- LinkAccountSubtypes["FIXED_ANNUNITY"] = "fixed annuity"; +- LinkAccountSubtypes["GIC"] = "gic"; +- LinkAccountSubtypes["HEALTH_REIMBURSEMENT_ARRANGEMENT"] = "health reimbursement arrangement"; +- LinkAccountSubtypes["IRA"] = "ira"; +- LinkAccountSubtypes["ISA"] = "isa"; +- LinkAccountSubtypes["KEOGH"] = "keogh"; +- LinkAccountSubtypes["LIF"] = "lif"; +- LinkAccountSubtypes["LIRA"] = "lira"; +- LinkAccountSubtypes["LRIF"] = "lrif"; +- LinkAccountSubtypes["LRSP"] = "lrsp"; +- LinkAccountSubtypes["MUTUAL_FUND"] = "mutual fund"; +- LinkAccountSubtypes["NON_TAXABLE_BROKERAGE_ACCOUNT"] = "non-taxable brokerage account"; +- LinkAccountSubtypes["PENSION"] = "pension"; +- LinkAccountSubtypes["PLAN"] = "plan"; +- LinkAccountSubtypes["PRIF"] = "prif"; +- LinkAccountSubtypes["PROFIT_SHARING_PLAN"] = "profit sharing plan"; +- LinkAccountSubtypes["RDSP"] = "rdsp"; +- LinkAccountSubtypes["RESP"] = "resp"; +- LinkAccountSubtypes["RETIREMENT"] = "retirement"; +- LinkAccountSubtypes["RLIF"] = "rlif"; +- LinkAccountSubtypes["ROTH_401K"] = "roth 401k"; +- LinkAccountSubtypes["ROTH"] = "roth"; +- LinkAccountSubtypes["RRIF"] = "rrif"; +- LinkAccountSubtypes["RRSP"] = "rrsp"; +- LinkAccountSubtypes["SARSEP"] = "sarsep"; +- LinkAccountSubtypes["SEP_IRA"] = "sep ira"; +- LinkAccountSubtypes["SIMPLE_IRA"] = "simple ira"; +- LinkAccountSubtypes["SIPP"] = "sipp"; +- LinkAccountSubtypes["STOCK_PLAN"] = "stock plan"; +- LinkAccountSubtypes["TFSA"] = "tfsa"; +- LinkAccountSubtypes["THRIFT_SAVINGS_PLAN"] = "thrift savings plan"; +- LinkAccountSubtypes["TRUST"] = "trust"; +- LinkAccountSubtypes["UGMA"] = "ugma"; +- LinkAccountSubtypes["UTMA"] = "utma"; +- LinkAccountSubtypes["VARIABLE_ANNUITY"] = "variable annuity"; ++(function(LinkAccountSubtypes) { ++ LinkAccountSubtypes['ALL'] = 'all'; ++ LinkAccountSubtypes['CREDIT_CARD'] = 'credit card'; ++ LinkAccountSubtypes['PAYPAL'] = 'paypal'; ++ LinkAccountSubtypes['AUTO'] = 'auto'; ++ LinkAccountSubtypes['BUSINESS'] = 'business'; ++ LinkAccountSubtypes['COMMERCIAL'] = 'commercial'; ++ LinkAccountSubtypes['CONSTRUCTION'] = 'construction'; ++ LinkAccountSubtypes['CONSUMER'] = 'consumer'; ++ LinkAccountSubtypes['HOME_EQUITY'] = 'home equity'; ++ LinkAccountSubtypes['LINE_OF_CREDIT'] = 'line of credit'; ++ LinkAccountSubtypes['LOAN'] = 'loan'; ++ LinkAccountSubtypes['MORTGAGE'] = 'mortgage'; ++ LinkAccountSubtypes['OVERDRAFT'] = 'overdraft'; ++ LinkAccountSubtypes['STUDENT'] = 'student'; ++ LinkAccountSubtypes['CASH_MANAGEMENT'] = 'cash management'; ++ LinkAccountSubtypes['CD'] = 'cd'; ++ LinkAccountSubtypes['CHECKING'] = 'checking'; ++ LinkAccountSubtypes['EBT'] = 'ebt'; ++ LinkAccountSubtypes['HSA'] = 'hsa'; ++ LinkAccountSubtypes['MONEY_MARKET'] = 'money market'; ++ LinkAccountSubtypes['PREPAID'] = 'prepaid'; ++ LinkAccountSubtypes['SAVINGS'] = 'savings'; ++ LinkAccountSubtypes['FOUR_0_1_A'] = '401a'; ++ LinkAccountSubtypes['FOUR_0_1_K'] = '401k'; ++ LinkAccountSubtypes['FOUR_0_3_B'] = '403B'; ++ LinkAccountSubtypes['FOUR_5_7_B'] = '457b'; ++ LinkAccountSubtypes['FIVE_2_9'] = '529'; ++ LinkAccountSubtypes['BROKERAGE'] = 'brokerage'; ++ LinkAccountSubtypes['CASH_ISA'] = 'cash isa'; ++ LinkAccountSubtypes['EDUCATION_SAVINGS_ACCOUNT'] = ++ 'education savings account'; ++ LinkAccountSubtypes['FIXED_ANNUNITY'] = 'fixed annuity'; ++ LinkAccountSubtypes['GIC'] = 'gic'; ++ LinkAccountSubtypes['HEALTH_REIMBURSEMENT_ARRANGEMENT'] = ++ 'health reimbursement arrangement'; ++ LinkAccountSubtypes['IRA'] = 'ira'; ++ LinkAccountSubtypes['ISA'] = 'isa'; ++ LinkAccountSubtypes['KEOGH'] = 'keogh'; ++ LinkAccountSubtypes['LIF'] = 'lif'; ++ LinkAccountSubtypes['LIRA'] = 'lira'; ++ LinkAccountSubtypes['LRIF'] = 'lrif'; ++ LinkAccountSubtypes['LRSP'] = 'lrsp'; ++ LinkAccountSubtypes['MUTUAL_FUND'] = 'mutual fund'; ++ LinkAccountSubtypes['NON_TAXABLE_BROKERAGE_ACCOUNT'] = ++ 'non-taxable brokerage account'; ++ LinkAccountSubtypes['PENSION'] = 'pension'; ++ LinkAccountSubtypes['PLAN'] = 'plan'; ++ LinkAccountSubtypes['PRIF'] = 'prif'; ++ LinkAccountSubtypes['PROFIT_SHARING_PLAN'] = 'profit sharing plan'; ++ LinkAccountSubtypes['RDSP'] = 'rdsp'; ++ LinkAccountSubtypes['RESP'] = 'resp'; ++ LinkAccountSubtypes['RETIREMENT'] = 'retirement'; ++ LinkAccountSubtypes['RLIF'] = 'rlif'; ++ LinkAccountSubtypes['ROTH_401K'] = 'roth 401k'; ++ LinkAccountSubtypes['ROTH'] = 'roth'; ++ LinkAccountSubtypes['RRIF'] = 'rrif'; ++ LinkAccountSubtypes['RRSP'] = 'rrsp'; ++ LinkAccountSubtypes['SARSEP'] = 'sarsep'; ++ LinkAccountSubtypes['SEP_IRA'] = 'sep ira'; ++ LinkAccountSubtypes['SIMPLE_IRA'] = 'simple ira'; ++ LinkAccountSubtypes['SIPP'] = 'sipp'; ++ LinkAccountSubtypes['STOCK_PLAN'] = 'stock plan'; ++ LinkAccountSubtypes['TFSA'] = 'tfsa'; ++ LinkAccountSubtypes['THRIFT_SAVINGS_PLAN'] = 'thrift savings plan'; ++ LinkAccountSubtypes['TRUST'] = 'trust'; ++ LinkAccountSubtypes['UGMA'] = 'ugma'; ++ LinkAccountSubtypes['UTMA'] = 'utma'; ++ LinkAccountSubtypes['VARIABLE_ANNUITY'] = 'variable annuity'; + })(LinkAccountSubtypes || (LinkAccountSubtypes = {})); + export class LinkAccountSubtypeCredit { +- constructor(type, subtype) { +- this.type = type; +- this.subtype = subtype; +- } ++ constructor(type, subtype) { ++ this.type = type; ++ this.subtype = subtype; ++ } + } +-LinkAccountSubtypeCredit.ALL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.ALL); +-LinkAccountSubtypeCredit.CREDIT_CARD = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.CREDIT_CARD); +-LinkAccountSubtypeCredit.PAYPAL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.PAYPAL); ++LinkAccountSubtypeCredit.ALL = new LinkAccountSubtypeCredit( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.ALL, ++); ++LinkAccountSubtypeCredit.CREDIT_CARD = new LinkAccountSubtypeCredit( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.CREDIT_CARD, ++); ++LinkAccountSubtypeCredit.PAYPAL = new LinkAccountSubtypeCredit( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.PAYPAL, ++); + export class LinkAccountSubtypeDepository { +- constructor(type, subtype) { +- this.type = type; +- this.subtype = subtype; +- } ++ constructor(type, subtype) { ++ this.type = type; ++ this.subtype = subtype; ++ } + } +-LinkAccountSubtypeDepository.ALL = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.ALL); +-LinkAccountSubtypeDepository.CASH_MANAGEMENT = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.CASH_MANAGEMENT); +-LinkAccountSubtypeDepository.CD = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.CD); +-LinkAccountSubtypeDepository.CHECKING = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.CHECKING); +-LinkAccountSubtypeDepository.EBT = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.EBT); +-LinkAccountSubtypeDepository.HSA = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.HSA); +-LinkAccountSubtypeDepository.MONEY_MARKET = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.MONEY_MARKET); +-LinkAccountSubtypeDepository.PAYPAL = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PAYPAL); +-LinkAccountSubtypeDepository.PREPAID = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PREPAID); +-LinkAccountSubtypeDepository.SAVINGS = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.SAVINGS); ++LinkAccountSubtypeDepository.ALL = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.ALL, ++); ++LinkAccountSubtypeDepository.CASH_MANAGEMENT = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.CASH_MANAGEMENT, ++); ++LinkAccountSubtypeDepository.CD = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.CD, ++); ++LinkAccountSubtypeDepository.CHECKING = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.CHECKING, ++); ++LinkAccountSubtypeDepository.EBT = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.EBT, ++); ++LinkAccountSubtypeDepository.HSA = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.HSA, ++); ++LinkAccountSubtypeDepository.MONEY_MARKET = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.MONEY_MARKET, ++); ++LinkAccountSubtypeDepository.PAYPAL = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.PAYPAL, ++); ++LinkAccountSubtypeDepository.PREPAID = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.PREPAID, ++); ++LinkAccountSubtypeDepository.SAVINGS = new LinkAccountSubtypeDepository( ++ LinkAccountType.DEPOSITORY, ++ LinkAccountSubtypes.SAVINGS, ++); + export class LinkAccountSubtypeInvestment { +- constructor(type, subtype) { +- this.type = type; +- this.subtype = subtype; +- } ++ constructor(type, subtype) { ++ this.type = type; ++ this.subtype = subtype; ++ } + } +-LinkAccountSubtypeInvestment.ALL = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ALL); +-LinkAccountSubtypeInvestment.BROKERAGE = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.BROKERAGE); +-LinkAccountSubtypeInvestment.CASH_ISA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.CASH_ISA); +-LinkAccountSubtypeInvestment.EDUCATION_SAVINGS_ACCOUNT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.EDUCATION_SAVINGS_ACCOUNT); +-LinkAccountSubtypeInvestment.FIXED_ANNUNITY = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FIXED_ANNUNITY); +-LinkAccountSubtypeInvestment.GIC = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.GIC); +-LinkAccountSubtypeInvestment.HEALTH_REIMBURSEMENT_ARRANGEMENT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.HEALTH_REIMBURSEMENT_ARRANGEMENT); +-LinkAccountSubtypeInvestment.HSA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.HSA); +-LinkAccountSubtypeInvestment.INVESTMENT_401A = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_0_1_A); +-LinkAccountSubtypeInvestment.INVESTMENT_401K = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_0_1_K); +-LinkAccountSubtypeInvestment.INVESTMENT_403B = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_0_3_B); +-LinkAccountSubtypeInvestment.INVESTMENT_457B = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_5_7_B); +-LinkAccountSubtypeInvestment.INVESTMENT_529 = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FIVE_2_9); +-LinkAccountSubtypeInvestment.IRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.IRA); +-LinkAccountSubtypeInvestment.ISA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ISA); +-LinkAccountSubtypeInvestment.KEOGH = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.KEOGH); +-LinkAccountSubtypeInvestment.LIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LIF); +-LinkAccountSubtypeInvestment.LIRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LIRA); +-LinkAccountSubtypeInvestment.LRIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LRIF); +-LinkAccountSubtypeInvestment.LRSP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LRSP); +-LinkAccountSubtypeInvestment.MUTUAL_FUND = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.MUTUAL_FUND); +-LinkAccountSubtypeInvestment.NON_TAXABLE_BROKERAGE_ACCOUNT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.NON_TAXABLE_BROKERAGE_ACCOUNT); +-LinkAccountSubtypeInvestment.PENSION = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PENSION); +-LinkAccountSubtypeInvestment.PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PLAN); +-LinkAccountSubtypeInvestment.PRIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PRIF); +-LinkAccountSubtypeInvestment.PROFIT_SHARING_PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PROFIT_SHARING_PLAN); +-LinkAccountSubtypeInvestment.RDSP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RDSP); +-LinkAccountSubtypeInvestment.RESP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RESP); +-LinkAccountSubtypeInvestment.RETIREMENT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RETIREMENT); +-LinkAccountSubtypeInvestment.RLIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RLIF); +-LinkAccountSubtypeInvestment.ROTH = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ROTH); +-LinkAccountSubtypeInvestment.ROTH_401K = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ROTH_401K); +-LinkAccountSubtypeInvestment.RRIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RRIF); +-LinkAccountSubtypeInvestment.RRSP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RRSP); +-LinkAccountSubtypeInvestment.SARSEP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SARSEP); +-LinkAccountSubtypeInvestment.SEP_IRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SEP_IRA); +-LinkAccountSubtypeInvestment.SIMPLE_IRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SIMPLE_IRA); +-LinkAccountSubtypeInvestment.SIIP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SIPP); +-LinkAccountSubtypeInvestment.STOCK_PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.STOCK_PLAN); +-LinkAccountSubtypeInvestment.TFSA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.TFSA); +-LinkAccountSubtypeInvestment.THRIFT_SAVINGS_PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.THRIFT_SAVINGS_PLAN); +-LinkAccountSubtypeInvestment.TRUST = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.TRUST); +-LinkAccountSubtypeInvestment.UGMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UGMA); +-LinkAccountSubtypeInvestment.UTMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UTMA); +-LinkAccountSubtypeInvestment.VARIABLE_ANNUITY = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.VARIABLE_ANNUITY); ++LinkAccountSubtypeInvestment.ALL = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.ALL, ++); ++LinkAccountSubtypeInvestment.BROKERAGE = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.BROKERAGE, ++); ++LinkAccountSubtypeInvestment.CASH_ISA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.CASH_ISA, ++); ++LinkAccountSubtypeInvestment.EDUCATION_SAVINGS_ACCOUNT = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.EDUCATION_SAVINGS_ACCOUNT, ++); ++LinkAccountSubtypeInvestment.FIXED_ANNUNITY = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.FIXED_ANNUNITY, ++); ++LinkAccountSubtypeInvestment.GIC = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.GIC, ++); ++LinkAccountSubtypeInvestment.HEALTH_REIMBURSEMENT_ARRANGEMENT = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.HEALTH_REIMBURSEMENT_ARRANGEMENT, ++); ++LinkAccountSubtypeInvestment.HSA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.HSA, ++); ++LinkAccountSubtypeInvestment.INVESTMENT_401A = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.FOUR_0_1_A, ++); ++LinkAccountSubtypeInvestment.INVESTMENT_401K = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.FOUR_0_1_K, ++); ++LinkAccountSubtypeInvestment.INVESTMENT_403B = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.FOUR_0_3_B, ++); ++LinkAccountSubtypeInvestment.INVESTMENT_457B = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.FOUR_5_7_B, ++); ++LinkAccountSubtypeInvestment.INVESTMENT_529 = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.FIVE_2_9, ++); ++LinkAccountSubtypeInvestment.IRA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.IRA, ++); ++LinkAccountSubtypeInvestment.ISA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.ISA, ++); ++LinkAccountSubtypeInvestment.KEOGH = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.KEOGH, ++); ++LinkAccountSubtypeInvestment.LIF = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.LIF, ++); ++LinkAccountSubtypeInvestment.LIRA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.LIRA, ++); ++LinkAccountSubtypeInvestment.LRIF = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.LRIF, ++); ++LinkAccountSubtypeInvestment.LRSP = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.LRSP, ++); ++LinkAccountSubtypeInvestment.MUTUAL_FUND = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.MUTUAL_FUND, ++); ++LinkAccountSubtypeInvestment.NON_TAXABLE_BROKERAGE_ACCOUNT = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.NON_TAXABLE_BROKERAGE_ACCOUNT, ++); ++LinkAccountSubtypeInvestment.PENSION = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.PENSION, ++); ++LinkAccountSubtypeInvestment.PLAN = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.PLAN, ++); ++LinkAccountSubtypeInvestment.PRIF = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.PRIF, ++); ++LinkAccountSubtypeInvestment.PROFIT_SHARING_PLAN = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.PROFIT_SHARING_PLAN, ++); ++LinkAccountSubtypeInvestment.RDSP = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.RDSP, ++); ++LinkAccountSubtypeInvestment.RESP = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.RESP, ++); ++LinkAccountSubtypeInvestment.RETIREMENT = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.RETIREMENT, ++); ++LinkAccountSubtypeInvestment.RLIF = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.RLIF, ++); ++LinkAccountSubtypeInvestment.ROTH = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.ROTH, ++); ++LinkAccountSubtypeInvestment.ROTH_401K = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.ROTH_401K, ++); ++LinkAccountSubtypeInvestment.RRIF = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.RRIF, ++); ++LinkAccountSubtypeInvestment.RRSP = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.RRSP, ++); ++LinkAccountSubtypeInvestment.SARSEP = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.SARSEP, ++); ++LinkAccountSubtypeInvestment.SEP_IRA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.SEP_IRA, ++); ++LinkAccountSubtypeInvestment.SIMPLE_IRA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.SIMPLE_IRA, ++); ++LinkAccountSubtypeInvestment.SIIP = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.SIPP, ++); ++LinkAccountSubtypeInvestment.STOCK_PLAN = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.STOCK_PLAN, ++); ++LinkAccountSubtypeInvestment.TFSA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.TFSA, ++); ++LinkAccountSubtypeInvestment.THRIFT_SAVINGS_PLAN = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.THRIFT_SAVINGS_PLAN, ++); ++LinkAccountSubtypeInvestment.TRUST = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.TRUST, ++); ++LinkAccountSubtypeInvestment.UGMA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.UGMA, ++); ++LinkAccountSubtypeInvestment.UTMA = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.UTMA, ++); ++LinkAccountSubtypeInvestment.VARIABLE_ANNUITY = new LinkAccountSubtypeInvestment( ++ LinkAccountType.INVESTMENT, ++ LinkAccountSubtypes.VARIABLE_ANNUITY, ++); + export class LinkAccountSubtypeLoan { +- constructor(type, subtype) { +- this.type = type; +- this.subtype = subtype; +- } ++ constructor(type, subtype) { ++ this.type = type; ++ this.subtype = subtype; ++ } + } +-LinkAccountSubtypeLoan.ALL = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.ALL); +-LinkAccountSubtypeLoan.AUTO = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.AUTO); +-LinkAccountSubtypeLoan.BUSINESS = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.BUSINESS); +-LinkAccountSubtypeLoan.COMMERCIAL = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.COMMERCIAL); +-LinkAccountSubtypeLoan.CONSTRUCTION = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.CONSTRUCTION); +-LinkAccountSubtypeLoan.CONSUMER = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.CONSUMER); +-LinkAccountSubtypeLoan.HOME_EQUITY = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.HOME_EQUITY); +-LinkAccountSubtypeLoan.LINE_OF_CREDIT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.LINE_OF_CREDIT); +-LinkAccountSubtypeLoan.LOAN = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.LOAN); +-LinkAccountSubtypeLoan.MORTGAGE = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.MORTGAGE); +-LinkAccountSubtypeLoan.OVERDRAFT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.OVERDRAFT); +-LinkAccountSubtypeLoan.STUDENT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.STUDENT); ++LinkAccountSubtypeLoan.ALL = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.ALL, ++); ++LinkAccountSubtypeLoan.AUTO = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.AUTO, ++); ++LinkAccountSubtypeLoan.BUSINESS = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.BUSINESS, ++); ++LinkAccountSubtypeLoan.COMMERCIAL = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.COMMERCIAL, ++); ++LinkAccountSubtypeLoan.CONSTRUCTION = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.CONSTRUCTION, ++); ++LinkAccountSubtypeLoan.CONSUMER = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.CONSUMER, ++); ++LinkAccountSubtypeLoan.HOME_EQUITY = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.HOME_EQUITY, ++); ++LinkAccountSubtypeLoan.LINE_OF_CREDIT = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.LINE_OF_CREDIT, ++); ++LinkAccountSubtypeLoan.LOAN = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.LOAN, ++); ++LinkAccountSubtypeLoan.MORTGAGE = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.MORTGAGE, ++); ++LinkAccountSubtypeLoan.OVERDRAFT = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.OVERDRAFT, ++); ++LinkAccountSubtypeLoan.STUDENT = new LinkAccountSubtypeLoan( ++ LinkAccountType.CREDIT, ++ LinkAccountSubtypes.STUDENT, ++); + export class LinkAccountSubtypeUnknown { +- constructor(type, subtype) { +- this.type = type; +- this.subtype = subtype; +- } ++ constructor(type, subtype) { ++ this.type = type; ++ this.subtype = subtype; ++ } + } + export var LinkAccountVerificationStatus; +-(function (LinkAccountVerificationStatus) { +- LinkAccountVerificationStatus["PENDING_AUTOMATIC_VERIFICATION"] = "pending_automatic_verification"; +- LinkAccountVerificationStatus["PENDING_MANUAL_VERIFICATION"] = "pending_manual_verification"; +- LinkAccountVerificationStatus["MANUALLY_VERIFIED"] = "manually_verified"; ++(function(LinkAccountVerificationStatus) { ++ LinkAccountVerificationStatus['PENDING_AUTOMATIC_VERIFICATION'] = ++ 'pending_automatic_verification'; ++ LinkAccountVerificationStatus['PENDING_MANUAL_VERIFICATION'] = ++ 'pending_manual_verification'; ++ LinkAccountVerificationStatus['MANUALLY_VERIFIED'] = 'manually_verified'; + })(LinkAccountVerificationStatus || (LinkAccountVerificationStatus = {})); + export var LinkExitMetadataStatus; +-(function (LinkExitMetadataStatus) { +- LinkExitMetadataStatus["CONNECTED"] = "connected"; +- LinkExitMetadataStatus["CHOOSE_DEVICE"] = "choose_device"; +- LinkExitMetadataStatus["REQUIRES_ACCOUNT_SELECTION"] = "requires_account_selection"; +- LinkExitMetadataStatus["REQUIRES_CODE"] = "requires_code"; +- LinkExitMetadataStatus["REQUIRES_CREDENTIALS"] = "requires_credentials"; +- LinkExitMetadataStatus["REQUIRES_EXTERNAL_ACTION"] = "requires_external_action"; +- LinkExitMetadataStatus["REQUIRES_OAUTH"] = "requires_oauth"; +- LinkExitMetadataStatus["REQUIRES_QUESTIONS"] = "requires_questions"; +- LinkExitMetadataStatus["REQUIRES_RECAPTCHA"] = "requires_recaptcha"; +- LinkExitMetadataStatus["REQUIRES_SELECTIONS"] = "requires_selections"; +- LinkExitMetadataStatus["REQUIRES_DEPOSIT_SWITCH_ALLOCATION_CONFIGURATION"] = "requires_deposit_switch_allocation_configuration"; +- LinkExitMetadataStatus["REQUIRES_DEPOSIT_SWITCH_ALLOCATION_SELECTION"] = "requires_deposit_switch_allocation_selection"; ++(function(LinkExitMetadataStatus) { ++ LinkExitMetadataStatus['CONNECTED'] = 'connected'; ++ LinkExitMetadataStatus['CHOOSE_DEVICE'] = 'choose_device'; ++ LinkExitMetadataStatus['REQUIRES_ACCOUNT_SELECTION'] = ++ 'requires_account_selection'; ++ LinkExitMetadataStatus['REQUIRES_CODE'] = 'requires_code'; ++ LinkExitMetadataStatus['REQUIRES_CREDENTIALS'] = 'requires_credentials'; ++ LinkExitMetadataStatus['REQUIRES_EXTERNAL_ACTION'] = ++ 'requires_external_action'; ++ LinkExitMetadataStatus['REQUIRES_OAUTH'] = 'requires_oauth'; ++ LinkExitMetadataStatus['REQUIRES_QUESTIONS'] = 'requires_questions'; ++ LinkExitMetadataStatus['REQUIRES_RECAPTCHA'] = 'requires_recaptcha'; ++ LinkExitMetadataStatus['REQUIRES_SELECTIONS'] = 'requires_selections'; ++ LinkExitMetadataStatus['REQUIRES_DEPOSIT_SWITCH_ALLOCATION_CONFIGURATION'] = ++ 'requires_deposit_switch_allocation_configuration'; ++ LinkExitMetadataStatus['REQUIRES_DEPOSIT_SWITCH_ALLOCATION_SELECTION'] = ++ 'requires_deposit_switch_allocation_selection'; + })(LinkExitMetadataStatus || (LinkExitMetadataStatus = {})); + export var LinkErrorCode; +-(function (LinkErrorCode) { +- // ITEM_ERROR +- LinkErrorCode["INVALID_CREDENTIALS"] = "INVALID_CREDENTIALS"; +- LinkErrorCode["INVALID_MFA"] = "INVALID_MFA"; +- LinkErrorCode["ITEM_LOGIN_REQUIRED"] = "ITEM_LOGIN_REQUIRED"; +- LinkErrorCode["INSUFFICIENT_CREDENTIALS"] = "INSUFFICIENT_CREDENTIALS"; +- LinkErrorCode["ITEM_LOCKED"] = "ITEM_LOCKED"; +- LinkErrorCode["USER_SETUP_REQUIRED"] = "USER_SETUP_REQUIRED"; +- LinkErrorCode["MFA_NOT_SUPPORTED"] = "MFA_NOT_SUPPORTED"; +- LinkErrorCode["INVALID_SEND_METHOD"] = "INVALID_SEND_METHOD"; +- LinkErrorCode["NO_ACCOUNTS"] = "NO_ACCOUNTS"; +- LinkErrorCode["ITEM_NOT_SUPPORTED"] = "ITEM_NOT_SUPPORTED"; +- LinkErrorCode["TOO_MANY_VERIFICATION_ATTEMPTS"] = "TOO_MANY_VERIFICATION_ATTEMPTS"; +- LinkErrorCode["INVALD_UPDATED_USERNAME"] = "INVALD_UPDATED_USERNAME"; +- LinkErrorCode["INVALID_UPDATED_USERNAME"] = "INVALID_UPDATED_USERNAME"; +- LinkErrorCode["ITEM_NO_ERROR"] = "ITEM_NO_ERROR"; +- LinkErrorCode["item_no_error"] = "item-no-error"; +- LinkErrorCode["NO_AUTH_ACCOUNTS"] = "NO_AUTH_ACCOUNTS"; +- LinkErrorCode["NO_INVESTMENT_ACCOUNTS"] = "NO_INVESTMENT_ACCOUNTS"; +- LinkErrorCode["NO_INVESTMENT_AUTH_ACCOUNTS"] = "NO_INVESTMENT_AUTH_ACCOUNTS"; +- LinkErrorCode["NO_LIABILITY_ACCOUNTS"] = "NO_LIABILITY_ACCOUNTS"; +- LinkErrorCode["PRODUCTS_NOT_SUPPORTED"] = "PRODUCTS_NOT_SUPPORTED"; +- LinkErrorCode["ITEM_NOT_FOUND"] = "ITEM_NOT_FOUND"; +- LinkErrorCode["ITEM_PRODUCT_NOT_READY"] = "ITEM_PRODUCT_NOT_READY"; +- // INSTITUTION_ERROR +- LinkErrorCode["INSTITUTION_DOWN"] = "INSTITUTION_DOWN"; +- LinkErrorCode["INSTITUTION_NOT_RESPONDING"] = "INSTITUTION_NOT_RESPONDING"; +- LinkErrorCode["INSTITUTION_NOT_AVAILABLE"] = "INSTITUTION_NOT_AVAILABLE"; +- LinkErrorCode["INSTITUTION_NO_LONGER_SUPPORTED"] = "INSTITUTION_NO_LONGER_SUPPORTED"; +- // API_ERROR +- LinkErrorCode["INTERNAL_SERVER_ERROR"] = "INTERNAL_SERVER_ERROR"; +- LinkErrorCode["PLANNED_MAINTENANCE"] = "PLANNED_MAINTENANCE"; +- // ASSET_REPORT_ERROR +- LinkErrorCode["PRODUCT_NOT_ENABLED"] = "PRODUCT_NOT_ENABLED"; +- LinkErrorCode["DATA_UNAVAILABLE"] = "DATA_UNAVAILABLE"; +- LinkErrorCode["ASSET_PRODUCT_NOT_READY"] = "ASSET_PRODUCT_NOT_READY"; +- LinkErrorCode["ASSET_REPORT_GENERATION_FAILED"] = "ASSET_REPORT_GENERATION_FAILED"; +- LinkErrorCode["INVALID_PARENT"] = "INVALID_PARENT"; +- LinkErrorCode["INSIGHTS_NOT_ENABLED"] = "INSIGHTS_NOT_ENABLED"; +- LinkErrorCode["INSIGHTS_PREVIOUSLY_NOT_ENABLED"] = "INSIGHTS_PREVIOUSLY_NOT_ENABLED"; +- // BANK_TRANSFER_ERROR +- LinkErrorCode["BANK_TRANSFER_LIMIT_EXCEEDED"] = "BANK_TRANSFER_LIMIT_EXCEEDED"; +- LinkErrorCode["BANK_TRANSFER_MISSING_ORIGINATION_ACCOUNT"] = "BANK_TRANSFER_MISSING_ORIGINATION_ACCOUNT"; +- LinkErrorCode["BANK_TRANSFER_INVALID_ORIGINATION_ACCOUNT"] = "BANK_TRANSFER_INVALID_ORIGINATION_ACCOUNT"; +- LinkErrorCode["BANK_TRANSFER_ACCOUNT_BLOCKED"] = "BANK_TRANSFER_ACCOUNT_BLOCKED"; +- LinkErrorCode["BANK_TRANSFER_INSUFFICIENT_FUNDS"] = "BANK_TRANSFER_INSUFFICIENT_FUNDS"; +- LinkErrorCode["BANK_TRANSFER_NOT_CANCELLABLE"] = "BANK_TRANSFER_NOT_CANCELLABLE"; +- LinkErrorCode["BANK_TRANSFER_UNSUPPORTED_ACCOUNT_TYPE"] = "BANK_TRANSFER_UNSUPPORTED_ACCOUNT_TYPE"; +- LinkErrorCode["BANK_TRANSFER_UNSUPPORTED_ENVIRONMENT"] = "BANK_TRANSFER_UNSUPPORTED_ENVIRONMENT"; +- // SANDBOX_ERROR +- LinkErrorCode["SANDBOX_PRODUCT_NOT_ENABLED"] = "SANDBOX_PRODUCT_NOT_ENABLED"; +- LinkErrorCode["SANDBOX_WEBHOOK_INVALID"] = "SANDBOX_WEBHOOK_INVALID"; +- LinkErrorCode["SANDBOX_BANK_TRANSFER_EVENT_TRANSITION_INVALID"] = "SANDBOX_BANK_TRANSFER_EVENT_TRANSITION_INVALID"; +- // INVALID_REQUEST +- LinkErrorCode["MISSING_FIELDS"] = "MISSING_FIELDS"; +- LinkErrorCode["UNKNOWN_FIELDS"] = "UNKNOWN_FIELDS"; +- LinkErrorCode["INVALID_FIELD"] = "INVALID_FIELD"; +- LinkErrorCode["INCOMPATIBLE_API_VERSION"] = "INCOMPATIBLE_API_VERSION"; +- LinkErrorCode["INVALID_BODY"] = "INVALID_BODY"; +- LinkErrorCode["INVALID_HEADERS"] = "INVALID_HEADERS"; +- LinkErrorCode["NOT_FOUND"] = "NOT_FOUND"; +- LinkErrorCode["NO_LONGER_AVAILABLE"] = "NO_LONGER_AVAILABLE"; +- LinkErrorCode["SANDBOX_ONLY"] = "SANDBOX_ONLY"; +- LinkErrorCode["INVALID_ACCOUNT_NUMBER"] = "INVALID_ACCOUNT_NUMBER"; +- // INVALID_INPUT +- // From above ITEM_LOGIN_REQUIRED = "INVALID_CREDENTIALS", +- LinkErrorCode["INCORRECT_DEPOSIT_AMOUNTS"] = "INCORRECT_DEPOSIT_AMOUNTS"; +- LinkErrorCode["UNAUTHORIZED_ENVIRONMENT"] = "UNAUTHORIZED_ENVIRONMENT"; +- LinkErrorCode["INVALID_PRODUCT"] = "INVALID_PRODUCT"; +- LinkErrorCode["UNAUTHORIZED_ROUTE_ACCESS"] = "UNAUTHORIZED_ROUTE_ACCESS"; +- LinkErrorCode["DIRECT_INTEGRATION_NOT_ENABLED"] = "DIRECT_INTEGRATION_NOT_ENABLED"; +- LinkErrorCode["INVALID_API_KEYS"] = "INVALID_API_KEYS"; +- LinkErrorCode["INVALID_ACCESS_TOKEN"] = "INVALID_ACCESS_TOKEN"; +- LinkErrorCode["INVALID_PUBLIC_TOKEN"] = "INVALID_PUBLIC_TOKEN"; +- LinkErrorCode["INVALID_LINK_TOKEN"] = "INVALID_LINK_TOKEN"; +- LinkErrorCode["INVALID_PROCESSOR_TOKEN"] = "INVALID_PROCESSOR_TOKEN"; +- LinkErrorCode["INVALID_AUDIT_COPY_TOKEN"] = "INVALID_AUDIT_COPY_TOKEN"; +- LinkErrorCode["INVALID_ACCOUNT_ID"] = "INVALID_ACCOUNT_ID"; +- LinkErrorCode["MICRODEPOSITS_ALREADY_VERIFIED"] = "MICRODEPOSITS_ALREADY_VERIFIED"; +- // INVALID_RESULT +- LinkErrorCode["PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA"] = "PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA"; +- // RATE_LIMIT_EXCEEDED +- LinkErrorCode["ACCOUNTS_LIMIT"] = "ACCOUNTS_LIMIT"; +- LinkErrorCode["ADDITION_LIMIT"] = "ADDITION_LIMIT"; +- LinkErrorCode["AUTH_LIMIT"] = "AUTH_LIMIT"; +- LinkErrorCode["BALANCE_LIMIT"] = "BALANCE_LIMIT"; +- LinkErrorCode["IDENTITY_LIMIT"] = "IDENTITY_LIMIT"; +- LinkErrorCode["ITEM_GET_LIMIT"] = "ITEM_GET_LIMIT"; +- LinkErrorCode["RATE_LIMIT"] = "RATE_LIMIT"; +- LinkErrorCode["TRANSACTIONS_LIMIT"] = "TRANSACTIONS_LIMIT"; +- // RECAPTCHA_ERROR +- LinkErrorCode["RECAPTCHA_REQUIRED"] = "RECAPTCHA_REQUIRED"; +- LinkErrorCode["RECAPTCHA_BAD"] = "RECAPTCHA_BAD"; +- // OAUTH_ERROR +- LinkErrorCode["INCORRECT_OAUTH_NONCE"] = "INCORRECT_OAUTH_NONCE"; +- LinkErrorCode["OAUTH_STATE_ID_ALREADY_PROCESSED"] = "OAUTH_STATE_ID_ALREADY_PROCESSED"; ++(function(LinkErrorCode) { ++ // ITEM_ERROR ++ LinkErrorCode['INVALID_CREDENTIALS'] = 'INVALID_CREDENTIALS'; ++ LinkErrorCode['INVALID_MFA'] = 'INVALID_MFA'; ++ LinkErrorCode['ITEM_LOGIN_REQUIRED'] = 'ITEM_LOGIN_REQUIRED'; ++ LinkErrorCode['INSUFFICIENT_CREDENTIALS'] = 'INSUFFICIENT_CREDENTIALS'; ++ LinkErrorCode['ITEM_LOCKED'] = 'ITEM_LOCKED'; ++ LinkErrorCode['USER_SETUP_REQUIRED'] = 'USER_SETUP_REQUIRED'; ++ LinkErrorCode['MFA_NOT_SUPPORTED'] = 'MFA_NOT_SUPPORTED'; ++ LinkErrorCode['INVALID_SEND_METHOD'] = 'INVALID_SEND_METHOD'; ++ LinkErrorCode['NO_ACCOUNTS'] = 'NO_ACCOUNTS'; ++ LinkErrorCode['ITEM_NOT_SUPPORTED'] = 'ITEM_NOT_SUPPORTED'; ++ LinkErrorCode['TOO_MANY_VERIFICATION_ATTEMPTS'] = ++ 'TOO_MANY_VERIFICATION_ATTEMPTS'; ++ LinkErrorCode['INVALD_UPDATED_USERNAME'] = 'INVALD_UPDATED_USERNAME'; ++ LinkErrorCode['INVALID_UPDATED_USERNAME'] = 'INVALID_UPDATED_USERNAME'; ++ LinkErrorCode['ITEM_NO_ERROR'] = 'ITEM_NO_ERROR'; ++ LinkErrorCode['item_no_error'] = 'item-no-error'; ++ LinkErrorCode['NO_AUTH_ACCOUNTS'] = 'NO_AUTH_ACCOUNTS'; ++ LinkErrorCode['NO_INVESTMENT_ACCOUNTS'] = 'NO_INVESTMENT_ACCOUNTS'; ++ LinkErrorCode['NO_INVESTMENT_AUTH_ACCOUNTS'] = 'NO_INVESTMENT_AUTH_ACCOUNTS'; ++ LinkErrorCode['NO_LIABILITY_ACCOUNTS'] = 'NO_LIABILITY_ACCOUNTS'; ++ LinkErrorCode['PRODUCTS_NOT_SUPPORTED'] = 'PRODUCTS_NOT_SUPPORTED'; ++ LinkErrorCode['ITEM_NOT_FOUND'] = 'ITEM_NOT_FOUND'; ++ LinkErrorCode['ITEM_PRODUCT_NOT_READY'] = 'ITEM_PRODUCT_NOT_READY'; ++ // INSTITUTION_ERROR ++ LinkErrorCode['INSTITUTION_DOWN'] = 'INSTITUTION_DOWN'; ++ LinkErrorCode['INSTITUTION_NOT_RESPONDING'] = 'INSTITUTION_NOT_RESPONDING'; ++ LinkErrorCode['INSTITUTION_NOT_AVAILABLE'] = 'INSTITUTION_NOT_AVAILABLE'; ++ LinkErrorCode['INSTITUTION_NO_LONGER_SUPPORTED'] = ++ 'INSTITUTION_NO_LONGER_SUPPORTED'; ++ // API_ERROR ++ LinkErrorCode['INTERNAL_SERVER_ERROR'] = 'INTERNAL_SERVER_ERROR'; ++ LinkErrorCode['PLANNED_MAINTENANCE'] = 'PLANNED_MAINTENANCE'; ++ // ASSET_REPORT_ERROR ++ LinkErrorCode['PRODUCT_NOT_ENABLED'] = 'PRODUCT_NOT_ENABLED'; ++ LinkErrorCode['DATA_UNAVAILABLE'] = 'DATA_UNAVAILABLE'; ++ LinkErrorCode['ASSET_PRODUCT_NOT_READY'] = 'ASSET_PRODUCT_NOT_READY'; ++ LinkErrorCode['ASSET_REPORT_GENERATION_FAILED'] = ++ 'ASSET_REPORT_GENERATION_FAILED'; ++ LinkErrorCode['INVALID_PARENT'] = 'INVALID_PARENT'; ++ LinkErrorCode['INSIGHTS_NOT_ENABLED'] = 'INSIGHTS_NOT_ENABLED'; ++ LinkErrorCode['INSIGHTS_PREVIOUSLY_NOT_ENABLED'] = ++ 'INSIGHTS_PREVIOUSLY_NOT_ENABLED'; ++ // BANK_TRANSFER_ERROR ++ LinkErrorCode['BANK_TRANSFER_LIMIT_EXCEEDED'] = ++ 'BANK_TRANSFER_LIMIT_EXCEEDED'; ++ LinkErrorCode['BANK_TRANSFER_MISSING_ORIGINATION_ACCOUNT'] = ++ 'BANK_TRANSFER_MISSING_ORIGINATION_ACCOUNT'; ++ LinkErrorCode['BANK_TRANSFER_INVALID_ORIGINATION_ACCOUNT'] = ++ 'BANK_TRANSFER_INVALID_ORIGINATION_ACCOUNT'; ++ LinkErrorCode['BANK_TRANSFER_ACCOUNT_BLOCKED'] = ++ 'BANK_TRANSFER_ACCOUNT_BLOCKED'; ++ LinkErrorCode['BANK_TRANSFER_INSUFFICIENT_FUNDS'] = ++ 'BANK_TRANSFER_INSUFFICIENT_FUNDS'; ++ LinkErrorCode['BANK_TRANSFER_NOT_CANCELLABLE'] = ++ 'BANK_TRANSFER_NOT_CANCELLABLE'; ++ LinkErrorCode['BANK_TRANSFER_UNSUPPORTED_ACCOUNT_TYPE'] = ++ 'BANK_TRANSFER_UNSUPPORTED_ACCOUNT_TYPE'; ++ LinkErrorCode['BANK_TRANSFER_UNSUPPORTED_ENVIRONMENT'] = ++ 'BANK_TRANSFER_UNSUPPORTED_ENVIRONMENT'; ++ // SANDBOX_ERROR ++ LinkErrorCode['SANDBOX_PRODUCT_NOT_ENABLED'] = 'SANDBOX_PRODUCT_NOT_ENABLED'; ++ LinkErrorCode['SANDBOX_WEBHOOK_INVALID'] = 'SANDBOX_WEBHOOK_INVALID'; ++ LinkErrorCode['SANDBOX_BANK_TRANSFER_EVENT_TRANSITION_INVALID'] = ++ 'SANDBOX_BANK_TRANSFER_EVENT_TRANSITION_INVALID'; ++ // INVALID_REQUEST ++ LinkErrorCode['MISSING_FIELDS'] = 'MISSING_FIELDS'; ++ LinkErrorCode['UNKNOWN_FIELDS'] = 'UNKNOWN_FIELDS'; ++ LinkErrorCode['INVALID_FIELD'] = 'INVALID_FIELD'; ++ LinkErrorCode['INCOMPATIBLE_API_VERSION'] = 'INCOMPATIBLE_API_VERSION'; ++ LinkErrorCode['INVALID_BODY'] = 'INVALID_BODY'; ++ LinkErrorCode['INVALID_HEADERS'] = 'INVALID_HEADERS'; ++ LinkErrorCode['NOT_FOUND'] = 'NOT_FOUND'; ++ LinkErrorCode['NO_LONGER_AVAILABLE'] = 'NO_LONGER_AVAILABLE'; ++ LinkErrorCode['SANDBOX_ONLY'] = 'SANDBOX_ONLY'; ++ LinkErrorCode['INVALID_ACCOUNT_NUMBER'] = 'INVALID_ACCOUNT_NUMBER'; ++ // INVALID_INPUT ++ // From above ITEM_LOGIN_REQUIRED = "INVALID_CREDENTIALS", ++ LinkErrorCode['INCORRECT_DEPOSIT_AMOUNTS'] = 'INCORRECT_DEPOSIT_AMOUNTS'; ++ LinkErrorCode['UNAUTHORIZED_ENVIRONMENT'] = 'UNAUTHORIZED_ENVIRONMENT'; ++ LinkErrorCode['INVALID_PRODUCT'] = 'INVALID_PRODUCT'; ++ LinkErrorCode['UNAUTHORIZED_ROUTE_ACCESS'] = 'UNAUTHORIZED_ROUTE_ACCESS'; ++ LinkErrorCode['DIRECT_INTEGRATION_NOT_ENABLED'] = ++ 'DIRECT_INTEGRATION_NOT_ENABLED'; ++ LinkErrorCode['INVALID_API_KEYS'] = 'INVALID_API_KEYS'; ++ LinkErrorCode['INVALID_ACCESS_TOKEN'] = 'INVALID_ACCESS_TOKEN'; ++ LinkErrorCode['INVALID_PUBLIC_TOKEN'] = 'INVALID_PUBLIC_TOKEN'; ++ LinkErrorCode['INVALID_LINK_TOKEN'] = 'INVALID_LINK_TOKEN'; ++ LinkErrorCode['INVALID_PROCESSOR_TOKEN'] = 'INVALID_PROCESSOR_TOKEN'; ++ LinkErrorCode['INVALID_AUDIT_COPY_TOKEN'] = 'INVALID_AUDIT_COPY_TOKEN'; ++ LinkErrorCode['INVALID_ACCOUNT_ID'] = 'INVALID_ACCOUNT_ID'; ++ LinkErrorCode['MICRODEPOSITS_ALREADY_VERIFIED'] = ++ 'MICRODEPOSITS_ALREADY_VERIFIED'; ++ // INVALID_RESULT ++ LinkErrorCode['PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA'] = ++ 'PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA'; ++ // RATE_LIMIT_EXCEEDED ++ LinkErrorCode['ACCOUNTS_LIMIT'] = 'ACCOUNTS_LIMIT'; ++ LinkErrorCode['ADDITION_LIMIT'] = 'ADDITION_LIMIT'; ++ LinkErrorCode['AUTH_LIMIT'] = 'AUTH_LIMIT'; ++ LinkErrorCode['BALANCE_LIMIT'] = 'BALANCE_LIMIT'; ++ LinkErrorCode['IDENTITY_LIMIT'] = 'IDENTITY_LIMIT'; ++ LinkErrorCode['ITEM_GET_LIMIT'] = 'ITEM_GET_LIMIT'; ++ LinkErrorCode['RATE_LIMIT'] = 'RATE_LIMIT'; ++ LinkErrorCode['TRANSACTIONS_LIMIT'] = 'TRANSACTIONS_LIMIT'; ++ // RECAPTCHA_ERROR ++ LinkErrorCode['RECAPTCHA_REQUIRED'] = 'RECAPTCHA_REQUIRED'; ++ LinkErrorCode['RECAPTCHA_BAD'] = 'RECAPTCHA_BAD'; ++ // OAUTH_ERROR ++ LinkErrorCode['INCORRECT_OAUTH_NONCE'] = 'INCORRECT_OAUTH_NONCE'; ++ LinkErrorCode['OAUTH_STATE_ID_ALREADY_PROCESSED'] = ++ 'OAUTH_STATE_ID_ALREADY_PROCESSED'; + })(LinkErrorCode || (LinkErrorCode = {})); + export var LinkErrorType; +-(function (LinkErrorType) { +- LinkErrorType["BANK_TRANSFER"] = "BANK_TRANSFER_ERROR"; +- LinkErrorType["INVALID_REQUEST"] = "INVALID_REQUEST"; +- LinkErrorType["INVALID_RESULT"] = "INVALID_RESULT"; +- LinkErrorType["INVALID_INPUT"] = "INVALID_INPUT"; +- LinkErrorType["INSTITUTION_ERROR"] = "INSTITUTION_ERROR"; +- LinkErrorType["RATE_LIMIT_EXCEEDED"] = "RATE_LIMIT_EXCEEDED"; +- LinkErrorType["API_ERROR"] = "API_ERROR"; +- LinkErrorType["ITEM_ERROR"] = "ITEM_ERROR"; +- LinkErrorType["AUTH_ERROR"] = "AUTH_ERROR"; +- LinkErrorType["ASSET_REPORT_ERROR"] = "ASSET_REPORT_ERROR"; +- LinkErrorType["SANDBOX_ERROR"] = "SANDBOX_ERROR"; +- LinkErrorType["RECAPTCHA_ERROR"] = "RECAPTCHA_ERROR"; +- LinkErrorType["OAUTH_ERROR"] = "OAUTH_ERROR"; ++(function(LinkErrorType) { ++ LinkErrorType['BANK_TRANSFER'] = 'BANK_TRANSFER_ERROR'; ++ LinkErrorType['INVALID_REQUEST'] = 'INVALID_REQUEST'; ++ LinkErrorType['INVALID_RESULT'] = 'INVALID_RESULT'; ++ LinkErrorType['INVALID_INPUT'] = 'INVALID_INPUT'; ++ LinkErrorType['INSTITUTION_ERROR'] = 'INSTITUTION_ERROR'; ++ LinkErrorType['RATE_LIMIT_EXCEEDED'] = 'RATE_LIMIT_EXCEEDED'; ++ LinkErrorType['API_ERROR'] = 'API_ERROR'; ++ LinkErrorType['ITEM_ERROR'] = 'ITEM_ERROR'; ++ LinkErrorType['AUTH_ERROR'] = 'AUTH_ERROR'; ++ LinkErrorType['ASSET_REPORT_ERROR'] = 'ASSET_REPORT_ERROR'; ++ LinkErrorType['SANDBOX_ERROR'] = 'SANDBOX_ERROR'; ++ LinkErrorType['RECAPTCHA_ERROR'] = 'RECAPTCHA_ERROR'; ++ LinkErrorType['OAUTH_ERROR'] = 'OAUTH_ERROR'; + })(LinkErrorType || (LinkErrorType = {})); + export var LinkEventName; +-(function (LinkEventName) { +- LinkEventName["BANK_INCOME_INSIGHTS_COMPLETED"] = "BANK_INCOME_INSIGHTS_COMPLETED"; +- LinkEventName["CLOSE_OAUTH"] = "CLOSE_OAUTH"; +- LinkEventName["ERROR"] = "ERROR"; +- LinkEventName["EXIT"] = "EXIT"; +- LinkEventName["FAIL_OAUTH"] = "FAIL_OAUTH"; +- LinkEventName["HANDOFF"] = "HANDOFF"; +- LinkEventName["IDENTITY_VERIFICATION_START_STEP"] = "IDENTITY_VERIFICATION_START_STEP"; +- LinkEventName["IDENTITY_VERIFICATION_PASS_STEP"] = "IDENTITY_VERIFICATION_PASS_STEP"; +- LinkEventName["IDENTITY_VERIFICATION_FAIL_STEP"] = "IDENTITY_VERIFICATION_FAIL_STEP"; +- LinkEventName["IDENTITY_VERIFICATION_PENDING_REVIEW_STEP"] = "IDENTITY_VERIFICATION_PENDING_REVIEW_STEP"; +- LinkEventName["IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION"] = "IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION"; +- LinkEventName["IDENTITY_VERIFICATION_CREATE_SESSION"] = "IDENTITY_VERIFICATION_CREATE_SESSION"; +- LinkEventName["IDENTITY_VERIFICATION_RESUME_SESSION"] = "IDENTITY_VERIFICATION_RESUME_SESSION"; +- LinkEventName["IDENTITY_VERIFICATION_PASS_SESSION"] = "IDENTITY_VERIFICATION_PASS_SESSION"; +- LinkEventName["IDENTITY_VERIFICATION_FAIL_SESSION"] = "IDENTITY_VERIFICATION_FAIL_SESSION"; +- LinkEventName["IDENTITY_VERIFICATION_OPEN_UI"] = "IDENTITY_VERIFICATION_OPEN_UI"; +- LinkEventName["IDENTITY_VERIFICATION_RESUME_UI"] = "IDENTITY_VERIFICATION_RESUME_UI"; +- LinkEventName["IDENTITY_VERIFICATION_CLOSE_UI"] = "IDENTITY_VERIFICATION_CLOSE_UI"; +- LinkEventName["MATCHED_CONSENT"] = "MATCHED_CONSENT"; +- LinkEventName["MATCHED_SELECT_INSTITUTION"] = "MATCHED_SELECT_INSTITUTION"; +- LinkEventName["MATCHED_SELECT_VERIFY_METHOD"] = "MATCHED_SELECT_VERIFY_METHOD"; +- LinkEventName["OPEN"] = "OPEN"; +- LinkEventName["OPEN_MY_PLAID"] = "OPEN_MY_PLAID"; +- LinkEventName["OPEN_OAUTH"] = "OPEN_OAUTH"; +- LinkEventName["SEARCH_INSTITUTION"] = "SEARCH_INSTITUTION"; +- LinkEventName["SELECT_DEGRADED_INSTITUTION"] = "SELECT_DEGRADED_INSTITUTION"; +- LinkEventName["SELECT_DOWN_INSTITUTION"] = "SELECT_DOWN_INSTITUTION"; +- LinkEventName["SELECT_FILTERED_INSTITUTION"] = "SELECT_FILTERED_INSTITUTION"; +- LinkEventName["SELECT_INSTITUTION"] = "SELECT_INSTITUTION"; +- LinkEventName["SELECT_BRAND"] = "SELECT_BRAND"; +- LinkEventName["SELECT_AUTH_TYPE"] = "SELECT_AUTH_TYPE"; +- LinkEventName["SUBMIT_ACCOUNT_NUMBER"] = "SUBMIT_ACCOUNT_NUMBER"; +- LinkEventName["SUBMIT_DOCUMENTS"] = "SUBMIT_DOCUMENTS"; +- LinkEventName["SUBMIT_DOCUMENTS_SUCCESS"] = "SUBMIT_DOCUMENTS_SUCCESS"; +- LinkEventName["SUBMIT_DOCUMENTS_ERROR"] = "SUBMIT_DOCUMENTS_ERROR"; +- LinkEventName["SUBMIT_ROUTING_NUMBER"] = "SUBMIT_ROUTING_NUMBER"; +- LinkEventName["VIEW_DATA_TYPES"] = "VIEW_DATA_TYPES"; +- LinkEventName["SUBMIT_PHONE"] = "SUBMIT_PHONE"; +- LinkEventName["SKIP_SUBMIT_PHONE"] = "SKIP_SUBMIT_PHONE"; +- LinkEventName["VERIFY_PHONE"] = "VERIFY_PHONE"; +- LinkEventName["SUBMIT_CREDENTIALS"] = "SUBMIT_CREDENTIALS"; +- LinkEventName["SUBMIT_MFA"] = "SUBMIT_MFA"; +- LinkEventName["TRANSITION_VIEW"] = "TRANSITION_VIEW"; +- LinkEventName["CONNECT_NEW_INSTITUTION"] = "CONNECT_NEW_INSTITUTION"; ++(function(LinkEventName) { ++ LinkEventName['BANK_INCOME_INSIGHTS_COMPLETED'] = ++ 'BANK_INCOME_INSIGHTS_COMPLETED'; ++ LinkEventName['CLOSE_OAUTH'] = 'CLOSE_OAUTH'; ++ LinkEventName['ERROR'] = 'ERROR'; ++ LinkEventName['EXIT'] = 'EXIT'; ++ LinkEventName['FAIL_OAUTH'] = 'FAIL_OAUTH'; ++ LinkEventName['HANDOFF'] = 'HANDOFF'; ++ LinkEventName['IDENTITY_VERIFICATION_START_STEP'] = ++ 'IDENTITY_VERIFICATION_START_STEP'; ++ LinkEventName['IDENTITY_VERIFICATION_PASS_STEP'] = ++ 'IDENTITY_VERIFICATION_PASS_STEP'; ++ LinkEventName['IDENTITY_VERIFICATION_FAIL_STEP'] = ++ 'IDENTITY_VERIFICATION_FAIL_STEP'; ++ LinkEventName['IDENTITY_VERIFICATION_PENDING_REVIEW_STEP'] = ++ 'IDENTITY_VERIFICATION_PENDING_REVIEW_STEP'; ++ LinkEventName['IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION'] = ++ 'IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION'; ++ LinkEventName['IDENTITY_VERIFICATION_CREATE_SESSION'] = ++ 'IDENTITY_VERIFICATION_CREATE_SESSION'; ++ LinkEventName['IDENTITY_VERIFICATION_RESUME_SESSION'] = ++ 'IDENTITY_VERIFICATION_RESUME_SESSION'; ++ LinkEventName['IDENTITY_VERIFICATION_PASS_SESSION'] = ++ 'IDENTITY_VERIFICATION_PASS_SESSION'; ++ LinkEventName['IDENTITY_VERIFICATION_FAIL_SESSION'] = ++ 'IDENTITY_VERIFICATION_FAIL_SESSION'; ++ LinkEventName['IDENTITY_VERIFICATION_OPEN_UI'] = ++ 'IDENTITY_VERIFICATION_OPEN_UI'; ++ LinkEventName['IDENTITY_VERIFICATION_RESUME_UI'] = ++ 'IDENTITY_VERIFICATION_RESUME_UI'; ++ LinkEventName['IDENTITY_VERIFICATION_CLOSE_UI'] = ++ 'IDENTITY_VERIFICATION_CLOSE_UI'; ++ LinkEventName['MATCHED_CONSENT'] = 'MATCHED_CONSENT'; ++ LinkEventName['MATCHED_SELECT_INSTITUTION'] = 'MATCHED_SELECT_INSTITUTION'; ++ LinkEventName['MATCHED_SELECT_VERIFY_METHOD'] = ++ 'MATCHED_SELECT_VERIFY_METHOD'; ++ LinkEventName['OPEN'] = 'OPEN'; ++ LinkEventName['OPEN_MY_PLAID'] = 'OPEN_MY_PLAID'; ++ LinkEventName['OPEN_OAUTH'] = 'OPEN_OAUTH'; ++ LinkEventName['SEARCH_INSTITUTION'] = 'SEARCH_INSTITUTION'; ++ LinkEventName['SELECT_DEGRADED_INSTITUTION'] = 'SELECT_DEGRADED_INSTITUTION'; ++ LinkEventName['SELECT_DOWN_INSTITUTION'] = 'SELECT_DOWN_INSTITUTION'; ++ LinkEventName['SELECT_FILTERED_INSTITUTION'] = 'SELECT_FILTERED_INSTITUTION'; ++ LinkEventName['SELECT_INSTITUTION'] = 'SELECT_INSTITUTION'; ++ LinkEventName['SELECT_BRAND'] = 'SELECT_BRAND'; ++ LinkEventName['SELECT_AUTH_TYPE'] = 'SELECT_AUTH_TYPE'; ++ LinkEventName['SUBMIT_ACCOUNT_NUMBER'] = 'SUBMIT_ACCOUNT_NUMBER'; ++ LinkEventName['SUBMIT_DOCUMENTS'] = 'SUBMIT_DOCUMENTS'; ++ LinkEventName['SUBMIT_DOCUMENTS_SUCCESS'] = 'SUBMIT_DOCUMENTS_SUCCESS'; ++ LinkEventName['SUBMIT_DOCUMENTS_ERROR'] = 'SUBMIT_DOCUMENTS_ERROR'; ++ LinkEventName['SUBMIT_ROUTING_NUMBER'] = 'SUBMIT_ROUTING_NUMBER'; ++ LinkEventName['VIEW_DATA_TYPES'] = 'VIEW_DATA_TYPES'; ++ LinkEventName['SUBMIT_PHONE'] = 'SUBMIT_PHONE'; ++ LinkEventName['SKIP_SUBMIT_PHONE'] = 'SKIP_SUBMIT_PHONE'; ++ LinkEventName['VERIFY_PHONE'] = 'VERIFY_PHONE'; ++ LinkEventName['SUBMIT_CREDENTIALS'] = 'SUBMIT_CREDENTIALS'; ++ LinkEventName['SUBMIT_MFA'] = 'SUBMIT_MFA'; ++ LinkEventName['TRANSITION_VIEW'] = 'TRANSITION_VIEW'; ++ LinkEventName['CONNECT_NEW_INSTITUTION'] = 'CONNECT_NEW_INSTITUTION'; + })(LinkEventName || (LinkEventName = {})); + export var LinkEventViewName; +-(function (LinkEventViewName) { +- LinkEventViewName["ACCEPT_TOS"] = "ACCEPT_TOS"; +- LinkEventViewName["CONNECTED"] = "CONNECTED"; +- LinkEventViewName["CONSENT"] = "CONSENT"; +- LinkEventViewName["CREDENTIAL"] = "CREDENTIAL"; +- LinkEventViewName["DATA_TRANSPARENCY"] = "DATA_TRANSPARENCY"; +- LinkEventViewName["DATA_TRANSPARENCY_CONSENT"] = "DATA_TRANSPARENCY_CONSENT"; +- LinkEventViewName["DOCUMENTARY_VERIFICATION"] = "DOCUMENTARY_VERIFICATION"; +- LinkEventViewName["ERROR"] = "ERROR"; +- LinkEventViewName["EXIT"] = "EXIT"; +- LinkEventViewName["KYC_CHECK"] = "KYC_CHECK"; +- LinkEventViewName["SELFIE_CHECK"] = "SELFIE_CHECK"; +- LinkEventViewName["LOADING"] = "LOADING"; +- LinkEventViewName["MATCHED_CONSENT"] = "MATCHED_CONSENT"; +- LinkEventViewName["MATCHED_CREDENTIAL"] = "MATCHED_CREDENTIAL"; +- LinkEventViewName["MATCHED_MFA"] = "MATCHED_MFA"; +- LinkEventViewName["MFA"] = "MFA"; +- LinkEventViewName["NUMBERS"] = "NUMBERS"; +- LinkEventViewName["NUMBERS_SELECT_INSTITUTION"] = "NUMBERS_SELECT_INSTITUTION"; +- LinkEventViewName["OAUTH"] = "OAUTH"; +- LinkEventViewName["RECAPTCHA"] = "RECAPTCHA"; +- LinkEventViewName["RISK_CHECK"] = "RISK_CHECK"; +- LinkEventViewName["SCREENING"] = "SCREENING"; +- LinkEventViewName["SELECT_ACCOUNT"] = "SELECT_ACCOUNT"; +- LinkEventViewName["SELECT_AUTH_TYPE"] = "SELECT_AUTH_TYPE"; +- LinkEventViewName["SUBMIT_PHONE"] = "SUBMIT_PHONE"; +- LinkEventViewName["VERIFY_PHONE"] = "VERIFY_PHONE"; +- LinkEventViewName["SELECT_SAVED_INSTITUTION"] = "SELECT_SAVED_INSTITUTION"; +- LinkEventViewName["SELECT_SAVED_ACCOUNT"] = "SELECT_SAVED_ACCOUNT"; +- LinkEventViewName["SELECT_BRAND"] = "SELECT_BRAND"; +- LinkEventViewName["SELECT_INSTITUTION"] = "SELECT_INSTITUTION"; +- LinkEventViewName["SUBMIT_DOCUMENTS"] = "SUBMIT_DOCUMENTS"; +- LinkEventViewName["SUBMIT_DOCUMENTS_SUCCESS"] = "SUBMIT_DOCUMENTS_SUCCESS"; +- LinkEventViewName["SUBMIT_DOCUMENTS_ERROR"] = "SUBMIT_DOCUMENTS_ERROR"; +- LinkEventViewName["UPLOAD_DOCUMENTS"] = "UPLOAD_DOCUMENTS"; +- LinkEventViewName["VERIFY_SMS"] = "VERIFY_SMS"; ++(function(LinkEventViewName) { ++ LinkEventViewName['ACCEPT_TOS'] = 'ACCEPT_TOS'; ++ LinkEventViewName['CONNECTED'] = 'CONNECTED'; ++ LinkEventViewName['CONSENT'] = 'CONSENT'; ++ LinkEventViewName['CREDENTIAL'] = 'CREDENTIAL'; ++ LinkEventViewName['DATA_TRANSPARENCY'] = 'DATA_TRANSPARENCY'; ++ LinkEventViewName['DATA_TRANSPARENCY_CONSENT'] = 'DATA_TRANSPARENCY_CONSENT'; ++ LinkEventViewName['DOCUMENTARY_VERIFICATION'] = 'DOCUMENTARY_VERIFICATION'; ++ LinkEventViewName['ERROR'] = 'ERROR'; ++ LinkEventViewName['EXIT'] = 'EXIT'; ++ LinkEventViewName['KYC_CHECK'] = 'KYC_CHECK'; ++ LinkEventViewName['SELFIE_CHECK'] = 'SELFIE_CHECK'; ++ LinkEventViewName['LOADING'] = 'LOADING'; ++ LinkEventViewName['MATCHED_CONSENT'] = 'MATCHED_CONSENT'; ++ LinkEventViewName['MATCHED_CREDENTIAL'] = 'MATCHED_CREDENTIAL'; ++ LinkEventViewName['MATCHED_MFA'] = 'MATCHED_MFA'; ++ LinkEventViewName['MFA'] = 'MFA'; ++ LinkEventViewName['NUMBERS'] = 'NUMBERS'; ++ LinkEventViewName['NUMBERS_SELECT_INSTITUTION'] = ++ 'NUMBERS_SELECT_INSTITUTION'; ++ LinkEventViewName['OAUTH'] = 'OAUTH'; ++ LinkEventViewName['RECAPTCHA'] = 'RECAPTCHA'; ++ LinkEventViewName['RISK_CHECK'] = 'RISK_CHECK'; ++ LinkEventViewName['SCREENING'] = 'SCREENING'; ++ LinkEventViewName['SELECT_ACCOUNT'] = 'SELECT_ACCOUNT'; ++ LinkEventViewName['SELECT_AUTH_TYPE'] = 'SELECT_AUTH_TYPE'; ++ LinkEventViewName['SUBMIT_PHONE'] = 'SUBMIT_PHONE'; ++ LinkEventViewName['VERIFY_PHONE'] = 'VERIFY_PHONE'; ++ LinkEventViewName['SELECT_SAVED_INSTITUTION'] = 'SELECT_SAVED_INSTITUTION'; ++ LinkEventViewName['SELECT_SAVED_ACCOUNT'] = 'SELECT_SAVED_ACCOUNT'; ++ LinkEventViewName['SELECT_BRAND'] = 'SELECT_BRAND'; ++ LinkEventViewName['SELECT_INSTITUTION'] = 'SELECT_INSTITUTION'; ++ LinkEventViewName['SUBMIT_DOCUMENTS'] = 'SUBMIT_DOCUMENTS'; ++ LinkEventViewName['SUBMIT_DOCUMENTS_SUCCESS'] = 'SUBMIT_DOCUMENTS_SUCCESS'; ++ LinkEventViewName['SUBMIT_DOCUMENTS_ERROR'] = 'SUBMIT_DOCUMENTS_ERROR'; ++ LinkEventViewName['UPLOAD_DOCUMENTS'] = 'UPLOAD_DOCUMENTS'; ++ LinkEventViewName['VERIFY_SMS'] = 'VERIFY_SMS'; + })(LinkEventViewName || (LinkEventViewName = {})); + /// Methods to present Link on iOS. + /// FULL_SCREEN is the converts to UIModalPresentationOverFullScreen on the native side. + /// MODAL will use the default presentation style for iOS which is UIModalPresentationAutomatic. + export var LinkIOSPresentationStyle; +-(function (LinkIOSPresentationStyle) { +- LinkIOSPresentationStyle["FULL_SCREEN"] = "FULL_SCREEN"; +- LinkIOSPresentationStyle["MODAL"] = "MODAL"; ++(function(LinkIOSPresentationStyle) { ++ LinkIOSPresentationStyle['FULL_SCREEN'] = 'FULL_SCREEN'; ++ LinkIOSPresentationStyle['MODAL'] = 'MODAL'; + })(LinkIOSPresentationStyle || (LinkIOSPresentationStyle = {})); +diff --git a/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.d.ts b/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.d.ts +index cd4ccde..cb0ff5c 100644 +--- a/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.d.ts ++++ b/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.d.ts +@@ -1 +1 @@ +-declare const Types: any; ++export {}; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.js b/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.js +index 831866b..f38aff8 100644 +--- a/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.js ++++ b/node_modules/react-native-plaid-link-sdk/dist/__tests__/Types.tests.js +@@ -1,14 +1,14 @@ +-"use strict"; + const Types = require('./../Types'); + test('test token configuration', () => { +- const linkTokenConfiguration = { +- token: "test-token", +- noLoadingState: false, +- logLevel: Types.LinkLogLevel.DEBUG, +- extras: null, +- }; +- expect(linkTokenConfiguration.noLoadingState).toBe(false); +- expect(linkTokenConfiguration.token).toBe("test-token"); +- expect(linkTokenConfiguration.logLevel).toBe(Types.LinkLogLevel.DEBUG); +- expect(linkTokenConfiguration.extras).toBe(null); ++ const linkTokenConfiguration = { ++ token: 'test-token', ++ noLoadingState: false, ++ logLevel: Types.LinkLogLevel.DEBUG, ++ extras: null, ++ }; ++ expect(linkTokenConfiguration.noLoadingState).toBe(false); ++ expect(linkTokenConfiguration.token).toBe('test-token'); ++ expect(linkTokenConfiguration.logLevel).toBe(Types.LinkLogLevel.DEBUG); ++ expect(linkTokenConfiguration.extras).toBe(null); + }); ++export {}; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/check_version_hook.d.ts b/node_modules/react-native-plaid-link-sdk/dist/check_version_hook.d.ts +new file mode 100644 +index 0000000..cb0ff5c +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/check_version_hook.d.ts +@@ -0,0 +1 @@ ++export {}; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/check_version_hook.js b/node_modules/react-native-plaid-link-sdk/dist/check_version_hook.js +new file mode 100644 +index 0000000..34a47d4 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/check_version_hook.js +@@ -0,0 +1,15 @@ ++'use strict'; ++const fs = require('fs'); ++const rn_version = JSON.parse(fs.readFileSync('package.json', 'utf-8'))[ ++ 'version' ++]; ++const android_version = fs ++ .readFileSync('android/src/main/AndroidManifest.xml', 'utf-8') ++ .match(/(?<=value=").*(?=")/)[0]; ++if (rn_version != android_version) { ++ console.error('Commit failed SDK version mismatch'); ++ console.error( ++ 'Please ensure package.json and android/src/main/AndroidManifest.xml have the same version', ++ ); ++ process.exit(-1); ++} +diff --git a/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModule.d.ts b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModule.d.ts +new file mode 100644 +index 0000000..1de3019 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModule.d.ts +@@ -0,0 +1,14 @@ ++import { TurboModule } from 'react-native'; ++import { Int32 } from 'react-native/Libraries/Types/CodegenTypes'; ++import { LinkSuccess as UnsafeObject, LinkExit as Double, LinkError as Float } from '../Types'; ++export interface Spec extends TurboModule { ++ continueFromRedirectUriString(redirectUriString: string): void; ++ create(configuration: Object): void; ++ open(onSuccess: (success: UnsafeObject) => void, onExit: (error: Float, result: Double) => void): void; ++ dismiss(): void; ++ startLinkActivityForResult(data: string, onSuccessCallback: (result: UnsafeObject) => void, onExitCallback: (result: Double) => void): void; ++ addListener(eventName: string): void; ++ removeListeners(count: Int32): void; ++} ++declare const _default: Spec; ++export default _default; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModule.js b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModule.js +new file mode 100644 +index 0000000..310a9c5 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModule.js +@@ -0,0 +1,4 @@ ++// we use Object type because methods on the native side use NSDictionary and ReadableMap ++// and we want to stay compatible with those ++import { TurboModuleRegistry } from 'react-native'; ++export default TurboModuleRegistry.getEnforcing('RNLinksdk'); +diff --git a/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleAndroid.d.ts b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleAndroid.d.ts +new file mode 100644 +index 0000000..82f29a1 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleAndroid.d.ts +@@ -0,0 +1,9 @@ ++import { TurboModule } from 'react-native'; ++import { Int32, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes'; ++export interface Spec extends TurboModule { ++ startLinkActivityForResult(token: string, noLoadingState: boolean, logLevel: string, onSuccessCallback: (result: UnsafeObject) => void, onExitCallback: (result: UnsafeObject) => void): void; ++ addListener(eventName: string): void; ++ removeListeners(count: Int32): void; ++} ++declare const _default: Spec | null; ++export default _default; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleAndroid.js b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleAndroid.js +new file mode 100644 +index 0000000..d0ea456 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleAndroid.js +@@ -0,0 +1,4 @@ ++// we use Object type because methods on the native side use NSDictionary and ReadableMap ++// and we want to stay compatible with those ++import { TurboModuleRegistry } from 'react-native'; ++export default TurboModuleRegistry.get('PlaidAndroid'); +diff --git a/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleiOS.d.ts b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleiOS.d.ts +new file mode 100644 +index 0000000..aefee8c +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleiOS.d.ts +@@ -0,0 +1,11 @@ ++import { TurboModule } from 'react-native'; ++import { Int32, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes'; ++export interface Spec extends TurboModule { ++ create(token: string, noLoadingState: boolean): void; ++ open(fullScreen: boolean, onSuccess: (success: UnsafeObject) => void, onExit: (error: UnsafeObject, result: UnsafeObject) => void): void; ++ dismiss(): void; ++ addListener(eventName: string): void; ++ removeListeners(count: Int32): void; ++} ++declare const _default: Spec | null; ++export default _default; +diff --git a/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleiOS.js b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleiOS.js +new file mode 100644 +index 0000000..99845a1 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/dist/fabric/NativePlaidLinkModuleiOS.js +@@ -0,0 +1,4 @@ ++// we use Object type because methods on the native side use NSDictionary and ReadableMap ++// and we want to stay compatible with those ++import { TurboModuleRegistry } from 'react-native'; ++export default TurboModuleRegistry.get('RNLinksdk'); +diff --git a/node_modules/react-native-plaid-link-sdk/dist/index.js b/node_modules/react-native-plaid-link-sdk/dist/index.js +index 68c2d4b..acad079 100644 +--- a/node_modules/react-native-plaid-link-sdk/dist/index.js ++++ b/node_modules/react-native-plaid-link-sdk/dist/index.js +@@ -1,6 +1,6 @@ +-import { openLink, dismissLink, usePlaidEmitter, PlaidLink, } from './PlaidLink'; ++import { openLink, dismissLink, usePlaidEmitter, PlaidLink } from './PlaidLink'; + export * from './Types'; + export default PlaidLink; +-export { PlaidLink, openLink, dismissLink, usePlaidEmitter, }; ++export { PlaidLink, openLink, dismissLink, usePlaidEmitter }; + // Components + export { EmbeddedLinkView } from './EmbeddedLink/EmbeddedLinkView'; +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.h b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.h +index 8a1c350..035b91c 100644 +--- a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.h ++++ b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.h +@@ -1,15 +1,17 @@ +- +-#if __has_include() +-#import +-#import +-#else +-#import "RCTBridgeModule.h" +-#import "RCTEventEmitter.h" ++#ifdef RCT_NEW_ARCH_ENABLED ++#import + #endif ++#import ++#import "RCTEventEmitter.h" + + #import + +-@interface RNLinksdk : RCTEventEmitter ++@interface RNLinksdk : RCTEventEmitter ++#ifdef RCT_NEW_ARCH_ENABLED ++ ++#else ++ ++#endif + + + (NSDictionary *)dictionaryFromSuccess:(PLKLinkSuccess *)success; + + (NSDictionary *)dictionaryFromEvent:(PLKLinkEvent *)event; +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.mm b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.mm +index ef3fe85..b3b92d6 100644 +--- a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.mm ++++ b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.mm +@@ -1,4 +1,5 @@ + #import "RNLinksdk.h" ++#import "RNPlaidHelper.h" + + #import + #import +@@ -66,11 +67,11 @@ - (void)stopObserving { + self.hasObservers = NO; + } + +-RCT_EXPORT_METHOD(create:(NSString*)token :(BOOL)noLoadingState) { +- __weak typeof(self) weakSelf = self; ++RCT_EXPORT_METHOD(create:(NSString*)token noLoadingState:(BOOL)noLoadingState) { ++ __weak RNLinksdk *weakSelf = self; + + void (^onSuccess)(PLKLinkSuccess *) = ^(PLKLinkSuccess *success) { +- __typeof(weakSelf) strongSelf = weakSelf; ++ RNLinksdk *strongSelf = weakSelf; + + if (strongSelf.successCallback) { + NSDictionary *jsMetadata = [RNLinksdk dictionaryFromSuccess:success]; +@@ -80,7 +81,7 @@ - (void)stopObserving { + }; + + void (^onExit)(PLKLinkExit *) = ^(PLKLinkExit *exit) { +- __typeof(weakSelf) strongSelf = weakSelf; ++ RNLinksdk *strongSelf = weakSelf; + + if (strongSelf.exitCallback) { + NSDictionary *exitMetadata = [RNLinksdk dictionaryFromExit:exit]; +@@ -94,7 +95,7 @@ - (void)stopObserving { + }; + + void (^onEvent)(PLKLinkEvent *) = ^(PLKLinkEvent *event) { +- __typeof(weakSelf) strongSelf = weakSelf; ++ RNLinksdk *strongSelf = weakSelf; + if (strongSelf.hasObservers) { + NSDictionary *eventDictionary = [RNLinksdk dictionaryFromEvent:event]; + [strongSelf sendEventWithName:kRNLinkKitOnEventEvent +@@ -108,11 +109,11 @@ - (void)stopObserving { + config.noLoadingState = noLoadingState; + + NSError *creationError = nil; +- self.linkHandler = [PLKPlaid createWithLinkTokenConfiguration:config error:&creationError]; ++ self.linkHandler = [RNPlaidHelper createWithLinkTokenConfiguration:config error:&creationError]; + self.creationError = creationError; + } + +-RCT_EXPORT_METHOD(open: (BOOL)fullScreen :(RCTResponseSenderBlock)onSuccess :(RCTResponseSenderBlock)onExit) { ++RCT_EXPORT_METHOD(open:(BOOL)fullScreen onSuccess:(RCTResponseSenderBlock)onSuccess onExit:(RCTResponseSenderBlock)onExit) { + if (self.linkHandler) { + self.successCallback = onSuccess; + self.exitCallback = onExit; +@@ -122,7 +123,7 @@ - (void)stopObserving { + // unnecessarily invoked. + __block bool didPresent = NO; + +- __weak typeof(self) weakSelf = self; ++ __weak RNLinksdk *weakSelf = self; + void(^presentationHandler)(UIViewController *) = ^(UIViewController *linkViewController) { + + if (fullScreen) { +@@ -619,4 +620,12 @@ + (NSDictionary *)dictionaryFromExit:(PLKLinkExit *)exit { + }; + } + ++#if RCT_NEW_ARCH_ENABLED ++- (std::shared_ptr)getTurboModule: ++ (const facebook::react::ObjCTurboModule::InitParams &)params ++{ ++ return std::make_shared(params); ++} ++#endif ++ + @end +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +deleted file mode 100644 +index 919434a..0000000 +--- a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata ++++ /dev/null +@@ -1,7 +0,0 @@ +- +- +- +- +- +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +deleted file mode 100644 +index 18d9810..0000000 +--- a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ++++ /dev/null +@@ -1,8 +0,0 @@ +- +- +- +- +- IDEDidComputeMac32BitWarning +- +- +- +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcuserdata/dtroupe.xcuserdatad/UserInterfaceState.xcuserstate b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcuserdata/dtroupe.xcuserdatad/UserInterfaceState.xcuserstate +deleted file mode 100644 +index 47e9cc2..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcuserdata/dtroupe.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/xcuserdata/dtroupe.xcuserdatad/xcschemes/xcschememanagement.plist b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/xcuserdata/dtroupe.xcuserdatad/xcschemes/xcschememanagement.plist +deleted file mode 100644 +index 5b4fa70..0000000 +--- a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcodeproj/xcuserdata/dtroupe.xcuserdatad/xcschemes/xcschememanagement.plist ++++ /dev/null +@@ -1,19 +0,0 @@ +- +- +- +- +- SchemeUserState +- +- RNLinksdk.xcscheme_^#shared#^_ +- +- orderHint +- 0 +- +- RNLinksdkUnitTests.xcscheme_^#shared#^_ +- +- orderHint +- 1 +- +- +- +- +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcworkspace/xcuserdata/dtroupe.xcuserdatad/UserInterfaceState.xcuserstate b/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcworkspace/xcuserdata/dtroupe.xcuserdatad/UserInterfaceState.xcuserstate +deleted file mode 100644 +index 824773d..0000000 +Binary files a/node_modules/react-native-plaid-link-sdk/ios/RNLinksdk.xcworkspace/xcuserdata/dtroupe.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNPlaidHelper.h b/node_modules/react-native-plaid-link-sdk/ios/RNPlaidHelper.h +new file mode 100644 +index 0000000..535d333 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/ios/RNPlaidHelper.h +@@ -0,0 +1,7 @@ ++#import ++ ++@interface RNPlaidHelper : NSObject ++ +++ (id _Nullable)createWithLinkTokenConfiguration:(PLKLinkTokenConfiguration * _Nonnull)linkTokenConfiguration error:(NSError * _Nullable * _Nullable)error; ++ ++@end +diff --git a/node_modules/react-native-plaid-link-sdk/ios/RNPlaidHelper.m b/node_modules/react-native-plaid-link-sdk/ios/RNPlaidHelper.m +new file mode 100644 +index 0000000..2288299 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/ios/RNPlaidHelper.m +@@ -0,0 +1,10 @@ ++#import "RNPlaidHelper.h" ++ ++@implementation RNPlaidHelper ++ +++ (id _Nullable)createWithLinkTokenConfiguration:(PLKLinkTokenConfiguration * _Nonnull)linkTokenConfiguration error:(NSError * _Nullable * _Nullable)error ++{ ++ return [PLKPlaid createWithLinkTokenConfiguration:linkTokenConfiguration error:error]; ++} ++ ++@end +diff --git a/node_modules/react-native-plaid-link-sdk/package.json b/node_modules/react-native-plaid-link-sdk/package.json +index 22c7d2c..3d1b85c 100644 +--- a/node_modules/react-native-plaid-link-sdk/package.json ++++ b/node_modules/react-native-plaid-link-sdk/package.json +@@ -4,11 +4,13 @@ + "description": "React Native Plaid Link SDK", + "main": "dist/index.js", + "types": "dist/index.d.ts", ++ "react-native": "src/index.ts", + "files": [ + "dist/**/*", + "android/**/*", +- "ios", +- "react-native-plaid-link-sdk.podspec" ++ "ios/**/*", ++ "react-native-plaid-link-sdk.podspec", ++ "src/**/*" + ], + "scripts": { + "lint": "eslint \"./**/*.{js,jsx}\" --fix", +@@ -47,7 +49,7 @@ + "@react-native-community/eslint-plugin": "^1.1.0", + "@types/jest": "^26.0.14", + "@types/react": "^16.14.20", +- "@types/react-native": "^0.66.0", ++ "@types/react-native": "^0.71.3", + "@types/react-test-renderer": "^16.9.3", + "@typescript-eslint/eslint-plugin": "^4.33.0", + "@typescript-eslint/parser": "^4.33.0", +@@ -62,5 +64,16 @@ + "react": "18.0.0", + "react-native": "0.69.9", + "typescript": "^4.9.5" ++ }, ++ "dependencies": { ++ "react-native-plaid-link-sdk": "^10.4.0" ++ }, ++ "codegenConfig": { ++ "name": "rnplaidlink", ++ "type": "modules", ++ "jsSrcsDir": "./src/fabric", ++ "android": { ++ "javaPackageName": "com.plaid" ++ } + } + } +diff --git a/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec b/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec +index ee59a19..40ac7df 100644 +--- a/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec ++++ b/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec +@@ -2,6 +2,8 @@ require 'json' + + package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + ++fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' ++ + Pod::Spec.new do |s| + s.name = package['name'] + s.version = package['version'] +@@ -13,8 +15,13 @@ Pod::Spec.new do |s| + s.platform = :ios, "14.0" + + s.source = { :git => "https://github.com/plaid/react-native-plaid-link-sdk.git", :tag => "v#{s.version}" } +- s.source_files = "ios/*.{h,m,swift}" ++ s.source_files = "ios/**/*.{h,m,mm,swift}" ++ ++ if fabric_enabled ++ install_modules_dependencies(s) ++ else ++ s.dependency "React-Core" ++ end + +- s.dependency 'React-Core' + s.dependency 'Plaid', '~> 5.2.0' + end +diff --git a/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/EmbeddedLinkView.tsx b/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/EmbeddedLinkView.tsx +new file mode 100644 +index 0000000..0243de2 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/EmbeddedLinkView.tsx +@@ -0,0 +1,95 @@ ++import React from 'react'; ++import { StyleProp, ViewStyle } from 'react-native'; ++import NativeEmbeddedLinkView from './NativeEmbeddedLinkView'; ++import { ++ LinkSuccessListener, ++ LinkSuccess, ++ LinkExitListener, ++ LinkExit, ++ LinkIOSPresentationStyle, ++ LinkOnEventListener, ++ LinkEvent, ++ LinkEventName, ++ LinkEventMetadata, ++ LinkError, ++ LinkExitMetadata, ++ LinkSuccessMetadata, ++} from '../Types'; ++ ++type EmbeddedLinkProps = { ++ token: String, ++ iOSPresentationStyle: LinkIOSPresentationStyle, ++ onEvent: LinkOnEventListener | undefined, ++ onSuccess: LinkSuccessListener, ++ onExit: LinkExitListener | undefined, ++ style: StyleProp | undefined, ++} ++ ++class EmbeddedEvent implements LinkEvent { ++ eventName: LinkEventName; ++ metadata: LinkEventMetadata; ++ ++ constructor(event: any) { ++ this.eventName = event.eventName ++ this.metadata = event.metadata ++ } ++} ++ ++class EmbeddedExit implements LinkExit { ++ error: LinkError | undefined; ++ metadata: LinkExitMetadata; ++ ++ constructor(event: any) { ++ this.error = event.error; ++ this.metadata = event.metadata; ++ } ++} ++ ++class EmbeddedSuccess implements LinkSuccess { ++ publicToken: string; ++ metadata: LinkSuccessMetadata; ++ ++ constructor(event: any) { ++ this.publicToken = event.publicToken; ++ this.metadata = event.metadata; ++ } ++} ++ ++export const EmbeddedLinkView: React.FC = (props) => { ++ ++ const {token, iOSPresentationStyle, onEvent, onSuccess, onExit, style} = props; ++ ++ const onEmbeddedEvent = (event: any) => { ++ ++ switch (event.nativeEvent.embeddedEventName) { ++ case 'onSuccess': { ++ if (!onSuccess) { return; } ++ const embeddedSuccess = new EmbeddedSuccess(event.nativeEvent); ++ onSuccess(embeddedSuccess); ++ break; ++ } ++ case 'onExit': { ++ if (!onExit) {return; } ++ const embeddedExit = new EmbeddedExit(event.nativeEvent); ++ onExit(embeddedExit); ++ break; ++ } ++ case 'onEvent': { ++ if (!onEvent) { return; } ++ const embeddedEvent = new EmbeddedEvent(event.nativeEvent); ++ onEvent(embeddedEvent); ++ break; ++ } ++ default: { ++ return; ++ } ++ } ++ } ++ ++ return ++}; +\ No newline at end of file +diff --git a/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/EmbeddedLinkView.web.tsx b/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/EmbeddedLinkView.web.tsx +new file mode 100644 +index 0000000..7a71609 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/EmbeddedLinkView.web.tsx +@@ -0,0 +1,5 @@ ++// EmbeddedLinkView.web.tsx is a shim file which causes web bundlers to ignore the EmbeddedLinkView.tsx file ++// which imports requireNativeComponent (causing a runtime error with react-native-web). ++// Ref - https://github.com/plaid/react-native-plaid-link-sdk/issues/564 ++import React from 'react'; ++export const EmbeddedLinkView = () => null; +diff --git a/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/NativeEmbeddedLinkView.tsx b/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/NativeEmbeddedLinkView.tsx +new file mode 100644 +index 0000000..da05fb1 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/EmbeddedLink/NativeEmbeddedLinkView.tsx +@@ -0,0 +1,9 @@ ++import { requireNativeComponent } from 'react-native'; ++ ++// Error "Tried to register two views with the same name PLKEmbeddedView" ++// will be thrown during hot reload when any change is made to the ++// file that is calling this requireNativeComponent('PLKEmbeddedView') call. ++// Leaving this in its own file resolves this issue. ++const NativeEmbeddedLinkView = requireNativeComponent('PLKEmbeddedView'); ++ ++export default NativeEmbeddedLinkView; +\ No newline at end of file +diff --git a/node_modules/react-native-plaid-link-sdk/src/PlaidLink.tsx b/node_modules/react-native-plaid-link-sdk/src/PlaidLink.tsx +new file mode 100644 +index 0000000..b35c06f +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/PlaidLink.tsx +@@ -0,0 +1,117 @@ ++import React, { useEffect } from 'react'; ++import { NativeEventEmitter, Platform, TouchableOpacity } from 'react-native'; ++import { ++ LinkError, ++ LinkEventListener, ++ LinkExit, ++ LinkIOSPresentationStyle, ++ LinkLogLevel, ++ LinkSuccess, ++ PlaidLinkComponentProps, ++ PlaidLinkProps, ++} from './Types'; ++import RNLinksdkAndroid from './fabric/NativePlaidLinkModuleAndroid'; ++import RNLinksdkiOS from './fabric/NativePlaidLinkModuleiOS'; ++ ++const RNLinksdk = (Platform.OS === 'android' ? RNLinksdkAndroid : RNLinksdkiOS) ?? undefined; ++ ++/** ++ * A hook that registers a listener on the Plaid emitter for the 'onEvent' type. ++ * The listener is cleaned up when this view is unmounted ++ * ++ * @param linkEventListener the listener to call ++ */ ++export const usePlaidEmitter = (linkEventListener: LinkEventListener) => { ++ useEffect(() => { ++ const emitter = new NativeEventEmitter(RNLinksdk); ++ const listener = emitter.addListener('onEvent', linkEventListener); ++ // Clean up after this effect: ++ return function cleanup() { ++ listener.remove(); ++ }; ++ }, []); ++}; ++ ++export const openLink = async (props: PlaidLinkProps) => { ++ let config = props.tokenConfig; ++ let noLoadingState = config.noLoadingState ?? false; ++ ++ if (Platform.OS === 'android') { ++ if (RNLinksdkAndroid === null) { ++ throw new Error('[react-native-plaid-link-sdk] RNLinksdkAndroid is not defined'); ++ } ++ ++ RNLinksdkAndroid.startLinkActivityForResult( ++ config.token, ++ noLoadingState, ++ config.logLevel ?? LinkLogLevel.ERROR, ++ // @ts-ignore we use Object type in the spec file as it maps to NSDictionary and ReadableMap ++ (result: LinkSuccess) => { ++ if (props.onSuccess != null) { ++ props.onSuccess(result); ++ } ++ }, ++ (result: LinkExit) => { ++ if (props.onExit != null) { ++ if (result.error != null && result.error.displayMessage != null) { ++ //TODO(RNSDK-118): Remove errorDisplayMessage field in next major update. ++ result.error.errorDisplayMessage = result.error.displayMessage; ++ } ++ props.onExit(result); ++ } ++ }, ++ ); ++ } else { ++ if (RNLinksdkiOS === null) { ++ throw new Error('[react-native-plaid-link-sdk] RNLinksdkiOS is not defined'); ++ } ++ ++ RNLinksdkiOS.create(config.token, noLoadingState); ++ ++ let presentFullScreen = ++ props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN; ++ ++ RNLinksdkiOS.open( ++ presentFullScreen, ++ // @ts-ignore we use Object type in the spec file as it maps to NSDictionary and ReadableMap ++ (result: LinkSuccess) => { ++ if (props.onSuccess != null) { ++ props.onSuccess(result); ++ } ++ }, ++ (error: LinkError, result: LinkExit) => { ++ if (props.onExit != null) { ++ if (error) { ++ var data = result || {}; ++ data.error = error; ++ props.onExit(data); ++ } else { ++ props.onExit(result); ++ } ++ } ++ }, ++ ); ++ } ++}; ++ ++export const dismissLink = () => { ++ if (Platform.OS === 'ios') { ++ if (RNLinksdkiOS === null) { ++ throw new Error('[react-native-plaid-link-sdk] RNLinksdkiOS is not defined'); ++ } ++ ++ RNLinksdkiOS.dismiss(); ++ } ++}; ++ ++export const PlaidLink = (props: PlaidLinkComponentProps) => { ++ function onPress() { ++ props.onPress?.(); ++ openLink(props); ++ } ++ ++ return ( ++ // @ts-ignore some types directories misconfiguration ++ {props.children} ++ ); ++}; +diff --git a/node_modules/react-native-plaid-link-sdk/src/Types.ts b/node_modules/react-native-plaid-link-sdk/src/Types.ts +new file mode 100644 +index 0000000..a7d30c6 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/Types.ts +@@ -0,0 +1,550 @@ ++interface CommonPlaidLinkOptions { ++ logLevel?: LinkLogLevel; ++ extras?: Record; ++} ++ ++export type LinkTokenConfiguration = (CommonPlaidLinkOptions & { ++ token: string; ++ // A `Bool` indicating that Link should skip displaying a loading animation until the Link UI is fully loaded. ++ // This can be used to display custom loading UI while Link content is loading (and will skip any initial loading UI in Link). ++ // Note: Dismiss custom loading UI on the OPEN & EXIT events. ++ // ++ // Note: This should be set to `true` when setting the `eu_config.headless` field in /link/token/create requests to `true`. ++ // For reference, see https://plaid.com/docs/api/tokens/#link-token-create-request-eu-config-headless ++ noLoadingState?: boolean; ++}); ++ ++export enum LinkLogLevel { ++ DEBUG="debug", ++ INFO="info", ++ WARN="warn", ++ ERROR="error", ++} ++ ++export enum PlaidEnvironment { ++ PRODUCTION = 'production', ++ DEVELOPMENT = 'development', ++ SANDBOX = 'sandbox', ++} ++ ++export enum PlaidProduct { ++ ASSETS="assets", ++ AUTH="auth", ++ DEPOSIT_SWITCH="deposit_switch", ++ IDENTITY="identity", ++ INCOME="income", ++ INVESTMENTS="investments", ++ LIABILITIES="liabilities", ++ LIABILITIES_REPORT="liabilities_report", ++ PAYMENT_INITIATION="payment_initiation", ++ TRANSACTIONS="transactions", ++} ++ ++export enum LinkAccountType { ++ CREDIT = 'credit', ++ DEPOSITORY = 'depository', ++ INVESTMENT = 'investment', ++ LOAN = 'loan', ++ OTHER = 'other', ++} ++ ++export enum LinkAccountSubtypes { ++ ALL = 'all', ++ CREDIT_CARD = 'credit card', ++ PAYPAL = 'paypal', ++ AUTO = 'auto', ++ BUSINESS = 'business', ++ COMMERCIAL = 'commercial', ++ CONSTRUCTION = 'construction', ++ CONSUMER = 'consumer', ++ HOME_EQUITY = 'home equity', ++ LINE_OF_CREDIT = 'line of credit', ++ LOAN = 'loan', ++ MORTGAGE = 'mortgage', ++ OVERDRAFT = 'overdraft', ++ STUDENT = 'student', ++ CASH_MANAGEMENT = 'cash management', ++ CD = 'cd', ++ CHECKING = 'checking', ++ EBT = 'ebt', ++ HSA = 'hsa', ++ MONEY_MARKET = 'money market', ++ PREPAID = 'prepaid', ++ SAVINGS = 'savings', ++ FOUR_0_1_A = '401a', ++ FOUR_0_1_K = '401k', ++ FOUR_0_3_B = '403B', ++ FOUR_5_7_B = '457b', ++ FIVE_2_9 = '529', ++ BROKERAGE = 'brokerage', ++ CASH_ISA = 'cash isa', ++ EDUCATION_SAVINGS_ACCOUNT = 'education savings account', ++ FIXED_ANNUNITY = 'fixed annuity', ++ GIC = 'gic', ++ HEALTH_REIMBURSEMENT_ARRANGEMENT = 'health reimbursement arrangement', ++ IRA = 'ira', ++ ISA = 'isa', ++ KEOGH = 'keogh', ++ LIF = 'lif', ++ LIRA = 'lira', ++ LRIF = 'lrif', ++ LRSP = 'lrsp', ++ MUTUAL_FUND = 'mutual fund', ++ NON_TAXABLE_BROKERAGE_ACCOUNT = 'non-taxable brokerage account', ++ PENSION = 'pension', ++ PLAN = 'plan', ++ PRIF = 'prif', ++ PROFIT_SHARING_PLAN = 'profit sharing plan', ++ RDSP = 'rdsp', ++ RESP = 'resp', ++ RETIREMENT = 'retirement', ++ RLIF = 'rlif', ++ ROTH_401K = 'roth 401k', ++ ROTH = 'roth', ++ RRIF = 'rrif', ++ RRSP = 'rrsp', ++ SARSEP = 'sarsep', ++ SEP_IRA = 'sep ira', ++ SIMPLE_IRA = 'simple ira', ++ SIPP = 'sipp', ++ STOCK_PLAN = 'stock plan', ++ TFSA = 'tfsa', ++ THRIFT_SAVINGS_PLAN = 'thrift savings plan', ++ TRUST = 'trust', ++ UGMA = 'ugma', ++ UTMA = 'utma', ++ VARIABLE_ANNUITY = 'variable annuity' ++} ++ ++export interface LinkAccountSubtype { ++} ++ ++export class LinkAccountSubtypeCredit implements LinkAccountSubtype { ++ public static readonly ALL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.ALL); ++ public static readonly CREDIT_CARD = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.CREDIT_CARD); ++ public static readonly PAYPAL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.PAYPAL); ++ ++ private constructor(public readonly type: LinkAccountType, public readonly subtype: LinkAccountSubtype) { } ++} ++ ++export class LinkAccountSubtypeDepository implements LinkAccountSubtype { ++ public static readonly ALL = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.ALL); ++ public static readonly CASH_MANAGEMENT = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.CASH_MANAGEMENT); ++ public static readonly CD = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.CD); ++ public static readonly CHECKING = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.CHECKING); ++ public static readonly EBT = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.EBT); ++ public static readonly HSA = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.HSA); ++ public static readonly MONEY_MARKET = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.MONEY_MARKET); ++ public static readonly PAYPAL = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PAYPAL); ++ public static readonly PREPAID = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PREPAID); ++ public static readonly SAVINGS = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.SAVINGS); ++ ++ private constructor(public readonly type: LinkAccountType, public readonly subtype: LinkAccountSubtype) { } ++} ++ ++export class LinkAccountSubtypeInvestment implements LinkAccountSubtype { ++ public static readonly ALL = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ALL); ++ public static readonly BROKERAGE = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.BROKERAGE); ++ public static readonly CASH_ISA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.CASH_ISA); ++ public static readonly EDUCATION_SAVINGS_ACCOUNT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.EDUCATION_SAVINGS_ACCOUNT); ++ public static readonly FIXED_ANNUNITY = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FIXED_ANNUNITY); ++ public static readonly GIC = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.GIC); ++ public static readonly HEALTH_REIMBURSEMENT_ARRANGEMENT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.HEALTH_REIMBURSEMENT_ARRANGEMENT); ++ public static readonly HSA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.HSA); ++ public static readonly INVESTMENT_401A = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_0_1_A); ++ public static readonly INVESTMENT_401K = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_0_1_K); ++ public static readonly INVESTMENT_403B = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_0_3_B); ++ public static readonly INVESTMENT_457B = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FOUR_5_7_B); ++ public static readonly INVESTMENT_529 = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.FIVE_2_9); ++ public static readonly IRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.IRA); ++ public static readonly ISA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ISA); ++ public static readonly KEOGH = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.KEOGH); ++ public static readonly LIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LIF); ++ public static readonly LIRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LIRA); ++ public static readonly LRIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LRIF); ++ public static readonly LRSP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.LRSP); ++ public static readonly MUTUAL_FUND = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.MUTUAL_FUND); ++ public static readonly NON_TAXABLE_BROKERAGE_ACCOUNT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.NON_TAXABLE_BROKERAGE_ACCOUNT); ++ public static readonly PENSION = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PENSION); ++ public static readonly PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PLAN); ++ public static readonly PRIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PRIF); ++ public static readonly PROFIT_SHARING_PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.PROFIT_SHARING_PLAN); ++ public static readonly RDSP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RDSP); ++ public static readonly RESP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RESP); ++ public static readonly RETIREMENT = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RETIREMENT); ++ public static readonly RLIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RLIF); ++ public static readonly ROTH = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ROTH); ++ public static readonly ROTH_401K = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.ROTH_401K); ++ public static readonly RRIF = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RRIF); ++ public static readonly RRSP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.RRSP); ++ public static readonly SARSEP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SARSEP); ++ public static readonly SEP_IRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SEP_IRA); ++ public static readonly SIMPLE_IRA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SIMPLE_IRA); ++ public static readonly SIIP = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.SIPP); ++ public static readonly STOCK_PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.STOCK_PLAN); ++ public static readonly TFSA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.TFSA); ++ public static readonly THRIFT_SAVINGS_PLAN = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.THRIFT_SAVINGS_PLAN); ++ public static readonly TRUST = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.TRUST); ++ public static readonly UGMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UGMA); ++ public static readonly UTMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UTMA); ++ public static readonly VARIABLE_ANNUITY = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.VARIABLE_ANNUITY); ++ ++ private constructor(public readonly type: LinkAccountType, public readonly subtype: LinkAccountSubtype) { } ++} ++ ++export class LinkAccountSubtypeLoan implements LinkAccountSubtype { ++ public static readonly ALL = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.ALL); ++ public static readonly AUTO = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.AUTO); ++ public static readonly BUSINESS = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.BUSINESS); ++ public static readonly COMMERCIAL = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.COMMERCIAL); ++ public static readonly CONSTRUCTION = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.CONSTRUCTION); ++ public static readonly CONSUMER = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.CONSUMER); ++ public static readonly HOME_EQUITY = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.HOME_EQUITY); ++ public static readonly LINE_OF_CREDIT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.LINE_OF_CREDIT); ++ public static readonly LOAN = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.LOAN); ++ public static readonly MORTGAGE = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.MORTGAGE); ++ public static readonly OVERDRAFT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.OVERDRAFT); ++ public static readonly STUDENT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.STUDENT); ++ ++ private constructor(public readonly type: LinkAccountType, public readonly subtype: LinkAccountSubtype) { } ++} ++ ++export class LinkAccountSubtypeUnknown implements LinkAccountSubtype { ++ constructor(public readonly type: string, public readonly subtype: string) { } ++} ++ ++export interface LinkSuccess { ++ publicToken: string; ++ metadata: LinkSuccessMetadata; ++} ++ ++export interface LinkSuccessMetadata { ++ institution?: LinkInstitution; ++ accounts: LinkAccount[]; ++ linkSessionId: string; ++ metadataJson?: string; ++} ++ ++export interface LinkAccount { ++ id: string; ++ name?: string; ++ mask?: string; ++ type: LinkAccountType; ++ subtype: LinkAccountSubtype; ++ verificationStatus?: LinkAccountVerificationStatus; ++} ++ ++export enum LinkAccountVerificationStatus { ++ PENDING_AUTOMATIC_VERIFICATION = 'pending_automatic_verification', ++ PENDING_MANUAL_VERIFICATION = 'pending_manual_verification', ++ MANUALLY_VERIFIED = 'manually_verified', ++} ++ ++export interface LinkInstitution { ++ id: string; ++ name: string; ++} ++ ++export interface LinkExit { ++ error?: LinkError; ++ metadata: LinkExitMetadata; ++} ++ ++export interface LinkExitMetadata { ++ status?: LinkExitMetadataStatus; ++ institution?: LinkInstitution; ++ linkSessionId: string; ++ requestId: string; ++ metadataJson?: string; ++} ++ ++export enum LinkExitMetadataStatus { ++ CONNECTED = 'connected', ++ CHOOSE_DEVICE = 'choose_device', ++ REQUIRES_ACCOUNT_SELECTION = 'requires_account_selection', ++ REQUIRES_CODE = 'requires_code', ++ REQUIRES_CREDENTIALS = 'requires_credentials', ++ REQUIRES_EXTERNAL_ACTION = 'requires_external_action', ++ REQUIRES_OAUTH = 'requires_oauth', ++ REQUIRES_QUESTIONS = 'requires_questions', ++ REQUIRES_RECAPTCHA = 'requires_recaptcha', ++ REQUIRES_SELECTIONS = 'requires_selections', ++ REQUIRES_DEPOSIT_SWITCH_ALLOCATION_CONFIGURATION = 'requires_deposit_switch_allocation_configuration', ++ REQUIRES_DEPOSIT_SWITCH_ALLOCATION_SELECTION = 'requires_deposit_switch_allocation_selection', ++} ++ ++export interface LinkError { ++ errorCode: LinkErrorCode; ++ errorType: LinkErrorType; ++ errorMessage: string; ++ /** @deprecated DO NOT USE, data not guaranteed. Use `displayMessage` instead */ ++ errorDisplayMessage?: string; ++ displayMessage?: string; ++ errorJson?: string; ++} ++ ++export enum LinkErrorCode { ++ // ITEM_ERROR ++ INVALID_CREDENTIALS = "INVALID_CREDENTIALS", ++ INVALID_MFA = "INVALID_MFA", ++ ITEM_LOGIN_REQUIRED = "ITEM_LOGIN_REQUIRED", ++ INSUFFICIENT_CREDENTIALS = "INSUFFICIENT_CREDENTIALS", ++ ITEM_LOCKED = "ITEM_LOCKED", ++ USER_SETUP_REQUIRED = "USER_SETUP_REQUIRED", ++ MFA_NOT_SUPPORTED = "MFA_NOT_SUPPORTED", ++ INVALID_SEND_METHOD = "INVALID_SEND_METHOD", ++ NO_ACCOUNTS = "NO_ACCOUNTS", ++ ITEM_NOT_SUPPORTED = "ITEM_NOT_SUPPORTED", ++ TOO_MANY_VERIFICATION_ATTEMPTS = "TOO_MANY_VERIFICATION_ATTEMPTS", ++ ++ INVALD_UPDATED_USERNAME = "INVALD_UPDATED_USERNAME", ++ INVALID_UPDATED_USERNAME = "INVALID_UPDATED_USERNAME", ++ ++ ITEM_NO_ERROR = "ITEM_NO_ERROR", ++ item_no_error = "item-no-error", ++ NO_AUTH_ACCOUNTS = "NO_AUTH_ACCOUNTS", ++ NO_INVESTMENT_ACCOUNTS = "NO_INVESTMENT_ACCOUNTS", ++ NO_INVESTMENT_AUTH_ACCOUNTS = "NO_INVESTMENT_AUTH_ACCOUNTS", ++ NO_LIABILITY_ACCOUNTS = "NO_LIABILITY_ACCOUNTS", ++ PRODUCTS_NOT_SUPPORTED = "PRODUCTS_NOT_SUPPORTED", ++ ITEM_NOT_FOUND = "ITEM_NOT_FOUND", ++ ITEM_PRODUCT_NOT_READY = "ITEM_PRODUCT_NOT_READY", ++ ++ // INSTITUTION_ERROR ++ INSTITUTION_DOWN = "INSTITUTION_DOWN", ++ INSTITUTION_NOT_RESPONDING = "INSTITUTION_NOT_RESPONDING", ++ INSTITUTION_NOT_AVAILABLE = "INSTITUTION_NOT_AVAILABLE", ++ INSTITUTION_NO_LONGER_SUPPORTED = "INSTITUTION_NO_LONGER_SUPPORTED", ++ ++ // API_ERROR ++ INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR", ++ PLANNED_MAINTENANCE = "PLANNED_MAINTENANCE", ++ ++ // ASSET_REPORT_ERROR ++ PRODUCT_NOT_ENABLED = "PRODUCT_NOT_ENABLED", ++ DATA_UNAVAILABLE = "DATA_UNAVAILABLE", ++ ASSET_PRODUCT_NOT_READY = "ASSET_PRODUCT_NOT_READY", ++ ASSET_REPORT_GENERATION_FAILED = "ASSET_REPORT_GENERATION_FAILED", ++ INVALID_PARENT = "INVALID_PARENT", ++ INSIGHTS_NOT_ENABLED = "INSIGHTS_NOT_ENABLED", ++ INSIGHTS_PREVIOUSLY_NOT_ENABLED = "INSIGHTS_PREVIOUSLY_NOT_ENABLED", ++ ++ // BANK_TRANSFER_ERROR ++ BANK_TRANSFER_LIMIT_EXCEEDED = "BANK_TRANSFER_LIMIT_EXCEEDED", ++ BANK_TRANSFER_MISSING_ORIGINATION_ACCOUNT = "BANK_TRANSFER_MISSING_ORIGINATION_ACCOUNT", ++ BANK_TRANSFER_INVALID_ORIGINATION_ACCOUNT = "BANK_TRANSFER_INVALID_ORIGINATION_ACCOUNT", ++ BANK_TRANSFER_ACCOUNT_BLOCKED = "BANK_TRANSFER_ACCOUNT_BLOCKED", ++ BANK_TRANSFER_INSUFFICIENT_FUNDS = "BANK_TRANSFER_INSUFFICIENT_FUNDS", ++ BANK_TRANSFER_NOT_CANCELLABLE = "BANK_TRANSFER_NOT_CANCELLABLE", ++ BANK_TRANSFER_UNSUPPORTED_ACCOUNT_TYPE = "BANK_TRANSFER_UNSUPPORTED_ACCOUNT_TYPE", ++ BANK_TRANSFER_UNSUPPORTED_ENVIRONMENT = "BANK_TRANSFER_UNSUPPORTED_ENVIRONMENT", ++ ++ // SANDBOX_ERROR ++ SANDBOX_PRODUCT_NOT_ENABLED = "SANDBOX_PRODUCT_NOT_ENABLED", ++ SANDBOX_WEBHOOK_INVALID = "SANDBOX_WEBHOOK_INVALID", ++ SANDBOX_BANK_TRANSFER_EVENT_TRANSITION_INVALID = "SANDBOX_BANK_TRANSFER_EVENT_TRANSITION_INVALID", ++ ++ // INVALID_REQUEST ++ MISSING_FIELDS = "MISSING_FIELDS", ++ UNKNOWN_FIELDS = "UNKNOWN_FIELDS", ++ INVALID_FIELD = "INVALID_FIELD", ++ INCOMPATIBLE_API_VERSION = "INCOMPATIBLE_API_VERSION", ++ INVALID_BODY = "INVALID_BODY", ++ INVALID_HEADERS = "INVALID_HEADERS", ++ NOT_FOUND = "NOT_FOUND", ++ NO_LONGER_AVAILABLE = "NO_LONGER_AVAILABLE", ++ SANDBOX_ONLY = "SANDBOX_ONLY", ++ INVALID_ACCOUNT_NUMBER = "INVALID_ACCOUNT_NUMBER", ++ ++ // INVALID_INPUT ++ // From above ITEM_LOGIN_REQUIRED = "INVALID_CREDENTIALS", ++ INCORRECT_DEPOSIT_AMOUNTS = "INCORRECT_DEPOSIT_AMOUNTS", ++ UNAUTHORIZED_ENVIRONMENT = "UNAUTHORIZED_ENVIRONMENT", ++ INVALID_PRODUCT = "INVALID_PRODUCT", ++ UNAUTHORIZED_ROUTE_ACCESS = "UNAUTHORIZED_ROUTE_ACCESS", ++ DIRECT_INTEGRATION_NOT_ENABLED = "DIRECT_INTEGRATION_NOT_ENABLED", ++ INVALID_API_KEYS = "INVALID_API_KEYS", ++ INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN", ++ INVALID_PUBLIC_TOKEN = "INVALID_PUBLIC_TOKEN", ++ INVALID_LINK_TOKEN = "INVALID_LINK_TOKEN", ++ INVALID_PROCESSOR_TOKEN = "INVALID_PROCESSOR_TOKEN", ++ INVALID_AUDIT_COPY_TOKEN = "INVALID_AUDIT_COPY_TOKEN", ++ INVALID_ACCOUNT_ID = "INVALID_ACCOUNT_ID", ++ MICRODEPOSITS_ALREADY_VERIFIED = "MICRODEPOSITS_ALREADY_VERIFIED", ++ ++ // INVALID_RESULT ++ PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA = "PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA", ++ ++ // RATE_LIMIT_EXCEEDED ++ ACCOUNTS_LIMIT = "ACCOUNTS_LIMIT", ++ ADDITION_LIMIT = "ADDITION_LIMIT", ++ AUTH_LIMIT = "AUTH_LIMIT", ++ BALANCE_LIMIT = "BALANCE_LIMIT", ++ IDENTITY_LIMIT = "IDENTITY_LIMIT", ++ ITEM_GET_LIMIT = "ITEM_GET_LIMIT", ++ RATE_LIMIT = "RATE_LIMIT", ++ TRANSACTIONS_LIMIT = "TRANSACTIONS_LIMIT", ++ ++ // RECAPTCHA_ERROR ++ RECAPTCHA_REQUIRED = "RECAPTCHA_REQUIRED", ++ RECAPTCHA_BAD = "RECAPTCHA_BAD", ++ ++ // OAUTH_ERROR ++ INCORRECT_OAUTH_NONCE = "INCORRECT_OAUTH_NONCE", ++ OAUTH_STATE_ID_ALREADY_PROCESSED = "OAUTH_STATE_ID_ALREADY_PROCESSED", ++} ++ ++export enum LinkErrorType { ++ BANK_TRANSFER = 'BANK_TRANSFER_ERROR', ++ INVALID_REQUEST = 'INVALID_REQUEST', ++ INVALID_RESULT = 'INVALID_RESULT', ++ INVALID_INPUT = 'INVALID_INPUT', ++ INSTITUTION_ERROR = 'INSTITUTION_ERROR', ++ RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED', ++ API_ERROR = 'API_ERROR', ++ ITEM_ERROR = 'ITEM_ERROR', ++ AUTH_ERROR = 'AUTH_ERROR', ++ ASSET_REPORT_ERROR = 'ASSET_REPORT_ERROR', ++ SANDBOX_ERROR = 'SANDBOX_ERROR', ++ RECAPTCHA_ERROR = 'RECAPTCHA_ERROR', ++ OAUTH_ERROR = 'OAUTH_ERROR', ++} ++ ++export type LinkEventListener = (linkEvent: LinkEvent) => void ++ ++export interface LinkEvent { ++ eventName: LinkEventName; ++ metadata: LinkEventMetadata; ++} ++ ++export interface LinkEventMetadata { ++ accountNumberMask?: string; ++ linkSessionId: string; ++ mfaType?: string; ++ requestId?: string; ++ viewName: LinkEventViewName; ++ errorCode?: string; ++ errorMessage?: string; ++ errorType?: string; ++ exitStatus?: string; ++ institutionId?: string; ++ institutionName?: string; ++ institutionSearchQuery?: string; ++ isUpdateMode?: string; ++ matchReason?: string; ++ // see possible values for selection at https://plaid.com/docs/link/web/#link-web-onevent-selection ++ selection?: null | string; ++ timestamp: string; ++} ++ ++export enum LinkEventName { ++ BANK_INCOME_INSIGHTS_COMPLETED = "BANK_INCOME_INSIGHTS_COMPLETED", ++ CLOSE_OAUTH = 'CLOSE_OAUTH', ++ ERROR = 'ERROR', ++ EXIT = 'EXIT', ++ FAIL_OAUTH = 'FAIL_OAUTH', ++ HANDOFF = 'HANDOFF', ++ IDENTITY_VERIFICATION_START_STEP = 'IDENTITY_VERIFICATION_START_STEP', ++ IDENTITY_VERIFICATION_PASS_STEP = 'IDENTITY_VERIFICATION_PASS_STEP', ++ IDENTITY_VERIFICATION_FAIL_STEP = 'IDENTITY_VERIFICATION_FAIL_STEP', ++ IDENTITY_VERIFICATION_PENDING_REVIEW_STEP = 'IDENTITY_VERIFICATION_PENDING_REVIEW_STEP', ++ IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION = 'IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION', ++ IDENTITY_VERIFICATION_CREATE_SESSION = 'IDENTITY_VERIFICATION_CREATE_SESSION', ++ IDENTITY_VERIFICATION_RESUME_SESSION = 'IDENTITY_VERIFICATION_RESUME_SESSION', ++ IDENTITY_VERIFICATION_PASS_SESSION = 'IDENTITY_VERIFICATION_PASS_SESSION', ++ IDENTITY_VERIFICATION_FAIL_SESSION = 'IDENTITY_VERIFICATION_FAIL_SESSION', ++ IDENTITY_VERIFICATION_OPEN_UI = 'IDENTITY_VERIFICATION_OPEN_UI', ++ IDENTITY_VERIFICATION_RESUME_UI = 'IDENTITY_VERIFICATION_RESUME_UI', ++ IDENTITY_VERIFICATION_CLOSE_UI = 'IDENTITY_VERIFICATION_CLOSE_UI', ++ MATCHED_CONSENT = 'MATCHED_CONSENT', ++ MATCHED_SELECT_INSTITUTION = 'MATCHED_SELECT_INSTITUTION', ++ MATCHED_SELECT_VERIFY_METHOD = 'MATCHED_SELECT_VERIFY_METHOD', ++ OPEN = 'OPEN', ++ OPEN_MY_PLAID = 'OPEN_MY_PLAID', ++ OPEN_OAUTH = 'OPEN_OAUTH', ++ SEARCH_INSTITUTION = 'SEARCH_INSTITUTION', ++ SELECT_DEGRADED_INSTITUTION = 'SELECT_DEGRADED_INSTITUTION', ++ SELECT_DOWN_INSTITUTION = 'SELECT_DOWN_INSTITUTION', ++ SELECT_FILTERED_INSTITUTION = 'SELECT_FILTERED_INSTITUTION', ++ SELECT_INSTITUTION = 'SELECT_INSTITUTION', ++ SELECT_BRAND = 'SELECT_BRAND', ++ SELECT_AUTH_TYPE = 'SELECT_AUTH_TYPE', ++ SUBMIT_ACCOUNT_NUMBER = 'SUBMIT_ACCOUNT_NUMBER', ++ SUBMIT_DOCUMENTS = 'SUBMIT_DOCUMENTS', ++ SUBMIT_DOCUMENTS_SUCCESS = 'SUBMIT_DOCUMENTS_SUCCESS', ++ SUBMIT_DOCUMENTS_ERROR = 'SUBMIT_DOCUMENTS_ERROR', ++ SUBMIT_ROUTING_NUMBER = 'SUBMIT_ROUTING_NUMBER', ++ VIEW_DATA_TYPES = 'VIEW_DATA_TYPES', ++ SUBMIT_PHONE = 'SUBMIT_PHONE', ++ SKIP_SUBMIT_PHONE = 'SKIP_SUBMIT_PHONE', ++ VERIFY_PHONE = 'VERIFY_PHONE', ++ SUBMIT_CREDENTIALS = 'SUBMIT_CREDENTIALS', ++ SUBMIT_MFA = 'SUBMIT_MFA', ++ TRANSITION_VIEW = 'TRANSITION_VIEW', ++ CONNECT_NEW_INSTITUTION = 'CONNECT_NEW_INSTITUTION', ++} ++ ++export enum LinkEventViewName { ++ ACCEPT_TOS = 'ACCEPT_TOS', ++ CONNECTED = 'CONNECTED', ++ CONSENT = 'CONSENT', ++ CREDENTIAL = 'CREDENTIAL', ++ DATA_TRANSPARENCY = 'DATA_TRANSPARENCY', ++ DATA_TRANSPARENCY_CONSENT = 'DATA_TRANSPARENCY_CONSENT', ++ DOCUMENTARY_VERIFICATION = 'DOCUMENTARY_VERIFICATION', ++ ERROR = 'ERROR', ++ EXIT = 'EXIT', ++ KYC_CHECK = 'KYC_CHECK', ++ SELFIE_CHECK = 'SELFIE_CHECK', ++ LOADING = 'LOADING', ++ MATCHED_CONSENT = 'MATCHED_CONSENT', ++ MATCHED_CREDENTIAL = 'MATCHED_CREDENTIAL', ++ MATCHED_MFA = 'MATCHED_MFA', ++ MFA = 'MFA', ++ NUMBERS = 'NUMBERS', ++ NUMBERS_SELECT_INSTITUTION = 'NUMBERS_SELECT_INSTITUTION', ++ OAUTH = 'OAUTH', ++ RECAPTCHA = 'RECAPTCHA', ++ RISK_CHECK = 'RISK_CHECK', ++ SCREENING = 'SCREENING', ++ SELECT_ACCOUNT = 'SELECT_ACCOUNT', ++ SELECT_AUTH_TYPE = 'SELECT_AUTH_TYPE', ++ SUBMIT_PHONE = 'SUBMIT_PHONE', ++ VERIFY_PHONE = 'VERIFY_PHONE', ++ SELECT_SAVED_INSTITUTION = 'SELECT_SAVED_INSTITUTION', ++ SELECT_SAVED_ACCOUNT = 'SELECT_SAVED_ACCOUNT', ++ SELECT_BRAND = 'SELECT_BRAND', ++ SELECT_INSTITUTION = 'SELECT_INSTITUTION', ++ SUBMIT_DOCUMENTS = 'SUBMIT_DOCUMENTS', ++ SUBMIT_DOCUMENTS_SUCCESS = 'SUBMIT_DOCUMENTS_SUCCESS', ++ SUBMIT_DOCUMENTS_ERROR = 'SUBMIT_DOCUMENTS_ERROR', ++ UPLOAD_DOCUMENTS = 'UPLOAD_DOCUMENTS', ++ VERIFY_SMS = 'VERIFY_SMS', ++} ++ ++/// Methods to present Link on iOS. ++/// FULL_SCREEN is the converts to UIModalPresentationOverFullScreen on the native side. ++/// MODAL will use the default presentation style for iOS which is UIModalPresentationAutomatic. ++export enum LinkIOSPresentationStyle { ++ FULL_SCREEN = 'FULL_SCREEN', ++ MODAL = 'MODAL' ++} ++ ++export type LinkSuccessListener = (LinkSuccess: LinkSuccess) => void ++ ++export type LinkExitListener = (LinkExit: LinkExit) => void ++ ++export type LinkOnEventListener = (LinkEvent: LinkEvent) => void ++ ++export interface PlaidLinkProps { ++ tokenConfig: LinkTokenConfiguration ++ onSuccess: LinkSuccessListener ++ onExit?: LinkExitListener ++ iOSPresentationStyle?: LinkIOSPresentationStyle ++ logLevel?: LinkLogLevel ++ onPress?(): any ++} ++ ++export type PlaidLinkComponentProps = (PlaidLinkProps & { ++ children: React.ReactNode ++}); +diff --git a/node_modules/react-native-plaid-link-sdk/src/__tests__/Types.tests.ts b/node_modules/react-native-plaid-link-sdk/src/__tests__/Types.tests.ts +new file mode 100644 +index 0000000..2dd7a54 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/__tests__/Types.tests.ts +@@ -0,0 +1,15 @@ ++const Types = require('./../Types'); ++ ++test('test token configuration', () => { ++ const linkTokenConfiguration = { ++ token: "test-token", ++ noLoadingState: false, ++ logLevel: Types.LinkLogLevel.DEBUG, ++ extras: null, ++ }; ++ ++ expect(linkTokenConfiguration.noLoadingState).toBe(false); ++ expect(linkTokenConfiguration.token).toBe("test-token"); ++ expect(linkTokenConfiguration.logLevel).toBe(Types.LinkLogLevel.DEBUG); ++ expect(linkTokenConfiguration.extras).toBe(null); ++}); +\ No newline at end of file +diff --git a/node_modules/react-native-plaid-link-sdk/src/fabric/NativePlaidLinkModuleAndroid.ts b/node_modules/react-native-plaid-link-sdk/src/fabric/NativePlaidLinkModuleAndroid.ts +new file mode 100644 +index 0000000..d1e4062 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/fabric/NativePlaidLinkModuleAndroid.ts +@@ -0,0 +1,20 @@ ++// we use Object type because methods on the native side use NSDictionary and ReadableMap ++// and we want to stay compatible with those ++import {TurboModuleRegistry, TurboModule} from 'react-native'; ++import { Int32, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes'; ++ ++export interface Spec extends TurboModule { ++ startLinkActivityForResult( ++ token: string, ++ noLoadingState: boolean, ++ logLevel: string, ++ onSuccessCallback: (result: UnsafeObject) => void, ++ onExitCallback: (result: UnsafeObject) => void ++ ): void; ++ ++ // those two are here for event emitter methods ++ addListener(eventName: string): void; ++ removeListeners(count: Int32): void; ++} ++ ++export default TurboModuleRegistry.get('PlaidAndroid'); +diff --git a/node_modules/react-native-plaid-link-sdk/src/fabric/NativePlaidLinkModuleiOS.ts b/node_modules/react-native-plaid-link-sdk/src/fabric/NativePlaidLinkModuleiOS.ts +new file mode 100644 +index 0000000..d1b3565 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/fabric/NativePlaidLinkModuleiOS.ts +@@ -0,0 +1,19 @@ ++// we use Object type because methods on the native side use NSDictionary and ReadableMap ++// and we want to stay compatible with those ++import {TurboModuleRegistry, TurboModule} from 'react-native'; ++import { Int32, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes'; ++ ++export interface Spec extends TurboModule { ++ create(token: string, noLoadingState: boolean): void; ++ open( ++ fullScreen: boolean, ++ onSuccess: (success: UnsafeObject) => void, ++ onExit: (error: UnsafeObject, result: UnsafeObject) => void, ++ ): void; ++ dismiss(): void; ++ // those two are here for event emitter methods ++ addListener(eventName: string): void; ++ removeListeners(count: Int32): void; ++} ++ ++export default TurboModuleRegistry.get('RNLinksdk'); +diff --git a/node_modules/react-native-plaid-link-sdk/src/index.ts b/node_modules/react-native-plaid-link-sdk/src/index.ts +new file mode 100644 +index 0000000..23ef946 +--- /dev/null ++++ b/node_modules/react-native-plaid-link-sdk/src/index.ts +@@ -0,0 +1,21 @@ ++import { ++ openLink, ++ dismissLink, ++ usePlaidEmitter, ++ PlaidLink, ++} from './PlaidLink'; ++ ++export * from './Types'; ++ ++export default PlaidLink; ++ ++export { ++ PlaidLink, ++ openLink, ++ dismissLink, ++ usePlaidEmitter, ++}; ++ ++// Components ++ ++export { EmbeddedLinkView } from './EmbeddedLink/EmbeddedLinkView'; +\ No newline at end of file diff --git a/patches/react-native-screens+3.29.0+001+initial.patch b/patches/react-native-screens+3.29.0+001+initial.patch new file mode 100644 index 000000000000..dbe65b2abf3f --- /dev/null +++ b/patches/react-native-screens+3.29.0+001+initial.patch @@ -0,0 +1,49 @@ +diff --git a/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt b/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt +index d9e0e58..2d946c4 100644 +--- a/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt ++++ b/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt +@@ -3,7 +3,6 @@ package com.swmansion.rnscreens + import android.view.ViewGroup + import androidx.annotation.UiThread + import com.facebook.react.bridge.ReactContext +-import com.facebook.react.bridge.ReadableMap + import com.facebook.react.bridge.WritableMap + import com.facebook.react.bridge.WritableNativeMap + import com.facebook.react.uimanager.FabricViewStateManager +@@ -13,6 +12,9 @@ import kotlin.math.abs + abstract class FabricEnabledViewGroup constructor(context: ReactContext?) : ViewGroup(context), FabricViewStateManager.HasFabricViewStateManager { + private val mFabricViewStateManager: FabricViewStateManager = FabricViewStateManager() + ++ private var lastSetWidth = 0f ++ private var lastSetHeight = 0f ++ + override fun getFabricViewStateManager(): FabricViewStateManager { + return mFabricViewStateManager + } +@@ -28,17 +30,16 @@ abstract class FabricEnabledViewGroup constructor(context: ReactContext?) : View + + // Check incoming state values. If they're already the correct value, return early to prevent + // infinite UpdateState/SetState loop. +- val currentState: ReadableMap? = mFabricViewStateManager.getStateData() +- if (currentState != null) { +- val delta = 0.9f +- val stateFrameHeight: Float = if (currentState.hasKey("frameHeight")) currentState.getDouble("frameHeight").toFloat() else 0f +- val stateFrameWidth: Float = if (currentState.hasKey("frameWidth")) currentState.getDouble("frameWidth").toFloat() else 0f +- if (abs(stateFrameWidth - realWidth) < delta && +- abs(stateFrameHeight - realHeight) < delta +- ) { +- return +- } ++ val delta = 0.9f ++ if (abs(lastSetWidth - realWidth) < delta && ++ abs(lastSetHeight - realHeight) < delta ++ ) { ++ return + } ++ ++ lastSetWidth = realWidth ++ lastSetHeight = realHeight ++ + mFabricViewStateManager.setState { + val map: WritableMap = WritableNativeMap() + map.putDouble("frameWidth", realWidth.toDouble()) diff --git a/patches/react-native-screens+3.29.0+002+fixLayoutIssues.patch b/patches/react-native-screens+3.29.0+002+fixLayoutIssues.patch new file mode 100644 index 000000000000..9654c9cfcb42 --- /dev/null +++ b/patches/react-native-screens+3.29.0+002+fixLayoutIssues.patch @@ -0,0 +1,214 @@ +diff --git a/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt b/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt +index 2d946c4..ccda8f3 100644 +--- a/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt ++++ b/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt +@@ -12,38 +12,36 @@ import kotlin.math.abs + abstract class FabricEnabledViewGroup constructor(context: ReactContext?) : ViewGroup(context), FabricViewStateManager.HasFabricViewStateManager { + private val mFabricViewStateManager: FabricViewStateManager = FabricViewStateManager() + +- private var lastSetWidth = 0f +- private var lastSetHeight = 0f ++ private var lastHeaderHeight: Double = 0.0 + + override fun getFabricViewStateManager(): FabricViewStateManager { + return mFabricViewStateManager + } + +- protected fun updateScreenSizeFabric(width: Int, height: Int) { +- updateState(width, height) ++ protected fun updateScreenSizeFabric(width: Int, height: Int, headerHeight: Double) { ++ updateState(width, height, headerHeight) + } + + @UiThread +- fun updateState(width: Int, height: Int) { ++ fun updateState(width: Int, height: Int, headerHeight: Double) { + val realWidth: Float = PixelUtil.toDIPFromPixel(width.toFloat()) + val realHeight: Float = PixelUtil.toDIPFromPixel(height.toFloat()) + + // Check incoming state values. If they're already the correct value, return early to prevent + // infinite UpdateState/SetState loop. +- val delta = 0.9f +- if (abs(lastSetWidth - realWidth) < delta && +- abs(lastSetHeight - realHeight) < delta +- ) { ++ val delta = 0.9 ++ if (abs(lastHeaderHeight - headerHeight) < delta) { + return + } + +- lastSetWidth = realWidth +- lastSetHeight = realHeight ++ lastHeaderHeight = headerHeight + + mFabricViewStateManager.setState { + val map: WritableMap = WritableNativeMap() + map.putDouble("frameWidth", realWidth.toDouble()) + map.putDouble("frameHeight", realHeight.toDouble()) ++ map.putDouble("contentOffsetX", 0.0) ++ map.putDouble("contentOffsetY", headerHeight) + map + } + } +diff --git a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt +index a7d28f9..e0b0d8e 100644 +--- a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt ++++ b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt +@@ -72,9 +72,9 @@ class Screen constructor(context: ReactContext?) : FabricEnabledViewGroup(contex + val width = r - l + val height = b - t + +- calculateHeaderHeight() ++ val headerHeight = if (container is ScreenStack) calculateHeaderHeight().first else 0.0 + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { +- updateScreenSizeFabric(width, height) ++ updateScreenSizeFabric(width, height, headerHeight) + } else { + updateScreenSizePaper(width, height) + } +@@ -246,7 +246,7 @@ class Screen constructor(context: ReactContext?) : FabricEnabledViewGroup(contex + mNativeBackButtonDismissalEnabled = enableNativeBackButtonDismissal + } + +- private fun calculateHeaderHeight() { ++ private fun calculateHeaderHeight(): Pair { + val actionBarTv = TypedValue() + val resolvedActionBarSize = context.theme.resolveAttribute(android.R.attr.actionBarSize, actionBarTv, true) + +@@ -265,6 +265,8 @@ class Screen constructor(context: ReactContext?) : FabricEnabledViewGroup(contex + val totalHeight = actionBarHeight + statusBarHeight + UIManagerHelper.getEventDispatcherForReactTag(context as ReactContext, id) + ?.dispatchEvent(HeaderHeightChangeEvent(id, totalHeight)) ++ ++ return actionBarHeight to statusBarHeight + } + + enum class StackPresentation { +diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h +index 67194d3..c1a1b40 100644 +--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h ++++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h +@@ -13,7 +13,7 @@ class RNSScreenComponentDescriptor final + using ConcreteComponentDescriptor::ConcreteComponentDescriptor; + + void adopt(ShadowNode& shadowNode) const override { +- react_native_assert( ++ react_native_assert( + dynamic_cast(&shadowNode)); + auto& screenShadowNode = + static_cast(shadowNode); +@@ -28,10 +28,7 @@ class RNSScreenComponentDescriptor final + shadowNode.getState()); + auto stateData = state->getData(); + +- if (stateData.frameSize.width != 0 && stateData.frameSize.height != 0) { +- layoutableShadowNode.setSize( +- Size{stateData.frameSize.width, stateData.frameSize.height}); +- } ++ layoutableShadowNode.setPadding({.bottom = stateData.contentOffset.y}); + + ConcreteComponentDescriptor::adopt(shadowNode); + } +diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp +index ba61ed8..0e3746e 100644 +--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp ++++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp +@@ -5,5 +5,11 @@ namespace react { + + extern const char RNSScreenComponentName[] = "RNSScreen"; + ++Point RNSScreenShadowNode::getContentOriginOffset() const { ++ auto stateData = getStateData(); ++ auto contentOffset = stateData.contentOffset; ++ return {contentOffset.x, contentOffset.y}; ++} ++ + } // namespace react + } // namespace facebook +diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h +index ef25dd1..bbd7599 100644 +--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h ++++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h +@@ -19,9 +19,11 @@ class JSI_EXPORT RNSScreenShadowNode final : public ConcreteViewShadowNode< + public: + using ConcreteViewShadowNode::ConcreteViewShadowNode; + ++ Point getContentOriginOffset() const override; ++ + static ShadowNodeTraits BaseTraits() { + auto traits = ConcreteViewShadowNode::BaseTraits(); +- traits.set(ShadowNodeTraits::Trait::RootNodeKind); ++ // traits.set(ShadowNodeTraits::Trait::RootNodeKind); + return traits; + } + }; +diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.cpp b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.cpp +index 69c77a6..6c3b8ca 100644 +--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.cpp ++++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.cpp +@@ -6,8 +6,8 @@ namespace react { + #ifdef ANDROID + folly::dynamic RNSScreenState::getDynamic() const { + return folly::dynamic::object("frameWidth", frameSize.width)( +- "frameHeight", frameSize.height); +-} ++ "frameHeight", frameSize.height)("contentOffsetX", contentOffset.x)("contentOffsetY", contentOffset.y); ++ } + #endif + + } // namespace react +diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.h b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.h +index ce09807..e26d411 100644 +--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.h ++++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenState.h +@@ -17,7 +17,7 @@ class JSI_EXPORT RNSScreenState final { + using Shared = std::shared_ptr; + + RNSScreenState(){}; +- RNSScreenState(Size frameSize_) : frameSize(frameSize_){}; ++ RNSScreenState(Size frameSize_, Point contentOffset_) : frameSize(frameSize_), contentOffset(contentOffset_){}; + + #ifdef ANDROID + RNSScreenState( +@@ -25,10 +25,14 @@ class JSI_EXPORT RNSScreenState final { + folly::dynamic data) + : frameSize(Size{ + (Float)data["frameWidth"].getDouble(), +- (Float)data["frameHeight"].getDouble()}){}; ++ (Float)data["frameHeight"].getDouble()}), ++ contentOffset(Point{ ++ (Float)data["contentOffsetX"].getDouble(), ++ (Float)data["contentOffsetY"].getDouble()}){}; + #endif + + const Size frameSize{}; ++ Point contentOffset; + + #ifdef ANDROID + folly::dynamic getDynamic() const; +diff --git a/node_modules/react-native-screens/ios/RNSScreen.h b/node_modules/react-native-screens/ios/RNSScreen.h +index f1bd9d8..797fc12 100644 +--- a/node_modules/react-native-screens/ios/RNSScreen.h ++++ b/node_modules/react-native-screens/ios/RNSScreen.h +@@ -42,6 +42,7 @@ namespace react = facebook::react; + #ifdef RCT_NEW_ARCH_ENABLED + - (void)setViewToSnapshot:(UIView *)snapshot; + - (void)resetViewToScreen; ++- (CGFloat)calculateHeaderHeightIsModal:(BOOL)isModal; + #endif + + @end +diff --git a/node_modules/react-native-screens/ios/RNSScreen.mm b/node_modules/react-native-screens/ios/RNSScreen.mm +index 4b24cff..8f480ca 100644 +--- a/node_modules/react-native-screens/ios/RNSScreen.mm ++++ b/node_modules/react-native-screens/ios/RNSScreen.mm +@@ -107,7 +107,8 @@ - (void)updateBounds + { + #ifdef RCT_NEW_ARCH_ENABLED + if (_state != nullptr) { +- auto newState = react::RNSScreenState{RCTSizeFromCGSize(self.bounds.size)}; ++ CGFloat headerHeight = [_controller calculateHeaderHeightIsModal:self.isPresentedAsNativeModal]; ++ auto newState = react::RNSScreenState{RCTSizeFromCGSize(self.bounds.size), RCTPointFromCGPoint(CGPointMake(0, headerHeight))}; + _state->updateState(std::move(newState)); + UINavigationController *navctr = _controller.navigationController; + [navctr.view setNeedsLayout]; diff --git a/patches/react-native-screens+3.29.0+003+fixIOSHeaderHeight.patch b/patches/react-native-screens+3.29.0+003+fixIOSHeaderHeight.patch new file mode 100644 index 000000000000..ae162204a692 --- /dev/null +++ b/patches/react-native-screens+3.29.0+003+fixIOSHeaderHeight.patch @@ -0,0 +1,35 @@ +diff --git a/node_modules/react-native-screens/ios/RNSScreen.mm b/node_modules/react-native-screens/ios/RNSScreen.mm +index 8f480ca..4cc5e7b 100644 +--- a/node_modules/react-native-screens/ios/RNSScreen.mm ++++ b/node_modules/react-native-screens/ios/RNSScreen.mm +@@ -108,7 +108,7 @@ - (void)updateBounds + #ifdef RCT_NEW_ARCH_ENABLED + if (_state != nullptr) { + CGFloat headerHeight = [_controller calculateHeaderHeightIsModal:self.isPresentedAsNativeModal]; +- auto newState = react::RNSScreenState{RCTSizeFromCGSize(self.bounds.size), RCTPointFromCGPoint(CGPointMake(0, headerHeight))}; ++ auto newState = react::RNSScreenState{RCTSizeFromCGSize(self.bounds.size), RCTPointFromCGPoint(CGPointMake(0, 0))}; + _state->updateState(std::move(newState)); + UINavigationController *navctr = _controller.navigationController; + [navctr.view setNeedsLayout]; +@@ -1106,17 +1106,11 @@ - (CGFloat)calculateHeaderHeightIsModal:(BOOL)isModal + { + UINavigationController *navctr = [self getVisibleNavigationControllerIsModal:isModal]; + +- // If navigation controller doesn't exists (or it is hidden) we want to handle two possible cases. +- // If there's no navigation controller for the modal, we simply don't want to return header height, as modal possibly +- // does not have header and we don't want to count status bar. If there's no navigation controller for the view we +- // just want to return status bar height (if it's hidden, it will simply return 0). ++ // If there's no navigation controller for the modal (or the navigation bar is hidden), we simply don't want to ++ // return header height, as modal possibly does not have header when navigation controller is nil, ++ // and we don't want to count status bar if navigation bar is hidden (inset could be negative). + if (navctr == nil || navctr.isNavigationBarHidden) { +- if (isModal) { +- return 0; +- } else { +- CGSize statusBarSize = [self getStatusBarHeightIsModal:isModal]; +- return MIN(statusBarSize.width, statusBarSize.height); +- } ++ return 0; + } + + CGFloat navbarHeight = navctr.navigationBar.frame.size.height; diff --git a/patches/react-native-vision-camera+4.0.0-beta.13.patch b/patches/react-native-vision-camera+4.0.0-beta.13.patch new file mode 100644 index 000000000000..6a1cd1c74576 --- /dev/null +++ b/patches/react-native-vision-camera+4.0.0-beta.13.patch @@ -0,0 +1,2106 @@ +diff --git a/node_modules/react-native-vision-camera/VisionCamera.podspec b/node_modules/react-native-vision-camera/VisionCamera.podspec +index 3a0e313..357a282 100644 +--- a/node_modules/react-native-vision-camera/VisionCamera.podspec ++++ b/node_modules/react-native-vision-camera/VisionCamera.podspec +@@ -40,6 +40,7 @@ Pod::Spec.new do |s| + # Note how this does not include headers, since those can nameclash. + s.source_files = [ + # Core ++ "ios/VisionCamera.h", + "ios/*.{m,mm,swift}", + "ios/Core/*.{m,mm,swift}", + "ios/Extensions/*.{m,mm,swift}", +@@ -47,6 +48,7 @@ Pod::Spec.new do |s| + "ios/React Utils/*.{m,mm,swift}", + "ios/Types/*.{m,mm,swift}", + "ios/CameraBridge.h", ++ "ios/RNCameraView.h", + + # Frame Processors + hasWorklets ? "ios/Frame Processor/*.{m,mm,swift}" : "", +@@ -66,9 +68,10 @@ Pod::Spec.new do |s| + "ios/**/*.h" + ] + +- s.dependency "React" +- s.dependency "React-Core" +- s.dependency "React-callinvoker" ++ s.pod_target_xcconfig = { ++ "OTHER_SWIFT_FLAGS" => "-DRCT_NEW_ARCH_ENABLED" ++ } ++ install_modules_dependencies(s) + + if hasWorklets + s.dependency "react-native-worklets-core" +diff --git a/node_modules/react-native-vision-camera/android/.editorconfig b/node_modules/react-native-vision-camera/android/.editorconfig +new file mode 100644 +index 0000000..2f08d6d +--- /dev/null ++++ b/node_modules/react-native-vision-camera/android/.editorconfig +@@ -0,0 +1,15 @@ ++[*.{kt,kts}] ++indent_style=space ++indent_size=2 ++continuation_indent_size=4 ++insert_final_newline=true ++max_line_length=140 ++ktlint_code_style=android_studio ++ktlint_standard=enabled ++ktlint_experimental=enabled ++ktlint_standard_filename=disabled # dont require PascalCase filenames ++ktlint_standard_no-wildcard-imports=disabled # allow .* imports ++ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than=5 ++ktlint_function_signature_body_expression_wrapping=multiline ++ij_kotlin_allow_trailing_comma_on_call_site=false ++ij_kotlin_allow_trailing_comma=false +diff --git a/node_modules/react-native-vision-camera/android/.project b/node_modules/react-native-vision-camera/android/.project +new file mode 100644 +index 0000000..0e0a1ba +--- /dev/null ++++ b/node_modules/react-native-vision-camera/android/.project +@@ -0,0 +1,17 @@ ++ ++ ++ android_ ++ Project android_ created by Buildship. ++ ++ ++ ++ ++ org.eclipse.buildship.core.gradleprojectbuilder ++ ++ ++ ++ ++ ++ org.eclipse.buildship.core.gradleprojectnature ++ ++ +diff --git a/node_modules/react-native-vision-camera/android/build.gradle b/node_modules/react-native-vision-camera/android/build.gradle +index 86e6290..eb59c56 100644 +--- a/node_modules/react-native-vision-camera/android/build.gradle ++++ b/node_modules/react-native-vision-camera/android/build.gradle +@@ -129,6 +129,12 @@ android { + sourceSets { + main { + manifest.srcFile androidManifestPath ++ ++ java { ++ if (!isNewArchitectureEnabled()) { ++ srcDirs += 'oldarch/src/main/java' ++ } ++ } + } + } + +diff --git a/node_modules/react-native-vision-camera/android/gradlew b/node_modules/react-native-vision-camera/android/gradlew +new file mode 100755 +index 0000000..1b6c787 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/android/gradlew +@@ -0,0 +1,234 @@ ++#!/bin/sh ++ ++# ++# Copyright © 2015-2021 the original authors. ++# ++# Licensed under the Apache License, Version 2.0 (the "License"); ++# you may not use this file except in compliance with the License. ++# You may obtain a copy of the License at ++# ++# https://www.apache.org/licenses/LICENSE-2.0 ++# ++# Unless required by applicable law or agreed to in writing, software ++# distributed under the License is distributed on an "AS IS" BASIS, ++# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++# See the License for the specific language governing permissions and ++# limitations under the License. ++# ++ ++############################################################################## ++# ++# Gradle start up script for POSIX generated by Gradle. ++# ++# Important for running: ++# ++# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is ++# noncompliant, but you have some other compliant shell such as ksh or ++# bash, then to run this script, type that shell name before the whole ++# command line, like: ++# ++# ksh Gradle ++# ++# Busybox and similar reduced shells will NOT work, because this script ++# requires all of these POSIX shell features: ++# * functions; ++# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», ++# «${var#prefix}», «${var%suffix}», and «$( cmd )»; ++# * compound commands having a testable exit status, especially «case»; ++# * various built-in commands including «command», «set», and «ulimit». ++# ++# Important for patching: ++# ++# (2) This script targets any POSIX shell, so it avoids extensions provided ++# by Bash, Ksh, etc; in particular arrays are avoided. ++# ++# The "traditional" practice of packing multiple parameters into a ++# space-separated string is a well documented source of bugs and security ++# problems, so this is (mostly) avoided, by progressively accumulating ++# options in "$@", and eventually passing that to Java. ++# ++# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, ++# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; ++# see the in-line comments for details. ++# ++# There are tweaks for specific operating systems such as AIX, CygWin, ++# Darwin, MinGW, and NonStop. ++# ++# (3) This script is generated from the Groovy template ++# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt ++# within the Gradle project. ++# ++# You can find Gradle at https://github.com/gradle/gradle/. ++# ++############################################################################## ++ ++# Attempt to set APP_HOME ++ ++# Resolve links: $0 may be a link ++app_path=$0 ++ ++# Need this for daisy-chained symlinks. ++while ++ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path ++ [ -h "$app_path" ] ++do ++ ls=$( ls -ld "$app_path" ) ++ link=${ls#*' -> '} ++ case $link in #( ++ /*) app_path=$link ;; #( ++ *) app_path=$APP_HOME$link ;; ++ esac ++done ++ ++APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit ++ ++APP_NAME="Gradle" ++APP_BASE_NAME=${0##*/} ++ ++# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. ++DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' ++ ++# Use the maximum available, or set MAX_FD != -1 to use that value. ++MAX_FD=maximum ++ ++warn () { ++ echo "$*" ++} >&2 ++ ++die () { ++ echo ++ echo "$*" ++ echo ++ exit 1 ++} >&2 ++ ++# OS specific support (must be 'true' or 'false'). ++cygwin=false ++msys=false ++darwin=false ++nonstop=false ++case "$( uname )" in #( ++ CYGWIN* ) cygwin=true ;; #( ++ Darwin* ) darwin=true ;; #( ++ MSYS* | MINGW* ) msys=true ;; #( ++ NONSTOP* ) nonstop=true ;; ++esac ++ ++CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar ++ ++ ++# Determine the Java command to use to start the JVM. ++if [ -n "$JAVA_HOME" ] ; then ++ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then ++ # IBM's JDK on AIX uses strange locations for the executables ++ JAVACMD=$JAVA_HOME/jre/sh/java ++ else ++ JAVACMD=$JAVA_HOME/bin/java ++ fi ++ if [ ! -x "$JAVACMD" ] ; then ++ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME ++ ++Please set the JAVA_HOME variable in your environment to match the ++location of your Java installation." ++ fi ++else ++ JAVACMD=java ++ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. ++ ++Please set the JAVA_HOME variable in your environment to match the ++location of your Java installation." ++fi ++ ++# Increase the maximum file descriptors if we can. ++if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then ++ case $MAX_FD in #( ++ max*) ++ MAX_FD=$( ulimit -H -n ) || ++ warn "Could not query maximum file descriptor limit" ++ esac ++ case $MAX_FD in #( ++ '' | soft) :;; #( ++ *) ++ ulimit -n "$MAX_FD" || ++ warn "Could not set maximum file descriptor limit to $MAX_FD" ++ esac ++fi ++ ++# Collect all arguments for the java command, stacking in reverse order: ++# * args from the command line ++# * the main class name ++# * -classpath ++# * -D...appname settings ++# * --module-path (only if needed) ++# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. ++ ++# For Cygwin or MSYS, switch paths to Windows format before running java ++if "$cygwin" || "$msys" ; then ++ APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) ++ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) ++ ++ JAVACMD=$( cygpath --unix "$JAVACMD" ) ++ ++ # Now convert the arguments - kludge to limit ourselves to /bin/sh ++ for arg do ++ if ++ case $arg in #( ++ -*) false ;; # don't mess with options #( ++ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath ++ [ -e "$t" ] ;; #( ++ *) false ;; ++ esac ++ then ++ arg=$( cygpath --path --ignore --mixed "$arg" ) ++ fi ++ # Roll the args list around exactly as many times as the number of ++ # args, so each arg winds up back in the position where it started, but ++ # possibly modified. ++ # ++ # NB: a `for` loop captures its iteration list before it begins, so ++ # changing the positional parameters here affects neither the number of ++ # iterations, nor the values presented in `arg`. ++ shift # remove old arg ++ set -- "$@" "$arg" # push replacement arg ++ done ++fi ++ ++# Collect all arguments for the java command; ++# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of ++# shell script including quotes and variable substitutions, so put them in ++# double quotes to make sure that they get re-expanded; and ++# * put everything else in single quotes, so that it's not re-expanded. ++ ++set -- \ ++ "-Dorg.gradle.appname=$APP_BASE_NAME" \ ++ -classpath "$CLASSPATH" \ ++ org.gradle.wrapper.GradleWrapperMain \ ++ "$@" ++ ++# Use "xargs" to parse quoted args. ++# ++# With -n1 it outputs one arg per line, with the quotes and backslashes removed. ++# ++# In Bash we could simply go: ++# ++# readarray ARGS < <( xargs -n1 <<<"$var" ) && ++# set -- "${ARGS[@]}" "$@" ++# ++# but POSIX shell has neither arrays nor command substitution, so instead we ++# post-process each arg (as a line of input to sed) to backslash-escape any ++# character that might be a shell metacharacter, then use eval to reverse ++# that process (while maintaining the separation between arguments), and wrap ++# the whole thing up as a single "set" statement. ++# ++# This will of course break if any of these variables contains a newline or ++# an unmatched quote. ++# ++ ++eval "set -- $( ++ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | ++ xargs -n1 | ++ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | ++ tr '\n' ' ' ++ )" '"$@"' ++ ++exec "$JAVACMD" "$@" +diff --git a/node_modules/react-native-vision-camera/android/gradlew.bat b/node_modules/react-native-vision-camera/android/gradlew.bat +new file mode 100644 +index 0000000..107acd3 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/android/gradlew.bat +@@ -0,0 +1,89 @@ ++@rem ++@rem Copyright 2015 the original author or authors. ++@rem ++@rem Licensed under the Apache License, Version 2.0 (the "License"); ++@rem you may not use this file except in compliance with the License. ++@rem You may obtain a copy of the License at ++@rem ++@rem https://www.apache.org/licenses/LICENSE-2.0 ++@rem ++@rem Unless required by applicable law or agreed to in writing, software ++@rem distributed under the License is distributed on an "AS IS" BASIS, ++@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++@rem See the License for the specific language governing permissions and ++@rem limitations under the License. ++@rem ++ ++@if "%DEBUG%" == "" @echo off ++@rem ########################################################################## ++@rem ++@rem Gradle startup script for Windows ++@rem ++@rem ########################################################################## ++ ++@rem Set local scope for the variables with windows NT shell ++if "%OS%"=="Windows_NT" setlocal ++ ++set DIRNAME=%~dp0 ++if "%DIRNAME%" == "" set DIRNAME=. ++set APP_BASE_NAME=%~n0 ++set APP_HOME=%DIRNAME% ++ ++@rem Resolve any "." and ".." in APP_HOME to make it shorter. ++for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi ++ ++@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. ++set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" ++ ++@rem Find java.exe ++if defined JAVA_HOME goto findJavaFromJavaHome ++ ++set JAVA_EXE=java.exe ++%JAVA_EXE% -version >NUL 2>&1 ++if "%ERRORLEVEL%" == "0" goto execute ++ ++echo. ++echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. ++echo. ++echo Please set the JAVA_HOME variable in your environment to match the ++echo location of your Java installation. ++ ++goto fail ++ ++:findJavaFromJavaHome ++set JAVA_HOME=%JAVA_HOME:"=% ++set JAVA_EXE=%JAVA_HOME%/bin/java.exe ++ ++if exist "%JAVA_EXE%" goto execute ++ ++echo. ++echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% ++echo. ++echo Please set the JAVA_HOME variable in your environment to match the ++echo location of your Java installation. ++ ++goto fail ++ ++:execute ++@rem Setup the command line ++ ++set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar ++ ++ ++@rem Execute Gradle ++"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* ++ ++:end ++@rem End local scope for the variables with windows NT shell ++if "%ERRORLEVEL%"=="0" goto mainEnd ++ ++:fail ++rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of ++rem the _cmd.exe /c_ return code! ++if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 ++exit /b 1 ++ ++:mainEnd ++if "%OS%"=="Windows_NT" endlocal ++ ++:omega +diff --git a/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerDelegate.java b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerDelegate.java +new file mode 100644 +index 0000000..afafa8a +--- /dev/null ++++ b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerDelegate.java +@@ -0,0 +1,113 @@ ++/** ++* 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: GeneratePropsJavaDelegate.js ++*/ ++ ++package com.facebook.react.viewmanagers; ++ ++import android.view.View; ++import androidx.annotation.Nullable; ++import com.facebook.react.bridge.ReadableMap; ++import com.facebook.react.uimanager.BaseViewManagerDelegate; ++import com.facebook.react.uimanager.BaseViewManagerInterface; ++ ++public class CameraViewManagerDelegate & CameraViewManagerInterface> extends BaseViewManagerDelegate { ++ public CameraViewManagerDelegate(U viewManager) { ++ super(viewManager); ++ } ++ @Override ++ public void setProperty(T view, String propName, @Nullable Object value) { ++ switch (propName) { ++ case "enableGpuBuffers": ++ mViewManager.setEnableGpuBuffers(view, value == null ? false : (boolean) value); ++ break; ++ case "androidPreviewViewType": ++ mViewManager.setAndroidPreviewViewType(view, value == null ? null : (String) value); ++ break; ++ case "codeScannerOptions": ++ mViewManager.setCodeScannerOptions(view, (ReadableMap) value); ++ break; ++ case "cameraId": ++ mViewManager.setCameraId(view, value == null ? null : (String) value); ++ break; ++ case "enableFrameProcessor": ++ mViewManager.setEnableFrameProcessor(view, value == null ? false : (boolean) value); ++ break; ++ case "enableLocation": ++ mViewManager.setEnableLocation(view, value == null ? false : (boolean) value); ++ break; ++ case "enableBufferCompression": ++ mViewManager.setEnableBufferCompression(view, value == null ? false : (boolean) value); ++ break; ++ case "photoQualityBalance": ++ mViewManager.setPhotoQualityBalance(view, value == null ? null : (String) value); ++ break; ++ case "isActive": ++ mViewManager.setIsActive(view, value == null ? false : (boolean) value); ++ break; ++ case "photo": ++ mViewManager.setPhoto(view, value == null ? false : (boolean) value); ++ break; ++ case "video": ++ mViewManager.setVideo(view, value == null ? false : (boolean) value); ++ break; ++ case "audio": ++ mViewManager.setAudio(view, value == null ? false : (boolean) value); ++ break; ++ case "torch": ++ mViewManager.setTorch(view, value == null ? null : (String) value); ++ break; ++ case "zoom": ++ mViewManager.setZoom(view, value == null ? 0f : ((Double) value).doubleValue()); ++ break; ++ case "exposure": ++ mViewManager.setExposure(view, value == null ? 0f : ((Double) value).doubleValue()); ++ break; ++ case "enableZoomGesture": ++ mViewManager.setEnableZoomGesture(view, value == null ? false : (boolean) value); ++ break; ++ case "enableFpsGraph": ++ mViewManager.setEnableFpsGraph(view, value == null ? false : (boolean) value); ++ break; ++ case "resizeMode": ++ mViewManager.setResizeMode(view, value == null ? null : (String) value); ++ break; ++ case "format": ++ mViewManager.setFormat(view, (ReadableMap) value); ++ break; ++ case "pixelFormat": ++ mViewManager.setPixelFormat(view, value == null ? null : (String) value); ++ break; ++ case "fps": ++ mViewManager.setFps(view, value == null ? 0 : ((Double) value).intValue()); ++ break; ++ case "videoHdr": ++ mViewManager.setVideoHdr(view, value == null ? false : (boolean) value); ++ break; ++ case "photoHdr": ++ mViewManager.setPhotoHdr(view, value == null ? false : (boolean) value); ++ break; ++ case "lowLightBoost": ++ mViewManager.setLowLightBoost(view, value == null ? false : (boolean) value); ++ break; ++ case "videoStabilizationMode": ++ mViewManager.setVideoStabilizationMode(view, value == null ? null : (String) value); ++ break; ++ case "enableDepthData": ++ mViewManager.setEnableDepthData(view, value == null ? false : (boolean) value); ++ break; ++ case "enablePortraitEffectsMatteDelivery": ++ mViewManager.setEnablePortraitEffectsMatteDelivery(view, value == null ? false : (boolean) value); ++ break; ++ case "orientation": ++ mViewManager.setOrientation(view, value == null ? null : (String) value); ++ break; ++ default: ++ super.setProperty(view, propName, value); ++ } ++ } ++} +diff --git a/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerInterface.java b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerInterface.java +new file mode 100644 +index 0000000..94079b2 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerInterface.java +@@ -0,0 +1,45 @@ ++/** ++* 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: GeneratePropsJavaInterface.js ++*/ ++ ++package com.facebook.react.viewmanagers; ++ ++import android.view.View; ++import androidx.annotation.Nullable; ++import com.facebook.react.bridge.ReadableMap; ++ ++public interface CameraViewManagerInterface { ++ void setEnableGpuBuffers(T view, boolean value); ++ void setAndroidPreviewViewType(T view, @Nullable String value); ++ void setCodeScannerOptions(T view, @Nullable ReadableMap value); ++ void setCameraId(T view, @Nullable String value); ++ void setEnableFrameProcessor(T view, boolean value); ++ void setEnableLocation(T view, boolean value); ++ void setEnableBufferCompression(T view, boolean value); ++ void setPhotoQualityBalance(T view, @Nullable String value); ++ void setIsActive(T view, boolean value); ++ void setPhoto(T view, boolean value); ++ void setVideo(T view, boolean value); ++ void setAudio(T view, boolean value); ++ void setTorch(T view, @Nullable String value); ++ void setZoom(T view, double value); ++ void setExposure(T view, double value); ++ void setEnableZoomGesture(T view, boolean value); ++ void setEnableFpsGraph(T view, boolean value); ++ void setResizeMode(T view, @Nullable String value); ++ void setFormat(T view, @Nullable ReadableMap value); ++ void setPixelFormat(T view, @Nullable String value); ++ void setFps(T view, int value); ++ void setVideoHdr(T view, boolean value); ++ void setPhotoHdr(T view, boolean value); ++ void setLowLightBoost(T view, boolean value); ++ void setVideoStabilizationMode(T view, @Nullable String value); ++ void setEnableDepthData(T view, boolean value); ++ void setEnablePortraitEffectsMatteDelivery(T view, boolean value); ++ void setOrientation(T view, @Nullable String value); ++} +diff --git a/node_modules/react-native-vision-camera/android/settings.gradle b/node_modules/react-native-vision-camera/android/settings.gradle +new file mode 100644 +index 0000000..56a6c3d +--- /dev/null ++++ b/node_modules/react-native-vision-camera/android/settings.gradle +@@ -0,0 +1,3 @@ ++rootProject.name = 'VisionCamera' ++ ++include ':VisionCamera' +diff --git a/node_modules/react-native-vision-camera/android/src/main/.DS_Store b/node_modules/react-native-vision-camera/android/src/main/.DS_Store +new file mode 100644 +index 0000000..63b728b +Binary files /dev/null and b/node_modules/react-native-vision-camera/android/src/main/.DS_Store differ +diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt +index a7c8358..a935ef6 100644 +--- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt ++++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt +@@ -20,7 +20,7 @@ import kotlinx.coroutines.launch + + class CameraDevicesManager(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) { + companion object { +- private const val TAG = "CameraDevices" ++ public const val TAG = "CameraDevices" + } + private val executor = CameraQueues.cameraExecutor + private val coroutineScope = CoroutineScope(executor.asCoroutineDispatcher()) +diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt +index 25e1f55..33b9dd3 100644 +--- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt ++++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt +@@ -1,11 +1,14 @@ + package com.mrousavy.camera + +-import com.facebook.react.ReactPackage ++import com.facebook.react.TurboReactPackage + import com.facebook.react.bridge.NativeModule + import com.facebook.react.bridge.ReactApplicationContext ++import com.facebook.react.module.model.ReactModuleInfo ++import com.facebook.react.module.model.ReactModuleInfoProvider + import com.facebook.react.uimanager.ViewManager + +-class CameraPackage : ReactPackage { ++ ++class CameraPackage : TurboReactPackage() { + override fun createNativeModules(reactContext: ReactApplicationContext): List = + listOf( + CameraViewModule(reactContext), +@@ -13,4 +16,39 @@ class CameraPackage : ReactPackage { + ) + + override fun createViewManagers(reactContext: ReactApplicationContext): List> = listOf(CameraViewManager()) ++ ++ override fun getModule(name: String, context: ReactApplicationContext): NativeModule? { ++ return when (name) { ++ CameraViewModule.TAG -> CameraViewModule(context) ++ CameraDevicesManager.TAG -> CameraDevicesManager(context) ++ else -> null ++ } ++ } ++ ++ override fun getReactModuleInfoProvider(): ReactModuleInfoProvider { ++ return ReactModuleInfoProvider { ++ val moduleInfos: MutableMap = HashMap() ++ ++ moduleInfos[CameraViewModule.TAG] = ReactModuleInfo( ++ CameraViewModule.TAG, ++ CameraViewModule.TAG, ++ false, // canOverrideExistingModule ++ true, // needsEagerInit ++ true, // hasConstants ++ false, // isCxxModule ++ false // isTurboModule ++ ) ++ ++ moduleInfos[CameraDevicesManager.TAG] = ReactModuleInfo( ++ CameraDevicesManager.TAG, ++ CameraDevicesManager.TAG, ++ false, // canOverrideExistingModule ++ true, // needsEagerInit ++ true, // hasConstants ++ false, // isCxxModule ++ false // isTurboModule ++ ) ++ moduleInfos ++ } ++ } + } +diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt +index f2b284c..e348e5c 100644 +--- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt ++++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt +@@ -4,7 +4,10 @@ import com.facebook.react.bridge.ReadableMap + import com.facebook.react.common.MapBuilder + import com.facebook.react.uimanager.ThemedReactContext + import com.facebook.react.uimanager.ViewGroupManager ++import com.facebook.react.uimanager.ViewManagerDelegate + import com.facebook.react.uimanager.annotations.ReactProp ++import com.facebook.react.viewmanagers.CameraViewManagerDelegate ++import com.facebook.react.viewmanagers.CameraViewManagerInterface + import com.mrousavy.camera.types.CameraDeviceFormat + import com.mrousavy.camera.types.CodeScannerOptions + import com.mrousavy.camera.types.Orientation +@@ -16,10 +19,19 @@ import com.mrousavy.camera.types.Torch + import com.mrousavy.camera.types.VideoStabilizationMode + + @Suppress("unused") +-class CameraViewManager : ViewGroupManager() { ++class CameraViewManager : ViewGroupManager(), CameraViewManagerInterface { + companion object { + const val TAG = "CameraView" + } ++ ++ private val mDelegate: ViewManagerDelegate ++ ++ init { ++ mDelegate = CameraViewManagerDelegate(this) ++ } ++ ++ override fun getDelegate() = mDelegate ++ + public override fun createViewInstance(context: ThemedReactContext): CameraView = CameraView(context) + + override fun onAfterUpdateTransaction(view: CameraView) { +@@ -46,37 +58,37 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "cameraId") +- fun setCameraId(view: CameraView, cameraId: String) { ++ override fun setCameraId(view: CameraView, cameraId: String?) { + view.cameraId = cameraId + } + + @ReactProp(name = "photo") +- fun setPhoto(view: CameraView, photo: Boolean) { ++ override fun setPhoto(view: CameraView, photo: Boolean) { + view.photo = photo + } + + @ReactProp(name = "video") +- fun setVideo(view: CameraView, video: Boolean) { ++ override fun setVideo(view: CameraView, video: Boolean) { + view.video = video + } + + @ReactProp(name = "audio") +- fun setAudio(view: CameraView, audio: Boolean) { ++ override fun setAudio(view: CameraView, audio: Boolean) { + view.audio = audio + } + + @ReactProp(name = "enableLocation") +- fun setEnableLocation(view: CameraView, enableLocation: Boolean) { ++ override fun setEnableLocation(view: CameraView, enableLocation: Boolean) { + view.enableLocation = enableLocation + } + + @ReactProp(name = "enableFrameProcessor") +- fun setEnableFrameProcessor(view: CameraView, enableFrameProcessor: Boolean) { ++ override fun setEnableFrameProcessor(view: CameraView, enableFrameProcessor: Boolean) { + view.enableFrameProcessor = enableFrameProcessor + } + + @ReactProp(name = "pixelFormat") +- fun setPixelFormat(view: CameraView, pixelFormat: String?) { ++ override fun setPixelFormat(view: CameraView, pixelFormat: String?) { + if (pixelFormat != null) { + val newPixelFormat = PixelFormat.fromUnionValue(pixelFormat) + view.pixelFormat = newPixelFormat +@@ -86,27 +98,27 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "enableDepthData") +- fun setEnableDepthData(view: CameraView, enableDepthData: Boolean) { ++ override fun setEnableDepthData(view: CameraView, enableDepthData: Boolean) { + view.enableDepthData = enableDepthData + } + + @ReactProp(name = "enableZoomGesture") +- fun setEnableZoomGesture(view: CameraView, enableZoomGesture: Boolean) { ++ override fun setEnableZoomGesture(view: CameraView, enableZoomGesture: Boolean) { + view.enableZoomGesture = enableZoomGesture + } + + @ReactProp(name = "enableFpsGraph") +- fun setEnableFpsGraph(view: CameraView, enableFpsGraph: Boolean) { ++ override fun setEnableFpsGraph(view: CameraView, enableFpsGraph: Boolean) { + view.enableFpsGraph = enableFpsGraph + } + + @ReactProp(name = "enableGpuBuffers") +- fun setEnableGpuBuffers(view: CameraView, enableGpuBuffers: Boolean) { ++ override fun setEnableGpuBuffers(view: CameraView, enableGpuBuffers: Boolean) { + view.enableGpuBuffers = enableGpuBuffers + } + + @ReactProp(name = "videoStabilizationMode") +- fun setVideoStabilizationMode(view: CameraView, videoStabilizationMode: String?) { ++ override fun setVideoStabilizationMode(view: CameraView, videoStabilizationMode: String?) { + if (videoStabilizationMode != null) { + val newMode = VideoStabilizationMode.fromUnionValue(videoStabilizationMode) + view.videoStabilizationMode = newMode +@@ -116,12 +128,12 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "enablePortraitEffectsMatteDelivery") +- fun setEnablePortraitEffectsMatteDelivery(view: CameraView, enablePortraitEffectsMatteDelivery: Boolean) { ++ override fun setEnablePortraitEffectsMatteDelivery(view: CameraView, enablePortraitEffectsMatteDelivery: Boolean) { + view.enablePortraitEffectsMatteDelivery = enablePortraitEffectsMatteDelivery + } + + @ReactProp(name = "format") +- fun setFormat(view: CameraView, format: ReadableMap?) { ++ override fun setFormat(view: CameraView, format: ReadableMap?) { + if (format != null) { + val newFormat = CameraDeviceFormat.fromJSValue(format) + view.format = newFormat +@@ -131,7 +143,7 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "resizeMode") +- fun setResizeMode(view: CameraView, resizeMode: String?) { ++ override fun setResizeMode(view: CameraView, resizeMode: String?) { + if (resizeMode != null) { + val newMode = ResizeMode.fromUnionValue(resizeMode) + view.resizeMode = newMode +@@ -141,7 +153,7 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "androidPreviewViewType") +- fun setAndroidPreviewViewType(view: CameraView, androidPreviewViewType: String?) { ++ override fun setAndroidPreviewViewType(view: CameraView, androidPreviewViewType: String?) { + if (androidPreviewViewType != null) { + val newMode = PreviewViewType.fromUnionValue(androidPreviewViewType) + view.androidPreviewViewType = newMode +@@ -154,17 +166,17 @@ class CameraViewManager : ViewGroupManager() { + // We're treating -1 as "null" here, because when I make the fps parameter + // of type "Int?" the react bridge throws an error. + @ReactProp(name = "fps", defaultInt = -1) +- fun setFps(view: CameraView, fps: Int) { ++ override fun setFps(view: CameraView, fps: Int) { + view.fps = if (fps > 0) fps else null + } + + @ReactProp(name = "photoHdr") +- fun setPhotoHdr(view: CameraView, photoHdr: Boolean) { ++ override fun setPhotoHdr(view: CameraView, photoHdr: Boolean) { + view.photoHdr = photoHdr + } + + @ReactProp(name = "photoQualityBalance") +- fun setPhotoQualityBalance(view: CameraView, photoQualityBalance: String?) { ++ override fun setPhotoQualityBalance(view: CameraView, photoQualityBalance: String?) { + if (photoQualityBalance != null) { + val newMode = QualityBalance.fromUnionValue(photoQualityBalance) + view.photoQualityBalance = newMode +@@ -174,22 +186,22 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "videoHdr") +- fun setVideoHdr(view: CameraView, videoHdr: Boolean) { ++ override fun setVideoHdr(view: CameraView, videoHdr: Boolean) { + view.videoHdr = videoHdr + } + + @ReactProp(name = "lowLightBoost") +- fun setLowLightBoost(view: CameraView, lowLightBoost: Boolean) { ++ override fun setLowLightBoost(view: CameraView, lowLightBoost: Boolean) { + view.lowLightBoost = lowLightBoost + } + + @ReactProp(name = "isActive") +- fun setIsActive(view: CameraView, isActive: Boolean) { ++ override fun setIsActive(view: CameraView, isActive: Boolean) { + view.isActive = isActive + } + + @ReactProp(name = "torch") +- fun setTorch(view: CameraView, torch: String?) { ++ override fun setTorch(view: CameraView, torch: String?) { + if (torch != null) { + val newMode = Torch.fromUnionValue(torch) + view.torch = newMode +@@ -199,17 +211,17 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "zoom") +- fun setZoom(view: CameraView, zoom: Double) { ++ override fun setZoom(view: CameraView, zoom: Double) { + view.zoom = zoom.toFloat() + } + + @ReactProp(name = "exposure") +- fun setExposure(view: CameraView, exposure: Double) { ++ override fun setExposure(view: CameraView, exposure: Double) { + view.exposure = exposure + } + + @ReactProp(name = "orientation") +- fun setOrientation(view: CameraView, orientation: String?) { ++ override fun setOrientation(view: CameraView, orientation: String?) { + if (orientation != null) { + val newMode = Orientation.fromUnionValue(orientation) + view.orientation = newMode +@@ -219,7 +231,7 @@ class CameraViewManager : ViewGroupManager() { + } + + @ReactProp(name = "codeScannerOptions") +- fun setCodeScanner(view: CameraView, codeScannerOptions: ReadableMap?) { ++ override fun setCodeScannerOptions(view: CameraView, codeScannerOptions: ReadableMap?) { + if (codeScannerOptions != null) { + val newCodeScannerOptions = CodeScannerOptions.fromJSValue(codeScannerOptions) + view.codeScannerOptions = newCodeScannerOptions +@@ -227,4 +239,8 @@ class CameraViewManager : ViewGroupManager() { + view.codeScannerOptions = null + } + } ++ ++ override fun setEnableBufferCompression(view: CameraView?, value: Boolean) { ++ // ios only ++ } + } +diff --git a/node_modules/react-native-vision-camera/ios/.swift-version b/node_modules/react-native-vision-camera/ios/.swift-version +new file mode 100644 +index 0000000..ef425ca +--- /dev/null ++++ b/node_modules/react-native-vision-camera/ios/.swift-version +@@ -0,0 +1 @@ ++5.2 +diff --git a/node_modules/react-native-vision-camera/ios/.swiftformat b/node_modules/react-native-vision-camera/ios/.swiftformat +new file mode 100644 +index 0000000..95e71c1 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/ios/.swiftformat +@@ -0,0 +1,12 @@ ++--allman false ++--indent 2 ++--exclude Pods,Generated ++ ++--disable andOperator ++--disable redundantReturn ++--disable wrapMultilineStatementBraces ++--disable organizeDeclarations ++ ++--enable markTypes ++ ++--enable isEmpty +diff --git a/node_modules/react-native-vision-camera/ios/.swiftlint.yml b/node_modules/react-native-vision-camera/ios/.swiftlint.yml +new file mode 100644 +index 0000000..6999c33 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/ios/.swiftlint.yml +@@ -0,0 +1,52 @@ ++disabled_rules: ++ - identifier_name ++ - trailing_comma ++ - todo ++ - type_body_length ++ - cyclomatic_complexity ++ - function_body_length ++ - for_where ++opt_in_rules: ++ - contains_over_filter_count ++ - contains_over_filter_is_empty ++ - contains_over_first_not_nil ++ - contains_over_range_nil_comparison ++ - empty_collection_literal ++ - empty_count ++ - empty_string ++ - first_where ++ - flatmap_over_map_reduce ++ - last_where ++ - reduce_boolean ++ - reduce_into ++ - yoda_condition ++ - vertical_whitespace_opening_braces ++ - vertical_whitespace_closing_braces ++ - vertical_parameter_alignment_on_call ++ - untyped_error_in_catch ++ - unowned_variable_capture ++ - unavailable_function ++ - switch_case_on_newline ++ - static_operator ++ - strict_fileprivate ++ - sorted_imports ++ - sorted_first_last ++ - required_enum_case ++ - redundant_type_annotation ++ - redundant_nil_coalescing ++ - attributes ++ - convenience_type ++analyzer_rules: ++ - explicit_self ++ - unused_declaration ++ - unused_import ++ ++excluded: # paths to ignore during linting. Takes precedence over `included`. ++ - Pods ++ ++# Adjust rule numbers ++line_length: 160 ++file_length: 500 ++ ++# reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging) ++reporter: "xcode" +diff --git a/node_modules/react-native-vision-camera/ios/CameraView.swift b/node_modules/react-native-vision-camera/ios/CameraView.swift +index 1aca0c6..cbb4849 100644 +--- a/node_modules/react-native-vision-camera/ios/CameraView.swift ++++ b/node_modules/react-native-vision-camera/ios/CameraView.swift +@@ -23,39 +23,42 @@ import UIKit + public final class CameraView: UIView, CameraSessionDelegate { + // pragma MARK: React Properties + // props that require reconfiguring +- @objc var cameraId: NSString? +- @objc var enableDepthData = false +- @objc var enablePortraitEffectsMatteDelivery = false +- @objc var enableBufferCompression = false ++ @objc public var cameraId: NSString? ++ @objc public var enableDepthData = false ++ @objc public var enablePortraitEffectsMatteDelivery = false ++ @objc public var enableBufferCompression = false + // use cases +- @objc var photo = false +- @objc var video = false +- @objc var audio = false +- @objc var enableFrameProcessor = false +- @objc var codeScannerOptions: NSDictionary? +- @objc var pixelFormat: NSString? +- @objc var enableLocation = false ++ @objc public var photo = false ++ @objc public var video = false ++ @objc public var audio = false ++ @objc public var enableFrameProcessor = false ++ @objc public var codeScannerOptions: NSDictionary? ++ @objc public var pixelFormat: NSString? ++ @objc public var enableLocation = false + // props that require format reconfiguring +- @objc var format: NSDictionary? +- @objc var fps: NSNumber? +- @objc var videoHdr = false +- @objc var photoHdr = false +- @objc var photoQualityBalance: NSString? +- @objc var lowLightBoost = false +- @objc var orientation: NSString? ++ @objc public var format: NSDictionary? ++ @objc public var fps: NSNumber? ++ @objc public var videoHdr = false ++ @objc public var photoHdr = false ++ @objc public var photoQualityBalance: NSString? ++ @objc public var lowLightBoost = false ++ @objc public var orientation: NSString? + // other props +- @objc var isActive = false +- @objc var torch = "off" +- @objc var zoom: NSNumber = 1.0 // in "factor" +- @objc var exposure: NSNumber = 1.0 +- @objc var enableFpsGraph = false +- @objc var videoStabilizationMode: NSString? +- @objc var resizeMode: NSString = "cover" { ++ @objc public var isActive = false ++ @objc public var torch = "off" ++ @objc public var zoom: NSNumber = 1.0 // in "factor" ++ @objc public var exposure: NSNumber = 1.0 ++ @objc public var enableFpsGraph = false ++ @objc public var videoStabilizationMode: NSString? ++ @objc public var resizeMode: NSString = "cover" { + didSet { + let parsed = try? ResizeMode(jsValue: resizeMode as String) + previewView.resizeMode = parsed ?? .cover + } + } ++#if RCT_NEW_ARCH_ENABLED ++ @objc public var delegate: RNCameraViewDirectEventDelegate? ++#else + + // events + @objc var onInitialized: RCTDirectEventBlock? +@@ -65,8 +68,9 @@ public final class CameraView: UIView, CameraSessionDelegate { + @objc var onShutter: RCTDirectEventBlock? + @objc var onViewReady: RCTDirectEventBlock? + @objc var onCodeScanned: RCTDirectEventBlock? ++#endif + // zoom +- @objc var enableZoomGesture = false { ++ @objc public var enableZoomGesture = false { + didSet { + if enableZoomGesture { + addPinchGestureRecognizer() +@@ -117,7 +121,14 @@ public final class CameraView: UIView, CameraSessionDelegate { + if newSuperview != nil { + if !isMounted { + isMounted = true +- onViewReady?(nil) ++#if RCT_NEW_ARCH_ENABLED ++ guard let delegate = delegate else { ++ return ++ } ++ delegate.onViewReady() ++#else ++ onViewReady?(nil) ++#endif + } + } + } +@@ -287,10 +298,6 @@ public final class CameraView: UIView, CameraSessionDelegate { + + func onError(_ error: CameraError) { + ReactLogger.log(level: .error, message: "Invoking onError(): \(error.message)") +- guard let onError = onError else { +- return +- } +- + var causeDictionary: [String: Any]? + if case let .unknown(_, cause) = error, + let cause = cause { +@@ -301,44 +308,86 @@ public final class CameraView: UIView, CameraSessionDelegate { + "details": cause.userInfo, + ] + } ++#if RCT_NEW_ARCH_ENABLED ++ guard let delegate = delegate else { ++ return ++ } ++ delegate.onError(error:[ ++ "code": error.code, ++ "message": error.message, ++ "cause": causeDictionary ?? NSNull(), ++ ]) ++#else ++guard let onError = onError else { return } + onError([ + "code": error.code, + "message": error.message, + "cause": causeDictionary ?? NSNull(), + ]) ++#endif + } + + func onSessionInitialized() { + ReactLogger.log(level: .info, message: "Camera initialized!") ++#if RCT_NEW_ARCH_ENABLED ++ guard let delegate = delegate else { ++ return ++ } ++ delegate.onInitialized() ++#else + guard let onInitialized = onInitialized else { + return + } + onInitialized([:]) ++#endif + } + + func onCameraStarted() { + ReactLogger.log(level: .info, message: "Camera started!") ++#if RCT_NEW_ARCH_ENABLED ++ guard let delegate = delegate else { ++ return ++ } ++ delegate.onStarted() ++#else + guard let onStarted = onStarted else { + return + } + onStarted([:]) ++#endif + } + + func onCameraStopped() { + ReactLogger.log(level: .info, message: "Camera stopped!") ++#if RCT_NEW_ARCH_ENABLED ++ guard let delegate = delegate else { ++ return ++ } ++ delegate.onStopped() ++#else + guard let onStopped = onStopped else { + return + } + onStopped([:]) ++#endif + } + + func onCaptureShutter(shutterType: ShutterType) { ++#if RCT_NEW_ARCH_ENABLED ++ guard let delegate = delegate else { ++ return ++ } ++ delegate.onShutter(message:[ ++ "type": shutterType.jsValue, ++ ]) ++#else + guard let onShutter = onShutter else { + return + } + onShutter([ + "type": shutterType.jsValue, + ]) ++#endif + } + + func onFrame(sampleBuffer: CMSampleBuffer) { +@@ -365,6 +414,15 @@ public final class CameraView: UIView, CameraSessionDelegate { + } + + func onCodeScanned(codes: [CameraSession.Code], scannerFrame: CameraSession.CodeScannerFrame) { ++#if RCT_NEW_ARCH_ENABLED ++ guard let delegate = delegate else { ++ return ++ } ++ delegate.onCodeScanned(message:[ ++ "codes": codes.map { $0.toJSValue() }, ++ "frame": scannerFrame.toJSValue(), ++ ]) ++#else + guard let onCodeScanned = onCodeScanned else { + return + } +@@ -372,6 +430,7 @@ public final class CameraView: UIView, CameraSessionDelegate { + "codes": codes.map { $0.toJSValue() }, + "frame": scannerFrame.toJSValue(), + ]) ++#endif + } + + /** +@@ -396,3 +455,13 @@ public final class CameraView: UIView, CameraSessionDelegate { + } + } + } ++ ++@objc public protocol RNCameraViewDirectEventDelegate: AnyObject { //TODO: Move to a separate file ++ func onInitialized() ++ func onError(error: NSDictionary) ++ func onViewReady() ++ func onStarted() ++ func onStopped() ++ func onShutter(message: NSDictionary) ++ func onCodeScanned(message: NSDictionary) ++} +diff --git a/node_modules/react-native-vision-camera/ios/CameraViewManager.swift b/node_modules/react-native-vision-camera/ios/CameraViewManager.swift +index ecfcf3d..4b2c201 100644 +--- a/node_modules/react-native-vision-camera/ios/CameraViewManager.swift ++++ b/node_modules/react-native-vision-camera/ios/CameraViewManager.swift +@@ -141,7 +141,8 @@ final class CameraViewManager: RCTViewManager { + + private func getCameraView(withTag tag: NSNumber) -> CameraView { + // swiftlint:disable force_cast +- return bridge.uiManager.view(forReactTag: tag) as! CameraView ++ let cameraView = bridge.uiManager.view(forReactTag: tag) ++ return ((cameraView?.isKind(of: CameraView.self))! ? cameraView : cameraView?.value(forKey: "contentView") as? UIView) as! CameraView + // swiftlint:enable force_cast + } + } +diff --git a/node_modules/react-native-vision-camera/ios/RNCameraView.h b/node_modules/react-native-vision-camera/ios/RNCameraView.h +new file mode 100644 +index 0000000..46c2c2c +--- /dev/null ++++ b/node_modules/react-native-vision-camera/ios/RNCameraView.h +@@ -0,0 +1,14 @@ ++// This guard prevent this file to be compiled in the old architecture. ++#ifdef RCT_NEW_ARCH_ENABLED ++#import ++#import ++ ++ ++NS_ASSUME_NONNULL_BEGIN ++ ++@interface RNCameraView : RCTViewComponentView ++@end ++ ++NS_ASSUME_NONNULL_END ++ ++#endif /* RCT_NEW_ARCH_ENABLED */ +diff --git a/node_modules/react-native-vision-camera/ios/RNCameraView.mm b/node_modules/react-native-vision-camera/ios/RNCameraView.mm +new file mode 100644 +index 0000000..63fb00f +--- /dev/null ++++ b/node_modules/react-native-vision-camera/ios/RNCameraView.mm +@@ -0,0 +1,373 @@ ++// This guard prevent the code from being compiled in the old architecture ++#ifdef RCT_NEW_ARCH_ENABLED ++//#import "RNCameraView.h" ++#import ++ ++#import ++#import ++#import ++#import ++ ++#import "RCTFabricComponentsPlugins.h" ++#import ++#import ++#import ++#import ++#import "VisionCamera-Swift.h" ++ ++@interface RNCameraView : RCTViewComponentView ++@end ++ ++ ++using namespace facebook::react; ++ ++@implementation RNCameraView { ++ CameraView * _view; ++} ++ +++ (ComponentDescriptorProvider)componentDescriptorProvider ++{ ++ return concreteComponentDescriptorProvider(); ++} ++ ++- (instancetype)initWithFrame:(CGRect)frame ++{ ++ self = [super initWithFrame:frame]; ++if (self) { ++ static const auto defaultProps = std::make_shared(); ++ _props = defaultProps; ++ ++ //The remaining part of the initializer is standard Objective-C code to create views and layout them with AutoLayout. Here we can change whatever we want to. ++ _view = [[CameraView alloc] init]; ++ _view.delegate = self; ++ ++ self.contentView = _view; ++} ++ ++return self; ++} ++ ++// why we need this func -> https://reactnative.dev/docs/next/the-new-architecture/pillars-fabric-components#write-the-native-ios-code ++- (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps ++{ ++ const auto &newViewProps = *std::static_pointer_cast(props); ++ const auto &oldViewProps = *std::static_pointer_cast(_props); ++ ++ NSMutableArray* changedProps = [[NSMutableArray alloc] init]; ++ ++ if(oldViewProps.isActive != newViewProps.isActive){ ++ _view.isActive = newViewProps.isActive; ++ [changedProps addObject:@"isActive"]; ++ } ++ if(oldViewProps.cameraId != newViewProps.cameraId){ ++ _view.cameraId = RCTNSStringFromString(newViewProps.cameraId); ++ [changedProps addObject:@"cameraId"]; ++ } ++ if(oldViewProps.photoQualityBalance != newViewProps.photoQualityBalance){ ++ _view.photoQualityBalance = RCTNSStringFromString(newViewProps.photoQualityBalance); ++ [changedProps addObject:@"photoQualityBalance"]; ++ } ++ if(oldViewProps.enableDepthData != newViewProps.enableDepthData){ ++ _view.enableDepthData = newViewProps.enableDepthData; ++ [changedProps addObject:@"enableDepthData"]; ++ } ++ if(oldViewProps.enablePortraitEffectsMatteDelivery != newViewProps.enablePortraitEffectsMatteDelivery){ ++ _view.enablePortraitEffectsMatteDelivery = newViewProps.enablePortraitEffectsMatteDelivery; ++ [changedProps addObject:@"enablePortraitEffectsMatteDelivery"]; ++ } ++ if(oldViewProps.photo != newViewProps.photo){ ++ _view.photo = [NSNumber numberWithBool:newViewProps.photo]; ++ [changedProps addObject:@"photo"]; ++ } ++ if(oldViewProps.video != newViewProps.video){ ++ _view.video = [NSNumber numberWithBool:newViewProps.video]; ++ [changedProps addObject:@"video"]; ++ } ++ if(oldViewProps.audio != newViewProps.audio){ ++ _view.audio = [NSNumber numberWithBool:newViewProps.audio]; ++ [changedProps addObject:@"audio"]; ++ } ++ if(oldViewProps.enableFrameProcessor != newViewProps.enableFrameProcessor){ ++ _view.enableFrameProcessor = newViewProps.enableFrameProcessor; ++ [changedProps addObject:@"enableFrameProcessor"]; ++ } ++ if(oldViewProps.enableLocation != newViewProps.enableLocation){ ++ _view.enableLocation = newViewProps.enableLocation; ++ [changedProps addObject:@"enableLocation"]; ++ } ++ if(oldViewProps.enableBufferCompression != newViewProps.enableBufferCompression){ ++ _view.enableBufferCompression = newViewProps.enableBufferCompression; ++ [changedProps addObject:@"enableBufferCompression"]; ++ } ++ if(oldViewProps.fps != newViewProps.fps){ ++ _view.fps = [NSNumber numberWithInt:newViewProps.fps]; ++ [changedProps addObject:@"fps"]; ++ } ++ if(oldViewProps.videoHdr != newViewProps.videoHdr){ ++ _view.videoHdr = newViewProps.videoHdr; ++ [changedProps addObject:@"videoHdr"]; ++ } ++ if(oldViewProps.photoHdr != newViewProps.photoHdr){ ++ _view.photoHdr = newViewProps.photoHdr; ++ [changedProps addObject:@"photoHdr"]; ++ } ++ if(oldViewProps.lowLightBoost != newViewProps.lowLightBoost){ ++ _view.lowLightBoost = newViewProps.lowLightBoost; ++ [changedProps addObject:@"lowLightBoost"]; ++ } ++ if(oldViewProps.videoStabilizationMode != newViewProps.videoStabilizationMode){ ++ _view.videoStabilizationMode = RCTNSStringFromString(newViewProps.videoStabilizationMode); ++ [changedProps addObject:@"videoStabilizationMode"]; ++ } ++ if(oldViewProps.torch != newViewProps.torch){ ++ _view.torch = RCTNSStringFromString(newViewProps.torch); ++ [changedProps addObject:@"torch"]; ++ } ++ if(oldViewProps.orientation != newViewProps.orientation){ ++ _view.orientation = RCTNSStringFromString(newViewProps.orientation); ++ [changedProps addObject:@"orientation"]; ++ } ++ if(oldViewProps.resizeMode != newViewProps.resizeMode){ ++ _view.resizeMode = RCTNSStringFromString(newViewProps.resizeMode); ++ [changedProps addObject:@"resizeMode"]; ++ } ++ if(oldViewProps.pixelFormat != newViewProps.pixelFormat){ ++ _view.pixelFormat = RCTNSStringFromString(newViewProps.pixelFormat); ++ [changedProps addObject:@"pixelFormat"]; ++ } ++ if(oldViewProps.zoom != newViewProps.zoom){ ++ _view.zoom = [NSNumber numberWithDouble:newViewProps.zoom]; ++ [changedProps addObject:@"zoom"]; ++ } ++ if(oldViewProps.exposure != newViewProps.exposure){ ++ _view.exposure = [NSNumber numberWithDouble:newViewProps.exposure]; ++ [changedProps addObject:@"exposure"]; ++ } ++ if(oldViewProps.enableZoomGesture != newViewProps.enableZoomGesture){ ++ _view.enableZoomGesture = newViewProps.enableZoomGesture; ++ [changedProps addObject:@"enableZoomGesture"]; ++ } ++ if(oldViewProps.enableFpsGraph != newViewProps.enableFpsGraph){ ++ _view.enableFpsGraph = newViewProps.enableFpsGraph; ++ [changedProps addObject:@"enableFpsGraph"]; ++ } ++ ++ ++ if(_view.format == nil){ ++ _view.format =[ [NSMutableDictionary alloc] init]; ++ } ++ ++ ++ //Checking format props, TODO: find cleaner way to do it ++ if(oldViewProps.format.supportsDepthCapture != newViewProps.format.supportsDepthCapture){ ++ NSNumber* supportsDepthCapture = newViewProps.format.supportsDepthCapture ? @1 : @0; ++ [_view.format setValue:supportsDepthCapture forKey:@"supportsDepthCapture"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.autoFocusSystem != newViewProps.format.autoFocusSystem){ ++ [_view.format setValue:RCTNSStringFromString(newViewProps.format.autoFocusSystem) forKey:@"autoFocusSystem"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.pixelFormats.size() != newViewProps.format.pixelFormats.size()){ ++ NSMutableArray* newPixelFormats = [[NSMutableArray alloc] init]; ++ for(int i = 0; i < newViewProps.format.pixelFormats.size(); i++){ ++ [newPixelFormats addObject:RCTNSStringFromString(newViewProps.format.pixelFormats.at(i))]; ++ } ++ [_view.format setValue:newPixelFormats forKey:@"pixelFormats"]; ++ [changedProps addObject:@"format"]; ++ } ++ ++ if(oldViewProps.format.videoStabilizationModes.size() != newViewProps.format.videoStabilizationModes.size()){ ++ NSMutableArray* newVideoStabilizationModes = [[NSMutableArray alloc] init]; ++ for(int i = 0; i < newViewProps.format.videoStabilizationModes.size(); i++){ ++ [newVideoStabilizationModes addObject:RCTNSStringFromString(newViewProps.format.videoStabilizationModes.at(i))]; ++ } ++ [_view.format setValue:newVideoStabilizationModes forKey:@"videoStabilizationModes"]; ++ [changedProps addObject:@"format"]; ++ } ++ ++ if(oldViewProps.format.photoHeight != newViewProps.format.photoHeight){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.photoHeight] forKey:@"photoHeight"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.photoWidth != newViewProps.format.photoWidth){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.photoWidth] forKey:@"photoWidth"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.videoHeight != newViewProps.format.videoHeight){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.videoHeight] forKey:@"videoHeight"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.videoWidth != newViewProps.format.videoWidth){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.videoWidth] forKey:@"videoWidth"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.maxISO != newViewProps.format.maxISO){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.maxISO] forKey:@"maxISO"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.minISO != newViewProps.format.minISO){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.minISO] forKey:@"minISO"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.maxFps != newViewProps.format.maxFps){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.maxFps] forKey:@"maxFps"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.minFps != newViewProps.format.minFps){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.minFps] forKey:@"minFps"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.fieldOfView != newViewProps.format.fieldOfView){ ++ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.fieldOfView] forKey:@"fieldOfView"]; ++ [changedProps addObject:@"format"]; ++ } ++ ++ if(oldViewProps.format.supportsVideoHDR != newViewProps.format.supportsVideoHDR){ ++ NSNumber* supportsVideoHDR = newViewProps.format.supportsVideoHDR ? @1 : @0; ++ [_view.format setValue:supportsVideoHDR forKey:@"supportsVideoHDR"]; ++ [changedProps addObject:@"format"]; ++ } ++ if(oldViewProps.format.supportsPhotoHDR != newViewProps.format.supportsPhotoHDR){ ++ NSNumber* supportsPhotoHDR = newViewProps.format.supportsPhotoHDR ? @1 : @0; ++ [_view.format setValue:supportsPhotoHDR forKey:@"supportsPhotoHDR"]; ++ [changedProps addObject:@"format"]; ++ } ++ ++ if (_view.format.count == 0) { ++ _view.format = nil; ++ } ++ ++ if(_view.codeScannerOptions == nil){ ++ _view.codeScannerOptions =[[NSMutableDictionary alloc] init]; ++ } ++ ++ if(oldViewProps.codeScannerOptions.codeTypes.size() != newViewProps.codeScannerOptions.codeTypes.size()){ ++ NSMutableArray* newCodeTypes = [[NSMutableArray alloc] init]; ++ for(int i = 0; i < newViewProps.codeScannerOptions.codeTypes.size(); i++){ ++ [newCodeTypes addObject:RCTNSStringFromString(newViewProps.codeScannerOptions.codeTypes.at(i))]; ++ } ++ [_view.codeScannerOptions setValue:newCodeTypes forKey:@"codeTypes"]; ++ [changedProps addObject:@"codeScannerOptions"]; ++ } ++ ++ if(oldViewProps.codeScannerOptions.interval != newViewProps.codeScannerOptions.interval){ ++ [_view.codeScannerOptions setValue:[NSNumber numberWithDouble:newViewProps.codeScannerOptions.interval] forKey:@"interval"]; ++ [changedProps addObject:@"codeScannerOptions"]; ++ } ++ ++ if( ++ oldViewProps.codeScannerOptions.regionOfInterest.x != newViewProps.codeScannerOptions.regionOfInterest.x || ++ oldViewProps.codeScannerOptions.regionOfInterest.y != newViewProps.codeScannerOptions.regionOfInterest.y || ++ oldViewProps.codeScannerOptions.regionOfInterest.width != newViewProps.codeScannerOptions.regionOfInterest.width || ++ oldViewProps.codeScannerOptions.regionOfInterest.height != newViewProps.codeScannerOptions.regionOfInterest.height ++ ){ ++ NSDictionary *newRegionOfInterest = @{ ++ @"x": @(newViewProps.codeScannerOptions.regionOfInterest.x), ++ @"y": @(newViewProps.codeScannerOptions.regionOfInterest.y), ++ @"width": @(newViewProps.codeScannerOptions.regionOfInterest.width), ++ @"height": @(newViewProps.codeScannerOptions.regionOfInterest.height), ++ }; ++ [_view.codeScannerOptions setValue:newRegionOfInterest forKey:@"regionOfInterest"]; ++ [changedProps addObject:@"codeScannerOptions"]; ++ } ++ ++ if (_view.codeScannerOptions.count == 0) { ++ _view.codeScannerOptions = nil; ++ } ++ ++ [_view didSetProps:changedProps]; ++ ++ [super updateProps:props oldProps:oldProps]; ++} ++ ++- (void)onViewReady{ ++ if(_eventEmitter){ ++ std::dynamic_pointer_cast(_eventEmitter) ++ ->onViewReady( CameraViewEventEmitter::OnViewReady{}); ++ } ++} ++ ++- (void)onErrorWithError:(NSDictionary *)error{ ++ if(_eventEmitter){ ++ std::dynamic_pointer_cast(_eventEmitter) ++ ->onError( CameraViewEventEmitter::OnError{ ++ .code = std::string([(error != nil ? [error objectForKey:@"code"] : @"") UTF8String]), ++ .message = std::string([(error != nil ? [error objectForKey:@"message"] : @"") UTF8String]), ++ .cause = { ++ .code = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"code"] : @"") UTF8String]), // TODO: Further secure type safety to prevent crashes ++ .domain = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"domain"] : @"") UTF8String]), ++ .message = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"message"] : @"") UTF8String]), ++ .details = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"details"] : @"") UTF8String]) ++ } ++ }); ++ } ++} ++ ++- (void)onInitialized{ ++ if(_eventEmitter){ ++ std::dynamic_pointer_cast(_eventEmitter) ++ ->onInitialized( CameraViewEventEmitter::OnInitialized{}); ++ } ++} ++ ++- (void)onCodeScannedWithMessage:(NSDictionary *)message { ++ if(_eventEmitter){ ++ std::dynamic_pointer_cast(_eventEmitter) ++ ->onCodeScanned( CameraViewEventEmitter::OnCodeScanned{ ++ .codes = { ++ .type = std::string([(message != nil ? [[message objectForKey:@"codes"] objectForKey:@"type"] : @"") UTF8String]), ++ .value = std::string([(message != nil ? [[message objectForKey:@"codes"] objectForKey:@"value"] : @"") UTF8String]), ++ .frame = { ++ .x = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"x"] : @0) doubleValue], ++ .y = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"y"] : @0) doubleValue], ++ .width = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"width"] : @0) doubleValue], ++ .height = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"height"] : @0) doubleValue], ++ }, ++ }, ++ .frame = { ++ .width = [(message != nil ? [[message objectForKey:@"frame"] objectForKey:@"width"] : @0) intValue], ++ .height = [(message != nil ? [[message objectForKey:@"frame"] objectForKey:@"height"] : @0) intValue], ++ }, ++ // nothing is sent here from CameraView ++ .corners = { ++ .x = [(message != nil ? [[message objectForKey:@"corners"] objectForKey:@"x"] : @0) doubleValue], ++ .y = [(message != nil ? [[message objectForKey:@"corners"] objectForKey:@"y"] : @0) doubleValue], ++ } ++ }); ++ } ++} ++ ++ ++- (void)onShutterWithMessage:(NSDictionary *)message { ++ if(_eventEmitter){ ++ std::dynamic_pointer_cast(_eventEmitter) ++ ->onShutter( CameraViewEventEmitter::OnShutter{ ++ .type = std::string([(message != nil ? [message objectForKey:@"type"] : @"") UTF8String]), ++ }); ++ } ++} ++ ++ ++- (void)onStarted { ++ if(_eventEmitter){ ++ std::dynamic_pointer_cast(_eventEmitter) ++ ->onStarted( CameraViewEventEmitter::OnStarted{}); ++ } ++} ++ ++ ++- (void)onStopped { ++ if(_eventEmitter){ ++ std::dynamic_pointer_cast(_eventEmitter) ++ ->onViewReady( CameraViewEventEmitter::OnViewReady{}); ++ } ++} ++ ++Class CameraViewCls(void) ++{ ++ return RNCameraView.class; ++} ++ ++@end ++#endif +diff --git a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js +index ac08791..6e691b9 100644 +--- a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js ++++ b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js +@@ -10,8 +10,11 @@ var _CameraError = require("./CameraError"); + var _NativeCameraModule = require("./NativeCameraModule"); + var _FrameProcessorPlugins = require("./FrameProcessorPlugins"); + var _CameraDevices = require("./CameraDevices"); ++var _CameraViewNativeComponent = _interopRequireDefault(require("./specs/CameraViewNativeComponent")); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } ++const NativeCameraView = _CameraViewNativeComponent.default; ++ + //#region Types + + //#endregion +@@ -552,10 +555,5 @@ class Camera extends _react.default.PureComponent { + } + } + //#endregion +- +-// requireNativeComponent automatically resolves 'CameraView' to 'CameraViewManager' + exports.Camera = Camera; +-const NativeCameraView = (0, _reactNative.requireNativeComponent)('CameraView', +-// @ts-expect-error because the type declarations are kinda wrong, no? +-Camera); + //# sourceMappingURL=Camera.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map +index 808f69a..02a8590 100644 +--- a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map ++++ b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map +@@ -1 +1 @@ +-{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_CameraError","_NativeCameraModule","_FrameProcessorPlugins","_CameraDevices","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","Camera","React","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","findNodeHandle","current","CameraRuntimeError","takePhoto","options","CameraModule","e","tryParseNativeCameraError","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","CameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","isErrorWithCause","cameraError","code","message","console","_this$props$onInitial","_this$props","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","VisionCameraProxy","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","NativeCameraView","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph","exports","requireNativeComponent"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,mBAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAA+C,SAAAD,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAK/C;;AAiCA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMQ,MAAM,SAASC,cAAK,CAACC,aAAa,CAA2B;EACxE;EACA,OAAOC,WAAW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AAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAamB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMpB,gCAAY,CAACoB,eAAe,CAAC,IAAI,CAAC3B,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaoB,aAAaA,CAAA,EAAkB;IAC1C,IAAI;MACF,OAAO,MAAMrB,gCAAY,CAACqB,aAAa,CAAC,IAAI,CAAC5B,MAAM,CAAC;IACtD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaqB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMtB,gCAAY,CAACsB,eAAe,CAAC,IAAI,CAAC7B,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAasB,KAAKA,CAACC,KAAY,EAAiB;IAC9C,IAAI;MACF,OAAO,MAAMxB,gCAAY,CAACuB,KAAK,CA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,EAAE,IAAI,CAACA,aAAc;MAClCK,aAAa,EAAE,IAAI,CAACA,aAAc;MAClCJ,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,OAAO,EAAE,IAAI,CAACA,OAAQ;MACtBoF,kBAAkB,EAAElB,WAAY;MAChCmB,oBAAoB,EAAEf,cAAc,IAAI,IAAK;MAC7CgB,uBAAuB,EAAE5F,KAAK,CAAC4F,uBAAuB,IAAIT,6BAA8B;MACxFC,WAAW,EAAEA,WAAY;MACzBS,cAAc,EAAEjB,cAAc,IAAI,IAAI,IAAI5E,KAAK,CAAC6F;IAAe,EAChE,CAAC;EAEN;AACF;AACA;;AAEA;AAAAC,OAAA,CAAApG,MAAA,GAAAA,MAAA;AACA,MAAM6F,gBAAgB,GAAG,IAAAQ,mCAAsB,EAC7C,YAAY;AACZ;AACArG,MACF,CAAC"} +\ No newline at end of file ++{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_CameraError","_NativeCameraModule","_FrameProcessorPlugins","_CameraDevices","_CameraViewNativeComponent","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","NativeCameraView","NativeCameraViewCodegen","Camera","React","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","findNodeHandle","current","CameraRuntimeError","takePhoto","options","CameraModule","e","tryParseNativeCameraError","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","CameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","isErrorWithCause","cameraError","code","message","console","_this$props$onInitial","_this$props","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","VisionCameraProxy","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph","exports"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,mBAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAIA,IAAAM,0BAAA,GAAAP,sBAAA,CAAAC,OAAA;AAAuE,SAAAD,uBAAAQ,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEvE,MAAMQ,gBAAgB,GAAGC,k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EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAakB,cAAcA,CAAA,EAAkB;IAC3C,IAAI;MACF,OAAO,MAAMnB,gCAAY,CAACmB,cAAc,CAAC,IAAI,CAAC1B,MAAM,CAAC;IACvD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAamB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMpB,gCAAY,CAACoB,eAAe,CAAC,IAAI,CAAC3B,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaoB,aAAaA,CAAA,EAAkB;IAC1C,IAAI;MACF,OAAO,MAAMrB,gCAAY,CAACqB,aAAa,CAAC,IAAI,CAAC5B,MAAM,CAAC;IACtD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaqB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMtB,gCAAY,CAACsB,eAAe,CAAC,IAAI,CAAC7B,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAasB,KAAKA,CAACC,KAAY,EAAiB;IAC9C,IAAI;MACF,OAAO,MAAMxB,gCAAY,CAACuB,KAAK,CAAC,IAAI,CAAC9B,MAAM,EAAE+B,KAAK,CAAC;IACrD,CAAC,CAAC,OAAOvB,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;EACA;;EAEA;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAcwB,yBAAyBA,CAAA,EAAmB;IACxD,OAAOC,4BAAa,CAACD,yBAAyB,CAAC,CAAC;EAClD;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcE,+BAA+BA,CAACC,QAA8C,EAAuB;IACjH,OAAOF,4BAAa,CAACC,+BAA+B,CAACC,QAAQ,CAAC;EAChE;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcC,yBAAyBA,CAAA,EAA2B;IAChE,OAAO7B,gCAAY,CAAC6B,yBAAyB,CAAC,CAAC;EACjD;EACA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAcC,6BAA6BA,CAAA,EAA2B;IACpE,OAAO9B,gCAAY,CAAC8B,6BAA6B,CAAC,CAAC;EACrD;EACA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAcC,2BAA2BA,CAAA,EAA2B;IAClE,OAAO/B,gCAAY,CAAC+B,2BAA2B,CAAC,CAAC;EACnD;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,aAAoBC,uBAAuBA,CAAA,EAA2C;IACpF,IAAI;MACF,OAAO,MAAMhC,gCAAY,CAACgC,uBAAuB,CAAC,CAAC;IACrD,CAAC,CAAC,OAA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E,oBACEvH,MAAA,CAAAW,OAAA,CAAA6G,aAAA,CAAC9F,gBAAgB,EAAAd,QAAA,KACXsB,KAAK;MACTuF,QAAQ,EAAEL,MAAM,CAACM,EAAG;MACpBhF,GAAG,EAAE,IAAI,CAACA,GAAI;MACd6E,KAAK,EAAEA,KAAM;MACbpF,WAAW,EAAE,IAAI,CAACA,WAAY;MAC9BC,aAAa,EAAE,IAAI,CAACA,aAAc;MAClCK,aAAa,EAAE,IAAI,CAACA,aAAc;MAClCJ,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,OAAO,EAAE,IAAI,CAACA,OAAQ;MACtBmF,kBAAkB,EAAEjB,WAAY;MAChCkB,oBAAoB,EAAEd,cAAc,IAAI,IAAK;MAC7Ce,uBAAuB,EAAE3F,KAAK,CAAC2F,uBAAuB,IAAIR,6BAA8B;MACxFC,WAAW,EAAEA,WAAY;MACzBQ,cAAc,EAAEhB,cAAc,IAAI,IAAI,IAAI5E,KAAK,CAAC4F;IAAe,EAChE,CAAC;EAEN;AACF;AACA;AAAAC,OAAA,CAAAnG,MAAA,GAAAA,MAAA"} +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js +index cc2179c..3581e20 100644 +--- a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js ++++ b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js +@@ -70,7 +70,7 @@ try { + isAsyncContextBusy.value = false; + } + }, asyncContext); +- hasWorklets = true; ++ // hasWorklets = true + } catch (e) { + // Worklets are not installed, so Frame Processors are disabled. + } +diff --git a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map +index cab0ad6..4e34f24 100644 +--- a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map ++++ b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map +@@ -1 +1 @@ +-{"version":3,"names":["_CameraError","require","_NativeCameraModule","_JSIHelper","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","CameraRuntimeError","throwJSError","error","assertJSIAvailable","Worklets","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","CameraModule","installFrameProcessorBindings","VisionCameraProxy","exports","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined","runAsync","incrementRefCount"],"sourceRoot":"../../src","sources":["FrameProcessorPlugins.ts"],"mappings":";;;;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAHA;;AAQA;AACA;AACA;AACA;;AAgCA,MAAMG,YAAY,GAAG,kFAAkF;AAEvG,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAIC,kBAAkB,GAAG;EAAEC,KAAK,EAAE;AAAM,CAAC;AACzC,IAAIC,iBAAiB,GAAGA,CAACC,MAAa,EAAEC,KAAiB,KAAW;EAClE,MAAM,IAAIC,+BAAkB,CAAC,qCAAqC,EAAEP,YAAY,CAAC;AACnF,CAAC;AACD,IAAIQ,YAAY,GAAIC,KAAc,IAAW;EAC3C,MAAMA,KAAK;AACb,CAAC;AAED,IAAI;EACF,IAAAC,6BAAkB,EAAC,CAAC;;EAEpB;EACA,MAAM;IAAEC;EA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,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM2B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC8B,iBAAiB,CAAC,CAAC;EAE5B1D,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACuB,KAAK,EAAEC,IAAI,CAAC;AAChC"} +\ No newline at end of file ++{"version":3,"names":["_CameraError","require","_NativeCameraModule","_JSIHelper","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","CameraRuntimeError","throwJSError","error","assertJSIAvailable","Worklets","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","CameraModule","installFrameProcessorBindings","VisionCameraProxy","exports","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined","runAsync","incrementRefCount"],"sourceRoot":"../../src","sources":["FrameProcessorPlugins.ts"],"mappings":";;;;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAHA;;AAQA;AACA;AACA;AACA;;AAgCA,MAAMG,YAAY,GAAG,kFAAkF;AAEvG,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAIC,kBAAkB,GAAG;EAAEC,KAAK,EAAE;AAAM,CAAC;AACzC,IAAIC,iBAAiB,GAAGA,CAACC,MAAa,EAAEC,KAAiB,KAAW;EAClE,MAAM,IAAIC,+BAAkB,CAAC,qCAAqC,EAAEP,YAAY,CAAC;AACnF,CAAC;AACD,IAAIQ,YAAY,GAAIC,K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ACA;AACO,SAASC,QAAQA,CAAChC,KAAY,EAAEC,IAAgB,EAAQ;EAC7D,SAAS;;EAET,IAAI1B,kBAAkB,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM2B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC8B,iBAAiB,CAAC,CAAC;EAE5B1D,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACuB,KAAK,EAAEC,IAAI,CAAC;AAChC"} +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js +new file mode 100644 +index 0000000..7008471 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js +@@ -0,0 +1,11 @@ ++"use strict"; ++ ++Object.defineProperty(exports, "__esModule", { ++ value: true ++}); ++exports.default = void 0; ++var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); ++function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } ++/* eslint-disable @typescript-eslint/ban-types */ ++var _default = exports.default = (0, _codegenNativeComponent.default)('CameraView'); ++//# sourceMappingURL=CameraViewNativeComponent.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js.map b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js.map +new file mode 100644 +index 0000000..d1b3d81 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js.map +@@ -0,0 +1 @@ ++{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/CameraViewNativeComponent.ts"],"mappings":";;;;;;AAGA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAH7F;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GA0Fe,IAAAG,+BAAsB,EAAc,YAAY,CAAC"} +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/module/Camera.js b/node_modules/react-native-vision-camera/lib/module/Camera.js +index b5bbf8b..3f44fdd 100644 +--- a/node_modules/react-native-vision-camera/lib/module/Camera.js ++++ b/node_modules/react-native-vision-camera/lib/module/Camera.js +@@ -1,10 +1,12 @@ + function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + import React from 'react'; +-import { requireNativeComponent, findNodeHandle } from 'react-native'; ++import { findNodeHandle } from 'react-native'; + import { CameraRuntimeError, tryParseNativeCameraError, isErrorWithCause } from './CameraError'; + import { CameraModule } from './NativeCameraModule'; + import { VisionCameraProxy } from './FrameProcessorPlugins'; + import { CameraDevices } from './CameraDevices'; ++import NativeCameraViewCodegen from './specs/CameraViewNativeComponent'; ++const NativeCameraView = NativeCameraViewCodegen; + + //#region Types + +@@ -546,9 +548,4 @@ export class Camera extends React.PureComponent { + } + } + //#endregion +- +-// requireNativeComponent automatically resolves 'CameraView' to 'CameraViewManager' +-const NativeCameraView = requireNativeComponent('CameraView', +-// @ts-expect-error because the type declarations are kinda wrong, no? +-Camera); + //# sourceMappingURL=Camera.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/module/Camera.js.map b/node_modules/react-native-vision-camera/lib/module/Camera.js.map +index 42aa7ea..0205781 100644 +--- a/node_modules/react-native-vision-camera/lib/module/Camera.js.map ++++ b/node_modules/react-native-vision-camera/lib/module/Camera.js.map +@@ -1 +1 @@ +-{"version":3,"names":["React","requireNativeComponent","findNodeHandle","CameraRuntimeError","tryParseNativeCameraError","isErrorWithCause","CameraModule","VisionCameraProxy","CameraDevices","Camera","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","bind","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","current","takePhoto","options","e","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","cameraError","code","message","console","_this$props$onInitial","_this$props","call","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","NativeCameraView","_extends","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,sBAAsB,EAAwBC,cAAc,QAAuB,cAAc;AAG1G,SAA6BC,kBAAkB,EAAEC,yBAAyB,EAAEC,gBAAgB,QAAQ,eAAe;AAEnH,SAASC,YAAY,QAAQ,sBAAsB;AAInD,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,iBAAiB;;AAK/C;;AAiCA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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CAAA,EAAkB;IAC3C,IAAI;MACF,OAAO,MAAM7C,YAAY,CAAC6C,cAAc,CAAC,IAAI,CAACtB,MAAM,CAAC;IACvD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAM9B,yBAAyB,CAAC8B,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAakB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAM9C,YAAY,CAAC8C,eAAe,CAAC,IAAI,CAACvB,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAM9B,yBAAyB,CAAC8B,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAamB,aAAaA,CAAA,EAAkB;IAC1C,IAAI;MACF,OAAO,MAAM/C,YAAY,CAAC+C,aAAa,CAAC,IAAI,CAACxB,MAAM,CAAC;IACtD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAM9B,yBAAyB,CAAC8B,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaoB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMhD,YAAY,CAACgD,eAAe,CAAC,IAAI,CAACzB,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAM9B,yBAAyB,CAAC8B,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAa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ACb/E,WAAW,EAAE,IAAI,CAACA,WAAY;MAC9BE,aAAa,EAAE,IAAI,CAACA,aAAc;MAClCK,aAAa,EAAE,IAAI,CAACA,aAAc;MAClCJ,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,OAAO,EAAE,IAAI,CAACA,OAAQ;MACtB+E,kBAAkB,EAAElB,WAAY;MAChCmB,oBAAoB,EAAEf,cAAc,IAAI,IAAK;MAC7CgB,uBAAuB,EAAExF,KAAK,CAACwF,uBAAuB,IAAIV,6BAA8B;MACxFC,WAAW,EAAEA,WAAY;MACzBU,cAAc,EAAEjB,cAAc,IAAI,IAAI,IAAIxE,KAAK,CAACyF;IAAe,EAChE,CAAC;EAEN;AACF;AACA;;AAEA;AACA,MAAMP,gBAAgB,GAAG/F,sBAAsB,CAC7C,YAAY;AACZ;AACAQ,MACF,CAAC"} +\ No newline at end of file ++{"version":3,"names":["React","findNodeHandle","CameraRuntimeError","tryParseNativeCameraError","isErrorWithCause","CameraModule","VisionCameraProxy","CameraDevices","NativeCameraViewCodegen","NativeCameraView","Camera","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","bind","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","current","takePhoto","options","e","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","cameraError","code","message","console","_this$props$onInitial","_this$props","call","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","_extends","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA+BC,cAAc,QAAuB,cAAc;AAGlF,SAA6BC,kBAAkB,EAAEC,yBAAyB,EAAEC,gBAAgB,QAAQ,eAAe;AAEnH,SAASC,YAAY,QAAQ,sBAAsB;AAInD,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,iBAAiB;AAI/C,OAAOC,uBAAuB,MAAM,mCAAmC;AAEvE,MAAMC,gBAAgB,GAAGD,uBAAsG;;AAE/H;;AAiCA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,MAAM,SAASV,KAAK,CAACW,aAAa,CAA2B;EACxE;EACA,OAAOC,WAAW,GAAG,QAAQ;EAC7B;EACAA,WAAW,GAAGF,MAAM,CAACE,WAAW;EAExBC,mBAAmB,GAAG,KAAK;EAInC;EACAC,WAAWA,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,WAAW,GAAG,IAAI,CAACA,WAAW,CAACC,IAAI,CAAC,IAAI,CAAC;IAC9C,IAAI,CAACC,aAAa,GAAG,IAAI,CAACA,aAAa,CAACD,IAAI,CAAC,IAAI,CAAC;IAClD,IAAI,CAACE,SAAS,GAAG,IAAI,CAACA,SAAS,CAACF,IAAI,CAAC,IAAI,CAAC;IAC1C,IAAI,CAACG,SAAS,GAAG,IAAI,CAAC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A;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAamB,aAAaA,CAAA,EAAkB;IAC1C,IAAI;MACF,OAAO,MAAMjD,YAAY,CAACiD,aAAa,CAAC,IAAI,CAACxB,MAAM,CAAC;IACtD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaoB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMlD,YAAY,CAACkD,eAAe,CAAC,IAAI,CAACzB,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaqB,KAAKA,CAACC,KAAY,EAAiB;IAC9C,IAAI;MACF,OAAO,MAAMpD,YAAY,CAACmD,KAAK,CAAC,IAAI,CAAC1B,MAAM,EAAE2B,KAAK,CAAC;IACrD,CAAC,CAAC,OAAOtB,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;EACA;;EAEA;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAcuB,yBAAyBA,CAAA,EAAmB;IACxD,OAAOnD,aAAa,CAACmD,yBAAyB,CAAC,CAAC;EAClD;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcC,+BAA+BA,CAACC,QAA8C,EAAuB;IACjH,OAAOrD,aAAa,CAACoD,+BAA+B,CAACC,QAAQ,CAAC;EAChE;EACA;AACF;AACA;AACA;AACA;AACA;EACE,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FrameProcessorPlugins.js b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js +index a0ee374..f1f08c1 100644 +--- a/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js ++++ b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js +@@ -64,7 +64,7 @@ try { + isAsyncContextBusy.value = false; + } + }, asyncContext); +- hasWorklets = true; ++ // hasWorklets = true + } catch (e) { + // Worklets are not installed, so Frame Processors are disabled. + } +diff --git a/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map +index baf8705..1b73944 100644 +--- a/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map ++++ b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map +@@ -1 +1 @@ +-{"version":3,"names":["CameraRuntimeError","CameraModule","assertJSIAvailable","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","throwJSError","error","Worklets","require","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","installFrameProcessorBindings","VisionCameraProxy","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined","runAsync","incrementRefCount"],"sourceRoot":"../../src","sources":["FrameProcessorPlugins.ts"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,eAAe;;AAElD;;AAEA,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,kBAAkB,QAAQ,aAAa;;AAKhD;AACA;AACA;AACA;;AAgCA,MAAMC,YAAY,GAAG,kFAAkF;AAEvG,IA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AgB,EAAE;IACtCL,yBAAyB,CAACG,MAAM,EAAEG,GAAG,CAAC;IACtC;IACA,OAAOzB,IAAI,CAAC,CAAC;EACf;EACA,OAAO4B,SAAS;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAC9B,KAAY,EAAEC,IAAgB,EAAQ;EAC7D,SAAS;;EAET,IAAIzB,kBAAkB,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM0B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC4B,iBAAiB,CAAC,CAAC;EAE5BvD,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACsB,KAAK,EAAEC,IAAI,CAAC;AAChC"} +\ No newline at end of file ++{"version":3,"names":["CameraRuntimeError","CameraModule","assertJSIAvailable","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","throwJSError","error","Worklets","require","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","installFrameProcessorBindings","VisionCameraProxy","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined","runAsync","incrementRefCount"],"sourceRoot":"../../src","sources":["FrameProcessorPlugins.ts"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,eAAe;;AAElD;;AAEA,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,kBAAkB,QAAQ,aAAa;;AAKhD;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CAAC;EAC9D,IAAIK,cAAc,IAAIH,gBAAgB,EAAE;IACtCL,yBAAyB,CAACG,MAAM,EAAEG,GAAG,CAAC;IACtC;IACA,OAAOzB,IAAI,CAAC,CAAC;EACf;EACA,OAAO4B,SAAS;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAC9B,KAAY,EAAEC,IAAgB,EAAQ;EAC7D,SAAS;;EAET,IAAIzB,kBAAkB,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM0B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC4B,iBAAiB,CAAC,CAAC;EAE5BvD,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACsB,KAAK,EAAEC,IAAI,CAAC;AAChC"} +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js +new file mode 100644 +index 0000000..9a7c100 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js +@@ -0,0 +1,5 @@ ++/* eslint-disable @typescript-eslint/ban-types */ ++ ++import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; ++export default codegenNativeComponent('CameraView'); ++//# sourceMappingURL=CameraViewNativeComponent.js.map +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js.map b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js.map +new file mode 100644 +index 0000000..4052494 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js.map +@@ -0,0 +1 @@ ++{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/CameraViewNativeComponent.ts"],"mappings":"AAAA;;AAGA,OAAOA,sBAAsB,MAAM,yDAAyD;AAuF5F,eAAeA,sBAAsB,CAAc,YAAY,CAAC"} +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map b/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map +index 71cc59b..d6ebc1c 100644 +--- a/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map ++++ b/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map +@@ -1 +1 @@ +-{"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../src/Camera.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAO,KAAK,EAAE,WAAW,EAAkC,MAAM,eAAe,CAAA;AAEhF,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAa,MAAM,aAAa,CAAA;AAGhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EAAE,IAAI,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAGhD,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,gBAAgB,GAAG,QAAQ,GAAG,YAAY,CAAA;AAC3F,MAAM,MAAM,6BAA6B,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEhE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,KAAK,EAAE,gBAAgB,CAAA;CACxB;AACD,MAA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SAAS;IAIjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,WAAW;IASnB,gBAAgB;IAChB,kBAAkB,IAAI,IAAI;IAa1B,gBAAgB;IACT,MAAM,IAAI,KAAK,CAAC,SAAS;CAqCjC"} +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts +new file mode 100644 +index 0000000..e7717c6 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts +@@ -0,0 +1,100 @@ ++/// ++/// ++import type { HostComponent, ViewProps } from 'react-native'; ++import type { DirectEventHandler, Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes'; ++export type VisionCameraComponentType = HostComponent; ++export interface NativeProps extends ViewProps { ++ enableGpuBuffers: boolean; ++ androidPreviewViewType?: string; ++ cameraId: string; ++ enableFrameProcessor: boolean; ++ enableLocation: boolean; ++ enableBufferCompression: boolean; ++ photoQualityBalance: string; ++ isActive: boolean; ++ photo?: boolean; ++ video?: boolean; ++ audio?: boolean; ++ torch?: string; ++ zoom?: Double; ++ exposure?: Double; ++ enableZoomGesture?: boolean; ++ enableFpsGraph?: boolean; ++ resizeMode?: string; ++ format?: Readonly<{ ++ supportsDepthCapture?: boolean; ++ photoHeight: Double; ++ photoWidth: Double; ++ videoHeight: Double; ++ videoWidth: Double; ++ maxISO: Double; ++ minISO: Double; ++ maxFps: Double; ++ minFps: Double; ++ fieldOfView: Double; ++ supportsVideoHDR: boolean; ++ supportsPhotoHDR: boolean; ++ autoFocusSystem: string; ++ videoStabilizationModes: string[]; ++ pixelFormats: string[]; ++ }>; ++ pixelFormat: string; ++ fps?: Int32; ++ videoHdr?: boolean; ++ photoHdr?: boolean; ++ lowLightBoost?: boolean; ++ videoStabilizationMode?: string; ++ enableDepthData?: boolean; ++ enablePortraitEffectsMatteDelivery?: boolean; ++ orientation?: string; ++ codeScannerOptions?: Readonly<{ ++ codeTypes?: string[]; ++ interval?: Double; ++ regionOfInterest?: Readonly<{ ++ x?: Double; ++ y?: Double; ++ width?: Double; ++ height?: Double; ++ }>; ++ }>; ++ onCodeScanned?: DirectEventHandler; ++ }>; ++ frame?: Readonly<{ ++ width: Int32; ++ height: Int32; ++ }>; ++ corners?: Readonly<{ ++ x: Double; ++ y: Double; ++ }>; ++ }>>; ++ onShutter?: DirectEventHandler>; ++ onStarted?: DirectEventHandler>; ++ onStopped?: DirectEventHandler>; ++ onInitialized?: DirectEventHandler>; ++ onError?: DirectEventHandler; ++ }>>; ++ onViewReady: DirectEventHandler>; ++} ++declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType; ++export default _default; ++//# sourceMappingURL=CameraViewNativeComponent.d.ts.map +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts.map b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts.map +new file mode 100644 +index 0000000..e47e42f +--- /dev/null ++++ b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts.map +@@ -0,0 +1 @@ ++{"version":3,"file":"CameraViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/CameraViewNativeComponent.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAGnG,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEnE,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B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ACF,SAAS,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,aAAa,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,kBAAkB,CAC1B,QAAQ,CAAC;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,QAAQ,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACrF,CAAC,CACH,CAAC;IACF,WAAW,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;CAC/C;;AAED,wBAAiE"} +\ No newline at end of file +diff --git a/node_modules/react-native-vision-camera/package.json b/node_modules/react-native-vision-camera/package.json +index 86352fa..7af9577 100644 +--- a/node_modules/react-native-vision-camera/package.json ++++ b/node_modules/react-native-vision-camera/package.json +@@ -166,5 +166,13 @@ + ] + ] + }, +- "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" ++ "codegenConfig": { ++ "name": "RNVisioncameraSpec", ++ "type": "all", ++ "jsSrcsDir": "./src/specs", ++ "android": { ++ "javaPackageName": "com.mrousavy.camera" ++ } ++ }, ++ "packageManager": "yarn@1.22.19" + } +diff --git a/node_modules/react-native-vision-camera/src/Camera.tsx b/node_modules/react-native-vision-camera/src/Camera.tsx +index 18733ba..1668322 100644 +--- a/node_modules/react-native-vision-camera/src/Camera.tsx ++++ b/node_modules/react-native-vision-camera/src/Camera.tsx +@@ -1,5 +1,5 @@ + import React from 'react' +-import { requireNativeComponent, NativeSyntheticEvent, findNodeHandle, NativeMethods } from 'react-native' ++import { NativeSyntheticEvent, findNodeHandle, NativeMethods } from 'react-native' + import type { CameraDevice } from './CameraDevice' + import type { ErrorWithCause } from './CameraError' + import { CameraCaptureError, CameraRuntimeError, tryParseNativeCameraError, isErrorWithCause } from './CameraError' +@@ -10,9 +10,12 @@ import type { Point } from './Point' + import type { RecordVideoOptions, VideoFile } from './VideoFile' + import { VisionCameraProxy } from './FrameProcessorPlugins' + import { CameraDevices } from './CameraDevices' +-import type { EmitterSubscription } from 'react-native' ++import type { EmitterSubscription, requireNativeComponent } from 'react-native' + import type { Code, CodeScanner, CodeScannerFrame } from './CodeScanner' + import { TakeSnapshotOptions } from './Snapshot' ++import NativeCameraViewCodegen from './specs/CameraViewNativeComponent' ++ ++const NativeCameraView = NativeCameraViewCodegen as unknown as ReturnType> + + //#region Types + export type CameraPermissionStatus = 'granted' | 'not-determined' | 'denied' | 'restricted' +@@ -604,10 +607,3 @@ export class Camera extends React.PureComponent { + } + } + //#endregion +- +-// requireNativeComponent automatically resolves 'CameraView' to 'CameraViewManager' +-const NativeCameraView = requireNativeComponent( +- 'CameraView', +- // @ts-expect-error because the type declarations are kinda wrong, no? +- Camera, +-) +diff --git a/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts b/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts +index aa9d5ee..e7a3fa8 100644 +--- a/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts ++++ b/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts +@@ -98,7 +98,7 @@ try { + isAsyncContextBusy.value = false + } + }, asyncContext) +- hasWorklets = true ++ // hasWorklets = true + } catch (e) { + // Worklets are not installed, so Frame Processors are disabled. + } +diff --git a/node_modules/react-native-vision-camera/src/specs/CameraViewNativeComponent.ts b/node_modules/react-native-vision-camera/src/specs/CameraViewNativeComponent.ts +new file mode 100644 +index 0000000..70f4572 +--- /dev/null ++++ b/node_modules/react-native-vision-camera/src/specs/CameraViewNativeComponent.ts +@@ -0,0 +1,91 @@ ++/* eslint-disable @typescript-eslint/ban-types */ ++import type { HostComponent, ViewProps } from 'react-native'; ++import type { DirectEventHandler, Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes'; ++import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; ++ ++export type VisionCameraComponentType = HostComponent; ++ ++export interface NativeProps extends ViewProps { ++ enableGpuBuffers: boolean; ++ androidPreviewViewType?: string; ++ cameraId: string; ++ enableFrameProcessor: boolean; ++ enableLocation: boolean; ++ enableBufferCompression: boolean; ++ photoQualityBalance: string; ++ isActive: boolean; ++ photo?: boolean; ++ video?: boolean; ++ audio?: boolean; ++ torch?: string; ++ zoom?: Double; ++ exposure?: Double; ++ enableZoomGesture?: boolean; ++ enableFpsGraph?: boolean; ++ resizeMode?: string; ++ format?: Readonly<{ ++ supportsDepthCapture?: boolean; ++ photoHeight: Double; ++ photoWidth: Double; ++ videoHeight: Double; ++ videoWidth: Double; ++ maxISO: Double; ++ minISO: Double; ++ maxFps: Double; ++ minFps: Double; ++ fieldOfView: Double; ++ supportsVideoHDR: boolean; ++ supportsPhotoHDR: boolean; ++ autoFocusSystem: string; ++ videoStabilizationModes: string[]; ++ pixelFormats: string[]; ++ }>; ++ pixelFormat: string; ++ fps?: Int32; ++ videoHdr?: boolean; // not sure why was int on native side ++ photoHdr?: boolean; // not sure why was int on native side ++ lowLightBoost?: boolean; // same ++ videoStabilizationMode?: string; ++ enableDepthData?: boolean; ++ enablePortraitEffectsMatteDelivery?: boolean; ++ orientation?: string; ++ codeScannerOptions?: Readonly<{ ++ codeTypes?: string[]; ++ interval?: Double; ++ regionOfInterest?: Readonly<{ ++ x?: Double, ++ y?: Double, ++ width?: Double, ++ height?: Double, ++ }>; ++ }>; ++ onCodeScanned?: DirectEventHandler< ++ Readonly<{ ++ codes?: Readonly<{ ++ type?: string; ++ value?: string; ++ frame?: Readonly<{ x: Double, y: Double, width: Double, height: Double}>; ++ }>; ++ frame?: Readonly<{ width: Int32, height: Int32 }>; ++ corners?: Readonly<{ x: Double, y: Double }>; ++ }> ++ >; ++ onShutter?: DirectEventHandler< ++ Readonly<{ ++ type: string; ++ }> ++ >; ++ onStarted?: DirectEventHandler>; ++ onStopped?: DirectEventHandler>; ++ onInitialized?: DirectEventHandler>; ++ onError?: DirectEventHandler< ++ Readonly<{ ++ code: string; ++ message: string; ++ cause: Readonly<{ code: string; domain: string; message: string; details: string }>; ++ }> ++ >; ++ onViewReady: DirectEventHandler>; ++} ++ ++export default codegenNativeComponent('CameraView'); diff --git a/patches/react-native-webview+13.6.4.patch b/patches/react-native-webview+13.6.4.patch new file mode 100644 index 000000000000..ce035fd01852 --- /dev/null +++ b/patches/react-native-webview+13.6.4.patch @@ -0,0 +1,55 @@ +diff --git a/node_modules/react-native-webview/apple/RNCWebView.mm b/node_modules/react-native-webview/apple/RNCWebView.mm +index 70d5ee4..6c3467d 100644 +--- a/node_modules/react-native-webview/apple/RNCWebView.mm ++++ b/node_modules/react-native-webview/apple/RNCWebView.mm +@@ -313,24 +313,28 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const & + + if (oldViewProps.dataDetectorTypes != newViewProps.dataDetectorTypes) { + WKDataDetectorTypes dataDetectorTypes = WKDataDetectorTypeNone; +- if (dataDetectorTypes & RNCWebViewDataDetectorTypes::Address) { ++ for (const auto& type : newViewProps.dataDetectorTypes) { ++ if (type == "address") { + dataDetectorTypes |= WKDataDetectorTypeAddress; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::Link) { ++ } else if (type == "link") { + dataDetectorTypes |= WKDataDetectorTypeLink; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::CalendarEvent) { ++ } else if (type == "calendarEvent") { + dataDetectorTypes |= WKDataDetectorTypeCalendarEvent; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::TrackingNumber) { ++ } else if (type == "trackingNumber") { + dataDetectorTypes |= WKDataDetectorTypeTrackingNumber; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::FlightNumber) { ++ } else if (type == "flightNumber") { + dataDetectorTypes |= WKDataDetectorTypeFlightNumber; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::LookupSuggestion) { ++ } else if (type == "lookupSuggestion") { + dataDetectorTypes |= WKDataDetectorTypeLookupSuggestion; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::PhoneNumber) { ++ } else if (type == "phoneNumber") { + dataDetectorTypes |= WKDataDetectorTypePhoneNumber; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::All) { ++ } else if (type == "all") { + dataDetectorTypes |= WKDataDetectorTypeAll; +- } else if (dataDetectorTypes & RNCWebViewDataDetectorTypes::None) { ++ break; ++ } else if (type == "none") { + dataDetectorTypes = WKDataDetectorTypeNone; ++ break; ++ } + } + [_view setDataDetectorTypes:dataDetectorTypes]; + } +diff --git a/node_modules/react-native-webview/src/RNCWebViewNativeComponent.ts b/node_modules/react-native-webview/src/RNCWebViewNativeComponent.ts +index ae52bc8..d035207 100644 +--- a/node_modules/react-native-webview/src/RNCWebViewNativeComponent.ts ++++ b/node_modules/react-native-webview/src/RNCWebViewNativeComponent.ts +@@ -187,7 +187,7 @@ export interface NativeProps extends ViewProps { + contentMode?: WithDefault<'recommended' | 'mobile' | 'desktop', 'recommended'>; + dataDetectorTypes?: WithDefault< + // eslint-disable-next-line @typescript-eslint/array-type +- ReadonlyArray<'address' | 'link' | 'calendarEvent' | 'trackingNumber' | 'flightNumber' | 'lookupSuggestion' | 'phoneNumber' | 'all' | 'none'>, ++ ReadonlyArray, + 'phoneNumber' + >; + decelerationRate?: Double; diff --git a/src/CONST.ts b/src/CONST.ts index f9229d5185b4..b07b622cec05 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -874,6 +874,7 @@ const CONST = { CALCULATE_MOST_RECENT_LAST_MODIFIED_ACTION: 'calc_most_recent_last_modified_action', SEARCH_RENDER: 'search_render', CHAT_RENDER: 'chat_render', + OPEN_REPORT: 'open_report', HOMEPAGE_INITIAL_RENDER: 'homepage_initial_render', REPORT_INITIAL_RENDER: 'report_initial_render', SWITCH_REPORT: 'switch_report', @@ -1199,6 +1200,24 @@ const CONST = { EXPENSIFY_EMAIL_DOMAIN: '@expensify.com', }, + INTEGRATION_ENTITY_MAP_TYPES: { + DEFAULT: 'DEFAULT', + NONE: 'NONE', + TAG: 'TAG', + REPORT_FIELD: 'REPORT_FIELD', + NOT_IMPORTED: 'NOT_IMPORTED', + IMPORTED: 'IMPORTED', + }, + QUICK_BOOKS_ONLINE: 'quickbooksOnline', + + QUICK_BOOKS_IMPORTS: { + SYNC_CLASSES: 'syncClasses', + ENABLE_NEW_CATEGORIES: 'enableNewCategories', + SYNC_CUSTOMERS: 'syncCustomers', + SYNC_LOCATIONS: 'syncLocations', + SYNC_TAXES: 'syncTaxes', + }, + ACCOUNT_ID: { ACCOUNTING: Number(Config?.EXPENSIFY_ACCOUNT_ID_ACCOUNTING ?? 9645353), ADMIN: Number(Config?.EXPENSIFY_ACCOUNT_ID_ADMIN ?? -1), @@ -1569,6 +1588,28 @@ const CONST = { AUTOREPORTING_OFFSET: 'autoReportingOffset', GENERAL_SETTINGS: 'generalSettings', }, + CONNECTIONS: { + SYNC_STATUS: { + STARTING: 'starting', + FINISHED: 'finished', + PROGRESS: 'progress', + }, + NAME: { + // Here we will add other connections names when we add support for them + QBO: 'quickbooksOnline', + }, + SYNC_STAGE_NAME: { + STARTING_IMPORT: 'startingImport', + QBO_CUSTOMERS: 'quickbooksOnlineImportCustomers', + QBO_EMPLOYEES: 'quickbooksOnlineImportEmployees', + QBO_ACCOUNTS: 'quickbooksOnlineImportAccounts', + QBO_CLASSES: 'quickbooksOnlineImportClasses', + QBO_LOCATIONS: 'quickbooksOnlineImportLocations', + QBO_PROCESSING: 'quickbooksOnlineImportProcessing', + QBO_PAYMENTS: 'quickbooksOnlineSyncBillPayments', + QBO_TAX_CODES: 'quickbooksOnlineSyncTaxCodes', + }, + }, }, CUSTOM_UNITS: { diff --git a/src/ONYXKEYS.ts b/src/ONYXKEYS.ts index 0a21cb17df7e..506f969b9ad1 100755 --- a/src/ONYXKEYS.ts +++ b/src/ONYXKEYS.ts @@ -349,6 +349,8 @@ const ONYXKEYS = { /** This is deprecated, but needed for a migration, so we still need to include it here so that it will be initialized in Onyx.init */ DEPRECATED_POLICY_MEMBER_LIST: 'policyMemberList_', + + POLICY_CONNECTION_SYNC_PROGRESS: 'policyConnectionSyncProgress_', }, /** List of Form ids */ @@ -545,6 +547,7 @@ type OnyxCollectionValuesMapping = { [ONYXKEYS.COLLECTION.PRIVATE_NOTES_DRAFT]: string; [ONYXKEYS.COLLECTION.NEXT_STEP]: OnyxTypes.ReportNextStep; [ONYXKEYS.COLLECTION.POLICY_JOIN_MEMBER]: OnyxTypes.PolicyJoinMember; + [ONYXKEYS.COLLECTION.POLICY_CONNECTION_SYNC_PROGRESS]: OnyxTypes.PolicyConnectionSyncProgress; }; type OnyxValuesMapping = { diff --git a/src/ROUTES.ts b/src/ROUTES.ts index f334da7a2407..60fca9fac87b 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -1,5 +1,6 @@ import type {IsEqual, ValueOf} from 'type-fest'; import type CONST from './CONST'; +import type {IOURequestType} from './libs/actions/IOU'; // This is a file containing constants for all the routes we want to be able to go to @@ -396,7 +397,7 @@ const ROUTES = { // straight to those flows without needing to have optimistic transaction and report IDs. MONEY_REQUEST_START: { route: 'start/:iouType/:iouRequestType', - getRoute: (iouType: ValueOf, iouRequestType: ValueOf) => `start/${iouType}/${iouRequestType}` as const, + getRoute: (iouType: ValueOf, iouRequestType: IOURequestType) => `start/${iouType}/${iouRequestType}` as const, }, MONEY_REQUEST_CREATE_TAB_DISTANCE: { route: ':action/:iouType/start/:transactionID/:reportID/distance', @@ -553,6 +554,10 @@ const ROUTES = { route: 'settings/workspaces/:policyID/members', getRoute: (policyID: string) => `settings/workspaces/${policyID}/members` as const, }, + WORKSPACE_ACCOUNTING: { + route: 'settings/workspaces/:policyID/accounting', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting` as const, + }, WORKSPACE_CATEGORIES: { route: 'settings/workspaces/:policyID/categories', getRoute: (policyID: string) => `settings/workspaces/${policyID}/categories` as const, @@ -648,15 +653,15 @@ const ROUTES = { }, WORKSPACE_TAX_EDIT: { route: 'settings/workspaces/:policyID/tax/:taxID', - getRoute: (policyID: string, taxID: string) => `settings/workspaces/${policyID}/tax/${encodeURI(taxID)}` as const, + getRoute: (policyID: string, taxID: string) => `settings/workspaces/${policyID}/tax/${encodeURIComponent(taxID)}` as const, }, WORKSPACE_TAX_NAME: { route: 'settings/workspaces/:policyID/tax/:taxID/name', - getRoute: (policyID: string, taxID: string) => `settings/workspaces/${policyID}/tax/${encodeURI(taxID)}/name` as const, + getRoute: (policyID: string, taxID: string) => `settings/workspaces/${policyID}/tax/${encodeURIComponent(taxID)}/name` as const, }, WORKSPACE_TAX_VALUE: { route: 'settings/workspaces/:policyID/tax/:taxID/value', - getRoute: (policyID: string, taxID: string) => `settings/workspaces/${policyID}/tax/${encodeURI(taxID)}/value` as const, + getRoute: (policyID: string, taxID: string) => `settings/workspaces/${policyID}/tax/${encodeURIComponent(taxID)}/value` as const, }, WORKSPACE_DISTANCE_RATES: { route: 'settings/workspaces/:policyID/distance-rates', @@ -693,6 +698,30 @@ const ROUTES = { route: 'r/:reportID/transaction/:transactionID/receipt', getRoute: (reportID: string, transactionID: string) => `r/${reportID}/transaction/${transactionID}/receipt` as const, }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_IMPORT: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_CHART_OF_ACCOUNTS: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/accounts', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/accounts` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_CLASSES: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/classes', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/classes` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_CUSTOMERS: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/customers', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/customers` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_LOCATIONS: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/locations', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/locations` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_TAXES: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/taxes', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/taxes` as const, + }, } as const; /** diff --git a/src/SCREENS.ts b/src/SCREENS.ts index 6c9262deeeb3..b3c2012e90d2 100644 --- a/src/SCREENS.ts +++ b/src/SCREENS.ts @@ -213,6 +213,7 @@ const SCREENS = { INVOICES: 'Workspace_Invoices', TRAVEL: 'Workspace_Travel', MEMBERS: 'Workspace_Members', + ACCOUNTING: 'Workspace_Accounting', INVITE: 'Workspace_Invite', INVITE_MESSAGE: 'Workspace_Invite_Message', CATEGORIES: 'Workspace_Categories', @@ -252,6 +253,12 @@ const SCREENS = { DISTANCE_RATES: 'Distance_Rates', CREATE_DISTANCE_RATE: 'Create_Distance_Rate', DISTANCE_RATES_SETTINGS: 'Distance_Rates_Settings', + QUICKBOOKS_ONLINE_IMPORT: 'Workspace_Accounting_Quickbooks_Online_Import', + QUICKBOOKS_ONLINE_CHART_OF_ACCOUNTS: 'Workspace_Accounting_Quickbooks_Online_Import_Chart_Of_Accounts', + QUICKBOOKS_ONLINE_CLASSES: 'Workspace_Accounting_Quickbooks_Online_Import_Classes', + QUICKBOOKS_ONLINE_CUSTOMERS: 'Workspace_Accounting_Quickbooks_Online_Import_Customers', + QUICKBOOKS_ONLINE_LOCATIONS: 'Workspace_Accounting_Quickbooks_Online_Import_Locations', + QUICKBOOKS_ONLINE_TAXES: 'Workspace_Accounting_Quickbooks_Online_Import_Taxes', DISTANCE_RATE_DETAILS: 'Distance_Rate_Details', DISTANCE_RATE_EDIT: 'Distance_Rate_Edit', }, diff --git a/src/components/AddressForm.tsx b/src/components/AddressForm.tsx index 362ba88440a0..9ad4643e834a 100644 --- a/src/components/AddressForm.tsx +++ b/src/components/AddressForm.tsx @@ -159,7 +159,7 @@ function AddressForm({ city: INPUT_IDS.CITY, state: INPUT_IDS.STATE, zipCode: INPUT_IDS.ZIP_POST_CODE, - country: INPUT_IDS.COUNTRY, + country: INPUT_IDS.COUNTRY as Country, }} maxInputLength={CONST.FORM_CHARACTER_LIMIT} shouldSaveDraft={shouldSaveDraft} diff --git a/src/components/AddressSearch/index.tsx b/src/components/AddressSearch/index.tsx index d0aa2e206eb2..31ccfc954513 100644 --- a/src/components/AddressSearch/index.tsx +++ b/src/components/AddressSearch/index.tsx @@ -20,9 +20,10 @@ import type {GeolocationErrorCodeType} from '@libs/getCurrentPosition/getCurrent import * as GooglePlacesUtils from '@libs/GooglePlacesUtils'; import variables from '@styles/variables'; import CONST from '@src/CONST'; +import type {Address} from '@src/types/onyx/PrivatePersonalDetails'; import CurrentLocationButton from './CurrentLocationButton'; import isCurrentTargetInsideContainer from './isCurrentTargetInsideContainer'; -import type {AddressSearchProps, RenamedInputKeysProps} from './types'; +import type {AddressSearchProps} from './types'; // The error that's being thrown below will be ignored until we fork the // react-native-google-places-autocomplete repo and replace the @@ -213,7 +214,7 @@ function AddressSearch( if (inputID) { Object.entries(values).forEach(([key, inputValue]) => { - const inputKey = renamedInputKeys?.[key as keyof RenamedInputKeysProps] ?? key; + const inputKey = renamedInputKeys?.[key as keyof Address] ?? key; if (!inputKey) { return; } diff --git a/src/components/AddressSearch/types.ts b/src/components/AddressSearch/types.ts index efbcc6374341..bc7acf3f7e40 100644 --- a/src/components/AddressSearch/types.ts +++ b/src/components/AddressSearch/types.ts @@ -3,6 +3,7 @@ import type {NativeSyntheticEvent, StyleProp, TextInputFocusEventData, View, Vie import type {Place} from 'react-native-google-places-autocomplete'; import type {MaybePhraseKey} from '@libs/Localize'; import type Locale from '@src/types/onyx/Locale'; +import type {Address} from '@src/types/onyx/PrivatePersonalDetails'; type CurrentLocationButtonProps = { /** Callback that is called when the button is clicked */ @@ -12,18 +13,6 @@ type CurrentLocationButtonProps = { isDisabled?: boolean; }; -type RenamedInputKeysProps = { - street: string; - street2: string; - city: string; - state: string; - lat?: string; - lng?: string; - zipCode: string; - address?: string; - country?: string; -}; - type OnPressProps = { address: string; lat: number; @@ -61,7 +50,7 @@ type AddressSearchProps = { defaultValue?: string; /** A callback function when the value of this field has changed */ - onInputChange?: (value: string | number | RenamedInputKeysProps | StreetValue, key?: string) => void; + onInputChange?: (value: string | number | Address | StreetValue, key?: string) => void; /** A callback function when an address has been auto-selected */ onPress?: (props: OnPressProps) => void; @@ -79,7 +68,7 @@ type AddressSearchProps = { predefinedPlaces?: Place[] | null; /** A map of inputID key names */ - renamedInputKeys?: RenamedInputKeysProps; + renamedInputKeys?: Address; /** Maximum number of characters allowed in search input */ maxInputLength?: number; @@ -96,4 +85,4 @@ type AddressSearchProps = { type IsCurrentTargetInsideContainerType = (event: FocusEvent | NativeSyntheticEvent, containerRef: RefObject) => boolean; -export type {CurrentLocationButtonProps, AddressSearchProps, RenamedInputKeysProps, IsCurrentTargetInsideContainerType, StreetValue}; +export type {CurrentLocationButtonProps, AddressSearchProps, IsCurrentTargetInsideContainerType, StreetValue}; diff --git a/src/components/AttachmentModal.tsx b/src/components/AttachmentModal.tsx old mode 100755 new mode 100644 index c915b2f227aa..7d13524b78df --- a/src/components/AttachmentModal.tsx +++ b/src/components/AttachmentModal.tsx @@ -614,6 +614,7 @@ export default withOnyx({ const transactionID = parentReportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.IOU ? parentReportAction?.originalMessage.IOUTransactionID ?? '0' : '0'; return `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`; }, + initWithStoredValues: false, }, parentReport: { key: ({report}) => `${ONYXKEYS.COLLECTION.REPORT}${report ? report.parentReportID : '0'}`, diff --git a/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.ts b/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.ts index 342afa1d5366..d1185f88ccd5 100644 --- a/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.ts +++ b/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.ts @@ -76,9 +76,9 @@ function extractAttachmentsFromReport(parentReportAction?: OnyxEntry', `data-flagged="${hasBeenFlagged}" data-id="${action.reportActionID}"/>`); + const html = (action?.message?.[0]?.html ?? '').replace('/>', `data-flagged="${hasBeenFlagged}" data-id="${action.reportActionID}"/>`); htmlParser.write(html); }); htmlParser.end(); diff --git a/src/components/AvatarWithDisplayName.tsx b/src/components/AvatarWithDisplayName.tsx index 396c10151fbf..f6afb4dae2d6 100644 --- a/src/components/AvatarWithDisplayName.tsx +++ b/src/components/AvatarWithDisplayName.tsx @@ -141,6 +141,7 @@ function AvatarWithDisplayName({ )} diff --git a/src/components/CategoryPicker.tsx b/src/components/CategoryPicker.tsx index 0307b67114e5..f26d7c25c7e2 100644 --- a/src/components/CategoryPicker.tsx +++ b/src/components/CategoryPicker.tsx @@ -21,7 +21,7 @@ type CategoryPickerProps = CategoryPickerOnyxProps & { /** It's used by withOnyx HOC */ // eslint-disable-next-line react/no-unused-prop-types policyID: string; - selectedCategory: string; + selectedCategory?: string; onSubmit: (item: ListItem) => void; }; @@ -38,7 +38,7 @@ function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedC { name: selectedCategory, enabled: true, - accountID: null, + accountID: undefined, isSelected: true, }, ]; diff --git a/src/components/DatePicker/index.tsx b/src/components/DatePicker/index.tsx index 96047d4f5578..3ca60c8a6edb 100644 --- a/src/components/DatePicker/index.tsx +++ b/src/components/DatePicker/index.tsx @@ -112,7 +112,10 @@ function DatePicker( readOnly /> - + {uniqueMessages.map((message, i) => isReceiptError(message) ? ( - { - fileDownload(message.source, message.filename); - }} + style={styles.offlineFeedback.text} > - {Localize.translateLocal('iou.error.receiptFailureMessage')} + { + fileDownload(message.source, message.filename); + }} > - {Localize.translateLocal('iou.error.receiptFailureMessage')} - {Localize.translateLocal('iou.error.saveFileMessage')} - {Localize.translateLocal('iou.error.loseFileMessage')} - - + {Localize.translateLocal('iou.error.saveFileMessage')} + + + {Localize.translateLocal('iou.error.loseFileMessage')} + ) : ( & { shouldSetModalVisibility?: boolean; /** List of menu items for more(three dots) menu */ - threeDotsMenuItems?: ThreeDotsMenuItem[]; + threeDotsMenuItems?: PopoverMenuItem[]; /** The anchor position of the menu */ threeDotsAnchorPosition?: AnchorPosition; diff --git a/src/components/Icon/Expensicons.ts b/src/components/Icon/Expensicons.ts index 1fcf0d07276c..877e4972a3ec 100644 --- a/src/components/Icon/Expensicons.ts +++ b/src/components/Icon/Expensicons.ts @@ -84,6 +84,8 @@ import Hourglass from '@assets/images/hourglass.svg'; import ImageCropCircleMask from '@assets/images/image-crop-circle-mask.svg'; import ImageCropSquareMask from '@assets/images/image-crop-square-mask.svg'; import Info from '@assets/images/info.svg'; +import QBOSquare from '@assets/images/integrationicons/qbo-icon-square.svg'; +import XeroSquare from '@assets/images/integrationicons/xero-icon-square.svg'; import Invoice from '@assets/images/invoice.svg'; import Key from '@assets/images/key.svg'; import Keyboard from '@assets/images/keyboard.svg'; @@ -280,6 +282,7 @@ export { Plus, Printer, Profile, + QBOSquare, QrCode, QuestionMark, Receipt, @@ -308,6 +311,7 @@ export { Wallet, Workflows, Workspace, + XeroSquare, Zoom, Twitter, Youtube, diff --git a/src/components/LHNOptionsList/OptionRowLHN.tsx b/src/components/LHNOptionsList/OptionRowLHN.tsx index fbcb7d4b373d..25cc53340dd5 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.tsx +++ b/src/components/LHNOptionsList/OptionRowLHN.tsx @@ -20,6 +20,7 @@ import useWindowDimensions from '@hooks/useWindowDimensions'; import DateUtils from '@libs/DateUtils'; import DomUtils from '@libs/DomUtils'; import * as OptionsListUtils from '@libs/OptionsListUtils'; +import Performance from '@libs/Performance'; import ReportActionComposeFocusManager from '@libs/ReportActionComposeFocusManager'; import * as ReportUtils from '@libs/ReportUtils'; import * as ReportActionContextMenu from '@pages/home/report/ContextMenu/ReportActionContextMenu'; @@ -123,6 +124,8 @@ function OptionRowLHN({reportID, isFocused = false, onSelectRow = () => {}, opti { + Performance.markStart(CONST.TIMING.OPEN_REPORT); + event?.preventDefault(); // Enable Composer to focus on clicking the same chat after opening the context menu. ReportActionComposeFocusManager.focus(); diff --git a/src/components/Modal/BaseModal.tsx b/src/components/Modal/BaseModal.tsx index f20e34d45f44..2448f65a75f4 100644 --- a/src/components/Modal/BaseModal.tsx +++ b/src/components/Modal/BaseModal.tsx @@ -34,6 +34,7 @@ function BaseModal( animationIn, animationOut, useNativeDriver: useNativeDriverProp, + useNativeDriverForBackdrop, hideModalContentWhileAnimating = false, animationInTiming, animationOutTiming, @@ -189,49 +190,59 @@ function BaseModal( }); return ( - e.stopPropagation()} - onBackdropPress={handleBackdropPress} - // Note: Escape key on web/desktop will trigger onBackButtonPress callback - // eslint-disable-next-line react/jsx-props-no-multi-spaces - onBackButtonPress={Modal.closeTop} - onModalShow={handleShowModal} - propagateSwipe={propagateSwipe} - onModalHide={hideModal} - onModalWillShow={saveFocusState} - onDismiss={handleDismissModal} - onSwipeComplete={() => onClose?.()} - swipeDirection={swipeDirection} - isVisible={isVisible} - backdropColor={theme.overlay} - backdropOpacity={!shouldUseCustomBackdrop && hideBackdrop ? 0 : variables.overlayOpacity} - backdropTransitionOutTiming={0} - hasBackdrop={fullscreen} - coverScreen={fullscreen} - style={modalStyle} - deviceHeight={windowHeight} - deviceWidth={windowWidth} - animationIn={animationIn ?? modalStyleAnimationIn} - animationOut={animationOut ?? modalStyleAnimationOut} - useNativeDriver={useNativeDriverProp && useNativeDriver} - hideModalContentWhileAnimating={hideModalContentWhileAnimating} - animationInTiming={animationInTiming} - animationOutTiming={animationOutTiming} - statusBarTranslucent={statusBarTranslucent} - onLayout={onLayout} - avoidKeyboard={avoidKeyboard} - customBackdrop={shouldUseCustomBackdrop ? : undefined} + // this is a workaround for modal not being visible on the new arch in some cases + // it's necessary to have a non-collapseable view as a parent of the modal to prevent + // a conflict between RN core and Reanimated shadow tree operations + // position absolute is needed to prevent the view from interfering with flex layout + - - - {children} - - - + e.stopPropagation()} + onBackdropPress={handleBackdropPress} + // Note: Escape key on web/desktop will trigger onBackButtonPress callback + // eslint-disable-next-line react/jsx-props-no-multi-spaces + onBackButtonPress={Modal.closeTop} + onModalShow={handleShowModal} + propagateSwipe={propagateSwipe} + onModalHide={hideModal} + onModalWillShow={saveFocusState} + onDismiss={handleDismissModal} + onSwipeComplete={() => onClose?.()} + swipeDirection={swipeDirection} + isVisible={isVisible} + backdropColor={theme.overlay} + backdropOpacity={!shouldUseCustomBackdrop && hideBackdrop ? 0 : variables.overlayOpacity} + backdropTransitionOutTiming={0} + hasBackdrop={fullscreen} + coverScreen={fullscreen} + style={modalStyle} + deviceHeight={windowHeight} + deviceWidth={windowWidth} + animationIn={animationIn ?? modalStyleAnimationIn} + animationOut={animationOut ?? modalStyleAnimationOut} + useNativeDriver={useNativeDriverProp && useNativeDriver} + useNativeDriverForBackdrop={useNativeDriverForBackdrop && useNativeDriver} + hideModalContentWhileAnimating={hideModalContentWhileAnimating} + animationInTiming={animationInTiming} + animationOutTiming={animationOutTiming} + statusBarTranslucent={statusBarTranslucent} + onLayout={onLayout} + avoidKeyboard={avoidKeyboard} + customBackdrop={shouldUseCustomBackdrop ? : undefined} + > + + + {children} + + + + ); } diff --git a/src/components/Modal/index.android.tsx b/src/components/Modal/index.android.tsx index 7cb2c6083752..c5d777c096e1 100644 --- a/src/components/Modal/index.android.tsx +++ b/src/components/Modal/index.android.tsx @@ -8,6 +8,7 @@ function Modal({useNativeDriver = true, ...rest}: BaseModalProps) { return ( diff --git a/src/components/Modal/index.ios.tsx b/src/components/Modal/index.ios.tsx index b26ba6cd0f89..c04b1c0ec54a 100644 --- a/src/components/Modal/index.ios.tsx +++ b/src/components/Modal/index.ios.tsx @@ -5,6 +5,7 @@ import type BaseModalProps from './types'; function Modal({children, ...rest}: BaseModalProps) { return ( diff --git a/src/components/OnboardingWelcomeVideo.tsx b/src/components/OnboardingWelcomeVideo.tsx index f38bd4edcc10..257bd1b9c457 100644 --- a/src/components/OnboardingWelcomeVideo.tsx +++ b/src/components/OnboardingWelcomeVideo.tsx @@ -1,6 +1,7 @@ import type {VideoReadyForDisplayEvent} from 'expo-av'; import React, {useCallback, useEffect, useState} from 'react'; import {View} from 'react-native'; +import {GestureHandlerRootView} from 'react-native-gesture-handler'; import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; import useOnboardingLayout from '@hooks/useOnboardingLayout'; @@ -134,22 +135,24 @@ function OnboardingWelcomeVideo() { : {}), }} > - - {getWelcomeVideo()} - - - {translate('onboarding.welcomeVideo.title')} - {translate('onboarding.welcomeVideo.description')} + + + {getWelcomeVideo()} + + + {translate('onboarding.welcomeVideo.title')} + {translate('onboarding.welcomeVideo.description')} + +