Skip to content

Commit

Permalink
Merge pull request #34 from credebl/updation-to-040
Browse files Browse the repository at this point in the history
feat:updation Adeya 0.3.0 to 0.4.0
  • Loading branch information
makrandshinde authored Jul 12, 2023
2 parents 231867f + 02fdb7d commit b951eb0
Show file tree
Hide file tree
Showing 16 changed files with 1,291 additions and 421 deletions.
7 changes: 6 additions & 1 deletion app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useNavigation } from '@react-navigation/core'
import { useNavigation } from '@react-navigation/native'
import {
Stacks,
Screens,
Expand Down Expand Up @@ -40,6 +40,11 @@ const App = () => {
const [agent] = useState<Agent | undefined>(undefined)
const { t } = useTranslation()
const { navigate } = useNavigation()
useEffect(() => {
// Hide the native splash / loading screen so that our
// RN version can be displayed.
SplashScreen.hide()
}, [])

const settings = [
// {
Expand Down
18 changes: 9 additions & 9 deletions app/__mocks__/@aries-framework/react-hooks.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
CredentialExchangeRecord,
GetFormatDataReturn,
IndyCredentialFormat,
ProofExchangeRecord,
} from '@aries-framework/core'
// /* eslint-disable @typescript-eslint/no-explicit-any */
import { LegacyIndyCredentialFormat } from '@aries-framework/anoncreds'
import { CredentialExchangeRecord, CredentialProtocolOptions, ProofExchangeRecord } from '@aries-framework/core'

const useCredentials = jest.fn().mockReturnValue({ credentials: [] } as any)
const useCredentialByState = jest.fn().mockReturnValue([] as CredentialExchangeRecord[])
const useProofByState = jest.fn().mockReturnValue([] as ProofExchangeRecord[])
const mockCredentialModule = {
acceptOffer: jest.fn(),
declineOffer: jest.fn(),
getFormatData: jest.fn().mockReturnValue(Promise.resolve({} as GetFormatDataReturn<[IndyCredentialFormat]>)),
getFormatData: jest
.fn()
.mockReturnValue(
Promise.resolve({} as CredentialProtocolOptions.GetCredentialFormatDataReturn<[LegacyIndyCredentialFormat]>)
),
}
const mockProofModule = {
getRequestedCredentialsForProofRequest: jest.fn(),
getCredentialsForRequest: jest.fn(),
acceptRequest: jest.fn(),
declineRequest: jest.fn(),
}
Expand Down
Binary file added app/android/app/src/main/res.zip
Binary file not shown.
Loading

0 comments on commit b951eb0

Please sign in to comment.