@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,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePurchaseIntents.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/JNativePurchaseIntents.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::JNativePurchaseIntents> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativePurchaseIntents::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseIntents> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativePurchaseIntents::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("purchaseWhenReady"): return 0;
|
|
27
|
+
case hashString("manual"): return 1;
|
|
28
|
+
default: [[unlikely]]
|
|
29
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativePurchaseIntents - invalid value!");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseIntents> value) {
|
|
34
|
+
switch (value->value()) {
|
|
35
|
+
case 0: return createJSIString<"purchaseWhenReady">(runtime);
|
|
36
|
+
case 1: return createJSIString<"manual">(runtime);
|
|
37
|
+
default: [[unlikely]]
|
|
38
|
+
throw std::invalid_argument("Cannot convert NativePurchaseIntents to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseIntents>>::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("purchaseWhenReady"): return true;
|
|
47
|
+
case hashString("manual"): return true;
|
|
48
|
+
default: return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePurchaseOptions.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/JNativePurchaseOptions.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativeOfferSelection.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 <NitroVoidhash/private/JNativeOfferKind.hpp>
|
|
15
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
16
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
17
|
+
#include <NitroVoidhash/private/JNativeSubscriptionReplacement.hpp>
|
|
18
|
+
#include <NitroVoidhash/private/JNativeAppStorePurchaseOptions.hpp>
|
|
19
|
+
#include <NitroVoidhash/private/JNativeGooglePlayPurchaseOptions.hpp>
|
|
20
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
|
|
23
|
+
namespace margelo::nitro {
|
|
24
|
+
|
|
25
|
+
jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOptions> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOptions>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
26
|
+
auto object = value.asObject(runtime);
|
|
27
|
+
return margelo::nitro::voidhash::JNativePurchaseOptions::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offerSelection"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offerId"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOfferKind>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offerKind"))), JSIConverter<jdouble>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "quantity"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeSubscriptionReplacement>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "replacing"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAppStorePurchaseOptions>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStore"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeGooglePlayPurchaseOptions>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "googlePlay"))));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOptions>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseOptions> value) {
|
|
31
|
+
jsi::Object object(runtime);
|
|
32
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "offerSelection"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::toJSI(runtime, value->getOfferSelection()));
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "offerId"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getOfferId()));
|
|
34
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "offerKind"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOfferKind>>>::toJSI(runtime, value->getOfferKind()));
|
|
35
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "quantity"), JSIConverter<jdouble>::toJSI(runtime, value->getQuantity()));
|
|
36
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "replacing"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeSubscriptionReplacement>>>::toJSI(runtime, value->getReplacing()));
|
|
37
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "appStore"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAppStorePurchaseOptions>>>::toJSI(runtime, value->getAppStore()));
|
|
38
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "googlePlay"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeGooglePlayPurchaseOptions>>>::toJSI(runtime, value->getGooglePlay()));
|
|
39
|
+
return object;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOptions>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
43
|
+
if (!value.isObject()) return false;
|
|
44
|
+
auto object = value.getObject(runtime);
|
|
45
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
46
|
+
return JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeOfferSelection>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offerSelection"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offerId"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOfferKind>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "offerKind"))) && JSIConverter<jdouble>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "quantity"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeSubscriptionReplacement>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "replacing"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeAppStorePurchaseOptions>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "appStore"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeGooglePlayPurchaseOptions>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "googlePlay")));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePurchaseOutcome.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/JNativePurchaseOutcome.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::JNativePurchaseOutcome> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOutcome>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativePurchaseOutcome::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseOutcome> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseOutcome>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativePurchaseOutcome::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOutcome>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("pending"): return 0;
|
|
27
|
+
case hashString("purchased"): return 1;
|
|
28
|
+
case hashString("cancelled"): return 2;
|
|
29
|
+
default: [[unlikely]]
|
|
30
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativePurchaseOutcome - invalid value!");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOutcome>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseOutcome> value) {
|
|
35
|
+
switch (value->value()) {
|
|
36
|
+
case 0: return createJSIString<"pending">(runtime);
|
|
37
|
+
case 1: return createJSIString<"purchased">(runtime);
|
|
38
|
+
case 2: return createJSIString<"cancelled">(runtime);
|
|
39
|
+
default: [[unlikely]]
|
|
40
|
+
throw std::invalid_argument("Cannot convert NativePurchaseOutcome to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOutcome>>::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("pending"): return true;
|
|
49
|
+
case hashString("purchased"): return true;
|
|
50
|
+
case hashString("cancelled"): return true;
|
|
51
|
+
default: return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativePurchaseResult.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/JNativePurchaseResult.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativePurchaseOutcome.hpp>
|
|
10
|
+
#include <NitroVoidhash/private/JNativeTransaction.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 <NitroModules/PropNameIDCache.hpp>
|
|
16
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
17
|
+
|
|
18
|
+
namespace margelo::nitro {
|
|
19
|
+
|
|
20
|
+
jni::local_ref<margelo::nitro::voidhash::JNativePurchaseResult> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseResult>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
21
|
+
auto object = value.asObject(runtime);
|
|
22
|
+
return margelo::nitro::voidhash::JNativePurchaseResult::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOutcome>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "outcome"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeTransaction>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))), JSIConverter<jni::local_ref<JOptional<jni::JBoolean>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "synced"))));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseResult>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativePurchaseResult> value) {
|
|
26
|
+
jsi::Object object(runtime);
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "outcome"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseOutcome>>::toJSI(runtime, value->getOutcome()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "transaction"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeTransaction>>>::toJSI(runtime, value->getTransaction()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "synced"), JSIConverter<jni::local_ref<JOptional<jni::JBoolean>>>::toJSI(runtime, value->getSynced()));
|
|
30
|
+
return object;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePurchaseResult>>::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::JNativePurchaseOutcome>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "outcome"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeTransaction>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transaction"))) && JSIConverter<jni::local_ref<JOptional<jni::JBoolean>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "synced")));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeRefundRequestStatus.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/JNativeRefundRequestStatus.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::JNativeRefundRequestStatus> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeRefundRequestStatus>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeRefundRequestStatus::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeRefundRequestStatus> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeRefundRequestStatus>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeRefundRequestStatus::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeRefundRequestStatus>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("success"): return 0;
|
|
27
|
+
case hashString("userCancelled"): return 1;
|
|
28
|
+
default: [[unlikely]]
|
|
29
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeRefundRequestStatus - invalid value!");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeRefundRequestStatus>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeRefundRequestStatus> value) {
|
|
34
|
+
switch (value->value()) {
|
|
35
|
+
case 0: return createJSIString<"success">(runtime);
|
|
36
|
+
case 1: return createJSIString<"userCancelled">(runtime);
|
|
37
|
+
default: [[unlikely]]
|
|
38
|
+
throw std::invalid_argument("Cannot convert NativeRefundRequestStatus to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeRefundRequestStatus>>::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("success"): return true;
|
|
47
|
+
case hashString("userCancelled"): return true;
|
|
48
|
+
default: return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeReportedPurchaseState.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/JNativeReportedPurchaseState.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::JNativeReportedPurchaseState> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeReportedPurchaseState>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeReportedPurchaseState::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeReportedPurchaseState> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeReportedPurchaseState>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeReportedPurchaseState::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeReportedPurchaseState>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("pending"): return 0;
|
|
27
|
+
case hashString("purchased"): return 1;
|
|
28
|
+
case hashString("unspecified"): return 2;
|
|
29
|
+
default: [[unlikely]]
|
|
30
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeReportedPurchaseState - invalid value!");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeReportedPurchaseState>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeReportedPurchaseState> value) {
|
|
35
|
+
switch (value->value()) {
|
|
36
|
+
case 0: return createJSIString<"pending">(runtime);
|
|
37
|
+
case 1: return createJSIString<"purchased">(runtime);
|
|
38
|
+
case 2: return createJSIString<"unspecified">(runtime);
|
|
39
|
+
default: [[unlikely]]
|
|
40
|
+
throw std::invalid_argument("Cannot convert NativeReportedPurchaseState to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeReportedPurchaseState>>::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("pending"): return true;
|
|
49
|
+
case hashString("purchased"): return true;
|
|
50
|
+
case hashString("unspecified"): return true;
|
|
51
|
+
default: return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeReportedTransaction.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/JNativeReportedTransaction.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativeStorePlatform.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 <NitroVoidhash/private/JNativeReportedPurchaseState.hpp>
|
|
15
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
16
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
17
|
+
|
|
18
|
+
namespace margelo::nitro {
|
|
19
|
+
|
|
20
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeReportedTransaction> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeReportedTransaction>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
21
|
+
auto object = value.asObject(runtime);
|
|
22
|
+
return margelo::nitro::voidhash::JNativeReportedTransaction::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "platform"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transactionId"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseToken"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeReportedPurchaseState>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseState"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "signedTransaction"))));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeReportedTransaction>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeReportedTransaction> value) {
|
|
26
|
+
jsi::Object object(runtime);
|
|
27
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "platform"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::toJSI(runtime, value->getPlatform()));
|
|
28
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "transactionId"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getTransactionId()));
|
|
29
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "purchaseToken"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getPurchaseToken()));
|
|
30
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "purchaseState"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeReportedPurchaseState>>>::toJSI(runtime, value->getPurchaseState()));
|
|
31
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "signedTransaction"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getSignedTransaction()));
|
|
32
|
+
return object;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeReportedTransaction>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
36
|
+
if (!value.isObject()) return false;
|
|
37
|
+
auto object = value.getObject(runtime);
|
|
38
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
39
|
+
return JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "platform"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "transactionId"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseToken"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeReportedPurchaseState>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "purchaseState"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "signedTransaction")));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeStore.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/JNativeStore.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::JNativeStore> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStore>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeStore::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeStore> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeStore>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeStore::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStore>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("appStore"): return 0;
|
|
27
|
+
case hashString("googlePlay"): return 1;
|
|
28
|
+
case hashString("development"): return 2;
|
|
29
|
+
case hashString("unknown"): return 3;
|
|
30
|
+
default: [[unlikely]]
|
|
31
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeStore - invalid value!");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStore>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeStore> value) {
|
|
36
|
+
switch (value->value()) {
|
|
37
|
+
case 0: return createJSIString<"appStore">(runtime);
|
|
38
|
+
case 1: return createJSIString<"googlePlay">(runtime);
|
|
39
|
+
case 2: return createJSIString<"development">(runtime);
|
|
40
|
+
case 3: return createJSIString<"unknown">(runtime);
|
|
41
|
+
default: [[unlikely]]
|
|
42
|
+
throw std::invalid_argument("Cannot convert NativeStore to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStore>>::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("appStore"): return true;
|
|
51
|
+
case hashString("googlePlay"): return true;
|
|
52
|
+
case hashString("development"): return true;
|
|
53
|
+
case hashString("unknown"): return true;
|
|
54
|
+
default: return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeStorePlatform.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/JNativeStorePlatform.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::JNativeStorePlatform> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeStorePlatform::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeStorePlatform> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeStorePlatform::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("appStore"): return 0;
|
|
27
|
+
case hashString("googlePlay"): return 1;
|
|
28
|
+
default: [[unlikely]]
|
|
29
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeStorePlatform - invalid value!");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeStorePlatform> value) {
|
|
34
|
+
switch (value->value()) {
|
|
35
|
+
case 0: return createJSIString<"appStore">(runtime);
|
|
36
|
+
case 1: return createJSIString<"googlePlay">(runtime);
|
|
37
|
+
default: [[unlikely]]
|
|
38
|
+
throw std::invalid_argument("Cannot convert NativeStorePlatform to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorePlatform>>::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("appStore"): return true;
|
|
47
|
+
case hashString("googlePlay"): return true;
|
|
48
|
+
default: return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeStorefront.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/JNativeStorefront.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/PropNameIDCache.hpp>
|
|
14
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
15
|
+
|
|
16
|
+
namespace margelo::nitro {
|
|
17
|
+
|
|
18
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeStorefront> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorefront>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
19
|
+
auto object = value.asObject(runtime);
|
|
20
|
+
return margelo::nitro::voidhash::JNativeStorefront::create(JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "countryCode"))), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "currencyCode"))));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorefront>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeStorefront> value) {
|
|
24
|
+
jsi::Object object(runtime);
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "countryCode"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getCountryCode()));
|
|
26
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "currencyCode"), JSIConverter<jni::local_ref<JOptional<jni::JString>>>::toJSI(runtime, value->getCurrencyCode()));
|
|
27
|
+
return object;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeStorefront>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
31
|
+
if (!value.isObject()) return false;
|
|
32
|
+
auto object = value.getObject(runtime);
|
|
33
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
34
|
+
return JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "countryCode"))) && JSIConverter<jni::local_ref<JOptional<jni::JString>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "currencyCode")));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeSubscriptionInfo.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/JNativeSubscriptionInfo.hpp>
|
|
9
|
+
#include <NitroVoidhash/private/JNativePeriod.hpp>
|
|
10
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
11
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
12
|
+
#include <NitroVoidhash/private/JNativeOffer.hpp>
|
|
13
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
14
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
15
|
+
#include <NitroVoidhash/private/JNativePrice.hpp>
|
|
16
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
17
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
18
|
+
|
|
19
|
+
namespace margelo::nitro {
|
|
20
|
+
|
|
21
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionInfo> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionInfo>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
22
|
+
auto object = value.asObject(runtime);
|
|
23
|
+
return margelo::nitro::voidhash::JNativeSubscriptionInfo::create(JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePeriod>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "period"))), JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "groupId"))), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOffer>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "introOffer"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerDay"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerWeek"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerMonth"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerYear"))));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionInfo>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeSubscriptionInfo> value) {
|
|
27
|
+
jsi::Object object(runtime);
|
|
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, "groupId"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getGroupId()));
|
|
30
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "introOffer"), JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOffer>>>::toJSI(runtime, value->getIntroOffer()));
|
|
31
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "pricePerDay"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::toJSI(runtime, value->getPricePerDay()));
|
|
32
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "pricePerWeek"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::toJSI(runtime, value->getPricePerWeek()));
|
|
33
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "pricePerMonth"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::toJSI(runtime, value->getPricePerMonth()));
|
|
34
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "pricePerYear"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::toJSI(runtime, value->getPricePerYear()));
|
|
35
|
+
return object;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionInfo>>::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<margelo::nitro::voidhash::JNativePeriod>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "period"))) && JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "groupId"))) && JSIConverter<jni::local_ref<JOptional<margelo::nitro::voidhash::JNativeOffer>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "introOffer"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerDay"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerWeek"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerMonth"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativePrice>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "pricePerYear")));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeSubscriptionReplacement.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/JNativeSubscriptionReplacement.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
11
|
+
#include <NitroVoidhash/private/JNativeSubscriptionReplacementMode.hpp>
|
|
12
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
13
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacement> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacement>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
auto object = value.asObject(runtime);
|
|
19
|
+
return margelo::nitro::voidhash::JNativeSubscriptionReplacement::create(JSIConverter<jni::local_ref<jni::JString>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "productSlug"))), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacementMode>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "mode"))));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacement>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacement> value) {
|
|
23
|
+
jsi::Object object(runtime);
|
|
24
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "productSlug"), JSIConverter<jni::local_ref<jni::JString>>::toJSI(runtime, value->getProductSlug()));
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "mode"), JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacementMode>>::toJSI(runtime, value->getMode()));
|
|
26
|
+
return object;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacement>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
30
|
+
if (!value.isObject()) return false;
|
|
31
|
+
auto object = value.getObject(runtime);
|
|
32
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
33
|
+
return JSIConverter<jni::local_ref<jni::JString>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "productSlug"))) && JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeSubscriptionReplacementMode>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "mode")));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
} // namespace margelo::nitro
|