@voidhash/nitro-ui 0.0.0-stage → 0.4.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-Z6TDMZMZ.js +326 -0
- package/build/chunk-Z6TDMZMZ.js.map +1 -0
- package/build/index.d.ts +2866 -0
- package/build/index.js +4182 -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 +1400 -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,55 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeOfferSelection.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/JNativeOfferSelection.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::JNativeOfferSelection> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeOfferSelection::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeOfferSelection> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeOfferSelection::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("automatic"): return 0;
|
|
27
|
+
case hashString("regularPrice"): return 1;
|
|
28
|
+
case hashString("offer"): return 2;
|
|
29
|
+
default: [[unlikely]]
|
|
30
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeOfferSelection - invalid value!");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeOfferSelection> value) {
|
|
35
|
+
switch (value->value()) {
|
|
36
|
+
case 0: return createJSIString<"automatic">(runtime);
|
|
37
|
+
case 1: return createJSIString<"regularPrice">(runtime);
|
|
38
|
+
case 2: return createJSIString<"offer">(runtime);
|
|
39
|
+
default: [[unlikely]]
|
|
40
|
+
throw std::invalid_argument("Cannot convert NativeOfferSelection to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
45
|
+
if (!value.isString()) return false;
|
|
46
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
47
|
+
switch (hashString(string)) {
|
|
48
|
+
case hashString("automatic"): return true;
|
|
49
|
+
case hashString("regularPrice"): return true;
|
|
50
|
+
case hashString("offer"): return true;
|
|
51
|
+
default: return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePaymentMode.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/JNativePaymentMode.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::JNativePaymentMode> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePaymentMode>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativePaymentMode::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativePaymentMode> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativePaymentMode>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativePaymentMode::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePaymentMode>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("unknown"): return 0;
|
|
27
|
+
case hashString("freeTrial"): return 1;
|
|
28
|
+
case hashString("payAsYouGo"): return 2;
|
|
29
|
+
case hashString("payUpFront"): return 3;
|
|
30
|
+
default: [[unlikely]]
|
|
31
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativePaymentMode - invalid value!");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePaymentMode>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePaymentMode> value) {
|
|
36
|
+
switch (value->value()) {
|
|
37
|
+
case 0: return createJSIString<"unknown">(runtime);
|
|
38
|
+
case 1: return createJSIString<"freeTrial">(runtime);
|
|
39
|
+
case 2: return createJSIString<"payAsYouGo">(runtime);
|
|
40
|
+
case 3: return createJSIString<"payUpFront">(runtime);
|
|
41
|
+
default: [[unlikely]]
|
|
42
|
+
throw std::invalid_argument("Cannot convert NativePaymentMode to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePaymentMode>>::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("unknown"): return true;
|
|
51
|
+
case hashString("freeTrial"): return true;
|
|
52
|
+
case hashString("payAsYouGo"): return true;
|
|
53
|
+
case hashString("payUpFront"): return true;
|
|
54
|
+
default: return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePendingAnalytics.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/JNativePendingAnalytics.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::JNativePendingAnalytics> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativePendingAnalytics::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativePendingAnalytics> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativePendingAnalytics::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("drop"): return 0;
|
|
27
|
+
case hashString("buffer"): return 1;
|
|
28
|
+
default: [[unlikely]]
|
|
29
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativePendingAnalytics - invalid value!");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePendingAnalytics> value) {
|
|
34
|
+
switch (value->value()) {
|
|
35
|
+
case 0: return createJSIString<"drop">(runtime);
|
|
36
|
+
case 1: return createJSIString<"buffer">(runtime);
|
|
37
|
+
default: [[unlikely]]
|
|
38
|
+
throw std::invalid_argument("Cannot convert NativePendingAnalytics to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePendingAnalytics>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
43
|
+
if (!value.isString()) return false;
|
|
44
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
45
|
+
switch (hashString(string)) {
|
|
46
|
+
case hashString("drop"): return true;
|
|
47
|
+
case hashString("buffer"): return true;
|
|
48
|
+
default: return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePeriod.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/JNativePeriod.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativePeriodUnit.hpp>
|
|
10
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
11
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
12
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
13
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
14
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
15
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro {
|
|
18
|
+
|
|
19
|
+
jni::local_ref<margelo::nitro::voidhash::JNativePeriod> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriod>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
auto object = value.asObject(runtime);
|
|
21
|
+
return margelo::nitro::voidhash::JNativePeriod::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "unit"))), JSIConverter<jdouble>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "count"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "iso8601"))));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriod>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePeriod> value) {
|
|
25
|
+
jsi::Object object(runtime);
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "unit"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::toJSI(runtime, value->getUnit()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "count"), JSIConverter<jdouble>::toJSI(runtime, value->getCount()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "iso8601"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getIso8601()));
|
|
29
|
+
return object;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriod>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
33
|
+
if (!value.isObject()) return false;
|
|
34
|
+
auto object = value.getObject(runtime);
|
|
35
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
36
|
+
return JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "unit"))) && JSIConverter<jdouble>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "count"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "iso8601")));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePeriodUnit.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/JNativePeriodUnit.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::JNativePeriodUnit> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativePeriodUnit::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativePeriodUnit> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativePeriodUnit::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("unknown"): return 0;
|
|
27
|
+
case hashString("day"): return 1;
|
|
28
|
+
case hashString("week"): return 2;
|
|
29
|
+
case hashString("month"): return 3;
|
|
30
|
+
case hashString("year"): return 4;
|
|
31
|
+
default: [[unlikely]]
|
|
32
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativePeriodUnit - invalid value!");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePeriodUnit> value) {
|
|
37
|
+
switch (value->value()) {
|
|
38
|
+
case 0: return createJSIString<"unknown">(runtime);
|
|
39
|
+
case 1: return createJSIString<"day">(runtime);
|
|
40
|
+
case 2: return createJSIString<"week">(runtime);
|
|
41
|
+
case 3: return createJSIString<"month">(runtime);
|
|
42
|
+
case 4: return createJSIString<"year">(runtime);
|
|
43
|
+
default: [[unlikely]]
|
|
44
|
+
throw std::invalid_argument("Cannot convert NativePeriodUnit to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriodUnit>>::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("unknown"): return true;
|
|
53
|
+
case hashString("day"): return true;
|
|
54
|
+
case hashString("week"): return true;
|
|
55
|
+
case hashString("month"): return true;
|
|
56
|
+
case hashString("year"): return true;
|
|
57
|
+
default: return false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePersonState.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/JNativePersonState.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 <NitroVoidhash/private/JNativeFreshnessReason.hpp>
|
|
16
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
17
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
18
|
+
|
|
19
|
+
namespace margelo::nitro {
|
|
20
|
+
|
|
21
|
+
jni::local_ref<margelo::nitro::voidhash::JNativePersonState> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePersonState>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
22
|
+
auto object = value.asObject(runtime);
|
|
23
|
+
return margelo::nitro::voidhash::JNativePersonState::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::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "personJson"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isStale"))), JSIConverter<jboolean>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isExpired"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFreshnessReason>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "reason"))));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePersonState>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePersonState> value) {
|
|
27
|
+
jsi::Object object(runtime);
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "distinctId"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getDistinctId()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "generation"), JSIConverter<jdouble>::toJSI(runtime, value->getGeneration()));
|
|
30
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "personJson"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getPersonJson()));
|
|
31
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "isStale"), JSIConverter<jboolean>::toJSI(runtime, value->getIsStale()));
|
|
32
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "isExpired"), JSIConverter<jboolean>::toJSI(runtime, value->getIsExpired()));
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "reason"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFreshnessReason>>::toJSI(runtime, value->getReason()));
|
|
34
|
+
return object;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePersonState>>::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<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::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "personJson"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isStale"))) && JSIConverter<jboolean>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "isExpired"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeFreshnessReason>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "reason")));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePersonWriteResult.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/JNativePersonWriteResult.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativeWriteStatus.hpp>
|
|
10
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
11
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
12
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
13
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
14
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
15
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro {
|
|
18
|
+
|
|
19
|
+
jni::local_ref<margelo::nitro::voidhash::JNativePersonWriteResult> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePersonWriteResult>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
auto object = value.asObject(runtime);
|
|
21
|
+
return margelo::nitro::voidhash::JNativePersonWriteResult::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeWriteStatus>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "status"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "personJson"))));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePersonWriteResult>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePersonWriteResult> value) {
|
|
25
|
+
jsi::Object object(runtime);
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "status"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeWriteStatus>>::toJSI(runtime, value->getStatus()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "personJson"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getPersonJson()));
|
|
28
|
+
return object;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePersonWriteResult>>::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::JNativeWriteStatus>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "status"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "personJson")));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePrice.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/JNativePrice.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.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::JNativePrice> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
19
|
+
auto object = value.asObject(runtime);
|
|
20
|
+
return margelo::nitro::voidhash::JNativePrice::create(JSIConverter<jdouble>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "amount"))), JSIConverter<jdouble>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "amountMicros"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "currencyCode"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "formatted"))));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePrice> value) {
|
|
24
|
+
jsi::Object object(runtime);
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "amount"), JSIConverter<jdouble>::toJSI(runtime, value->getAmount()));
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "amountMicros"), JSIConverter<jdouble>::toJSI(runtime, value->getAmountMicros()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "currencyCode"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getCurrencyCode()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "formatted"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getFormatted()));
|
|
29
|
+
return object;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
33
|
+
if (!value.isObject()) return false;
|
|
34
|
+
auto object = value.getObject(runtime);
|
|
35
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
36
|
+
return JSIConverter<jdouble>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "amount"))) && JSIConverter<jdouble>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "amountMicros"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "currencyCode"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "formatted")));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePricingPhase.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/JNativePricingPhase.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativePaymentMode.hpp>
|
|
10
|
+
#include <NitroVoidhash/private/JNativePrice.hpp>
|
|
11
|
+
#include <NitroVoidhash/private/JNativePeriod.hpp>
|
|
12
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
13
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
14
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
15
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro {
|
|
18
|
+
|
|
19
|
+
jni::local_ref<margelo::nitro::voidhash::JNativePricingPhase> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePricingPhase>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
auto object = value.asObject(runtime);
|
|
21
|
+
return margelo::nitro::voidhash::JNativePricingPhase::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePaymentMode>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "paymentMode"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "price"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriod>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "period"))), JSIConverter<jdouble>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "cycles"))));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePricingPhase>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePricingPhase> value) {
|
|
25
|
+
jsi::Object object(runtime);
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "paymentMode"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePaymentMode>>::toJSI(runtime, value->getPaymentMode()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "price"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::toJSI(runtime, value->getPrice()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "period"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriod>>::toJSI(runtime, value->getPeriod()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "cycles"), JSIConverter<jdouble>::toJSI(runtime, value->getCycles()));
|
|
30
|
+
return object;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePricingPhase>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
34
|
+
if (!value.isObject()) return false;
|
|
35
|
+
auto object = value.getObject(runtime);
|
|
36
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
37
|
+
return JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePaymentMode>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "paymentMode"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "price"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriod>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "period"))) && JSIConverter<jdouble>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "cycles")));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeProduct.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/JNativeProduct.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
11
|
+
#include <NitroVoidhash/private/JNativeStore.hpp>
|
|
12
|
+
#include <NitroVoidhash/private/JNativeProductType.hpp>
|
|
13
|
+
#include <NitroVoidhash/private/JNativePrice.hpp>
|
|
14
|
+
#include <NitroVoidhash/private/JNativeSubscriptionInfo.hpp>
|
|
15
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
16
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
17
|
+
#include <NitroVoidhash/private/JNativeOffer.hpp>
|
|
18
|
+
#include <NitroModules/JNIConverter+Array.hpp>
|
|
19
|
+
#include <NitroModules/JSIConverter+JArrayClass.hpp>
|
|
20
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
|
|
23
|
+
namespace margelo::nitro {
|
|
24
|
+
|
|
25
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeProduct> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProduct>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
26
|
+
auto object = value.asObject(runtime);
|
|
27
|
+
return margelo::nitro::voidhash::JNativeProduct::create(JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "productId"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "slug"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStore>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "store"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "storeProductId"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProductType>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "type"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "name"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "displayName"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "description"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "price"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeSubscriptionInfo>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "subscription"))), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeOffer>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offers"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStoreJson"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "googlePlayJson"))));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProduct>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeProduct> value) {
|
|
31
|
+
jsi::Object object(runtime);
|
|
32
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "productId"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getProductId()));
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "slug"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getSlug()));
|
|
34
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "store"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStore>>::toJSI(runtime, value->getStore()));
|
|
35
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "storeProductId"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getStoreProductId()));
|
|
36
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "type"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProductType>>::toJSI(runtime, value->getType()));
|
|
37
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "name"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getName()));
|
|
38
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "displayName"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getDisplayName()));
|
|
39
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "description"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getDescription()));
|
|
40
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "price"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::toJSI(runtime, value->getPrice()));
|
|
41
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "subscription"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeSubscriptionInfo>>>::toJSI(runtime, value->getSubscription()));
|
|
42
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "offers"), JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeOffer>>>::toJSI(runtime, value->getOffers()));
|
|
43
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "appStoreJson"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getAppStoreJson()));
|
|
44
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "googlePlayJson"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getGooglePlayJson()));
|
|
45
|
+
return object;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProduct>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
49
|
+
if (!value.isObject()) return false;
|
|
50
|
+
auto object = value.getObject(runtime);
|
|
51
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
52
|
+
return JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "productId"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "slug"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStore>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "store"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "storeProductId"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProductType>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "type"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "name"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "displayName"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "description"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "price"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeSubscriptionInfo>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "subscription"))) && JSIConverter<jni::local_ref<jni::JArrayClass<margelo::nitro::voidhash::JNativeOffer>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offers"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStoreJson"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "googlePlayJson")));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeProductType.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/JNativeProductType.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::JNativeProductType> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProductType>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeProductType::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeProductType> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeProductType>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeProductType::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProductType>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("unknown"): return 0;
|
|
27
|
+
case hashString("subscription"): return 1;
|
|
28
|
+
case hashString("consumable"): return 2;
|
|
29
|
+
case hashString("nonConsumable"): return 3;
|
|
30
|
+
case hashString("nonRenewingSubscription"): return 4;
|
|
31
|
+
default: [[unlikely]]
|
|
32
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeProductType - invalid value!");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProductType>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeProductType> value) {
|
|
37
|
+
switch (value->value()) {
|
|
38
|
+
case 0: return createJSIString<"unknown">(runtime);
|
|
39
|
+
case 1: return createJSIString<"subscription">(runtime);
|
|
40
|
+
case 2: return createJSIString<"consumable">(runtime);
|
|
41
|
+
case 3: return createJSIString<"nonConsumable">(runtime);
|
|
42
|
+
case 4: return createJSIString<"nonRenewingSubscription">(runtime);
|
|
43
|
+
default: [[unlikely]]
|
|
44
|
+
throw std::invalid_argument("Cannot convert NativeProductType to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeProductType>>::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("unknown"): return true;
|
|
53
|
+
case hashString("subscription"): return true;
|
|
54
|
+
case hashString("consumable"): return true;
|
|
55
|
+
case hashString("nonConsumable"): return true;
|
|
56
|
+
case hashString("nonRenewingSubscription"): return true;
|
|
57
|
+
default: return false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePurchaseIntent.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/JNativePurchaseIntent.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
11
|
+
#include <NitroVoidhash/private/JNativeOffer.hpp>
|
|
12
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
13
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
14
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
15
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro {
|
|
18
|
+
|
|
19
|
+
jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntent> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntent>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
auto object = value.asObject(runtime);
|
|
21
|
+
return margelo::nitro::voidhash::JNativePurchaseIntent::create(JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "productSlug"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOffer>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offer"))));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntent>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseIntent> value) {
|
|
25
|
+
jsi::Object object(runtime);
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "productSlug"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getProductSlug()));
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "offer"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOffer>>>::toJSI(runtime, value->getOffer()));
|
|
28
|
+
return object;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntent>>::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<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "productSlug"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOffer>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offer")));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
} // namespace margelo::nitro
|