From 903fc2e0e2bc678a3030f6ac1bdad787d077f3f7 Mon Sep 17 00:00:00 2001 From: timbl-ont <163455524+timbl-ont@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:51:23 -0400 Subject: [PATCH] feat: add OCA checkForUpdates to the splash screen (#1186) Signed-off-by: timbl-ont --- packages/legacy/core/App/screens/Splash.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/legacy/core/App/screens/Splash.tsx b/packages/legacy/core/App/screens/Splash.tsx index 5fbd214a2a..6a1b876de0 100644 --- a/packages/legacy/core/App/screens/Splash.tsx +++ b/packages/legacy/core/App/screens/Splash.tsx @@ -1,6 +1,7 @@ import { Agent, HttpOutboundTransport, WsOutboundTransport } from '@credo-ts/core' import { useAgent } from '@credo-ts/react-hooks' import { agentDependencies } from '@credo-ts/react-native' +import { RemoteOCABundleResolver } from '@hyperledger/aries-oca/build/legacy' import { useNavigation } from '@react-navigation/core' import { CommonActions } from '@react-navigation/native' import React, { useEffect, useState } from 'react' @@ -98,6 +99,7 @@ const Splash: React.FC = () => { const { version: TermsVersion } = container.resolve(TOKENS.SCREEN_TERMS) const logger = container.resolve(TOKENS.UTIL_LOGGER) const indyLedgers = container.resolve(TOKENS.UTIL_LEDGERS) + const ocaBundleResolver = container.resolve(TOKENS.UTIL_OCA_RESOLVER) as RemoteOCABundleResolver const styles = StyleSheet.create({ container: { flex: 1, @@ -208,6 +210,7 @@ const Splash: React.FC = () => { const initAgent = async (): Promise => { try { + await ocaBundleResolver.checkForUpdates?.() const credentials = await getWalletCredentials() if (!credentials?.id || !credentials.key) {