@voidhash/nitro-ui 0.0.0-stage → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/Package.swift +161 -0
- package/README.md +127 -2
- package/android/nitro-ui.gradle +35 -0
- package/android/src/main/java/com/margelo/nitro/voidhash/HybridVoidhashNativeClient.kt +53 -0
- package/android/src/main/java/com/margelo/nitro/voidhash/VoidhashNitroUIModule.kt +65 -0
- package/android/src/main/java/com/margelo/nitro/voidhash/client/LegacyStorageImporter.kt +526 -0
- package/android/src/main/java/com/margelo/nitro/voidhash/client/SdkBackedNativeClient.kt +1131 -0
- package/android/src/main/java/com/margelo/nitro/voidhash/client/StoreMapping.kt +257 -0
- package/android/src/main/java/com/margelo/nitro/voidhash/client/VoidhashFlowPermissionHandlers.kt +23 -0
- package/android/src/main/java/com/margelo/nitro/voidhash/flows/VoidhashFlowsCore.kt +93 -0
- package/build/chunk-5LFKYB24.js +331 -0
- package/build/chunk-5LFKYB24.js.map +1 -0
- package/build/index.d.ts +2870 -0
- package/build/index.js +4183 -0
- package/build/index.js.map +1 -0
- package/build/navigation.d.ts +66 -0
- package/build/navigation.js +72 -0
- package/build/navigation.js.map +1 -0
- package/ios/HybridVoidhashNativeClient.swift +427 -0
- package/ios/Shared/NativeClientMapping.swift +184 -0
- package/ios/Shared/NativeStoreJson.swift +126 -0
- package/ios/Shared/VoidhashCoreExports.swift +5 -0
- package/ios/Shared/VoidhashLegacyImporter.swift +686 -0
- package/ios/Shared/VoidhashNativeClientCore.swift +1401 -0
- package/nitro.json +8 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/NitroVoidhash+autolinking.cmake +86 -0
- package/nitrogen/generated/android/NitroVoidhash+autolinking.gradle +10 -0
- package/nitrogen/generated/android/NitroVoidhashOnLoad.cpp +22 -0
- package/nitrogen/generated/android/c++/JCallback_Promise_std__string__std__string_std__string.cpp +57 -0
- package/nitrogen/generated/android/c++/JCallback_void_NativeClientEvent.cpp +55 -0
- package/nitrogen/generated/android/c++/JHybridVoidhashNativeClientSpec.cpp +387 -0
- package/nitrogen/generated/android/c++/JNativeAnalyticsConsent.cpp +55 -0
- package/nitrogen/generated/android/c++/JNativeAppStoreMessages.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativeAppStorePurchaseOptions.cpp +36 -0
- package/nitrogen/generated/android/c++/JNativeAppStoreSubscriptionState.cpp +64 -0
- package/nitrogen/generated/android/c++/JNativeAppStoreSubscriptionStatus.cpp +38 -0
- package/nitrogen/generated/android/c++/JNativeClientConfiguration.cpp +75 -0
- package/nitrogen/generated/android/c++/JNativeClientEvent.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativeClientEventType.cpp +70 -0
- package/nitrogen/generated/android/c++/JNativeDiagnostic.cpp +44 -0
- package/nitrogen/generated/android/c++/JNativeDiagnosticKind.cpp +67 -0
- package/nitrogen/generated/android/c++/JNativeEnvironment.cpp +61 -0
- package/nitrogen/generated/android/c++/JNativeFeatureFlag.cpp +41 -0
- package/nitrogen/generated/android/c++/JNativeFeatureFlagsResult.cpp +45 -0
- package/nitrogen/generated/android/c++/JNativeFlowCapability.cpp +58 -0
- package/nitrogen/generated/android/c++/JNativeFlowLoading.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativeFlowPresentation.cpp +42 -0
- package/nitrogen/generated/android/c++/JNativeFlowRevision.cpp +37 -0
- package/nitrogen/generated/android/c++/JNativeFlowRuntime.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativeFlushStatus.cpp +40 -0
- package/nitrogen/generated/android/c++/JNativeFreshnessReason.cpp +58 -0
- package/nitrogen/generated/android/c++/JNativeGooglePlayPurchaseOptions.cpp +40 -0
- package/nitrogen/generated/android/c++/JNativeIdentifyResult.cpp +40 -0
- package/nitrogen/generated/android/c++/JNativeIdentityChange.cpp +38 -0
- package/nitrogen/generated/android/c++/JNativeInAppMessageResult.cpp +38 -0
- package/nitrogen/generated/android/c++/JNativeInAppMessageStatus.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativeOffer.cpp +44 -0
- package/nitrogen/generated/android/c++/JNativeOfferKind.cpp +61 -0
- package/nitrogen/generated/android/c++/JNativeOfferSelection.cpp +55 -0
- package/nitrogen/generated/android/c++/JNativePaymentMode.cpp +58 -0
- package/nitrogen/generated/android/c++/JNativePendingAnalytics.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativePeriod.cpp +39 -0
- package/nitrogen/generated/android/c++/JNativePeriodUnit.cpp +61 -0
- package/nitrogen/generated/android/c++/JNativePersonState.cpp +44 -0
- package/nitrogen/generated/android/c++/JNativePersonWriteResult.cpp +38 -0
- package/nitrogen/generated/android/c++/JNativePrice.cpp +39 -0
- package/nitrogen/generated/android/c++/JNativePricingPhase.cpp +40 -0
- package/nitrogen/generated/android/c++/JNativeProduct.cpp +55 -0
- package/nitrogen/generated/android/c++/JNativeProductType.cpp +61 -0
- package/nitrogen/generated/android/c++/JNativePurchaseIntent.cpp +38 -0
- package/nitrogen/generated/android/c++/JNativePurchaseIntents.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativePurchaseOptions.cpp +49 -0
- package/nitrogen/generated/android/c++/JNativePurchaseOutcome.cpp +55 -0
- package/nitrogen/generated/android/c++/JNativePurchaseResult.cpp +40 -0
- package/nitrogen/generated/android/c++/JNativeRefundRequestStatus.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativeReportedPurchaseState.cpp +55 -0
- package/nitrogen/generated/android/c++/JNativeReportedTransaction.cpp +42 -0
- package/nitrogen/generated/android/c++/JNativeStore.cpp +58 -0
- package/nitrogen/generated/android/c++/JNativeStorePlatform.cpp +52 -0
- package/nitrogen/generated/android/c++/JNativeStorefront.cpp +37 -0
- package/nitrogen/generated/android/c++/JNativeSubscriptionInfo.cpp +45 -0
- package/nitrogen/generated/android/c++/JNativeSubscriptionReplacement.cpp +36 -0
- package/nitrogen/generated/android/c++/JNativeSubscriptionReplacementMode.cpp +61 -0
- package/nitrogen/generated/android/c++/JNativeTransaction.cpp +53 -0
- package/nitrogen/generated/android/c++/JNativeTransactionOffer.cpp +40 -0
- package/nitrogen/generated/android/c++/JNativeTransactionOfferKind.cpp +64 -0
- package/nitrogen/generated/android/c++/JNativeTransactionUpdate.cpp +36 -0
- package/nitrogen/generated/android/c++/JNativeWriteStatus.cpp +55 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JCallback_Promise_std__string__std__string_std__string.hpp +55 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JCallback_void_NativeClientEvent.hpp +54 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JHybridVoidhashNativeClientSpec.hpp +166 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JHybridVoidhashNativeClientSpecJavaPart.hpp +26 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeAnalyticsConsent.hpp +77 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeAppStoreMessages.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeAppStorePurchaseOptions.hpp +51 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeAppStoreSubscriptionState.hpp +92 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeAppStoreSubscriptionStatus.hpp +61 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeClientConfiguration.hpp +190 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeClientEvent.hpp +99 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeClientEventType.hpp +102 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeDiagnostic.hpp +79 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeDiagnosticKind.hpp +97 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeEnvironment.hpp +87 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFeatureFlag.hpp +68 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFeatureFlagsResult.hpp +76 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFlowCapability.hpp +82 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFlowLoading.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFlowPresentation.hpp +65 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFlowRevision.hpp +56 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFlowRuntime.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFlushStatus.hpp +63 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeFreshnessReason.hpp +82 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeGooglePlayPurchaseOptions.hpp +63 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeIdentifyResult.hpp +63 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeIdentityChange.hpp +61 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeInAppMessageResult.hpp +57 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeInAppMessageStatus.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeOffer.hpp +71 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeOfferKind.hpp +87 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeOfferSelection.hpp +77 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePaymentMode.hpp +82 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePendingAnalytics.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePeriod.hpp +62 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePeriodUnit.hpp +87 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePersonState.hpp +79 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePersonWriteResult.hpp +57 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePrice.hpp +66 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePricingPhase.hpp +67 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeProduct.hpp +118 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeProductType.hpp +87 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePurchaseIntent.hpp +57 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePurchaseIntents.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePurchaseOptions.hpp +88 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePurchaseOutcome.hpp +77 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativePurchaseResult.hpp +63 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeRefundRequestStatus.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeReportedPurchaseState.hpp +77 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeReportedTransaction.hpp +73 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeStore.hpp +82 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeStorePlatform.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeStorefront.hpp +56 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeSubscriptionInfo.hpp +84 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeSubscriptionReplacement.hpp +55 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeSubscriptionReplacementMode.hpp +87 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeTransaction.hpp +116 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeTransactionOffer.hpp +63 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeTransactionOfferKind.hpp +92 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeTransactionUpdate.hpp +55 -0
- package/nitrogen/generated/android/c++/include/NitroVoidhash/private/JNativeWriteStatus.hpp +77 -0
- package/nitrogen/generated/android/include/NitroVoidhash/private/NitroVoidhashOnLoad.hpp +13 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/Callback_Promise_std__string__std__string_std__string.kt +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/Callback_void_NativeClientEvent.kt +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/HybridVoidhashNativeClientSpec.kt +278 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeAnalyticsConsent.kt +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeAppStoreMessages.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeAppStorePurchaseOptions.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeAppStoreSubscriptionState.kt +58 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeAppStoreSubscriptionStatus.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeClientConfiguration.kt +172 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeClientEvent.kt +87 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeClientEventType.kt +64 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeDiagnostic.kt +72 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeDiagnosticKind.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeEnvironment.kt +55 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFeatureFlag.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFeatureFlagsResult.kt +67 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFlowCapability.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFlowLoading.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFlowPresentation.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFlowRevision.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFlowRuntime.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFlushStatus.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeFreshnessReason.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeGooglePlayPurchaseOptions.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeIdentifyResult.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeIdentityChange.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeInAppMessageResult.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeInAppMessageStatus.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeOffer.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeOfferKind.kt +55 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeOfferSelection.kt +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePaymentMode.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePendingAnalytics.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePeriod.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePeriodUnit.kt +55 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePersonState.kt +72 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePersonWriteResult.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePrice.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePricingPhase.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeProduct.kt +107 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeProductType.kt +55 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePurchaseIntent.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePurchaseIntents.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePurchaseOptions.kt +77 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePurchaseOutcome.kt +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativePurchaseResult.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeRefundRequestStatus.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeReportedPurchaseState.kt +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeReportedTransaction.kt +67 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeStore.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeStorePlatform.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeStorefront.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeSubscriptionInfo.kt +77 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeSubscriptionReplacement.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeSubscriptionReplacementMode.kt +55 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeTransaction.kt +107 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeTransactionOffer.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeTransactionOfferKind.kt +58 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeTransactionUpdate.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NativeWriteStatus.kt +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/voidhash/NitroVoidhashOnLoad.kt +22 -0
- package/nitrogen/generated/apple/NitroVoidhash-Swift-Cxx-Bridge.cpp +381 -0
- package/nitrogen/generated/apple/NitroVoidhashAppleCxx/NitroVoidhashAppleCxx.cpp +9 -0
- package/nitrogen/generated/apple/NitroVoidhashAppleCxx/include/NitroVoidhashAppleCxx/NitroVoidhashAppleCxx.h +265 -0
- package/nitrogen/generated/apple/NitroVoidhashAutolinking.cpp +20 -0
- package/nitrogen/generated/apple/NitroVoidhashAutolinking.mm +24 -0
- package/nitrogen/generated/apple/c++/HybridVoidhashNativeClientSpecSwift.cpp +555 -0
- package/nitrogen/generated/apple/c++/HybridVoidhashNativeClientSpec_cxx-Swift.cpp +28 -0
- package/nitrogen/generated/apple/c++/NativeAnalyticsConsent-Swift.cpp +49 -0
- package/nitrogen/generated/apple/c++/NativeAppStoreMessages-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativeAppStorePurchaseOptions-Swift.cpp +32 -0
- package/nitrogen/generated/apple/c++/NativeAppStoreSubscriptionState-Swift.cpp +58 -0
- package/nitrogen/generated/apple/c++/NativeAppStoreSubscriptionStatus-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeClientConfiguration-Swift.cpp +57 -0
- package/nitrogen/generated/apple/c++/NativeClientEvent-Swift.cpp +40 -0
- package/nitrogen/generated/apple/c++/NativeClientEventType-Swift.cpp +64 -0
- package/nitrogen/generated/apple/c++/NativeDiagnostic-Swift.cpp +37 -0
- package/nitrogen/generated/apple/c++/NativeDiagnosticKind-Swift.cpp +61 -0
- package/nitrogen/generated/apple/c++/NativeEnvironment-Swift.cpp +55 -0
- package/nitrogen/generated/apple/c++/NativeFeatureFlag-Swift.cpp +35 -0
- package/nitrogen/generated/apple/c++/NativeFeatureFlagsResult-Swift.cpp +36 -0
- package/nitrogen/generated/apple/c++/NativeFlowCapability-Swift.cpp +52 -0
- package/nitrogen/generated/apple/c++/NativeFlowLoading-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativeFlowPresentation-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeFlowRevision-Swift.cpp +33 -0
- package/nitrogen/generated/apple/c++/NativeFlowRuntime-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativeFlushStatus-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeFreshnessReason-Swift.cpp +52 -0
- package/nitrogen/generated/apple/c++/NativeGooglePlayPurchaseOptions-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeIdentifyResult-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeIdentityChange-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeInAppMessageResult-Swift.cpp +33 -0
- package/nitrogen/generated/apple/c++/NativeInAppMessageStatus-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativeOffer-Swift.cpp +35 -0
- package/nitrogen/generated/apple/c++/NativeOfferKind-Swift.cpp +55 -0
- package/nitrogen/generated/apple/c++/NativeOfferSelection-Swift.cpp +49 -0
- package/nitrogen/generated/apple/c++/NativePaymentMode-Swift.cpp +52 -0
- package/nitrogen/generated/apple/c++/NativePendingAnalytics-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativePeriod-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativePeriodUnit-Swift.cpp +55 -0
- package/nitrogen/generated/apple/c++/NativePersonState-Swift.cpp +37 -0
- package/nitrogen/generated/apple/c++/NativePersonWriteResult-Swift.cpp +33 -0
- package/nitrogen/generated/apple/c++/NativePrice-Swift.cpp +35 -0
- package/nitrogen/generated/apple/c++/NativePricingPhase-Swift.cpp +35 -0
- package/nitrogen/generated/apple/c++/NativeProduct-Swift.cpp +44 -0
- package/nitrogen/generated/apple/c++/NativeProductType-Swift.cpp +55 -0
- package/nitrogen/generated/apple/c++/NativePurchaseIntent-Swift.cpp +33 -0
- package/nitrogen/generated/apple/c++/NativePurchaseIntents-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativePurchaseOptions-Swift.cpp +38 -0
- package/nitrogen/generated/apple/c++/NativePurchaseOutcome-Swift.cpp +49 -0
- package/nitrogen/generated/apple/c++/NativePurchaseResult-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeRefundRequestStatus-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativeReportedPurchaseState-Swift.cpp +49 -0
- package/nitrogen/generated/apple/c++/NativeReportedTransaction-Swift.cpp +36 -0
- package/nitrogen/generated/apple/c++/NativeStore-Swift.cpp +52 -0
- package/nitrogen/generated/apple/c++/NativeStorePlatform-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/NativeStorefront-Swift.cpp +33 -0
- package/nitrogen/generated/apple/c++/NativeSubscriptionInfo-Swift.cpp +38 -0
- package/nitrogen/generated/apple/c++/NativeSubscriptionReplacement-Swift.cpp +33 -0
- package/nitrogen/generated/apple/c++/NativeSubscriptionReplacementMode-Swift.cpp +55 -0
- package/nitrogen/generated/apple/c++/NativeTransaction-Swift.cpp +44 -0
- package/nitrogen/generated/apple/c++/NativeTransactionOffer-Swift.cpp +34 -0
- package/nitrogen/generated/apple/c++/NativeTransactionOfferKind-Swift.cpp +58 -0
- package/nitrogen/generated/apple/c++/NativeTransactionUpdate-Swift.cpp +33 -0
- package/nitrogen/generated/apple/c++/NativeWriteStatus-Swift.cpp +49 -0
- package/nitrogen/generated/apple/c++/Record_swift__String_bool-Swift.cpp +26 -0
- package/nitrogen/generated/apple/c++/Record_swift__String_swift__String-Swift.cpp +26 -0
- package/nitrogen/generated/apple/c++/SwiftContainer_swift__Array___NitroVoidhash__NativeAppStoreSubscriptionStatus_-Swift.cpp +38 -0
- package/nitrogen/generated/apple/c++/SwiftContainer_swift__Array___NitroVoidhash__NativeProduct_-Swift.cpp +41 -0
- package/nitrogen/generated/apple/c++/SwiftContainer_swift__Array___NitroVoidhash__NativeTransaction_-Swift.cpp +36 -0
- package/nitrogen/generated/apple/c++/SwiftContainer_swift__Optional___NitroVoidhash__NativeStorefront_-Swift.cpp +30 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/NitroVoidhashAutolinking.hpp +13 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/HybridVoidhashNativeClientSpecSwift.hpp +121 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/HybridVoidhashNativeClientSpec_cxx-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeAnalyticsConsent-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeAppStoreMessages-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeAppStorePurchaseOptions-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeAppStoreSubscriptionState-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeAppStoreSubscriptionStatus-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeClientConfiguration-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeClientEvent-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeClientEventType-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeDiagnostic-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeDiagnosticKind-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeEnvironment-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFeatureFlag-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFeatureFlagsResult-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFlowCapability-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFlowLoading-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFlowPresentation-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFlowRevision-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFlowRuntime-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFlushStatus-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeFreshnessReason-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeGooglePlayPurchaseOptions-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeIdentifyResult-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeIdentityChange-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeInAppMessageResult-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeInAppMessageStatus-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeOffer-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeOfferKind-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeOfferSelection-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePaymentMode-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePendingAnalytics-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePeriod-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePeriodUnit-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePersonState-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePersonWriteResult-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePrice-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePricingPhase-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeProduct-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeProductType-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePurchaseIntent-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePurchaseIntents-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePurchaseOptions-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePurchaseOutcome-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativePurchaseResult-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeRefundRequestStatus-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeReportedPurchaseState-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeReportedTransaction-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeStore-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeStorePlatform-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeStorefront-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeSubscriptionInfo-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeSubscriptionReplacement-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeSubscriptionReplacementMode-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeTransaction-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeTransactionOffer-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeTransactionOfferKind-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeTransactionUpdate-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NativeWriteStatus-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp +100 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/Record_swift__String_bool-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/Record_swift__String_swift__String-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/SwiftContainer_swift__Array___NitroVoidhash__NativeAppStoreSubscriptionStatus_-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/SwiftContainer_swift__Array___NitroVoidhash__NativeProduct_-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/SwiftContainer_swift__Array___NitroVoidhash__NativeTransaction_-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroVoidhash/private/SwiftContainer_swift__Optional___NitroVoidhash__NativeStorefront_-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/module.modulemap +12 -0
- package/nitrogen/generated/apple/swift/Callback_Promise_swift__String__swift__String_swift__String.swift +73 -0
- package/nitrogen/generated/apple/swift/Callback_void___NitroVoidhash__NativeClientEvent.swift +66 -0
- package/nitrogen/generated/apple/swift/HybridVoidhashNativeClientSpec.swift +113 -0
- package/nitrogen/generated/apple/swift/HybridVoidhashNativeClientSpec_cxx.swift +629 -0
- package/nitrogen/generated/apple/swift/NativeAnalyticsConsent.swift +59 -0
- package/nitrogen/generated/apple/swift/NativeAppStoreMessages.swift +54 -0
- package/nitrogen/generated/apple/swift/NativeAppStorePurchaseOptions.swift +28 -0
- package/nitrogen/generated/apple/swift/NativeAppStoreSubscriptionState.swift +74 -0
- package/nitrogen/generated/apple/swift/NativeAppStoreSubscriptionStatus.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeClientConfiguration.swift +203 -0
- package/nitrogen/generated/apple/swift/NativeClientEvent.swift +84 -0
- package/nitrogen/generated/apple/swift/NativeClientEventType.swift +84 -0
- package/nitrogen/generated/apple/swift/NativeDiagnostic.swift +63 -0
- package/nitrogen/generated/apple/swift/NativeDiagnosticKind.swift +79 -0
- package/nitrogen/generated/apple/swift/NativeEnvironment.swift +69 -0
- package/nitrogen/generated/apple/swift/NativeFeatureFlag.swift +49 -0
- package/nitrogen/generated/apple/swift/NativeFeatureFlagsResult.swift +56 -0
- package/nitrogen/generated/apple/swift/NativeFlowCapability.swift +64 -0
- package/nitrogen/generated/apple/swift/NativeFlowLoading.swift +54 -0
- package/nitrogen/generated/apple/swift/NativeFlowPresentation.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeFlowRevision.swift +35 -0
- package/nitrogen/generated/apple/swift/NativeFlowRuntime.swift +54 -0
- package/nitrogen/generated/apple/swift/NativeFlushStatus.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeFreshnessReason.swift +64 -0
- package/nitrogen/generated/apple/swift/NativeGooglePlayPurchaseOptions.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeIdentifyResult.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeIdentityChange.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeInAppMessageResult.swift +35 -0
- package/nitrogen/generated/apple/swift/NativeInAppMessageStatus.swift +54 -0
- package/nitrogen/generated/apple/swift/NativeOffer.swift +49 -0
- package/nitrogen/generated/apple/swift/NativeOfferKind.swift +69 -0
- package/nitrogen/generated/apple/swift/NativeOfferSelection.swift +59 -0
- package/nitrogen/generated/apple/swift/NativePaymentMode.swift +64 -0
- package/nitrogen/generated/apple/swift/NativePendingAnalytics.swift +54 -0
- package/nitrogen/generated/apple/swift/NativePeriod.swift +42 -0
- package/nitrogen/generated/apple/swift/NativePeriodUnit.swift +69 -0
- package/nitrogen/generated/apple/swift/NativePersonState.swift +63 -0
- package/nitrogen/generated/apple/swift/NativePersonWriteResult.swift +35 -0
- package/nitrogen/generated/apple/swift/NativePrice.swift +49 -0
- package/nitrogen/generated/apple/swift/NativePricingPhase.swift +49 -0
- package/nitrogen/generated/apple/swift/NativeProduct.swift +112 -0
- package/nitrogen/generated/apple/swift/NativeProductType.swift +69 -0
- package/nitrogen/generated/apple/swift/NativePurchaseIntent.swift +35 -0
- package/nitrogen/generated/apple/swift/NativePurchaseIntents.swift +54 -0
- package/nitrogen/generated/apple/swift/NativePurchaseOptions.swift +70 -0
- package/nitrogen/generated/apple/swift/NativePurchaseOutcome.swift +59 -0
- package/nitrogen/generated/apple/swift/NativePurchaseResult.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeRefundRequestStatus.swift +54 -0
- package/nitrogen/generated/apple/swift/NativeReportedPurchaseState.swift +59 -0
- package/nitrogen/generated/apple/swift/NativeReportedTransaction.swift +56 -0
- package/nitrogen/generated/apple/swift/NativeStore.swift +64 -0
- package/nitrogen/generated/apple/swift/NativeStorePlatform.swift +54 -0
- package/nitrogen/generated/apple/swift/NativeStorefront.swift +35 -0
- package/nitrogen/generated/apple/swift/NativeSubscriptionInfo.swift +70 -0
- package/nitrogen/generated/apple/swift/NativeSubscriptionReplacement.swift +35 -0
- package/nitrogen/generated/apple/swift/NativeSubscriptionReplacementMode.swift +69 -0
- package/nitrogen/generated/apple/swift/NativeTransaction.swift +112 -0
- package/nitrogen/generated/apple/swift/NativeTransactionOffer.swift +42 -0
- package/nitrogen/generated/apple/swift/NativeTransactionOfferKind.swift +74 -0
- package/nitrogen/generated/apple/swift/NativeTransactionUpdate.swift +35 -0
- package/nitrogen/generated/apple/swift/NativeWriteStatus.swift +59 -0
- package/nitrogen/generated/apple/swift/Promise_Promise_swift__String_.swift +100 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativeFeatureFlagsResult.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativeFlushStatus.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativeIdentifyResult.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativeIdentityChange.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativeInAppMessageResult.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativePersonState.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativePersonWriteResult.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativePurchaseResult.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__NativeRefundRequestStatus.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__SwiftContainer_swift__Array___NitroVoidhash__NativeAppStoreSubscriptionStatus_.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__SwiftContainer_swift__Array___NitroVoidhash__NativeProduct_.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__SwiftContainer_swift__Array___NitroVoidhash__NativeTransaction_.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise___NitroVoidhash__SwiftContainer_swift__Optional___NitroVoidhash__NativeStorefront_.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise_bool.swift +100 -0
- package/nitrogen/generated/apple/swift/Promise_swift__String.swift +102 -0
- package/nitrogen/generated/apple/swift/Promise_void.swift +100 -0
- package/nitrogen/generated/apple/swift/Record_swift__String_bool.swift +48 -0
- package/nitrogen/generated/apple/swift/Record_swift__String_swift__String.swift +48 -0
- package/nitrogen/generated/apple/swift/SwiftContainer_swift__Array___NitroVoidhash__NativeAppStoreSubscriptionStatus_.swift +21 -0
- package/nitrogen/generated/apple/swift/SwiftContainer_swift__Array___NitroVoidhash__NativeProduct_.swift +21 -0
- package/nitrogen/generated/apple/swift/SwiftContainer_swift__Array___NitroVoidhash__NativeTransaction_.swift +21 -0
- package/nitrogen/generated/apple/swift/SwiftContainer_swift__Optional___NitroVoidhash__NativeStorefront_.swift +21 -0
- package/nitrogen/generated/hybrid-classes.json +19 -0
- package/nitrogen/generated/shared/c++/NitroVoidhashCxxModule.cpp +2 -0
- package/nitrogen/generated/shared/c++/include/NitroVoidhash/NitroVoidhashCxxModule.hpp +2 -0
- package/nitrogen/generated/shared/javascript/VoidhashNativeClient.cjs +19 -0
- package/nitrogen/generated/shared/javascript/VoidhashNativeClient.d.cts +9 -0
- package/package.json +103 -3
- package/src/specs/VoidhashNativeClient.nitro.ts +1162 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeAppStorePurchaseOptions-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeAppStorePurchaseOptions-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroVoidhash::NativeAppStorePurchaseOptions JSIConverter<::NitroVoidhash::NativeAppStorePurchaseOptions>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto object = value.asObject(runtime);
|
|
16
|
+
return ::NitroVoidhash::NativeAppStorePurchaseOptions::init_cxx(JSIConverter<swift::Optional<bool>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "simulatesAskToBuyInSandbox"))));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeAppStorePurchaseOptions>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeAppStorePurchaseOptions& value) {
|
|
20
|
+
jsi::Object object(runtime);
|
|
21
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "simulatesAskToBuyInSandbox"), JSIConverter<swift::Optional<bool>>::toJSI(runtime, value.getSimulatesAskToBuyInSandbox_cxx()));
|
|
22
|
+
return object;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
bool JSIConverter<::NitroVoidhash::NativeAppStorePurchaseOptions>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
26
|
+
if (!value.isObject()) return false;
|
|
27
|
+
auto object = value.getObject(runtime);
|
|
28
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
29
|
+
return JSIConverter<swift::Optional<bool>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "simulatesAskToBuyInSandbox")));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeAppStoreSubscriptionState-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeAppStoreSubscriptionState-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
11
|
+
#include <NitroModules/NitroHash.hpp>
|
|
12
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
13
|
+
#include <NitroModules/JSIString.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
::NitroVoidhash::NativeAppStoreSubscriptionState JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionState>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
19
|
+
switch (hashString(string)) {
|
|
20
|
+
case hashString("unknown"): return ::NitroVoidhash::NativeAppStoreSubscriptionState::fromRawValue(0);
|
|
21
|
+
case hashString("subscribed"): return ::NitroVoidhash::NativeAppStoreSubscriptionState::fromRawValue(1);
|
|
22
|
+
case hashString("expired"): return ::NitroVoidhash::NativeAppStoreSubscriptionState::fromRawValue(2);
|
|
23
|
+
case hashString("inBillingRetryPeriod"): return ::NitroVoidhash::NativeAppStoreSubscriptionState::fromRawValue(3);
|
|
24
|
+
case hashString("inGracePeriod"): return ::NitroVoidhash::NativeAppStoreSubscriptionState::fromRawValue(4);
|
|
25
|
+
case hashString("revoked"): return ::NitroVoidhash::NativeAppStoreSubscriptionState::fromRawValue(5);
|
|
26
|
+
default: [[unlikely]]
|
|
27
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeAppStoreSubscriptionState - invalid value!");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionState>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeAppStoreSubscriptionState& value) {
|
|
32
|
+
switch (value.getRawValue()) {
|
|
33
|
+
case 0: return createJSIString<"unknown">(runtime);
|
|
34
|
+
case 1: return createJSIString<"subscribed">(runtime);
|
|
35
|
+
case 2: return createJSIString<"expired">(runtime);
|
|
36
|
+
case 3: return createJSIString<"inBillingRetryPeriod">(runtime);
|
|
37
|
+
case 4: return createJSIString<"inGracePeriod">(runtime);
|
|
38
|
+
case 5: return createJSIString<"revoked">(runtime);
|
|
39
|
+
default: [[unlikely]]
|
|
40
|
+
throw std::invalid_argument("Cannot convert NativeAppStoreSubscriptionState to JS - invalid value: " + std::to_string(value.getRawValue()) + "!");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
bool JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionState>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
45
|
+
if (!value.isString()) return false;
|
|
46
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
47
|
+
switch (hashString(string)) {
|
|
48
|
+
case hashString("unknown"): return true;
|
|
49
|
+
case hashString("subscribed"): return true;
|
|
50
|
+
case hashString("expired"): return true;
|
|
51
|
+
case hashString("inBillingRetryPeriod"): return true;
|
|
52
|
+
case hashString("inGracePeriod"): return true;
|
|
53
|
+
case hashString("revoked"): return true;
|
|
54
|
+
default: return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeAppStoreSubscriptionStatus-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeAppStoreSubscriptionStatus-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroVoidhash::NativeAppStoreSubscriptionStatus JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionStatus>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto object = value.asObject(runtime);
|
|
16
|
+
return ::NitroVoidhash::NativeAppStoreSubscriptionStatus::init_cxx(JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionState>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "state"))), JSIConverter<::NitroVoidhash::NativeTransaction>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))), JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "renewalInfoJson"))));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionStatus>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeAppStoreSubscriptionStatus& value) {
|
|
20
|
+
jsi::Object object(runtime);
|
|
21
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "state"), JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionState>::toJSI(runtime, value.getState_cxx()));
|
|
22
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "transaction"), JSIConverter<::NitroVoidhash::NativeTransaction>::toJSI(runtime, value.getTransaction_cxx()));
|
|
23
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "renewalInfoJson"), JSIConverter<swift::String>::toJSI(runtime, value.getRenewalInfoJson_cxx()));
|
|
24
|
+
return object;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
bool JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionStatus>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
28
|
+
if (!value.isObject()) return false;
|
|
29
|
+
auto object = value.getObject(runtime);
|
|
30
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
31
|
+
return JSIConverter<::NitroVoidhash::NativeAppStoreSubscriptionState>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "state"))) && JSIConverter<::NitroVoidhash::NativeTransaction>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))) && JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "renewalInfoJson")));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeClientConfiguration-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeClientConfiguration-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroVoidhash::NativeClientConfiguration JSIConverter<::NitroVoidhash::NativeClientConfiguration>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto object = value.asObject(runtime);
|
|
16
|
+
return ::NitroVoidhash::NativeClientConfiguration::init_cxx(JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "publishableKey"))), JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "baseUrl"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "ingestUrl"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "debug"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "developmentMode"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "readOnly"))), JSIConverter<::NitroVoidhash::NativeAnalyticsConsent>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsConsent"))), JSIConverter<swift::Optional<::NitroVoidhash::NativeAnalyticsConsent>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "chosenAnalyticsConsent"))), JSIConverter<::NitroVoidhash::NativePendingAnalytics>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsWhilePending"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "grantConsentOnIdentify"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "automaticLifecycleEvents"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "installAttribution"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "metaAppId"))), JSIConverter<swift::Array<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "preloadLocations"))), JSIConverter<swift::Array<::NitroVoidhash::NativeFlowRevision>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRevisions"))), JSIConverter<swift::Array<::NitroVoidhash::NativeFlowCapability>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowCapabilities"))), JSIConverter<::NitroVoidhash::NativeFlowRuntime>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRuntime"))), JSIConverter<::NitroVoidhash::NativeFlowLoading>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowLoading"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "screenTrackingEnabled"))), JSIConverter<swift::Optional<double>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagMaxWaitMs"))), JSIConverter<swift::Optional<::NitroVoidhash::Record_swift__String_bool>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagDefaults"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "internalSchemaJson"))), JSIConverter<::NitroVoidhash::NativeAppStoreMessages>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStoreMessages"))), JSIConverter<::NitroVoidhash::NativePurchaseIntents>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntents"))), JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "sdkVersion"))));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeClientConfiguration>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeClientConfiguration& value) {
|
|
20
|
+
jsi::Object object(runtime);
|
|
21
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "publishableKey"), JSIConverter<swift::String>::toJSI(runtime, value.getPublishableKey_cxx()));
|
|
22
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "baseUrl"), JSIConverter<swift::String>::toJSI(runtime, value.getBaseUrl_cxx()));
|
|
23
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "ingestUrl"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getIngestUrl_cxx()));
|
|
24
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "debug"), JSIConverter<bool>::toJSI(runtime, value.getDebug_cxx()));
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "developmentMode"), JSIConverter<bool>::toJSI(runtime, value.getDevelopmentMode_cxx()));
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "distinctId"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getDistinctId_cxx()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "readOnly"), JSIConverter<bool>::toJSI(runtime, value.getReadOnly_cxx()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "analyticsConsent"), JSIConverter<::NitroVoidhash::NativeAnalyticsConsent>::toJSI(runtime, value.getAnalyticsConsent_cxx()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "chosenAnalyticsConsent"), JSIConverter<swift::Optional<::NitroVoidhash::NativeAnalyticsConsent>>::toJSI(runtime, value.getChosenAnalyticsConsent_cxx()));
|
|
30
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "analyticsWhilePending"), JSIConverter<::NitroVoidhash::NativePendingAnalytics>::toJSI(runtime, value.getAnalyticsWhilePending_cxx()));
|
|
31
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "grantConsentOnIdentify"), JSIConverter<bool>::toJSI(runtime, value.getGrantConsentOnIdentify_cxx()));
|
|
32
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "automaticLifecycleEvents"), JSIConverter<bool>::toJSI(runtime, value.getAutomaticLifecycleEvents_cxx()));
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "installAttribution"), JSIConverter<bool>::toJSI(runtime, value.getInstallAttribution_cxx()));
|
|
34
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "metaAppId"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getMetaAppId_cxx()));
|
|
35
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "preloadLocations"), JSIConverter<swift::Array<swift::String>>::toJSI(runtime, value.getPreloadLocations_cxx()));
|
|
36
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowRevisions"), JSIConverter<swift::Array<::NitroVoidhash::NativeFlowRevision>>::toJSI(runtime, value.getFlowRevisions_cxx()));
|
|
37
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowCapabilities"), JSIConverter<swift::Array<::NitroVoidhash::NativeFlowCapability>>::toJSI(runtime, value.getFlowCapabilities_cxx()));
|
|
38
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowRuntime"), JSIConverter<::NitroVoidhash::NativeFlowRuntime>::toJSI(runtime, value.getFlowRuntime_cxx()));
|
|
39
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowLoading"), JSIConverter<::NitroVoidhash::NativeFlowLoading>::toJSI(runtime, value.getFlowLoading_cxx()));
|
|
40
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "screenTrackingEnabled"), JSIConverter<bool>::toJSI(runtime, value.getScreenTrackingEnabled_cxx()));
|
|
41
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "featureFlagMaxWaitMs"), JSIConverter<swift::Optional<double>>::toJSI(runtime, value.getFeatureFlagMaxWaitMs_cxx()));
|
|
42
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "featureFlagDefaults"), JSIConverter<swift::Optional<::NitroVoidhash::Record_swift__String_bool>>::toJSI(runtime, value.getFeatureFlagDefaults_cxx()));
|
|
43
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "internalSchemaJson"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getInternalSchemaJson_cxx()));
|
|
44
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "appStoreMessages"), JSIConverter<::NitroVoidhash::NativeAppStoreMessages>::toJSI(runtime, value.getAppStoreMessages_cxx()));
|
|
45
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntents"), JSIConverter<::NitroVoidhash::NativePurchaseIntents>::toJSI(runtime, value.getPurchaseIntents_cxx()));
|
|
46
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "sdkVersion"), JSIConverter<swift::String>::toJSI(runtime, value.getSdkVersion_cxx()));
|
|
47
|
+
return object;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
bool JSIConverter<::NitroVoidhash::NativeClientConfiguration>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
51
|
+
if (!value.isObject()) return false;
|
|
52
|
+
auto object = value.getObject(runtime);
|
|
53
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
54
|
+
return JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "publishableKey"))) && JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "baseUrl"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "ingestUrl"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "debug"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "developmentMode"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "readOnly"))) && JSIConverter<::NitroVoidhash::NativeAnalyticsConsent>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsConsent"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativeAnalyticsConsent>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "chosenAnalyticsConsent"))) && JSIConverter<::NitroVoidhash::NativePendingAnalytics>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsWhilePending"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "grantConsentOnIdentify"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "automaticLifecycleEvents"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "installAttribution"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "metaAppId"))) && JSIConverter<swift::Array<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "preloadLocations"))) && JSIConverter<swift::Array<::NitroVoidhash::NativeFlowRevision>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRevisions"))) && JSIConverter<swift::Array<::NitroVoidhash::NativeFlowCapability>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowCapabilities"))) && JSIConverter<::NitroVoidhash::NativeFlowRuntime>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRuntime"))) && JSIConverter<::NitroVoidhash::NativeFlowLoading>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowLoading"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "screenTrackingEnabled"))) && JSIConverter<swift::Optional<double>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagMaxWaitMs"))) && JSIConverter<swift::Optional<::NitroVoidhash::Record_swift__String_bool>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagDefaults"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "internalSchemaJson"))) && JSIConverter<::NitroVoidhash::NativeAppStoreMessages>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStoreMessages"))) && JSIConverter<::NitroVoidhash::NativePurchaseIntents>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntents"))) && JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "sdkVersion")));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeClientEvent-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeClientEvent-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroVoidhash::NativeClientEvent JSIConverter<::NitroVoidhash::NativeClientEvent>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto object = value.asObject(runtime);
|
|
16
|
+
return ::NitroVoidhash::NativeClientEvent::init_cxx(JSIConverter<::NitroVoidhash::NativeClientEventType>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "type"))), JSIConverter<swift::Optional<::NitroVoidhash::NativeIdentityChange>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "identity"))), JSIConverter<swift::Optional<::NitroVoidhash::NativePersonState>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "person"))), JSIConverter<swift::Optional<::NitroVoidhash::NativeFeatureFlagsResult>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "schemaJson"))), JSIConverter<swift::Optional<::NitroVoidhash::NativeAnalyticsConsent>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "consent"))), JSIConverter<swift::Optional<::NitroVoidhash::NativeDiagnostic>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "diagnostic"))), JSIConverter<swift::Optional<::NitroVoidhash::NativeTransactionUpdate>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))), JSIConverter<swift::Optional<::NitroVoidhash::NativePurchaseIntent>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntent"))));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeClientEvent>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeClientEvent& value) {
|
|
20
|
+
jsi::Object object(runtime);
|
|
21
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "type"), JSIConverter<::NitroVoidhash::NativeClientEventType>::toJSI(runtime, value.getType_cxx()));
|
|
22
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "identity"), JSIConverter<swift::Optional<::NitroVoidhash::NativeIdentityChange>>::toJSI(runtime, value.getIdentity_cxx()));
|
|
23
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "person"), JSIConverter<swift::Optional<::NitroVoidhash::NativePersonState>>::toJSI(runtime, value.getPerson_cxx()));
|
|
24
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flags"), JSIConverter<swift::Optional<::NitroVoidhash::NativeFeatureFlagsResult>>::toJSI(runtime, value.getFlags_cxx()));
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "schemaJson"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getSchemaJson_cxx()));
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "consent"), JSIConverter<swift::Optional<::NitroVoidhash::NativeAnalyticsConsent>>::toJSI(runtime, value.getConsent_cxx()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "diagnostic"), JSIConverter<swift::Optional<::NitroVoidhash::NativeDiagnostic>>::toJSI(runtime, value.getDiagnostic_cxx()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "transaction"), JSIConverter<swift::Optional<::NitroVoidhash::NativeTransactionUpdate>>::toJSI(runtime, value.getTransaction_cxx()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntent"), JSIConverter<swift::Optional<::NitroVoidhash::NativePurchaseIntent>>::toJSI(runtime, value.getPurchaseIntent_cxx()));
|
|
30
|
+
return object;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
bool JSIConverter<::NitroVoidhash::NativeClientEvent>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
34
|
+
if (!value.isObject()) return false;
|
|
35
|
+
auto object = value.getObject(runtime);
|
|
36
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
37
|
+
return JSIConverter<::NitroVoidhash::NativeClientEventType>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "type"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativeIdentityChange>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "identity"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativePersonState>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "person"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativeFeatureFlagsResult>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "schemaJson"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativeAnalyticsConsent>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "consent"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativeDiagnostic>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "diagnostic"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativeTransactionUpdate>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))) && JSIConverter<swift::Optional<::NitroVoidhash::NativePurchaseIntent>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntent")));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeClientEventType-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeClientEventType-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
11
|
+
#include <NitroModules/NitroHash.hpp>
|
|
12
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
13
|
+
#include <NitroModules/JSIString.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
::NitroVoidhash::NativeClientEventType JSIConverter<::NitroVoidhash::NativeClientEventType>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
19
|
+
switch (hashString(string)) {
|
|
20
|
+
case hashString("person"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(0);
|
|
21
|
+
case hashString("identity"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(1);
|
|
22
|
+
case hashString("flags"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(2);
|
|
23
|
+
case hashString("schema"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(3);
|
|
24
|
+
case hashString("consent"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(4);
|
|
25
|
+
case hashString("diagnostic"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(5);
|
|
26
|
+
case hashString("transaction"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(6);
|
|
27
|
+
case hashString("purchaseIntent"): return ::NitroVoidhash::NativeClientEventType::fromRawValue(7);
|
|
28
|
+
default: [[unlikely]]
|
|
29
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeClientEventType - invalid value!");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeClientEventType>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeClientEventType& value) {
|
|
34
|
+
switch (value.getRawValue()) {
|
|
35
|
+
case 0: return createJSIString<"person">(runtime);
|
|
36
|
+
case 1: return createJSIString<"identity">(runtime);
|
|
37
|
+
case 2: return createJSIString<"flags">(runtime);
|
|
38
|
+
case 3: return createJSIString<"schema">(runtime);
|
|
39
|
+
case 4: return createJSIString<"consent">(runtime);
|
|
40
|
+
case 5: return createJSIString<"diagnostic">(runtime);
|
|
41
|
+
case 6: return createJSIString<"transaction">(runtime);
|
|
42
|
+
case 7: return createJSIString<"purchaseIntent">(runtime);
|
|
43
|
+
default: [[unlikely]]
|
|
44
|
+
throw std::invalid_argument("Cannot convert NativeClientEventType to JS - invalid value: " + std::to_string(value.getRawValue()) + "!");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
bool JSIConverter<::NitroVoidhash::NativeClientEventType>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
49
|
+
if (!value.isString()) return false;
|
|
50
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
51
|
+
switch (hashString(string)) {
|
|
52
|
+
case hashString("person"): return true;
|
|
53
|
+
case hashString("identity"): return true;
|
|
54
|
+
case hashString("flags"): return true;
|
|
55
|
+
case hashString("schema"): return true;
|
|
56
|
+
case hashString("consent"): return true;
|
|
57
|
+
case hashString("diagnostic"): return true;
|
|
58
|
+
case hashString("transaction"): return true;
|
|
59
|
+
case hashString("purchaseIntent"): return true;
|
|
60
|
+
default: return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeDiagnostic-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeDiagnostic-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroVoidhash::NativeDiagnostic JSIConverter<::NitroVoidhash::NativeDiagnostic>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto object = value.asObject(runtime);
|
|
16
|
+
return ::NitroVoidhash::NativeDiagnostic::init_cxx(JSIConverter<::NitroVoidhash::NativeDiagnosticKind>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "kind"))), JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "code"))), JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "operation"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "retryable"))), JSIConverter<swift::Optional<double>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "httpStatus"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "message"))));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeDiagnostic>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeDiagnostic& value) {
|
|
20
|
+
jsi::Object object(runtime);
|
|
21
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "kind"), JSIConverter<::NitroVoidhash::NativeDiagnosticKind>::toJSI(runtime, value.getKind_cxx()));
|
|
22
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "code"), JSIConverter<swift::String>::toJSI(runtime, value.getCode_cxx()));
|
|
23
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "operation"), JSIConverter<swift::String>::toJSI(runtime, value.getOperation_cxx()));
|
|
24
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "retryable"), JSIConverter<bool>::toJSI(runtime, value.getRetryable_cxx()));
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "httpStatus"), JSIConverter<swift::Optional<double>>::toJSI(runtime, value.getHttpStatus_cxx()));
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "message"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getMessage_cxx()));
|
|
27
|
+
return object;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
bool JSIConverter<::NitroVoidhash::NativeDiagnostic>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
31
|
+
if (!value.isObject()) return false;
|
|
32
|
+
auto object = value.getObject(runtime);
|
|
33
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
34
|
+
return JSIConverter<::NitroVoidhash::NativeDiagnosticKind>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "kind"))) && JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "code"))) && JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "operation"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "retryable"))) && JSIConverter<swift::Optional<double>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "httpStatus"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "message")));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeDiagnosticKind-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeDiagnosticKind-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
11
|
+
#include <NitroModules/NitroHash.hpp>
|
|
12
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
13
|
+
#include <NitroModules/JSIString.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
::NitroVoidhash::NativeDiagnosticKind JSIConverter<::NitroVoidhash::NativeDiagnosticKind>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
19
|
+
switch (hashString(string)) {
|
|
20
|
+
case hashString("consent"): return ::NitroVoidhash::NativeDiagnosticKind::fromRawValue(0);
|
|
21
|
+
case hashString("transport"): return ::NitroVoidhash::NativeDiagnosticKind::fromRawValue(1);
|
|
22
|
+
case hashString("eviction"): return ::NitroVoidhash::NativeDiagnosticKind::fromRawValue(2);
|
|
23
|
+
case hashString("breaker"): return ::NitroVoidhash::NativeDiagnosticKind::fromRawValue(3);
|
|
24
|
+
case hashString("auth"): return ::NitroVoidhash::NativeDiagnosticKind::fromRawValue(4);
|
|
25
|
+
case hashString("cache"): return ::NitroVoidhash::NativeDiagnosticKind::fromRawValue(5);
|
|
26
|
+
case hashString("configuration"): return ::NitroVoidhash::NativeDiagnosticKind::fromRawValue(6);
|
|
27
|
+
default: [[unlikely]]
|
|
28
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeDiagnosticKind - invalid value!");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeDiagnosticKind>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeDiagnosticKind& value) {
|
|
33
|
+
switch (value.getRawValue()) {
|
|
34
|
+
case 0: return createJSIString<"consent">(runtime);
|
|
35
|
+
case 1: return createJSIString<"transport">(runtime);
|
|
36
|
+
case 2: return createJSIString<"eviction">(runtime);
|
|
37
|
+
case 3: return createJSIString<"breaker">(runtime);
|
|
38
|
+
case 4: return createJSIString<"auth">(runtime);
|
|
39
|
+
case 5: return createJSIString<"cache">(runtime);
|
|
40
|
+
case 6: return createJSIString<"configuration">(runtime);
|
|
41
|
+
default: [[unlikely]]
|
|
42
|
+
throw std::invalid_argument("Cannot convert NativeDiagnosticKind to JS - invalid value: " + std::to_string(value.getRawValue()) + "!");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
bool JSIConverter<::NitroVoidhash::NativeDiagnosticKind>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
47
|
+
if (!value.isString()) return false;
|
|
48
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
49
|
+
switch (hashString(string)) {
|
|
50
|
+
case hashString("consent"): return true;
|
|
51
|
+
case hashString("transport"): return true;
|
|
52
|
+
case hashString("eviction"): return true;
|
|
53
|
+
case hashString("breaker"): return true;
|
|
54
|
+
case hashString("auth"): return true;
|
|
55
|
+
case hashString("cache"): return true;
|
|
56
|
+
case hashString("configuration"): return true;
|
|
57
|
+
default: return false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeEnvironment-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeEnvironment-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
11
|
+
#include <NitroModules/NitroHash.hpp>
|
|
12
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
13
|
+
#include <NitroModules/JSIString.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
::NitroVoidhash::NativeEnvironment JSIConverter<::NitroVoidhash::NativeEnvironment>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
19
|
+
switch (hashString(string)) {
|
|
20
|
+
case hashString("development"): return ::NitroVoidhash::NativeEnvironment::fromRawValue(0);
|
|
21
|
+
case hashString("unknown"): return ::NitroVoidhash::NativeEnvironment::fromRawValue(1);
|
|
22
|
+
case hashString("production"): return ::NitroVoidhash::NativeEnvironment::fromRawValue(2);
|
|
23
|
+
case hashString("sandbox"): return ::NitroVoidhash::NativeEnvironment::fromRawValue(3);
|
|
24
|
+
case hashString("xcode"): return ::NitroVoidhash::NativeEnvironment::fromRawValue(4);
|
|
25
|
+
default: [[unlikely]]
|
|
26
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeEnvironment - invalid value!");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeEnvironment>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeEnvironment& value) {
|
|
31
|
+
switch (value.getRawValue()) {
|
|
32
|
+
case 0: return createJSIString<"development">(runtime);
|
|
33
|
+
case 1: return createJSIString<"unknown">(runtime);
|
|
34
|
+
case 2: return createJSIString<"production">(runtime);
|
|
35
|
+
case 3: return createJSIString<"sandbox">(runtime);
|
|
36
|
+
case 4: return createJSIString<"xcode">(runtime);
|
|
37
|
+
default: [[unlikely]]
|
|
38
|
+
throw std::invalid_argument("Cannot convert NativeEnvironment to JS - invalid value: " + std::to_string(value.getRawValue()) + "!");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
bool JSIConverter<::NitroVoidhash::NativeEnvironment>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
43
|
+
if (!value.isString()) return false;
|
|
44
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
45
|
+
switch (hashString(string)) {
|
|
46
|
+
case hashString("development"): return true;
|
|
47
|
+
case hashString("unknown"): return true;
|
|
48
|
+
case hashString("production"): return true;
|
|
49
|
+
case hashString("sandbox"): return true;
|
|
50
|
+
case hashString("xcode"): return true;
|
|
51
|
+
default: return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeFeatureFlag-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeFeatureFlag-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroVoidhash::NativeFeatureFlag JSIConverter<::NitroVoidhash::NativeFeatureFlag>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto object = value.asObject(runtime);
|
|
16
|
+
return ::NitroVoidhash::NativeFeatureFlag::init_cxx(JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "key"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "enabled"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "variantKey"))), JSIConverter<swift::Optional<swift::String>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "payloadJson"))));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeFeatureFlag>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeFeatureFlag& value) {
|
|
20
|
+
jsi::Object object(runtime);
|
|
21
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "key"), JSIConverter<swift::String>::toJSI(runtime, value.getKey_cxx()));
|
|
22
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "enabled"), JSIConverter<bool>::toJSI(runtime, value.getEnabled_cxx()));
|
|
23
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "variantKey"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getVariantKey_cxx()));
|
|
24
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "payloadJson"), JSIConverter<swift::Optional<swift::String>>::toJSI(runtime, value.getPayloadJson_cxx()));
|
|
25
|
+
return object;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
bool JSIConverter<::NitroVoidhash::NativeFeatureFlag>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
29
|
+
if (!value.isObject()) return false;
|
|
30
|
+
auto object = value.getObject(runtime);
|
|
31
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
32
|
+
return JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "key"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "enabled"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "variantKey"))) && JSIConverter<swift::Optional<swift::String>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "payloadJson")));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeFeatureFlagsResult-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeFeatureFlagsResult-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroVoidhash::NativeFeatureFlagsResult JSIConverter<::NitroVoidhash::NativeFeatureFlagsResult>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto object = value.asObject(runtime);
|
|
16
|
+
return ::NitroVoidhash::NativeFeatureFlagsResult::init_cxx(JSIConverter<swift::String>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))), JSIConverter<double>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "generation"))), JSIConverter<swift::Optional<swift::Array<swift::String>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flagKeys"))), JSIConverter<swift::Array<::NitroVoidhash::NativeFeatureFlag>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))), JSIConverter<bool>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isStale"))));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeFeatureFlagsResult>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeFeatureFlagsResult& value) {
|
|
20
|
+
jsi::Object object(runtime);
|
|
21
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "distinctId"), JSIConverter<swift::String>::toJSI(runtime, value.getDistinctId_cxx()));
|
|
22
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "generation"), JSIConverter<double>::toJSI(runtime, value.getGeneration_cxx()));
|
|
23
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flagKeys"), JSIConverter<swift::Optional<swift::Array<swift::String>>>::toJSI(runtime, value.getFlagKeys_cxx()));
|
|
24
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flags"), JSIConverter<swift::Array<::NitroVoidhash::NativeFeatureFlag>>::toJSI(runtime, value.getFlags_cxx()));
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "isStale"), JSIConverter<bool>::toJSI(runtime, value.getIsStale_cxx()));
|
|
26
|
+
return object;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
bool JSIConverter<::NitroVoidhash::NativeFeatureFlagsResult>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
30
|
+
if (!value.isObject()) return false;
|
|
31
|
+
auto object = value.getObject(runtime);
|
|
32
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
33
|
+
return JSIConverter<swift::String>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))) && JSIConverter<double>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "generation"))) && JSIConverter<swift::Optional<swift::Array<swift::String>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flagKeys"))) && JSIConverter<swift::Array<::NitroVoidhash::NativeFeatureFlag>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))) && JSIConverter<bool>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isStale")));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NativeFlowCapability-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroVoidhash/private/NativeFlowCapability-Swift.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/NitroVoidhash-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
11
|
+
#include <NitroModules/NitroHash.hpp>
|
|
12
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
13
|
+
#include <NitroModules/JSIString.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
::NitroVoidhash::NativeFlowCapability JSIConverter<::NitroVoidhash::NativeFlowCapability>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
19
|
+
switch (hashString(string)) {
|
|
20
|
+
case hashString("links"): return ::NitroVoidhash::NativeFlowCapability::fromRawValue(0);
|
|
21
|
+
case hashString("notifications"): return ::NitroVoidhash::NativeFlowCapability::fromRawValue(1);
|
|
22
|
+
case hashString("tracking"): return ::NitroVoidhash::NativeFlowCapability::fromRawValue(2);
|
|
23
|
+
case hashString("attributes"): return ::NitroVoidhash::NativeFlowCapability::fromRawValue(3);
|
|
24
|
+
default: [[unlikely]]
|
|
25
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeFlowCapability - invalid value!");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
jsi::Value JSIConverter<::NitroVoidhash::NativeFlowCapability>::toJSI(jsi::Runtime& runtime, const ::NitroVoidhash::NativeFlowCapability& value) {
|
|
30
|
+
switch (value.getRawValue()) {
|
|
31
|
+
case 0: return createJSIString<"links">(runtime);
|
|
32
|
+
case 1: return createJSIString<"notifications">(runtime);
|
|
33
|
+
case 2: return createJSIString<"tracking">(runtime);
|
|
34
|
+
case 3: return createJSIString<"attributes">(runtime);
|
|
35
|
+
default: [[unlikely]]
|
|
36
|
+
throw std::invalid_argument("Cannot convert NativeFlowCapability to JS - invalid value: " + std::to_string(value.getRawValue()) + "!");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
bool JSIConverter<::NitroVoidhash::NativeFlowCapability>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
41
|
+
if (!value.isString()) return false;
|
|
42
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
43
|
+
switch (hashString(string)) {
|
|
44
|
+
case hashString("links"): return true;
|
|
45
|
+
case hashString("notifications"): return true;
|
|
46
|
+
case hashString("tracking"): return true;
|
|
47
|
+
case hashString("attributes"): return true;
|
|
48
|
+
default: return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|