@velocitycareerlabs/vcl-react-native 1.0.1
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 +21 -0
- package/README.md +126 -0
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +134 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +4 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +320 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativePackage.kt +19 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/ArrayExtensions.kt +88 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/JSONExtensions.kt +66 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +89 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/RNCollectionExtensions.kt +62 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +514 -0
- package/ios/Extensions/StringExtensions.swift +21 -0
- package/ios/Utils/Converter.swift +507 -0
- package/ios/VclReactNative-Bridging-Header.h +2 -0
- package/ios/VclReactNative.m +70 -0
- package/ios/VclReactNative.swift +249 -0
- package/ios/VclReactNative.xcodeproj/project.pbxproj +303 -0
- package/lib/commonjs/api/Dictionary.js +2 -0
- package/lib/commonjs/api/Dictionary.js.map +1 -0
- package/lib/commonjs/api/VCLApi.js +6 -0
- package/lib/commonjs/api/VCLApi.js.map +1 -0
- package/lib/commonjs/api/VCLEnvironment.js +15 -0
- package/lib/commonjs/api/VCLEnvironment.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCountries.js +263 -0
- package/lib/commonjs/api/entities/VCLCountries.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCountry.js +6 -0
- package/lib/commonjs/api/entities/VCLCountry.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifest.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifest.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByService.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorRefresh.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialType.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialType.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchema.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchema.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchemas.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypes.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypes.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchema.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +2 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLDeepLink.js +2 -0
- package/lib/commonjs/api/entities/VCLDeepLink.js.map +1 -0
- package/lib/commonjs/api/entities/VCLError.js +2 -0
- package/lib/commonjs/api/entities/VCLError.js.map +1 -0
- package/lib/commonjs/api/entities/VCLExchange.js +2 -0
- package/lib/commonjs/api/entities/VCLExchange.js.map +1 -0
- package/lib/commonjs/api/entities/VCLExchangeDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLExchangeDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLFilter.js +6 -0
- package/lib/commonjs/api/entities/VCLFilter.js.map +1 -0
- package/lib/commonjs/api/entities/VCLFinalizeOffersDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLGenerateOffersDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLJWT.js +2 -0
- package/lib/commonjs/api/entities/VCLJWT.js.map +1 -0
- package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js +6 -0
- package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOffers.js +6 -0
- package/lib/commonjs/api/entities/VCLOffers.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOrganization.js +6 -0
- package/lib/commonjs/api/entities/VCLOrganization.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOrganizations.js +6 -0
- package/lib/commonjs/api/entities/VCLOrganizations.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOrganizationsSearchDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPage.js +2 -0
- package/lib/commonjs/api/entities/VCLPage.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPresentationRequest.js +6 -0
- package/lib/commonjs/api/entities/VCLPresentationRequest.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmission.js +6 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmission.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js +6 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPublicKey.js +2 -0
- package/lib/commonjs/api/entities/VCLPublicKey.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPushDelegate.js +2 -0
- package/lib/commonjs/api/entities/VCLPushDelegate.js.map +1 -0
- package/lib/commonjs/api/entities/VCLRegion.js +6 -0
- package/lib/commonjs/api/entities/VCLRegion.js.map +1 -0
- package/lib/commonjs/api/entities/VCLRegions.js +6 -0
- package/lib/commonjs/api/entities/VCLRegions.js.map +1 -0
- package/lib/commonjs/api/entities/VCLService.js +6 -0
- package/lib/commonjs/api/entities/VCLService.js.map +1 -0
- package/lib/commonjs/api/entities/VCLServiceCredentialAgentIssuer.js +6 -0
- package/lib/commonjs/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -0
- package/lib/commonjs/api/entities/VCLServiceType.js +20 -0
- package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -0
- package/lib/commonjs/api/entities/VCLSubmissionResult.js +6 -0
- package/lib/commonjs/api/entities/VCLSubmissionResult.js.map +1 -0
- package/lib/commonjs/api/entities/VCLToken.js +2 -0
- package/lib/commonjs/api/entities/VCLToken.js.map +1 -0
- package/lib/commonjs/api/entities/VCLVerifiableCredential.js +2 -0
- package/lib/commonjs/api/entities/VCLVerifiableCredential.js.map +1 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfile.js +6 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfile.js.map +1 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js +2 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
- package/lib/commonjs/index.js +39 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/api/Dictionary.js +2 -0
- package/lib/module/api/Dictionary.js.map +1 -0
- package/lib/module/api/VCLApi.js +2 -0
- package/lib/module/api/VCLApi.js.map +1 -0
- package/lib/module/api/VCLEnvironment.js +8 -0
- package/lib/module/api/VCLEnvironment.js.map +1 -0
- package/lib/module/api/entities/VCLCountries.js +256 -0
- package/lib/module/api/entities/VCLCountries.js.map +1 -0
- package/lib/module/api/entities/VCLCountry.js +2 -0
- package/lib/module/api/entities/VCLCountry.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifest.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifest.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptor.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByService.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorRefresh.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialType.js +2 -0
- package/lib/module/api/entities/VCLCredentialType.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypeSchema.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypeSchema.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypeSchemas.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypes.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypes.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchema.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLDeepLink.js +2 -0
- package/lib/module/api/entities/VCLDeepLink.js.map +1 -0
- package/lib/module/api/entities/VCLError.js +2 -0
- package/lib/module/api/entities/VCLError.js.map +1 -0
- package/lib/module/api/entities/VCLExchange.js +2 -0
- package/lib/module/api/entities/VCLExchange.js.map +1 -0
- package/lib/module/api/entities/VCLExchangeDescriptor.js +2 -0
- package/lib/module/api/entities/VCLExchangeDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLFilter.js +2 -0
- package/lib/module/api/entities/VCLFilter.js.map +1 -0
- package/lib/module/api/entities/VCLFinalizeOffersDescriptor.js +2 -0
- package/lib/module/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLGenerateOffersDescriptor.js +2 -0
- package/lib/module/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLJWT.js +2 -0
- package/lib/module/api/entities/VCLJWT.js.map +1 -0
- package/lib/module/api/entities/VCLJwtVerifiableCredentials.js +2 -0
- package/lib/module/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
- package/lib/module/api/entities/VCLOffers.js +2 -0
- package/lib/module/api/entities/VCLOffers.js.map +1 -0
- package/lib/module/api/entities/VCLOrganization.js +2 -0
- package/lib/module/api/entities/VCLOrganization.js.map +1 -0
- package/lib/module/api/entities/VCLOrganizations.js +2 -0
- package/lib/module/api/entities/VCLOrganizations.js.map +1 -0
- package/lib/module/api/entities/VCLOrganizationsSearchDescriptor.js +2 -0
- package/lib/module/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLPage.js +2 -0
- package/lib/module/api/entities/VCLPage.js.map +1 -0
- package/lib/module/api/entities/VCLPresentationRequest.js +2 -0
- package/lib/module/api/entities/VCLPresentationRequest.js.map +1 -0
- package/lib/module/api/entities/VCLPresentationSubmission.js +2 -0
- package/lib/module/api/entities/VCLPresentationSubmission.js.map +1 -0
- package/lib/module/api/entities/VCLPresentationSubmissionResult.js +2 -0
- package/lib/module/api/entities/VCLPresentationSubmissionResult.js.map +1 -0
- package/lib/module/api/entities/VCLPublicKey.js +2 -0
- package/lib/module/api/entities/VCLPublicKey.js.map +1 -0
- package/lib/module/api/entities/VCLPushDelegate.js +2 -0
- package/lib/module/api/entities/VCLPushDelegate.js.map +1 -0
- package/lib/module/api/entities/VCLRegion.js +2 -0
- package/lib/module/api/entities/VCLRegion.js.map +1 -0
- package/lib/module/api/entities/VCLRegions.js +2 -0
- package/lib/module/api/entities/VCLRegions.js.map +1 -0
- package/lib/module/api/entities/VCLService.js +2 -0
- package/lib/module/api/entities/VCLService.js.map +1 -0
- package/lib/module/api/entities/VCLServiceCredentialAgentIssuer.js +2 -0
- package/lib/module/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -0
- package/lib/module/api/entities/VCLServiceType.js +13 -0
- package/lib/module/api/entities/VCLServiceType.js.map +1 -0
- package/lib/module/api/entities/VCLSubmissionResult.js +2 -0
- package/lib/module/api/entities/VCLSubmissionResult.js.map +1 -0
- package/lib/module/api/entities/VCLToken.js +2 -0
- package/lib/module/api/entities/VCLToken.js.map +1 -0
- package/lib/module/api/entities/VCLVerifiableCredential.js +2 -0
- package/lib/module/api/entities/VCLVerifiableCredential.js.map +1 -0
- package/lib/module/api/entities/VCLVerifiedProfile.js +2 -0
- package/lib/module/api/entities/VCLVerifiedProfile.js.map +1 -0
- package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js +2 -0
- package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/api/Dictionary.d.ts +3 -0
- package/lib/typescript/api/VCLApi.d.ts +44 -0
- package/lib/typescript/api/VCLEnvironment.d.ts +8 -0
- package/lib/typescript/api/entities/VCLCountries.d.ts +257 -0
- package/lib/typescript/api/entities/VCLCountry.d.ts +8 -0
- package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +8 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByService.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialType.d.ts +10 -0
- package/lib/typescript/api/entities/VCLCredentialTypeSchema.d.ts +4 -0
- package/lib/typescript/api/entities/VCLCredentialTypeSchemas.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialTypes.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchema.d.ts +4 -0
- package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +4 -0
- package/lib/typescript/api/entities/VCLDeepLink.d.ts +3 -0
- package/lib/typescript/api/entities/VCLError.d.ts +4 -0
- package/lib/typescript/api/entities/VCLExchange.d.ts +6 -0
- package/lib/typescript/api/entities/VCLExchangeDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLFilter.d.ts +6 -0
- package/lib/typescript/api/entities/VCLFinalizeOffersDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLGenerateOffersDescriptor.d.ts +8 -0
- package/lib/typescript/api/entities/VCLJWT.d.ts +3 -0
- package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +4 -0
- package/lib/typescript/api/entities/VCLOffers.d.ts +7 -0
- package/lib/typescript/api/entities/VCLOrganization.d.ts +6 -0
- package/lib/typescript/api/entities/VCLOrganizations.d.ts +4 -0
- package/lib/typescript/api/entities/VCLOrganizationsSearchDescriptor.d.ts +8 -0
- package/lib/typescript/api/entities/VCLPage.d.ts +4 -0
- package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +10 -0
- package/lib/typescript/api/entities/VCLPresentationSubmission.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPresentationSubmissionResult.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPublicKey.d.ts +3 -0
- package/lib/typescript/api/entities/VCLPushDelegate.d.ts +4 -0
- package/lib/typescript/api/entities/VCLRegion.d.ts +6 -0
- package/lib/typescript/api/entities/VCLRegions.d.ts +5 -0
- package/lib/typescript/api/entities/VCLService.d.ts +4 -0
- package/lib/typescript/api/entities/VCLServiceCredentialAgentIssuer.d.ts +3 -0
- package/lib/typescript/api/entities/VCLServiceType.d.ts +10 -0
- package/lib/typescript/api/entities/VCLSubmissionResult.d.ts +6 -0
- package/lib/typescript/api/entities/VCLToken.d.ts +3 -0
- package/lib/typescript/api/entities/VCLVerifiableCredential.d.ts +4 -0
- package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +8 -0
- package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +3 -0
- package/lib/typescript/index.d.ts +49 -0
- package/package.json +154 -0
- package/src/api/Dictionary.tsx +3 -0
- package/src/api/VCLApi.tsx +80 -0
- package/src/api/VCLEnvironment.tsx +9 -0
- package/src/api/entities/VCLCountries.tsx +259 -0
- package/src/api/entities/VCLCountry.tsx +9 -0
- package/src/api/entities/VCLCredentialManifest.tsx +9 -0
- package/src/api/entities/VCLCredentialManifestDescriptor.tsx +6 -0
- package/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptorByService.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptorRefresh.tsx +8 -0
- package/src/api/entities/VCLCredentialType.tsx +11 -0
- package/src/api/entities/VCLCredentialTypeSchema.tsx +5 -0
- package/src/api/entities/VCLCredentialTypeSchemas.tsx +6 -0
- package/src/api/entities/VCLCredentialTypes.tsx +6 -0
- package/src/api/entities/VCLCredentialTypesUIFormSchema.tsx +5 -0
- package/src/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.tsx +4 -0
- package/src/api/entities/VCLDeepLink.tsx +3 -0
- package/src/api/entities/VCLError.tsx +4 -0
- package/src/api/entities/VCLExchange.tsx +6 -0
- package/src/api/entities/VCLExchangeDescriptor.tsx +7 -0
- package/src/api/entities/VCLFilter.tsx +7 -0
- package/src/api/entities/VCLFinalizeOffersDescriptor.tsx +7 -0
- package/src/api/entities/VCLGenerateOffersDescriptor.tsx +9 -0
- package/src/api/entities/VCLJWT.tsx +3 -0
- package/src/api/entities/VCLJwtVerifiableCredentials.tsx +5 -0
- package/src/api/entities/VCLOffers.tsx +8 -0
- package/src/api/entities/VCLOrganization.tsx +7 -0
- package/src/api/entities/VCLOrganizations.tsx +5 -0
- package/src/api/entities/VCLOrganizationsSearchDescriptor.tsx +9 -0
- package/src/api/entities/VCLPage.tsx +4 -0
- package/src/api/entities/VCLPresentationRequest.tsx +11 -0
- package/src/api/entities/VCLPresentationSubmission.tsx +7 -0
- package/src/api/entities/VCLPresentationSubmissionResult.tsx +7 -0
- package/src/api/entities/VCLPublicKey.tsx +3 -0
- package/src/api/entities/VCLPushDelegate.tsx +4 -0
- package/src/api/entities/VCLRegion.tsx +7 -0
- package/src/api/entities/VCLRegions.tsx +6 -0
- package/src/api/entities/VCLService.tsx +5 -0
- package/src/api/entities/VCLServiceCredentialAgentIssuer.tsx +3 -0
- package/src/api/entities/VCLServiceType.tsx +10 -0
- package/src/api/entities/VCLSubmissionResult.tsx +7 -0
- package/src/api/entities/VCLToken.tsx +3 -0
- package/src/api/entities/VCLVerifiableCredential.tsx +4 -0
- package/src/api/entities/VCLVerifiedProfile.tsx +9 -0
- package/src/api/entities/VCLVerifiedProfileDescriptor.tsx +3 -0
- package/src/index.tsx +98 -0
- package/vcl-react-native.podspec +22 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import VCL
|
|
2
|
+
|
|
3
|
+
@objc(VclReactNative)
|
|
4
|
+
class VclReactNative: NSObject {
|
|
5
|
+
|
|
6
|
+
private let vcl = VCLProvider.vclInstance()
|
|
7
|
+
|
|
8
|
+
@objc(initialize:withResolver:withRejecter:)
|
|
9
|
+
func initialize(environmentDictionary: [String: String], resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
|
|
10
|
+
vcl.initialize(
|
|
11
|
+
environment: dictionaryToEnvironment(environmentDictionary),
|
|
12
|
+
successHandler: {
|
|
13
|
+
resolve("VCL initialization succeed!")
|
|
14
|
+
},
|
|
15
|
+
errorHandler: {
|
|
16
|
+
reject(nil, $0.description, $0)
|
|
17
|
+
})
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@objc(getCountries:withRejecter:)
|
|
21
|
+
func getCountries(
|
|
22
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
23
|
+
) {
|
|
24
|
+
if let countries = vcl.countries {
|
|
25
|
+
resolve(countriesToDictionary(countries))
|
|
26
|
+
} else {
|
|
27
|
+
let description = "Countries not found"
|
|
28
|
+
reject(nil, description, VCLError(description: description))
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@objc(getCredentialTypeSchemas:withRejecter:)
|
|
33
|
+
func getCredentialTypeSchemas(
|
|
34
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
35
|
+
) {
|
|
36
|
+
if let credentialTypeSchemas = vcl.credentialTypeSchemas {
|
|
37
|
+
resolve(credentialTypeSchemasToDictionary(credentialTypeSchemas))
|
|
38
|
+
} else {
|
|
39
|
+
let description = "Credential Type Schemas not found"
|
|
40
|
+
reject(nil, description, VCLError(description: description))
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@objc(getCredentialTypes:withRejecter:)
|
|
45
|
+
func getCredentialTypes(
|
|
46
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
47
|
+
) {
|
|
48
|
+
if let credentialTypes = vcl.credentialTypes {
|
|
49
|
+
resolve(credentialTypesToDictionary(credentialTypes))
|
|
50
|
+
} else {
|
|
51
|
+
let description = "Credential Types not found"
|
|
52
|
+
reject(nil, description, VCLError(description: description))
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@objc(getPresentationRequest:withResolver:withRejecter:)
|
|
57
|
+
func getPresentationRequest(
|
|
58
|
+
deepLinkDictionary: [String: String],
|
|
59
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
60
|
+
) {
|
|
61
|
+
vcl.getPresentationRequest(
|
|
62
|
+
deepLink: dictionaryToDeepLink(deepLinkDictionary),
|
|
63
|
+
successHandler: {
|
|
64
|
+
resolve(presentationRequestToDictionary($0))
|
|
65
|
+
},
|
|
66
|
+
errorHandler: {
|
|
67
|
+
reject(nil, $0.description, $0)
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@objc(submitPresentation:withResolver:withRejecter:)
|
|
73
|
+
func submitPresentation(
|
|
74
|
+
presentationSubmissionDictionary: [String: Any],
|
|
75
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
76
|
+
) {
|
|
77
|
+
vcl.submitPresentation(
|
|
78
|
+
presentationSubmission: dictionaryToPresentationSubmission(presentationSubmissionDictionary),
|
|
79
|
+
successHandler: {
|
|
80
|
+
resolve(presentationSubmissionResultToDictionary($0))
|
|
81
|
+
},
|
|
82
|
+
errorHandler: {
|
|
83
|
+
reject(nil, $0.description, $0)
|
|
84
|
+
})
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@objc(getExchangeProgress:withResolver:withRejecter:)
|
|
88
|
+
func getExchangeProgress(
|
|
89
|
+
exchangeDescriptorDictionary: [String: Any],
|
|
90
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
91
|
+
) {
|
|
92
|
+
vcl.getExchangeProgress(
|
|
93
|
+
exchangeDescriptor: dictionaryToExchangeDescriptor(exchangeDescriptorDictionary),
|
|
94
|
+
successHandler: {
|
|
95
|
+
resolve(exchangeToDictionary($0))
|
|
96
|
+
},
|
|
97
|
+
errorHandler: {
|
|
98
|
+
reject(nil, $0.description, $0)
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@objc(searchForOrganizations:withResolver:withRejecter:)
|
|
103
|
+
func searchForOrganizations(
|
|
104
|
+
organizationsSearchDescriptorDictionary: [String: Any],
|
|
105
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
106
|
+
) {
|
|
107
|
+
vcl.searchForOrganizations(
|
|
108
|
+
organizationsSearchDescriptor: dictionayToOrganizationsSearchDescriptor(organizationsSearchDescriptorDictionary),
|
|
109
|
+
successHandler: {
|
|
110
|
+
resolve(organizationsToDictionary($0))
|
|
111
|
+
},
|
|
112
|
+
errorHandler: {
|
|
113
|
+
reject(nil, $0.description, $0)
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@objc(getCredentialManifest:withResolver:withRejecter:)
|
|
118
|
+
func getCredentialManifest(
|
|
119
|
+
credentialManifestDescriptorDictionary: [String: Any],
|
|
120
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
121
|
+
) {
|
|
122
|
+
if let credentialManifestDescriptor = dictionaryToCredentialManifestDescriptor(credentialManifestDescriptorDictionary) {
|
|
123
|
+
vcl.getCredentialManifest(
|
|
124
|
+
credentialManifestDescriptor: credentialManifestDescriptor,
|
|
125
|
+
successHandler: {
|
|
126
|
+
resolve(credentialManifestToDictionary($0))
|
|
127
|
+
},
|
|
128
|
+
errorHandler: {
|
|
129
|
+
reject(nil, $0.description, $0)
|
|
130
|
+
})
|
|
131
|
+
} else {
|
|
132
|
+
reject(nil, "Unexpected Credential Credential Manifest Descriptor: \(credentialManifestDescriptorDictionary)", nil)
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@objc(generateOffers:withResolver:withRejecter:)
|
|
137
|
+
func generateOffers(
|
|
138
|
+
generateOffersDescriptorDictionary: [String: Any],
|
|
139
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
140
|
+
) {
|
|
141
|
+
vcl.generateOffers(
|
|
142
|
+
generateOffersDescriptor: dictionaryToGenerateOffersDescriptor(generateOffersDescriptorDictionary),
|
|
143
|
+
successHandler: {
|
|
144
|
+
resolve(generatedOffersToDictionary($0))
|
|
145
|
+
},
|
|
146
|
+
errorHandler: {
|
|
147
|
+
reject(nil, $0.description, $0)
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@objc(checkForOffers:withTokenDictionary:withResolver:withRejecter:)
|
|
152
|
+
func checkForOffers(
|
|
153
|
+
generateOffersDescriptorDictionary: [String: Any],
|
|
154
|
+
tokenDictionary: [String: Any],
|
|
155
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
156
|
+
) {
|
|
157
|
+
vcl.checkForOffers(
|
|
158
|
+
generateOffersDescriptor: dictionaryToGenerateOffersDescriptor(generateOffersDescriptorDictionary),
|
|
159
|
+
token: dictionaryToToken(tokenDictionary),
|
|
160
|
+
successHandler: {
|
|
161
|
+
resolve(generatedOffersToDictionary($0))
|
|
162
|
+
},
|
|
163
|
+
errorHandler: {
|
|
164
|
+
reject(nil, $0.description, $0)
|
|
165
|
+
})
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@objc(finalizeOffers:withTokenDictionary:withResolver:withRejecter:)
|
|
169
|
+
func finalizeOffers(
|
|
170
|
+
finalizeOffersDescriptorDictionary: [String: Any],
|
|
171
|
+
tokenDictionary: [String: Any],
|
|
172
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
173
|
+
) {
|
|
174
|
+
vcl.finalizeOffers(
|
|
175
|
+
finalizeOffersDescriptor: dictionaryToFinalizedOffersDescriptor(finalizeOffersDescriptorDictionary),
|
|
176
|
+
token: dictionaryToToken(tokenDictionary),
|
|
177
|
+
successHandler: {
|
|
178
|
+
resolve(jwtVerifiableCredentialsToDictionary($0))
|
|
179
|
+
},
|
|
180
|
+
errorHandler: {
|
|
181
|
+
reject(nil, $0.description, $0)
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@objc(getCredentialTypesUIFormSchema:withResolver:withRejecter:)
|
|
186
|
+
func getCredentialTypesUIFormSchema(
|
|
187
|
+
credentialTypesUIFormSchemaDescriptorDictionary: [String: Any],
|
|
188
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
189
|
+
) {
|
|
190
|
+
vcl.getCredentialTypesUIFormSchema(
|
|
191
|
+
credentialTypesUIFormSchemaDescriptor: readableMapToCredentialTypesUIFormSchemaDescriptor(credentialTypesUIFormSchemaDescriptorDictionary),
|
|
192
|
+
successHandler: {
|
|
193
|
+
resolve(credentialTypesFormSchemaToDictionary($0))
|
|
194
|
+
},
|
|
195
|
+
errorHandler: {
|
|
196
|
+
reject(nil, $0.description, $0)
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@objc(getVerifiedProfile:withResolver:withRejecter:)
|
|
202
|
+
func getVerifiedProfile(
|
|
203
|
+
verifiedProfileDescriptorDictionary: [String: Any],
|
|
204
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
205
|
+
) {
|
|
206
|
+
vcl.getVerifiedProfile(
|
|
207
|
+
verifiedProfileDescriptor: dictionaryToVerifiedProfileDescriptor(verifiedProfileDescriptorDictionary),
|
|
208
|
+
successHandler: {
|
|
209
|
+
resolve(verifiedProfileToDictionary($0))
|
|
210
|
+
},
|
|
211
|
+
errorHandler: {
|
|
212
|
+
reject(nil, $0.description, $0)
|
|
213
|
+
})
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@objc(verifyJwt:withPublicKeyDictionary:withResolver:withRejecter:)
|
|
217
|
+
func verifyJwt(
|
|
218
|
+
jwtDictionary: [String: Any],
|
|
219
|
+
publicKeyDictionary: [String: Any],
|
|
220
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
221
|
+
) {
|
|
222
|
+
vcl.verifyJwt(
|
|
223
|
+
jwt: dictionaryToJwt(jwtDictionary),
|
|
224
|
+
publicKey: dictionaryToPublicKey(publicKeyDictionary),
|
|
225
|
+
successHandler: {
|
|
226
|
+
resolve($0)
|
|
227
|
+
},
|
|
228
|
+
errorHandler: {
|
|
229
|
+
reject(nil, $0.description, $0)
|
|
230
|
+
})
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@objc(generateSignedJwt:withIss:withResolver:withRejecter:)
|
|
234
|
+
func generateSignedJwt(
|
|
235
|
+
jwtDictionary: [String: Any],
|
|
236
|
+
iss: String,
|
|
237
|
+
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
238
|
+
) {
|
|
239
|
+
vcl.generateSignedJwt(
|
|
240
|
+
payload: jwtDictionary,
|
|
241
|
+
iss: iss,
|
|
242
|
+
successHandler: {
|
|
243
|
+
resolve(jwtToReadableMap($0))
|
|
244
|
+
},
|
|
245
|
+
errorHandler: {
|
|
246
|
+
reject(nil, $0.description, $0)
|
|
247
|
+
})
|
|
248
|
+
}
|
|
249
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 46;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
289FEEA427DE121D00E58425 /* Converter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289FEEA127DE121D00E58425 /* Converter.swift */; };
|
|
11
|
+
289FEEA527DE121D00E58425 /* StringExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289FEEA327DE121D00E58425 /* StringExtensions.swift */; };
|
|
12
|
+
F4FF95D7245B92E800C19C63 /* VclReactNative.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* VclReactNative.swift */; };
|
|
13
|
+
/* End PBXBuildFile section */
|
|
14
|
+
|
|
15
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
16
|
+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
17
|
+
isa = PBXCopyFilesBuildPhase;
|
|
18
|
+
buildActionMask = 2147483647;
|
|
19
|
+
dstPath = "include/$(PRODUCT_NAME)";
|
|
20
|
+
dstSubfolderSpec = 16;
|
|
21
|
+
files = (
|
|
22
|
+
);
|
|
23
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
24
|
+
};
|
|
25
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
26
|
+
|
|
27
|
+
/* Begin PBXFileReference section */
|
|
28
|
+
134814201AA4EA6300B7C361 /* libVclReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libVclReactNative.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
|
+
289FEEA127DE121D00E58425 /* Converter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Converter.swift; sourceTree = "<group>"; };
|
|
30
|
+
289FEEA327DE121D00E58425 /* StringExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StringExtensions.swift; sourceTree = "<group>"; };
|
|
31
|
+
B3E7B5891CC2AC0600A0062D /* VclReactNative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VclReactNative.m; sourceTree = "<group>"; };
|
|
32
|
+
F4FF95D5245B92E700C19C63 /* VclReactNative-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "VclReactNative-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
33
|
+
F4FF95D6245B92E800C19C63 /* VclReactNative.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VclReactNative.swift; sourceTree = "<group>"; };
|
|
34
|
+
/* End PBXFileReference section */
|
|
35
|
+
|
|
36
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
37
|
+
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
38
|
+
isa = PBXFrameworksBuildPhase;
|
|
39
|
+
buildActionMask = 2147483647;
|
|
40
|
+
files = (
|
|
41
|
+
);
|
|
42
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
43
|
+
};
|
|
44
|
+
/* End PBXFrameworksBuildPhase section */
|
|
45
|
+
|
|
46
|
+
/* Begin PBXGroup section */
|
|
47
|
+
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
48
|
+
isa = PBXGroup;
|
|
49
|
+
children = (
|
|
50
|
+
134814201AA4EA6300B7C361 /* libVclReactNative.a */,
|
|
51
|
+
);
|
|
52
|
+
name = Products;
|
|
53
|
+
sourceTree = "<group>";
|
|
54
|
+
};
|
|
55
|
+
289FEEA027DE121D00E58425 /* Utils */ = {
|
|
56
|
+
isa = PBXGroup;
|
|
57
|
+
children = (
|
|
58
|
+
289FEEA127DE121D00E58425 /* Converter.swift */,
|
|
59
|
+
);
|
|
60
|
+
path = Utils;
|
|
61
|
+
sourceTree = "<group>";
|
|
62
|
+
};
|
|
63
|
+
289FEEA227DE121D00E58425 /* Extensions */ = {
|
|
64
|
+
isa = PBXGroup;
|
|
65
|
+
children = (
|
|
66
|
+
289FEEA327DE121D00E58425 /* StringExtensions.swift */,
|
|
67
|
+
);
|
|
68
|
+
path = Extensions;
|
|
69
|
+
sourceTree = "<group>";
|
|
70
|
+
};
|
|
71
|
+
58B511D21A9E6C8500147676 = {
|
|
72
|
+
isa = PBXGroup;
|
|
73
|
+
children = (
|
|
74
|
+
289FEEA227DE121D00E58425 /* Extensions */,
|
|
75
|
+
289FEEA027DE121D00E58425 /* Utils */,
|
|
76
|
+
F4FF95D6245B92E800C19C63 /* VclReactNative.swift */,
|
|
77
|
+
B3E7B5891CC2AC0600A0062D /* VclReactNative.m */,
|
|
78
|
+
F4FF95D5245B92E700C19C63 /* VclReactNative-Bridging-Header.h */,
|
|
79
|
+
134814211AA4EA7D00B7C361 /* Products */,
|
|
80
|
+
);
|
|
81
|
+
sourceTree = "<group>";
|
|
82
|
+
};
|
|
83
|
+
/* End PBXGroup section */
|
|
84
|
+
|
|
85
|
+
/* Begin PBXNativeTarget section */
|
|
86
|
+
58B511DA1A9E6C8500147676 /* VclReactNative */ = {
|
|
87
|
+
isa = PBXNativeTarget;
|
|
88
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "VclReactNative" */;
|
|
89
|
+
buildPhases = (
|
|
90
|
+
58B511D71A9E6C8500147676 /* Sources */,
|
|
91
|
+
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
92
|
+
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
93
|
+
);
|
|
94
|
+
buildRules = (
|
|
95
|
+
);
|
|
96
|
+
dependencies = (
|
|
97
|
+
);
|
|
98
|
+
name = VclReactNative;
|
|
99
|
+
productName = RCTDataManager;
|
|
100
|
+
productReference = 134814201AA4EA6300B7C361 /* libVclReactNative.a */;
|
|
101
|
+
productType = "com.apple.product-type.library.static";
|
|
102
|
+
};
|
|
103
|
+
/* End PBXNativeTarget section */
|
|
104
|
+
|
|
105
|
+
/* Begin PBXProject section */
|
|
106
|
+
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
107
|
+
isa = PBXProject;
|
|
108
|
+
attributes = {
|
|
109
|
+
LastUpgradeCheck = 0920;
|
|
110
|
+
ORGANIZATIONNAME = Facebook;
|
|
111
|
+
TargetAttributes = {
|
|
112
|
+
58B511DA1A9E6C8500147676 = {
|
|
113
|
+
CreatedOnToolsVersion = 6.1.1;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "VclReactNative" */;
|
|
118
|
+
compatibilityVersion = "Xcode 3.2";
|
|
119
|
+
developmentRegion = English;
|
|
120
|
+
hasScannedForEncodings = 0;
|
|
121
|
+
knownRegions = (
|
|
122
|
+
English,
|
|
123
|
+
en,
|
|
124
|
+
);
|
|
125
|
+
mainGroup = 58B511D21A9E6C8500147676;
|
|
126
|
+
productRefGroup = 58B511D21A9E6C8500147676;
|
|
127
|
+
projectDirPath = "";
|
|
128
|
+
projectRoot = "";
|
|
129
|
+
targets = (
|
|
130
|
+
58B511DA1A9E6C8500147676 /* VclReactNative */,
|
|
131
|
+
);
|
|
132
|
+
};
|
|
133
|
+
/* End PBXProject section */
|
|
134
|
+
|
|
135
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
136
|
+
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
137
|
+
isa = PBXSourcesBuildPhase;
|
|
138
|
+
buildActionMask = 2147483647;
|
|
139
|
+
files = (
|
|
140
|
+
289FEEA527DE121D00E58425 /* StringExtensions.swift in Sources */,
|
|
141
|
+
289FEEA427DE121D00E58425 /* Converter.swift in Sources */,
|
|
142
|
+
F4FF95D7245B92E800C19C63 /* VclReactNative.swift in Sources */,
|
|
143
|
+
);
|
|
144
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
145
|
+
};
|
|
146
|
+
/* End PBXSourcesBuildPhase section */
|
|
147
|
+
|
|
148
|
+
/* Begin XCBuildConfiguration section */
|
|
149
|
+
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
150
|
+
isa = XCBuildConfiguration;
|
|
151
|
+
buildSettings = {
|
|
152
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
153
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
154
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
155
|
+
CLANG_ENABLE_MODULES = YES;
|
|
156
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
157
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
158
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
159
|
+
CLANG_WARN_COMMA = YES;
|
|
160
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
161
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
162
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
163
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
164
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
165
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
166
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
167
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
168
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
169
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
170
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
171
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
172
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
173
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
174
|
+
COPY_PHASE_STRIP = NO;
|
|
175
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
176
|
+
ENABLE_TESTABILITY = YES;
|
|
177
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
178
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
179
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
180
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
181
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
182
|
+
"DEBUG=1",
|
|
183
|
+
"$(inherited)",
|
|
184
|
+
);
|
|
185
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
186
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
187
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
188
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
189
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
190
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
191
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
192
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
193
|
+
MTL_ENABLE_DEBUG_INFO = YES;
|
|
194
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
195
|
+
SDKROOT = iphoneos;
|
|
196
|
+
};
|
|
197
|
+
name = Debug;
|
|
198
|
+
};
|
|
199
|
+
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
200
|
+
isa = XCBuildConfiguration;
|
|
201
|
+
buildSettings = {
|
|
202
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
203
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
204
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
205
|
+
CLANG_ENABLE_MODULES = YES;
|
|
206
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
207
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
208
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
209
|
+
CLANG_WARN_COMMA = YES;
|
|
210
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
211
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
212
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
213
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
214
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
215
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
216
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
217
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
218
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
219
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
220
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
221
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
222
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
223
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
224
|
+
COPY_PHASE_STRIP = YES;
|
|
225
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
226
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
227
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
228
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
229
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
230
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
231
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
232
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
233
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
234
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
235
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
236
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
237
|
+
SDKROOT = iphoneos;
|
|
238
|
+
VALIDATE_PRODUCT = YES;
|
|
239
|
+
};
|
|
240
|
+
name = Release;
|
|
241
|
+
};
|
|
242
|
+
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
243
|
+
isa = XCBuildConfiguration;
|
|
244
|
+
buildSettings = {
|
|
245
|
+
HEADER_SEARCH_PATHS = (
|
|
246
|
+
"$(inherited)",
|
|
247
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
248
|
+
"$(SRCROOT)/../../../React/**",
|
|
249
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
250
|
+
);
|
|
251
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
252
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
253
|
+
PRODUCT_NAME = VclReactNative;
|
|
254
|
+
SKIP_INSTALL = YES;
|
|
255
|
+
SWIFT_OBJC_BRIDGING_HEADER = "VclReactNative-Bridging-Header.h";
|
|
256
|
+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
257
|
+
SWIFT_VERSION = 5.0;
|
|
258
|
+
};
|
|
259
|
+
name = Debug;
|
|
260
|
+
};
|
|
261
|
+
58B511F11A9E6C8500147676 /* Release */ = {
|
|
262
|
+
isa = XCBuildConfiguration;
|
|
263
|
+
buildSettings = {
|
|
264
|
+
HEADER_SEARCH_PATHS = (
|
|
265
|
+
"$(inherited)",
|
|
266
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
267
|
+
"$(SRCROOT)/../../../React/**",
|
|
268
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
269
|
+
);
|
|
270
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
271
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
272
|
+
PRODUCT_NAME = VclReactNative;
|
|
273
|
+
SKIP_INSTALL = YES;
|
|
274
|
+
SWIFT_OBJC_BRIDGING_HEADER = "VclReactNative-Bridging-Header.h";
|
|
275
|
+
SWIFT_VERSION = 5.0;
|
|
276
|
+
};
|
|
277
|
+
name = Release;
|
|
278
|
+
};
|
|
279
|
+
/* End XCBuildConfiguration section */
|
|
280
|
+
|
|
281
|
+
/* Begin XCConfigurationList section */
|
|
282
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "VclReactNative" */ = {
|
|
283
|
+
isa = XCConfigurationList;
|
|
284
|
+
buildConfigurations = (
|
|
285
|
+
58B511ED1A9E6C8500147676 /* Debug */,
|
|
286
|
+
58B511EE1A9E6C8500147676 /* Release */,
|
|
287
|
+
);
|
|
288
|
+
defaultConfigurationIsVisible = 0;
|
|
289
|
+
defaultConfigurationName = Release;
|
|
290
|
+
};
|
|
291
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "VclReactNative" */ = {
|
|
292
|
+
isa = XCConfigurationList;
|
|
293
|
+
buildConfigurations = (
|
|
294
|
+
58B511F01A9E6C8500147676 /* Debug */,
|
|
295
|
+
58B511F11A9E6C8500147676 /* Release */,
|
|
296
|
+
);
|
|
297
|
+
defaultConfigurationIsVisible = 0;
|
|
298
|
+
defaultConfigurationName = Release;
|
|
299
|
+
};
|
|
300
|
+
/* End XCConfigurationList section */
|
|
301
|
+
};
|
|
302
|
+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
303
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.VCLEnvTypes = void 0;
|
|
7
|
+
let VCLEnvTypes;
|
|
8
|
+
exports.VCLEnvTypes = VCLEnvTypes;
|
|
9
|
+
|
|
10
|
+
(function (VCLEnvTypes) {
|
|
11
|
+
VCLEnvTypes["DEV"] = "dev";
|
|
12
|
+
VCLEnvTypes["STAGING"] = "staging";
|
|
13
|
+
VCLEnvTypes["PROD"] = "prod";
|
|
14
|
+
})(VCLEnvTypes || (exports.VCLEnvTypes = VCLEnvTypes = {}));
|
|
15
|
+
//# sourceMappingURL=VCLEnvironment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["VCLEnvironment.tsx"],"names":["VCLEnvTypes"],"mappings":";;;;;;IAIYA,W;;;WAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;GAAAA,W,2BAAAA,W","sourcesContent":["export interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"]}
|