@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,38 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeAppStoreSubscriptionStatus.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/JNativeAppStoreSubscriptionStatus.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativeAppStoreSubscriptionState.hpp>
|
|
10
|
+
#include <NitroVoidhash/private/JNativeTransaction.hpp>
|
|
11
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
12
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
13
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
14
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
15
|
+
|
|
16
|
+
namespace margelo::nitro {
|
|
17
|
+
|
|
18
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionStatus> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionStatus>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
19
|
+
auto object = value.asObject(runtime);
|
|
20
|
+
return margelo::nitro::voidhash::JNativeAppStoreSubscriptionStatus::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "state"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeTransaction>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "renewalInfoJson"))));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionStatus>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionStatus> value) {
|
|
24
|
+
jsi::Object object(runtime);
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "state"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::toJSI(runtime, value->getState()));
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "transaction"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeTransaction>>::toJSI(runtime, value->getTransaction()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "renewalInfoJson"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getRenewalInfoJson()));
|
|
28
|
+
return object;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionStatus>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
32
|
+
if (!value.isObject()) return false;
|
|
33
|
+
auto object = value.getObject(runtime);
|
|
34
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
35
|
+
return JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "state"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeTransaction>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "renewalInfoJson")));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeClientConfiguration.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/JNativeClientConfiguration.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
11
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
12
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
13
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
14
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
15
|
+
#include <NitroVoidhash/private/JNativeAnalyticsConsent.hpp>
|
|
16
|
+
#include <NitroVoidhash/private/JNativePendingAnalytics.hpp>
|
|
17
|
+
#include <NitroModules/JNIConverter+Array.hpp>
|
|
18
|
+
#include <NitroModules/JSIConverter+JArrayClass.hpp>
|
|
19
|
+
#include <NitroVoidhash/private/JNativeFlowRevision.hpp>
|
|
20
|
+
#include <NitroVoidhash/private/JNativeFlowCapability.hpp>
|
|
21
|
+
#include <NitroVoidhash/private/JNativeFlowRuntime.hpp>
|
|
22
|
+
#include <NitroVoidhash/private/JNativeFlowLoading.hpp>
|
|
23
|
+
#include <NitroModules/JNIConverter+Map.hpp>
|
|
24
|
+
#include <NitroModules/JSIConverter+JMap.hpp>
|
|
25
|
+
#include <NitroVoidhash/private/JNativeAppStoreMessages.hpp>
|
|
26
|
+
#include <NitroVoidhash/private/JNativePurchaseIntents.hpp>
|
|
27
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
28
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
29
|
+
|
|
30
|
+
namespace margelo::nitro {
|
|
31
|
+
|
|
32
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeClientConfiguration> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientConfiguration>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
33
|
+
auto object = value.asObject(runtime);
|
|
34
|
+
return margelo::nitro::voidhash::JNativeClientConfiguration::create(JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "publishableKey"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "baseUrl"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "ingestUrl"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "debug"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "developmentMode"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "readOnly"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsConsent"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAnalyticsConsent>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "chosenAnalyticsConsent"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsWhilePending"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "grantConsentOnIdentify"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "automaticLifecycleEvents"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "installAttribution"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "metaAppId"))), JSIConverter<jni::local_ref<jni::JArrayClass<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "preloadLocations"))), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFlowRevision>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRevisions"))), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFlowCapability>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowCapabilities"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowRuntime>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRuntime"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowLoading>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowLoading"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "screenTrackingEnabled"))), JSIConverter<jni::local_ref<JOptional<jni::JDouble>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagMaxWaitMs"))), JSIConverter<jni::local_ref<JOptional<jni::JMap<jni::JString, jni::JBoolean>>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagDefaults"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "internalSchemaJson"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStoreMessages"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntents"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "sdkVersion"))));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientConfiguration>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeClientConfiguration> value) {
|
|
38
|
+
jsi::Object object(runtime);
|
|
39
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "publishableKey"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getPublishableKey()));
|
|
40
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "baseUrl"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getBaseUrl()));
|
|
41
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "ingestUrl"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getIngestUrl()));
|
|
42
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "debug"), JSIConverter<jboolean>::toJSI(runtime, value->getDebug()));
|
|
43
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "developmentMode"), JSIConverter<jboolean>::toJSI(runtime, value->getDevelopmentMode()));
|
|
44
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "distinctId"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getDistinctId()));
|
|
45
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "readOnly"), JSIConverter<jboolean>::toJSI(runtime, value->getReadOnly()));
|
|
46
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "analyticsConsent"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::toJSI(runtime, value->getAnalyticsConsent()));
|
|
47
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "chosenAnalyticsConsent"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAnalyticsConsent>>>::toJSI(runtime, value->getChosenAnalyticsConsent()));
|
|
48
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "analyticsWhilePending"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::toJSI(runtime, value->getAnalyticsWhilePending()));
|
|
49
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "grantConsentOnIdentify"), JSIConverter<jboolean>::toJSI(runtime, value->getGrantConsentOnIdentify()));
|
|
50
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "automaticLifecycleEvents"), JSIConverter<jboolean>::toJSI(runtime, value->getAutomaticLifecycleEvents()));
|
|
51
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "installAttribution"), JSIConverter<jboolean>::toJSI(runtime, value->getInstallAttribution()));
|
|
52
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "metaAppId"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getMetaAppId()));
|
|
53
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "preloadLocations"), JSIConverter<jni::local_ref<jni::JArrayClass<jni::JString>>>::toJSI(runtime, value->getPreloadLocations()));
|
|
54
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowRevisions"), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFlowRevision>>>::toJSI(runtime, value->getFlowRevisions()));
|
|
55
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowCapabilities"), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFlowCapability>>>::toJSI(runtime, value->getFlowCapabilities()));
|
|
56
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowRuntime"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowRuntime>>::toJSI(runtime, value->getFlowRuntime()));
|
|
57
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flowLoading"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowLoading>>::toJSI(runtime, value->getFlowLoading()));
|
|
58
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "screenTrackingEnabled"), JSIConverter<jboolean>::toJSI(runtime, value->getScreenTrackingEnabled()));
|
|
59
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "featureFlagMaxWaitMs"), JSIConverter<jni::local_ref<JOptional<jni::JDouble>>>::toJSI(runtime, value->getFeatureFlagMaxWaitMs()));
|
|
60
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "featureFlagDefaults"), JSIConverter<jni::local_ref<JOptional<jni::JMap<jni::JString, jni::JBoolean>>>>::toJSI(runtime, value->getFeatureFlagDefaults()));
|
|
61
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "internalSchemaJson"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getInternalSchemaJson()));
|
|
62
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "appStoreMessages"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::toJSI(runtime, value->getAppStoreMessages()));
|
|
63
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntents"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::toJSI(runtime, value->getPurchaseIntents()));
|
|
64
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "sdkVersion"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getSdkVersion()));
|
|
65
|
+
return object;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientConfiguration>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
69
|
+
if (!value.isObject()) return false;
|
|
70
|
+
auto object = value.getObject(runtime);
|
|
71
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
72
|
+
return JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "publishableKey"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "baseUrl"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "ingestUrl"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "debug"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "developmentMode"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "readOnly"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsConsent"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAnalyticsConsent>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "chosenAnalyticsConsent"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "analyticsWhilePending"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "grantConsentOnIdentify"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "automaticLifecycleEvents"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "installAttribution"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "metaAppId"))) && JSIConverter<jni::local_ref<jni::JArrayClass<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "preloadLocations"))) && JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFlowRevision>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRevisions"))) && JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFlowCapability>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowCapabilities"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowRuntime>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowRuntime"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowLoading>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flowLoading"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "screenTrackingEnabled"))) && JSIConverter<jni::local_ref<JOptional<jni::JDouble>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagMaxWaitMs"))) && JSIConverter<jni::local_ref<JOptional<jni::JMap<jni::JString, jni::JBoolean>>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "featureFlagDefaults"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "internalSchemaJson"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStoreMessages"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntents"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "sdkVersion")));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeClientEvent.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/JNativeClientEvent.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativeClientEventType.hpp>
|
|
10
|
+
#include <NitroVoidhash/private/JNativeIdentityChange.hpp>
|
|
11
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
12
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
13
|
+
#include <NitroVoidhash/private/JNativePersonState.hpp>
|
|
14
|
+
#include <NitroVoidhash/private/JNativeFeatureFlagsResult.hpp>
|
|
15
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
16
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
17
|
+
#include <NitroVoidhash/private/JNativeAnalyticsConsent.hpp>
|
|
18
|
+
#include <NitroVoidhash/private/JNativeDiagnostic.hpp>
|
|
19
|
+
#include <NitroVoidhash/private/JNativeTransactionUpdate.hpp>
|
|
20
|
+
#include <NitroVoidhash/private/JNativePurchaseIntent.hpp>
|
|
21
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
22
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
23
|
+
|
|
24
|
+
namespace margelo::nitro {
|
|
25
|
+
|
|
26
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeClientEvent> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEvent>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
27
|
+
auto object = value.asObject(runtime);
|
|
28
|
+
return margelo::nitro::voidhash::JNativeClientEvent::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "type"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeIdentityChange>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "identity"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativePersonState>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "person"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeFeatureFlagsResult>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "schemaJson"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAnalyticsConsent>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "consent"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeDiagnostic>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "diagnostic"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeTransactionUpdate>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativePurchaseIntent>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntent"))));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEvent>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeClientEvent> value) {
|
|
32
|
+
jsi::Object object(runtime);
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "type"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType>>::toJSI(runtime, value->getType()));
|
|
34
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "identity"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeIdentityChange>>>::toJSI(runtime, value->getIdentity()));
|
|
35
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "person"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativePersonState>>>::toJSI(runtime, value->getPerson()));
|
|
36
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flags"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeFeatureFlagsResult>>>::toJSI(runtime, value->getFlags()));
|
|
37
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "schemaJson"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getSchemaJson()));
|
|
38
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "consent"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAnalyticsConsent>>>::toJSI(runtime, value->getConsent()));
|
|
39
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "diagnostic"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeDiagnostic>>>::toJSI(runtime, value->getDiagnostic()));
|
|
40
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "transaction"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeTransactionUpdate>>>::toJSI(runtime, value->getTransaction()));
|
|
41
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntent"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativePurchaseIntent>>>::toJSI(runtime, value->getPurchaseIntent()));
|
|
42
|
+
return object;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEvent>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
46
|
+
if (!value.isObject()) return false;
|
|
47
|
+
auto object = value.getObject(runtime);
|
|
48
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
49
|
+
return JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "type"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeIdentityChange>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "identity"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativePersonState>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "person"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeFeatureFlagsResult>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "schemaJson"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAnalyticsConsent>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "consent"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeDiagnostic>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "diagnostic"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeTransactionUpdate>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativePurchaseIntent>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseIntent")));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeClientEventType.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/JNativeClientEventType.hpp>
|
|
9
|
+
#include <NitroModules/NitroHash.hpp>
|
|
10
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
11
|
+
#include <NitroModules/JSIString.hpp>
|
|
12
|
+
|
|
13
|
+
namespace margelo::nitro {
|
|
14
|
+
|
|
15
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeClientEventType::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeClientEventType> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeClientEventType>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeClientEventType::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("person"): return 0;
|
|
27
|
+
case hashString("identity"): return 1;
|
|
28
|
+
case hashString("flags"): return 2;
|
|
29
|
+
case hashString("schema"): return 3;
|
|
30
|
+
case hashString("consent"): return 4;
|
|
31
|
+
case hashString("diagnostic"): return 5;
|
|
32
|
+
case hashString("transaction"): return 6;
|
|
33
|
+
case hashString("purchaseIntent"): return 7;
|
|
34
|
+
default: [[unlikely]]
|
|
35
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeClientEventType - invalid value!");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeClientEventType> value) {
|
|
40
|
+
switch (value->value()) {
|
|
41
|
+
case 0: return createJSIString<"person">(runtime);
|
|
42
|
+
case 1: return createJSIString<"identity">(runtime);
|
|
43
|
+
case 2: return createJSIString<"flags">(runtime);
|
|
44
|
+
case 3: return createJSIString<"schema">(runtime);
|
|
45
|
+
case 4: return createJSIString<"consent">(runtime);
|
|
46
|
+
case 5: return createJSIString<"diagnostic">(runtime);
|
|
47
|
+
case 6: return createJSIString<"transaction">(runtime);
|
|
48
|
+
case 7: return createJSIString<"purchaseIntent">(runtime);
|
|
49
|
+
default: [[unlikely]]
|
|
50
|
+
throw std::invalid_argument("Cannot convert NativeClientEventType to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeClientEventType>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
55
|
+
if (!value.isString()) return false;
|
|
56
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
57
|
+
switch (hashString(string)) {
|
|
58
|
+
case hashString("person"): return true;
|
|
59
|
+
case hashString("identity"): return true;
|
|
60
|
+
case hashString("flags"): return true;
|
|
61
|
+
case hashString("schema"): return true;
|
|
62
|
+
case hashString("consent"): return true;
|
|
63
|
+
case hashString("diagnostic"): return true;
|
|
64
|
+
case hashString("transaction"): return true;
|
|
65
|
+
case hashString("purchaseIntent"): return true;
|
|
66
|
+
default: return false;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeDiagnostic.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/JNativeDiagnostic.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativeDiagnosticKind.hpp>
|
|
10
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
11
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
12
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
13
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
14
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
15
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
16
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
17
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
18
|
+
|
|
19
|
+
namespace margelo::nitro {
|
|
20
|
+
|
|
21
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeDiagnostic> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnostic>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
22
|
+
auto object = value.asObject(runtime);
|
|
23
|
+
return margelo::nitro::voidhash::JNativeDiagnostic::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "kind"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "code"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "operation"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "retryable"))), JSIConverter<jni::local_ref<JOptional<jni::JDouble>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "httpStatus"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "message"))));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnostic>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeDiagnostic> value) {
|
|
27
|
+
jsi::Object object(runtime);
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "kind"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::toJSI(runtime, value->getKind()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "code"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getCode()));
|
|
30
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "operation"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getOperation()));
|
|
31
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "retryable"), JSIConverter<jboolean>::toJSI(runtime, value->getRetryable()));
|
|
32
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "httpStatus"), JSIConverter<jni::local_ref<JOptional<jni::JDouble>>>::toJSI(runtime, value->getHttpStatus()));
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "message"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getMessage()));
|
|
34
|
+
return object;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnostic>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
38
|
+
if (!value.isObject()) return false;
|
|
39
|
+
auto object = value.getObject(runtime);
|
|
40
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
41
|
+
return JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "kind"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "code"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "operation"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "retryable"))) && JSIConverter<jni::local_ref<JOptional<jni::JDouble>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "httpStatus"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "message")));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeDiagnosticKind.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/JNativeDiagnosticKind.hpp>
|
|
9
|
+
#include <NitroModules/NitroHash.hpp>
|
|
10
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
11
|
+
#include <NitroModules/JSIString.hpp>
|
|
12
|
+
|
|
13
|
+
namespace margelo::nitro {
|
|
14
|
+
|
|
15
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeDiagnosticKind::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeDiagnosticKind> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeDiagnosticKind::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("consent"): return 0;
|
|
27
|
+
case hashString("transport"): return 1;
|
|
28
|
+
case hashString("eviction"): return 2;
|
|
29
|
+
case hashString("breaker"): return 3;
|
|
30
|
+
case hashString("auth"): return 4;
|
|
31
|
+
case hashString("cache"): return 5;
|
|
32
|
+
case hashString("configuration"): return 6;
|
|
33
|
+
default: [[unlikely]]
|
|
34
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeDiagnosticKind - invalid value!");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeDiagnosticKind> value) {
|
|
39
|
+
switch (value->value()) {
|
|
40
|
+
case 0: return createJSIString<"consent">(runtime);
|
|
41
|
+
case 1: return createJSIString<"transport">(runtime);
|
|
42
|
+
case 2: return createJSIString<"eviction">(runtime);
|
|
43
|
+
case 3: return createJSIString<"breaker">(runtime);
|
|
44
|
+
case 4: return createJSIString<"auth">(runtime);
|
|
45
|
+
case 5: return createJSIString<"cache">(runtime);
|
|
46
|
+
case 6: return createJSIString<"configuration">(runtime);
|
|
47
|
+
default: [[unlikely]]
|
|
48
|
+
throw std::invalid_argument("Cannot convert NativeDiagnosticKind to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeDiagnosticKind>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
53
|
+
if (!value.isString()) return false;
|
|
54
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
55
|
+
switch (hashString(string)) {
|
|
56
|
+
case hashString("consent"): return true;
|
|
57
|
+
case hashString("transport"): return true;
|
|
58
|
+
case hashString("eviction"): return true;
|
|
59
|
+
case hashString("breaker"): return true;
|
|
60
|
+
case hashString("auth"): return true;
|
|
61
|
+
case hashString("cache"): return true;
|
|
62
|
+
case hashString("configuration"): return true;
|
|
63
|
+
default: return false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeEnvironment.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/JNativeEnvironment.hpp>
|
|
9
|
+
#include <NitroModules/NitroHash.hpp>
|
|
10
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
11
|
+
#include <NitroModules/JSIString.hpp>
|
|
12
|
+
|
|
13
|
+
namespace margelo::nitro {
|
|
14
|
+
|
|
15
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeEnvironment> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeEnvironment>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeEnvironment::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeEnvironment> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeEnvironment>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeEnvironment::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeEnvironment>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("development"): return 0;
|
|
27
|
+
case hashString("unknown"): return 1;
|
|
28
|
+
case hashString("production"): return 2;
|
|
29
|
+
case hashString("sandbox"): return 3;
|
|
30
|
+
case hashString("xcode"): return 4;
|
|
31
|
+
default: [[unlikely]]
|
|
32
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeEnvironment - invalid value!");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeEnvironment>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeEnvironment> value) {
|
|
37
|
+
switch (value->value()) {
|
|
38
|
+
case 0: return createJSIString<"development">(runtime);
|
|
39
|
+
case 1: return createJSIString<"unknown">(runtime);
|
|
40
|
+
case 2: return createJSIString<"production">(runtime);
|
|
41
|
+
case 3: return createJSIString<"sandbox">(runtime);
|
|
42
|
+
case 4: return createJSIString<"xcode">(runtime);
|
|
43
|
+
default: [[unlikely]]
|
|
44
|
+
throw std::invalid_argument("Cannot convert NativeEnvironment to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeEnvironment>>::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("development"): return true;
|
|
53
|
+
case hashString("unknown"): return true;
|
|
54
|
+
case hashString("production"): return true;
|
|
55
|
+
case hashString("sandbox"): return true;
|
|
56
|
+
case hashString("xcode"): return true;
|
|
57
|
+
default: return false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeFeatureFlag.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/JNativeFeatureFlag.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
11
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
12
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
13
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
14
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
15
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
16
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
17
|
+
|
|
18
|
+
namespace margelo::nitro {
|
|
19
|
+
|
|
20
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlag> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlag>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
21
|
+
auto object = value.asObject(runtime);
|
|
22
|
+
return margelo::nitro::voidhash::JNativeFeatureFlag::create(JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "key"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "enabled"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "variantKey"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "payloadJson"))));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlag>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeFeatureFlag> value) {
|
|
26
|
+
jsi::Object object(runtime);
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "key"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getKey()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "enabled"), JSIConverter<jboolean>::toJSI(runtime, value->getEnabled()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "variantKey"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getVariantKey()));
|
|
30
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "payloadJson"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getPayloadJson()));
|
|
31
|
+
return object;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlag>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
35
|
+
if (!value.isObject()) return false;
|
|
36
|
+
auto object = value.getObject(runtime);
|
|
37
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
38
|
+
return JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "key"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "enabled"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "variantKey"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "payloadJson")));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeFeatureFlagsResult.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/JNativeFeatureFlagsResult.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
11
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
12
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
13
|
+
#include <NitroModules/JNIConverter+Array.hpp>
|
|
14
|
+
#include <NitroModules/JSIConverter+JArrayClass.hpp>
|
|
15
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
16
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
17
|
+
#include <NitroVoidhash/private/JNativeFeatureFlag.hpp>
|
|
18
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
19
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
20
|
+
|
|
21
|
+
namespace margelo::nitro {
|
|
22
|
+
|
|
23
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlagsResult> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlagsResult>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
auto object = value.asObject(runtime);
|
|
25
|
+
return margelo::nitro::voidhash::JNativeFeatureFlagsResult::create(JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))), JSIConverter<jdouble>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "generation"))), JSIConverter<jni::local_ref<JOptional<jni::JArrayClass<jni::JString>>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flagKeys"))), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFeatureFlag>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isStale"))));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlagsResult>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeFeatureFlagsResult> value) {
|
|
29
|
+
jsi::Object object(runtime);
|
|
30
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "distinctId"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getDistinctId()));
|
|
31
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "generation"), JSIConverter<jdouble>::toJSI(runtime, value->getGeneration()));
|
|
32
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flagKeys"), JSIConverter<jni::local_ref<JOptional<jni::JArrayClass<jni::JString>>>>::toJSI(runtime, value->getFlagKeys()));
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "flags"), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFeatureFlag>>>::toJSI(runtime, value->getFlags()));
|
|
34
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "isStale"), JSIConverter<jboolean>::toJSI(runtime, value->getIsStale()));
|
|
35
|
+
return object;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFeatureFlagsResult>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
39
|
+
if (!value.isObject()) return false;
|
|
40
|
+
auto object = value.getObject(runtime);
|
|
41
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
42
|
+
return JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "distinctId"))) && JSIConverter<jdouble>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "generation"))) && JSIConverter<jni::local_ref<JOptional<jni::JArrayClass<jni::JString>>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flagKeys"))) && JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeFeatureFlag>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "flags"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isStale")));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeFlowCapability.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/JNativeFlowCapability.hpp>
|
|
9
|
+
#include <NitroModules/NitroHash.hpp>
|
|
10
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
11
|
+
#include <NitroModules/JSIString.hpp>
|
|
12
|
+
|
|
13
|
+
namespace margelo::nitro {
|
|
14
|
+
|
|
15
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeFlowCapability> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowCapability>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeFlowCapability::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeFlowCapability> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeFlowCapability>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeFlowCapability::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowCapability>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("links"): return 0;
|
|
27
|
+
case hashString("notifications"): return 1;
|
|
28
|
+
case hashString("tracking"): return 2;
|
|
29
|
+
case hashString("attributes"): return 3;
|
|
30
|
+
default: [[unlikely]]
|
|
31
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeFlowCapability - invalid value!");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowCapability>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeFlowCapability> value) {
|
|
36
|
+
switch (value->value()) {
|
|
37
|
+
case 0: return createJSIString<"links">(runtime);
|
|
38
|
+
case 1: return createJSIString<"notifications">(runtime);
|
|
39
|
+
case 2: return createJSIString<"tracking">(runtime);
|
|
40
|
+
case 3: return createJSIString<"attributes">(runtime);
|
|
41
|
+
default: [[unlikely]]
|
|
42
|
+
throw std::invalid_argument("Cannot convert NativeFlowCapability to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFlowCapability>>::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("links"): return true;
|
|
51
|
+
case hashString("notifications"): return true;
|
|
52
|
+
case hashString("tracking"): return true;
|
|
53
|
+
case hashString("attributes"): return true;
|
|
54
|
+
default: return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
} // namespace margelo::nitro
|