@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,387 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JHybridVoidhashNativeClientSpec.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/JHybridVoidhashNativeClientSpec.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
11
|
+
#include <NitroModules/JNIConverter+Promise.hpp>
|
|
12
|
+
#include <NitroModules/JSIConverter+JTypedPromise.hpp>
|
|
13
|
+
#include <NitroVoidhash/private/JNativeFlushStatus.hpp>
|
|
14
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
15
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
16
|
+
#include <NitroVoidhash/private/JNativeIdentifyResult.hpp>
|
|
17
|
+
#include <NitroVoidhash/private/JNativeIdentityChange.hpp>
|
|
18
|
+
#include <NitroModules/JNIConverter+Map.hpp>
|
|
19
|
+
#include <NitroModules/JSIConverter+JMap.hpp>
|
|
20
|
+
#include <NitroVoidhash/private/JNativePersonWriteResult.hpp>
|
|
21
|
+
#include <NitroVoidhash/private/JNativePersonState.hpp>
|
|
22
|
+
#include <NitroVoidhash/private/JNativeFeatureFlagsResult.hpp>
|
|
23
|
+
#include <NitroVoidhash/private/JNativeProduct.hpp>
|
|
24
|
+
#include <NitroModules/JNIConverter+Array.hpp>
|
|
25
|
+
#include <NitroModules/JSIConverter+JArrayClass.hpp>
|
|
26
|
+
#include <NitroVoidhash/private/JNativePurchaseResult.hpp>
|
|
27
|
+
#include <NitroVoidhash/private/JNativeStorefront.hpp>
|
|
28
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
29
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
30
|
+
#include <NitroVoidhash/private/JNativeRefundRequestStatus.hpp>
|
|
31
|
+
#include <NitroVoidhash/private/JNativeAppStoreSubscriptionStatus.hpp>
|
|
32
|
+
#include <NitroVoidhash/private/JNativeTransaction.hpp>
|
|
33
|
+
#include <NitroVoidhash/private/JNativeInAppMessageResult.hpp>
|
|
34
|
+
#include <NitroVoidhash/private/JNativeAnalyticsConsent.hpp>
|
|
35
|
+
#include <NitroVoidhash/private/JNativeClientConfiguration.hpp>
|
|
36
|
+
#include <NitroVoidhash/private/JCallback_void_NativeClientEvent.hpp>
|
|
37
|
+
#include <NitroModules/JNIConverter+Callback.hpp>
|
|
38
|
+
#include <NitroVoidhash/private/JNativeClientEvent.hpp>
|
|
39
|
+
#include <NitroVoidhash/private/JNativePurchaseOptions.hpp>
|
|
40
|
+
#include <NitroVoidhash/private/JNativeReportedTransaction.hpp>
|
|
41
|
+
#include <NitroVoidhash/private/JNativeFlowPresentation.hpp>
|
|
42
|
+
#include <NitroVoidhash/private/JCallback_Promise_std__string__std__string_std__string.hpp>
|
|
43
|
+
#include <memory>
|
|
44
|
+
#include <NitroModules/JNIConverter+HybridObject.hpp>
|
|
45
|
+
|
|
46
|
+
namespace margelo::nitro::voidhash {
|
|
47
|
+
|
|
48
|
+
JHybridVoidhashNativeClientSpec::~JHybridVoidhashNativeClientSpec() = default;
|
|
49
|
+
|
|
50
|
+
std::shared_ptr<JHybridVoidhashNativeClientSpec> JHybridVoidhashNativeClientSpec::constructor() {
|
|
51
|
+
static const auto __method = JHybridVoidhashNativeClientSpec::JavaPart::javaClassStatic()->getStaticMethod<jni::local_ref<JHybridVoidhashNativeClientSpecJavaPart>()>("constructor_cxx");
|
|
52
|
+
auto __result = __method(JHybridVoidhashNativeClientSpec::JavaPart::javaClassStatic());
|
|
53
|
+
return JNIConverter<std::shared_ptr<JHybridVoidhashNativeClientSpec>, jni::local_ref<JHybridVoidhashNativeClientSpecJavaPart>>::fromJNI(__result);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const std::shared_ptr<const HybridClass>& JHybridVoidhashNativeClientSpec::Class::get() {
|
|
57
|
+
static const auto hybridClass = HybridClass::create<Class>([](HybridClass& clazz) {
|
|
58
|
+
clazz.registerHybridMethod("contractVersion", &JHybridVoidhashNativeClientSpec::contractVersion);
|
|
59
|
+
clazz.registerHybridMethod("configure", &JHybridVoidhashNativeClientSpec::configure);
|
|
60
|
+
clazz.registerHybridMethod("start", &JHybridVoidhashNativeClientSpec::start);
|
|
61
|
+
clazz.registerHybridMethod("shutdown", &JHybridVoidhashNativeClientSpec::shutdown);
|
|
62
|
+
clazz.registerHybridMethod("setEventListener", &JHybridVoidhashNativeClientSpec::setEventListener);
|
|
63
|
+
clazz.registerHybridMethod("removeEventListener", &JHybridVoidhashNativeClientSpec::removeEventListener);
|
|
64
|
+
clazz.registerHybridMethod("getDistinctId", &JHybridVoidhashNativeClientSpec::getDistinctId);
|
|
65
|
+
clazz.registerHybridMethod("identify", &JHybridVoidhashNativeClientSpec::identify);
|
|
66
|
+
clazz.registerHybridMethod("reset", &JHybridVoidhashNativeClientSpec::reset);
|
|
67
|
+
clazz.registerHybridMethod("signOut", &JHybridVoidhashNativeClientSpec::signOut);
|
|
68
|
+
clazz.registerHybridMethod("group", &JHybridVoidhashNativeClientSpec::group);
|
|
69
|
+
clazz.registerHybridMethod("setGroups", &JHybridVoidhashNativeClientSpec::setGroups);
|
|
70
|
+
clazz.registerHybridMethod("resetGroups", &JHybridVoidhashNativeClientSpec::resetGroups);
|
|
71
|
+
clazz.registerHybridMethod("getGroups", &JHybridVoidhashNativeClientSpec::getGroups);
|
|
72
|
+
clazz.registerHybridMethod("setPersonAttributes", &JHybridVoidhashNativeClientSpec::setPersonAttributes);
|
|
73
|
+
clazz.registerHybridMethod("setPersonAttributesState", &JHybridVoidhashNativeClientSpec::setPersonAttributesState);
|
|
74
|
+
clazz.registerHybridMethod("getPersonState", &JHybridVoidhashNativeClientSpec::getPersonState);
|
|
75
|
+
clazz.registerHybridMethod("resetPersonCache", &JHybridVoidhashNativeClientSpec::resetPersonCache);
|
|
76
|
+
clazz.registerHybridMethod("getFeatureFlags", &JHybridVoidhashNativeClientSpec::getFeatureFlags);
|
|
77
|
+
clazz.registerHybridMethod("getPaywall", &JHybridVoidhashNativeClientSpec::getPaywall);
|
|
78
|
+
clazz.registerHybridMethod("getProducts", &JHybridVoidhashNativeClientSpec::getProducts);
|
|
79
|
+
clazz.registerHybridMethod("purchase", &JHybridVoidhashNativeClientSpec::purchase);
|
|
80
|
+
clazz.registerHybridMethod("restorePurchases", &JHybridVoidhashNativeClientSpec::restorePurchases);
|
|
81
|
+
clazz.registerHybridMethod("syncPurchases", &JHybridVoidhashNativeClientSpec::syncPurchases);
|
|
82
|
+
clazz.registerHybridMethod("reportTransaction", &JHybridVoidhashNativeClientSpec::reportTransaction);
|
|
83
|
+
clazz.registerHybridMethod("showManageSubscriptions", &JHybridVoidhashNativeClientSpec::showManageSubscriptions);
|
|
84
|
+
clazz.registerHybridMethod("presentCodeRedemption", &JHybridVoidhashNativeClientSpec::presentCodeRedemption);
|
|
85
|
+
clazz.registerHybridMethod("getStorefront", &JHybridVoidhashNativeClientSpec::getStorefront);
|
|
86
|
+
clazz.registerHybridMethod("canMakePayments", &JHybridVoidhashNativeClientSpec::canMakePayments);
|
|
87
|
+
clazz.registerHybridMethod("appStoreBeginRefundRequest", &JHybridVoidhashNativeClientSpec::appStoreBeginRefundRequest);
|
|
88
|
+
clazz.registerHybridMethod("appStoreSubscriptionStatus", &JHybridVoidhashNativeClientSpec::appStoreSubscriptionStatus);
|
|
89
|
+
clazz.registerHybridMethod("appStoreCurrentEntitlements", &JHybridVoidhashNativeClientSpec::appStoreCurrentEntitlements);
|
|
90
|
+
clazz.registerHybridMethod("appStoreAppTransaction", &JHybridVoidhashNativeClientSpec::appStoreAppTransaction);
|
|
91
|
+
clazz.registerHybridMethod("googlePlayShowInAppMessages", &JHybridVoidhashNativeClientSpec::googlePlayShowInAppMessages);
|
|
92
|
+
clazz.registerHybridMethod("googlePlayQueryPurchases", &JHybridVoidhashNativeClientSpec::googlePlayQueryPurchases);
|
|
93
|
+
clazz.registerHybridMethod("googlePlayIsFeatureSupported", &JHybridVoidhashNativeClientSpec::googlePlayIsFeatureSupported);
|
|
94
|
+
clazz.registerHybridMethod("setAnalyticsConsent", &JHybridVoidhashNativeClientSpec::setAnalyticsConsent);
|
|
95
|
+
clazz.registerHybridMethod("getAnalyticsConsent", &JHybridVoidhashNativeClientSpec::getAnalyticsConsent);
|
|
96
|
+
clazz.registerHybridMethod("setReadOnly", &JHybridVoidhashNativeClientSpec::setReadOnly);
|
|
97
|
+
clazz.registerHybridMethod("isReadOnly", &JHybridVoidhashNativeClientSpec::isReadOnly);
|
|
98
|
+
clazz.registerHybridMethod("capture", &JHybridVoidhashNativeClientSpec::capture);
|
|
99
|
+
clazz.registerHybridMethod("screen", &JHybridVoidhashNativeClientSpec::screen);
|
|
100
|
+
clazz.registerHybridMethod("captureAt", &JHybridVoidhashNativeClientSpec::captureAt);
|
|
101
|
+
clazz.registerHybridMethod("screenAt", &JHybridVoidhashNativeClientSpec::screenAt);
|
|
102
|
+
clazz.registerHybridMethod("flush", &JHybridVoidhashNativeClientSpec::flush);
|
|
103
|
+
clazz.registerHybridMethod("getSessionId", &JHybridVoidhashNativeClientSpec::getSessionId);
|
|
104
|
+
clazz.registerHybridMethod("presentFlow", &JHybridVoidhashNativeClientSpec::presentFlow);
|
|
105
|
+
clazz.registerHybridMethod("updateFlowInput", &JHybridVoidhashNativeClientSpec::updateFlowInput);
|
|
106
|
+
clazz.registerHybridMethod("dismissFlow", &JHybridVoidhashNativeClientSpec::dismissFlow);
|
|
107
|
+
clazz.registerHybridConstructor(&JHybridVoidhashNativeClientSpec::constructor);
|
|
108
|
+
});
|
|
109
|
+
return hybridClass;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
std::shared_ptr<JHybridVoidhashNativeClientSpec> JHybridVoidhashNativeClientSpecJavaPart::getJHybridVoidhashNativeClientSpec() {
|
|
113
|
+
auto hybridObject = JHybridObject::JavaPart::getJHybridObject();
|
|
114
|
+
auto castHybridObject = std::dynamic_pointer_cast<JHybridVoidhashNativeClientSpec>(hybridObject);
|
|
115
|
+
if (castHybridObject == nullptr) [[unlikely]] {
|
|
116
|
+
throw std::runtime_error("Failed to downcast JHybridObject to JHybridVoidhashNativeClientSpec!");
|
|
117
|
+
}
|
|
118
|
+
return castHybridObject;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
jni::local_ref<JHybridVoidhashNativeClientSpec::CxxPart::jhybriddata> JHybridVoidhashNativeClientSpec::CxxPart::initHybrid(jni::alias_ref<jhybridobject> jThis) {
|
|
122
|
+
return makeCxxInstance(jThis);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
jni::alias_ref<jni::JClass> JHybridVoidhashNativeClientSpec::CxxPart::getClass() {
|
|
126
|
+
static const auto __field = CxxPart::javaClassStatic()->getStaticField<jni::JClass>("implementationClass_cxx");
|
|
127
|
+
static const auto __class = jni::make_global(CxxPart::javaClassStatic()->getStaticFieldValue(__field));
|
|
128
|
+
return __class;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
std::shared_ptr<JHybridObject> JHybridVoidhashNativeClientSpec::CxxPart::createHybridObject(jni::alias_ref<JHybridObject::JavaPart> javaPart) {
|
|
132
|
+
auto castJavaPart = jni::dynamic_ref_cast<JHybridVoidhashNativeClientSpec::JavaPart>(javaPart);
|
|
133
|
+
if (castJavaPart == nullptr) [[unlikely]] {
|
|
134
|
+
throw std::runtime_error("Failed to cast JHybridObject::JavaPart to JHybridVoidhashNativeClientSpec::JavaPart!");
|
|
135
|
+
}
|
|
136
|
+
return std::make_shared<JHybridVoidhashNativeClientSpec>(castJavaPart);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
void JHybridVoidhashNativeClientSpec::CxxPart::registerNatives() {
|
|
140
|
+
registerHybrid({
|
|
141
|
+
makeNativeMethod("initHybrid", JHybridVoidhashNativeClientSpec::CxxPart::initHybrid),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Properties
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
// Methods
|
|
149
|
+
jdouble JHybridVoidhashNativeClientSpec::contractVersion() {
|
|
150
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jdouble()>("contractVersion");
|
|
151
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
152
|
+
return __result;
|
|
153
|
+
}
|
|
154
|
+
void JHybridVoidhashNativeClientSpec::configure(const jni::local_ref<JNativeClientConfiguration>& configuration) {
|
|
155
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<JNativeClientConfiguration> /* configuration */)>("configure");
|
|
156
|
+
__method(_javaPart, CxxPart::getClass(), configuration);
|
|
157
|
+
}
|
|
158
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::start() {
|
|
159
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>()>("start");
|
|
160
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
161
|
+
return __result;
|
|
162
|
+
}
|
|
163
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeFlushStatus>>> JHybridVoidhashNativeClientSpec::shutdown() {
|
|
164
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeFlushStatus>>>()>("shutdown");
|
|
165
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
166
|
+
return __result;
|
|
167
|
+
}
|
|
168
|
+
void JHybridVoidhashNativeClientSpec::setEventListener(const jni::local_ref<JCallback<margelo::nitro::voidhash::JCallback_void_NativeClientEvent::JavaPart>>& listener) {
|
|
169
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<JCallback<margelo::nitro::voidhash::JCallback_void_NativeClientEvent::JavaPart>> /* listener */)>("setEventListener");
|
|
170
|
+
__method(_javaPart, CxxPart::getClass(), listener);
|
|
171
|
+
}
|
|
172
|
+
void JHybridVoidhashNativeClientSpec::removeEventListener() {
|
|
173
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void()>("removeEventListener");
|
|
174
|
+
__method(_javaPart, CxxPart::getClass());
|
|
175
|
+
}
|
|
176
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>> JHybridVoidhashNativeClientSpec::getDistinctId() {
|
|
177
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>>()>("getDistinctId");
|
|
178
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
179
|
+
return __result;
|
|
180
|
+
}
|
|
181
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeIdentifyResult>>> JHybridVoidhashNativeClientSpec::identify(const jni::local_ref<jni::JString>& externalUserId, const jni::local_ref<JOptional<jni::JString>>& email, const jni::local_ref<JOptional<jni::JString>>& name) {
|
|
182
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeIdentifyResult>>>(jni::alias_ref<jni::JString> /* externalUserId */, jni::alias_ref<JOptional<jni::JString>> /* email */, jni::alias_ref<JOptional<jni::JString>> /* name */)>("identify");
|
|
183
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), externalUserId, email, name);
|
|
184
|
+
return __result;
|
|
185
|
+
}
|
|
186
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeIdentityChange>>> JHybridVoidhashNativeClientSpec::reset() {
|
|
187
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeIdentityChange>>>()>("reset");
|
|
188
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
189
|
+
return __result;
|
|
190
|
+
}
|
|
191
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeIdentityChange>>> JHybridVoidhashNativeClientSpec::signOut() {
|
|
192
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeIdentityChange>>>()>("signOut");
|
|
193
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
194
|
+
return __result;
|
|
195
|
+
}
|
|
196
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::group(const jni::local_ref<jni::JString>& groupType, const jni::local_ref<jni::JString>& groupKey, const jni::local_ref<JOptional<jni::JString>>& propertiesJson) {
|
|
197
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>(jni::alias_ref<jni::JString> /* groupType */, jni::alias_ref<jni::JString> /* groupKey */, jni::alias_ref<JOptional<jni::JString>> /* propertiesJson */)>("group");
|
|
198
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), groupType, groupKey, propertiesJson);
|
|
199
|
+
return __result;
|
|
200
|
+
}
|
|
201
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::setGroups(const jni::local_ref<jni::JString>& groupsJson) {
|
|
202
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>(jni::alias_ref<jni::JString> /* groupsJson */)>("setGroups");
|
|
203
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), groupsJson);
|
|
204
|
+
return __result;
|
|
205
|
+
}
|
|
206
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::resetGroups() {
|
|
207
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>()>("resetGroups");
|
|
208
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
209
|
+
return __result;
|
|
210
|
+
}
|
|
211
|
+
jni::local_ref<jni::JMap<jni::JString, jni::JString>> JHybridVoidhashNativeClientSpec::getGroups() {
|
|
212
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<jni::JMap<jni::JString, jni::JString>>()>("getGroups");
|
|
213
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
214
|
+
return __result;
|
|
215
|
+
}
|
|
216
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::setPersonAttributes(const jni::local_ref<jni::JString>& attributesJson) {
|
|
217
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>(jni::alias_ref<jni::JString> /* attributesJson */)>("setPersonAttributes");
|
|
218
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), attributesJson);
|
|
219
|
+
return __result;
|
|
220
|
+
}
|
|
221
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativePersonWriteResult>>> JHybridVoidhashNativeClientSpec::setPersonAttributesState(const jni::local_ref<jni::JString>& attributesJson) {
|
|
222
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativePersonWriteResult>>>(jni::alias_ref<jni::JString> /* attributesJson */)>("setPersonAttributesState");
|
|
223
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), attributesJson);
|
|
224
|
+
return __result;
|
|
225
|
+
}
|
|
226
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativePersonState>>> JHybridVoidhashNativeClientSpec::getPersonState(jboolean forceFetch) {
|
|
227
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativePersonState>>>(jboolean /* forceFetch */)>("getPersonState");
|
|
228
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), forceFetch);
|
|
229
|
+
return __result;
|
|
230
|
+
}
|
|
231
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::resetPersonCache() {
|
|
232
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>()>("resetPersonCache");
|
|
233
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
234
|
+
return __result;
|
|
235
|
+
}
|
|
236
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeFeatureFlagsResult>>> JHybridVoidhashNativeClientSpec::getFeatureFlags(const jni::local_ref<JOptional<jni::JArrayClass<jni::JString>>>& flagKeys) {
|
|
237
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeFeatureFlagsResult>>>(jni::alias_ref<JOptional<jni::JArrayClass<jni::JString>>> /* flagKeys */)>("getFeatureFlags");
|
|
238
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), flagKeys);
|
|
239
|
+
return __result;
|
|
240
|
+
}
|
|
241
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>> JHybridVoidhashNativeClientSpec::getPaywall(const jni::local_ref<jni::JString>& location) {
|
|
242
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>>(jni::alias_ref<jni::JString> /* location */)>("getPaywall");
|
|
243
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), location);
|
|
244
|
+
return __result;
|
|
245
|
+
}
|
|
246
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeProduct>>>> JHybridVoidhashNativeClientSpec::getProducts() {
|
|
247
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeProduct>>>>()>("getProducts");
|
|
248
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
249
|
+
return __result;
|
|
250
|
+
}
|
|
251
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativePurchaseResult>>> JHybridVoidhashNativeClientSpec::purchase(const jni::local_ref<jni::JString>& productSlug, const jni::local_ref<JNativePurchaseOptions>& options) {
|
|
252
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativePurchaseResult>>>(jni::alias_ref<jni::JString> /* productSlug */, jni::alias_ref<JNativePurchaseOptions> /* options */)>("purchase");
|
|
253
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), productSlug, options);
|
|
254
|
+
return __result;
|
|
255
|
+
}
|
|
256
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativePersonState>>> JHybridVoidhashNativeClientSpec::restorePurchases() {
|
|
257
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativePersonState>>>()>("restorePurchases");
|
|
258
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
259
|
+
return __result;
|
|
260
|
+
}
|
|
261
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::syncPurchases() {
|
|
262
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>()>("syncPurchases");
|
|
263
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
264
|
+
return __result;
|
|
265
|
+
}
|
|
266
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::reportTransaction(const jni::local_ref<JNativeReportedTransaction>& transaction, jboolean isRestore) {
|
|
267
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>(jni::alias_ref<JNativeReportedTransaction> /* transaction */, jboolean /* isRestore */)>("reportTransaction");
|
|
268
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), transaction, isRestore);
|
|
269
|
+
return __result;
|
|
270
|
+
}
|
|
271
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::showManageSubscriptions(const jni::local_ref<JOptional<jni::JString>>& productSlug) {
|
|
272
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>(jni::alias_ref<JOptional<jni::JString>> /* productSlug */)>("showManageSubscriptions");
|
|
273
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), productSlug);
|
|
274
|
+
return __result;
|
|
275
|
+
}
|
|
276
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::presentCodeRedemption(const jni::local_ref<JOptional<jni::JString>>& code) {
|
|
277
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>(jni::alias_ref<JOptional<jni::JString>> /* code */)>("presentCodeRedemption");
|
|
278
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), code);
|
|
279
|
+
return __result;
|
|
280
|
+
}
|
|
281
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JOptional<JNativeStorefront>>>> JHybridVoidhashNativeClientSpec::getStorefront() {
|
|
282
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JOptional<JNativeStorefront>>>>()>("getStorefront");
|
|
283
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
284
|
+
return __result;
|
|
285
|
+
}
|
|
286
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JBoolean>>> JHybridVoidhashNativeClientSpec::canMakePayments() {
|
|
287
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JBoolean>>>()>("canMakePayments");
|
|
288
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
289
|
+
return __result;
|
|
290
|
+
}
|
|
291
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeRefundRequestStatus>>> JHybridVoidhashNativeClientSpec::appStoreBeginRefundRequest(const jni::local_ref<jni::JString>& transactionId) {
|
|
292
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeRefundRequestStatus>>>(jni::alias_ref<jni::JString> /* transactionId */)>("appStoreBeginRefundRequest");
|
|
293
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), transactionId);
|
|
294
|
+
return __result;
|
|
295
|
+
}
|
|
296
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeAppStoreSubscriptionStatus>>>> JHybridVoidhashNativeClientSpec::appStoreSubscriptionStatus(const jni::local_ref<jni::JString>& groupId) {
|
|
297
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeAppStoreSubscriptionStatus>>>>(jni::alias_ref<jni::JString> /* groupId */)>("appStoreSubscriptionStatus");
|
|
298
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), groupId);
|
|
299
|
+
return __result;
|
|
300
|
+
}
|
|
301
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeTransaction>>>> JHybridVoidhashNativeClientSpec::appStoreCurrentEntitlements() {
|
|
302
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeTransaction>>>>()>("appStoreCurrentEntitlements");
|
|
303
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
304
|
+
return __result;
|
|
305
|
+
}
|
|
306
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>> JHybridVoidhashNativeClientSpec::appStoreAppTransaction() {
|
|
307
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>>()>("appStoreAppTransaction");
|
|
308
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
309
|
+
return __result;
|
|
310
|
+
}
|
|
311
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeInAppMessageResult>>> JHybridVoidhashNativeClientSpec::googlePlayShowInAppMessages() {
|
|
312
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeInAppMessageResult>>>()>("googlePlayShowInAppMessages");
|
|
313
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
314
|
+
return __result;
|
|
315
|
+
}
|
|
316
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeTransaction>>>> JHybridVoidhashNativeClientSpec::googlePlayQueryPurchases(jboolean includeSuspended) {
|
|
317
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JArrayClass<JNativeTransaction>>>>(jboolean /* includeSuspended */)>("googlePlayQueryPurchases");
|
|
318
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), includeSuspended);
|
|
319
|
+
return __result;
|
|
320
|
+
}
|
|
321
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JBoolean>>> JHybridVoidhashNativeClientSpec::googlePlayIsFeatureSupported(const jni::local_ref<jni::JString>& feature) {
|
|
322
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JBoolean>>>(jni::alias_ref<jni::JString> /* feature */)>("googlePlayIsFeatureSupported");
|
|
323
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), feature);
|
|
324
|
+
return __result;
|
|
325
|
+
}
|
|
326
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JBoolean>>> JHybridVoidhashNativeClientSpec::setAnalyticsConsent(const jni::local_ref<JNativeAnalyticsConsent>& consent) {
|
|
327
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JBoolean>>>(jni::alias_ref<JNativeAnalyticsConsent> /* consent */)>("setAnalyticsConsent");
|
|
328
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), consent);
|
|
329
|
+
return __result;
|
|
330
|
+
}
|
|
331
|
+
jni::local_ref<JNativeAnalyticsConsent> JHybridVoidhashNativeClientSpec::getAnalyticsConsent() {
|
|
332
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JNativeAnalyticsConsent>()>("getAnalyticsConsent");
|
|
333
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
334
|
+
return __result;
|
|
335
|
+
}
|
|
336
|
+
void JHybridVoidhashNativeClientSpec::setReadOnly(jboolean readOnly) {
|
|
337
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jboolean /* readOnly */)>("setReadOnly");
|
|
338
|
+
__method(_javaPart, CxxPart::getClass(), readOnly);
|
|
339
|
+
}
|
|
340
|
+
jboolean JHybridVoidhashNativeClientSpec::isReadOnly() {
|
|
341
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jboolean()>("isReadOnly");
|
|
342
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
343
|
+
return __result;
|
|
344
|
+
}
|
|
345
|
+
void JHybridVoidhashNativeClientSpec::capture(const jni::local_ref<jni::JString>& eventName, const jni::local_ref<jni::JString>& propertiesJson) {
|
|
346
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<jni::JString> /* eventName */, jni::alias_ref<jni::JString> /* propertiesJson */)>("capture");
|
|
347
|
+
__method(_javaPart, CxxPart::getClass(), eventName, propertiesJson);
|
|
348
|
+
}
|
|
349
|
+
void JHybridVoidhashNativeClientSpec::screen(const jni::local_ref<jni::JString>& name, const jni::local_ref<jni::JString>& propertiesJson) {
|
|
350
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<jni::JString> /* name */, jni::alias_ref<jni::JString> /* propertiesJson */)>("screen");
|
|
351
|
+
__method(_javaPart, CxxPart::getClass(), name, propertiesJson);
|
|
352
|
+
}
|
|
353
|
+
void JHybridVoidhashNativeClientSpec::captureAt(const jni::local_ref<jni::JString>& eventName, const jni::local_ref<jni::JString>& propertiesJson, jdouble capturedAt) {
|
|
354
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<jni::JString> /* eventName */, jni::alias_ref<jni::JString> /* propertiesJson */, jdouble /* capturedAt */)>("captureAt");
|
|
355
|
+
__method(_javaPart, CxxPart::getClass(), eventName, propertiesJson, capturedAt);
|
|
356
|
+
}
|
|
357
|
+
void JHybridVoidhashNativeClientSpec::screenAt(const jni::local_ref<jni::JString>& name, const jni::local_ref<jni::JString>& propertiesJson, jdouble capturedAt) {
|
|
358
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<jni::JString> /* name */, jni::alias_ref<jni::JString> /* propertiesJson */, jdouble /* capturedAt */)>("screenAt");
|
|
359
|
+
__method(_javaPart, CxxPart::getClass(), name, propertiesJson, capturedAt);
|
|
360
|
+
}
|
|
361
|
+
jni::local_ref<JTypedPromise<jni::local_ref<JNativeFlushStatus>>> JHybridVoidhashNativeClientSpec::flush() {
|
|
362
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<JNativeFlushStatus>>>()>("flush");
|
|
363
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
364
|
+
return __result;
|
|
365
|
+
}
|
|
366
|
+
jni::local_ref<jni::JString> JHybridVoidhashNativeClientSpec::getSessionId() {
|
|
367
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<jni::JString>()>("getSessionId");
|
|
368
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
369
|
+
return __result;
|
|
370
|
+
}
|
|
371
|
+
jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>> JHybridVoidhashNativeClientSpec::presentFlow(const jni::local_ref<jni::JString>& location, const jni::local_ref<JNativeFlowPresentation>& presentation, const jni::local_ref<JCallback<margelo::nitro::voidhash::JCallback_Promise_std__string__std__string_std__string::JavaPart>>& onAction) {
|
|
372
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<jni::local_ref<jni::JString>>>(jni::alias_ref<jni::JString> /* location */, jni::alias_ref<JNativeFlowPresentation> /* presentation */, jni::alias_ref<JCallback<margelo::nitro::voidhash::JCallback_Promise_std__string__std__string_std__string::JavaPart>> /* onAction */)>("presentFlow");
|
|
373
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), location, presentation, onAction);
|
|
374
|
+
return __result;
|
|
375
|
+
}
|
|
376
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::updateFlowInput(const jni::local_ref<jni::JString>& valuesJson) {
|
|
377
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>(jni::alias_ref<jni::JString> /* valuesJson */)>("updateFlowInput");
|
|
378
|
+
auto __result = __method(_javaPart, CxxPart::getClass(), valuesJson);
|
|
379
|
+
return __result;
|
|
380
|
+
}
|
|
381
|
+
jni::local_ref<JTypedPromise<void>> JHybridVoidhashNativeClientSpec::dismissFlow() {
|
|
382
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<JTypedPromise<void>>()>("dismissFlow");
|
|
383
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
384
|
+
return __result;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
} // namespace margelo::nitro::voidhash
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeAnalyticsConsent.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/JNativeAnalyticsConsent.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::JNativeAnalyticsConsent> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeAnalyticsConsent::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeAnalyticsConsent::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::valueFromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
24
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
25
|
+
switch (hashString(string)) {
|
|
26
|
+
case hashString("granted"): return 0;
|
|
27
|
+
case hashString("denied"): return 1;
|
|
28
|
+
case hashString("pending"): return 2;
|
|
29
|
+
default: [[unlikely]]
|
|
30
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeAnalyticsConsent - invalid value!");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent> value) {
|
|
35
|
+
switch (value->value()) {
|
|
36
|
+
case 0: return createJSIString<"granted">(runtime);
|
|
37
|
+
case 1: return createJSIString<"denied">(runtime);
|
|
38
|
+
case 2: return createJSIString<"pending">(runtime);
|
|
39
|
+
default: [[unlikely]]
|
|
40
|
+
throw std::invalid_argument("Cannot convert NativeAnalyticsConsent to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAnalyticsConsent>>::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("granted"): return true;
|
|
49
|
+
case hashString("denied"): return true;
|
|
50
|
+
case hashString("pending"): return true;
|
|
51
|
+
default: return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeAppStoreMessages.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/JNativeAppStoreMessages.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::JNativeAppStoreMessages> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeAppStoreMessages::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeAppStoreMessages> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeAppStoreMessages::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::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("deferWhileFlowPresented"): return 1;
|
|
28
|
+
default: [[unlikely]]
|
|
29
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeAppStoreMessages - invalid value!");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeAppStoreMessages> value) {
|
|
34
|
+
switch (value->value()) {
|
|
35
|
+
case 0: return createJSIString<"automatic">(runtime);
|
|
36
|
+
case 1: return createJSIString<"deferWhileFlowPresented">(runtime);
|
|
37
|
+
default: [[unlikely]]
|
|
38
|
+
throw std::invalid_argument("Cannot convert NativeAppStoreMessages to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreMessages>>::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("automatic"): return true;
|
|
47
|
+
case hashString("deferWhileFlowPresented"): return true;
|
|
48
|
+
default: return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeAppStorePurchaseOptions.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/JNativeAppStorePurchaseOptions.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.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::JNativeAppStorePurchaseOptions> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStorePurchaseOptions>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
19
|
+
auto object = value.asObject(runtime);
|
|
20
|
+
return margelo::nitro::voidhash::JNativeAppStorePurchaseOptions::create(JSIConverter<jni::local_ref<JOptional<jni::JBoolean>>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "simulatesAskToBuyInSandbox"))));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStorePurchaseOptions>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeAppStorePurchaseOptions> value) {
|
|
24
|
+
jsi::Object object(runtime);
|
|
25
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "simulatesAskToBuyInSandbox"), JSIConverter<jni::local_ref<JOptional<jni::JBoolean>>>::toJSI(runtime, value->getSimulatesAskToBuyInSandbox()));
|
|
26
|
+
return object;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStorePurchaseOptions>>::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<JOptional<jni::JBoolean>>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "simulatesAskToBuyInSandbox")));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JNativeAppStoreSubscriptionState.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/JNativeAppStoreSubscriptionState.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::JNativeAppStoreSubscriptionState> JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
16
|
+
return margelo::nitro::voidhash::JNativeAppStoreSubscriptionState::fromValue(valueFromJSI(runtime, value));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jni::alias_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState> JSIConverter<jni::alias_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
20
|
+
return margelo::nitro::voidhash::JNativeAppStoreSubscriptionState::borrowedFromValue(valueFromJSI(runtime, value));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
int32_t JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::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("subscribed"): return 1;
|
|
28
|
+
case hashString("expired"): return 2;
|
|
29
|
+
case hashString("inBillingRetryPeriod"): return 3;
|
|
30
|
+
case hashString("inGracePeriod"): return 4;
|
|
31
|
+
case hashString("revoked"): return 5;
|
|
32
|
+
default: [[unlikely]]
|
|
33
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum NativeAppStoreSubscriptionState - invalid value!");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
jsi::Value JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::toJSI(jsi::Runtime& runtime, jni::alias_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState> value) {
|
|
38
|
+
switch (value->value()) {
|
|
39
|
+
case 0: return createJSIString<"unknown">(runtime);
|
|
40
|
+
case 1: return createJSIString<"subscribed">(runtime);
|
|
41
|
+
case 2: return createJSIString<"expired">(runtime);
|
|
42
|
+
case 3: return createJSIString<"inBillingRetryPeriod">(runtime);
|
|
43
|
+
case 4: return createJSIString<"inGracePeriod">(runtime);
|
|
44
|
+
case 5: return createJSIString<"revoked">(runtime);
|
|
45
|
+
default: [[unlikely]]
|
|
46
|
+
throw std::invalid_argument("Cannot convert NativeAppStoreSubscriptionState to JS - invalid value: " + std::to_string(value->value()) + "!");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
bool JSIConverter<jni::local_ref<margelo::nitro::voidhash::JNativeAppStoreSubscriptionState>>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
51
|
+
if (!value.isString()) return false;
|
|
52
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
53
|
+
switch (hashString(string)) {
|
|
54
|
+
case hashString("unknown"): return true;
|
|
55
|
+
case hashString("subscribed"): return true;
|
|
56
|
+
case hashString("expired"): return true;
|
|
57
|
+
case hashString("inBillingRetryPeriod"): return true;
|
|
58
|
+
case hashString("inGracePeriod"): return true;
|
|
59
|
+
case hashString("revoked"): return true;
|
|
60
|
+
default: return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
} // namespace margelo::nitro
|