Skip to content

Commit

Permalink
fix: cheqd setup (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Apr 4, 2024
1 parent 4e32f7d commit 3157956
Show file tree
Hide file tree
Showing 5 changed files with 334 additions and 259 deletions.
1 change: 1 addition & 0 deletions apps/expo/crypto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {}
4 changes: 4 additions & 0 deletions apps/expo/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ config.resolver.nodeModulesPaths = [
path.resolve(workspaceRoot, 'node_modules'),
]
config.resolver.sourceExts = ['js', 'json', 'ts', 'tsx', 'cjs', 'mjs']
config.resolver.extraNodeModules = {
// Needed for cosmjs trying to import node crypto
crypto: require.resolve('./crypto.ts'),
}

module.exports = config
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,7 @@
},
"resolutions": {
"@unimodules/react-native-adapter": "./noop",
"@unimodules/core": "./noop",
"@cosmjs/amino": "npm:@cosmjs-rn/amino@^0.27.1",
"@cosmjs/encoding": "npm:@cosmjs-rn/encoding@^0.27.1",
"@cosmjs/math": "npm:@cosmjs-rn/math@^0.27.1",
"@cosmjs/stargate": "npm:@cosmjs-rn/stargate@^0.27.1",
"@cosmjs/tendermint-rpc": "npm:@cosmjs-rn/tendermint-rpc@^0.27.1",
"@cosmjs/utils": "npm:@cosmjs-rn/utils@^0.27.1",
"@cosmjs/proto-signing": "npm:@cosmjs-rn/proto-signing@^0.27.1",
"@cosmjs/crypto": "npm:@cosmjs-rn/crypto@^0.27.1"
"@unimodules/core": "./noop"
},
"dependencies": {
"@babel/runtime": "^7.18.9",
Expand Down
16 changes: 8 additions & 8 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"private": true,
"main": "src/index.ts",
"dependencies": {
"@credo-ts/anoncreds": "0.5.1-alpha.4",
"@credo-ts/askar": "0.5.1-alpha.4",
"@credo-ts/cheqd": "0.5.1-alpha.4",
"@credo-ts/core": "0.5.1-alpha.4",
"@credo-ts/indy-vdr": "0.5.1-alpha.4",
"@credo-ts/openid4vc": "0.5.1-alpha.4",
"@credo-ts/question-answer": "0.5.1-alpha.4",
"@credo-ts/anoncreds": "^0.5.1",
"@credo-ts/askar": "^0.5.1",
"@credo-ts/cheqd": "^0.5.1",
"@credo-ts/core": "^0.5.1",
"@credo-ts/indy-vdr": "^0.5.1",
"@credo-ts/openid4vc": "^0.5.1",
"@credo-ts/question-answer": "^0.5.1",
"@credo-ts/react-hooks": "^0.6.1",
"@credo-ts/react-native": "0.5.1-alpha.4",
"@credo-ts/react-native": "^0.5.1",
"@internal/utils": "*",
"@tanstack/react-query": "^4.33.0",
"query-string": "^8.1.0",
Expand Down
Loading

0 comments on commit 3157956

Please sign in to comment.